@zohodesk/components 1.0.0-temp-161 → 1.0.0-temp-162
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/README.md +4 -0
- package/es/Avatar/Avatar.js +7 -3
- package/es/DateTime/CalendarView.js +4 -1
- package/es/DateTime/DateTime.module.css +4 -4
- package/es/DateTime/DateTimePopupHeader.js +4 -7
- package/es/DateTime/DaysRow.js +5 -2
- package/es/DateTime/Time.js +5 -2
- package/es/DateTime/YearView.js +9 -9
- package/es/DateTime/YearView.module.css +1 -4
- package/es/Heading/Heading.js +7 -7
- package/es/Heading/Heading.module.css +68 -1
- package/es/Heading/props/defaultProps.js +3 -1
- package/es/Heading/props/propTypes.js +4 -3
- package/es/Label/Label.js +6 -3
- package/es/ListItem/ListItem.js +7 -3
- package/es/ListItem/ListItem.module.css +0 -1
- package/es/ListItem/ListItemWithAvatar.js +7 -3
- package/es/ListItem/ListItemWithCheckBox.js +7 -3
- package/es/ListItem/ListItemWithIcon.js +6 -2
- package/es/ListItem/ListItemWithRadio.js +7 -3
- package/es/Responsive/ResizeComponent.js +2 -15
- package/es/Tab/Tab.js +4 -2
- package/es/Tab/Tabs.js +8 -21
- package/es/Tab/Tabs.module.css +11 -0
- package/es/Tag/Tag.js +8 -3
- package/es/Text/Text.js +27 -0
- package/es/Text/Text.module.css +72 -0
- package/es/Text/props/defaultProps.js +7 -0
- package/es/Text/props/propTypes.js +12 -0
- package/es/Typography/Typography.js +28 -0
- package/es/Typography/Typography.module.css +72 -0
- package/es/Typography/props/defaultProps.js +8 -0
- package/es/Typography/props/propTypes.js +12 -0
- package/es/index.js +3 -1
- package/es/utils/css/mergeStyle.js +1 -1
- package/lib/Avatar/Avatar.js +7 -3
- package/lib/DateTime/CalendarView.js +4 -1
- package/lib/DateTime/DateTime.module.css +4 -4
- package/lib/DateTime/DateTimePopupHeader.js +4 -7
- package/lib/DateTime/DaysRow.js +5 -2
- package/lib/DateTime/Time.js +5 -2
- package/lib/DateTime/YearView.js +9 -9
- package/lib/DateTime/YearView.module.css +1 -4
- package/lib/Heading/Heading.js +7 -8
- package/lib/Heading/Heading.module.css +68 -1
- package/lib/Heading/props/defaultProps.js +3 -1
- package/lib/Heading/props/propTypes.js +4 -3
- package/lib/Label/Label.js +5 -2
- package/lib/ListItem/ListItem.js +7 -3
- package/lib/ListItem/ListItem.module.css +0 -1
- package/lib/ListItem/ListItemWithAvatar.js +7 -3
- package/lib/ListItem/ListItemWithCheckBox.js +7 -3
- package/lib/ListItem/ListItemWithIcon.js +6 -2
- package/lib/ListItem/ListItemWithRadio.js +7 -3
- package/lib/Responsive/ResizeComponent.js +3 -16
- package/lib/Tab/Tab.js +4 -2
- package/lib/Tab/Tabs.js +18 -29
- package/lib/Tab/Tabs.module.css +11 -0
- package/lib/Tag/Tag.js +8 -3
- package/lib/Text/Text.js +58 -0
- package/lib/Text/Text.module.css +72 -0
- package/lib/Text/props/defaultProps.js +14 -0
- package/lib/Text/props/propTypes.js +20 -0
- package/lib/Typography/Typography.js +59 -0
- package/lib/Typography/Typography.module.css +72 -0
- package/lib/Typography/props/defaultProps.js +15 -0
- package/lib/Typography/props/propTypes.js +20 -0
- package/lib/index.js +17 -1
- package/lib/utils/css/mergeStyle.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.defaultProps = void 0;
|
|
7
|
+
var defaultProps = {
|
|
8
|
+
tagName: 'div',
|
|
9
|
+
a11y: {},
|
|
10
|
+
className: '',
|
|
11
|
+
customProps: {},
|
|
12
|
+
size: 'inherit',
|
|
13
|
+
needReset: true
|
|
14
|
+
};
|
|
15
|
+
exports.defaultProps = defaultProps;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.propTypes = void 0;
|
|
7
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
|
+
var propTypes = {
|
|
10
|
+
tagName: _propTypes["default"].string,
|
|
11
|
+
className: _propTypes["default"].string,
|
|
12
|
+
dataId: _propTypes["default"].string,
|
|
13
|
+
dataTitle: _propTypes["default"].string,
|
|
14
|
+
a11y: _propTypes["default"].object,
|
|
15
|
+
children: _propTypes["default"].node,
|
|
16
|
+
customProps: _propTypes["default"].object,
|
|
17
|
+
needReset: _propTypes["default"].bool,
|
|
18
|
+
size: _propTypes["default"].oneOf(['8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '30', '50', 'inherit'])
|
|
19
|
+
};
|
|
20
|
+
exports.propTypes = propTypes;
|
package/lib/index.js
CHANGED
|
@@ -30,7 +30,9 @@ var _exportNames = {
|
|
|
30
30
|
TextBox: true,
|
|
31
31
|
TextBoxIcon: true,
|
|
32
32
|
Tooltip: true,
|
|
33
|
-
utils: true
|
|
33
|
+
utils: true,
|
|
34
|
+
Text: true,
|
|
35
|
+
Typography: true
|
|
34
36
|
};
|
|
35
37
|
Object.defineProperty(exports, "Animation", {
|
|
36
38
|
enumerable: true,
|
|
@@ -148,6 +150,12 @@ Object.defineProperty(exports, "Tag", {
|
|
|
148
150
|
return _Tag["default"];
|
|
149
151
|
}
|
|
150
152
|
});
|
|
153
|
+
Object.defineProperty(exports, "Text", {
|
|
154
|
+
enumerable: true,
|
|
155
|
+
get: function get() {
|
|
156
|
+
return _Text["default"];
|
|
157
|
+
}
|
|
158
|
+
});
|
|
151
159
|
Object.defineProperty(exports, "TextBox", {
|
|
152
160
|
enumerable: true,
|
|
153
161
|
get: function get() {
|
|
@@ -172,6 +180,12 @@ Object.defineProperty(exports, "Tooltip", {
|
|
|
172
180
|
return _Tooltip["default"];
|
|
173
181
|
}
|
|
174
182
|
});
|
|
183
|
+
Object.defineProperty(exports, "Typography", {
|
|
184
|
+
enumerable: true,
|
|
185
|
+
get: function get() {
|
|
186
|
+
return _Typography["default"];
|
|
187
|
+
}
|
|
188
|
+
});
|
|
175
189
|
exports.utils = void 0;
|
|
176
190
|
var _Accordion = require("./Accordion");
|
|
177
191
|
Object.keys(_Accordion).forEach(function (key) {
|
|
@@ -346,6 +360,8 @@ Object.keys(_semantic).forEach(function (key) {
|
|
|
346
360
|
}
|
|
347
361
|
});
|
|
348
362
|
});
|
|
363
|
+
var _Text = _interopRequireDefault(require("./Text/Text"));
|
|
364
|
+
var _Typography = _interopRequireDefault(require("./Typography/Typography"));
|
|
349
365
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
350
366
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
351
367
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -59,7 +59,7 @@ function mergeStyle(defaultStyle) {
|
|
|
59
59
|
res[next] = customStyle[next];
|
|
60
60
|
} else if (!defaultStyle[next] && !additionalStyle.includes(next)) {
|
|
61
61
|
// res[next] = customStyle[next];
|
|
62
|
-
"UNKNOWN CLASSNAME DETECTED - Given customStyle's key \"".concat(next, "\" is not available in that component style");
|
|
62
|
+
throw new Error("UNKNOWN CLASSNAME DETECTED - Given customStyle's key \"".concat(next, "\" is not available in that component style"));
|
|
63
63
|
}
|
|
64
64
|
return res;
|
|
65
65
|
}, _objectSpread({}, defaultStyle));
|