@zohodesk/components 1.0.0-temp-134 → 1.0.0-temp-136

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 (89) hide show
  1. package/README.md +6 -0
  2. package/es/DateTime/DateTimePopupHeader.js +1 -1
  3. package/es/DateTime/DateWidget.js +1 -1
  4. package/es/DateTime/YearView.js +1 -1
  5. package/es/DateTime/index.js +1 -1
  6. package/es/DropBox/DropBox.module.css +0 -1
  7. package/es/DropDown/index.js +7 -0
  8. package/es/Layout/index.js +9 -9
  9. package/es/ListItem/ListItem.js +4 -3
  10. package/es/ListItem/ListItem.module.css +4 -0
  11. package/es/ListItem/ListItemWithAvatar.js +4 -3
  12. package/es/ListItem/ListItemWithCheckBox.js +3 -2
  13. package/es/ListItem/ListItemWithIcon.js +4 -3
  14. package/es/ListItem/ListItemWithRadio.js +3 -2
  15. package/es/ListItem/index.js +6 -0
  16. package/es/ListItem/props/defaultProps.js +12 -6
  17. package/es/MultiSelect/AdvancedGroupMultiSelect.js +1 -1
  18. package/es/MultiSelect/AdvancedMultiSelect.js +1 -1
  19. package/es/MultiSelect/MultiSelect.js +6 -19
  20. package/es/MultiSelect/MultiSelectWithAvatar.js +6 -19
  21. package/es/MultiSelect/index.js +4 -0
  22. package/es/MultiSelect/props/defaultProps.js +2 -5
  23. package/es/MultiSelect/props/propTypes.js +1 -7
  24. package/es/PopOver/index.js +3 -0
  25. package/es/Provider/IdProvider.js +8 -7
  26. package/es/Provider/index.js +4 -0
  27. package/es/Responsive/index.js +11 -8
  28. package/es/Select/GroupSelect.js +1 -1
  29. package/es/Select/Select.js +1 -1
  30. package/es/Select/SelectWithIcon.js +1 -1
  31. package/es/Select/index.js +4 -0
  32. package/es/Tab/Tab.module.css +0 -1
  33. package/es/Tab/Tabs.js +1 -1
  34. package/es/Tab/Tabs.module.css +0 -1
  35. package/es/Tag/Tag.js +1 -1
  36. package/es/TextBoxIcon/TextBoxIcon.js +1 -1
  37. package/es/VelocityAnimation/index.js +2 -0
  38. package/es/index.js +30 -40
  39. package/es/semantic/index.js +1 -0
  40. package/es/utils/css/compileClassNames.js +23 -0
  41. package/es/utils/css/mergeStyle.js +42 -0
  42. package/es/utils/css/utils.js +23 -0
  43. package/es/utils/dropDownUtils.js +2 -3
  44. package/es/utils/index.js +3 -0
  45. package/lib/DateTime/DateTimePopupHeader.js +4 -4
  46. package/lib/DateTime/DateWidget.js +2 -2
  47. package/lib/DateTime/YearView.js +2 -2
  48. package/lib/DateTime/index.js +1 -1
  49. package/lib/DropBox/DropBox.module.css +0 -1
  50. package/lib/DropDown/index.js +56 -0
  51. package/lib/Layout/index.js +1 -11
  52. package/lib/ListItem/ListItem.js +5 -4
  53. package/lib/ListItem/ListItem.module.css +4 -0
  54. package/lib/ListItem/ListItemWithAvatar.js +5 -4
  55. package/lib/ListItem/ListItemWithCheckBox.js +3 -2
  56. package/lib/ListItem/ListItemWithIcon.js +6 -5
  57. package/lib/ListItem/ListItemWithRadio.js +3 -2
  58. package/lib/ListItem/index.js +48 -0
  59. package/lib/ListItem/props/defaultProps.js +12 -6
  60. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +2 -2
  61. package/lib/MultiSelect/AdvancedMultiSelect.js +2 -2
  62. package/lib/MultiSelect/MultiSelect.js +7 -20
  63. package/lib/MultiSelect/MultiSelectWithAvatar.js +7 -20
  64. package/lib/MultiSelect/index.js +34 -0
  65. package/lib/MultiSelect/props/defaultProps.js +2 -5
  66. package/lib/MultiSelect/props/propTypes.js +1 -7
  67. package/lib/PopOver/index.js +27 -0
  68. package/lib/Provider/IdProvider.js +8 -8
  69. package/lib/Provider/index.js +76 -0
  70. package/lib/Responsive/index.js +45 -22
  71. package/lib/Select/GroupSelect.js +2 -2
  72. package/lib/Select/Select.js +2 -2
  73. package/lib/Select/SelectWithIcon.js +3 -3
  74. package/lib/Select/index.js +34 -0
  75. package/lib/Tab/Tab.module.css +0 -1
  76. package/lib/Tab/Tabs.js +2 -2
  77. package/lib/Tab/Tabs.module.css +0 -1
  78. package/lib/Tag/Tag.js +3 -3
  79. package/lib/TextBoxIcon/TextBoxIcon.js +2 -2
  80. package/lib/VelocityAnimation/index.js +20 -0
  81. package/lib/index.js +164 -212
  82. package/lib/semantic/index.js +13 -0
  83. package/lib/utils/css/compileClassNames.js +31 -0
  84. package/lib/utils/css/mergeStyle.js +52 -0
  85. package/lib/utils/css/utils.js +33 -0
  86. package/lib/utils/dropDownUtils.js +2 -5
  87. package/lib/utils/index.js +117 -0
  88. package/package.json +3 -3
  89. package/css_error.log +0 -0
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.isDataTypeOf = exports.getDataType = exports.dataTypes = void 0;
7
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
8
+ var dataTypes = {
9
+ number: 'number',
10
+ array: 'array',
11
+ string: 'string',
12
+ object: 'object',
13
+ bigint: 'bigint',
14
+ symbol: 'symbol',
15
+ undefined: 'undefined',
16
+ "function": 'function',
17
+ "boolean": 'boolean'
18
+ };
19
+ exports.dataTypes = dataTypes;
20
+ var getDataType = function getDataType(data) {
21
+ var typeofData = _typeof(data);
22
+ var isArrayDataType = Array.isArray(data);
23
+ if (isArrayDataType) {
24
+ return dataTypes.array;
25
+ } else {
26
+ return dataTypes[typeofData];
27
+ }
28
+ };
29
+ exports.getDataType = getDataType;
30
+ var isDataTypeOf = function isDataTypeOf(data, type) {
31
+ return getDataType(data) === type;
32
+ };
33
+ exports.isDataTypeOf = isDataTypeOf;
@@ -86,9 +86,6 @@ exports.getPrefixText = getPrefixText;
86
86
  var getIsStartWithSearch = function getIsStartWithSearch(props) {
87
87
  return props.isStartsWithSearch;
88
88
  };
89
- var getIsNeedTick = function getIsNeedTick(props) {
90
- return props.isNeedTick;
91
- };
92
89
  var getDisabledOptions = function getDisabledOptions(props) {
93
90
  return props.disabledOptions || dummyArray;
94
91
  };
@@ -96,7 +93,7 @@ var getListItemProps = function getListItemProps(props) {
96
93
  return props.listItemProps || '';
97
94
  };
98
95
  var makeGetMultiSelectFilterSuggestions = function makeGetMultiSelectFilterSuggestions() {
99
- return (0, _reselect.createSelector)([getOptions, getSelectedOptionsSel, getSearchStr, getNeedSearch, getIsStartWithSearch, getIsNeedTick], function (options, selectedOptions, searchStr, needSearch, isStartsWithSearch, isNeedTick) {
96
+ return (0, _reselect.createSelector)([getOptions, getSelectedOptionsSel, getSearchStr, getNeedSearch, getIsStartWithSearch], function (options, selectedOptions, searchStr, needSearch, isStartsWithSearch) {
100
97
  var suggestions = [];
101
98
  var suggestionIds = [];
102
99
  options.forEach(function (option) {
@@ -106,7 +103,7 @@ var makeGetMultiSelectFilterSuggestions = function makeGetMultiSelectFilterSugge
106
103
  var valueString = (0, _Common.getSearchString)(value);
107
104
  var searchString = (0, _Common.getSearchString)(searchStr);
108
105
  var isMatch = needSearch ? isStartsWithSearch ? valueString.startsWith(searchString) : valueString.indexOf(searchString) !== -1 : true;
109
- if (selectedOptions.indexOf(id) === -1 && isMatch || isNeedTick) {
106
+ if (selectedOptions.indexOf(id) === -1 && isMatch) {
110
107
  suggestions.push(option);
111
108
  suggestionIds.push(id);
112
109
  }
@@ -0,0 +1,117 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "bytesToSize", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _Common.bytesToSize;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "capitalize", {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _Common.capitalize;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "checkIsImageFile", {
19
+ enumerable: true,
20
+ get: function get() {
21
+ return _Common.checkIsImageFile;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "compileClassNames", {
25
+ enumerable: true,
26
+ get: function get() {
27
+ return _compileClassNames["default"];
28
+ }
29
+ });
30
+ Object.defineProperty(exports, "debounce", {
31
+ enumerable: true,
32
+ get: function get() {
33
+ return _Common.debounce;
34
+ }
35
+ });
36
+ Object.defineProperty(exports, "doAfterScrollEnd", {
37
+ enumerable: true,
38
+ get: function get() {
39
+ return _Common.doAfterScrollEnd;
40
+ }
41
+ });
42
+ Object.defineProperty(exports, "findScrollEnd", {
43
+ enumerable: true,
44
+ get: function get() {
45
+ return _Common.findScrollEnd;
46
+ }
47
+ });
48
+ Object.defineProperty(exports, "format12Hour", {
49
+ enumerable: true,
50
+ get: function get() {
51
+ return _Common.format12Hour;
52
+ }
53
+ });
54
+ Object.defineProperty(exports, "getDateOnly", {
55
+ enumerable: true,
56
+ get: function get() {
57
+ return _Common.getDateOnly;
58
+ }
59
+ });
60
+ Object.defineProperty(exports, "getElementSpace", {
61
+ enumerable: true,
62
+ get: function get() {
63
+ return _Common.getElementSpace;
64
+ }
65
+ });
66
+ Object.defineProperty(exports, "getFullDateString", {
67
+ enumerable: true,
68
+ get: function get() {
69
+ return _Common.getFullDateString;
70
+ }
71
+ });
72
+ Object.defineProperty(exports, "getFullName", {
73
+ enumerable: true,
74
+ get: function get() {
75
+ return _Common.getFullName;
76
+ }
77
+ });
78
+ Object.defineProperty(exports, "getMemSize", {
79
+ enumerable: true,
80
+ get: function get() {
81
+ return _Common.getMemSize;
82
+ }
83
+ });
84
+ Object.defineProperty(exports, "getSearchString", {
85
+ enumerable: true,
86
+ get: function get() {
87
+ return _Common.getSearchString;
88
+ }
89
+ });
90
+ Object.defineProperty(exports, "isTextSelected", {
91
+ enumerable: true,
92
+ get: function get() {
93
+ return _Common.isTextSelected;
94
+ }
95
+ });
96
+ Object.defineProperty(exports, "mergeStyle", {
97
+ enumerable: true,
98
+ get: function get() {
99
+ return _mergeStyle["default"];
100
+ }
101
+ });
102
+ Object.defineProperty(exports, "stopAllEventPropagation", {
103
+ enumerable: true,
104
+ get: function get() {
105
+ return _Common.stopAllEventPropagation;
106
+ }
107
+ });
108
+ Object.defineProperty(exports, "throttle", {
109
+ enumerable: true,
110
+ get: function get() {
111
+ return _Common.throttle;
112
+ }
113
+ });
114
+ var _compileClassNames = _interopRequireDefault(require("./css/compileClassNames"));
115
+ var _mergeStyle = _interopRequireDefault(require("./css/mergeStyle"));
116
+ var _Common = require("./Common");
117
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/components",
3
- "version": "1.0.0-temp-134",
3
+ "version": "1.0.0-temp-136",
4
4
  "main": "es/index.js",
5
5
  "module": "es/index.js",
6
6
  "private": false,
@@ -48,7 +48,7 @@
48
48
  "devDependencies": {
49
49
  "@zohodesk/docstool": "1.0.0-alpha-2",
50
50
  "@zohodesk/variables": "1.0.0-beta.29",
51
- "@zohodesk/icons": "1.0.0-beta.116",
51
+ "@zohodesk/icons": "1.0.0-beta.119",
52
52
  "@zohodesk/virtualizer": "1.0.3",
53
53
  "velocity-react": "1.4.3",
54
54
  "react-sortable-hoc": "^0.8.3",
@@ -62,7 +62,7 @@
62
62
  "selectn": "1.1.2"
63
63
  },
64
64
  "peerDependencies": {
65
- "@zohodesk/icons": "1.0.0-beta.116",
65
+ "@zohodesk/icons": "1.0.0-beta.119",
66
66
  "@zohodesk/variables": "1.0.0-beta.29",
67
67
  "@zohodesk/svg": "1.0.0-beta.49",
68
68
  "@zohodesk/virtualizer": "1.0.3",
package/css_error.log DELETED
File without changes