@proprioo/salatim 29.9.0 → 29.11.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 (186) hide show
  1. package/CHANGELOG.md +8 -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.js.map +1 -1
  21. package/lib/forms/src/offerSignatoryForm/OfferSignatoryForm.schema.d.ts +18 -18
  22. package/lib/forms/src/offerSignatoryForm/OfferSignatoryForm.utils.d.ts +14 -14
  23. package/lib/forms/src/userForm/UserForm.d.ts +23 -23
  24. package/lib/forms/src/userForm/UserForm.schema.d.ts +13 -13
  25. package/lib/hooks/index.d.ts +3 -3
  26. package/lib/hooks/useDebounce/useDebounce.d.ts +2 -2
  27. package/lib/hooks/useEmailSuggestion/useEmailSuggestion.d.ts +6 -6
  28. package/lib/hooks/useFirstRender/useFirstRender.d.ts +1 -1
  29. package/lib/hooks/useOnClickOutside/useOnClickOutside.d.ts +2 -2
  30. package/lib/index.d.ts +7 -7
  31. package/lib/index.js +250 -250
  32. package/lib/index.js.map +1 -1
  33. package/lib/phone/index.d.ts +4 -4
  34. package/lib/phone/src/phoneAndFlag/PhoneAndFlag.d.ts +9 -9
  35. package/lib/phone/src/phoneAndFlag/PhoneAndFlag.styles.d.ts +5 -5
  36. package/lib/phone/src/phoneInput/Phone.d.ts +5 -5
  37. package/lib/phone/src/phoneInput/Phone.styles.d.ts +3 -3
  38. package/lib/phone/src/phoneInput/PhoneInput.d.ts +4 -4
  39. package/lib/phone/src/phoneInput/constants.d.ts +5 -5
  40. package/lib/phone/src/utils.d.ts +5 -5
  41. package/lib/ui/index.d.ts +55 -55
  42. package/lib/ui/src/accordion/Accordion.d.ts +5 -5
  43. package/lib/ui/src/accordion/Accordion.interfaces.d.ts +17 -17
  44. package/lib/ui/src/accordion/Accordion.styles.d.ts +15 -15
  45. package/lib/ui/src/accordion/AccordionContextConsumer.d.ts +7 -7
  46. package/lib/ui/src/accordion/AccordionContextProvider.d.ts +24 -24
  47. package/lib/ui/src/accordion/AccordionHeader.d.ts +4 -4
  48. package/lib/ui/src/accordion/AccordionItem.d.ts +4 -4
  49. package/lib/ui/src/accordion/AccordionPanel.d.ts +4 -4
  50. package/lib/ui/src/accordion/AccordionStore.d.ts +15 -15
  51. package/lib/ui/src/accordion/ItemContextConsumer.d.ts +7 -7
  52. package/lib/ui/src/accordion/ItemContextProvider.d.ts +17 -17
  53. package/lib/ui/src/agentBanner/AgentBanner.d.ts +8 -8
  54. package/lib/ui/src/agentBanner/AgentBanner.styles.d.ts +10 -10
  55. package/lib/ui/src/agentCard/AgentCard.d.ts +8 -8
  56. package/lib/ui/src/agentCard/AgentCard.styles.d.ts +9 -9
  57. package/lib/ui/src/agentCard/AgentMock.d.ts +3 -3
  58. package/lib/ui/src/autocomplete/Autocomplete.d.ts +11 -11
  59. package/lib/ui/src/block/Block.d.ts +8 -8
  60. package/lib/ui/src/block/Block.styles.d.ts +4 -4
  61. package/lib/ui/src/blockCheckIcon/BlockCheckIcon.d.ts +11 -11
  62. package/lib/ui/src/blockCheckIcon/BlockCheckIcon.styles.d.ts +4 -4
  63. package/lib/ui/src/blockCheckIcon/BlockCheckIcon.test.js +2 -26
  64. package/lib/ui/src/blockCheckIcon/BlockCheckIcon.test.js.map +1 -1
  65. package/lib/ui/src/blockIcon/BlockIcon.d.ts +13 -13
  66. package/lib/ui/src/blockIcon/BlockIcon.styles.d.ts +5 -5
  67. package/lib/ui/src/burger/Burger.d.ts +9 -9
  68. package/lib/ui/src/burger/Burger.stories.js.map +1 -1
  69. package/lib/ui/src/burger/Burger.styles.d.ts +3 -3
  70. package/lib/ui/src/button/Button.d.ts +17 -17
  71. package/lib/ui/src/button/Button.interfaces.d.ts +25 -25
  72. package/lib/ui/src/button/Button.styles.d.ts +7 -7
  73. package/lib/ui/src/buttonRadioGroup/ButtonRadio.d.ts +10 -10
  74. package/lib/ui/src/buttonRadioGroup/ButtonRadio.styles.d.ts +4 -4
  75. package/lib/ui/src/buttonRadioGroup/ButtonRadioGroup.d.ts +11 -11
  76. package/lib/ui/src/buttonRadioGroup/ButtonRadioGroup.styles.d.ts +1 -1
  77. package/lib/ui/src/card/Card.d.ts +24 -24
  78. package/lib/ui/src/card/Card.styles.d.ts +21 -21
  79. package/lib/ui/src/checkbox/Checkbox.d.ts +15 -15
  80. package/lib/ui/src/checkbox/Checkbox.styles.d.ts +13 -13
  81. package/lib/ui/src/checkbox/interfaces.d.ts +4 -4
  82. package/lib/ui/src/dateInput/DateInput.d.ts +14 -14
  83. package/lib/ui/src/emailInput/EmailInput.d.ts +2 -2
  84. package/lib/ui/src/emailInput/EmailInput.interfaces.d.ts +12 -12
  85. package/lib/ui/src/emailInput/EmailInput.styles.d.ts +2 -2
  86. package/lib/ui/src/fieldset/Fieldset.d.ts +8 -8
  87. package/lib/ui/src/fieldset/Fieldset.styles.d.ts +6 -6
  88. package/lib/ui/src/gmapsAutoComplete/GmapsAutocomplete.d.ts +14 -14
  89. package/lib/ui/src/gmapsGeocode/GmapsGeocode.d.ts +16 -16
  90. package/lib/ui/src/gmapsSuggestions/GmapsSuggestions.d.ts +20 -20
  91. package/lib/ui/src/icons/Alert.d.ts +2 -2
  92. package/lib/ui/src/icons/Arrow.d.ts +2 -2
  93. package/lib/ui/src/icons/Certificate.d.ts +4 -4
  94. package/lib/ui/src/icons/CheckGreen.d.ts +2 -2
  95. package/lib/ui/src/icons/ChevronRight.d.ts +4 -4
  96. package/lib/ui/src/icons/Close.d.ts +4 -4
  97. package/lib/ui/src/icons/CloseBox.d.ts +2 -2
  98. package/lib/ui/src/icons/DropDown.d.ts +2 -2
  99. package/lib/ui/src/icons/EmoticonCool.d.ts +4 -4
  100. package/lib/ui/src/icons/Help.d.ts +4 -4
  101. package/lib/ui/src/icons/Icon.props.d.ts +3 -3
  102. package/lib/ui/src/icons/Less.d.ts +4 -4
  103. package/lib/ui/src/icons/Plus.d.ts +4 -4
  104. package/lib/ui/src/icons/Tick.d.ts +2 -2
  105. package/lib/ui/src/icons/TrustPilot.d.ts +2 -2
  106. package/lib/ui/src/icons/index.d.ts +14 -14
  107. package/lib/ui/src/input/Input.d.ts +40 -40
  108. package/lib/ui/src/input/Input.styles.d.ts +2 -2
  109. package/lib/ui/src/inputBase/InputBase.d.ts +47 -47
  110. package/lib/ui/src/inputBase/InputBase.styles.d.ts +21 -21
  111. package/lib/ui/src/inputBase/InputBaseEnum.d.ts +6 -6
  112. package/lib/ui/src/inputLoader/InputLoader.d.ts +2 -2
  113. package/lib/ui/src/inputLoader/InputLoader.styles.d.ts +2 -2
  114. package/lib/ui/src/inputLoading/InputLoading.d.ts +3 -3
  115. package/lib/ui/src/inputLoading/InputLoading.styles.d.ts +1 -1
  116. package/lib/ui/src/loader/Loader.d.ts +9 -9
  117. package/lib/ui/src/loader/Loader.styles.d.ts +10 -10
  118. package/lib/ui/src/logo/Logo.d.ts +2 -2
  119. package/lib/ui/src/mockForm/MockForm.d.ts +7 -7
  120. package/lib/ui/src/modal/Modal.d.ts +32 -32
  121. package/lib/ui/src/modal/Modal.reducer.d.ts +35 -35
  122. package/lib/ui/src/modal/Modal.styles.d.ts +18 -18
  123. package/lib/ui/src/nativeSelect/NativeSelect.d.ts +11 -11
  124. package/lib/ui/src/nativeSelect/NativeSelect.styles.d.ts +1 -1
  125. package/lib/ui/src/numberInput/NumberInput.d.ts +11 -11
  126. package/lib/ui/src/numberInput/NumberInput.utils.d.ts +3 -3
  127. package/lib/ui/src/option/Option.d.ts +13 -13
  128. package/lib/ui/src/option/Option.styles.d.ts +7 -7
  129. package/lib/ui/src/radio/Radio.d.ts +12 -12
  130. package/lib/ui/src/radio/Radio.styles.d.ts +3 -3
  131. package/lib/ui/src/select/Select.d.ts +22 -22
  132. package/lib/ui/src/select/Select.styles.d.ts +12 -12
  133. package/lib/ui/src/selectWrapper/SelectWrapper.d.ts +23 -23
  134. package/lib/ui/src/selectWrapper/SelectWrapper.styles.d.ts +13 -13
  135. package/lib/ui/src/subtitle/Subtitle.d.ts +8 -8
  136. package/lib/ui/src/subtitle/Subtitle.styles.d.ts +5 -5
  137. package/lib/ui/src/tag/Tag.d.ts +4 -4
  138. package/lib/ui/src/tag/Tag.styles.d.ts +14 -14
  139. package/lib/ui/src/tag/TagColors.d.ts +74 -74
  140. package/lib/ui/src/tag/interfaces.d.ts +29 -29
  141. package/lib/ui/src/textToggle/TextToggle.d.ts +12 -12
  142. package/lib/ui/src/textToggle/TextToggle.mocks.d.ts +2 -2
  143. package/lib/ui/src/textToggle/TextToggle.styles.d.ts +9 -9
  144. package/lib/ui/src/textToggle/TextToggle.utils.d.ts +2 -2
  145. package/lib/ui/src/textarea/Textarea.d.ts +41 -41
  146. package/lib/ui/src/textarea/Textarea.styles.d.ts +4 -4
  147. package/lib/ui/src/title/H1.d.ts +4 -4
  148. package/lib/ui/src/title/H1.styles.d.ts +2 -2
  149. package/lib/ui/src/title/H2.d.ts +4 -4
  150. package/lib/ui/src/title/H2.styles.d.ts +2 -2
  151. package/lib/ui/src/title/H3.d.ts +4 -4
  152. package/lib/ui/src/title/H3.styles.d.ts +2 -2
  153. package/lib/ui/src/title/H4.d.ts +4 -4
  154. package/lib/ui/src/title/H4.styles.d.ts +2 -2
  155. package/lib/ui/src/title/H5.d.ts +4 -4
  156. package/lib/ui/src/title/H5.styles.d.ts +2 -2
  157. package/lib/ui/src/title/H6.d.ts +4 -4
  158. package/lib/ui/src/title/H6.styles.d.ts +2 -2
  159. package/lib/ui/src/title/Title.d.ts +18 -18
  160. package/lib/ui/src/title/Title.styles.d.ts +8 -8
  161. package/lib/ui/src/toggle/Toggle.d.ts +13 -13
  162. package/lib/ui/src/toggle/Toggle.styles.d.ts +4 -4
  163. package/lib/ui/src/tooltip/Tooltip.d.ts +19 -19
  164. package/lib/ui/src/tooltip/Tooltip.styles.d.ts +2 -2
  165. package/lib/utils/index.d.ts +16 -16
  166. package/lib/utils/src/actions.d.ts +30 -30
  167. package/lib/utils/src/breakpoints.d.ts +11 -11
  168. package/lib/utils/src/colors.d.ts +113 -113
  169. package/lib/utils/src/container.d.ts +2 -2
  170. package/lib/utils/src/fonts.d.ts +15 -15
  171. package/lib/utils/src/gmaps.d.ts +10 -10
  172. package/lib/utils/src/line.d.ts +2 -2
  173. package/lib/utils/src/paragraphs.d.ts +16 -16
  174. package/lib/utils/src/props.d.ts +9 -9
  175. package/lib/utils/src/radius.d.ts +10 -10
  176. package/lib/utils/src/reset.d.ts +1 -1
  177. package/lib/utils/src/responsive.d.ts +5 -5
  178. package/lib/utils/src/row.d.ts +2 -2
  179. package/lib/utils/src/scrollbars.d.ts +2 -2
  180. package/lib/utils/src/shadows.d.ts +8 -8
  181. package/lib/utils/src/spacing.d.ts +2 -2
  182. package/lib/utils/src/test-utils.d.ts +23 -24
  183. package/lib/utils/src/test-utils.js +1 -3
  184. package/lib/utils/src/test-utils.js.map +1 -1
  185. package/lib/utils/src/utils.styles.d.ts +36 -36
  186. package/package.json +13 -13
@@ -1,29 +1,29 @@
1
- import { ReactElement } from 'react';
2
- export interface TagProps {
3
- labels: string[];
4
- appearance?: TagAppearance;
5
- color?: TagColorsTypes;
6
- dataTest?: string;
7
- icon?: ReactElement<Element>;
8
- isOutlined?: boolean;
9
- numberOfTags?: number;
10
- onClose?(): void;
11
- }
12
- export declare enum TagAppearance {
13
- BUSINESS = "business",
14
- CUSTOMER = "customer"
15
- }
16
- export declare enum TagColorsTypes {
17
- BLUE = "BLUE",
18
- BLUE_LIGHT = "BLUE_LIGHT",
19
- GREEN = "GREEN",
20
- GREEN_LIGHT = "GREEN_LIGHT",
21
- GREY = "GREY",
22
- GREY_LIGHT = "GREY_LIGHT",
23
- ORANGE = "ORANGE",
24
- ORANGE_LIGHT = "ORANGE_LIGHT",
25
- ORANGE_LIGHTER = "ORANGE_LIGHTER",
26
- RED = "RED",
27
- RED_LIGHT = "RED_LIGHT",
28
- TERRACOTA = "TERRACOTA"
29
- }
1
+ import { ReactElement } from 'react';
2
+ export type TagProps = {
3
+ labels: string[];
4
+ appearance?: TagAppearance;
5
+ color?: TagColorsTypes;
6
+ dataTest?: string;
7
+ icon?: ReactElement<Element>;
8
+ isOutlined?: boolean;
9
+ numberOfTags?: number;
10
+ onClose?(): void;
11
+ };
12
+ export declare enum TagAppearance {
13
+ BUSINESS = "business",
14
+ CUSTOMER = "customer"
15
+ }
16
+ export declare enum TagColorsTypes {
17
+ BLUE = "BLUE",
18
+ BLUE_LIGHT = "BLUE_LIGHT",
19
+ GREEN = "GREEN",
20
+ GREEN_LIGHT = "GREEN_LIGHT",
21
+ GREY = "GREY",
22
+ GREY_LIGHT = "GREY_LIGHT",
23
+ ORANGE = "ORANGE",
24
+ ORANGE_LIGHT = "ORANGE_LIGHT",
25
+ ORANGE_LIGHTER = "ORANGE_LIGHTER",
26
+ RED = "RED",
27
+ RED_LIGHT = "RED_LIGHT",
28
+ TERRACOTA = "TERRACOTA"
29
+ }
@@ -1,12 +1,12 @@
1
- import { FC } from 'react';
2
- export interface TextToggleProps {
3
- text: string;
4
- dataTest?: string;
5
- isComment?: boolean;
6
- maxLength?: number;
7
- showMoreLabel?: string;
8
- showLessLabel?: string;
9
- title?: string;
10
- }
11
- declare const TextToggle: FC<TextToggleProps>;
12
- export default TextToggle;
1
+ import { FC } from 'react';
2
+ export type TextToggleProps = {
3
+ text: string;
4
+ dataTest?: string;
5
+ isComment?: boolean;
6
+ maxLength?: number;
7
+ showMoreLabel?: string;
8
+ showLessLabel?: string;
9
+ title?: string;
10
+ };
11
+ declare const TextToggle: FC<TextToggleProps>;
12
+ export default TextToggle;
@@ -1,2 +1,2 @@
1
- export declare const MOCK_LONG_TEXT = "Vous savez, moi je ne crois pas qu'il y ait de bonne ou de mauvaise situation. Moi, si je devais r\u00E9sumer ma vie aujourd'hui avec vous, je dirais que c'est d'abord des rencontres. Des gens qui m'ont tendu la main, peut-\u00EAtre \u00E0 un moment o\u00F9 je ne pouvais pas, o\u00F9 j'\u00E9tais seul chez moi. Et c'est assez curieux de se dire que les hasards, les rencontres, forgent une destin\u00E9e... Parce que quand on a le go\u00FBt de la chose, quand on a le go\u00FBt de la chose bien faite, le beau geste, parfois on ne trouve pas l'interlocuteur en face je dirais, le miroir qui vous aide \u00E0 avancer. Alors \u00E7a n'est pas mon cas, comme je disais l\u00E0, puisque moi au contraire, j'ai pu : et je dis merci \u00E0 la vie, je lui dis merci, je chante la vie, je danse la vie... je ne suis qu'amour ! Et finalement, quand beaucoup de gens aujourd'hui me disent \u00AB Mais comment fais-tu pour avoir cette humanit\u00E9 ? \u00BB, et bien je leur r\u00E9ponds tr\u00E8s simplement, je leur dis que c'est ce go\u00FBt de l'amour ce go\u00FBt donc qui m'a pouss\u00E9 aujourd'hui \u00E0 entreprendre une construction m\u00E9canique, mais demain qui sait ? Peut-\u00EAtre simplement \u00E0 me mettre au service de la communaut\u00E9, \u00E0 faire le don, le don de soi";
2
- export declare const MOCK_SHORT_TEXT = "\u00C7a fait rire les oiseaux \u00E7a fait chanter les abeilles";
1
+ export declare const MOCK_LONG_TEXT = "Vous savez, moi je ne crois pas qu'il y ait de bonne ou de mauvaise situation. Moi, si je devais r\u00E9sumer ma vie aujourd'hui avec vous, je dirais que c'est d'abord des rencontres. Des gens qui m'ont tendu la main, peut-\u00EAtre \u00E0 un moment o\u00F9 je ne pouvais pas, o\u00F9 j'\u00E9tais seul chez moi. Et c'est assez curieux de se dire que les hasards, les rencontres, forgent une destin\u00E9e... Parce que quand on a le go\u00FBt de la chose, quand on a le go\u00FBt de la chose bien faite, le beau geste, parfois on ne trouve pas l'interlocuteur en face je dirais, le miroir qui vous aide \u00E0 avancer. Alors \u00E7a n'est pas mon cas, comme je disais l\u00E0, puisque moi au contraire, j'ai pu : et je dis merci \u00E0 la vie, je lui dis merci, je chante la vie, je danse la vie... je ne suis qu'amour ! Et finalement, quand beaucoup de gens aujourd'hui me disent \u00AB Mais comment fais-tu pour avoir cette humanit\u00E9 ? \u00BB, et bien je leur r\u00E9ponds tr\u00E8s simplement, je leur dis que c'est ce go\u00FBt de l'amour ce go\u00FBt donc qui m'a pouss\u00E9 aujourd'hui \u00E0 entreprendre une construction m\u00E9canique, mais demain qui sait ? Peut-\u00EAtre simplement \u00E0 me mettre au service de la communaut\u00E9, \u00E0 faire le don, le don de soi";
2
+ export declare const MOCK_SHORT_TEXT = "\u00C7a fait rire les oiseaux \u00E7a fait chanter les abeilles";
@@ -1,9 +1,9 @@
1
- export declare const TextToggleLayout: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export declare const TextToggleButton: import("styled-components").StyledComponent<"button", any, {
3
- hasTitle: boolean;
4
- isComment: boolean;
5
- }, never>;
6
- export declare const TextToggleTitle: import("styled-components").StyledComponent<"span", any, {}, never>;
7
- export declare const TextToggleBody: import("styled-components").StyledComponent<"span", any, {
8
- isComment: boolean;
9
- }, never>;
1
+ export declare const TextToggleLayout: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const TextToggleButton: import("styled-components").StyledComponent<"button", any, {
3
+ hasTitle: boolean;
4
+ isComment: boolean;
5
+ }, never>;
6
+ export declare const TextToggleTitle: import("styled-components").StyledComponent<"span", any, {}, never>;
7
+ export declare const TextToggleBody: import("styled-components").StyledComponent<"span", any, {
8
+ isComment: boolean;
9
+ }, never>;
@@ -1,2 +1,2 @@
1
- export declare const lineBreaksToSpace: (text: string) => string;
2
- export declare const cutText: (text: string, length: number) => string;
1
+ export declare const lineBreaksToSpace: (text: string) => string;
2
+ export declare const cutText: (text: string, length: number) => string;
@@ -1,41 +1,41 @@
1
- import { ChangeEvent, Component } from 'react';
2
- import { nullOrNumber } from '@proprioo/hokkaido';
3
- export interface TextareaProps {
4
- value: string;
5
- /** Auto-resize the textarea while typing. */
6
- autoResize?: boolean;
7
- disabled?: boolean;
8
- error?: boolean;
9
- /** Max height of the textarea when auto-resizing. */
10
- maxHeight?: number;
11
- maxlength?: number;
12
- /** Min height of the textarea when auto-resizing. */
13
- minHeight?: number;
14
- borderRadius?: string;
15
- placeholder?: string;
16
- focused?: boolean;
17
- required?: boolean;
18
- spellCheck?: boolean;
19
- lang?: string;
20
- hasCounter?: boolean;
21
- onChange?(value: string): void;
22
- }
23
- export interface TextareaStateProps {
24
- value: string;
25
- focused: boolean;
26
- }
27
- declare class Textarea extends Component<TextareaProps, TextareaStateProps> {
28
- reflowRaf: nullOrNumber;
29
- textareaRef: HTMLTextAreaElement | null;
30
- constructor(props: TextareaProps);
31
- componentDidMount(): void;
32
- componentDidUpdate(prevProps: TextareaProps): void;
33
- componentWillUnmount(): void;
34
- handleOnChange(event: ChangeEvent<HTMLTextAreaElement>): void;
35
- handleFocus(): void;
36
- handleBlur(): void;
37
- reflowTextarea(): void;
38
- loadRef(ref: HTMLTextAreaElement | null): void;
39
- render(): JSX.Element;
40
- }
41
- export default Textarea;
1
+ import { ChangeEvent, Component } from 'react';
2
+ import { nullOrNumber } from '@proprioo/hokkaido';
3
+ export type TextareaProps = {
4
+ value: string;
5
+ /** Auto-resize the textarea while typing. */
6
+ autoResize?: boolean;
7
+ disabled?: boolean;
8
+ error?: boolean;
9
+ /** Max height of the textarea when auto-resizing. */
10
+ maxHeight?: number;
11
+ maxlength?: number;
12
+ /** Min height of the textarea when auto-resizing. */
13
+ minHeight?: number;
14
+ borderRadius?: string;
15
+ placeholder?: string;
16
+ focused?: boolean;
17
+ required?: boolean;
18
+ spellCheck?: boolean;
19
+ lang?: string;
20
+ hasCounter?: boolean;
21
+ onChange?(value: string): void;
22
+ };
23
+ export type TextareaStateProps = {
24
+ value: string;
25
+ focused: boolean;
26
+ };
27
+ declare class Textarea extends Component<TextareaProps, TextareaStateProps> {
28
+ reflowRaf: nullOrNumber;
29
+ textareaRef: HTMLTextAreaElement | null;
30
+ constructor(props: TextareaProps);
31
+ componentDidMount(): void;
32
+ componentDidUpdate(prevProps: TextareaProps): void;
33
+ componentWillUnmount(): void;
34
+ handleOnChange(event: ChangeEvent<HTMLTextAreaElement>): void;
35
+ handleFocus(): void;
36
+ handleBlur(): void;
37
+ reflowTextarea(): void;
38
+ loadRef(ref: HTMLTextAreaElement | null): void;
39
+ render(): JSX.Element;
40
+ }
41
+ export default Textarea;
@@ -1,4 +1,4 @@
1
- import { TextareaProps } from './Textarea';
2
- export type TextareaLayoutProps = Pick<TextareaProps, 'error' | 'focused' | 'autoResize' | 'disabled' | 'borderRadius'>;
3
- export declare const TextareaLayout: import("styled-components").StyledComponent<"textarea", any, TextareaLayoutProps, never>;
4
- export declare const Counter: import("styled-components").StyledComponent<"div", any, {}, never>;
1
+ import { TextareaProps } from './Textarea';
2
+ export type TextareaLayoutProps = Pick<TextareaProps, 'error' | 'focused' | 'autoResize' | 'disabled' | 'borderRadius'>;
3
+ export declare const TextareaLayout: import("styled-components").StyledComponent<"textarea", any, TextareaLayoutProps, never>;
4
+ export declare const Counter: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
2
- import { TitleProps } from './Title';
3
- declare const H1: FC<TitleProps>;
4
- export default H1;
1
+ import { FC } from 'react';
2
+ import { TitleProps } from './Title';
3
+ declare const H1: FC<TitleProps>;
4
+ export default H1;
@@ -1,2 +1,2 @@
1
- import { TitleCSSProps } from './Title';
2
- export declare const Layout: import("styled-components").StyledComponent<"h1", any, TitleCSSProps, never>;
1
+ import { TitleCSSProps } from './Title';
2
+ export declare const Layout: import("styled-components").StyledComponent<"h1", any, TitleCSSProps, never>;
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
2
- import { TitleProps } from './Title';
3
- declare const H2: FC<TitleProps>;
4
- export default H2;
1
+ import { FC } from 'react';
2
+ import { TitleProps } from './Title';
3
+ declare const H2: FC<TitleProps>;
4
+ export default H2;
@@ -1,2 +1,2 @@
1
- import { TitleCSSProps } from './Title';
2
- export declare const Layout: import("styled-components").StyledComponent<"h2", any, TitleCSSProps, never>;
1
+ import { TitleCSSProps } from './Title';
2
+ export declare const Layout: import("styled-components").StyledComponent<"h2", any, TitleCSSProps, never>;
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
2
- import { TitleProps } from './Title';
3
- declare const H3: FC<TitleProps>;
4
- export default H3;
1
+ import { FC } from 'react';
2
+ import { TitleProps } from './Title';
3
+ declare const H3: FC<TitleProps>;
4
+ export default H3;
@@ -1,2 +1,2 @@
1
- import { TitleCSSProps } from './Title';
2
- export declare const Layout: import("styled-components").StyledComponent<"h3", any, TitleCSSProps, never>;
1
+ import { TitleCSSProps } from './Title';
2
+ export declare const Layout: import("styled-components").StyledComponent<"h3", any, TitleCSSProps, never>;
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
2
- import { TitleProps } from './Title';
3
- declare const H4: FC<TitleProps>;
4
- export default H4;
1
+ import { FC } from 'react';
2
+ import { TitleProps } from './Title';
3
+ declare const H4: FC<TitleProps>;
4
+ export default H4;
@@ -1,2 +1,2 @@
1
- import { TitleCSSProps } from './Title';
2
- export declare const Layout: import("styled-components").StyledComponent<"h4", any, TitleCSSProps, never>;
1
+ import { TitleCSSProps } from './Title';
2
+ export declare const Layout: import("styled-components").StyledComponent<"h4", any, TitleCSSProps, never>;
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
2
- import { TitleProps } from './Title';
3
- declare const H5: FC<TitleProps>;
4
- export default H5;
1
+ import { FC } from 'react';
2
+ import { TitleProps } from './Title';
3
+ declare const H5: FC<TitleProps>;
4
+ export default H5;
@@ -1,2 +1,2 @@
1
- import { TitleCSSProps } from './Title';
2
- export declare const Layout: import("styled-components").StyledComponent<"h5", any, TitleCSSProps, never>;
1
+ import { TitleCSSProps } from './Title';
2
+ export declare const Layout: import("styled-components").StyledComponent<"h5", any, TitleCSSProps, never>;
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
2
- import { TitleProps } from './Title';
3
- declare const H6: FC<TitleProps>;
4
- export default H6;
1
+ import { FC } from 'react';
2
+ import { TitleProps } from './Title';
3
+ declare const H6: FC<TitleProps>;
4
+ export default H6;
@@ -1,2 +1,2 @@
1
- import { TitleCSSProps } from './Title';
2
- export declare const Layout: import("styled-components").StyledComponent<"h6", any, TitleCSSProps, never>;
1
+ import { TitleCSSProps } from './Title';
2
+ export declare const Layout: import("styled-components").StyledComponent<"h6", any, TitleCSSProps, never>;
@@ -1,18 +1,18 @@
1
- export interface TitleProps {
2
- title: string;
3
- color?: string;
4
- isAlternative?: boolean;
5
- }
6
- export type TitleCSSProps = Pick<TitleProps, 'color' | 'isAlternative'>;
7
- export declare const TitleDefaultProps: {
8
- color: string;
9
- isAlternative: boolean;
10
- };
11
- export declare const titles: {
12
- h1: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<Pick<TitleProps, "isAlternative">, any>>;
13
- h2: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<Pick<TitleProps, "isAlternative">, any>>;
14
- h3: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<Pick<TitleProps, "isAlternative">, any>>;
15
- h4: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<Pick<TitleProps, "isAlternative">, any>>;
16
- h5: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<Pick<TitleProps, "isAlternative">, any>>;
17
- h6: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<Pick<TitleProps, "isAlternative">, any>>;
18
- };
1
+ export type TitleProps = {
2
+ title: string;
3
+ color?: string;
4
+ isAlternative?: boolean;
5
+ };
6
+ export type TitleCSSProps = Pick<TitleProps, 'color' | 'isAlternative'>;
7
+ export declare const TitleDefaultProps: {
8
+ color: string;
9
+ isAlternative: boolean;
10
+ };
11
+ export declare const titles: {
12
+ h1: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<Pick<TitleProps, "isAlternative">, any>>;
13
+ h2: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<Pick<TitleProps, "isAlternative">, any>>;
14
+ h3: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<Pick<TitleProps, "isAlternative">, any>>;
15
+ h4: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<Pick<TitleProps, "isAlternative">, any>>;
16
+ h5: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<Pick<TitleProps, "isAlternative">, any>>;
17
+ h6: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<Pick<TitleProps, "isAlternative">, any>>;
18
+ };
@@ -1,8 +1,8 @@
1
- import { TitleProps } from './Title';
2
- export declare const h1: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<Pick<TitleProps, "isAlternative">, any>>;
3
- export declare const h2: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<Pick<TitleProps, "isAlternative">, any>>;
4
- export declare const h3: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<Pick<TitleProps, "isAlternative">, any>>;
5
- export declare const h4: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<Pick<TitleProps, "isAlternative">, any>>;
6
- export declare const h5: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<Pick<TitleProps, "isAlternative">, any>>;
7
- export declare const h6: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<Pick<TitleProps, "isAlternative">, any>>;
8
- export declare const TitleLayout: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<Pick<TitleProps, "color">, any>>;
1
+ import { TitleProps } from './Title';
2
+ export declare const h1: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<Pick<TitleProps, "isAlternative">, any>>;
3
+ export declare const h2: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<Pick<TitleProps, "isAlternative">, any>>;
4
+ export declare const h3: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<Pick<TitleProps, "isAlternative">, any>>;
5
+ export declare const h4: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<Pick<TitleProps, "isAlternative">, any>>;
6
+ export declare const h5: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<Pick<TitleProps, "isAlternative">, any>>;
7
+ export declare const h6: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<Pick<TitleProps, "isAlternative">, any>>;
8
+ export declare const TitleLayout: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<Pick<TitleProps, "color">, any>>;
@@ -1,13 +1,13 @@
1
- import 'react-toggle/style.css';
2
- import { FC } from 'react';
3
- export interface ToggleProps {
4
- label: string;
5
- name: string;
6
- checked?: boolean;
7
- id: string;
8
- disabled?: boolean;
9
- dataTest?: string;
10
- onChange(checked: boolean): void;
11
- }
12
- declare const Toggle: FC<ToggleProps>;
13
- export default Toggle;
1
+ import 'react-toggle/style.css';
2
+ import { FC } from 'react';
3
+ export type ToggleProps = {
4
+ label: string;
5
+ name: string;
6
+ checked?: boolean;
7
+ id: string;
8
+ disabled?: boolean;
9
+ dataTest?: string;
10
+ onChange(checked: boolean): void;
11
+ };
12
+ declare const Toggle: FC<ToggleProps>;
13
+ export default Toggle;
@@ -1,4 +1,4 @@
1
- export declare const Label: import("styled-components").StyledComponent<"label", any, {
2
- disabled: boolean;
3
- }, never>;
4
- export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
1
+ export declare const Label: import("styled-components").StyledComponent<"label", any, {
2
+ disabled: boolean;
3
+ }, never>;
4
+ export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,19 +1,19 @@
1
- import 'react-popper-tooltip/dist/styles.css';
2
- import { FC, PropsWithChildren, ReactElement } from 'react';
3
- import { TriggerType } from 'react-popper-tooltip';
4
- import { Placement } from '@popperjs/core';
5
- export interface TooltipProps {
6
- tooltip: string | ReactElement;
7
- delayHide?: number;
8
- delayShow?: number;
9
- isArrowHidden?: boolean;
10
- isFollowingCursor?: boolean;
11
- isVisible?: boolean;
12
- usePortal?: boolean;
13
- interactive?: boolean;
14
- placement?: Placement;
15
- trigger?: TriggerType;
16
- maxWidth?: string;
17
- }
18
- declare const Tooltip: FC<PropsWithChildren<TooltipProps>>;
19
- export default Tooltip;
1
+ import 'react-popper-tooltip/dist/styles.css';
2
+ import { FC, PropsWithChildren, ReactElement } from 'react';
3
+ import { TriggerType } from 'react-popper-tooltip';
4
+ import { Placement } from '@popperjs/core';
5
+ export type TooltipProps = {
6
+ tooltip: string | ReactElement;
7
+ delayHide?: number;
8
+ delayShow?: number;
9
+ isArrowHidden?: boolean;
10
+ isFollowingCursor?: boolean;
11
+ isVisible?: boolean;
12
+ usePortal?: boolean;
13
+ interactive?: boolean;
14
+ placement?: Placement;
15
+ trigger?: TriggerType;
16
+ maxWidth?: string;
17
+ };
18
+ declare const Tooltip: FC<PropsWithChildren<TooltipProps>>;
19
+ export default Tooltip;
@@ -1,2 +1,2 @@
1
- export declare const Layout: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export declare const WrappedComponent: import("styled-components").StyledComponent<"span", any, {}, never>;
1
+ export declare const Layout: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const WrappedComponent: import("styled-components").StyledComponent<"span", any, {}, never>;
@@ -1,16 +1,16 @@
1
- export { default as breakpoints } from './src/breakpoints';
2
- export { default as colors } from './src/colors';
3
- export { default as Container } from './src/container';
4
- export { ArchivoFont, IntegralCFFont, default as fonts } from './src/fonts';
5
- export { default as Line } from './src/line';
6
- export { default as paragraphs } from './src/paragraphs';
7
- export { GenericInputProps } from './src/props';
8
- export { default as radius } from './src/radius';
9
- export { default as Row } from './src/row';
10
- export { default as shadows } from './src/shadows';
11
- export { convertPxToRem } from './src/spacing';
12
- export { default as scrollbar } from './src/scrollbars';
13
- export { createAction, ActionsWithPayload, ActionsWithoutPayload, ActionsUnion } from './src/actions';
14
- export { isTouchDevice, useMobileDevice, useSmartphoneDevice, useSmallSmartphoneDevice } from './src/responsive';
15
- export { resetCssButton } from './src/reset';
16
- export { getGeoSearchSuggestions, GoogleSearchType } from './src/gmaps';
1
+ export { default as breakpoints } from './src/breakpoints';
2
+ export { default as colors } from './src/colors';
3
+ export { default as Container } from './src/container';
4
+ export { ArchivoFont, IntegralCFFont, default as fonts } from './src/fonts';
5
+ export { default as Line } from './src/line';
6
+ export { default as paragraphs } from './src/paragraphs';
7
+ export { GenericInputProps } from './src/props';
8
+ export { default as radius } from './src/radius';
9
+ export { default as Row } from './src/row';
10
+ export { default as shadows } from './src/shadows';
11
+ export { convertPxToRem } from './src/spacing';
12
+ export { default as scrollbar } from './src/scrollbars';
13
+ export { createAction, ActionsWithPayload, ActionsWithoutPayload, ActionsUnion } from './src/actions';
14
+ export { isTouchDevice, useMobileDevice, useSmartphoneDevice, useSmallSmartphoneDevice } from './src/responsive';
15
+ export { resetCssButton } from './src/reset';
16
+ export { getGeoSearchSuggestions, GoogleSearchType } from './src/gmaps';
@@ -1,30 +1,30 @@
1
- /**
2
- * Create an action with no payload
3
- */
4
- export declare function createAction<TypeAction>(actionType: TypeAction): () => ActionsWithoutPayload<TypeAction>;
5
- /**
6
- * Create an action with a payload
7
- */
8
- export interface ActionsWithPayload<TypeAction, TypePayload> {
9
- type: TypeAction;
10
- payload: TypePayload;
11
- }
12
- /**
13
- * Create an action that does not have a payload
14
- */
15
- export interface ActionsWithoutPayload<TypeAction> {
16
- type: TypeAction;
17
- }
18
- /**
19
- * A very general type that means to be "an object with a many field created with createActionPayload and createAction
20
- */
21
- interface ActionCreatorsMapObject {
22
- [key: string]: (...args: any[]) => // tslint:disable-next-line: no-any
23
- ActionsWithPayload<any, any> | ActionsWithoutPayload<any>;
24
- }
25
- /**
26
- * Use this Type to merge several action object that has field created with createActionPayload or createAction
27
- * E.g. type ReducerWithActionFromTwoObjects = ActionsUnion<typeof ActionsObject1 & typeof ActionsObject2>;
28
- */
29
- export type ActionsUnion<A extends ActionCreatorsMapObject> = ReturnType<A[keyof A]>;
30
- export {};
1
+ /**
2
+ * Create an action with no payload
3
+ */
4
+ export declare function createAction<TypeAction>(actionType: TypeAction): () => ActionsWithoutPayload<TypeAction>;
5
+ /**
6
+ * Create an action with a payload
7
+ */
8
+ export type ActionsWithPayload<TypeAction, TypePayload> = {
9
+ type: TypeAction;
10
+ payload: TypePayload;
11
+ };
12
+ /**
13
+ * Create an action that does not have a payload
14
+ */
15
+ export type ActionsWithoutPayload<TypeAction> = {
16
+ type: TypeAction;
17
+ };
18
+ /**
19
+ * A very general type that means to be "an object with a many field created with createActionPayload and createAction
20
+ */
21
+ type ActionCreatorsMapObject = {
22
+ [key: string]: (...args: any[]) => // tslint:disable-next-line: no-any
23
+ ActionsWithPayload<any, any> | ActionsWithoutPayload<any>;
24
+ };
25
+ /**
26
+ * Use this Type to merge several action object that has field created with createActionPayload or createAction
27
+ * E.g. type ReducerWithActionFromTwoObjects = ActionsUnion<typeof ActionsObject1 & typeof ActionsObject2>;
28
+ */
29
+ export type ActionsUnion<A extends ActionCreatorsMapObject> = ReturnType<A[keyof A]>;
30
+ export {};
@@ -1,11 +1,11 @@
1
- declare const _default: {
2
- smallest: number;
3
- xsmall: number;
4
- small: number;
5
- medium: number;
6
- base: number;
7
- normal: number;
8
- large: number;
9
- xlarge: number;
10
- };
11
- export default _default;
1
+ declare const _default: {
2
+ smallest: number;
3
+ xsmall: number;
4
+ small: number;
5
+ medium: number;
6
+ base: number;
7
+ normal: number;
8
+ large: number;
9
+ xlarge: number;
10
+ };
11
+ export default _default;