react-restyle-components 0.1.85 → 0.1.87
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/lib/cjs/index.d.ts +2 -0
- package/lib/cjs/index.js +18 -0
- package/lib/cjs/src/App.d.ts +4 -0
- package/lib/cjs/src/App.js +14 -0
- package/lib/cjs/src/__mocks__/styleMock.js +2 -0
- package/lib/cjs/src/core-components/atoms/buttons/button.stories.d.ts +6 -0
- package/lib/cjs/src/core-components/atoms/buttons/button.stories.js +42 -0
- package/lib/cjs/src/core-components/atoms/buttons/buttons.component.d.ts +11 -0
- package/lib/cjs/src/core-components/atoms/buttons/buttons.component.js +15 -0
- package/lib/cjs/src/core-components/atoms/check-box/checkBox.component.d.ts +11 -0
- package/lib/cjs/src/core-components/atoms/check-box/checkBox.component.js +47 -0
- package/lib/cjs/src/core-components/atoms/check-box/checkBox.stories.d.ts +6 -0
- package/lib/cjs/src/core-components/atoms/check-box/checkBox.stories.js +26 -0
- package/lib/cjs/src/core-components/atoms/date-picker/date-picker.component.d.ts +13 -0
- package/lib/cjs/src/core-components/atoms/date-picker/date-picker.component.js +52 -0
- package/lib/cjs/src/core-components/atoms/date-picker/date-picker.stories.d.ts +6 -0
- package/lib/cjs/src/core-components/atoms/date-picker/date-picker.stories.js +24 -0
- package/lib/cjs/src/core-components/atoms/form/form.component.d.ts +102 -0
- package/lib/cjs/src/core-components/atoms/form/form.component.js +192 -0
- package/lib/cjs/src/core-components/atoms/icons/icons.component.d.ts +11 -0
- package/lib/cjs/src/core-components/atoms/icons/icons.component.js +66 -0
- package/lib/cjs/src/core-components/atoms/icons/icons.stories.d.ts +6 -0
- package/lib/cjs/src/core-components/atoms/icons/icons.stories.js +22 -0
- package/lib/cjs/src/core-components/atoms/input/input-otp.component.d.ts +15 -0
- package/lib/cjs/src/core-components/atoms/input/input-otp.component.js +88 -0
- package/lib/cjs/src/core-components/atoms/input/input-pin.component.d.ts +16 -0
- package/lib/cjs/src/core-components/atoms/input/input-pin.component.js +107 -0
- package/lib/cjs/src/core-components/atoms/input/input-pin.stories.d.ts +6 -0
- package/lib/cjs/src/core-components/atoms/input/input-pin.stories.js +23 -0
- package/lib/cjs/src/core-components/atoms/input/input.component.d.ts +19 -0
- package/lib/cjs/src/core-components/atoms/input/input.component.js +45 -0
- package/lib/cjs/src/core-components/atoms/input/input.stories.d.ts +6 -0
- package/lib/cjs/src/core-components/atoms/input/input.stories.js +24 -0
- package/lib/cjs/src/core-components/atoms/input-dropdown/input-dropdown.component.d.ts +11 -0
- package/lib/cjs/src/core-components/atoms/input-dropdown/input-dropdown.component.js +64 -0
- package/lib/cjs/src/core-components/atoms/input-dropdown/input-dropdown.stories.d.ts +6 -0
- package/lib/cjs/src/core-components/atoms/input-dropdown/input-dropdown.stories.js +20 -0
- package/lib/cjs/src/core-components/atoms/loader/loader.component.d.ts +4 -0
- package/lib/cjs/src/core-components/atoms/loader/loader.component.js +61 -0
- package/lib/cjs/src/core-components/atoms/loader/loader.stories.d.ts +6 -0
- package/lib/cjs/src/core-components/atoms/loader/loader.stories.js +16 -0
- package/lib/cjs/src/core-components/atoms/radio/radio.component.d.ts +10 -0
- package/lib/cjs/src/core-components/atoms/radio/radio.component.js +49 -0
- package/lib/cjs/src/core-components/atoms/radio/radio.stories.d.ts +6 -0
- package/lib/cjs/src/core-components/atoms/radio/radio.stories.js +25 -0
- package/lib/cjs/src/core-components/atoms/stepper/stepper.component.d.ts +10 -0
- package/lib/cjs/src/core-components/atoms/stepper/stepper.component.js +42 -0
- package/lib/cjs/src/core-components/atoms/stepper/stepper.stories.d.ts +6 -0
- package/lib/cjs/src/core-components/atoms/stepper/stepper.stories.js +21 -0
- package/lib/cjs/src/core-components/atoms/tabs/tabs.component.d.ts +11 -0
- package/lib/cjs/src/core-components/atoms/tabs/tabs.component.js +46 -0
- package/lib/cjs/src/core-components/atoms/tabs/tabs.stories.d.ts +6 -0
- package/lib/cjs/src/core-components/atoms/tabs/tabs.stories.js +25 -0
- package/lib/cjs/src/core-components/atoms/timer/timer.component.d.ts +7 -0
- package/lib/cjs/src/core-components/atoms/timer/timer.component.js +106 -0
- package/lib/cjs/src/core-components/atoms/tooltip/tooltip.component.d.ts +10 -0
- package/lib/cjs/src/core-components/atoms/tooltip/tooltip.component.js +56 -0
- package/lib/cjs/src/core-components/atoms/tooltip/tooltip.stories.d.ts +6 -0
- package/lib/cjs/src/core-components/atoms/tooltip/tooltip.stories.js +16 -0
- package/lib/cjs/src/core-components/index.d.ts +24 -0
- package/lib/cjs/src/core-components/index.js +53 -0
- package/lib/cjs/src/core-components/molecules/auto-complete-filter-multiple-select-multiple-fields-display/auto-complete-filter-multiple-select-multiple-fields-display.component.d.ts +18 -0
- package/lib/cjs/src/core-components/molecules/auto-complete-filter-multiple-select-multiple-fields-display/auto-complete-filter-multiple-select-multiple-fields-display.component.js +119 -0
- package/lib/cjs/src/core-components/molecules/auto-complete-filter-multiple-select-multiple-fields-display/auto-complete-filter-multiple-select-multiple-fields-display.stories.d.ts +6 -0
- package/lib/cjs/src/core-components/molecules/auto-complete-filter-multiple-select-multiple-fields-display/auto-complete-filter-multiple-select-multiple-fields-display.stories.js +48 -0
- package/lib/cjs/src/core-components/molecules/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.component.d.ts +17 -0
- package/lib/cjs/src/core-components/molecules/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.component.js +120 -0
- package/lib/cjs/src/core-components/molecules/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.stories.d.ts +6 -0
- package/lib/cjs/src/core-components/molecules/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.stories.js +31 -0
- package/lib/cjs/src/core-components/molecules/autocomplete/autocomplete.d.ts +9 -0
- package/lib/cjs/src/core-components/molecules/autocomplete/autocomplete.js +144 -0
- package/lib/cjs/src/core-components/molecules/autocomplete/autocomplete.spec.d.ts +1 -0
- package/lib/cjs/src/core-components/molecules/autocomplete/autocomplete.spec.js +72 -0
- package/lib/cjs/src/core-components/molecules/autocomplete/autocomplete.stories.d.ts +6 -0
- package/lib/cjs/src/core-components/molecules/autocomplete/autocomplete.stories.js +20 -0
- package/lib/cjs/src/core-components/molecules/css-multiline-input/css-multiline-input.component.d.ts +12 -0
- package/lib/cjs/src/core-components/molecules/css-multiline-input/css-multiline-input.component.js +124 -0
- package/lib/cjs/src/core-components/molecules/css-multiline-input/css-multiline-input.stories.d.ts +6 -0
- package/lib/cjs/src/core-components/molecules/css-multiline-input/css-multiline-input.stories.js +16 -0
- package/lib/cjs/src/core-components/molecules/css-multiline-input/css-properties.d.ts +8931 -0
- package/lib/cjs/src/core-components/molecules/css-multiline-input/css-properties.js +164 -0
- package/lib/cjs/src/core-components/molecules/modal-confirm/modal-confirm.component.d.ts +12 -0
- package/lib/cjs/src/core-components/molecules/modal-confirm/modal-confirm.component.js +60 -0
- package/lib/cjs/src/core-components/molecules/modal-confirm/modal-confirm.stories.d.ts +6 -0
- package/lib/cjs/src/core-components/molecules/modal-confirm/modal-confirm.stories.js +23 -0
- package/lib/cjs/src/core-components/molecules/multi-select/multi-select.component.d.ts +9 -0
- package/lib/cjs/src/core-components/molecules/multi-select/multi-select.component.js +78 -0
- package/lib/cjs/src/core-components/molecules/multi-select/multi-select.stories.d.ts +6 -0
- package/lib/cjs/src/core-components/molecules/multi-select/multi-select.stories.js +22 -0
- package/lib/cjs/src/core-components/molecules/multi-select-with-field/multi-select-with-field.component.d.ts +10 -0
- package/lib/cjs/src/core-components/molecules/multi-select-with-field/multi-select-with-field.component.js +88 -0
- package/lib/cjs/src/core-components/molecules/multi-select-with-field/multi-select-with-field.stories.d.ts +6 -0
- package/lib/cjs/src/core-components/molecules/multi-select-with-field/multi-select-with-field.stories.js +23 -0
- package/lib/cjs/src/core-utils/index.d.ts +1 -0
- package/lib/cjs/src/core-utils/index.js +17 -0
- package/lib/cjs/src/core-utils/unit-test.utils.d.ts +4 -0
- package/lib/cjs/src/core-utils/unit-test.utils.js +16 -0
- package/lib/cjs/src/index.d.ts +1 -0
- package/lib/cjs/src/index.js +17 -0
- package/lib/cjs/src/library/assets/svg/index.d.ts +9 -0
- package/lib/cjs/src/library/assets/svg/index.js +40 -0
- package/lib/cjs/src/reportWebVitals.d.ts +3 -0
- package/lib/cjs/src/reportWebVitals.js +37 -0
- package/lib/cjs/src/setupTests.d.ts +1 -0
- package/lib/cjs/src/setupTests.js +7 -0
- package/lib/package.json +43 -67
- package/lib/src/App.css +3 -2
- package/lib/src/App.js +4 -9
- package/lib/src/core-components/atoms/buttons/buttons.component.d.ts +1 -1
- package/lib/src/core-components/atoms/buttons/buttons.component.js +1 -1
- package/lib/src/core-components/atoms/check-box/checkBox.component.d.ts +1 -1
- package/lib/src/core-components/atoms/check-box/checkBox.component.js +2 -2
- package/lib/src/core-components/atoms/check-box/checkBox.stories.d.ts +1 -1
- package/lib/src/core-components/atoms/check-box/checkBox.stories.js +1 -1
- package/lib/src/core-components/atoms/date-picker/date-picker.component.d.ts +1 -1
- package/lib/src/core-components/atoms/date-picker/date-picker.component.js +1 -1
- package/lib/src/core-components/atoms/form/form.component.d.ts +2 -2
- package/lib/src/core-components/atoms/form/form.component.js +2 -2
- package/lib/src/core-components/atoms/icons/icons.component.d.ts +1 -2
- package/lib/src/core-components/atoms/icons/icons.component.js +1 -1
- package/lib/src/core-components/atoms/input/input-otp.component.d.ts +1 -1
- package/lib/src/core-components/atoms/input/input-otp.component.js +1 -1
- package/lib/src/core-components/atoms/input/input-pin.component.d.ts +1 -1
- package/lib/src/core-components/atoms/input/input-pin.component.js +1 -1
- package/lib/src/core-components/atoms/input/input.component.d.ts +1 -1
- package/lib/src/core-components/atoms/input/input.component.js +1 -1
- package/lib/src/core-components/atoms/input-dropdown/input-dropdown.component.d.ts +1 -1
- package/lib/src/core-components/atoms/input-dropdown/input-dropdown.component.js +1 -1
- package/lib/src/core-components/atoms/loader/loader.component.d.ts +1 -1
- package/lib/src/core-components/atoms/loader/loader.component.js +1 -1
- package/lib/src/core-components/atoms/radio/radio.component.d.ts +1 -1
- package/lib/src/core-components/atoms/radio/radio.component.js +1 -1
- package/lib/src/core-components/atoms/stepper/stepper.component.d.ts +1 -1
- package/lib/src/core-components/atoms/stepper/stepper.component.js +1 -1
- package/lib/src/core-components/atoms/tabs/tabs.component.d.ts +1 -1
- package/lib/src/core-components/atoms/tabs/tabs.component.js +1 -1
- package/lib/src/core-components/atoms/timer/timer.component.d.ts +1 -1
- package/lib/src/core-components/atoms/timer/timer.component.js +1 -1
- package/lib/src/core-components/atoms/tooltip/tooltip.component.d.ts +1 -1
- package/lib/src/core-components/atoms/tooltip/tooltip.component.js +1 -1
- package/lib/src/core-components/index.d.ts +2 -1
- package/lib/src/core-components/index.js +2 -1
- package/lib/src/core-components/molecules/auto-complete-filter-multiple-select-multiple-fields-display/auto-complete-filter-multiple-select-multiple-fields-display.component.d.ts +1 -1
- package/lib/src/core-components/molecules/auto-complete-filter-multiple-select-multiple-fields-display/auto-complete-filter-multiple-select-multiple-fields-display.component.js +1 -1
- package/lib/src/core-components/molecules/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.component.d.ts +1 -1
- package/lib/src/core-components/molecules/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.component.js +1 -1
- package/lib/src/core-components/molecules/autocomplete/autocomplete.css +51 -0
- package/lib/src/core-components/molecules/autocomplete/autocomplete.d.ts +9 -0
- package/lib/src/core-components/molecules/autocomplete/autocomplete.js +117 -0
- package/lib/src/core-components/molecules/autocomplete/autocomplete.spec.d.ts +1 -0
- package/lib/src/core-components/molecules/autocomplete/autocomplete.spec.js +67 -0
- package/lib/src/core-components/molecules/autocomplete/autocomplete.stories.d.ts +6 -0
- package/lib/src/core-components/molecules/autocomplete/autocomplete.stories.js +17 -0
- package/lib/src/core-components/molecules/css-multiline-input/css-multiline-input.component.d.ts +1 -1
- package/lib/src/core-components/molecules/css-multiline-input/css-multiline-input.component.js +1 -1
- package/lib/src/core-components/molecules/modal-confirm/modal-confirm.stories.d.ts +1 -1
- package/lib/src/core-components/molecules/modal-confirm/modal-confirm.stories.js +1 -1
- package/lib/src/core-components/molecules/multi-select/multi-select.component.js +0 -1
- package/lib/src/index.css +17 -4
- package/lib/src/index.d.ts +1 -1
- package/lib/src/index.js +12 -1
- package/lib/src/reportWebVitals.d.ts +3 -1
- package/lib/src/reportWebVitals.js +12 -2
- package/lib/src/tc.css +1 -0
- package/lib/tc.css +1 -1
- package/package.json +42 -66
- package/lib/src/App.test.js +0 -8
- package/lib/src/core-components/atoms/buttons/buttons.test.js +0 -8
- package/lib/src/core-components/atoms/check-box/checkBox.test.js +0 -8
- package/lib/src/core-components/atoms/date-picker/date-picker.test.d.ts +0 -1
- package/lib/src/core-components/atoms/date-picker/date-picker.test.js +0 -9
- package/lib/src/core-components/atoms/form/form.test.d.ts +0 -1
- package/lib/src/core-components/atoms/form/form.test.js +0 -94
- package/lib/src/core-components/atoms/icons/icons.test.d.ts +0 -1
- package/lib/src/core-components/atoms/icons/icons.test.js +0 -10
- package/lib/src/core-components/atoms/input/input-pin.test.d.ts +0 -1
- package/lib/src/core-components/atoms/input/input-pin.test.js +0 -12
- package/lib/src/core-components/atoms/input/input.test.d.ts +0 -1
- package/lib/src/core-components/atoms/input/input.test.js +0 -12
- package/lib/src/core-components/atoms/input-dropdown/input-dropdown.test.d.ts +0 -1
- package/lib/src/core-components/atoms/input-dropdown/input-dropdown.test.js +0 -8
- package/lib/src/core-components/atoms/loader/loader.test.d.ts +0 -1
- package/lib/src/core-components/atoms/loader/loader.test.js +0 -8
- package/lib/src/core-components/atoms/radio/radio.test.d.ts +0 -1
- package/lib/src/core-components/atoms/radio/radio.test.js +0 -8
- package/lib/src/core-components/atoms/stepper/stepper.test.d.ts +0 -1
- package/lib/src/core-components/atoms/stepper/stepper.test.js +0 -7
- package/lib/src/core-components/atoms/tabs/tabs.test.d.ts +0 -1
- package/lib/src/core-components/atoms/tabs/tabs.test.js +0 -13
- package/lib/src/core-components/atoms/timer/timer.test.d.ts +0 -1
- package/lib/src/core-components/atoms/timer/timer.test.js +0 -14
- package/lib/src/core-components/atoms/tooltip/tooltip.component.test.d.ts +0 -1
- package/lib/src/core-components/atoms/tooltip/tooltip.component.test.js +0 -9
- package/lib/src/core-components/molecules/auto-complete-filter-multiple-select-multiple-fields-display/auto-complete-filter-multiple-select-multiple-fields-display.component.test.d.ts +0 -1
- package/lib/src/core-components/molecules/auto-complete-filter-multiple-select-multiple-fields-display/auto-complete-filter-multiple-select-multiple-fields-display.component.test.js +0 -9
- package/lib/src/core-components/molecules/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.component.test.d.ts +0 -1
- package/lib/src/core-components/molecules/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.component.test.js +0 -16
- package/lib/src/core-components/molecules/css-multiline-input/css-multiline-input.test.d.ts +0 -1
- package/lib/src/core-components/molecules/css-multiline-input/css-multiline-input.test.js +0 -10
- package/lib/src/core-components/molecules/modal-confirm/modal-confirm.test.d.ts +0 -1
- package/lib/src/core-components/molecules/modal-confirm/modal-confirm.test.js +0 -10
- package/lib/src/core-components/molecules/multi-select/multi-select.test.d.ts +0 -1
- package/lib/src/core-components/molecules/multi-select/multi-select.test.js +0 -10
- package/lib/src/core-components/molecules/multi-select-with-field/multi-select-with-field.test.d.ts +0 -1
- package/lib/src/core-components/molecules/multi-select-with-field/multi-select-with-field.test.js +0 -12
- /package/lib/{src/App.test.d.ts → cjs/src/__mocks__/styleMock.d.ts} +0 -0
- /package/lib/src/{core-components/atoms/buttons/buttons.test.d.ts → __mocks__/styleMock.d.ts} +0 -0
- /package/lib/src/{core-components/atoms/check-box/checkBox.test.d.ts → __mocks__/styleMock.js} +0 -0
package/package.json
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-restyle-components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.87",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Easy use restyle components",
|
|
6
|
-
"main": "./lib/index.js",
|
|
7
|
-
"types": "./lib/index.d.ts",
|
|
8
|
-
"files": [
|
|
9
|
-
"/lib"
|
|
10
|
-
],
|
|
11
6
|
"author": {
|
|
12
7
|
"email": "onlyappasaheb4@gmail.com",
|
|
13
8
|
"name": "Lakade Appasaheb",
|
|
@@ -16,11 +11,10 @@
|
|
|
16
11
|
"license": "MIT",
|
|
17
12
|
"scripts": {
|
|
18
13
|
"start": "serve -s ./build",
|
|
19
|
-
"dev": "
|
|
14
|
+
"dev": "craco start",
|
|
20
15
|
"serve-webapp": "craco build && craco start",
|
|
21
|
-
"build": "rm -rf
|
|
22
|
-
"
|
|
23
|
-
"test": "react-scripts test",
|
|
16
|
+
"build": "rm -rf lib && chmod +x npm-publish.sh && sh ./npm-publish.sh && tsc -p tsconfig.json & tsc -p tsconfig-cjs.json",
|
|
17
|
+
"test": "jest",
|
|
24
18
|
"eject": "react-scripts eject",
|
|
25
19
|
"precommit": "lint-staged --allow-empty",
|
|
26
20
|
"storybook": "storybook dev -p 6006",
|
|
@@ -32,18 +26,23 @@
|
|
|
32
26
|
"dependencies": {
|
|
33
27
|
"@loadable/component": "^5.16.4",
|
|
34
28
|
"@mui/material": "^5.15.19",
|
|
35
|
-
"@testing-library/jest-dom": "^5.
|
|
36
|
-
"@testing-library/react": "^13.1.1",
|
|
29
|
+
"@testing-library/jest-dom": "^5.17.0",
|
|
37
30
|
"@testing-library/user-event": "^13.5.0",
|
|
38
|
-
"@types/jest": "^27.
|
|
39
|
-
"@types/
|
|
40
|
-
"@types/react
|
|
31
|
+
"@types/jest": "^27.5.2",
|
|
32
|
+
"@types/node": "^16.18.113",
|
|
33
|
+
"@types/react": "^18.3.11",
|
|
34
|
+
"@types/react-dom": "^18.3.0",
|
|
41
35
|
"dayjs": "^1.11.1",
|
|
36
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
37
|
+
"react": "^18.3.1",
|
|
42
38
|
"react-datepicker": "^4.7.0",
|
|
39
|
+
"react-dom": "^18.3.1",
|
|
43
40
|
"react-icons": "^5.2.1",
|
|
41
|
+
"react-scripts": "5.0.1",
|
|
44
42
|
"reactstrap": "^9.0.2",
|
|
45
43
|
"tailwindcss": "^3.0.24",
|
|
46
|
-
"typescript": "^4.
|
|
44
|
+
"typescript": "^4.9.5",
|
|
45
|
+
"web-vitals": "^2.1.4"
|
|
47
46
|
},
|
|
48
47
|
"peerDependencies": {
|
|
49
48
|
"@testing-library/jest-dom": "*",
|
|
@@ -62,38 +61,6 @@
|
|
|
62
61
|
"typescript": "*",
|
|
63
62
|
"web-vitals": "*"
|
|
64
63
|
},
|
|
65
|
-
"sideEffects": [
|
|
66
|
-
"**/*.css"
|
|
67
|
-
],
|
|
68
|
-
"eslintConfig": {
|
|
69
|
-
"extends": [
|
|
70
|
-
"react-app",
|
|
71
|
-
"react-app/jest",
|
|
72
|
-
"plugin:storybook/recommended"
|
|
73
|
-
],
|
|
74
|
-
"overrides": [
|
|
75
|
-
{
|
|
76
|
-
"files": [
|
|
77
|
-
"**/*.stories.*"
|
|
78
|
-
],
|
|
79
|
-
"rules": {
|
|
80
|
-
"import/no-anonymous-default-export": "off"
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
]
|
|
84
|
-
},
|
|
85
|
-
"browserslist": {
|
|
86
|
-
"production": [
|
|
87
|
-
">0.2%",
|
|
88
|
-
"not dead",
|
|
89
|
-
"not op_mini all"
|
|
90
|
-
],
|
|
91
|
-
"development": [
|
|
92
|
-
"last 1 chrome version",
|
|
93
|
-
"last 1 firefox version",
|
|
94
|
-
"last 1 safari version"
|
|
95
|
-
]
|
|
96
|
-
},
|
|
97
64
|
"devDependencies": {
|
|
98
65
|
"@chromatic-com/storybook": "^1.3.1",
|
|
99
66
|
"@craco/craco": "^6.4.3",
|
|
@@ -109,6 +76,7 @@
|
|
|
109
76
|
"@storybook/react-webpack5": "^8.0.6",
|
|
110
77
|
"@storybook/test": "^8.0.6",
|
|
111
78
|
"@svgr/webpack": "^8.1.0",
|
|
79
|
+
"@testing-library/react": "^16.0.1",
|
|
112
80
|
"autoprefixer": "^10.4.19",
|
|
113
81
|
"copyfiles": "^2.4.1",
|
|
114
82
|
"craco-alias": "^3.0.1",
|
|
@@ -116,35 +84,43 @@
|
|
|
116
84
|
"eslint-plugin-storybook": "^0.8.0",
|
|
117
85
|
"gh-pages": "^3.2.3",
|
|
118
86
|
"husky": "^7.0.4",
|
|
87
|
+
"jest": "^29.7.0",
|
|
119
88
|
"lint-staged": "^12.4.0",
|
|
120
89
|
"postcss-loader": "^8.1.1",
|
|
121
90
|
"sass": "^1.77.5",
|
|
122
91
|
"sass-loader": "^14.2.1",
|
|
123
92
|
"storybook": "^8.0.6",
|
|
124
93
|
"style-loader": "^4.0.0",
|
|
94
|
+
"ts-jest": "^29.2.5",
|
|
125
95
|
"webpack": "^5.72.0"
|
|
126
96
|
},
|
|
97
|
+
"files": [
|
|
98
|
+
"*.md",
|
|
99
|
+
"dist",
|
|
100
|
+
"lib"
|
|
101
|
+
],
|
|
102
|
+
"eslintConfig": {
|
|
103
|
+
"extends": [
|
|
104
|
+
"react-app",
|
|
105
|
+
"react-app/jest"
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
"browserslist": {
|
|
109
|
+
"production": [
|
|
110
|
+
">0.2%",
|
|
111
|
+
"not dead",
|
|
112
|
+
"not op_mini all"
|
|
113
|
+
],
|
|
114
|
+
"development": [
|
|
115
|
+
"last 1 chrome version",
|
|
116
|
+
"last 1 firefox version",
|
|
117
|
+
"last 1 safari version"
|
|
118
|
+
]
|
|
119
|
+
},
|
|
127
120
|
"keywords": [
|
|
128
121
|
"react",
|
|
129
122
|
"components",
|
|
130
123
|
"restyle-components",
|
|
131
124
|
"tech-abl"
|
|
132
|
-
]
|
|
133
|
-
"repository": {
|
|
134
|
-
"type": "git",
|
|
135
|
-
"url": "git+https://github.com/appasaheb4/react-restyle-components.git"
|
|
136
|
-
},
|
|
137
|
-
"bugs": {
|
|
138
|
-
"url": "https://github.com/appasaheb4/react-restyle-components/issues"
|
|
139
|
-
},
|
|
140
|
-
"homepage": "https://appasaheb4.github.io/react-restyle-components",
|
|
141
|
-
"lint-staged": {
|
|
142
|
-
"*.{js,jsx,json,css,scss,md}": [
|
|
143
|
-
"prettier --write",
|
|
144
|
-
"git add"
|
|
145
|
-
]
|
|
146
|
-
},
|
|
147
|
-
"resolutions": {
|
|
148
|
-
"jackspeak": "2.1.1"
|
|
149
|
-
}
|
|
125
|
+
]
|
|
150
126
|
}
|
package/lib/src/App.test.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { render, screen } from '@testing-library/react';
|
|
3
|
-
import App from './App';
|
|
4
|
-
test('renders learn react link', () => {
|
|
5
|
-
render(React.createElement(App, null));
|
|
6
|
-
const linkElement = screen.getByText(/learn react/i);
|
|
7
|
-
expect(linkElement).toBeInTheDocument();
|
|
8
|
-
});
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/* eslint-disable testing-library/render-result-naming-convention */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { render } from '@core-utils';
|
|
4
|
-
import { Button } from './buttons.component';
|
|
5
|
-
it('render Button correctly', () => {
|
|
6
|
-
const button = render(React.createElement(Button, { className: "bg-gray-light w-40", onClick: () => jest.fn() }, "Permanent Address"));
|
|
7
|
-
expect(button).toMatchSnapshot();
|
|
8
|
-
});
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/* eslint-disable testing-library/render-result-naming-convention */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { render } from '@core-utils';
|
|
4
|
-
import { CheckBox } from './checkBox.component';
|
|
5
|
-
it('render CheckBox correctly', () => {
|
|
6
|
-
const checkbox = render(React.createElement(CheckBox, { title: "Title", data: [], onChange: () => jest.fn() }));
|
|
7
|
-
expect(checkbox).toMatchSnapshot();
|
|
8
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/* eslint-disable testing-library/render-result-naming-convention */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { render } from '@core-utils';
|
|
4
|
-
import { DatePickerComp } from './date-picker.component';
|
|
5
|
-
import dayjs from 'dayjs';
|
|
6
|
-
it('render DatePicker correctly', () => {
|
|
7
|
-
const datepicker = render(React.createElement(DatePickerComp, { title: "Date", className: "mt-6", value: dayjs().format('YYYY-MM-DD'), showFormat: 'dd-MM-yyyy' }));
|
|
8
|
-
expect(datepicker).toMatchSnapshot();
|
|
9
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { render, fireEvent } from '@testing-library/react';
|
|
3
|
-
import userEvent from '@testing-library/user-event';
|
|
4
|
-
import { CheckBox, Input, Toggle, MultilineInput, Label, InputDate, InputFile, InputRadio, InputWrapper, } from './form.component';
|
|
5
|
-
describe('Checkbox component', () => {
|
|
6
|
-
it('render checkbox correctly', () => {
|
|
7
|
-
const checkbox = render(React.createElement(CheckBox, null));
|
|
8
|
-
expect(checkbox).toMatchSnapshot();
|
|
9
|
-
});
|
|
10
|
-
});
|
|
11
|
-
describe('Input component', () => {
|
|
12
|
-
it('render input correctly', () => {
|
|
13
|
-
const inputComp = render(React.createElement(Input, { type: "text", value: "test", onChange: (val) => jest.fn(), onBlur: (value) => jest.fn(), onKeyDown: (val) => jest.fn() }));
|
|
14
|
-
const input = inputComp.getByTestId('INPT');
|
|
15
|
-
fireEvent.change(input, { target: { value: 'check' } });
|
|
16
|
-
userEvent.type(input, 'value');
|
|
17
|
-
fireEvent.blur(input);
|
|
18
|
-
fireEvent.keyDown(input, {
|
|
19
|
-
key: 'Escape',
|
|
20
|
-
code: 'Escape',
|
|
21
|
-
keyCode: 27,
|
|
22
|
-
charCode: 27,
|
|
23
|
-
});
|
|
24
|
-
fireEvent.keyPress(input, { key: 'Enter', keyCode: 13 });
|
|
25
|
-
expect(input).toMatchSnapshot();
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
describe('Toggle component', () => {
|
|
29
|
-
it('render toggle correctly', () => {
|
|
30
|
-
const toggle = render(React.createElement(Toggle, null));
|
|
31
|
-
expect(toggle).toMatchSnapshot();
|
|
32
|
-
});
|
|
33
|
-
});
|
|
34
|
-
// describe('SelectOption component', () => {
|
|
35
|
-
// it('render selectOption correctly', () => {
|
|
36
|
-
// const select = render(
|
|
37
|
-
// <SelectOption key='test' onChange={value => jest.fn()} value='test' />,
|
|
38
|
-
// );
|
|
39
|
-
// const selectOption = select.getByTestId('SELECT');
|
|
40
|
-
// fireEvent.change(selectOption, {target: {value: 'check'}});
|
|
41
|
-
// userEvent.type(selectOption, 'value');
|
|
42
|
-
// expect(select).toMatchSnapshot();
|
|
43
|
-
// });
|
|
44
|
-
// });
|
|
45
|
-
describe('MultilineInput component', () => {
|
|
46
|
-
it('render multilineInput correctly', () => {
|
|
47
|
-
const multi = render(React.createElement(MultilineInput, null));
|
|
48
|
-
expect(multi).toMatchSnapshot();
|
|
49
|
-
});
|
|
50
|
-
});
|
|
51
|
-
// describe('Clock component', () => {
|
|
52
|
-
// it('render clock correctly', () => {
|
|
53
|
-
// const clock = render(
|
|
54
|
-
// <Clock value='2022-02-20' onChange={value => jest.fn()} />,
|
|
55
|
-
// );
|
|
56
|
-
// expect(clock).toMatchSnapshot();
|
|
57
|
-
// });
|
|
58
|
-
// });
|
|
59
|
-
describe('Label component', () => {
|
|
60
|
-
it('render label correctly', () => {
|
|
61
|
-
const label = render(React.createElement(Label, { htmlFor: "vsdvrf" }));
|
|
62
|
-
expect(label).toMatchSnapshot();
|
|
63
|
-
});
|
|
64
|
-
});
|
|
65
|
-
describe('InputDate component', () => {
|
|
66
|
-
it('render inputDate correctly', () => {
|
|
67
|
-
const inputDate = render(React.createElement(InputDate, null));
|
|
68
|
-
expect(inputDate).toMatchSnapshot();
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
// describe('InputDateTime component', () => {
|
|
72
|
-
// it('render inputDateTime correctly', () => {
|
|
73
|
-
// const inputDateTime = render(<InputDateTime />);
|
|
74
|
-
// expect(inputDateTime).toMatchSnapshot();
|
|
75
|
-
// });
|
|
76
|
-
// });
|
|
77
|
-
describe('InputFile component', () => {
|
|
78
|
-
it('render inputFile correctly', () => {
|
|
79
|
-
const inputFile = render(React.createElement(InputFile, null));
|
|
80
|
-
expect(inputFile).toMatchSnapshot();
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
describe('InputRadio component', () => {
|
|
84
|
-
it('render inputRadio correctly', () => {
|
|
85
|
-
const inputRadio = render(React.createElement(InputRadio, null));
|
|
86
|
-
expect(inputRadio).toMatchSnapshot();
|
|
87
|
-
});
|
|
88
|
-
});
|
|
89
|
-
describe('InputWrapper component', () => {
|
|
90
|
-
it('render inputWrapper correctly', () => {
|
|
91
|
-
const inputWrapper = render(React.createElement(InputWrapper, null));
|
|
92
|
-
expect(inputWrapper).toMatchSnapshot();
|
|
93
|
-
});
|
|
94
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { render } from '@core-utils';
|
|
3
|
-
import { Icon } from './icons.component';
|
|
4
|
-
it('render Icon correctly', () => {
|
|
5
|
-
const icon = render(React.createElement(Icon, { nameIcon: "FaHistory", propsIcon: {
|
|
6
|
-
color: '#000000',
|
|
7
|
-
size: 24,
|
|
8
|
-
} }));
|
|
9
|
-
expect(icon).toMatchSnapshot();
|
|
10
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/* eslint-disable testing-library/render-result-naming-convention */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { render } from '@core-utils';
|
|
4
|
-
import { InputPin } from './input-pin.component';
|
|
5
|
-
it('render InputOtp correctly without error', () => {
|
|
6
|
-
const pinInput = render(React.createElement(InputPin, { title: "Enter your Aadhaar Number", hasError: false, errorMsg: "Uh oh! You\u2019ve entered an invalid aadhaar number", onPinChanged: () => jest.fn(), defaultPin: [] }));
|
|
7
|
-
expect(pinInput).toMatchSnapshot();
|
|
8
|
-
});
|
|
9
|
-
it('render InputOtp correctly with error', () => {
|
|
10
|
-
const pinInput = render(React.createElement(InputPin, { title: "Enter your Aadhaar Number", hasError: true, errorMsg: "Uh oh! You\u2019ve entered an invalid aadhaar number", onPinChanged: () => jest.fn(), defaultPin: [] }));
|
|
11
|
-
expect(pinInput).toMatchSnapshot();
|
|
12
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/* eslint-disable testing-library/render-result-naming-convention */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { render } from '@core-utils';
|
|
4
|
-
import { Input } from './input.component';
|
|
5
|
-
it('render Input correctly without error', () => {
|
|
6
|
-
const input = render(React.createElement(Input, { className: "h-1 relative top-1 border-red-600 border-b-0 dummy", title: 'input', hasError: false, defaultValue: '', inputStyle: " border-b-0 invisible ", onChange: () => jest.fn() }));
|
|
7
|
-
expect(input).toMatchSnapshot();
|
|
8
|
-
});
|
|
9
|
-
it('render Input correctly with error', () => {
|
|
10
|
-
const input = render(React.createElement(Input, { className: "h-1 relative top-1 border-red-600 border-b-0 dummy", title: 'input', hasError: true, defaultValue: '', inputStyle: " border-b-0 invisible ", onChange: () => jest.fn() }));
|
|
11
|
-
expect(input).toMatchSnapshot();
|
|
12
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/* eslint-disable testing-library/render-result-naming-convention */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { render } from '@core-utils';
|
|
4
|
-
import { InputDropdown } from './input-dropdown.component';
|
|
5
|
-
it('render InputDropdown correctly', () => {
|
|
6
|
-
const inputDropDown = render(React.createElement(InputDropdown, { title: "Source of funds", items: ['Bank account', 'UPI', 'Credit Card'], hasError: true, onChange: () => jest.fn() }));
|
|
7
|
-
expect(inputDropDown).toMatchSnapshot();
|
|
8
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/* eslint-disable testing-library/render-result-naming-convention */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { render } from '@core-utils';
|
|
4
|
-
import { Loader } from './loader.component';
|
|
5
|
-
it('render Loader correctly', () => {
|
|
6
|
-
const loader = render(React.createElement(Loader, null));
|
|
7
|
-
expect(loader).toMatchSnapshot();
|
|
8
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/* eslint-disable testing-library/render-result-naming-convention */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { render } from '@core-utils';
|
|
4
|
-
import { Radio } from './radio.component';
|
|
5
|
-
it('render Radio correctly', () => {
|
|
6
|
-
const radio = render(React.createElement(Radio, { title: "Title", data: [], onChange: () => jest.fn() }));
|
|
7
|
-
expect(radio).toMatchSnapshot();
|
|
8
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { render } from '@core-utils';
|
|
3
|
-
import { Stepper } from './stepper.component';
|
|
4
|
-
it('render Stepper correctly', () => {
|
|
5
|
-
const stepper = render(React.createElement(Stepper, { steps: ['1', '2', '3', '4'], currentStep: 3, onStepClick: () => jest.fn(), className: "mt-4" }));
|
|
6
|
-
expect(stepper).toMatchSnapshot();
|
|
7
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { render } from '@core-utils';
|
|
3
|
-
import { Tabs } from './tabs.component';
|
|
4
|
-
it('render Tabs correctly', () => {
|
|
5
|
-
const tabs = render(React.createElement(Tabs, { options: [
|
|
6
|
-
{ title: 'Work History', icon: 'FaHistory' },
|
|
7
|
-
{ title: 'Book Order', icon: 'FaBook' },
|
|
8
|
-
{ title: 'Make Frame', icon: 'MdFilterFrames' },
|
|
9
|
-
], onSelect: (item) => {
|
|
10
|
-
console.log({ item });
|
|
11
|
-
} }));
|
|
12
|
-
expect(tabs).toMatchSnapshot();
|
|
13
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/* eslint-disable testing-library/await-async-query */
|
|
2
|
-
/* eslint-disable testing-library/prefer-screen-queries */
|
|
3
|
-
/* eslint-disable testing-library/render-result-naming-convention */
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { render } from '@core-utils';
|
|
6
|
-
import { Timer as TimerComp } from './timer.component';
|
|
7
|
-
it('render Timer correctly', () => {
|
|
8
|
-
const time = render(React.createElement(TimerComp, { onClear: () => { } }));
|
|
9
|
-
expect(time).toMatchSnapshot();
|
|
10
|
-
});
|
|
11
|
-
it('render Timer with minute correctly', () => {
|
|
12
|
-
const time = render(React.createElement(TimerComp, { onClear: () => { } }));
|
|
13
|
-
expect(time.findByText('minute')).toBeTruthy();
|
|
14
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { render } from '@testing-library/react';
|
|
3
|
-
import { Tooltip } from './tooltip.component';
|
|
4
|
-
describe('Tooltip component', () => {
|
|
5
|
-
it('render tooltip correctly', () => {
|
|
6
|
-
const tooltip = render(React.createElement(Tooltip, null));
|
|
7
|
-
expect(tooltip).toMatchSnapshot();
|
|
8
|
-
});
|
|
9
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { render } from '@core-utils';
|
|
3
|
-
import { AutoCompleteFilterMultipleSelectMultipleFieldsDisplay } from './auto-complete-filter-multiple-select-multiple-fields-display.component';
|
|
4
|
-
it('render AutoCompleteFilterMultipleSelectMultipleFieldsDisplay correctly', () => {
|
|
5
|
-
const autoCompleteFilterMultipleSelectMultipleFieldsDisplay = render(React.createElement(AutoCompleteFilterMultipleSelectMultipleFieldsDisplay, { data: [], onUpdate: (item) => {
|
|
6
|
-
console.log({ item });
|
|
7
|
-
}, onSelect: (item) => { } }));
|
|
8
|
-
expect(autoCompleteFilterMultipleSelectMultipleFieldsDisplay).toMatchSnapshot();
|
|
9
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { render } from '@testing-library/react';
|
|
3
|
-
import { AutoCompleteFilterSingleSelectMultiFieldsDisplay } from './auto-complete-filter-single-select-multiple-fields-display.component';
|
|
4
|
-
describe('AutoCompleteFilterSingleSelectMultiFieldsDisplay component', () => {
|
|
5
|
-
it('render autoCompleteFilterSingleSelectMultiFieldsDisplay correctly', () => {
|
|
6
|
-
const autoCompleteFilterSingleSelectMultiFieldsDisplay = render(React.createElement(AutoCompleteFilterSingleSelectMultiFieldsDisplay, { data: {
|
|
7
|
-
list: [
|
|
8
|
-
{ code: 'Lims', name: 'plus' },
|
|
9
|
-
{ code: 'Lims', name: 'plus' },
|
|
10
|
-
{ code: 'Lims', name: 'plus' },
|
|
11
|
-
],
|
|
12
|
-
displayKey: ['name'],
|
|
13
|
-
}, onSelect: () => jest.fn(), onFilter: () => jest.fn() }));
|
|
14
|
-
expect(autoCompleteFilterSingleSelectMultiFieldsDisplay).toMatchSnapshot();
|
|
15
|
-
});
|
|
16
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* eslint-disable testing-library/await-async-query */
|
|
2
|
-
/* eslint-disable testing-library/prefer-screen-queries */
|
|
3
|
-
/* eslint-disable testing-library/render-result-naming-convention */
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { render } from '@core-utils';
|
|
6
|
-
import { CSSMultiline } from './css-multiline-input.component';
|
|
7
|
-
it('render CSSMultiline correctly', () => {
|
|
8
|
-
const result = render(React.createElement(CSSMultiline, { onChange: () => { } }));
|
|
9
|
-
expect(result).toMatchSnapshot();
|
|
10
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* eslint-disable testing-library/render-result-naming-convention */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { render } from '@core-utils';
|
|
4
|
-
import { ModalConfirm } from './modal-confirm.component';
|
|
5
|
-
it('render ModalConfirm correctly', () => {
|
|
6
|
-
const modalConfirm = render(React.createElement(ModalConfirm, { visible: true, title: "Confirm", message: "Are you sure delete?", onClick: () => jest.fn(), onClose: () => {
|
|
7
|
-
jest.fn();
|
|
8
|
-
} }));
|
|
9
|
-
expect(modalConfirm).toMatchSnapshot();
|
|
10
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* eslint-disable testing-library/await-async-query */
|
|
2
|
-
/* eslint-disable testing-library/prefer-screen-queries */
|
|
3
|
-
/* eslint-disable testing-library/render-result-naming-convention */
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { render } from '@core-utils';
|
|
6
|
-
import { MultiSelect } from './multi-select.component';
|
|
7
|
-
it('render MultiSelect correctly', () => {
|
|
8
|
-
const result = render(React.createElement(MultiSelect, { options: ['UPI', 'CASH'], selectedItems: ['CASH'], onSelect: () => { } }));
|
|
9
|
-
expect(result).toMatchSnapshot();
|
|
10
|
-
});
|
package/lib/src/core-components/molecules/multi-select-with-field/multi-select-with-field.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/lib/src/core-components/molecules/multi-select-with-field/multi-select-with-field.test.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/* eslint-disable testing-library/await-async-query */
|
|
2
|
-
/* eslint-disable testing-library/prefer-screen-queries */
|
|
3
|
-
/* eslint-disable testing-library/render-result-naming-convention */
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { render } from '@core-utils';
|
|
6
|
-
import { MultiSelectWithField } from './multi-select-with-field.component';
|
|
7
|
-
it('render MultiSelectWithField correctly', () => {
|
|
8
|
-
const result = render(React.createElement(MultiSelectWithField, { displayField: 'code', options: [{ code: 'UPI' }, { code: 'CARD' }, { code: 'CASH' }], selectedItems: [{ code: 'CASH' }], onSelect: (item) => {
|
|
9
|
-
console.log({ item });
|
|
10
|
-
} }));
|
|
11
|
-
expect(result).toMatchSnapshot();
|
|
12
|
-
});
|
|
File without changes
|
/package/lib/src/{core-components/atoms/buttons/buttons.test.d.ts → __mocks__/styleMock.d.ts}
RENAMED
|
File without changes
|
/package/lib/src/{core-components/atoms/check-box/checkBox.test.d.ts → __mocks__/styleMock.js}
RENAMED
|
File without changes
|