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,30 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
1
|
+
type SelectProps = React.SelectHTMLAttributes<HTMLSelectElement> & {
|
|
2
|
+
value: string;
|
|
3
|
+
label?: string;
|
|
4
|
+
onChange: React.ChangeEventHandler<HTMLSelectElement> | undefined;
|
|
5
|
+
type?: SelectType;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
error?: string;
|
|
8
|
+
dataQaId?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
readOnly?: boolean;
|
|
11
|
+
required?: boolean;
|
|
12
|
+
maxLength?: number;
|
|
13
|
+
minLength?: number;
|
|
14
|
+
wrapperClassName?: string;
|
|
15
|
+
options?: SelectOption[];
|
|
16
|
+
onBlur?: React.ChangeEventHandler<HTMLSelectElement> | undefined;
|
|
17
|
+
firstOptionText?: string;
|
|
18
|
+
};
|
|
19
|
+
interface SelectOption {
|
|
20
|
+
value: string;
|
|
21
|
+
label: string;
|
|
22
|
+
}
|
|
23
|
+
declare enum SelectType {
|
|
24
|
+
Country = "country"
|
|
25
|
+
}
|
|
26
|
+
declare enum InputSize {
|
|
27
|
+
Medium = "Medium",
|
|
28
|
+
Large = "Large"
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { InputSize, SelectOption, SelectProps, SelectType };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ITracker } from '../custom-types.js';
|
|
2
|
+
|
|
3
|
+
type typeItems = {
|
|
4
|
+
image: string;
|
|
5
|
+
name: string;
|
|
6
|
+
};
|
|
7
|
+
interface interfaceShowcase {
|
|
8
|
+
headline: string;
|
|
9
|
+
items: Array<typeItems>;
|
|
10
|
+
className?: string;
|
|
11
|
+
dataQaId?: string;
|
|
12
|
+
tracker?: ITracker;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { interfaceShowcase, typeItems };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { IntlProvider } from '../../Intl/Intl.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Translate } from '../../Intl/Intl.js';
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
advancedInFlow: (flow: string, action: string, args?: any) => void;
|
|
4
|
-
advancedInPreFlow: (label: string, args?: any) => void;
|
|
5
|
-
recedeInFlow: (flow: string, newState: string, args?: any) => void;
|
|
6
|
-
customEvent: (category: string, action: string, label: string, arg?: any) => void;
|
|
7
|
-
sendOptInFlowEvent: (optInFlowName: IOptInFlowName) => void;
|
|
8
|
-
};
|
|
1
|
+
declare type IOptInFlowName = 'Block' | 'Click to sms' | 'Hybrid Pin' | 'Msisdn to sms' | 'Not available' | 'Pin' | 'Redirect' | 'To be determined' | 'USSD' | '3G click';
|
|
2
|
+
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
|
+
};
|
|
9
|
+
|
|
10
|
+
export { IOptInFlowName, ITracker };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { defineMessages } from '../../Intl/Intl.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { formatSMSLink } from '../../MOLink/MOLink.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { injectIntl } from '../../Intl/Intl.js';
|
package/package.json
CHANGED
|
@@ -1,51 +1,154 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ouisys-component-library",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Ouisys Components",
|
|
5
|
-
"main": "
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"build"
|
|
11
|
-
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"directories": "dist dev-tools",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "yarn clean && rollup -c",
|
|
9
|
+
"storybook": "storybook dev -p 6006",
|
|
10
|
+
"storybook:export": "storybook build",
|
|
11
|
+
"build-storybook": "storybook build",
|
|
12
|
+
"clean": "rm -rf ./dist && rm -rf ./build",
|
|
13
|
+
"watch": "tsc -b -w --preserveWatchOutput",
|
|
14
|
+
"lint": "eslint --fix 'src/**/*.{ts,tsx}'",
|
|
15
|
+
"format": "prettier --write .",
|
|
16
|
+
"test": "jest",
|
|
17
|
+
"test:local": "jest --runInBand",
|
|
18
|
+
"test:coverage": "yarn run test -- --watch --coverage --coverage-reporters=lcov --watchAll=false; echo \"\\033[32m>>> 🌹 Coverage report now in /coverage folder\"",
|
|
19
|
+
"test:coverageWatch": "yarn run test -- --watch --coverage --coverage-reporters=lcov --watchAll=true",
|
|
20
|
+
"test:watch": "yarn run test -- --watch --watchAll=true",
|
|
21
|
+
"test:debug": "node --inspect-brk node_modules/.bin/jest --watch --ci --runInBand",
|
|
22
|
+
"release": "yarn release:patch && release:publish && release:publish",
|
|
23
|
+
"release:patch": "npm version patch",
|
|
24
|
+
"release:publish": "npm publish",
|
|
25
|
+
"release:push": "git push"
|
|
26
|
+
},
|
|
12
27
|
"author": "Emmancipate <emman@sam-media.com>",
|
|
13
28
|
"license": "MIT",
|
|
29
|
+
"type": "module",
|
|
30
|
+
"sideEffects": false,
|
|
31
|
+
"files": [
|
|
32
|
+
"dist/"
|
|
33
|
+
],
|
|
34
|
+
"exports": {
|
|
35
|
+
"./Button": "./dist/Button.js",
|
|
36
|
+
"./ChainRedirect": "./dist/ChainRedirect.js",
|
|
37
|
+
"./Disclaimers": "./dist/Disclaimers.js",
|
|
38
|
+
"./ExtraDisclaimers": "./dist/ExtraDisclaimers.js",
|
|
39
|
+
"./Features": "./dist/Features.js",
|
|
40
|
+
"./LanguageSwitcher": "./dist/LanguageSwitcher.js",
|
|
41
|
+
"./Link": "./dist/Link.js",
|
|
42
|
+
"./MOLink": "./dist/MOLink.js",
|
|
43
|
+
"./PhoneEntry": "./dist/PhoneEntry.js",
|
|
44
|
+
"./PINEntry": "./dist/PINEntry.js",
|
|
45
|
+
"./PricePoint": "./dist/PricePoint.js",
|
|
46
|
+
"./Showcase": "./dist/Showcase.js",
|
|
47
|
+
"./TopLegals": "./dist/TopLegals.js",
|
|
48
|
+
"./Input": "./dist/Input.js",
|
|
49
|
+
"./Select": "./dist/Select.js",
|
|
50
|
+
"./IntlProvider": "./dist/IntlProvider.js",
|
|
51
|
+
"./Translate": "./dist/Translate.js",
|
|
52
|
+
"./utilities/defineMessages": "./dist/defineMessages.js",
|
|
53
|
+
"./utilities/injectIntl": "./dist/injectIntl.js",
|
|
54
|
+
"./utilities/formatSMSLink": "./dist/formatSMSLink.js"
|
|
55
|
+
},
|
|
56
|
+
"typesVersions": {
|
|
57
|
+
"*": {
|
|
58
|
+
"Button": [
|
|
59
|
+
"dist/types/Button.d.ts"
|
|
60
|
+
],
|
|
61
|
+
"ChainRedirect": [
|
|
62
|
+
"dist/types/ChainRedirect.d.ts"
|
|
63
|
+
],
|
|
64
|
+
"Disclaimers": [
|
|
65
|
+
"dist/types/Disclaimers.d.ts"
|
|
66
|
+
],
|
|
67
|
+
"ExtraDisclaimers": [
|
|
68
|
+
"dist/types/ExtraDisclaimers.d.ts"
|
|
69
|
+
],
|
|
70
|
+
"Input": [
|
|
71
|
+
"dist/types/Input.d.ts"
|
|
72
|
+
],
|
|
73
|
+
"Link": [
|
|
74
|
+
"dist/types/Link.d.ts"
|
|
75
|
+
],
|
|
76
|
+
"MOLink": [
|
|
77
|
+
"dist/types/MOLink.d.ts"
|
|
78
|
+
],
|
|
79
|
+
"PricePoint": [
|
|
80
|
+
"dist/types/PricePoint.d.ts"
|
|
81
|
+
],
|
|
82
|
+
"Select": [
|
|
83
|
+
"dist/types/Select.d.ts"
|
|
84
|
+
],
|
|
85
|
+
"TopLegals": [
|
|
86
|
+
"dist/types/TopLegals.d.ts"
|
|
87
|
+
],
|
|
88
|
+
"LanguageSwitcher": [
|
|
89
|
+
"dist/types/LanguageSwitcher.d.ts"
|
|
90
|
+
],
|
|
91
|
+
"Intl": [
|
|
92
|
+
"dist/types/Intl.d.ts"
|
|
93
|
+
],
|
|
94
|
+
"PhoneEntry": [
|
|
95
|
+
"dist/types/PhoneEntry.d.ts"
|
|
96
|
+
],
|
|
97
|
+
"PinEntry": [
|
|
98
|
+
"dist/types/PinEntry.d.ts"
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"dependencies": {
|
|
103
|
+
"awesome-phonenumber": "^7.0.1"
|
|
104
|
+
},
|
|
14
105
|
"devDependencies": {
|
|
15
106
|
"@babel/core": "^7.16.7",
|
|
107
|
+
"@chromatic-com/storybook": "^3.2.2",
|
|
16
108
|
"@rollup/plugin-commonjs": "^21.0.1",
|
|
17
109
|
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
18
|
-
"@storybook/addon-actions": "^
|
|
19
|
-
"@storybook/addon-essentials": "^
|
|
20
|
-
"@storybook/addon-
|
|
110
|
+
"@storybook/addon-actions": "^8.4.7",
|
|
111
|
+
"@storybook/addon-essentials": "^8.4.7",
|
|
112
|
+
"@storybook/addon-interactions": "^8.4.7",
|
|
113
|
+
"@storybook/addon-links": "^8.4.7",
|
|
114
|
+
"@storybook/addon-mdx-gfm": "^8.4.7",
|
|
115
|
+
"@storybook/addon-onboarding": "^8.4.7",
|
|
116
|
+
"@storybook/addon-webpack5-compiler-swc": "^1.0.5",
|
|
117
|
+
"@storybook/blocks": "^8.4.7",
|
|
21
118
|
"@storybook/preset-scss": "^1.0.3",
|
|
22
|
-
"@storybook/react": "^
|
|
23
|
-
"@
|
|
24
|
-
"@
|
|
25
|
-
"@
|
|
119
|
+
"@storybook/react": "^8.4.7",
|
|
120
|
+
"@storybook/react-webpack5": "^8.4.7",
|
|
121
|
+
"@storybook/test": "^8.4.7",
|
|
122
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
123
|
+
"@testing-library/react": "^16.1.0",
|
|
124
|
+
"@types/jest": "^29.5.14",
|
|
26
125
|
"@types/react": "18.2.0",
|
|
27
126
|
"@types/react-test-renderer": "^17.0.1",
|
|
28
127
|
"@typescript-eslint/eslint-plugin": "^4.19.0",
|
|
29
128
|
"@typescript-eslint/parser": "^4.19.0",
|
|
129
|
+
"autoprefixer": "^10.4.20",
|
|
30
130
|
"babel-loader": "^8.2.3",
|
|
31
131
|
"babel-preset-react-app": "^10.0.1",
|
|
32
132
|
"classnames": "^2.3.1",
|
|
33
133
|
"esbuild": "^0.15.10",
|
|
34
|
-
"eslint": "
|
|
134
|
+
"eslint": "7.16.0",
|
|
35
135
|
"eslint-config-airbnb": "^18.2.1",
|
|
36
|
-
"eslint-config-ouisys": "0.0.
|
|
136
|
+
"eslint-config-ouisys": "0.0.9",
|
|
37
137
|
"eslint-config-prettier": "^7.1.0",
|
|
38
138
|
"eslint-plugin-import": "^2.22.1",
|
|
39
|
-
"eslint-plugin-jest": "
|
|
139
|
+
"eslint-plugin-jest": "24.1.3",
|
|
40
140
|
"eslint-plugin-jsx-a11y": "^6.4.1",
|
|
41
141
|
"eslint-plugin-prettier": "^3.3.0",
|
|
42
142
|
"eslint-plugin-react": "^7.21.5",
|
|
43
143
|
"eslint-plugin-react-hooks": "^4.2.0",
|
|
144
|
+
"eslint-plugin-storybook": "^0.11.1",
|
|
44
145
|
"eslint-plugin-testing-library": "^3.10.1",
|
|
146
|
+
"eslint-webpack-plugin": "3.2.0",
|
|
147
|
+
"husky": "8.0.1",
|
|
45
148
|
"identity-obj-proxy": "^3.0.0",
|
|
46
|
-
"jest": "^
|
|
149
|
+
"jest": "^29.7.0",
|
|
150
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
47
151
|
"lint-staged": "^13.0.3",
|
|
48
|
-
"node-sass": "7",
|
|
49
152
|
"postcss": "8",
|
|
50
153
|
"prettier": "^2.7.1",
|
|
51
154
|
"prettier-config-ouisys": "0.0.2",
|
|
@@ -61,39 +164,13 @@
|
|
|
61
164
|
"rollup-plugin-postcss": "^4.0.2",
|
|
62
165
|
"rollup-plugin-terser": "^7.0.2",
|
|
63
166
|
"rollup-plugin-typescript2": "^0.31.1",
|
|
167
|
+
"sass": "^1.83.0",
|
|
64
168
|
"sass-loader": "^10",
|
|
65
|
-
"
|
|
66
|
-
"ts-
|
|
169
|
+
"storybook": "^8.4.7",
|
|
170
|
+
"ts-jest": "^29.2.5",
|
|
171
|
+
"ts-node": "^10.9.2",
|
|
67
172
|
"typescript": "^4.5.4"
|
|
68
173
|
},
|
|
69
|
-
"dependencies": {
|
|
70
|
-
"awesome-phonenumber": "^7.0.1"
|
|
71
|
-
},
|
|
72
|
-
"peerDependencies": {
|
|
73
|
-
"classnames": "^2.3.1",
|
|
74
|
-
"react": ">=18.2.0",
|
|
75
|
-
"react-dom": ">=18.2.0"
|
|
76
|
-
},
|
|
77
|
-
"scripts": {
|
|
78
|
-
"build": "rm -rf build && rollup -c",
|
|
79
|
-
"storybook": "NODE_OPTIONS=--openssl-legacy-provider start-storybook -p 6006",
|
|
80
|
-
"storybook:export": "build-storybook",
|
|
81
|
-
"build-storybook": "build-storybook",
|
|
82
|
-
"clean": "rm -rf ./dist && rm -rf ./build",
|
|
83
|
-
"watch": "tsc -b -w --preserveWatchOutput",
|
|
84
|
-
"lint": "eslint --fix 'src/**/*.{ts,tsx}'",
|
|
85
|
-
"format": "prettier --write .",
|
|
86
|
-
"test": "node --max_old_space_size=5096 node_modules/.bin/jest",
|
|
87
|
-
"test:local": "jest --runInBand",
|
|
88
|
-
"test:coverage": "yarn run test -- --watch --coverage --coverage-reporters=lcov --watchAll=false; echo \"\\033[32m>>> 🌹 Coverage report now in /coverage folder\"",
|
|
89
|
-
"test:coverageWatch": "yarn run test -- --watch --coverage --coverage-reporters=lcov --watchAll=true",
|
|
90
|
-
"test:watch": "yarn run test -- --watch --watchAll=true",
|
|
91
|
-
"test:debug": "node --inspect-brk node_modules/.bin/jest --watch --ci --runInBand",
|
|
92
|
-
"release": "yarn release:patch && release:publish && release:publish",
|
|
93
|
-
"release:patch": "npm version patch",
|
|
94
|
-
"release:publish": "npm publish",
|
|
95
|
-
"release:push": "git push"
|
|
96
|
-
},
|
|
97
174
|
"husky": {
|
|
98
175
|
"hooks": {
|
|
99
176
|
"pre-commit": "lint-staged"
|
|
@@ -103,5 +180,14 @@
|
|
|
103
180
|
"*": "prettier --ignore-unknown --write",
|
|
104
181
|
"src/**/*.{ts,tsx}": "eslint --fix"
|
|
105
182
|
},
|
|
183
|
+
"peerDependencies": {
|
|
184
|
+
"classnames": "^2.3.1",
|
|
185
|
+
"react": ">=18.2.0",
|
|
186
|
+
"react-dom": ">=18.2.0"
|
|
187
|
+
},
|
|
188
|
+
"engines": {
|
|
189
|
+
"node": ">=20",
|
|
190
|
+
"npm": ">=10"
|
|
191
|
+
},
|
|
106
192
|
"prettier": "prettier-config-ouisys"
|
|
107
193
|
}
|