@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.
- 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/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/dist/main-modules.css +3 -146
- package/jest.config.js +2 -2
- package/package.json +12 -20
- 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/dist/main-modules.css
CHANGED
|
@@ -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
|
-
.
|
|
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
|
-
.
|
|
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
|
-
.
|
|
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>/
|
|
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.
|
|
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": "
|
|
35
|
+
"react-autosuggest": "10.1.0",
|
|
36
36
|
"react-collapsed": "4.2.0",
|
|
37
|
-
"react-select": "5.
|
|
38
|
-
"react-select-plus": "1.
|
|
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": "
|
|
62
|
-
"@testing-library/user-event": "14.
|
|
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": "
|
|
71
|
-
"@types/react-autosuggest": "
|
|
72
|
-
"@types/react-dom": "
|
|
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": "
|
|
111
|
-
"react-dom": "
|
|
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.
|
|
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 +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
|