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
@@ -0,0 +1,2 @@
1
+ export{d as defineMessages}from"./Intl-2eab59e1.js";import"tslib";import"react";
2
+ //# sourceMappingURL=defineMessages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defineMessages.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export{f as formatSMSLink}from"./MOLink-5e2f5f82.js";import"tslib";import"react";
2
+ //# sourceMappingURL=formatSMSLink.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatSMSLink.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export{i as injectIntl}from"./Intl-2eab59e1.js";import"tslib";import"react";
2
+ //# sourceMappingURL=injectIntl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"injectIntl.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ function e(e,t){void 0===t&&(t={});var d=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css","top"===d&&n.firstChild?n.insertBefore(s,n.firstChild):n.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}}export{e as s};
2
+ //# sourceMappingURL=style-inject.es-1f59c1d0.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style-inject.es-1f59c1d0.js","sources":["../node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n"],"names":["styleInject","css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode"],"mappings":"AAAA,SAASA,EAAYC,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAKF,GAA2B,oBAAbG,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBY,CAqB1D"}
@@ -0,0 +1,5 @@
1
+ import { interfaceButton } from './Button.types.js';
2
+
3
+ declare const Button: ({ children, className, dataQaId, allowEvinaClass, isMCP, tracker, type, onClick, ...props }: interfaceButton) => JSX.Element;
4
+
5
+ export { Button };
@@ -0,0 +1,12 @@
1
+ import { ITracker } from '../custom-types.js';
2
+
3
+ interface interfaceButton extends React.ButtonHTMLAttributes<HTMLButtonElement> {
4
+ children: React.ReactNode;
5
+ className?: string;
6
+ dataQaId?: string;
7
+ allowEvinaClass?: boolean;
8
+ isMCP?: boolean;
9
+ tracker?: ITracker;
10
+ }
11
+
12
+ export { interfaceButton };
@@ -1,3 +1,5 @@
1
- import { IChainRedirectProps } from './ChainRedirect.types';
2
- declare const ChainRedirect: ({ chainRedirectUrl, tracker, className, dataQaId }: IChainRedirectProps) => JSX.Element;
3
- export { ChainRedirect };
1
+ import { IChainRedirectProps } from './ChainRedirect.types.js';
2
+
3
+ declare const ChainRedirect: ({ chainRedirectUrl, tracker, className, dataQaId }: IChainRedirectProps) => JSX.Element;
4
+
5
+ export { ChainRedirect };
@@ -0,0 +1,10 @@
1
+ import { ITracker } from '../custom-types.js';
2
+
3
+ interface IChainRedirectProps {
4
+ chainRedirectUrl: string;
5
+ tracker: ITracker;
6
+ className?: string;
7
+ dataQaId?: string;
8
+ }
9
+
10
+ export { IChainRedirectProps };
@@ -0,0 +1,5 @@
1
+ import { DisclaimersProps } from './Disclaimers.types.js';
2
+
3
+ declare const Disclaimers: ({ locale, className, legals, flow, dataQaId, mcc }: DisclaimersProps) => JSX.Element;
4
+
5
+ export { Disclaimers };
@@ -1,36 +1,38 @@
1
- export declare enum ILegalFlows {
2
- PIN = "pin",
3
- MO = "mo",
4
- ONE_CLICK = "oneClick",
5
- CLICK_2SMS = "click2sms",
6
- MO_REDIR = "moRedir",
7
- USSD = "ussd",
8
- TPAY_HE = "tpayHe"
9
- }
10
- export interface ILegals {
11
- id: number;
12
- country: string;
13
- service: string;
14
- scenario: string;
15
- language: string;
16
- top_legal: string | null;
17
- price_point: string | null;
18
- disclaimer: string | null;
19
- date_created: string;
20
- extra_disclaimer: string | null;
21
- mcc_disclaimer: {
22
- [key: string]: string;
23
- } | null;
24
- operator_price_point: {
25
- [key: string]: string;
26
- } | null;
27
- flow?: ILegalFlows;
28
- }
29
- export interface DisclaimersProps {
30
- locale: string;
31
- legals: Array<ILegals>;
32
- className?: string;
33
- flow?: ILegalFlows;
34
- mcc?: string;
35
- dataQaId?: string;
36
- }
1
+ declare enum ILegalFlows {
2
+ PIN = "pin",
3
+ MO = "mo",
4
+ ONE_CLICK = "oneClick",
5
+ CLICK_2SMS = "click2sms",
6
+ MO_REDIR = "moRedir",
7
+ USSD = "ussd",
8
+ TPAY_HE = "tpayHe"
9
+ }
10
+ interface ILegals {
11
+ id: number;
12
+ country: string;
13
+ service: string;
14
+ scenario: string;
15
+ language: string;
16
+ top_legal: string | null;
17
+ price_point: string | null;
18
+ disclaimer: string | null;
19
+ date_created: string;
20
+ extra_disclaimer: string | null;
21
+ mcc_disclaimer: {
22
+ [key: string]: string;
23
+ } | null;
24
+ operator_price_point: {
25
+ [key: string]: string;
26
+ } | null;
27
+ flow?: ILegalFlows;
28
+ }
29
+ interface DisclaimersProps {
30
+ locale: string;
31
+ legals: Array<ILegals>;
32
+ className?: string;
33
+ flow?: ILegalFlows;
34
+ mcc?: string;
35
+ dataQaId?: string;
36
+ }
37
+
38
+ export { DisclaimersProps, ILegalFlows, ILegals };
@@ -0,0 +1,5 @@
1
+ import { ExtraDisclaimersProps } from './ExtraDisclaimers.types.js';
2
+
3
+ declare const ExtraDisclaimers: ({ locale, className, legals, flow, dataQaId }: ExtraDisclaimersProps) => JSX.Element;
4
+
5
+ export { ExtraDisclaimers };
@@ -0,0 +1,11 @@
1
+ import { ILegals, ILegalFlows } from '../Disclaimers/Disclaimers.types.js';
2
+
3
+ interface ExtraDisclaimersProps {
4
+ locale: string;
5
+ legals: Array<ILegals>;
6
+ className?: string;
7
+ flow?: ILegalFlows;
8
+ dataQaId?: string;
9
+ }
10
+
11
+ export { ExtraDisclaimersProps };
@@ -0,0 +1,5 @@
1
+ import { interfaceFeatures } from './Features.types.js';
2
+
3
+ declare const Features: ({ headline, items, className, dataQaId, tracker }: interfaceFeatures) => JSX.Element;
4
+
5
+ export { Features };
@@ -0,0 +1,16 @@
1
+ import { ITracker } from '../custom-types.js';
2
+
3
+ type typeItems = {
4
+ image: string;
5
+ name: string;
6
+ description: string;
7
+ };
8
+ interface interfaceFeatures {
9
+ headline: string;
10
+ items: Array<typeItems>;
11
+ className?: string;
12
+ dataQaId?: string;
13
+ tracker?: ITracker;
14
+ }
15
+
16
+ export { interfaceFeatures, typeItems };
@@ -0,0 +1,5 @@
1
+ import { InputProps } from './Input.types.js';
2
+
3
+ declare const Input: ({ wrapperClassName, dataQaId, id, name, value, placeholder, disabled, readOnly, error, type, size, onChange, ...props }: InputProps) => JSX.Element;
4
+
5
+ export { Input };
@@ -1,45 +1,46 @@
1
- /// <reference types="react" />
2
- export type InputProps = React.InputHTMLAttributes<HTMLInputElement> & {
3
- name: string;
4
- value: string;
5
- label?: string;
6
- onChange: React.FocusEventHandler<HTMLInputElement> | undefined;
7
- type: InputType;
8
- placeholder?: string;
9
- error?: string;
10
- iconPosition?: InputIconPosition;
11
- size?: InputSize;
12
- clearable?: boolean;
13
- mask?: InputMaskTypes;
14
- children?: React.Component;
15
- hint?: string;
16
- dataQaId?: string;
17
- disabled?: boolean;
18
- readOnly?: boolean;
19
- required?: boolean;
20
- maxLength?: number;
21
- minLength?: number;
22
- wrapperClassName?: string;
23
- onBlur?: React.FocusEventHandler<HTMLInputElement> | undefined;
24
- };
25
- export declare enum InputType {
26
- Text = "text",
27
- Number = "number",
28
- Email = "email",
29
- Password = "password",
30
- Search = "search",
31
- Telephone = "tel",
32
- URL = "url"
33
- }
34
- export declare enum InputSize {
35
- Medium = "Medium",
36
- Large = "Large"
37
- }
38
- export declare enum InputIconPosition {
39
- Left = "Left",
40
- Right = "Right"
41
- }
42
- export declare enum InputMaskTypes {
43
- Telephone = "telephone",
44
- CreditCard = "credit_card"
45
- }
1
+ type InputProps = React.InputHTMLAttributes<HTMLInputElement> & {
2
+ name: string;
3
+ value: string;
4
+ label?: string;
5
+ onChange: React.FocusEventHandler<HTMLInputElement> | undefined;
6
+ type: InputType;
7
+ placeholder?: string;
8
+ error?: string;
9
+ iconPosition?: InputIconPosition;
10
+ size?: InputSize;
11
+ clearable?: boolean;
12
+ mask?: InputMaskTypes;
13
+ children?: React.Component;
14
+ hint?: string;
15
+ dataQaId?: string;
16
+ disabled?: boolean;
17
+ readOnly?: boolean;
18
+ required?: boolean;
19
+ maxLength?: number;
20
+ minLength?: number;
21
+ wrapperClassName?: string;
22
+ onBlur?: React.FocusEventHandler<HTMLInputElement> | undefined;
23
+ };
24
+ declare enum InputType {
25
+ Text = "text",
26
+ Number = "number",
27
+ Email = "email",
28
+ Password = "password",
29
+ Search = "search",
30
+ Telephone = "tel",
31
+ URL = "url"
32
+ }
33
+ declare enum InputSize {
34
+ Medium = "Medium",
35
+ Large = "Large"
36
+ }
37
+ declare enum InputIconPosition {
38
+ Left = "Left",
39
+ Right = "Right"
40
+ }
41
+ declare enum InputMaskTypes {
42
+ Telephone = "telephone",
43
+ CreditCard = "credit_card"
44
+ }
45
+
46
+ export { InputIconPosition, InputMaskTypes, InputProps, InputSize, InputType };
@@ -0,0 +1,21 @@
1
+ import * as React from 'react';
2
+
3
+ interface IHash {
4
+ [key: string]: string;
5
+ }
6
+ declare function IntlProvider({ locale, messages, children }: {
7
+ locale: string;
8
+ messages: IHash;
9
+ children: React.ReactChild | JSX.Element[] | JSX.Element;
10
+ }): JSX.Element;
11
+ declare function Translate({ id, values, defaultMessage }: {
12
+ id: string;
13
+ values?: {
14
+ [key: string]: string;
15
+ };
16
+ defaultMessage?: string;
17
+ }): string;
18
+ declare function injectIntl(Child: React.ComponentType<any>): (props: any) => JSX.Element;
19
+ declare function defineMessages(messageDescriptors: any): any;
20
+
21
+ export { IHash, IntlProvider, Translate, defineMessages, injectIntl };
@@ -0,0 +1,5 @@
1
+ import { interfaceLanguageSwitcher } from './LanguageSwitcher.types.js';
2
+
3
+ declare const LanguageSwitcher: ({ locale, switchLang, options, className, dataQaId, tracker }: interfaceLanguageSwitcher) => JSX.Element | null;
4
+
5
+ export { LanguageSwitcher };
@@ -1,13 +1,16 @@
1
- import { ITracker } from '../custom-types';
2
- export type typeLanguageSwitcherOptions = {
3
- value: string;
4
- label: string;
5
- };
6
- export interface interfaceLanguageSwitcher {
7
- locale: string;
8
- switchLang: (lang: string) => void;
9
- options: Array<typeLanguageSwitcherOptions>;
10
- className?: string;
11
- dataQaId?: string;
12
- tracker?: ITracker;
13
- }
1
+ import { ITracker } from '../custom-types.js';
2
+
3
+ type typeLanguageSwitcherOptions = {
4
+ value: string;
5
+ label: string;
6
+ };
7
+ interface interfaceLanguageSwitcher {
8
+ locale: string;
9
+ switchLang: (lang: string) => void;
10
+ options: Array<typeLanguageSwitcherOptions>;
11
+ className?: string;
12
+ dataQaId?: string;
13
+ tracker?: ITracker;
14
+ }
15
+
16
+ export { interfaceLanguageSwitcher, typeLanguageSwitcherOptions };
@@ -0,0 +1,5 @@
1
+ import { interfaceLink } from './Link.types.js';
2
+
3
+ declare const Link: ({ children, className, dataQaId, href, allowEvinaClass, isMCP, locale, tracker, onClick, ...props }: interfaceLink) => JSX.Element;
4
+
5
+ export { Link };
@@ -1,11 +1,13 @@
1
- /// <reference types="react" />
2
- import { ITracker } from '../custom-types';
3
- export interface interfaceLink extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
4
- children: React.ReactNode;
5
- className?: string;
6
- dataQaId?: string;
7
- allowEvinaClass?: boolean;
8
- isMCP?: boolean;
9
- locale?: string;
10
- tracker?: ITracker;
11
- }
1
+ import { ITracker } from '../custom-types.js';
2
+
3
+ interface interfaceLink extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
4
+ children: React.ReactNode;
5
+ className?: string;
6
+ dataQaId?: string;
7
+ allowEvinaClass?: boolean;
8
+ isMCP?: boolean;
9
+ locale?: string;
10
+ tracker?: ITracker;
11
+ }
12
+
13
+ export { interfaceLink };
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import { IKeywordShortcode, MOLinkProps } from './MOLink.types.js';
3
+
4
+ declare const formatSMSLink: (keywordAndShortcode: IKeywordShortcode, useOpenAddresses?: boolean) => string;
5
+ declare const MOLink: React.ComponentType<MOLinkProps>;
6
+
7
+ export { MOLink, formatSMSLink };
@@ -1,10 +1,11 @@
1
- /// <reference types="react" />
2
- export type IKeywordShortcode = {
3
- keyword: string;
4
- shortcode: string;
5
- };
6
- export type MOLinkProps = {
7
- keywordAndShortcode: IKeywordShortcode;
8
- children: React.ReactNode;
9
- dataQaId?: string;
10
- } & React.HTMLAttributes<HTMLAnchorElement>;
1
+ type IKeywordShortcode = {
2
+ keyword: string;
3
+ shortcode: string;
4
+ };
5
+ type MOLinkProps = {
6
+ keywordAndShortcode: IKeywordShortcode;
7
+ children: React.ReactNode;
8
+ dataQaId?: string;
9
+ } & React.HTMLAttributes<HTMLAnchorElement>;
10
+
11
+ export { IKeywordShortcode, MOLinkProps };
@@ -1,3 +1,5 @@
1
- import { interfacePINEntry } from './PINEntry.types';
2
- declare const PINEntry: ({ tracker, pin, setPin, isPinFilled, setIsPinFilled, inputElementRef, id, className, dataQaId, maxLength, minLength, placeholder, isAlphanumeric, showIconInput, onChange, onKeyPress, onPaste, onBlur, onFocus }: interfacePINEntry) => JSX.Element;
3
- export { PINEntry };
1
+ import { interfacePINEntry } from './PINEntry.types.js';
2
+
3
+ declare const PINEntry: ({ tracker, pin, setPin, isPinFilled, setIsPinFilled, inputElementRef, id, className, dataQaId, maxLength, minLength, placeholder, isAlphanumeric, showIconInput, onChange, onKeyPress, onPaste, onBlur, onFocus }: interfacePINEntry) => JSX.Element;
4
+
5
+ export { PINEntry };
@@ -1,23 +1,25 @@
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
+ import { ITracker } from '../custom-types.js';
2
+
3
+ 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
+ }
24
+
25
+ export { interfacePINEntry };
@@ -1,3 +1,5 @@
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
+ import { interfacePhoneEntry } from './PhoneEntry.types.js';
2
+
3
+ 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;
4
+
5
+ export { PhoneEntry };
@@ -1,38 +1,39 @@
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
+ import { ITracker } from '../custom-types.js';
2
+
3
+ type IPropsOnChange = {
4
+ msisdn: string;
5
+ isValid: boolean;
6
+ nationalNumber: string;
7
+ internationalNumber: string;
8
+ bupperNumber: string;
9
+ };
10
+ 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
+
39
+ export { interfacePhoneEntry };
@@ -0,0 +1,5 @@
1
+ import { PricePointProps } from './PricePoint.types.js';
2
+
3
+ declare const PricePoint: ({ locale, className, legals, flow, dataQaId, operator }: PricePointProps) => JSX.Element;
4
+
5
+ export { PricePoint };
@@ -1,9 +1,12 @@
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
+ import { ILegals, ILegalFlows } from '../Disclaimers/Disclaimers.types.js';
2
+
3
+ interface PricePointProps {
4
+ locale: string;
5
+ legals: Array<ILegals>;
6
+ operator?: string;
7
+ className?: string;
8
+ flow?: ILegalFlows;
9
+ dataQaId?: string;
10
+ }
11
+
12
+ export { PricePointProps };
@@ -0,0 +1,5 @@
1
+ import { SelectProps } from './Select.types.js';
2
+
3
+ declare const Select: ({ wrapperClassName, dataQaId, id, value, placeholder, disabled, readOnly, error, type, onChange, options, firstOptionText, ...props }: SelectProps) => JSX.Element;
4
+
5
+ export { Select };