@proprioo/salatim 29.12.0 → 29.13.0
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/CHANGELOG.md +4 -0
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/phone/src/metadata.custom.json +14 -0
- package/lib/phone/src/phoneInput/constants.js +2 -0
- package/lib/phone/src/phoneInput/constants.js.map +1 -1
- package/lib/ui/src/accordion/AccordionContextProvider.d.ts +1 -1
- package/lib/ui/src/blockIcon/BlockIcon.d.ts +2 -2
- package/lib/ui/src/emailInput/EmailInput.d.ts +2 -1
- package/lib/ui/src/icons/Alert.d.ts +2 -1
- package/lib/ui/src/icons/Arrow.d.ts +2 -1
- package/lib/ui/src/icons/CheckGreen.d.ts +2 -1
- package/lib/ui/src/icons/CloseBox.d.ts +2 -1
- package/lib/ui/src/icons/DropDown.d.ts +2 -1
- package/lib/ui/src/icons/Tick.d.ts +2 -1
- package/lib/ui/src/icons/TrustPilot.d.ts +2 -1
- package/lib/ui/src/icons/index.d.ts +5 -5
- package/lib/ui/src/inputLoader/InputLoader.d.ts +2 -1
- package/lib/ui/src/logo/Logo.d.ts +2 -1
- package/lib/ui/src/modal/Modal.d.ts +2 -2
- package/lib/ui/src/select/Select.d.ts +1 -1
- package/lib/ui/src/textarea/Textarea.d.ts +2 -2
- package/package.json +11 -11
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
"596": ["MQ"],
|
|
47
47
|
"689": ["PF"],
|
|
48
48
|
"961": ["LB"],
|
|
49
|
+
"971": ["AE"],
|
|
49
50
|
"972": ["IL"]
|
|
50
51
|
},
|
|
51
52
|
"countries": {
|
|
@@ -60,6 +61,19 @@
|
|
|
60
61
|
["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6"]]
|
|
61
62
|
]
|
|
62
63
|
],
|
|
64
|
+
"AE": [
|
|
65
|
+
"971",
|
|
66
|
+
"00",
|
|
67
|
+
"(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",
|
|
68
|
+
[5, 6, 7, 8, 9, 10, 11, 12],
|
|
69
|
+
[
|
|
70
|
+
["(\\d{3})(\\d{2,9})", "$1 $2", ["60|8"]],
|
|
71
|
+
["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[236]|[479][2-8]"], "0$1"],
|
|
72
|
+
["(\\d{3})(\\d)(\\d{5})", "$1 $2 $3", ["[479]"]],
|
|
73
|
+
["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["5"], "0$1"]
|
|
74
|
+
],
|
|
75
|
+
"0"
|
|
76
|
+
],
|
|
63
77
|
"AR": [
|
|
64
78
|
"54",
|
|
65
79
|
"00",
|
|
@@ -4,6 +4,7 @@ exports.LABELS = exports.COUNTRIES = exports.FRENCH_COUNTRY = void 0;
|
|
|
4
4
|
exports.FRENCH_COUNTRY = 'FR';
|
|
5
5
|
exports.COUNTRIES = [
|
|
6
6
|
'AD',
|
|
7
|
+
'AE',
|
|
7
8
|
'AR',
|
|
8
9
|
'AT',
|
|
9
10
|
'AU',
|
|
@@ -57,6 +58,7 @@ exports.LABELS = {
|
|
|
57
58
|
country: 'Numéro de téléphone pays',
|
|
58
59
|
phone: 'Téléphone',
|
|
59
60
|
AD: 'Andorra',
|
|
61
|
+
AE: 'United Arab Emirates',
|
|
60
62
|
AR: 'Argentina',
|
|
61
63
|
AT: 'Österreich',
|
|
62
64
|
AU: 'Australia',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../packages/phone/src/phoneInput/constants.ts"],"names":[],"mappings":";;;AAIa,QAAA,cAAc,GAAY,IAAI,CAAC;AAE/B,QAAA,SAAS,GAAc;IAClC,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAA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AE,WAAW;IACf,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,eAAe;CACpB,CAAC"}
|
|
@@ -19,6 +19,6 @@ export declare class Provider extends PureComponent<ProviderProps, ProviderState
|
|
|
19
19
|
toggleExpanded(key: UUID): void;
|
|
20
20
|
isItemExpanded(key: UUID): boolean;
|
|
21
21
|
componentDidUpdate(prevProps: ProviderProps): void;
|
|
22
|
-
render(): JSX.Element;
|
|
22
|
+
render(): React.JSX.Element;
|
|
23
23
|
}
|
|
24
24
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
1
|
+
import React, { ReactElement } from 'react';
|
|
2
2
|
export type BlockIconProps<T> = {
|
|
3
3
|
text: string;
|
|
4
4
|
name: string;
|
|
@@ -9,5 +9,5 @@ export type BlockIconProps<T> = {
|
|
|
9
9
|
image?: ReactElement;
|
|
10
10
|
isContentCentered?: boolean;
|
|
11
11
|
};
|
|
12
|
-
declare function BlockIcon<T>({ onClick, image, text, name, selectedValue, dataTest, value, isContentCentered }: BlockIconProps<T>): JSX.Element;
|
|
12
|
+
declare function BlockIcon<T>({ onClick, image, text, name, selectedValue, dataTest, value, isContentCentered }: BlockIconProps<T>): React.JSX.Element;
|
|
13
13
|
export default BlockIcon;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { EmailInputProps } from './EmailInput.interfaces';
|
|
2
|
-
export default function EmailInput({ disabled, i18nLabels, isSuggestionEnabled, onBlur, onChange, onFocus, type, value, ...restProps }: EmailInputProps): JSX.Element;
|
|
3
|
+
export default function EmailInput({ disabled, i18nLabels, isSuggestionEnabled, onBlur, onChange, onFocus, type, value, ...restProps }: EmailInputProps): React.JSX.Element;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
Arrow: () => JSX.Element;
|
|
3
|
-
CheckGreen: () => JSX.Element;
|
|
2
|
+
Arrow: () => import("react").JSX.Element;
|
|
3
|
+
CheckGreen: () => import("react").JSX.Element;
|
|
4
4
|
ChevronRight: import("react").FC<import("./Icon.props").IconProps>;
|
|
5
|
-
DropDown: () => JSX.Element;
|
|
5
|
+
DropDown: () => import("react").JSX.Element;
|
|
6
6
|
EmoticonCool: import("react").FC<import("./Icon.props").IconProps>;
|
|
7
7
|
Certificate: import("react").FC<import("./Icon.props").IconProps>;
|
|
8
|
-
TrustPilot: () => JSX.Element;
|
|
9
|
-
CloseBox: () => JSX.Element;
|
|
8
|
+
TrustPilot: () => import("react").JSX.Element;
|
|
9
|
+
CloseBox: () => import("react").JSX.Element;
|
|
10
10
|
Plus: import("react").FC<import("./Icon.props").IconProps>;
|
|
11
11
|
Less: import("react").FC<import("./Icon.props").IconProps>;
|
|
12
12
|
Close: import("react").FC<import("./Icon.props").IconProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactElement, ReactNode } from 'react';
|
|
1
|
+
import React, { ReactElement, ReactNode } from 'react';
|
|
2
2
|
import { FadeEnum } from './Modal.reducer';
|
|
3
3
|
type ActionsProps = {
|
|
4
4
|
onAbort?(): void;
|
|
@@ -25,7 +25,7 @@ export type RenderModalProps = BaseModalProps & {
|
|
|
25
25
|
};
|
|
26
26
|
declare const useModal: ({ onAbort, onOpen, onClose }?: ActionsProps) => {
|
|
27
27
|
closeModal: () => void;
|
|
28
|
-
createModal: ({ children, icon, isAlternative, isClosable, isFullScreen, noPadding, text, title }: RenderModalProps) => JSX.Element;
|
|
28
|
+
createModal: ({ children, icon, isAlternative, isClosable, isFullScreen, noPadding, text, title }: RenderModalProps) => React.JSX.Element;
|
|
29
29
|
openModal: () => void;
|
|
30
30
|
toggleLoader: () => void;
|
|
31
31
|
};
|
|
@@ -16,7 +16,7 @@ export declare class Select extends PureComponent<SelectProps> {
|
|
|
16
16
|
constructor(props: SelectProps);
|
|
17
17
|
selectItem(value: OptionProps): void;
|
|
18
18
|
componentDidUpdate(): void;
|
|
19
|
-
render(): JSX.Element | null;
|
|
19
|
+
render(): React.JSX.Element | null;
|
|
20
20
|
}
|
|
21
21
|
declare const _default: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<Select>>;
|
|
22
22
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeEvent, Component } from 'react';
|
|
1
|
+
import React, { ChangeEvent, Component } from 'react';
|
|
2
2
|
import { nullOrNumber } from '@proprioo/hokkaido';
|
|
3
3
|
export type TextareaProps = {
|
|
4
4
|
value: string;
|
|
@@ -36,6 +36,6 @@ declare class Textarea extends Component<TextareaProps, TextareaStateProps> {
|
|
|
36
36
|
handleBlur(): void;
|
|
37
37
|
reflowTextarea(): void;
|
|
38
38
|
loadRef(ref: HTMLTextAreaElement | null): void;
|
|
39
|
-
render(): JSX.Element;
|
|
39
|
+
render(): React.JSX.Element;
|
|
40
40
|
}
|
|
41
41
|
export default Textarea;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@proprioo/salatim",
|
|
3
|
-
"version": "29.
|
|
3
|
+
"version": "29.13.0",
|
|
4
4
|
"description": "Proprioo component library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"components",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"coverage": "yarn test --coverage --logHeapUsage --maxWorkers=2 --verbose && jest-coverage-badges",
|
|
26
26
|
"deploy": "yarn build && yarn publish --access=public --non-interactive",
|
|
27
27
|
"dev": "yarn storybook",
|
|
28
|
-
"generate-phone-metadata": "libphonenumber-metadata-generator ./packages/phone/src/metadata.custom.json --countries AD,AR,AT,AU,BE,BR,CA,CH,CZ,DE,DK,EE,DZ,ES,FI,FR,GB,GF,GG,GI,GP,GR,HR,IE,IL,IN,IS,IT,LB,LT,LU,MA,MC,MQ,NL,NO,NZ,PF,PK,PL,PT,RE,RS,RU,SE,SG,TN,US",
|
|
28
|
+
"generate-phone-metadata": "libphonenumber-metadata-generator ./packages/phone/src/metadata.custom.json --countries AD,AE,AR,AT,AU,BE,BR,CA,CH,CZ,DE,DK,EE,DZ,ES,FI,FR,GB,GF,GG,GI,GP,GR,HR,IE,IL,IN,IS,IT,LB,LT,LU,MA,MC,MQ,NL,NO,NZ,PF,PK,PL,PT,RE,RS,RU,SE,SG,TN,US",
|
|
29
29
|
"lint": "tslint -c tslint.json 'packages/**/*.{ts,tsx}'",
|
|
30
30
|
"pretty-quick": "pretty-quick",
|
|
31
31
|
"start": "rollup -c rollup.config.ts -w",
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"prepare": "husky install"
|
|
37
37
|
},
|
|
38
38
|
"resolutions": {
|
|
39
|
-
"@types/react": "^18.
|
|
39
|
+
"@types/react": "^18.2.6"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@commitlint/cli": "^17.6.
|
|
43
|
-
"@commitlint/config-conventional": "^17.6.
|
|
42
|
+
"@commitlint/cli": "^17.6.3",
|
|
43
|
+
"@commitlint/config-conventional": "^17.6.3",
|
|
44
44
|
"@popperjs/core": "^2.11.7",
|
|
45
|
-
"@proprioo/hokkaido": "^6.
|
|
45
|
+
"@proprioo/hokkaido": "^6.3.0",
|
|
46
46
|
"@rollup/plugin-commonjs": "22.0.2",
|
|
47
47
|
"@rollup/plugin-json": "^4.1.0",
|
|
48
48
|
"@rollup/plugin-node-resolve": "^14.1.0",
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
"@types/jest": "^29.5.1",
|
|
60
60
|
"@types/jest-axe": "^3.5.5",
|
|
61
61
|
"@types/mailcheck": "^1.1.33",
|
|
62
|
-
"@types/react": "^18.2.
|
|
62
|
+
"@types/react": "^18.2.6",
|
|
63
63
|
"@types/react-color": "^3.0.6",
|
|
64
64
|
"@types/react-dates": "^21.8.3",
|
|
65
|
-
"@types/react-dom": "^18.2.
|
|
65
|
+
"@types/react-dom": "^18.2.4",
|
|
66
66
|
"@types/react-phone-number-input": "^3.0.14",
|
|
67
67
|
"@types/react-places-autocomplete": "^7.2.9",
|
|
68
68
|
"@types/react-test-renderer": "^18.0.0",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@types/styled-components": "^5.1.26",
|
|
71
71
|
"babel-loader": "^8.3.0",
|
|
72
72
|
"babel-preset-react-app": "^10.0.1",
|
|
73
|
-
"date-fns": "^2.
|
|
73
|
+
"date-fns": "^2.30.0",
|
|
74
74
|
"email-validator": "^2.0.4",
|
|
75
75
|
"full-icu": "^1.5.0",
|
|
76
76
|
"husky": "^8.0.3",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"react": "^18.2.0",
|
|
88
88
|
"react-dates": "^21.8.0",
|
|
89
89
|
"react-dom": "^18.2.0",
|
|
90
|
-
"react-phone-number-input": "^3.2.
|
|
90
|
+
"react-phone-number-input": "^3.2.23",
|
|
91
91
|
"react-places-autocomplete": "^7.3.0",
|
|
92
92
|
"react-popper-tooltip": "^4.4.2",
|
|
93
93
|
"react-test-renderer": "^18.2.0",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
},
|
|
112
112
|
"peerDependencies": {
|
|
113
113
|
"@proprioo/hokkaido": "^2.12.1",
|
|
114
|
-
"date-fns": "^2.
|
|
114
|
+
"date-fns": "^2.30.0",
|
|
115
115
|
"moment": "^2.29.1",
|
|
116
116
|
"polished": "^4.2.2",
|
|
117
117
|
"react": "^18.2.0",
|