ouisys-component-library 0.0.32 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/README.md +54 -27
  2. package/dist/Button.js +2 -0
  3. package/dist/Button.js.map +1 -0
  4. package/dist/ChainRedirect.js +2 -0
  5. package/dist/ChainRedirect.js.map +1 -0
  6. package/dist/Disclaimers.js +2 -0
  7. package/dist/Disclaimers.js.map +1 -0
  8. package/dist/ExtraDisclaimers.js +2 -0
  9. package/dist/ExtraDisclaimers.js.map +1 -0
  10. package/dist/Features.js +2 -0
  11. package/dist/Features.js.map +1 -0
  12. package/dist/Input.js +2 -0
  13. package/dist/Input.js.map +1 -0
  14. package/dist/Intl-2eab59e1.js +2 -0
  15. package/dist/Intl-2eab59e1.js.map +1 -0
  16. package/dist/IntlProvider.js +2 -0
  17. package/dist/IntlProvider.js.map +1 -0
  18. package/dist/LanguageSwitcher.js +2 -0
  19. package/dist/LanguageSwitcher.js.map +1 -0
  20. package/dist/Link.js +2 -0
  21. package/dist/Link.js.map +1 -0
  22. package/dist/MOLink-5e2f5f82.js +2 -0
  23. package/dist/MOLink-5e2f5f82.js.map +1 -0
  24. package/dist/MOLink.js +2 -0
  25. package/dist/MOLink.js.map +1 -0
  26. package/dist/PINEntry.js +2 -0
  27. package/dist/PINEntry.js.map +1 -0
  28. package/dist/PhoneEntry.js +2 -0
  29. package/dist/PhoneEntry.js.map +1 -0
  30. package/dist/PricePoint.js +2 -0
  31. package/dist/PricePoint.js.map +1 -0
  32. package/dist/Select.js +2 -0
  33. package/dist/Select.js.map +1 -0
  34. package/dist/Showcase.js +2 -0
  35. package/dist/Showcase.js.map +1 -0
  36. package/dist/TopLegals.js +2 -0
  37. package/dist/TopLegals.js.map +1 -0
  38. package/dist/Translate.js +2 -0
  39. package/dist/Translate.js.map +1 -0
  40. package/dist/defineMessages.js +2 -0
  41. package/dist/defineMessages.js.map +1 -0
  42. package/dist/formatSMSLink.js +2 -0
  43. package/dist/formatSMSLink.js.map +1 -0
  44. package/dist/injectIntl.js +2 -0
  45. package/dist/injectIntl.js.map +1 -0
  46. package/dist/style-inject.es-1f59c1d0.js +2 -0
  47. package/dist/style-inject.es-1f59c1d0.js.map +1 -0
  48. package/dist/types/Button/Button.d.ts +5 -0
  49. package/dist/types/Button/Button.types.d.ts +12 -0
  50. package/{build/src → dist/types}/ChainRedirect/ChainRedirect.d.ts +5 -3
  51. package/dist/types/ChainRedirect/ChainRedirect.types.d.ts +10 -0
  52. package/dist/types/Disclaimers/Disclaimers.d.ts +5 -0
  53. package/{build/src → dist/types}/Disclaimers/Disclaimers.types.d.ts +38 -36
  54. package/dist/types/ExtraDisclaimers/ExtraDisclaimers.d.ts +5 -0
  55. package/dist/types/ExtraDisclaimers/ExtraDisclaimers.types.d.ts +11 -0
  56. package/dist/types/Features/Features.d.ts +5 -0
  57. package/dist/types/Features/Features.types.d.ts +16 -0
  58. package/dist/types/Input/Input.d.ts +5 -0
  59. package/{build/src → dist/types}/Input/Input.types.d.ts +46 -45
  60. package/dist/types/Intl/Intl.d.ts +21 -0
  61. package/dist/types/LanguageSwitcher/LanguageSwitcher.d.ts +5 -0
  62. package/{build/src → dist/types}/LanguageSwitcher/LanguageSwitcher.types.d.ts +16 -13
  63. package/dist/types/Link/Link.d.ts +5 -0
  64. package/{build/src → dist/types}/Link/Link.types.d.ts +13 -11
  65. package/dist/types/MOLink/MOLink.d.ts +7 -0
  66. package/{build/src → dist/types}/MOLink/MOLink.types.d.ts +11 -10
  67. package/{build/src → dist/types}/PINEntry/PINEntry.d.ts +5 -3
  68. package/{build/src → dist/types}/PINEntry/PINEntry.types.d.ts +25 -23
  69. package/{build/src → dist/types}/PhoneEntry/PhoneEntry.d.ts +5 -3
  70. package/{build/src → dist/types}/PhoneEntry/PhoneEntry.types.d.ts +39 -38
  71. package/dist/types/PricePoint/PricePoint.d.ts +5 -0
  72. package/{build/src → dist/types}/PricePoint/PricePoint.types.d.ts +12 -9
  73. package/dist/types/Select/Select.d.ts +5 -0
  74. package/{build/src → dist/types}/Select/Select.types.d.ts +31 -30
  75. package/dist/types/Showcase/Showcase.d.ts +5 -0
  76. package/dist/types/Showcase/Showcase.types.d.ts +15 -0
  77. package/dist/types/TopLegals/TopLegals.d.ts +5 -0
  78. package/dist/types/TopLegals/TopLegals.types.d.ts +11 -0
  79. package/dist/types/components/button/Button.d.ts +2 -0
  80. package/dist/types/components/chainredirect/ChainRedirect.d.ts +2 -0
  81. package/dist/types/components/disclaimers/Disclaimers.d.ts +2 -0
  82. package/dist/types/components/extradisclaimers/ExtraDisclaimers.d.ts +2 -0
  83. package/dist/types/components/features/Features.d.ts +2 -0
  84. package/dist/types/components/input/Input.d.ts +2 -0
  85. package/dist/types/components/intlprovider/IntlProvider.d.ts +1 -0
  86. package/dist/types/components/languageswitcher/LanguageSwitcher.d.ts +2 -0
  87. package/dist/types/components/link/Link.d.ts +2 -0
  88. package/dist/types/components/molink/MOLink.d.ts +2 -0
  89. package/dist/types/components/phoneentry/PhoneEntry.d.ts +2 -0
  90. package/dist/types/components/pinentry/PINEntry.d.ts +2 -0
  91. package/dist/types/components/pricepoint/PricePoint.d.ts +2 -0
  92. package/dist/types/components/select/Select.d.ts +2 -0
  93. package/dist/types/components/showcase/Showcase.d.ts +2 -0
  94. package/dist/types/components/toplegals/TopLegals.d.ts +2 -0
  95. package/dist/types/components/translate/Translate.d.ts +1 -0
  96. package/{build/src → dist/types}/custom-types.d.ts +10 -8
  97. package/dist/types/utilities/definemessages/defineMessages.d.ts +1 -0
  98. package/dist/types/utilities/formatsmslink/formatSMSLink.d.ts +1 -0
  99. package/dist/types/utilities/injectintl/injectIntl.d.ts +1 -0
  100. package/package.json +136 -50
  101. package/build/index.d.ts +0 -291
  102. package/build/index.js +0 -2
  103. package/build/index.js.map +0 -1
  104. package/build/index.mjs +0 -2
  105. package/build/index.mjs.map +0 -1
  106. package/build/src/Button/Button.d.ts +0 -2
  107. package/build/src/Button/Button.stories.d.ts +0 -41
  108. package/build/src/Button/Button.test.d.ts +0 -1
  109. package/build/src/Button/Button.types.d.ts +0 -10
  110. package/build/src/ChainRedirect/ChainRedirect.stories.d.ts +0 -32
  111. package/build/src/ChainRedirect/ChainRedirect.types.d.ts +0 -7
  112. package/build/src/Disclaimers/Disclaimers.d.ts +0 -2
  113. package/build/src/Disclaimers/Disclaimers.stories.d.ts +0 -41
  114. package/build/src/Disclaimers/Disclaimers.test.d.ts +0 -1
  115. package/build/src/ExtraDisclaimers/ExtraDisclaimers.d.ts +0 -2
  116. package/build/src/ExtraDisclaimers/ExtraDisclaimers.stories.d.ts +0 -41
  117. package/build/src/ExtraDisclaimers/ExtraDisclaimers.test.d.ts +0 -1
  118. package/build/src/ExtraDisclaimers/ExtraDisclaimers.types.d.ts +0 -8
  119. package/build/src/Input/Input.d.ts +0 -2
  120. package/build/src/Input/Input.stories.d.ts +0 -5
  121. package/build/src/Intl/Intl.d.ts +0 -18
  122. package/build/src/LanguageSwitcher/LanguageSwitcher.d.ts +0 -2
  123. package/build/src/LanguageSwitcher/LanguageSwitcher.stories.d.ts +0 -38
  124. package/build/src/LanguageSwitcher/LanguageSwitcher.test.d.ts +0 -1
  125. package/build/src/Link/Link.d.ts +0 -2
  126. package/build/src/Link/Link.stories.d.ts +0 -51
  127. package/build/src/Link/Link.test.d.ts +0 -1
  128. package/build/src/MOLink/MOLink.d.ts +0 -4
  129. package/build/src/MOLink/MOLink.stories.d.ts +0 -32
  130. package/build/src/MOLink/MOLink.test.d.ts +0 -1
  131. package/build/src/PINEntry/PINEntry.stories.d.ts +0 -54
  132. package/build/src/PhoneEntry/PhoneEntry.stories.d.ts +0 -59
  133. package/build/src/PricePoint/PricePoint.d.ts +0 -2
  134. package/build/src/PricePoint/PricePoint.stories.d.ts +0 -41
  135. package/build/src/PricePoint/PricePoint.test.d.ts +0 -1
  136. package/build/src/Select/Select.d.ts +0 -2
  137. package/build/src/Select/Select.stories.d.ts +0 -5
  138. package/build/src/TopLegals/TopLegals.d.ts +0 -2
  139. package/build/src/TopLegals/TopLegals.stories.d.ts +0 -41
  140. package/build/src/TopLegals/TopLegals.test.d.ts +0 -1
  141. package/build/src/TopLegals/TopLegals.types.d.ts +0 -8
  142. package/build/src/index.d.ts +0 -20
  143. package/build/src/utils/parsePhoneNumber.d.ts +0 -90
  144. package/build/src/utils/searchToObject.d.ts +0 -2
  145. package/build/src/utils/test/index.d.ts +0 -14
@@ -1,2 +0,0 @@
1
- import { DisclaimersProps } from './Disclaimers.types';
2
- export declare function Disclaimers({ locale, className, legals, flow, dataQaId, mcc }: DisclaimersProps): JSX.Element;
@@ -1,41 +0,0 @@
1
- import { Story } from '@storybook/react';
2
- import { DisclaimersProps } from './Disclaimers.types';
3
- declare const _default: {
4
- title: string;
5
- component: string;
6
- parameters: {
7
- importObject: string;
8
- importPath: string;
9
- };
10
- argTypes: {
11
- locale: {
12
- control: {
13
- type: string;
14
- };
15
- description: string;
16
- };
17
- className: {
18
- control: {
19
- type: string;
20
- };
21
- description: string;
22
- };
23
- legals: {
24
- description: string;
25
- };
26
- flow: {
27
- control: {
28
- type: string;
29
- };
30
- description: string;
31
- };
32
- dataQaId: {
33
- control: {
34
- type: string;
35
- };
36
- description: string;
37
- };
38
- };
39
- };
40
- export default _default;
41
- export declare const Main: Story<DisclaimersProps>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- import { ExtraDisclaimersProps } from './ExtraDisclaimers.types';
2
- export declare function ExtraDisclaimers({ locale, className, legals, flow, dataQaId }: ExtraDisclaimersProps): JSX.Element;
@@ -1,41 +0,0 @@
1
- import { Story } from '@storybook/react';
2
- import { ExtraDisclaimersProps } from './ExtraDisclaimers.types';
3
- declare const _default: {
4
- title: string;
5
- component: string;
6
- parameters: {
7
- importObject: string;
8
- importPath: string;
9
- };
10
- argTypes: {
11
- locale: {
12
- control: {
13
- type: string;
14
- };
15
- description: string;
16
- };
17
- className: {
18
- control: {
19
- type: string;
20
- };
21
- description: string;
22
- };
23
- legals: {
24
- description: string;
25
- };
26
- flow: {
27
- control: {
28
- type: string;
29
- };
30
- description: string;
31
- };
32
- dataQaId: {
33
- control: {
34
- type: string;
35
- };
36
- description: string;
37
- };
38
- };
39
- };
40
- export default _default;
41
- export declare const Main: Story<ExtraDisclaimersProps>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,8 +0,0 @@
1
- import { ILegalFlows, ILegals } from '../Disclaimers/Disclaimers.types';
2
- export interface ExtraDisclaimersProps {
3
- locale: string;
4
- legals: Array<ILegals>;
5
- className?: string;
6
- flow?: ILegalFlows;
7
- dataQaId?: string;
8
- }
@@ -1,2 +0,0 @@
1
- import { InputProps } from './Input.types';
2
- export declare function Input({ wrapperClassName, dataQaId, id, name, value, placeholder, disabled, readOnly, error, type, size, onChange, ...props }: InputProps): JSX.Element;
@@ -1,5 +0,0 @@
1
- import { Meta, Story } from '@storybook/react';
2
- import { InputProps } from './Input.types';
3
- declare const _default: Meta<import("@storybook/react").Args>;
4
- export default _default;
5
- export declare const Input: Story<InputProps>;
@@ -1,18 +0,0 @@
1
- import * as React from 'react';
2
- export interface IHash {
3
- [key: string]: string;
4
- }
5
- export declare function IntlProvider({ locale, messages, children }: {
6
- locale: string;
7
- messages: IHash;
8
- children: React.ReactChild | JSX.Element[] | JSX.Element;
9
- }): JSX.Element;
10
- export declare function Translate({ id, values, defaultMessage }: {
11
- id: string;
12
- values?: {
13
- [key: string]: string;
14
- };
15
- defaultMessage?: string;
16
- }): string;
17
- export declare function injectIntl(Child: React.ComponentType<any>): (props: any) => JSX.Element;
18
- export declare function defineMessages(messageDescriptors: any): any;
@@ -1,2 +0,0 @@
1
- import { interfaceLanguageSwitcher } from './LanguageSwitcher.types';
2
- export declare function LanguageSwitcher({ locale, switchLang, options, className, dataQaId, tracker }: interfaceLanguageSwitcher): JSX.Element | null;
@@ -1,38 +0,0 @@
1
- import { Story } from '@storybook/react';
2
- import { LanguageSwitcher } from './LanguageSwitcher';
3
- import { interfaceLanguageSwitcher } from './LanguageSwitcher.types';
4
- declare const _default: {
5
- title: string;
6
- component: typeof LanguageSwitcher;
7
- parameters: {
8
- importObject: string;
9
- importPath: string;
10
- };
11
- argTypes: {
12
- locale: {
13
- name: string;
14
- description: string;
15
- control: string;
16
- };
17
- switchLang: {
18
- name: string;
19
- description: string;
20
- };
21
- options: {
22
- name: string;
23
- description: string;
24
- };
25
- className: {
26
- name: string;
27
- description: string;
28
- control: string;
29
- };
30
- dataQaId: {
31
- name: string;
32
- description: string;
33
- control: string;
34
- };
35
- };
36
- };
37
- export default _default;
38
- export declare const Main: Story<interfaceLanguageSwitcher>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- import { interfaceLink } from './Link.types';
2
- export declare function Link({ children, className, dataQaId, href, allowEvinaClass, isMCP, locale, tracker, onClick, ...props }: interfaceLink): JSX.Element;
@@ -1,51 +0,0 @@
1
- import { Story } from '@storybook/react';
2
- import { Link } from './Link';
3
- import { interfaceLink } from './Link.types';
4
- declare const _default: {
5
- title: string;
6
- component: typeof Link;
7
- parameters: {
8
- importObject: string;
9
- importPath: string;
10
- };
11
- argTypes: {
12
- className: {
13
- name: string;
14
- description: string;
15
- control: string;
16
- };
17
- dataQaId: {
18
- name: string;
19
- description: string;
20
- control: string;
21
- };
22
- href: {
23
- name: string;
24
- description: string;
25
- control: string;
26
- };
27
- allowEvinaClass: {
28
- name: string;
29
- description: string;
30
- control: string;
31
- };
32
- isMCP: {
33
- name: string;
34
- description: string;
35
- control: string;
36
- };
37
- locale: {
38
- name: string;
39
- description: string;
40
- control: string;
41
- };
42
- target: {
43
- name: string;
44
- description: string;
45
- control: string;
46
- options: string[];
47
- };
48
- };
49
- };
50
- export default _default;
51
- export declare const Main: Story<interfaceLink>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,4 +0,0 @@
1
- import * as React from 'react';
2
- import { IKeywordShortcode, MOLinkProps } from './MOLink.types';
3
- export declare const formatSMSLink: (keywordAndShortcode: IKeywordShortcode, useOpenAddresses?: boolean) => string;
4
- export declare const MOLink: React.ComponentType<MOLinkProps>;
@@ -1,32 +0,0 @@
1
- import { Story } from '@storybook/react';
2
- import { MOLinkProps } from './MOLink.types';
3
- declare const _default: {
4
- title: string;
5
- component: string;
6
- parameters: {
7
- importObject: string;
8
- importPath: string;
9
- };
10
- argTypes: {
11
- className: {
12
- control: {
13
- type: string;
14
- };
15
- description: string;
16
- };
17
- dataQaId: {
18
- control: {
19
- type: string;
20
- };
21
- description: string;
22
- };
23
- keywordAndShortcode: {
24
- control: {
25
- type: string;
26
- };
27
- description: string;
28
- };
29
- };
30
- };
31
- export default _default;
32
- export declare const Main: Story<MOLinkProps>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,54 +0,0 @@
1
- import { Story } from '@storybook/react';
2
- import { interfacePINEntry } from './PINEntry.types';
3
- declare const _default: {
4
- title: string;
5
- component: ({ tracker, pin, setPin, isPinFilled, setIsPinFilled, inputElementRef, id, className, dataQaId, maxLength, minLength, placeholder, isAlphanumeric, showIconInput, onChange, onKeyPress, onPaste, onBlur, onFocus }: interfacePINEntry) => JSX.Element;
6
- parameters: {
7
- importObject: string;
8
- importPath: string;
9
- };
10
- argTypes: {
11
- id: {
12
- name: string;
13
- description: string;
14
- control: string;
15
- };
16
- className: {
17
- name: string;
18
- description: string;
19
- control: string;
20
- };
21
- dataQaId: {
22
- name: string;
23
- description: string;
24
- control: string;
25
- };
26
- maxLength: {
27
- name: string;
28
- description: string;
29
- control: string;
30
- };
31
- minLength: {
32
- name: string;
33
- description: string;
34
- control: string;
35
- };
36
- placeholder: {
37
- name: string;
38
- description: string;
39
- control: string;
40
- };
41
- isAlphanumeric: {
42
- name: string;
43
- description: string;
44
- control: string;
45
- };
46
- showIconInput: {
47
- name: string;
48
- description: string;
49
- control: string;
50
- };
51
- };
52
- };
53
- export default _default;
54
- export declare const Main: Story<interfacePINEntry>;
@@ -1,59 +0,0 @@
1
- import { Story } from '@storybook/react';
2
- import { interfacePhoneEntry } from './PhoneEntry.types';
3
- declare const _default: {
4
- title: string;
5
- component: ({ tracker, country, msisdn, setMsisdn, internationalNumber, setInternationalNumber, isMsisdnFilled, setIsMsisdnFilled, inputElementRef, id, className, dataQaId, minLength, placeholder, isValid, setIsValid, userInteract, setUserInteract, showIconInput, showIconValid, showIconInvalid, onChange, onKeyPress, onPaste, onBlur, onFocus }: interfacePhoneEntry) => JSX.Element;
6
- parameters: {
7
- importObject: string;
8
- importPath: string;
9
- };
10
- argTypes: {
11
- country: {
12
- name: string;
13
- description: string;
14
- control: string;
15
- };
16
- id: {
17
- name: string;
18
- description: string;
19
- control: string;
20
- };
21
- className: {
22
- name: string;
23
- description: string;
24
- control: string;
25
- };
26
- dataQaId: {
27
- name: string;
28
- description: string;
29
- control: string;
30
- };
31
- minLength: {
32
- name: string;
33
- description: string;
34
- control: string;
35
- };
36
- placeholder: {
37
- name: string;
38
- description: string;
39
- control: string;
40
- };
41
- showIconInput: {
42
- name: string;
43
- description: string;
44
- control: string;
45
- };
46
- showIconValid: {
47
- name: string;
48
- description: string;
49
- control: string;
50
- };
51
- showIconInvalid: {
52
- name: string;
53
- description: string;
54
- control: string;
55
- };
56
- };
57
- };
58
- export default _default;
59
- export declare const Main: Story<interfacePhoneEntry>;
@@ -1,2 +0,0 @@
1
- import { PricePointProps } from './PricePoint.types';
2
- export declare function PricePoint({ locale, className, legals, flow, dataQaId, operator }: PricePointProps): JSX.Element;
@@ -1,41 +0,0 @@
1
- import { Story } from '@storybook/react';
2
- import { PricePointProps } from './PricePoint.types';
3
- declare const _default: {
4
- title: string;
5
- component: string;
6
- parameters: {
7
- importObject: string;
8
- importPath: string;
9
- };
10
- argTypes: {
11
- locale: {
12
- control: {
13
- type: string;
14
- };
15
- description: string;
16
- };
17
- className: {
18
- control: {
19
- type: string;
20
- };
21
- description: string;
22
- };
23
- legals: {
24
- description: string;
25
- };
26
- flow: {
27
- control: {
28
- type: string;
29
- };
30
- description: string;
31
- };
32
- dataQaId: {
33
- control: {
34
- type: string;
35
- };
36
- description: string;
37
- };
38
- };
39
- };
40
- export default _default;
41
- export declare const Main: Story<PricePointProps>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- import { SelectProps } from './Select.types';
2
- export declare function Select({ wrapperClassName, dataQaId, id, value, placeholder, disabled, readOnly, error, type, onChange, options, firstOptionText, ...props }: SelectProps): JSX.Element;
@@ -1,5 +0,0 @@
1
- import { Meta, Story } from '@storybook/react';
2
- import { SelectProps } from './Select.types';
3
- declare const _default: Meta<import("@storybook/react").Args>;
4
- export default _default;
5
- export declare const Select: Story<SelectProps>;
@@ -1,2 +0,0 @@
1
- import { TopLegalsProps } from './TopLegals.types';
2
- export declare function TopLegals({ locale, className, legals, flow, dataQaId }: TopLegalsProps): JSX.Element;
@@ -1,41 +0,0 @@
1
- import { Story } from '@storybook/react';
2
- import { TopLegalsProps } from './TopLegals.types';
3
- declare const _default: {
4
- title: string;
5
- component: string;
6
- parameters: {
7
- importObject: string;
8
- importPath: string;
9
- };
10
- argTypes: {
11
- locale: {
12
- control: {
13
- type: string;
14
- };
15
- description: string;
16
- };
17
- className: {
18
- control: {
19
- type: string;
20
- };
21
- description: string;
22
- };
23
- legals: {
24
- description: string;
25
- };
26
- flow: {
27
- control: {
28
- type: string;
29
- };
30
- description: string;
31
- };
32
- dataQaId: {
33
- control: {
34
- type: string;
35
- };
36
- description: string;
37
- };
38
- };
39
- };
40
- export default _default;
41
- export declare const Main: Story<TopLegalsProps>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,8 +0,0 @@
1
- import { ILegalFlows, ILegals } from '../Disclaimers/Disclaimers.types';
2
- export interface TopLegalsProps {
3
- locale: string;
4
- legals: Array<ILegals>;
5
- className?: string;
6
- flow?: ILegalFlows;
7
- dataQaId?: string;
8
- }
@@ -1,20 +0,0 @@
1
- import { Button } from './Button/Button';
2
- import { ChainRedirect } from './ChainRedirect/ChainRedirect';
3
- import { Disclaimers } from './Disclaimers/Disclaimers';
4
- import { ExtraDisclaimers } from './ExtraDisclaimers/ExtraDisclaimers';
5
- import { Input } from './Input/Input';
6
- import { InputType } from './Input/Input.types';
7
- import { defineMessages, injectIntl, IntlProvider } from './Intl/Intl';
8
- import { LanguageSwitcher } from './LanguageSwitcher/LanguageSwitcher';
9
- import { Link } from './Link/Link';
10
- import { MOLink } from './MOLink/MOLink';
11
- import { IKeywordShortcode } from './MOLink/MOLink.types';
12
- import { PhoneEntry } from './PhoneEntry/PhoneEntry';
13
- import { PINEntry } from './PINEntry/PINEntry';
14
- import { PricePoint } from './PricePoint/PricePoint';
15
- import { Select } from './Select/Select';
16
- import { SelectType } from './Select/Select.types';
17
- import { TopLegals } from './TopLegals/TopLegals';
18
- import { getMsisdnPrefix } from './utils/parsePhoneNumber';
19
- export { Button, ChainRedirect, Disclaimers, ExtraDisclaimers, Input, InputType, defineMessages, injectIntl, IntlProvider, LanguageSwitcher, Link, MOLink, PhoneEntry, PINEntry, PricePoint, Select, SelectType, TopLegals, getMsisdnPrefix };
20
- export type { IKeywordShortcode };
@@ -1,90 +0,0 @@
1
- /**
2
- * These mappings map a character (key) to a specific digit that should
3
- * replace it for normalization purposes. Non-European digits that
4
- * may be used in phone numbers are mapped to a European equivalent.
5
- *
6
- * E.g. in Iraq they don't write `+442323234` but rather `+٤٤٢٣٢٣٢٣٤`.
7
- *
8
- */
9
- export declare const DIGITS: {
10
- '0': string;
11
- '1': string;
12
- '2': string;
13
- '3': string;
14
- '4': string;
15
- '5': string;
16
- '6': string;
17
- '7': string;
18
- '8': string;
19
- '9': string;
20
- '\uFF10': string;
21
- '\uFF11': string;
22
- '\uFF12': string;
23
- '\uFF13': string;
24
- '\uFF14': string;
25
- '\uFF15': string;
26
- '\uFF16': string;
27
- '\uFF17': string;
28
- '\uFF18': string;
29
- '\uFF19': string;
30
- '\u0660': string;
31
- '\u0661': string;
32
- '\u0662': string;
33
- '\u0663': string;
34
- '\u0664': string;
35
- '\u0665': string;
36
- '\u0666': string;
37
- '\u0667': string;
38
- '\u0668': string;
39
- '\u0669': string;
40
- '\u06F0': string;
41
- '\u06F1': string;
42
- '\u06F2': string;
43
- '\u06F3': string;
44
- '\u06F4': string;
45
- '\u06F5': string;
46
- '\u06F6': string;
47
- '\u06F7': string;
48
- '\u06F8': string;
49
- '\u06F9': string;
50
- };
51
- export declare const parseDigit: (character: string) => string | undefined;
52
- /**
53
- * Parses phone number digits from a string.
54
- * Drops all punctuation leaving only digits.
55
- * Also converts wide-ascii and arabic-indic numerals to conventional numerals.
56
- *
57
- * E.g. in Iraq they don't write `+442323234` but rather `+٤٤٢٣٢٣٢٣٤`.
58
- * parseDigits('8 (800) 555')
59
- * Outputs '8800555'.
60
- *
61
- */
62
- export declare const parseDigits: (string: string) => string;
63
- /**
64
- * Parses phone number characters from a string.
65
- * Drops all punctuation leaving only digits and the leading `+` sign (if any).
66
- * Also converts wide-ascii and arabic-indic numerals to conventional numerals.
67
- *
68
- * E.g. in Iraq they don't write `+442323234` but rather `+٤٤٢٣٢٣٢٣٤`.
69
- * Outputs '8800555'.
70
- * parseIncompletePhoneNumber('8 (800) 555')
71
- * Outputs '+7800555'.
72
- * parseIncompletePhoneNumber('+7 800 555')
73
- *
74
- */
75
- export declare const parseIncompletePhoneNumber: (string: string) => string;
76
- /**
77
- * Parses next character while parsing phone number digits (including a `+`)
78
- * from text: discards everything except `+` and digits, and `+` is only allowed
79
- * at the start of a phone number.
80
- */
81
- export declare const parsePhoneNumberCharacter: (character: string, prevParsedCharacters: string) => string | undefined;
82
- /**
83
- * Check if nationalNumber is a valid number by removing `+` if exist
84
- */
85
- export declare const getBupperNumber: (nationalNumber: string) => string;
86
- /**
87
- * Verify string contains a number
88
- */
89
- export declare const hasNumber: (stringToCheck: string) => boolean;
90
- export declare const getMsisdnPrefix: (countryCode: string) => any;
@@ -1,2 +0,0 @@
1
- declare const _default: () => Record<string, string>;
2
- export default _default;
@@ -1,14 +0,0 @@
1
- import { RenderOptions } from '@testing-library/react';
2
- import React, { ReactElement } from 'react';
3
- import renderer from 'react-test-renderer';
4
- declare const customRender: (ui: ReactElement, options?: Omit<RenderOptions, 'wrapper'>) => import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>;
5
- declare const jsonRenderer: (ui: React.ReactNode) => renderer.ReactTestRendererJSON | renderer.ReactTestRendererJSON[] | null;
6
- declare const dummyTracker: {
7
- advancedInFlow: () => undefined;
8
- advancedInPreFlow: () => undefined;
9
- recedeInFlow: () => undefined;
10
- customEvent: () => undefined;
11
- sendOptInFlowEvent: () => undefined;
12
- };
13
- export * from '@testing-library/react';
14
- export { customRender as render, jsonRenderer, dummyTracker };