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.
- package/README.md +54 -27
- package/dist/Button.js +2 -0
- package/dist/Button.js.map +1 -0
- package/dist/ChainRedirect.js +2 -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/dist/MOLink-5e2f5f82.js +2 -0
- package/dist/MOLink-5e2f5f82.js.map +1 -0
- package/dist/MOLink.js +2 -0
- package/dist/MOLink.js.map +1 -0
- package/dist/PINEntry.js +2 -0
- 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/dist/Select.js +2 -0
- 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/style-inject.es-1f59c1d0.js +2 -0
- package/dist/style-inject.es-1f59c1d0.js.map +1 -0
- package/dist/types/Button/Button.d.ts +5 -0
- package/dist/types/Button/Button.types.d.ts +12 -0
- package/{build/src → dist/types}/ChainRedirect/ChainRedirect.d.ts +5 -3
- package/dist/types/ChainRedirect/ChainRedirect.types.d.ts +10 -0
- package/dist/types/Disclaimers/Disclaimers.d.ts +5 -0
- package/{build/src → dist/types}/Disclaimers/Disclaimers.types.d.ts +38 -36
- package/dist/types/ExtraDisclaimers/ExtraDisclaimers.d.ts +5 -0
- package/dist/types/ExtraDisclaimers/ExtraDisclaimers.types.d.ts +11 -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/{build/src → dist/types}/Input/Input.types.d.ts +46 -45
- package/dist/types/Intl/Intl.d.ts +21 -0
- package/dist/types/LanguageSwitcher/LanguageSwitcher.d.ts +5 -0
- package/{build/src → dist/types}/LanguageSwitcher/LanguageSwitcher.types.d.ts +16 -13
- package/dist/types/Link/Link.d.ts +5 -0
- package/{build/src → dist/types}/Link/Link.types.d.ts +13 -11
- package/dist/types/MOLink/MOLink.d.ts +7 -0
- package/{build/src → dist/types}/MOLink/MOLink.types.d.ts +11 -10
- package/{build/src → dist/types}/PINEntry/PINEntry.d.ts +5 -3
- package/{build/src → dist/types}/PINEntry/PINEntry.types.d.ts +25 -23
- package/{build/src → dist/types}/PhoneEntry/PhoneEntry.d.ts +5 -3
- package/{build/src → dist/types}/PhoneEntry/PhoneEntry.types.d.ts +39 -38
- package/dist/types/PricePoint/PricePoint.d.ts +5 -0
- package/{build/src → dist/types}/PricePoint/PricePoint.types.d.ts +12 -9
- package/dist/types/Select/Select.d.ts +5 -0
- package/{build/src → dist/types}/Select/Select.types.d.ts +31 -30
- 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/TopLegals/TopLegals.types.d.ts +11 -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/{build/src → dist/types}/custom-types.d.ts +10 -8
- 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 +136 -50
- package/build/index.d.ts +0 -291
- package/build/index.js +0 -2
- package/build/index.js.map +0 -1
- package/build/index.mjs +0 -2
- package/build/index.mjs.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.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/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/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/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/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/PINEntry/PINEntry.stories.d.ts +0 -54
- package/build/src/PhoneEntry/PhoneEntry.stories.d.ts +0 -59
- 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/Select/Select.d.ts +0 -2
- package/build/src/Select/Select.stories.d.ts +0 -5
- 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/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
|
@@ -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,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 {};
|
package/build/src/Intl/Intl.d.ts
DELETED
|
@@ -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,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 {};
|
package/build/src/Link/Link.d.ts
DELETED
|
@@ -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,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,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 {};
|
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 };
|