ouisys-component-library 1.0.0 → 2.0.2

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 (185) 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.map +1 -0
  5. package/dist/Disclaimers.js +2 -0
  6. package/dist/Disclaimers.js.map +1 -0
  7. package/dist/ExtraDisclaimers.js +2 -0
  8. package/dist/ExtraDisclaimers.js.map +1 -0
  9. package/dist/Features.js +2 -0
  10. package/dist/Features.js.map +1 -0
  11. package/dist/Input.js +2 -0
  12. package/dist/Input.js.map +1 -0
  13. package/dist/Intl-2eab59e1.js +2 -0
  14. package/dist/Intl-2eab59e1.js.map +1 -0
  15. package/dist/IntlProvider.js +2 -0
  16. package/dist/IntlProvider.js.map +1 -0
  17. package/dist/LanguageSwitcher.js +2 -0
  18. package/dist/LanguageSwitcher.js.map +1 -0
  19. package/dist/Link.js +2 -0
  20. package/dist/Link.js.map +1 -0
  21. package/{build/MOLink.js → dist/MOLink-5e2f5f82.js} +2 -2
  22. package/dist/MOLink-5e2f5f82.js.map +1 -0
  23. package/dist/MOLink.js +2 -0
  24. package/{build/PinEntry.js → dist/PINEntry.js} +2 -2
  25. package/dist/PINEntry.js.map +1 -0
  26. package/dist/PhoneEntry.js +2 -0
  27. package/dist/PhoneEntry.js.map +1 -0
  28. package/dist/PricePoint.js +2 -0
  29. package/dist/PricePoint.js.map +1 -0
  30. package/{build → dist}/Select.js +1 -1
  31. package/dist/Select.js.map +1 -0
  32. package/dist/Showcase.js +2 -0
  33. package/dist/Showcase.js.map +1 -0
  34. package/dist/TopLegals.js +2 -0
  35. package/dist/TopLegals.js.map +1 -0
  36. package/dist/Translate.js +2 -0
  37. package/dist/Translate.js.map +1 -0
  38. package/dist/defineMessages.js +2 -0
  39. package/dist/defineMessages.js.map +1 -0
  40. package/dist/formatSMSLink.js +2 -0
  41. package/dist/formatSMSLink.js.map +1 -0
  42. package/dist/injectIntl.js +2 -0
  43. package/dist/injectIntl.js.map +1 -0
  44. package/dist/types/Button/Button.d.ts +5 -0
  45. package/dist/types/Disclaimers/Disclaimers.d.ts +5 -0
  46. package/dist/types/ExtraDisclaimers/ExtraDisclaimers.d.ts +5 -0
  47. package/dist/types/Features/Features.d.ts +5 -0
  48. package/dist/types/Features/Features.types.d.ts +16 -0
  49. package/dist/types/Input/Input.d.ts +5 -0
  50. package/dist/types/LanguageSwitcher/LanguageSwitcher.d.ts +5 -0
  51. package/dist/types/Link/Link.d.ts +5 -0
  52. package/dist/types/PricePoint/PricePoint.d.ts +5 -0
  53. package/dist/types/Select/Select.d.ts +5 -0
  54. package/{build → dist}/types/Select/Select.types.d.ts +5 -1
  55. package/dist/types/Showcase/Showcase.d.ts +5 -0
  56. package/dist/types/Showcase/Showcase.types.d.ts +15 -0
  57. package/dist/types/TopLegals/TopLegals.d.ts +5 -0
  58. package/dist/types/components/button/Button.d.ts +2 -0
  59. package/dist/types/components/chainredirect/ChainRedirect.d.ts +2 -0
  60. package/dist/types/components/disclaimers/Disclaimers.d.ts +2 -0
  61. package/dist/types/components/extradisclaimers/ExtraDisclaimers.d.ts +2 -0
  62. package/dist/types/components/features/Features.d.ts +2 -0
  63. package/dist/types/components/input/Input.d.ts +2 -0
  64. package/dist/types/components/intlprovider/IntlProvider.d.ts +1 -0
  65. package/dist/types/components/languageswitcher/LanguageSwitcher.d.ts +2 -0
  66. package/dist/types/components/link/Link.d.ts +2 -0
  67. package/dist/types/components/molink/MOLink.d.ts +2 -0
  68. package/dist/types/components/phoneentry/PhoneEntry.d.ts +2 -0
  69. package/dist/types/components/pinentry/PINEntry.d.ts +2 -0
  70. package/dist/types/components/pricepoint/PricePoint.d.ts +2 -0
  71. package/dist/types/components/select/Select.d.ts +2 -0
  72. package/dist/types/components/showcase/Showcase.d.ts +2 -0
  73. package/dist/types/components/toplegals/TopLegals.d.ts +2 -0
  74. package/dist/types/components/translate/Translate.d.ts +1 -0
  75. package/dist/types/utilities/definemessages/defineMessages.d.ts +1 -0
  76. package/dist/types/utilities/formatsmslink/formatSMSLink.d.ts +1 -0
  77. package/dist/types/utilities/injectintl/injectIntl.d.ts +1 -0
  78. package/package.json +99 -81
  79. package/build/Button.js +0 -2
  80. package/build/Button.js.map +0 -1
  81. package/build/ChainRedirect.js.map +0 -1
  82. package/build/Disclaimers.js +0 -2
  83. package/build/Disclaimers.js.map +0 -1
  84. package/build/ExtraDisclaimers.js +0 -2
  85. package/build/ExtraDisclaimers.js.map +0 -1
  86. package/build/Input.js +0 -2
  87. package/build/Input.js.map +0 -1
  88. package/build/Intl.js +0 -2
  89. package/build/Intl.js.map +0 -1
  90. package/build/LanguageSwitcher.js +0 -2
  91. package/build/LanguageSwitcher.js.map +0 -1
  92. package/build/Link.js +0 -2
  93. package/build/Link.js.map +0 -1
  94. package/build/PhoneEntry.js +0 -2
  95. package/build/PhoneEntry.js.map +0 -1
  96. package/build/PinEntry.js.map +0 -1
  97. package/build/PricePoint.js +0 -2
  98. package/build/PricePoint.js.map +0 -1
  99. package/build/Select.js.map +0 -1
  100. package/build/TopLegals.js +0 -2
  101. package/build/TopLegals.js.map +0 -1
  102. package/build/src/Button/Button.d.ts +0 -2
  103. package/build/src/Button/Button.stories.d.ts +0 -41
  104. package/build/src/Button/Button.test.d.ts +0 -1
  105. package/build/src/Button/Button.types.d.ts +0 -10
  106. package/build/src/ChainRedirect/ChainRedirect.d.ts +0 -3
  107. package/build/src/ChainRedirect/ChainRedirect.stories.d.ts +0 -32
  108. package/build/src/ChainRedirect/ChainRedirect.types.d.ts +0 -7
  109. package/build/src/Disclaimers/Disclaimers.d.ts +0 -2
  110. package/build/src/Disclaimers/Disclaimers.stories.d.ts +0 -41
  111. package/build/src/Disclaimers/Disclaimers.test.d.ts +0 -1
  112. package/build/src/Disclaimers/Disclaimers.types.d.ts +0 -36
  113. package/build/src/ExtraDisclaimers/ExtraDisclaimers.d.ts +0 -2
  114. package/build/src/ExtraDisclaimers/ExtraDisclaimers.stories.d.ts +0 -41
  115. package/build/src/ExtraDisclaimers/ExtraDisclaimers.test.d.ts +0 -1
  116. package/build/src/ExtraDisclaimers/ExtraDisclaimers.types.d.ts +0 -8
  117. package/build/src/Input/Input.d.ts +0 -2
  118. package/build/src/Input/Input.stories.d.ts +0 -5
  119. package/build/src/Input/Input.types.d.ts +0 -45
  120. package/build/src/Intl/Intl.d.ts +0 -18
  121. package/build/src/LanguageSwitcher/LanguageSwitcher.d.ts +0 -2
  122. package/build/src/LanguageSwitcher/LanguageSwitcher.stories.d.ts +0 -38
  123. package/build/src/LanguageSwitcher/LanguageSwitcher.test.d.ts +0 -1
  124. package/build/src/LanguageSwitcher/LanguageSwitcher.types.d.ts +0 -13
  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/Link/Link.types.d.ts +0 -11
  129. package/build/src/MOLink/MOLink.d.ts +0 -4
  130. package/build/src/MOLink/MOLink.stories.d.ts +0 -32
  131. package/build/src/MOLink/MOLink.test.d.ts +0 -1
  132. package/build/src/MOLink/MOLink.types.d.ts +0 -10
  133. package/build/src/PINEntry/PINEntry.d.ts +0 -3
  134. package/build/src/PINEntry/PINEntry.stories.d.ts +0 -54
  135. package/build/src/PINEntry/PINEntry.types.d.ts +0 -23
  136. package/build/src/PhoneEntry/PhoneEntry.d.ts +0 -3
  137. package/build/src/PhoneEntry/PhoneEntry.stories.d.ts +0 -59
  138. package/build/src/PhoneEntry/PhoneEntry.types.d.ts +0 -38
  139. package/build/src/PricePoint/PricePoint.d.ts +0 -2
  140. package/build/src/PricePoint/PricePoint.stories.d.ts +0 -41
  141. package/build/src/PricePoint/PricePoint.test.d.ts +0 -1
  142. package/build/src/PricePoint/PricePoint.types.d.ts +0 -9
  143. package/build/src/Select/Select.d.ts +0 -2
  144. package/build/src/Select/Select.stories.d.ts +0 -5
  145. package/build/src/Select/Select.types.d.ts +0 -30
  146. package/build/src/TopLegals/TopLegals.d.ts +0 -2
  147. package/build/src/TopLegals/TopLegals.stories.d.ts +0 -41
  148. package/build/src/TopLegals/TopLegals.test.d.ts +0 -1
  149. package/build/src/TopLegals/TopLegals.types.d.ts +0 -8
  150. package/build/src/custom-types.d.ts +0 -8
  151. package/build/src/index.d.ts +0 -20
  152. package/build/src/utils/parsePhoneNumber.d.ts +0 -90
  153. package/build/src/utils/searchToObject.d.ts +0 -2
  154. package/build/src/utils/test/index.d.ts +0 -14
  155. package/build/types/Button/Button.d.ts +0 -5
  156. package/build/types/Disclaimers/Disclaimers.d.ts +0 -5
  157. package/build/types/ExtraDisclaimers/ExtraDisclaimers.d.ts +0 -5
  158. package/build/types/Input/Input.d.ts +0 -5
  159. package/build/types/LanguageSwitcher/LanguageSwitcher.d.ts +0 -5
  160. package/build/types/Link/Link.d.ts +0 -5
  161. package/build/types/PricePoint/PricePoint.d.ts +0 -5
  162. package/build/types/Select/Select.d.ts +0 -5
  163. package/build/types/TopLegals/TopLegals.d.ts +0 -5
  164. /package/{build → dist}/ChainRedirect.js +0 -0
  165. /package/{build → dist}/MOLink.js.map +0 -0
  166. /package/{build → dist}/style-inject.es-1f59c1d0.js +0 -0
  167. /package/{build → dist}/style-inject.es-1f59c1d0.js.map +0 -0
  168. /package/{build → dist}/types/Button/Button.types.d.ts +0 -0
  169. /package/{build → dist}/types/ChainRedirect/ChainRedirect.d.ts +0 -0
  170. /package/{build → dist}/types/ChainRedirect/ChainRedirect.types.d.ts +0 -0
  171. /package/{build → dist}/types/Disclaimers/Disclaimers.types.d.ts +0 -0
  172. /package/{build → dist}/types/ExtraDisclaimers/ExtraDisclaimers.types.d.ts +0 -0
  173. /package/{build → dist}/types/Input/Input.types.d.ts +0 -0
  174. /package/{build → dist}/types/Intl/Intl.d.ts +0 -0
  175. /package/{build → dist}/types/LanguageSwitcher/LanguageSwitcher.types.d.ts +0 -0
  176. /package/{build → dist}/types/Link/Link.types.d.ts +0 -0
  177. /package/{build → dist}/types/MOLink/MOLink.d.ts +0 -0
  178. /package/{build → dist}/types/MOLink/MOLink.types.d.ts +0 -0
  179. /package/{build/types/PinEntry/PinEntry.d.ts → dist/types/PINEntry/PINEntry.d.ts} +0 -0
  180. /package/{build/types/PinEntry → dist/types/PINEntry}/PINEntry.types.d.ts +0 -0
  181. /package/{build → dist}/types/PhoneEntry/PhoneEntry.d.ts +0 -0
  182. /package/{build → dist}/types/PhoneEntry/PhoneEntry.types.d.ts +0 -0
  183. /package/{build → dist}/types/PricePoint/PricePoint.types.d.ts +0 -0
  184. /package/{build → dist}/types/TopLegals/TopLegals.types.d.ts +0 -0
  185. /package/{build → dist}/types/custom-types.d.ts +0 -0
@@ -1,23 +0,0 @@
1
- /// <reference types="react" />
2
- import { ITracker } from '../custom-types';
3
- export interface interfacePINEntry {
4
- tracker: ITracker;
5
- pin: string;
6
- setPin: (pin: string) => void;
7
- isPinFilled: boolean;
8
- setIsPinFilled: (isPinFilled: boolean) => void;
9
- inputElementRef?: React.RefObject<HTMLInputElement>;
10
- id?: string;
11
- className?: string;
12
- dataQaId?: string;
13
- maxLength?: number;
14
- minLength?: number;
15
- placeholder?: string;
16
- isAlphanumeric?: boolean;
17
- showIconInput?: boolean;
18
- onChange?: (_ev: React.ChangeEvent<HTMLInputElement>) => void;
19
- onKeyPress?: (_ev: React.KeyboardEvent<HTMLInputElement>) => void;
20
- onPaste?: (_ev: React.ClipboardEvent<HTMLInputElement>) => void;
21
- onBlur?: (_ev: React.FocusEvent<HTMLInputElement>) => void;
22
- onFocus?: (_ev: React.FocusEvent<HTMLInputElement>) => void;
23
- }
@@ -1,3 +0,0 @@
1
- import { interfacePhoneEntry } from './PhoneEntry.types';
2
- declare const PhoneEntry: ({ 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;
3
- export { PhoneEntry };
@@ -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,38 +0,0 @@
1
- /// <reference types="react" />
2
- import { ITracker } from '../custom-types';
3
- type IPropsOnChange = {
4
- msisdn: string;
5
- isValid: boolean;
6
- nationalNumber: string;
7
- internationalNumber: string;
8
- bupperNumber: string;
9
- };
10
- export interface interfacePhoneEntry {
11
- tracker: ITracker;
12
- country: string;
13
- msisdn: string;
14
- setMsisdn: (msisdn: string) => void;
15
- internationalNumber: string;
16
- setInternationalNumber: (internationalNumber: string) => void;
17
- isMsisdnFilled: boolean;
18
- setIsMsisdnFilled: (isMsisdnFilled: boolean) => void;
19
- inputElementRef?: React.RefObject<HTMLInputElement>;
20
- id?: string;
21
- className?: string;
22
- dataQaId?: string;
23
- minLength?: number;
24
- placeholder?: string;
25
- isValid: boolean;
26
- setIsValid: (isValid: boolean) => void;
27
- userInteract: boolean;
28
- setUserInteract: (userInteract: boolean) => void;
29
- showIconInput?: boolean;
30
- showIconValid?: boolean;
31
- showIconInvalid?: boolean;
32
- onChange?: (arg: IPropsOnChange, _ev?: React.ChangeEvent<HTMLInputElement>) => void;
33
- onKeyPress?: (_ev: React.KeyboardEvent<HTMLInputElement>) => void;
34
- onPaste?: (_ev: React.ClipboardEvent<HTMLInputElement>) => void;
35
- onBlur?: (_ev: React.FocusEvent<HTMLInputElement>) => void;
36
- onFocus?: (_ev: React.FocusEvent<HTMLInputElement>) => void;
37
- }
38
- export {};
@@ -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,9 +0,0 @@
1
- import { ILegalFlows, ILegals } from '../Disclaimers/Disclaimers.types';
2
- export interface PricePointProps {
3
- locale: string;
4
- legals: Array<ILegals>;
5
- operator?: string;
6
- className?: string;
7
- flow?: ILegalFlows;
8
- dataQaId?: string;
9
- }
@@ -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,30 +0,0 @@
1
- /// <reference types="react" />
2
- export type SelectProps = React.SelectHTMLAttributes<HTMLSelectElement> & {
3
- value: string;
4
- label?: string;
5
- onChange: React.ChangeEventHandler<HTMLSelectElement> | undefined;
6
- type?: SelectType;
7
- placeholder?: string;
8
- error?: string;
9
- dataQaId?: string;
10
- disabled?: boolean;
11
- readOnly?: boolean;
12
- required?: boolean;
13
- maxLength?: number;
14
- minLength?: number;
15
- wrapperClassName?: string;
16
- options?: SelectOption[];
17
- onBlur?: React.ChangeEventHandler<HTMLSelectElement> | undefined;
18
- firstOptionText?: string;
19
- };
20
- export interface SelectOption {
21
- value: string;
22
- label: string;
23
- }
24
- export declare enum SelectType {
25
- Country = "country"
26
- }
27
- export declare enum InputSize {
28
- Medium = "Medium",
29
- Large = "Large"
30
- }
@@ -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,8 +0,0 @@
1
- export declare type IOptInFlowName = 'Block' | 'Click to sms' | 'Hybrid Pin' | 'Msisdn to sms' | 'Not available' | 'Pin' | 'Redirect' | 'To be determined' | 'USSD' | '3G click';
2
- export declare type ITracker = {
3
- advancedInFlow: (flow: string, action: string, args?: any) => void;
4
- advancedInPreFlow: (label: string, args?: any) => void;
5
- recedeInFlow: (flow: string, newState: string, args?: any) => void;
6
- customEvent: (category: string, action: string, label: string, arg?: any) => void;
7
- sendOptInFlowEvent: (optInFlowName: IOptInFlowName) => void;
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 };
@@ -1,5 +0,0 @@
1
- import { interfaceButton } from './Button.types.js';
2
-
3
- declare function Button({ children, className, dataQaId, allowEvinaClass, isMCP, tracker, type, onClick, ...props }: interfaceButton): JSX.Element;
4
-
5
- export { Button };
@@ -1,5 +0,0 @@
1
- import { DisclaimersProps } from './Disclaimers.types.js';
2
-
3
- declare function Disclaimers({ locale, className, legals, flow, dataQaId, mcc }: DisclaimersProps): JSX.Element;
4
-
5
- export { Disclaimers };
@@ -1,5 +0,0 @@
1
- import { ExtraDisclaimersProps } from './ExtraDisclaimers.types.js';
2
-
3
- declare function ExtraDisclaimers({ locale, className, legals, flow, dataQaId }: ExtraDisclaimersProps): JSX.Element;
4
-
5
- export { ExtraDisclaimers };
@@ -1,5 +0,0 @@
1
- import { InputProps } from './Input.types.js';
2
-
3
- declare function Input({ wrapperClassName, dataQaId, id, name, value, placeholder, disabled, readOnly, error, type, size, onChange, ...props }: InputProps): JSX.Element;
4
-
5
- export { Input };
@@ -1,5 +0,0 @@
1
- import { interfaceLanguageSwitcher } from './LanguageSwitcher.types.js';
2
-
3
- declare function LanguageSwitcher({ locale, switchLang, options, className, dataQaId, tracker }: interfaceLanguageSwitcher): JSX.Element | null;
4
-
5
- export { LanguageSwitcher };
@@ -1,5 +0,0 @@
1
- import { interfaceLink } from './Link.types.js';
2
-
3
- declare function Link({ children, className, dataQaId, href, allowEvinaClass, isMCP, locale, tracker, onClick, ...props }: interfaceLink): JSX.Element;
4
-
5
- export { Link };
@@ -1,5 +0,0 @@
1
- import { PricePointProps } from './PricePoint.types.js';
2
-
3
- declare function PricePoint({ locale, className, legals, flow, dataQaId, operator }: PricePointProps): JSX.Element;
4
-
5
- export { PricePoint };
@@ -1,5 +0,0 @@
1
- import { SelectProps } from './Select.types.js';
2
-
3
- declare function Select({ wrapperClassName, dataQaId, id, value, placeholder, disabled, readOnly, error, type, onChange, options, firstOptionText, ...props }: SelectProps): JSX.Element;
4
-
5
- export { Select };
@@ -1,5 +0,0 @@
1
- import { TopLegalsProps } from './TopLegals.types.js';
2
-
3
- declare function TopLegals({ locale, className, legals, flow, dataQaId }: TopLegalsProps): JSX.Element;
4
-
5
- export { TopLegals };
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes