@mcf/lib-ui 2.4.87 → 2.4.90
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/dist/@types/Component/BaseButton/BaseButton.d.ts +1 -1
- package/dist/@types/Component/Button/Button.d.ts +3 -2
- package/dist/@types/Component/ButtonGroup/ButtonGroup.d.ts +2 -2
- package/dist/@types/Component/CheckBox/CheckBox.d.ts +1 -1
- package/dist/@types/Component/CheckboxGroup/CheckboxGroup.d.ts +2 -2
- package/dist/@types/Component/CheckboxNew/CheckboxNew.d.ts +1 -1
- package/dist/@types/Component/Dropdown/Dropdown.d.ts +73 -3
- package/dist/@types/Component/Dropdown/index.d.ts +1 -2
- package/dist/@types/Component/DropdownNew/DropdownNew.d.ts +4 -0
- package/dist/@types/Component/DropdownNew/index.d.ts +2 -0
- package/dist/@types/Component/Icon/Icons.d.ts +2 -0
- package/dist/@types/Component/MenuList/MenuItem.d.ts +2 -2
- package/dist/@types/Component/MenuList/MenuList.d.ts +2 -2
- package/dist/@types/Component/MessageBar/index.d.ts +1 -0
- package/dist/@types/Component/RadioButtonGroup/RadioButtonGroup.d.ts +1 -1
- package/dist/@types/Component/ReactFileReader/ReactFileReader.d.ts +1 -1
- package/dist/@types/Component/StickyHeader/StickyHeader.d.ts +1 -1
- package/dist/@types/Component/Tabs/Tabs.d.ts +3 -3
- package/dist/@types/Component/TextArea/TextArea.d.ts +2 -2
- package/dist/@types/Component/TextInput/TextInput.d.ts +1 -1
- package/dist/@types/Component/Toggle/Toggle.d.ts +6 -0
- package/dist/@types/Component/Toggle/index.d.ts +1 -0
- package/dist/@types/Component/TypeAhead/TypeAhead.d.ts +2 -2
- package/dist/@types/Component/index.d.ts +3 -1
- package/dist/@types/Example/ReactFileReader/ReactFileReader.story.d.ts +2 -2
- package/dist/@types/Example/ReactFileReader/index.d.ts +1 -1
- package/dist/@types/storyguide/Buttons/BaseButton.d.ts +17 -0
- package/dist/@types/storyguide/JobCard/Bookmark/BookmarkButton.d.ts +6 -0
- package/dist/@types/storyguide/JobCard/CompanyInfo.d.ts +2 -0
- package/dist/@types/storyguide/JobCard/JobBenefit.d.ts +2 -0
- package/dist/@types/storyguide/JobCard/JobCard.d.ts +2 -0
- package/dist/@types/storyguide/JobCard/JobInfo.d.ts +2 -0
- package/dist/@types/storyguide/JobCard/JobLastPostedDate.d.ts +2 -0
- package/dist/@types/storyguide/JobCard/JobPostStatus.d.ts +2 -0
- package/dist/@types/storyguide/JobCard/JobSkillInfo.d.ts +2 -0
- package/dist/@types/storyguide/JobCard/JobSponsor.d.ts +2 -0
- package/dist/@types/storyguide/JobCard/JobTitle.d.ts +2 -0
- package/dist/@types/storyguide/JobCard/SalaryInfo.d.ts +2 -0
- package/dist/@types/storyguide/Skills/Score.d.ts +6 -0
- package/dist/@types/storyguide/Skills/Scorebar.d.ts +6 -0
- package/dist/@types/storyguide/Skills/SkillPill.d.ts +7 -0
- package/dist/@types/storyguide/Text/Font.d.ts +12 -0
- package/dist/@types/storyguide/Text/TextSize.d.ts +4 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/jest.config.js +2 -2
- package/package.json +20 -12
- package/test/helpers/enzyme.ts +4 -0
- package/test/helpers/index.ts +2 -0
- package/jest.setup.ts +0 -8
- /package/dist/@types/Component/{Dropdown/Dropdown.constants.d.ts → DropdownNew/DropdownNew.constants.d.ts} +0 -0
package/jest.config.js
CHANGED
|
@@ -117,10 +117,10 @@ module.exports = {
|
|
|
117
117
|
// setupFiles: [],
|
|
118
118
|
|
|
119
119
|
// The path to a module that runs some code to configure or set up the testing framework before each test
|
|
120
|
-
setupFilesAfterEnv: ['<rootDir>/
|
|
120
|
+
setupFilesAfterEnv: ['<rootDir>/test/helpers/index.ts'],
|
|
121
121
|
|
|
122
122
|
// A list of paths to snapshot serializer modules Jest should use for snapshot testing
|
|
123
|
-
|
|
123
|
+
snapshotSerializers: ['enzyme-to-json/serializer'],
|
|
124
124
|
|
|
125
125
|
// The test environment that will be used for testing
|
|
126
126
|
testEnvironment: 'jest-environment-jsdom',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcf/lib-ui",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.90",
|
|
4
4
|
"description": "User Interface (UI) components for use in the MCF project.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/@types/Component/index.d.ts",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"fuse.js": "3.6.1",
|
|
33
33
|
"lodash": "4.17.21",
|
|
34
|
-
"react-autosuggest": "
|
|
34
|
+
"react-autosuggest": "9.3.4",
|
|
35
35
|
"react-collapsed": "4.2.0",
|
|
36
|
-
"react-select": "5.
|
|
37
|
-
"react-select-plus": "1.
|
|
36
|
+
"react-select": "5.8.0",
|
|
37
|
+
"react-select-plus": "1.1.0",
|
|
38
38
|
"scrolling-element": "1.0.2"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
@@ -57,16 +57,18 @@
|
|
|
57
57
|
"@storybook/testing-library": "0.2.2",
|
|
58
58
|
"@svgr/webpack": "8.1.0",
|
|
59
59
|
"@testing-library/jest-dom": "6.6.3",
|
|
60
|
-
"@testing-library/react": "
|
|
61
|
-
"@testing-library/user-event": "14.
|
|
60
|
+
"@testing-library/react": "12.1.5",
|
|
61
|
+
"@testing-library/user-event": "14.5.2",
|
|
62
62
|
"@types/cheerio": "0.22.31",
|
|
63
|
+
"@types/enzyme": "3.10.12",
|
|
64
|
+
"@types/enzyme-adapter-react-16": "1.0.6",
|
|
63
65
|
"@types/jest": "23.3.14",
|
|
64
66
|
"@types/lodash": "4.14.185",
|
|
65
67
|
"@types/node": "20.10.6",
|
|
66
68
|
"@types/prop-types": "15.7.5",
|
|
67
|
-
"@types/react": "
|
|
68
|
-
"@types/react-autosuggest": "
|
|
69
|
-
"@types/react-dom": "
|
|
69
|
+
"@types/react": "16.14.21",
|
|
70
|
+
"@types/react-autosuggest": "9.3.14",
|
|
71
|
+
"@types/react-dom": "16.9.14",
|
|
70
72
|
"@types/webpack-env": "1.18.4",
|
|
71
73
|
"@typescript-eslint/eslint-plugin": "6.11.0",
|
|
72
74
|
"@typescript-eslint/parser": "6.11.0",
|
|
@@ -76,6 +78,9 @@
|
|
|
76
78
|
"cross-env": "5.2.1",
|
|
77
79
|
"css-loader": "0.28.11",
|
|
78
80
|
"cssnano": "4.1.11",
|
|
81
|
+
"enzyme": "3.11.0",
|
|
82
|
+
"enzyme-adapter-react-16": "1.15.8",
|
|
83
|
+
"enzyme-to-json": "3.6.2",
|
|
79
84
|
"eslint": "8.53.0",
|
|
80
85
|
"eslint-config-google": "0.9.1",
|
|
81
86
|
"eslint-config-govtech-mcf": "1.2.0",
|
|
@@ -101,18 +106,21 @@
|
|
|
101
106
|
"postcss-preset-env": "5.3.0",
|
|
102
107
|
"prettier": "3.1.0",
|
|
103
108
|
"prop-types": "15.8.1",
|
|
104
|
-
"react": "
|
|
105
|
-
"react-dom": "
|
|
109
|
+
"react": "16.14.0",
|
|
110
|
+
"react-dom": "16.14.0",
|
|
106
111
|
"storybook": "7.6.20",
|
|
107
112
|
"style-loader": "0.23.1",
|
|
108
113
|
"tachyons": "4.12.0",
|
|
109
|
-
"ts-jest": "29.
|
|
114
|
+
"ts-jest": "29.1.1",
|
|
110
115
|
"typescript": "5.2.2",
|
|
111
116
|
"url-loader": "4.1.1",
|
|
112
117
|
"webpack": "5.89.0",
|
|
113
118
|
"webpack-cli": "5.1.4",
|
|
114
119
|
"webpack-node-externals": "^3.0.0"
|
|
115
120
|
},
|
|
121
|
+
"peerDependencies": {
|
|
122
|
+
"react": "16.x"
|
|
123
|
+
},
|
|
116
124
|
"directories": {
|
|
117
125
|
"test": "test"
|
|
118
126
|
},
|
package/jest.setup.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import '@testing-library/jest-dom';
|
|
2
|
-
|
|
3
|
-
// needed for Tabs.test.tsx
|
|
4
|
-
if (typeof globalThis.TextEncoder === 'undefined' || typeof globalThis.TextDecoder === 'undefined') {
|
|
5
|
-
const utils = require('util');
|
|
6
|
-
globalThis.TextEncoder = utils.TextEncoder;
|
|
7
|
-
globalThis.TextDecoder = utils.TextDecoder;
|
|
8
|
-
}
|
|
File without changes
|