@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.
Files changed (57) hide show
  1. package/.cli/propValidation_report.html +1 -1
  2. package/README.md +13 -0
  3. package/es/AppContainer/AppContainer.js +0 -1
  4. package/es/AppContainer/AppContainer.module.css +2 -3
  5. package/es/Button/css/Button.module.css +4 -13
  6. package/es/DateTime/DateTime.module.css +9 -12
  7. package/es/DateTime/YearView.module.css +1 -1
  8. package/es/Heading/Heading.module.css +1 -0
  9. package/es/Label/Label.module.css +8 -8
  10. package/es/MultiSelect/MultiSelect.js +36 -12
  11. package/es/MultiSelect/MultiSelect.module.css +1 -1
  12. package/es/MultiSelect/Suggestions.js +171 -100
  13. package/es/MultiSelect/props/defaultProps.js +2 -0
  14. package/es/MultiSelect/props/propTypes.js +4 -0
  15. package/es/Select/Select.js +41 -12
  16. package/es/Select/props/defaultProps.js +1 -0
  17. package/es/Select/props/propTypes.js +1 -0
  18. package/es/Tab/Tabs.module.css +1 -1
  19. package/es/TextBox/TextBox.module.css +4 -4
  20. package/es/Textarea/Textarea.module.css +1 -1
  21. package/es/Tooltip/Tooltip.module.css +1 -1
  22. package/es/Typography/css/Typography.module.css +4 -4
  23. package/es/common/basic.module.css +6 -39
  24. package/es/common/basicReset.module.css +2 -2
  25. package/es/common/common.module.css +5 -5
  26. package/es/utils/Common.js +2 -1
  27. package/es/utils/dropDownUtils.js +3 -1
  28. package/es/v1/Tab/v1Tabs.module.css +1 -1
  29. package/es/v1/Typography/css/v1_Typography.module.css +4 -4
  30. package/lib/AppContainer/AppContainer.js +0 -2
  31. package/lib/AppContainer/AppContainer.module.css +2 -3
  32. package/lib/Button/css/Button.module.css +4 -13
  33. package/lib/DateTime/DateTime.module.css +9 -12
  34. package/lib/DateTime/YearView.module.css +1 -1
  35. package/lib/Heading/Heading.module.css +1 -0
  36. package/lib/Label/Label.module.css +8 -8
  37. package/lib/MultiSelect/MultiSelect.js +36 -10
  38. package/lib/MultiSelect/MultiSelect.module.css +1 -1
  39. package/lib/MultiSelect/Suggestions.js +174 -104
  40. package/lib/MultiSelect/props/defaultProps.js +2 -0
  41. package/lib/MultiSelect/props/propTypes.js +4 -0
  42. package/lib/Select/Select.js +40 -9
  43. package/lib/Select/props/defaultProps.js +1 -0
  44. package/lib/Select/props/propTypes.js +1 -0
  45. package/lib/Tab/Tabs.module.css +1 -1
  46. package/lib/TextBox/TextBox.module.css +4 -4
  47. package/lib/Textarea/Textarea.module.css +1 -1
  48. package/lib/Tooltip/Tooltip.module.css +1 -1
  49. package/lib/Typography/css/Typography.module.css +4 -4
  50. package/lib/common/basic.module.css +6 -39
  51. package/lib/common/basicReset.module.css +2 -2
  52. package/lib/common/common.module.css +5 -5
  53. package/lib/utils/Common.js +4 -2
  54. package/lib/utils/dropDownUtils.js +3 -1
  55. package/lib/v1/Tab/v1Tabs.module.css +1 -1
  56. package/lib/v1/Typography/css/v1_Typography.module.css +4 -4
  57. package/package.json +5 -5
@@ -139,7 +139,7 @@
139
139
  --textarea_height: var(--zd_size184);
140
140
  }
141
141
  .default {
142
- font-weight: var(--zd-fw-normal);
142
+ font-family: var(--zd_regular);
143
143
  --textarea_text_color: var(--zdt_textarea_black_text);
144
144
  }
145
145
  .primary {
@@ -14,7 +14,7 @@
14
14
  .tooltipcont {
15
15
  color: var(--zdt_tooltip_default_text);
16
16
  font-size: var(--zd_font_size13) ;
17
- font-weight: var(--zd-fw-semibold);
17
+ font-family: var(--zd_semibold);
18
18
  word-break: break-word;
19
19
  max-width: var(--zd_size420) ;
20
20
  line-height: 1.5385;
@@ -25,20 +25,20 @@
25
25
  }
26
26
 
27
27
  .font_regular {
28
- font-weight: var(--zd-fw-normal);
28
+ font-family: var(--zd_regular);
29
29
  }
30
30
 
31
31
  .font_light {
32
- font-weight: var(--zd-fw-light);
32
+ font-family: var(--zd_light);
33
33
  }
34
34
 
35
35
  .font_semibold {
36
- font-weight: var(--zd-fw-semibold);
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-weight: var(--zd-fw-bold);
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: Light;
3
- src: url('https://static.zohocdn.com/webfonts/lato2light/font.woff2') format('woff2');
4
- font-weight: 300;
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: Regular;
11
- src: url('https://static.zohocdn.com/webfonts/lato2regular/font.woff2') format('woff2');
12
- font-weight: 400;
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-weight: var(--zd-fw-normal);
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-weight*/
306
+ /*font-family*/
307
307
  .regular {
308
- font-weight: var(--zd-fw-normal);
308
+ font-family: var(--zd_regular, Regular);
309
309
  }
310
310
 
311
311
  .light {
312
- font-weight: var(--zd-fw-light);
312
+ font-family: var(--zd_light, Light);
313
313
  }
314
314
 
315
315
  .semibold {
316
- font-weight: var(--zd-fw-semibold);
316
+ font-family: var(--zd_semibold, Semibold);
317
317
  composes: ftsmooth;
318
318
  }
319
319
 
320
320
  .bold {
321
- font-weight: var(--zd-fw-bold);
321
+ font-family: var(--zd_bold, Bold);
322
322
  composes: ftsmooth;
323
323
  }
324
324
 
@@ -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 || ['value'];
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
@@ -145,7 +145,7 @@
145
145
  }
146
146
 
147
147
  .emptyStateTitle {
148
- font-weight: var(--zd-fw-semibold);
148
+ font-family: var(--zd_semibold);
149
149
  word-wrap: break-word;
150
150
  font-size: var(--zd_font_size16) ;
151
151
  max-width: var(--zd_size430) ;
@@ -19,17 +19,17 @@
19
19
  display: initial;
20
20
  }
21
21
  .font_regular {
22
- font-weight: var(--zd-fw-normal);
22
+ font-family: var(--zd_regular);
23
23
  }
24
24
  .font_light {
25
- font-weight: var(--zd-fw-light);
25
+ font-family: var(--zd_light);
26
26
  }
27
27
  .font_semibold {
28
- font-weight: var(--zd-fw-semibold);
28
+ font-family: var(--zd_semibold);
29
29
  composes: ftsmooth from '../../../common/common.module.css';
30
30
  }
31
31
  .font_bold {
32
- font-weight: var(--zd-fw-bold);
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.10-exp.1",
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 && npm run customTest && npm run download && npm run css:review && npm run review:props ",
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 && cd ../ && npm run download",
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.3",
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.3",
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",