@mcf/lib-ui 2.4.82 → 2.4.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/dist/@types/Component/BaseButton/BaseButton.d.ts +1 -1
- package/dist/@types/Component/Button/Button.d.ts +2 -3
- 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 +3 -73
- package/dist/@types/Component/Dropdown/index.d.ts +2 -1
- 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/MessageBar.d.ts +19 -5
- 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/TypeAhead/TypeAhead.d.ts +2 -2
- package/dist/@types/Component/index.d.ts +1 -3
- package/dist/@types/Example/ReactFileReader/ReactFileReader.story.d.ts +2 -2
- package/dist/@types/Example/ReactFileReader/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/jest.config.js +2 -2
- package/jest.setup.ts +8 -0
- package/package.json +23 -31
- package/dist/@types/Component/DropdownNew/DropdownNew.d.ts +0 -4
- package/dist/@types/Component/DropdownNew/index.d.ts +0 -2
- package/dist/@types/Component/Toggle/Toggle.d.ts +0 -6
- package/dist/@types/Component/Toggle/index.d.ts +0 -1
- package/dist/@types/storyguide/Buttons/BaseButton.d.ts +0 -17
- package/dist/@types/storyguide/JobCard/Bookmark/BookmarkButton.d.ts +0 -6
- package/dist/@types/storyguide/JobCard/CompanyInfo.d.ts +0 -2
- package/dist/@types/storyguide/JobCard/JobBenefit.d.ts +0 -2
- package/dist/@types/storyguide/JobCard/JobCard.d.ts +0 -2
- package/dist/@types/storyguide/JobCard/JobInfo.d.ts +0 -2
- package/dist/@types/storyguide/JobCard/JobLastPostedDate.d.ts +0 -2
- package/dist/@types/storyguide/JobCard/JobPostStatus.d.ts +0 -2
- package/dist/@types/storyguide/JobCard/JobSkillInfo.d.ts +0 -2
- package/dist/@types/storyguide/JobCard/JobSponsor.d.ts +0 -2
- package/dist/@types/storyguide/JobCard/JobTitle.d.ts +0 -2
- package/dist/@types/storyguide/JobCard/SalaryInfo.d.ts +0 -2
- package/dist/@types/storyguide/Skills/Score.d.ts +0 -6
- package/dist/@types/storyguide/Skills/Scorebar.d.ts +0 -6
- package/dist/@types/storyguide/Skills/SkillPill.d.ts +0 -7
- package/dist/@types/storyguide/Text/Font.d.ts +0 -12
- package/dist/@types/storyguide/Text/TextSize.d.ts +0 -4
- package/test/helpers/enzyme.ts +0 -4
- package/test/helpers/index.ts +0 -2
- /package/dist/@types/Component/{DropdownNew/DropdownNew.constants.d.ts → Dropdown/Dropdown.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>/jest.setup.ts'],
|
|
121
121
|
|
|
122
122
|
// A list of paths to snapshot serializer modules Jest should use for snapshot testing
|
|
123
|
-
snapshotSerializers: ['enzyme-to-json/serializer'],
|
|
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/jest.setup.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcf/lib-ui",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.87",
|
|
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": "10.1.0",
|
|
35
35
|
"react-collapsed": "4.2.0",
|
|
36
|
-
"react-select": "5.
|
|
37
|
-
"react-select-plus": "1.
|
|
36
|
+
"react-select": "5.10.1",
|
|
37
|
+
"react-select-plus": "1.2.0",
|
|
38
38
|
"scrolling-element": "1.0.2"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
@@ -44,31 +44,29 @@
|
|
|
44
44
|
"@babel/preset-env": "7.23.3",
|
|
45
45
|
"@babel/preset-react": "7.23.3",
|
|
46
46
|
"@babel/preset-typescript": "7.23.3",
|
|
47
|
-
"@storybook/addon-a11y": "7.6.
|
|
48
|
-
"@storybook/addon-actions": "7.6.
|
|
49
|
-
"@storybook/addon-essentials": "7.6.
|
|
50
|
-
"@storybook/addon-interactions": "7.6.
|
|
51
|
-
"@storybook/addon-links": "7.6.
|
|
52
|
-
"@storybook/addon-onboarding": "1.0.
|
|
53
|
-
"@storybook/blocks": "7.6.
|
|
54
|
-
"@storybook/preview-api": "7.6.
|
|
55
|
-
"@storybook/react": "7.6.
|
|
56
|
-
"@storybook/react-webpack5": "7.6.
|
|
47
|
+
"@storybook/addon-a11y": "7.6.20",
|
|
48
|
+
"@storybook/addon-actions": "7.6.20",
|
|
49
|
+
"@storybook/addon-essentials": "7.6.20",
|
|
50
|
+
"@storybook/addon-interactions": "7.6.20",
|
|
51
|
+
"@storybook/addon-links": "7.6.20",
|
|
52
|
+
"@storybook/addon-onboarding": "1.0.11",
|
|
53
|
+
"@storybook/blocks": "7.6.20",
|
|
54
|
+
"@storybook/preview-api": "7.6.20",
|
|
55
|
+
"@storybook/react": "7.6.20",
|
|
56
|
+
"@storybook/react-webpack5": "7.6.20",
|
|
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": "16.1.0",
|
|
61
|
+
"@testing-library/user-event": "14.6.1",
|
|
62
62
|
"@types/cheerio": "0.22.31",
|
|
63
|
-
"@types/enzyme": "3.10.12",
|
|
64
|
-
"@types/enzyme-adapter-react-16": "1.0.6",
|
|
65
63
|
"@types/jest": "23.3.14",
|
|
66
64
|
"@types/lodash": "4.14.185",
|
|
67
65
|
"@types/node": "20.10.6",
|
|
68
66
|
"@types/prop-types": "15.7.5",
|
|
69
|
-
"@types/react": "
|
|
70
|
-
"@types/react-autosuggest": "
|
|
71
|
-
"@types/react-dom": "
|
|
67
|
+
"@types/react": "18.3.3",
|
|
68
|
+
"@types/react-autosuggest": "10.1.11",
|
|
69
|
+
"@types/react-dom": "18.3.1",
|
|
72
70
|
"@types/webpack-env": "1.18.4",
|
|
73
71
|
"@typescript-eslint/eslint-plugin": "6.11.0",
|
|
74
72
|
"@typescript-eslint/parser": "6.11.0",
|
|
@@ -78,9 +76,6 @@
|
|
|
78
76
|
"cross-env": "5.2.1",
|
|
79
77
|
"css-loader": "0.28.11",
|
|
80
78
|
"cssnano": "4.1.11",
|
|
81
|
-
"enzyme": "3.11.0",
|
|
82
|
-
"enzyme-adapter-react-16": "1.15.8",
|
|
83
|
-
"enzyme-to-json": "3.6.2",
|
|
84
79
|
"eslint": "8.53.0",
|
|
85
80
|
"eslint-config-google": "0.9.1",
|
|
86
81
|
"eslint-config-govtech-mcf": "1.2.0",
|
|
@@ -106,21 +101,18 @@
|
|
|
106
101
|
"postcss-preset-env": "5.3.0",
|
|
107
102
|
"prettier": "3.1.0",
|
|
108
103
|
"prop-types": "15.8.1",
|
|
109
|
-
"react": "
|
|
110
|
-
"react-dom": "
|
|
111
|
-
"storybook": "7.6.
|
|
104
|
+
"react": "18.3.1",
|
|
105
|
+
"react-dom": "18.3.1",
|
|
106
|
+
"storybook": "7.6.20",
|
|
112
107
|
"style-loader": "0.23.1",
|
|
113
108
|
"tachyons": "4.12.0",
|
|
114
|
-
"ts-jest": "29.
|
|
109
|
+
"ts-jest": "29.2.6",
|
|
115
110
|
"typescript": "5.2.2",
|
|
116
111
|
"url-loader": "4.1.1",
|
|
117
112
|
"webpack": "5.89.0",
|
|
118
113
|
"webpack-cli": "5.1.4",
|
|
119
114
|
"webpack-node-externals": "^3.0.0"
|
|
120
115
|
},
|
|
121
|
-
"peerDependencies": {
|
|
122
|
-
"react": "16.x"
|
|
123
|
-
},
|
|
124
116
|
"directories": {
|
|
125
117
|
"test": "test"
|
|
126
118
|
},
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { DropdownProps } from './DropdownNew.constants';
|
|
3
|
-
declare const Dropdown: ({ width, isSearchable, isDisabled, primaryLabel, secondaryLabel, additionalInfo, errorMsg, placeholder, data, input, variant, customStyles, ...props }: DropdownProps) => JSX.Element;
|
|
4
|
-
export default Dropdown;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Toggle';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare function BaseButton(props: {
|
|
3
|
-
className: any;
|
|
4
|
-
text: React.ReactNode;
|
|
5
|
-
}): JSX.Element;
|
|
6
|
-
export declare function IconButton(props: {
|
|
7
|
-
className: any;
|
|
8
|
-
text: React.ReactNode;
|
|
9
|
-
}): JSX.Element;
|
|
10
|
-
export declare function IconButtonwWord(props: {
|
|
11
|
-
className: any;
|
|
12
|
-
text: React.ReactNode;
|
|
13
|
-
}): JSX.Element;
|
|
14
|
-
export declare function FloatingActionButton(props: {
|
|
15
|
-
className: any;
|
|
16
|
-
text: React.ReactNode;
|
|
17
|
-
}): JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export default function TextHeadLine(props: {
|
|
3
|
-
className: any;
|
|
4
|
-
}): JSX.Element;
|
|
5
|
-
export declare function FontFamily(props: {
|
|
6
|
-
text: React.ReactNode;
|
|
7
|
-
}): JSX.Element;
|
|
8
|
-
export declare function FontStyle(props: {
|
|
9
|
-
className: any;
|
|
10
|
-
code: React.ReactNode;
|
|
11
|
-
text: React.ReactNode;
|
|
12
|
-
}): JSX.Element;
|
package/test/helpers/enzyme.ts
DELETED
package/test/helpers/index.ts
DELETED
|
File without changes
|