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.
- package/README.md +54 -27
- package/dist/Button.js +2 -0
- package/dist/Button.js.map +1 -0
- package/dist/ChainRedirect.js.map +1 -0
- package/dist/Disclaimers.js +2 -0
- package/dist/Disclaimers.js.map +1 -0
- package/dist/ExtraDisclaimers.js +2 -0
- package/dist/ExtraDisclaimers.js.map +1 -0
- package/dist/Features.js +2 -0
- package/dist/Features.js.map +1 -0
- package/dist/Input.js +2 -0
- package/dist/Input.js.map +1 -0
- package/dist/Intl-2eab59e1.js +2 -0
- package/dist/Intl-2eab59e1.js.map +1 -0
- package/dist/IntlProvider.js +2 -0
- package/dist/IntlProvider.js.map +1 -0
- package/dist/LanguageSwitcher.js +2 -0
- package/dist/LanguageSwitcher.js.map +1 -0
- package/dist/Link.js +2 -0
- package/dist/Link.js.map +1 -0
- package/{build/MOLink.js → dist/MOLink-5e2f5f82.js} +2 -2
- package/dist/MOLink-5e2f5f82.js.map +1 -0
- package/dist/MOLink.js +2 -0
- package/{build/PinEntry.js → dist/PINEntry.js} +2 -2
- package/dist/PINEntry.js.map +1 -0
- package/dist/PhoneEntry.js +2 -0
- package/dist/PhoneEntry.js.map +1 -0
- package/dist/PricePoint.js +2 -0
- package/dist/PricePoint.js.map +1 -0
- package/{build → dist}/Select.js +1 -1
- package/dist/Select.js.map +1 -0
- package/dist/Showcase.js +2 -0
- package/dist/Showcase.js.map +1 -0
- package/dist/TopLegals.js +2 -0
- package/dist/TopLegals.js.map +1 -0
- package/dist/Translate.js +2 -0
- package/dist/Translate.js.map +1 -0
- package/dist/defineMessages.js +2 -0
- package/dist/defineMessages.js.map +1 -0
- package/dist/formatSMSLink.js +2 -0
- package/dist/formatSMSLink.js.map +1 -0
- package/dist/injectIntl.js +2 -0
- package/dist/injectIntl.js.map +1 -0
- package/dist/types/Button/Button.d.ts +5 -0
- package/dist/types/Disclaimers/Disclaimers.d.ts +5 -0
- package/dist/types/ExtraDisclaimers/ExtraDisclaimers.d.ts +5 -0
- package/dist/types/Features/Features.d.ts +5 -0
- package/dist/types/Features/Features.types.d.ts +16 -0
- package/dist/types/Input/Input.d.ts +5 -0
- package/dist/types/LanguageSwitcher/LanguageSwitcher.d.ts +5 -0
- package/dist/types/Link/Link.d.ts +5 -0
- package/dist/types/PricePoint/PricePoint.d.ts +5 -0
- package/dist/types/Select/Select.d.ts +5 -0
- package/{build → dist}/types/Select/Select.types.d.ts +5 -1
- package/dist/types/Showcase/Showcase.d.ts +5 -0
- package/dist/types/Showcase/Showcase.types.d.ts +15 -0
- package/dist/types/TopLegals/TopLegals.d.ts +5 -0
- package/dist/types/components/button/Button.d.ts +2 -0
- package/dist/types/components/chainredirect/ChainRedirect.d.ts +2 -0
- package/dist/types/components/disclaimers/Disclaimers.d.ts +2 -0
- package/dist/types/components/extradisclaimers/ExtraDisclaimers.d.ts +2 -0
- package/dist/types/components/features/Features.d.ts +2 -0
- package/dist/types/components/input/Input.d.ts +2 -0
- package/dist/types/components/intlprovider/IntlProvider.d.ts +1 -0
- package/dist/types/components/languageswitcher/LanguageSwitcher.d.ts +2 -0
- package/dist/types/components/link/Link.d.ts +2 -0
- package/dist/types/components/molink/MOLink.d.ts +2 -0
- package/dist/types/components/phoneentry/PhoneEntry.d.ts +2 -0
- package/dist/types/components/pinentry/PINEntry.d.ts +2 -0
- package/dist/types/components/pricepoint/PricePoint.d.ts +2 -0
- package/dist/types/components/select/Select.d.ts +2 -0
- package/dist/types/components/showcase/Showcase.d.ts +2 -0
- package/dist/types/components/toplegals/TopLegals.d.ts +2 -0
- package/dist/types/components/translate/Translate.d.ts +1 -0
- package/dist/types/utilities/definemessages/defineMessages.d.ts +1 -0
- package/dist/types/utilities/formatsmslink/formatSMSLink.d.ts +1 -0
- package/dist/types/utilities/injectintl/injectIntl.d.ts +1 -0
- package/package.json +99 -81
- package/build/Button.js +0 -2
- package/build/Button.js.map +0 -1
- package/build/ChainRedirect.js.map +0 -1
- package/build/Disclaimers.js +0 -2
- package/build/Disclaimers.js.map +0 -1
- package/build/ExtraDisclaimers.js +0 -2
- package/build/ExtraDisclaimers.js.map +0 -1
- package/build/Input.js +0 -2
- package/build/Input.js.map +0 -1
- package/build/Intl.js +0 -2
- package/build/Intl.js.map +0 -1
- package/build/LanguageSwitcher.js +0 -2
- package/build/LanguageSwitcher.js.map +0 -1
- package/build/Link.js +0 -2
- package/build/Link.js.map +0 -1
- package/build/PhoneEntry.js +0 -2
- package/build/PhoneEntry.js.map +0 -1
- package/build/PinEntry.js.map +0 -1
- package/build/PricePoint.js +0 -2
- package/build/PricePoint.js.map +0 -1
- package/build/Select.js.map +0 -1
- package/build/TopLegals.js +0 -2
- package/build/TopLegals.js.map +0 -1
- package/build/src/Button/Button.d.ts +0 -2
- package/build/src/Button/Button.stories.d.ts +0 -41
- package/build/src/Button/Button.test.d.ts +0 -1
- package/build/src/Button/Button.types.d.ts +0 -10
- package/build/src/ChainRedirect/ChainRedirect.d.ts +0 -3
- package/build/src/ChainRedirect/ChainRedirect.stories.d.ts +0 -32
- package/build/src/ChainRedirect/ChainRedirect.types.d.ts +0 -7
- package/build/src/Disclaimers/Disclaimers.d.ts +0 -2
- package/build/src/Disclaimers/Disclaimers.stories.d.ts +0 -41
- package/build/src/Disclaimers/Disclaimers.test.d.ts +0 -1
- package/build/src/Disclaimers/Disclaimers.types.d.ts +0 -36
- package/build/src/ExtraDisclaimers/ExtraDisclaimers.d.ts +0 -2
- package/build/src/ExtraDisclaimers/ExtraDisclaimers.stories.d.ts +0 -41
- package/build/src/ExtraDisclaimers/ExtraDisclaimers.test.d.ts +0 -1
- package/build/src/ExtraDisclaimers/ExtraDisclaimers.types.d.ts +0 -8
- package/build/src/Input/Input.d.ts +0 -2
- package/build/src/Input/Input.stories.d.ts +0 -5
- package/build/src/Input/Input.types.d.ts +0 -45
- package/build/src/Intl/Intl.d.ts +0 -18
- package/build/src/LanguageSwitcher/LanguageSwitcher.d.ts +0 -2
- package/build/src/LanguageSwitcher/LanguageSwitcher.stories.d.ts +0 -38
- package/build/src/LanguageSwitcher/LanguageSwitcher.test.d.ts +0 -1
- package/build/src/LanguageSwitcher/LanguageSwitcher.types.d.ts +0 -13
- package/build/src/Link/Link.d.ts +0 -2
- package/build/src/Link/Link.stories.d.ts +0 -51
- package/build/src/Link/Link.test.d.ts +0 -1
- package/build/src/Link/Link.types.d.ts +0 -11
- package/build/src/MOLink/MOLink.d.ts +0 -4
- package/build/src/MOLink/MOLink.stories.d.ts +0 -32
- package/build/src/MOLink/MOLink.test.d.ts +0 -1
- package/build/src/MOLink/MOLink.types.d.ts +0 -10
- package/build/src/PINEntry/PINEntry.d.ts +0 -3
- package/build/src/PINEntry/PINEntry.stories.d.ts +0 -54
- package/build/src/PINEntry/PINEntry.types.d.ts +0 -23
- package/build/src/PhoneEntry/PhoneEntry.d.ts +0 -3
- package/build/src/PhoneEntry/PhoneEntry.stories.d.ts +0 -59
- package/build/src/PhoneEntry/PhoneEntry.types.d.ts +0 -38
- package/build/src/PricePoint/PricePoint.d.ts +0 -2
- package/build/src/PricePoint/PricePoint.stories.d.ts +0 -41
- package/build/src/PricePoint/PricePoint.test.d.ts +0 -1
- package/build/src/PricePoint/PricePoint.types.d.ts +0 -9
- package/build/src/Select/Select.d.ts +0 -2
- package/build/src/Select/Select.stories.d.ts +0 -5
- package/build/src/Select/Select.types.d.ts +0 -30
- package/build/src/TopLegals/TopLegals.d.ts +0 -2
- package/build/src/TopLegals/TopLegals.stories.d.ts +0 -41
- package/build/src/TopLegals/TopLegals.test.d.ts +0 -1
- package/build/src/TopLegals/TopLegals.types.d.ts +0 -8
- package/build/src/custom-types.d.ts +0 -8
- package/build/src/index.d.ts +0 -20
- package/build/src/utils/parsePhoneNumber.d.ts +0 -90
- package/build/src/utils/searchToObject.d.ts +0 -2
- package/build/src/utils/test/index.d.ts +0 -14
- package/build/types/Button/Button.d.ts +0 -5
- package/build/types/Disclaimers/Disclaimers.d.ts +0 -5
- package/build/types/ExtraDisclaimers/ExtraDisclaimers.d.ts +0 -5
- package/build/types/Input/Input.d.ts +0 -5
- package/build/types/LanguageSwitcher/LanguageSwitcher.d.ts +0 -5
- package/build/types/Link/Link.d.ts +0 -5
- package/build/types/PricePoint/PricePoint.d.ts +0 -5
- package/build/types/Select/Select.d.ts +0 -5
- package/build/types/TopLegals/TopLegals.d.ts +0 -5
- /package/{build → dist}/ChainRedirect.js +0 -0
- /package/{build → dist}/MOLink.js.map +0 -0
- /package/{build → dist}/style-inject.es-1f59c1d0.js +0 -0
- /package/{build → dist}/style-inject.es-1f59c1d0.js.map +0 -0
- /package/{build → dist}/types/Button/Button.types.d.ts +0 -0
- /package/{build → dist}/types/ChainRedirect/ChainRedirect.d.ts +0 -0
- /package/{build → dist}/types/ChainRedirect/ChainRedirect.types.d.ts +0 -0
- /package/{build → dist}/types/Disclaimers/Disclaimers.types.d.ts +0 -0
- /package/{build → dist}/types/ExtraDisclaimers/ExtraDisclaimers.types.d.ts +0 -0
- /package/{build → dist}/types/Input/Input.types.d.ts +0 -0
- /package/{build → dist}/types/Intl/Intl.d.ts +0 -0
- /package/{build → dist}/types/LanguageSwitcher/LanguageSwitcher.types.d.ts +0 -0
- /package/{build → dist}/types/Link/Link.types.d.ts +0 -0
- /package/{build → dist}/types/MOLink/MOLink.d.ts +0 -0
- /package/{build → dist}/types/MOLink/MOLink.types.d.ts +0 -0
- /package/{build/types/PinEntry/PinEntry.d.ts → dist/types/PINEntry/PINEntry.d.ts} +0 -0
- /package/{build/types/PinEntry → dist/types/PINEntry}/PINEntry.types.d.ts +0 -0
- /package/{build → dist}/types/PhoneEntry/PhoneEntry.d.ts +0 -0
- /package/{build → dist}/types/PhoneEntry/PhoneEntry.types.d.ts +0 -0
- /package/{build → dist}/types/PricePoint/PricePoint.types.d.ts +0 -0
- /package/{build → dist}/types/TopLegals/TopLegals.types.d.ts +0 -0
- /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,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,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,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
|
-
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
|
-
};
|
package/build/src/index.d.ts
DELETED
|
@@ -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,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 };
|
|
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
|
|
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
|