@mcf/lib-ui 2.4.104 → 2.4.105

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.
Files changed (49) hide show
  1. package/dist/@types/Component/BaseButton/BaseButton.d.ts +1 -1
  2. package/dist/@types/Component/Button/Button.d.ts +2 -3
  3. package/dist/@types/Component/ButtonGroup/ButtonGroup.d.ts +2 -2
  4. package/dist/@types/Component/CheckBox/CheckBox.d.ts +1 -1
  5. package/dist/@types/Component/CheckboxGroup/CheckboxGroup.d.ts +2 -2
  6. package/dist/@types/Component/CheckboxNew/CheckboxNew.d.ts +1 -1
  7. package/dist/@types/Component/Dropdown/Dropdown.d.ts +3 -73
  8. package/dist/@types/Component/Dropdown/index.d.ts +2 -1
  9. package/dist/@types/Component/MenuList/MenuItem.d.ts +2 -2
  10. package/dist/@types/Component/MenuList/MenuList.d.ts +2 -2
  11. package/dist/@types/Component/RadioButtonGroup/RadioButtonGroup.d.ts +1 -1
  12. package/dist/@types/Component/ReactFileReader/ReactFileReader.d.ts +1 -1
  13. package/dist/@types/Component/StickyHeader/StickyHeader.d.ts +1 -1
  14. package/dist/@types/Component/Tabs/Tabs.d.ts +3 -3
  15. package/dist/@types/Component/TextArea/TextArea.d.ts +2 -2
  16. package/dist/@types/Component/TextInput/TextInput.d.ts +1 -1
  17. package/dist/@types/Component/TypeAhead/TypeAhead.d.ts +2 -2
  18. package/dist/@types/Component/index.d.ts +1 -3
  19. package/dist/@types/Example/ReactFileReader/ReactFileReader.story.d.ts +2 -2
  20. package/dist/@types/Example/ReactFileReader/index.d.ts +1 -1
  21. package/dist/index.js +1 -1
  22. package/dist/index.js.map +1 -1
  23. package/dist/main-modules.css +3 -146
  24. package/jest.config.js +2 -2
  25. package/package.json +12 -20
  26. package/dist/@types/Component/DropdownNew/DropdownNew.d.ts +0 -4
  27. package/dist/@types/Component/DropdownNew/index.d.ts +0 -2
  28. package/dist/@types/Component/Toggle/Toggle.d.ts +0 -6
  29. package/dist/@types/Component/Toggle/index.d.ts +0 -1
  30. package/dist/@types/storyguide/Buttons/BaseButton.d.ts +0 -17
  31. package/dist/@types/storyguide/JobCard/Bookmark/BookmarkButton.d.ts +0 -6
  32. package/dist/@types/storyguide/JobCard/CompanyInfo.d.ts +0 -2
  33. package/dist/@types/storyguide/JobCard/JobBenefit.d.ts +0 -2
  34. package/dist/@types/storyguide/JobCard/JobCard.d.ts +0 -2
  35. package/dist/@types/storyguide/JobCard/JobInfo.d.ts +0 -2
  36. package/dist/@types/storyguide/JobCard/JobLastPostedDate.d.ts +0 -2
  37. package/dist/@types/storyguide/JobCard/JobPostStatus.d.ts +0 -2
  38. package/dist/@types/storyguide/JobCard/JobSkillInfo.d.ts +0 -2
  39. package/dist/@types/storyguide/JobCard/JobSponsor.d.ts +0 -2
  40. package/dist/@types/storyguide/JobCard/JobTitle.d.ts +0 -2
  41. package/dist/@types/storyguide/JobCard/SalaryInfo.d.ts +0 -2
  42. package/dist/@types/storyguide/Skills/Score.d.ts +0 -6
  43. package/dist/@types/storyguide/Skills/Scorebar.d.ts +0 -6
  44. package/dist/@types/storyguide/Skills/SkillPill.d.ts +0 -7
  45. package/dist/@types/storyguide/Text/Font.d.ts +0 -12
  46. package/dist/@types/storyguide/Text/TextSize.d.ts +0 -4
  47. package/test/helpers/enzyme.ts +0 -4
  48. package/test/helpers/index.ts +0 -2
  49. /package/dist/@types/Component/{DropdownNew/DropdownNew.constants.d.ts → Dropdown/Dropdown.constants.d.ts} +0 -0
@@ -152,102 +152,6 @@
152
152
  }
153
153
 
154
154
 
155
- .Dropdown__mcf-dropdown___27HW2 {
156
- /* react-select-plus customization */
157
- }
158
-
159
- .Dropdown__mcf-dropdown___27HW2 .Select-control {
160
- font-size: var(--font-size-4-5);
161
- font-size: var(--font-size-4-5);
162
- border-radius: 0;
163
- min-height: 50px;
164
- font-weight: 400;
165
- border: var(--borderstyle);
166
- border: var(--borderstyle);
167
- margin-top: 6px;
168
- margin-bottom: var(--input-margin-bottom);
169
- margin-bottom: var(--input-margin-bottom)
170
- }
171
-
172
- .Dropdown__mcf-dropdown___27HW2 .Select-control .Select-placeholder {
173
- display: -webkit-box;
174
- display: -ms-flexbox;
175
- display: flex;
176
- -webkit-box-align: center;
177
- -ms-flex-align: center;
178
- align-items: center;
179
- }
180
-
181
- .Dropdown__mcf-dropdown___27HW2 .Select-control .Select-input > input {
182
- height: 100%;
183
- color: var(--black-70);
184
- color: var(--black-70);
185
- display: -webkit-box;
186
- display: -ms-flexbox;
187
- display: flex;
188
- -webkit-box-align: center;
189
- -ms-flex-align: center;
190
- align-items: center;
191
- }
192
-
193
- .Dropdown__mcf-dropdown___27HW2 .Select-control .Select-input > input::-ms-clear, .Dropdown__mcf-dropdown___27HW2 .Select-control .Select-input .input::-ms-reveal {
194
- display: none;
195
- width: 0;
196
- height: 0;
197
- }
198
-
199
- .Dropdown__mcf-dropdown___27HW2 .Select-control .Select-multi-value-wrapper {
200
- height:100%;
201
- }
202
-
203
- .Dropdown__mcf-dropdown___27HW2 .Select-control .Select-value {
204
- margin-top: 10px;
205
- }
206
-
207
- .Dropdown__mcf-dropdown___27HW2 .Select-option {
208
- color: var(--black-60);
209
- color: var(--black-60);
210
- }
211
-
212
- .Dropdown__mcf-dropdown___27HW2 .Select-option.is-focused {
213
- background: var(--light-primary);
214
- background: var(--light-primary);
215
- color: var(--black-80);
216
- color: var(--black-80);
217
- }
218
-
219
- .Dropdown__mcf-dropdown___27HW2 .Select-option.is-selected {
220
- background: var(--primary);
221
- background: var(--primary);
222
- color: var(--white);
223
- color: var(--white);
224
- }
225
-
226
- .Dropdown__mcf-dropdown___27HW2 .Select.is-focused.is-open > .Select-control, .Dropdown__mcf-dropdown___27HW2 .Select.is-focused:not(.is-open) > .Select-control {
227
- border: 1px solid var(--light-silver);
228
- border: 1px solid var(--light-silver);
229
- -webkit-box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.6);
230
- box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.6)
231
- }
232
-
233
- .Dropdown__mcf-dropdown___27HW2 .Select-arrow {
234
- border-color: var(--black-60) transparent transparent;
235
- border-color: var(--black-60) transparent transparent
236
- }
237
-
238
- .Dropdown__mcf-dropdown___27HW2.error .Select-control {
239
- border-color: var(--red);
240
- border-color: var(--red);
241
- }
242
-
243
- .Dropdown__error___1bQlE {
244
- display: inline-block;
245
- color: var(--red);
246
- color: var(--red);
247
- font-size: medium;
248
- font-size: initial;
249
- }
250
-
251
155
  .stickyheader__fixed___2u5sx {
252
156
  position: fixed !important;
253
157
  top: -100px;
@@ -360,52 +264,6 @@
360
264
  color: var(--red);
361
265
  }
362
266
 
363
- /* The switch - the box around the slider */
364
- .Toggle__switch___32uGI {
365
- position: relative;
366
- display: inline-block;
367
- width: 60px;
368
- height: 34px;
369
- }
370
- /* Hide default HTML checkbox */
371
- .Toggle__switch___32uGI input {display:none;}
372
- /* The slider */
373
- .Toggle__slider___3da38 {
374
- border-radius: 34px;
375
- position: absolute;
376
- cursor: pointer;
377
- top: 0;
378
- left: 0;
379
- right: 0;
380
- bottom: 0;
381
- background-color: #ccc;
382
- -webkit-transition: .4s;
383
- transition: .4s;
384
- }
385
- .Toggle__slider___3da38:before {
386
- border-radius: 50%;
387
- position: absolute;
388
- content: "";
389
- height: 26px;
390
- width: 26px;
391
- left: 4px;
392
- bottom: 4px;
393
- background-color: white;
394
- -webkit-transition: .4s;
395
- transition: .4s;
396
- }
397
- input:checked + .Toggle__slider___3da38 {
398
- background-color: #2196F3;
399
- }
400
- input:focus + .Toggle__slider___3da38 {
401
- -webkit-box-shadow: 0 0 1px #2196F3;
402
- box-shadow: 0 0 1px #2196F3;
403
- }
404
- input:checked + .Toggle__slider___3da38:before {
405
- -webkit-transform: translateX(26px);
406
- transform: translateX(26px);
407
- }
408
-
409
267
 
410
268
 
411
269
  .TypeAhead__typeahead___tiP0_ .react-autosuggest__input {
@@ -1185,7 +1043,6 @@ input[type=checkbox]:indeterminate::after {
1185
1043
  }
1186
1044
 
1187
1045
  .Tabs__sticky-header___2QjM7 {
1188
- position: -webkit-sticky;
1189
1046
  position: sticky;
1190
1047
  top: 0;
1191
1048
  background: var(--white);
@@ -1382,7 +1239,7 @@ input[type=checkbox]:indeterminate::after {
1382
1239
  background-color: var(--black-05);
1383
1240
  background-color: var(--black-05);
1384
1241
  }
1385
- .DropdownNew__container___1q0u7 {
1242
+ .Dropdown__container___dK_Pr {
1386
1243
  display: -webkit-box;
1387
1244
  display: -ms-flexbox;
1388
1245
  display: flex;
@@ -1392,7 +1249,7 @@ input[type=checkbox]:indeterminate::after {
1392
1249
  flex-direction: column;
1393
1250
  }
1394
1251
 
1395
- .DropdownNew__error-msg___3_Q8f {
1252
+ .Dropdown__error-msg___1y8En {
1396
1253
  color: var(--danger);
1397
1254
  color: var(--danger);
1398
1255
  margin: 0;
@@ -1404,7 +1261,7 @@ input[type=checkbox]:indeterminate::after {
1404
1261
  align-items: center;
1405
1262
  }
1406
1263
 
1407
- .DropdownNew__badge___1vk42 {
1264
+ .Dropdown__badge___1hfQJ {
1408
1265
  background: var(--danger);
1409
1266
  background: var(--danger);
1410
1267
  padding: 2px 4px;
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>/test/helpers/index.ts'],
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcf/lib-ui",
3
- "version": "2.4.104",
3
+ "version": "2.4.105",
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",
@@ -32,10 +32,10 @@
32
32
  "fuse.js": "3.6.1",
33
33
  "lodash": "4.17.21",
34
34
  "mini-css-extract-plugin": "2.9.2",
35
- "react-autosuggest": "9.3.4",
35
+ "react-autosuggest": "10.1.0",
36
36
  "react-collapsed": "4.2.0",
37
- "react-select": "5.8.0",
38
- "react-select-plus": "1.1.0",
37
+ "react-select": "5.9.0",
38
+ "react-select-plus": "1.2.0",
39
39
  "scrolling-element": "1.0.2"
40
40
  },
41
41
  "devDependencies": {
@@ -58,18 +58,16 @@
58
58
  "@storybook/testing-library": "0.2.2",
59
59
  "@svgr/webpack": "8.1.0",
60
60
  "@testing-library/jest-dom": "6.6.3",
61
- "@testing-library/react": "12.1.5",
62
- "@testing-library/user-event": "14.5.2",
61
+ "@testing-library/react": "16.1.0",
62
+ "@testing-library/user-event": "14.6.1",
63
63
  "@types/cheerio": "0.22.31",
64
- "@types/enzyme": "3.10.12",
65
- "@types/enzyme-adapter-react-16": "1.0.6",
66
64
  "@types/jest": "23.3.14",
67
65
  "@types/lodash": "4.14.185",
68
66
  "@types/node": "20.10.6",
69
67
  "@types/prop-types": "15.7.5",
70
- "@types/react": "16.14.21",
71
- "@types/react-autosuggest": "9.3.14",
72
- "@types/react-dom": "16.9.14",
68
+ "@types/react": "18.3.3",
69
+ "@types/react-autosuggest": "10.1.11",
70
+ "@types/react-dom": "18.3.1",
73
71
  "@types/webpack-env": "1.18.4",
74
72
  "@typescript-eslint/eslint-plugin": "6.11.0",
75
73
  "@typescript-eslint/parser": "6.11.0",
@@ -79,9 +77,6 @@
79
77
  "cross-env": "5.2.1",
80
78
  "css-loader": "0.28.11",
81
79
  "cssnano": "4.1.11",
82
- "enzyme": "3.11.0",
83
- "enzyme-adapter-react-16": "1.15.8",
84
- "enzyme-to-json": "3.6.2",
85
80
  "eslint": "8.53.0",
86
81
  "eslint-config-google": "0.9.1",
87
82
  "eslint-config-govtech-mcf": "1.2.0",
@@ -107,20 +102,17 @@
107
102
  "postcss-preset-env": "5.3.0",
108
103
  "prettier": "3.1.0",
109
104
  "prop-types": "15.8.1",
110
- "react": "16.14.0",
111
- "react-dom": "16.14.0",
105
+ "react": "18.3.1",
106
+ "react-dom": "18.3.1",
112
107
  "storybook": "7.6.20",
113
108
  "tachyons": "4.12.0",
114
- "ts-jest": "29.1.1",
109
+ "ts-jest": "29.2.5",
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,2 +0,0 @@
1
- export { default as DropdownNew } from './DropdownNew';
2
- export * from './DropdownNew.constants';
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- export interface IToggleProps {
3
- initialState?: boolean;
4
- changeHandler: (event: React.ChangeEvent<HTMLInputElement>) => void;
5
- }
6
- export declare const Toggle: React.SFC<IToggleProps>;
@@ -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,6 +0,0 @@
1
- import React from 'react';
2
- export interface IBookmarkedButtonProps {
3
- selected?: boolean;
4
- onClick?: (event: React.MouseEvent<HTMLElement>) => any;
5
- }
6
- export declare const BookmarkButton: React.FunctionComponent<IBookmarkedButtonProps>;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function CompanyInfo(): JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function JobBenefit(): JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const Company: React.FunctionComponent;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function JobInfo(): JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function JobLastPostedDate(): JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function JobPostStatus(): JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function JobSkillInfo(): JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function JobSponsor(): JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function JobTitle(): JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function SalaryInfo(): JSX.Element;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- export declare const CARD_LABEL: {
3
- NO_SKILL_INFO: string;
4
- SKILLS_MATCHED: string;
5
- };
6
- export declare const Score: React.FunctionComponent;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const CARD_LABEL: {
3
- NO_SKILL_INFO: string;
4
- SKILLS_MATCHED: string;
5
- };
6
- export declare function Scorebar(): JSX.Element;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- export interface ISkillButtonProps {
3
- label: string;
4
- selected?: boolean;
5
- onClick?: (event: React.MouseEvent<HTMLElement>) => any;
6
- }
7
- export declare const SkillButton: React.FunctionComponent<ISkillButtonProps>;
@@ -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;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export default function TextSize(props: {
3
- className: React.ReactNode;
4
- }): JSX.Element;
@@ -1,4 +0,0 @@
1
- import * as Enzyme from 'enzyme';
2
- import ReactSixteenAdapter from 'enzyme-adapter-react-16';
3
-
4
- Enzyme.configure({adapter: new ReactSixteenAdapter()});
@@ -1,2 +0,0 @@
1
- import './enzyme';
2
- import '@testing-library/jest-dom';