@zohodesk/components 1.4.10-exp.1 → 1.4.11
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/.cli/propValidation_report.html +1 -1
- package/README.md +13 -0
- package/es/AppContainer/AppContainer.js +0 -1
- package/es/AppContainer/AppContainer.module.css +2 -3
- package/es/Button/css/Button.module.css +4 -13
- package/es/DateTime/DateTime.module.css +9 -12
- package/es/DateTime/YearView.module.css +1 -1
- package/es/Heading/Heading.module.css +1 -0
- package/es/Label/Label.module.css +8 -8
- package/es/MultiSelect/MultiSelect.js +36 -12
- package/es/MultiSelect/MultiSelect.module.css +1 -1
- package/es/MultiSelect/Suggestions.js +171 -100
- package/es/MultiSelect/props/defaultProps.js +2 -0
- package/es/MultiSelect/props/propTypes.js +4 -0
- package/es/Select/Select.js +41 -12
- package/es/Select/props/defaultProps.js +1 -0
- package/es/Select/props/propTypes.js +1 -0
- package/es/Tab/Tabs.module.css +1 -1
- package/es/TextBox/TextBox.module.css +4 -4
- package/es/Textarea/Textarea.module.css +1 -1
- package/es/Tooltip/Tooltip.module.css +1 -1
- package/es/Typography/css/Typography.module.css +4 -4
- package/es/common/basic.module.css +6 -39
- package/es/common/basicReset.module.css +2 -2
- package/es/common/common.module.css +5 -5
- package/es/utils/Common.js +2 -1
- package/es/utils/dropDownUtils.js +3 -1
- package/es/v1/Tab/v1Tabs.module.css +1 -1
- package/es/v1/Typography/css/v1_Typography.module.css +4 -4
- package/lib/AppContainer/AppContainer.js +0 -2
- package/lib/AppContainer/AppContainer.module.css +2 -3
- package/lib/Button/css/Button.module.css +4 -13
- package/lib/DateTime/DateTime.module.css +9 -12
- package/lib/DateTime/YearView.module.css +1 -1
- package/lib/Heading/Heading.module.css +1 -0
- package/lib/Label/Label.module.css +8 -8
- package/lib/MultiSelect/MultiSelect.js +36 -10
- package/lib/MultiSelect/MultiSelect.module.css +1 -1
- package/lib/MultiSelect/Suggestions.js +174 -104
- package/lib/MultiSelect/props/defaultProps.js +2 -0
- package/lib/MultiSelect/props/propTypes.js +4 -0
- package/lib/Select/Select.js +40 -9
- package/lib/Select/props/defaultProps.js +1 -0
- package/lib/Select/props/propTypes.js +1 -0
- package/lib/Tab/Tabs.module.css +1 -1
- package/lib/TextBox/TextBox.module.css +4 -4
- package/lib/Textarea/Textarea.module.css +1 -1
- package/lib/Tooltip/Tooltip.module.css +1 -1
- package/lib/Typography/css/Typography.module.css +4 -4
- package/lib/common/basic.module.css +6 -39
- package/lib/common/basicReset.module.css +2 -2
- package/lib/common/common.module.css +5 -5
- package/lib/utils/Common.js +4 -2
- package/lib/utils/dropDownUtils.js +3 -1
- package/lib/v1/Tab/v1Tabs.module.css +1 -1
- package/lib/v1/Typography/css/v1_Typography.module.css +4 -4
- package/package.json +5 -5
|
@@ -25,20 +25,20 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.font_regular {
|
|
28
|
-
font-
|
|
28
|
+
font-family: var(--zd_regular);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.font_light {
|
|
32
|
-
font-
|
|
32
|
+
font-family: var(--zd_light);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
.font_semibold {
|
|
36
|
-
font-
|
|
36
|
+
font-family: var(--zd_semibold);
|
|
37
37
|
composes: ftsmooth from '../../common/common.module.css';
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.font_bold {
|
|
41
|
-
font-
|
|
41
|
+
font-family: var(--zd_bold);
|
|
42
42
|
composes: ftsmooth from '../../common/common.module.css';
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
@font-face {
|
|
2
|
-
font-family:
|
|
3
|
-
src: url('https://static.zohocdn.com/webfonts/
|
|
4
|
-
font-weight:
|
|
2
|
+
font-family: Regular;
|
|
3
|
+
src: url('https://static.zohocdn.com/webfonts/lato2regular/font.woff2') format('woff2');
|
|
4
|
+
font-weight: 400;
|
|
5
5
|
font-style: normal;
|
|
6
6
|
font-display: swap;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
@font-face {
|
|
10
|
-
font-family:
|
|
11
|
-
src: url('https://static.zohocdn.com/webfonts/
|
|
12
|
-
font-weight:
|
|
10
|
+
font-family: Light;
|
|
11
|
+
src: url('https://static.zohocdn.com/webfonts/lato2light/font.woff2') format('woff2');
|
|
12
|
+
font-weight: 300;
|
|
13
13
|
font-style: normal;
|
|
14
14
|
font-display: swap;
|
|
15
15
|
}
|
|
@@ -29,36 +29,3 @@
|
|
|
29
29
|
font-style: normal;
|
|
30
30
|
font-display: swap;
|
|
31
31
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
@font-face {
|
|
35
|
-
font-family: ZDLato;
|
|
36
|
-
src: url('https://static.zohocdn.com/webfonts/lato2light/font.woff2') format('woff2');
|
|
37
|
-
font-weight: 100 300;
|
|
38
|
-
font-style: normal;
|
|
39
|
-
font-display: swap;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
@font-face {
|
|
43
|
-
font-family: ZDLato;
|
|
44
|
-
src: url('https://static.zohocdn.com/webfonts/lato2regular/font.woff2') format('woff2');
|
|
45
|
-
font-weight: 400;
|
|
46
|
-
font-style: normal;
|
|
47
|
-
font-display: swap;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
@font-face {
|
|
51
|
-
font-family: ZDLato;
|
|
52
|
-
src: url('https://static.zohocdn.com/webfonts/lato2semibold/font.woff2') format('woff2');
|
|
53
|
-
font-weight: 500 600;
|
|
54
|
-
font-style: normal;
|
|
55
|
-
font-display: swap;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
@font-face {
|
|
59
|
-
font-family: ZDLato;
|
|
60
|
-
src: url('https://static.zohocdn.com/webfonts/lato2bold/font.woff2') format('woff2');
|
|
61
|
-
font-weight: 700 900;
|
|
62
|
-
font-style: normal;
|
|
63
|
-
font-display: swap;
|
|
64
|
-
}
|
|
@@ -27,7 +27,7 @@ html {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
textarea {
|
|
30
|
-
font-
|
|
30
|
+
font-family: var(--zd_regular);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
label, input[type='button'], input[type='submit'], input[type='file'], button {
|
|
@@ -37,4 +37,4 @@ label, input[type='button'], input[type='submit'], input[type='file'], button {
|
|
|
37
37
|
/*Moz Required Box shadow Isssue*/
|
|
38
38
|
input[required]:-moz-ui-invalid {
|
|
39
39
|
box-shadow: none;
|
|
40
|
-
}
|
|
40
|
+
}
|
|
@@ -303,22 +303,22 @@
|
|
|
303
303
|
resize: vertical;
|
|
304
304
|
}
|
|
305
305
|
|
|
306
|
-
/*font-
|
|
306
|
+
/*font-family*/
|
|
307
307
|
.regular {
|
|
308
|
-
font-
|
|
308
|
+
font-family: var(--zd_regular, Regular);
|
|
309
309
|
}
|
|
310
310
|
|
|
311
311
|
.light {
|
|
312
|
-
font-
|
|
312
|
+
font-family: var(--zd_light, Light);
|
|
313
313
|
}
|
|
314
314
|
|
|
315
315
|
.semibold {
|
|
316
|
-
font-
|
|
316
|
+
font-family: var(--zd_semibold, Semibold);
|
|
317
317
|
composes: ftsmooth;
|
|
318
318
|
}
|
|
319
319
|
|
|
320
320
|
.bold {
|
|
321
|
-
font-
|
|
321
|
+
font-family: var(--zd_bold, Bold);
|
|
322
322
|
composes: ftsmooth;
|
|
323
323
|
}
|
|
324
324
|
|
package/lib/utils/Common.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.DUMMY_OBJECT = void 0;
|
|
6
|
+
exports.DUMMY_OBJECT = exports.DUMMY_ARRAY = void 0;
|
|
7
7
|
exports.bind = bind;
|
|
8
8
|
exports.bytesToSize = bytesToSize;
|
|
9
9
|
exports.cancelBubblingEffect = cancelBubblingEffect;
|
|
@@ -516,4 +516,6 @@ function isTextSelected() {
|
|
|
516
516
|
}
|
|
517
517
|
|
|
518
518
|
var DUMMY_OBJECT = {};
|
|
519
|
-
exports.DUMMY_OBJECT = DUMMY_OBJECT;
|
|
519
|
+
exports.DUMMY_OBJECT = DUMMY_OBJECT;
|
|
520
|
+
var DUMMY_ARRAY = [];
|
|
521
|
+
exports.DUMMY_ARRAY = DUMMY_ARRAY;
|
|
@@ -152,8 +152,10 @@ var getListItemProps = function getListItemProps(props) {
|
|
|
152
152
|
return props.listItemProps || '';
|
|
153
153
|
};
|
|
154
154
|
|
|
155
|
+
var defaultSearchFields = ['value'];
|
|
156
|
+
|
|
155
157
|
var getSearchFields = function getSearchFields(props) {
|
|
156
|
-
return props.searchFields ||
|
|
158
|
+
return props.searchFields || defaultSearchFields;
|
|
157
159
|
}; // const isObjectContainsSearchString = (searchFields = [], searchStr = '', obj) => {
|
|
158
160
|
// const matchedFields = searchFields.filter(element => {
|
|
159
161
|
// return getSearchString(obj[element]).indexOf(searchStr) !== -1
|
|
@@ -19,17 +19,17 @@
|
|
|
19
19
|
display: initial;
|
|
20
20
|
}
|
|
21
21
|
.font_regular {
|
|
22
|
-
font-
|
|
22
|
+
font-family: var(--zd_regular);
|
|
23
23
|
}
|
|
24
24
|
.font_light {
|
|
25
|
-
font-
|
|
25
|
+
font-family: var(--zd_light);
|
|
26
26
|
}
|
|
27
27
|
.font_semibold {
|
|
28
|
-
font-
|
|
28
|
+
font-family: var(--zd_semibold);
|
|
29
29
|
composes: ftsmooth from '../../../common/common.module.css';
|
|
30
30
|
}
|
|
31
31
|
.font_bold {
|
|
32
|
-
font-
|
|
32
|
+
font-family: var(--zd_bold);
|
|
33
33
|
composes: ftsmooth from '../../../common/common.module.css';
|
|
34
34
|
}
|
|
35
35
|
.fontStyles_normal{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.11",
|
|
4
4
|
"main": "es/index.js",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"private": false,
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"build:css:umd": "npm run clean && npm run init && react-cli build:css:umd",
|
|
40
40
|
"coverage": "react-cli coverage",
|
|
41
41
|
"prepare": "npm run init && npm run css:build ",
|
|
42
|
-
"prepublishOnly": "node prePublish.js && npm run test-clean &&
|
|
42
|
+
"prepublishOnly": "node prePublish.js && npm run test-clean && npm run download && npm run css:review && npm run review:props ",
|
|
43
43
|
"postpublish": "node postPublish.js",
|
|
44
44
|
"report": "react-cli publish:report",
|
|
45
45
|
"test": "react-cli test",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"snap-update": "npm run test-clean && npm run test -- -u",
|
|
49
49
|
"sstest": "npm run init && react-cli sstest",
|
|
50
50
|
"build:external": "npm run clean && npm run init && npm run docsjs:build && npm run build:externalDocCopy && react-cli build:component:umd && npm run externalDocHTMLChange",
|
|
51
|
-
"download": "react-cli clean ./node_modules ./package-lock.json && npm install
|
|
51
|
+
"download": "react-cli clean ./node_modules ./package-lock.json && npm install ",
|
|
52
52
|
"expublish": "npm publish --tag experimental-version",
|
|
53
53
|
"css:lineheight:validate": "node ./node_modules/@zohodesk-private/node-plugins/es/lineheight_automation/lineHeightErrorCheck.js ./src/",
|
|
54
54
|
"cssVariableConvert": "react-cli variableConverter ./lib ./lib && react-cli variableConverter ./es ./es",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"@zohodesk/svg": "1.2.2",
|
|
87
87
|
"@zohodesk/utils": "1.3.14",
|
|
88
88
|
"@zohodesk/variables": "1.1.0",
|
|
89
|
-
"@zohodesk/virtualizer": "1.0.
|
|
89
|
+
"@zohodesk/virtualizer": "1.0.13",
|
|
90
90
|
"react-sortable-hoc": "^0.8.3",
|
|
91
91
|
"velocity-react": "1.4.3",
|
|
92
92
|
"@zohodesk/react-cli": "1.1.27"
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"@zohodesk/icons": "1.1.0",
|
|
102
102
|
"@zohodesk/variables": "1.1.0",
|
|
103
103
|
"@zohodesk/svg": "1.2.2",
|
|
104
|
-
"@zohodesk/virtualizer": "1.0.
|
|
104
|
+
"@zohodesk/virtualizer": "1.0.13",
|
|
105
105
|
"velocity-react": "1.4.3",
|
|
106
106
|
"react-sortable-hoc": "^0.8.3",
|
|
107
107
|
"@zohodesk/hooks": "2.0.5",
|