@zohodesk/components 1.0.0-temp-196 → 1.0.0-temp-197
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/PropUnificationExcludeFilesArray.js +230 -230
- package/.cli/PropValidationExcludeFilesArray.js +1 -1
- package/.cli/propValidation_report.html +1 -1
- package/README.md +0 -5
- package/css_error.log +1 -1
- package/es/AppContainer/AppContainer.js +0 -1
- package/es/Avatar/Avatar.js +9 -9
- package/es/Avatar/Avatar.module.css +2 -2
- package/es/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +591 -591
- package/es/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +705 -705
- package/es/Button/css/Button.module.css +22 -6
- package/es/Buttongroup/Buttongroup.module.css +1 -1
- package/es/DateTime/DateTime.module.css +11 -8
- package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +11 -7
- package/es/DropBox/css/DropBox.module.css +1 -1
- package/es/Label/__tests__/__snapshots__/Label.spec.js.snap +312 -312
- package/es/MultiSelect/MultiSelect.js +5 -5
- package/es/Provider/LibraryContext.js +3 -15
- package/es/Ribbon/Ribbon.module.css +6 -6
- package/es/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +374 -374
- package/es/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +89 -89
- package/es/Switch/Switch.module.css +2 -1
- package/es/Switch/__tests__/__snapshots__/Switch.spec.js.snap +831 -831
- package/es/Tab/Tabs.module.css +3 -3
- package/es/Tag/Tag.js +9 -11
- package/es/Tag/props/defaultProps.js +0 -1
- package/es/Tag/props/propTypes.js +0 -1
- package/es/Tooltip/Tooltip.module.css +3 -0
- package/es/v1/AppContainer/AppContainer.js +0 -1
- package/es/v1/Avatar/Avatar.js +5 -5
- package/es/v1/AvatarTeam/AvatarTeam.js +4 -4
- package/es/v1/Button/Button.js +4 -4
- package/es/v1/Card/Card.js +4 -4
- package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +5 -5
- package/es/v1/MultiSelect/MultiSelect.js +5 -5
- package/es/v1/Tab/Tabs.js +11 -11
- package/es/v1/Tab/v1Tabs.module.css +3 -3
- package/es/v1/Tag/Tag.js +9 -11
- package/es/v1/Tag/props/defaultProps.js +0 -1
- package/es/v1/Tag/props/propTypes.js +0 -1
- package/lib/AppContainer/AppContainer.js +0 -2
- package/lib/Avatar/Avatar.js +9 -9
- package/lib/Avatar/Avatar.module.css +2 -2
- package/lib/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +591 -591
- package/lib/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +705 -705
- package/lib/Button/css/Button.module.css +22 -6
- package/lib/Buttongroup/Buttongroup.module.css +1 -1
- package/lib/DateTime/DateTime.module.css +11 -8
- package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +11 -7
- package/lib/DropBox/css/DropBox.module.css +1 -1
- package/lib/Label/__tests__/__snapshots__/Label.spec.js.snap +312 -312
- package/lib/MultiSelect/MultiSelect.js +5 -5
- package/lib/Provider/LibraryContext.js +5 -15
- package/lib/Ribbon/Ribbon.module.css +6 -6
- package/lib/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +374 -374
- package/lib/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +89 -89
- package/lib/Switch/Switch.module.css +2 -1
- package/lib/Switch/__tests__/__snapshots__/Switch.spec.js.snap +831 -831
- package/lib/Tab/Tabs.module.css +3 -3
- package/lib/Tag/Tag.js +10 -13
- package/lib/Tag/props/defaultProps.js +0 -1
- package/lib/Tag/props/propTypes.js +0 -1
- package/lib/Tooltip/Tooltip.module.css +3 -0
- package/lib/v1/AppContainer/AppContainer.js +0 -2
- package/lib/v1/Avatar/Avatar.js +5 -5
- package/lib/v1/AvatarTeam/AvatarTeam.js +4 -4
- package/lib/v1/Button/Button.js +4 -4
- package/lib/v1/Card/Card.js +4 -4
- package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +5 -5
- package/lib/v1/MultiSelect/MultiSelect.js +5 -5
- package/lib/v1/Tab/Tabs.js +11 -11
- package/lib/v1/Tab/v1Tabs.module.css +3 -3
- package/lib/v1/Tag/Tag.js +10 -13
- package/lib/v1/Tag/props/defaultProps.js +0 -1
- package/lib/v1/Tag/props/propTypes.js +0 -1
- package/package.json +9 -5
- package/propValidationArg.json +11 -11
- package/result.json +1 -1
- /package/es/{common → deprecated}/boxShadow.module.css +0 -0
- /package/lib/{common → deprecated}/boxShadow.module.css +0 -0
package/lib/Tab/Tabs.module.css
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
bottom: 0 ;
|
|
32
32
|
height: var(--zd_size10) ;
|
|
33
33
|
border-radius: 100px / 5px;
|
|
34
|
-
box-shadow: var(--
|
|
34
|
+
box-shadow: var(--zd_bs_contrast_outline, 0 -2px 9px var(--zdt_tabs_alpha_box_shadow));
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
[dir=ltr] .alpha::after {
|
|
@@ -123,13 +123,13 @@
|
|
|
123
123
|
.bottomRightToLeft,
|
|
124
124
|
.topRightToLeft,
|
|
125
125
|
.bottomCenterToLeft {
|
|
126
|
-
right: calc(var(--tab_position_gap) * -1);
|
|
126
|
+
right: calc(var(--tab_position_gap) * -1);
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
.bottomLeftToRight,
|
|
130
130
|
.topLeftToRight,
|
|
131
131
|
.bottomCenterToRight {
|
|
132
|
-
left: calc(var(--tab_position_gap) * -1);
|
|
132
|
+
left: calc(var(--tab_position_gap) * -1);
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
.hidden {
|
package/lib/Tag/Tag.js
CHANGED
|
@@ -31,8 +31,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
31
31
|
|
|
32
32
|
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; }
|
|
33
33
|
|
|
34
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
35
|
-
|
|
36
34
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
37
35
|
|
|
38
36
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
@@ -53,16 +51,16 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
53
51
|
|
|
54
52
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
55
53
|
|
|
56
|
-
/*
|
|
57
|
-
* eslint css-modules/no-unused-class: [2, { markAsUsed: ['small', 'medium',
|
|
58
|
-
* 'closedanger', 'closeprimary', 'default', 'danger', 'secondary',
|
|
59
|
-
* 'pureDotted', 'primaryDotted'] }]
|
|
54
|
+
/*
|
|
55
|
+
* eslint css-modules/no-unused-class: [2, { markAsUsed: ['small', 'medium',
|
|
56
|
+
* 'closedanger', 'closeprimary', 'default', 'danger', 'secondary',
|
|
57
|
+
* 'pureDotted', 'primaryDotted'] }]
|
|
60
58
|
*/
|
|
61
59
|
|
|
62
|
-
/*
|
|
63
|
-
* eslint css-modules/no-unused-class: [2, { markAsUsed: ['small', 'medium',
|
|
64
|
-
* 'closedanger', 'closeprimary', 'default', 'danger', 'secondary',
|
|
65
|
-
* 'pureDotted', 'primaryDotted'] }]
|
|
60
|
+
/*
|
|
61
|
+
* eslint css-modules/no-unused-class: [2, { markAsUsed: ['small', 'medium',
|
|
62
|
+
* 'closedanger', 'closeprimary', 'default', 'danger', 'secondary',
|
|
63
|
+
* 'pureDotted', 'primaryDotted'] }]
|
|
66
64
|
*/
|
|
67
65
|
var Tag = /*#__PURE__*/function (_PureComponent) {
|
|
68
66
|
_inherits(Tag, _PureComponent);
|
|
@@ -137,7 +135,6 @@ var Tag = /*#__PURE__*/function (_PureComponent) {
|
|
|
137
135
|
tooltip = _this$props4.tooltip,
|
|
138
136
|
avatarPalette = _this$props4.avatarPalette,
|
|
139
137
|
customClass = _this$props4.customClass,
|
|
140
|
-
customAttributes = _this$props4.customAttributes,
|
|
141
138
|
a11y = _this$props4.a11y,
|
|
142
139
|
needEffect = _this$props4.needEffect,
|
|
143
140
|
isReadOnly = _this$props4.isReadOnly;
|
|
@@ -154,7 +151,7 @@ var Tag = /*#__PURE__*/function (_PureComponent) {
|
|
|
154
151
|
var _a11y$clearLabel = a11y.clearLabel,
|
|
155
152
|
clearLabel = _a11y$clearLabel === void 0 ? 'Delete' : _a11y$clearLabel;
|
|
156
153
|
var isDarkPalette = palette === 'dark';
|
|
157
|
-
return /*#__PURE__*/_react["default"].createElement("div",
|
|
154
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
158
155
|
className: "".concat(_TagModule["default"].container, " ").concat(needEffect && !isReadOnly ? _TagModule["default"].effect : _TagModule["default"].readonly, " ").concat(active ? "".concat(_TagModule["default"].selected, " ").concat(_TagModule["default"]["active".concat(palette)]) : '', " ").concat(onRemove ? active ? "".concat(_TagModule["default"]["active".concat(size, "Effect")]) : '' : '', " ").concat(_TagModule["default"][size], " ").concat(rounded ? _TagModule["default"].lgRadius : _TagModule["default"].smRadius, " ").concat(_TagModule["default"][palette], " ").concat(disabled ? _TagModule["default"].disabled : '', " ").concat(onSelectTag ? _TagModule["default"].pointer : '', " ").concat(customTag),
|
|
159
156
|
"data-id": active ? "".concat(dataId, "_TagSelected") : "".concat(dataId, "_Tag"),
|
|
160
157
|
"data-test-id": active ? "".concat(dataId, "_TagSelected") : "".concat(dataId, "_Tag"),
|
|
@@ -164,7 +161,7 @@ var Tag = /*#__PURE__*/function (_PureComponent) {
|
|
|
164
161
|
tabIndex: disabled ? '-1' : '0',
|
|
165
162
|
"aria-labelledby": getAriaId,
|
|
166
163
|
"data-selector-id": dataSelectorId
|
|
167
|
-
},
|
|
164
|
+
}, hasAvatar ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
168
165
|
className: _TagModule["default"].avatar
|
|
169
166
|
}, /*#__PURE__*/_react["default"].createElement(_Avatar["default"], {
|
|
170
167
|
palette: isDarkPalette ? 'info' : avatarPalette,
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
z-index: 9999999;
|
|
4
4
|
/*Hook for editor alert*/
|
|
5
5
|
pointer-events: none;
|
|
6
|
+
/*css:validation:ignore*/
|
|
6
7
|
box-shadow: 0 4px 12px 0 var(--zdt_tooltip_default_box_shadow);
|
|
7
8
|
border-radius: var(--zd_size4);
|
|
8
9
|
}[dir=ltr] .tooltiptext {
|
|
@@ -51,6 +52,7 @@
|
|
|
51
52
|
border-left: solid 6px var(--zdt_tooltip_default_bg);
|
|
52
53
|
border-right: solid 6px transparent;
|
|
53
54
|
border-bottom: solid 6px transparent;
|
|
55
|
+
/*css:validation:ignore*/
|
|
54
56
|
box-shadow: 0 4px 12px 0 var(--zdt_tooltip_default_box_shadow);
|
|
55
57
|
z-index: -1;
|
|
56
58
|
}
|
|
@@ -71,6 +73,7 @@
|
|
|
71
73
|
border-left: solid 6px var(--zdt_tooltip_default_bg);
|
|
72
74
|
border-right: solid 6px transparent;
|
|
73
75
|
border-bottom: solid 6px transparent;
|
|
76
|
+
/*css:validation:ignore*/
|
|
74
77
|
box-shadow: 0 4px 12px 0 var(--zdt_tooltip_default_box_shadow);
|
|
75
78
|
z-index: -1;
|
|
76
79
|
}
|
|
@@ -35,8 +35,6 @@ require("@zohodesk/variables/assets/no_transitionVariables.module.css");
|
|
|
35
35
|
|
|
36
36
|
require("../../common/a11y.module.css");
|
|
37
37
|
|
|
38
|
-
require("../../common/boxShadow.module.css");
|
|
39
|
-
|
|
40
38
|
var _AppContainerModule = _interopRequireDefault(require("../../AppContainer/AppContainer.module.css"));
|
|
41
39
|
|
|
42
40
|
var _Config = require("../../Provider/Config");
|
package/lib/v1/Avatar/Avatar.js
CHANGED
|
@@ -49,11 +49,11 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
49
49
|
|
|
50
50
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
51
51
|
|
|
52
|
-
/*
|
|
53
|
-
1. need to change name into firstName lastName
|
|
54
|
-
2. pattern support via context as well as props
|
|
55
|
-
3. prop high priority to arrange firstName lastName
|
|
56
|
-
4. team pass name as lastName and pass pattern via prop
|
|
52
|
+
/*
|
|
53
|
+
1. need to change name into firstName lastName
|
|
54
|
+
2. pattern support via context as well as props
|
|
55
|
+
3. prop high priority to arrange firstName lastName
|
|
56
|
+
4. team pass name as lastName and pass pattern via prop
|
|
57
57
|
*/
|
|
58
58
|
function Avatar(props) {
|
|
59
59
|
var src = props.src,
|
|
@@ -19,10 +19,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
19
19
|
|
|
20
20
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
21
21
|
|
|
22
|
-
/* once avatar support firstname lastname and pattern
|
|
23
|
-
pass lastName as team name and pattern ["FIRST_NAME","LAST_NAME"] as props
|
|
24
|
-
|
|
25
|
-
Not going to export to external then can kept inside supportapp
|
|
22
|
+
/* once avatar support firstname lastname and pattern
|
|
23
|
+
pass lastName as team name and pattern ["FIRST_NAME","LAST_NAME"] as props
|
|
24
|
+
|
|
25
|
+
Not going to export to external then can kept inside supportapp
|
|
26
26
|
*/
|
|
27
27
|
function AvatarTeam(props) {
|
|
28
28
|
var src = props.src,
|
package/lib/v1/Button/Button.js
CHANGED
|
@@ -21,10 +21,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
21
21
|
|
|
22
22
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
23
23
|
|
|
24
|
-
/*
|
|
25
|
-
Button text and children props?
|
|
26
|
-
use children for both cases
|
|
27
|
-
toLowerCase check needed?
|
|
24
|
+
/*
|
|
25
|
+
Button text and children props?
|
|
26
|
+
use children for both cases
|
|
27
|
+
toLowerCase check needed?
|
|
28
28
|
*/
|
|
29
29
|
function Button(props) {
|
|
30
30
|
var text = props.text,
|
package/lib/v1/Card/Card.js
CHANGED
|
@@ -44,10 +44,10 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
44
44
|
|
|
45
45
|
/* eslint-disable react/forbid-component-props */
|
|
46
46
|
|
|
47
|
-
/*
|
|
48
|
-
isscroll header border change use ref
|
|
49
|
-
scroll logic remove from here
|
|
50
|
-
scroll logic move to virtualizer list
|
|
47
|
+
/*
|
|
48
|
+
isscroll header border change use ref
|
|
49
|
+
scroll logic remove from here
|
|
50
|
+
scroll logic move to virtualizer list
|
|
51
51
|
*/
|
|
52
52
|
|
|
53
53
|
/* performance handling pending in card component moving to ref instead of setState */
|
|
@@ -488,8 +488,8 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
488
488
|
if (suggestionsLen && isPopupOpen && keyCode === 38) {
|
|
489
489
|
//up arrow
|
|
490
490
|
|
|
491
|
-
/*if (hoverOption === 0) { //disable first to last option higlight
|
|
492
|
-
!isNextOptions && this.setState({ hoverOption: suggestionsLen - 1 });
|
|
491
|
+
/*if (hoverOption === 0) { //disable first to last option higlight
|
|
492
|
+
!isNextOptions && this.setState({ hoverOption: suggestionsLen - 1 });
|
|
493
493
|
}*/
|
|
494
494
|
if (hoverIndex) {
|
|
495
495
|
this.setState({
|
|
@@ -499,9 +499,9 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
499
499
|
} else if (suggestionsLen && isPopupOpen && keyCode === 40) {
|
|
500
500
|
//down arrow
|
|
501
501
|
|
|
502
|
-
/*else if (hoverOption === suggestionsLen - 1 || hoverOption === null) {
|
|
503
|
-
//disable last to first option higlight
|
|
504
|
-
!isNextOptions && this.setState({ hoverOption: 0 });
|
|
502
|
+
/*else if (hoverOption === suggestionsLen - 1 || hoverOption === null) {
|
|
503
|
+
//disable last to first option higlight
|
|
504
|
+
!isNextOptions && this.setState({ hoverOption: 0 });
|
|
505
505
|
}*/
|
|
506
506
|
if (isNextOptions && suggestionsLen >= 5 && hoverIndex === suggestionsLen - 3) {
|
|
507
507
|
getNextOptions && this.handleFetchOptions(getNextOptions, searchStr);
|
|
@@ -402,8 +402,8 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
402
402
|
if (suggestionsLen && isPopupOpen && keyCode === 38) {
|
|
403
403
|
//up arrow
|
|
404
404
|
|
|
405
|
-
/*if (hoverOption === 0) { //disable first to last option higlight
|
|
406
|
-
!isNextOptions && this.setState({ hoverOption: suggestionsLen - 1 });
|
|
405
|
+
/*if (hoverOption === 0) { //disable first to last option higlight
|
|
406
|
+
!isNextOptions && this.setState({ hoverOption: suggestionsLen - 1 });
|
|
407
407
|
}*/
|
|
408
408
|
if (hoverOption) {
|
|
409
409
|
this.setState({
|
|
@@ -413,9 +413,9 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
413
413
|
} else if (suggestionsLen && isPopupOpen && keyCode === 40) {
|
|
414
414
|
//down arrow
|
|
415
415
|
|
|
416
|
-
/*else if (hoverOption === suggestionsLen - 1 || hoverOption === null) {
|
|
417
|
-
//disable last to first option higlight
|
|
418
|
-
!isNextOptions && this.setState({ hoverOption: 0 });
|
|
416
|
+
/*else if (hoverOption === suggestionsLen - 1 || hoverOption === null) {
|
|
417
|
+
//disable last to first option higlight
|
|
418
|
+
!isNextOptions && this.setState({ hoverOption: 0 });
|
|
419
419
|
}*/
|
|
420
420
|
if (isNextOptions && suggestionsLen >= 5 && hoverOption === suggestionsLen - 3) {
|
|
421
421
|
getNextOptions && this.handleFetchOptions(getNextOptions, searchStr);
|
package/lib/v1/Tab/Tabs.js
CHANGED
|
@@ -187,9 +187,9 @@ var Tabs = function Tabs(props) {
|
|
|
187
187
|
|
|
188
188
|
(0, _useEffectCallOnlyAfterState["default"])(function () {
|
|
189
189
|
if (children) {
|
|
190
|
-
/**
|
|
191
|
-
* To recalculate the dimensions of tabs we are checking the children length.
|
|
192
|
-
* and also checking the tab id and their order.
|
|
190
|
+
/**
|
|
191
|
+
* To recalculate the dimensions of tabs we are checking the children length.
|
|
192
|
+
* and also checking the tab id and their order.
|
|
193
193
|
*/
|
|
194
194
|
var newTabKeys = [];
|
|
195
195
|
|
|
@@ -337,14 +337,14 @@ var Tabs = function Tabs(props) {
|
|
|
337
337
|
});
|
|
338
338
|
|
|
339
339
|
if (selectedTabDimension > totalDimension) {
|
|
340
|
-
/* let { align } = this.props;
|
|
341
|
-
let newDim = `${remConvert(totalDimension)}rem`;
|
|
342
|
-
let newTabs;
|
|
343
|
-
if (align === 'vertical') {
|
|
344
|
-
newTabs = mainTabs.map(tab => React.cloneElement(tab, { style: { maxWidth: newDim } }));
|
|
345
|
-
} else {
|
|
346
|
-
newTabs = mainTabs.map(tab => React.cloneElement(tab, { style: { maxHeight: newDim } }));
|
|
347
|
-
}
|
|
340
|
+
/* let { align } = this.props;
|
|
341
|
+
let newDim = `${remConvert(totalDimension)}rem`;
|
|
342
|
+
let newTabs;
|
|
343
|
+
if (align === 'vertical') {
|
|
344
|
+
newTabs = mainTabs.map(tab => React.cloneElement(tab, { style: { maxWidth: newDim } }));
|
|
345
|
+
} else {
|
|
346
|
+
newTabs = mainTabs.map(tab => React.cloneElement(tab, { style: { maxHeight: newDim } }));
|
|
347
|
+
}
|
|
348
348
|
mainTabs = newTabs; */
|
|
349
349
|
setMaxDim(totalDimension);
|
|
350
350
|
}
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
bottom: 0 ;
|
|
32
32
|
height: var(--zd_size10) ;
|
|
33
33
|
border-radius: 100px / 5px;
|
|
34
|
-
box-shadow: var(--
|
|
34
|
+
box-shadow: var(--zd_bs_contrast_outline, 0 -2px 9px var(--zdt_tabs_alpha_box_shadow));
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
[dir=ltr] .alpha::after {
|
|
@@ -123,13 +123,13 @@
|
|
|
123
123
|
.bottomRightToLeft,
|
|
124
124
|
.topRightToLeft,
|
|
125
125
|
.bottomCenterToLeft {
|
|
126
|
-
right: calc(var(--tab_position_gap) * -1);
|
|
126
|
+
right: calc(var(--tab_position_gap) * -1);
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
.bottomLeftToRight,
|
|
130
130
|
.topLeftToRight,
|
|
131
131
|
.bottomCenterToRight {
|
|
132
|
-
left: calc(var(--tab_position_gap) * -1);
|
|
132
|
+
left: calc(var(--tab_position_gap) * -1);
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
.hidden {
|
package/lib/v1/Tag/Tag.js
CHANGED
|
@@ -31,18 +31,16 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
31
31
|
|
|
32
32
|
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; }
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
*
|
|
38
|
-
* 'closedanger', 'closeprimary', 'default', 'danger', 'secondary',
|
|
39
|
-
* 'pureDotted', 'primaryDotted'] }]
|
|
34
|
+
/*
|
|
35
|
+
* eslint css-modules/no-unused-class: [2, { markAsUsed: ['small', 'medium',
|
|
36
|
+
* 'closedanger', 'closeprimary', 'default', 'danger', 'secondary',
|
|
37
|
+
* 'pureDotted', 'primaryDotted'] }]
|
|
40
38
|
*/
|
|
41
39
|
|
|
42
|
-
/*
|
|
43
|
-
* eslint css-modules/no-unused-class: [2, { markAsUsed: ['small', 'medium',
|
|
44
|
-
* 'closedanger', 'closeprimary', 'default', 'danger', 'secondary',
|
|
45
|
-
* 'pureDotted', 'primaryDotted'] }]
|
|
40
|
+
/*
|
|
41
|
+
* eslint css-modules/no-unused-class: [2, { markAsUsed: ['small', 'medium',
|
|
42
|
+
* 'closedanger', 'closeprimary', 'default', 'danger', 'secondary',
|
|
43
|
+
* 'pureDotted', 'primaryDotted'] }]
|
|
46
44
|
*/
|
|
47
45
|
function Tag(props) {
|
|
48
46
|
var imageURL = props.imageURL,
|
|
@@ -65,7 +63,6 @@ function Tag(props) {
|
|
|
65
63
|
tooltip = props.tooltip,
|
|
66
64
|
avatarPalette = props.avatarPalette,
|
|
67
65
|
customClass = props.customClass,
|
|
68
|
-
customAttributes = props.customAttributes,
|
|
69
66
|
a11y = props.a11y,
|
|
70
67
|
needEffect = props.needEffect,
|
|
71
68
|
isReadOnly = props.isReadOnly,
|
|
@@ -104,7 +101,7 @@ function Tag(props) {
|
|
|
104
101
|
var _a11y$clearLabel = a11y.clearLabel,
|
|
105
102
|
clearLabel = _a11y$clearLabel === void 0 ? 'Delete' : _a11y$clearLabel;
|
|
106
103
|
var isDarkPalette = palette === 'dark';
|
|
107
|
-
return /*#__PURE__*/_react["default"].createElement("div",
|
|
104
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
108
105
|
className: "".concat(_TagModule["default"].container, " ").concat(needEffect && !isReadOnly ? _TagModule["default"].effect : _TagModule["default"].readonly, " ").concat(active ? "".concat(_TagModule["default"].selected, " ").concat(_TagModule["default"]["active".concat(palette)]) : '', " ").concat(onRemove ? active ? "".concat(_TagModule["default"]["active".concat(size, "Effect")]) : '' : '', " ").concat(_TagModule["default"][size], " ").concat(rounded ? _TagModule["default"].lgRadius : _TagModule["default"].smRadius, " ").concat(_TagModule["default"][palette], " ").concat(disabled ? _TagModule["default"].disabled : '', " ").concat(onSelectTag ? _TagModule["default"].pointer : '', " ").concat(customTag),
|
|
109
106
|
"data-id": active ? "".concat(dataId, "_TagSelected") : "".concat(dataId, "_Tag"),
|
|
110
107
|
"data-test-id": active ? "".concat(dataId, "_TagSelected") : "".concat(dataId, "_Tag"),
|
|
@@ -114,7 +111,7 @@ function Tag(props) {
|
|
|
114
111
|
tabIndex: disabled ? '-1' : '0',
|
|
115
112
|
"aria-labelledby": getAriaId,
|
|
116
113
|
"data-selector-id": dataSelectorId
|
|
117
|
-
},
|
|
114
|
+
}, hasAvatar ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
118
115
|
className: _TagModule["default"].avatar
|
|
119
116
|
}, /*#__PURE__*/_react["default"].createElement(_Avatar["default"], {
|
|
120
117
|
palette: isDarkPalette ? 'info' : avatarPalette,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/components",
|
|
3
|
-
"version": "1.0.0-temp-
|
|
3
|
+
"version": "1.0.0-temp-197",
|
|
4
4
|
"main": "es/index.js",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"private": false,
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"docs": "npm run css:review && react-cli docs",
|
|
32
32
|
"build:lib": "react-cli build:component:cmjs",
|
|
33
33
|
"build:es": "react-cli build:library:es",
|
|
34
|
-
"build": "npm run theme:validate && npm run build:lib && npm run build:es",
|
|
34
|
+
"build": "npm run theme:validate && npm run css:boxshadow:validate && npm run css:boxshadow:addfallback && npm run build:lib && npm run build:es",
|
|
35
35
|
"build:local": " npm run build && npm run rtl && npm run cssVariableConvert",
|
|
36
36
|
"build:watch": "npm run build:variables && npm run build && npm run build:es --module:mode=dev -- -w",
|
|
37
37
|
"rtl:watch": "react-cli rtl ./src ./es -w",
|
|
@@ -52,11 +52,15 @@
|
|
|
52
52
|
"variable:addignore": "node ./node_modules/@zohodesk-private/css-variable-migrator/es/variableIgnore.js ./src",
|
|
53
53
|
"variable:convert": "node ./node_modules/@zohodesk-private/css-variable-migrator/es/pxParserPostcss.js ./src",
|
|
54
54
|
"variable:check": "node ./node_modules/@zohodesk-private/css-variable-migrator/es/variableErrorCheck.js ./src ./node_modules/@zohodesk-private/css-variable-migrator/es/config/cssVariableReplacementOptions.json",
|
|
55
|
-
"css:review": " npm run dubCheck && npm run css:lineheight:validate && npm run theme:validate ",
|
|
55
|
+
"css:review": " npm run dubCheck && npm run css:lineheight:validate && npm run theme:validate && npm run css:boxshadow:validate && npm run css:boxshadow:addfallback",
|
|
56
56
|
"theme:validate": "node ./node_modules/@zohodesk-private/node-plugins/es/appearance_theme_validation validate ./src ./.cli ./.cli/stringContains.js",
|
|
57
57
|
"theme:addignore": "node ./node_modules/@zohodesk-private/node-plugins/es/appearance_theme_validation addignore ./src ./.cli ./.cli/stringContains.js",
|
|
58
58
|
"theme:removeignore": "node ./node_modules/@zohodesk-private/node-plugins/es/appearance_theme_validation removeignore ./src ./.cli",
|
|
59
|
-
"review:props": "node ./node_modules/@zohodesk-private/react-prop-validator/es/propValidation.js propValidationArg.json "
|
|
59
|
+
"review:props": "node ./node_modules/@zohodesk-private/react-prop-validator/es/propValidation.js propValidationArg.json ",
|
|
60
|
+
"css:boxshadow:validate": "node ./node_modules/@zohodesk-private/node-plugins/es/boxshadow_validation/boxShadowValidation.js validate ./src",
|
|
61
|
+
"css:boxshadow:addignore": "node ./node_modules/@zohodesk-private/node-plugins/es/boxshadow_validation/boxShadowValidation.js addignore ./src",
|
|
62
|
+
"css:boxshadow:removeignore": "node ./node_modules/@zohodesk-private/node-plugins/es/boxshadow_validation/boxShadowValidation.js removeignore ./src",
|
|
63
|
+
"css:boxshadow:addfallback": "node ./node_modules/@zohodesk-private/node-plugins/es/boxshadow_validation/boxShadowValidation.js addfallback ./src"
|
|
60
64
|
},
|
|
61
65
|
"devDependencies": {
|
|
62
66
|
"@testing-library/jest-dom": "^5.11.9",
|
|
@@ -65,7 +69,7 @@
|
|
|
65
69
|
"@testing-library/user-event": "^13.0.10",
|
|
66
70
|
"@zohodesk-private/color-variable-preprocessor": "1.2.0",
|
|
67
71
|
"@zohodesk-private/css-variable-migrator": "^1.0.7",
|
|
68
|
-
"@zohodesk-private/node-plugins": "1.1
|
|
72
|
+
"@zohodesk-private/node-plugins": "1.0.0-temp-7.1",
|
|
69
73
|
"@zohodesk-private/react-prop-validator": "1.2.3",
|
|
70
74
|
"@zohodesk/a11y": "2.2.1",
|
|
71
75
|
"@zohodesk/docstool": "1.0.0-alpha-2",
|
package/propValidationArg.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
{
|
|
2
|
-
"inputDir": "./src",
|
|
3
|
-
"outputDir": "./.cli",
|
|
4
|
-
"excludeDir": "./.cli",
|
|
5
|
-
"propUnifiExcludeDir": "./.cli",
|
|
6
|
-
"enable": true,
|
|
7
|
-
"need_report": true,
|
|
8
|
-
"prop_validation_strict_mode": true,
|
|
9
|
-
"prop_validation_log": false,
|
|
10
|
-
"prop_unification_strict_mode": true,
|
|
11
|
-
"prop_unification_log": false
|
|
1
|
+
{
|
|
2
|
+
"inputDir": "./src",
|
|
3
|
+
"outputDir": "./.cli",
|
|
4
|
+
"excludeDir": "./.cli",
|
|
5
|
+
"propUnifiExcludeDir": "./.cli",
|
|
6
|
+
"enable": true,
|
|
7
|
+
"need_report": true,
|
|
8
|
+
"prop_validation_strict_mode": true,
|
|
9
|
+
"prop_validation_log": false,
|
|
10
|
+
"prop_unification_strict_mode": true,
|
|
11
|
+
"prop_unification_log": false
|
|
12
12
|
}
|