@zohodesk/components 1.0.0-temp-246 → 1.0.0-temp-242.1
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 +23 -7
- package/assets/Appearance/dark/mode/Component_DarkMode.module.css +0 -2
- package/assets/Appearance/light/mode/Component_LightMode.module.css +0 -2
- package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +0 -2
- package/es/AppContainer/AppContainer.js +1 -0
- package/es/AppContainer/AppContainer.module.css +3 -2
- package/es/Button/css/Button.module.css +13 -4
- package/es/CheckBox/CheckBox.js +10 -21
- package/es/CheckBox/CheckBox.module.css +6 -21
- package/es/CheckBox/__tests__/CheckBox.spec.js +0 -9
- package/es/CheckBox/__tests__/__snapshots__/CheckBox.spec.js.snap +93 -162
- package/es/CheckBox/props/propTypes.js +1 -4
- package/es/DateTime/DateTime.module.css +12 -9
- package/es/DateTime/YearView.module.css +1 -1
- package/es/DropBox/DropBoxElement/DropBoxElement.js +1 -1
- package/es/DropBox/utils/isMobilePopover.js +3 -14
- package/es/Heading/Heading.module.css +1 -1
- package/es/Label/Label.js +1 -19
- package/es/Label/Label.module.css +8 -8
- package/es/Label/__tests__/Label.spec.js +0 -58
- package/es/Label/__tests__/__snapshots__/Label.spec.js.snap +0 -66
- package/es/Label/props/defaultProps.js +0 -1
- package/es/Label/props/propTypes.js +1 -7
- package/es/MultiSelect/MultiSelect.module.css +1 -1
- package/es/Popup/Popup.js +21 -1045
- package/es/Radio/Radio.js +9 -20
- package/es/Radio/Radio.module.css +5 -38
- package/es/Radio/__tests__/Radio.spec.js +0 -10
- package/es/Radio/__tests__/__snapshots__/Radio.spec.js.snap +81 -238
- package/es/Radio/props/propTypes.js +1 -4
- package/es/Tab/Tabs.module.css +1 -1
- package/es/TextBox/TextBox.module.css +4 -4
- package/es/TextBoxIcon/TextBoxIcon.module.css +0 -6
- 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 +39 -6
- package/es/common/basicReset.module.css +2 -2
- package/es/common/common.module.css +5 -5
- package/es/shared/InputFieldLine/InputFieldLine.module.css +1 -1
- package/es/utils/Common.js +1 -1
- package/es/v1/Popup/Popup.js +1 -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 +2 -0
- package/lib/AppContainer/AppContainer.module.css +3 -2
- package/lib/Button/css/Button.module.css +13 -4
- package/lib/CheckBox/CheckBox.js +9 -23
- package/lib/CheckBox/CheckBox.module.css +6 -21
- package/lib/CheckBox/__tests__/CheckBox.spec.js +12 -21
- package/lib/CheckBox/__tests__/__snapshots__/CheckBox.spec.js.snap +93 -162
- package/lib/CheckBox/props/propTypes.js +1 -5
- package/lib/DateTime/DateTime.module.css +12 -9
- package/lib/DateTime/YearView.module.css +1 -1
- package/lib/DropBox/DropBoxElement/DropBoxElement.js +5 -5
- package/lib/DropBox/utils/isMobilePopover.js +4 -14
- package/lib/Heading/Heading.module.css +1 -1
- package/lib/Label/Label.js +1 -21
- package/lib/Label/Label.module.css +8 -8
- package/lib/Label/__tests__/Label.spec.js +0 -58
- package/lib/Label/__tests__/__snapshots__/Label.spec.js.snap +0 -66
- package/lib/Label/props/defaultProps.js +0 -1
- package/lib/Label/props/propTypes.js +1 -8
- package/lib/MultiSelect/MultiSelect.module.css +1 -1
- package/lib/Popup/Popup.js +25 -1152
- package/lib/Radio/Radio.js +8 -22
- package/lib/Radio/Radio.module.css +5 -38
- package/lib/Radio/__tests__/Radio.spec.js +0 -10
- package/lib/Radio/__tests__/__snapshots__/Radio.spec.js.snap +81 -238
- package/lib/Radio/props/propTypes.js +1 -5
- package/lib/Tab/Tabs.module.css +1 -1
- package/lib/TextBox/TextBox.module.css +4 -4
- package/lib/TextBoxIcon/TextBoxIcon.module.css +0 -6
- 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 +39 -6
- package/lib/common/basicReset.module.css +2 -2
- package/lib/common/common.module.css +5 -5
- package/lib/shared/InputFieldLine/InputFieldLine.module.css +1 -1
- package/lib/utils/Common.js +1 -1
- package/lib/v1/Popup/Popup.js +1 -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
- package/es/DropBox/DropBoxPositionMapping.js +0 -142
- package/es/Popup/PositionMapping.js +0 -72
- package/es/Popup/Registry.js +0 -36
- package/es/Popup/intersectionObserver.js +0 -49
- package/es/Popup/viewPort.js +0 -373
- package/lib/DropBox/DropBoxPositionMapping.js +0 -149
- package/lib/Popup/PositionMapping.js +0 -81
- package/lib/Popup/Registry.js +0 -46
- package/lib/Popup/intersectionObserver.js +0 -72
- package/lib/Popup/viewPort.js +0 -367
|
@@ -7,8 +7,6 @@ exports.propTypes = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
|
|
10
|
-
var _propTypes2 = require("../../Typography/props/propTypes");
|
|
11
|
-
|
|
12
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
11
|
|
|
14
12
|
var propTypes = {
|
|
@@ -17,7 +15,6 @@ var propTypes = {
|
|
|
17
15
|
checked: _propTypes["default"].bool,
|
|
18
16
|
dataId: _propTypes["default"].string,
|
|
19
17
|
dataSelectorId: _propTypes["default"].string,
|
|
20
|
-
secondaryText: _propTypes["default"].string,
|
|
21
18
|
disabled: _propTypes["default"].bool,
|
|
22
19
|
disabledTitle: _propTypes["default"].string,
|
|
23
20
|
getRef: _propTypes["default"].func,
|
|
@@ -49,8 +46,7 @@ var propTypes = {
|
|
|
49
46
|
}),
|
|
50
47
|
customProps: _propTypes["default"].shape({
|
|
51
48
|
CheckBoxProps: _propTypes["default"].object,
|
|
52
|
-
LabelProps: _propTypes["default"].object
|
|
53
|
-
secondaryTextProps: _propTypes["default"].exact(_propTypes2.propTypes)
|
|
49
|
+
LabelProps: _propTypes["default"].object
|
|
54
50
|
}),
|
|
55
51
|
renderRightPlaceholderNode: _propTypes["default"].node
|
|
56
52
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.semibold {
|
|
2
|
-
font-
|
|
2
|
+
font-weight: var(--zd-fw-semibold);
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
[dir=ltr] .boxPadding {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.datesStr {
|
|
32
|
-
font-
|
|
32
|
+
font-weight: var(--zd-fw-normal);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
.grid {
|
|
@@ -122,7 +122,8 @@
|
|
|
122
122
|
color: var(--zdt_datetime_invalid_text);
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
.invalidDate.holiday
|
|
125
|
+
.invalidDate.holiday,
|
|
126
|
+
.inActiveDate.holiday:hover {
|
|
126
127
|
color: var(--zdt_datetime_invaliddate_text);
|
|
127
128
|
}
|
|
128
129
|
|
|
@@ -147,15 +148,17 @@
|
|
|
147
148
|
background-color: var(--zdt_datetime_selected_bg);
|
|
148
149
|
border-radius: 50%;
|
|
149
150
|
}
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
151
|
+
|
|
152
|
+
.inActiveDate {
|
|
153
|
+
color: var(--zdt_datetime_invalid_text);
|
|
154
|
+
cursor: no-drop;
|
|
153
155
|
}
|
|
154
|
-
|
|
155
|
-
{
|
|
156
|
+
|
|
157
|
+
.inActiveDate:hover {
|
|
156
158
|
color: var(--zdt_datetime_invalid_text);
|
|
157
159
|
}
|
|
158
|
-
|
|
160
|
+
|
|
161
|
+
.inActiveDate:hover, .inActiveDate.holiday:hover {
|
|
159
162
|
background-color: var(--zdt_datetime_inactivedate_hover_bg);
|
|
160
163
|
|
|
161
164
|
}
|
|
@@ -11,7 +11,7 @@ var _useDropboxPosCalc2 = _interopRequireDefault(require("./useDropboxPosCalc"))
|
|
|
11
11
|
|
|
12
12
|
var _cssJSLogic2 = _interopRequireDefault(require("./css/cssJSLogic"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _positioning = require("@zohodesk/dotkit/es/react/components/Popup/utils/positioning");
|
|
15
15
|
|
|
16
16
|
var _defaultProps = require("./props/defaultProps");
|
|
17
17
|
|
|
@@ -75,13 +75,13 @@ function DropBoxElement(props) {
|
|
|
75
75
|
ariaMultiselectable = a11y.ariaMultiselectable,
|
|
76
76
|
ariaLabelledby = a11y.ariaLabelledby;
|
|
77
77
|
boxPosition = boxPosition && boxPosition != 'undefined' ? boxPosition : 'bottomCenter';
|
|
78
|
-
var boxDirection =
|
|
78
|
+
var boxDirection = _positioning.positionMapping[boxPosition].direction;
|
|
79
79
|
|
|
80
80
|
if (isAbsolute) {
|
|
81
|
-
arrowPosition = arrowPosition ? arrowPosition :
|
|
82
|
-
boxPosition =
|
|
81
|
+
arrowPosition = arrowPosition ? arrowPosition : _positioning.positionMapping[boxPosition].arrowPosition;
|
|
82
|
+
boxPosition = _positioning.positionMapping[boxPosition].positionStyle;
|
|
83
83
|
} else {
|
|
84
|
-
arrowPosition =
|
|
84
|
+
arrowPosition = _positioning.positionMapping[boxPosition].arrowPosition;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
var _useDropboxPosCalc = (0, _useDropboxPosCalc2["default"])(props),
|
|
@@ -7,19 +7,9 @@ exports["default"] = isMobilePopover;
|
|
|
7
7
|
|
|
8
8
|
var _Config = require("../../Provider/Config");
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
// let { needResponsive } = props;
|
|
12
|
-
var windowWidth,
|
|
13
|
-
mobileWidth = (0, _Config.getLibraryConfig)('mobileWidth'),
|
|
14
|
-
isModel = false;
|
|
15
|
-
|
|
16
|
-
if (needResponsive) {
|
|
17
|
-
windowWidth = window.innerWidth;
|
|
10
|
+
var _utils = require("@zohodesk/dotkit/es/react/components/Popup/utils");
|
|
18
11
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
return isModel ? true : false;
|
|
12
|
+
function isMobilePopover(needResponsive) {
|
|
13
|
+
var mobileWidth = (0, _Config.getLibraryConfig)('mobileWidth');
|
|
14
|
+
return (0, _utils.isMobilePopover)(needResponsive, mobileWidth);
|
|
25
15
|
}
|
package/lib/Label/Label.js
CHANGED
|
@@ -13,18 +13,12 @@ var _defaultProps = require("./props/defaultProps");
|
|
|
13
13
|
|
|
14
14
|
var _propTypes = require("./props/propTypes");
|
|
15
15
|
|
|
16
|
-
var _Flex = _interopRequireDefault(require("@zohodesk/layout/es/Flex/Flex"));
|
|
17
|
-
|
|
18
|
-
var _utils = require("@zohodesk/utils");
|
|
19
|
-
|
|
20
16
|
var _LabelModule = _interopRequireDefault(require("./Label.module.css"));
|
|
21
17
|
|
|
22
18
|
var _LabelColorsModule = _interopRequireDefault(require("./LabelColors.module.css"));
|
|
23
19
|
|
|
24
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
21
|
|
|
26
|
-
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); }
|
|
27
|
-
|
|
28
22
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
29
23
|
|
|
30
24
|
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); } }
|
|
@@ -71,17 +65,12 @@ var Label = /*#__PURE__*/function (_React$Component) {
|
|
|
71
65
|
dataId = _this$props.dataId,
|
|
72
66
|
dataSelectorId = _this$props.dataSelectorId,
|
|
73
67
|
variant = _this$props.variant,
|
|
74
|
-
customProps = _this$props.customProps,
|
|
75
68
|
customClass = _this$props.customClass,
|
|
76
69
|
id = _this$props.id,
|
|
77
|
-
renderRightPlaceholderNode = _this$props.renderRightPlaceholderNode,
|
|
78
70
|
_this$props$a11y = _this$props.a11y,
|
|
79
71
|
a11y = _this$props$a11y === void 0 ? {} : _this$props$a11y;
|
|
80
|
-
var containerProps = customProps.containerProps,
|
|
81
|
-
rightPlaceholderNodeProps = customProps.rightPlaceholderNodeProps;
|
|
82
72
|
var tabIndex = a11y.tabIndex;
|
|
83
|
-
|
|
84
|
-
var labelElement = /*#__PURE__*/_react["default"].createElement("label", {
|
|
73
|
+
return /*#__PURE__*/_react["default"].createElement("label", {
|
|
85
74
|
className: "".concat(_LabelModule["default"].label, " ").concat(_LabelModule["default"][type], " ").concat(_LabelModule["default"][size], " ").concat(_LabelColorsModule["default"][palette], " ").concat(_LabelModule["default"]["font_".concat(variant)], "\n ").concat(clipped ? _LabelModule["default"].dotted : '', " ").concat(onClick ? _LabelModule["default"].pointer : _LabelModule["default"].cursor, " ").concat(customClass, " "),
|
|
86
75
|
htmlFor: htmlFor,
|
|
87
76
|
"data-title": title,
|
|
@@ -92,15 +81,6 @@ var Label = /*#__PURE__*/function (_React$Component) {
|
|
|
92
81
|
id: id,
|
|
93
82
|
tabIndex: tabIndex
|
|
94
83
|
}, text);
|
|
95
|
-
|
|
96
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, (0, _utils.isRenderable)(renderRightPlaceholderNode) ? /*#__PURE__*/_react["default"].createElement(_Flex["default"], _extends({
|
|
97
|
-
$ui_displayMode: "flex",
|
|
98
|
-
$ui_direction: "row",
|
|
99
|
-
$ui_alignItems: "center"
|
|
100
|
-
}, containerProps), labelElement, /*#__PURE__*/_react["default"].createElement(_Flex["default"], _extends({
|
|
101
|
-
$ui_displayMode: "flex",
|
|
102
|
-
$ui_alignItems: "center"
|
|
103
|
-
}, rightPlaceholderNodeProps), (0, _utils.renderNode)(renderRightPlaceholderNode))) : /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, labelElement));
|
|
104
84
|
}
|
|
105
85
|
}]);
|
|
106
86
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* label default variables */
|
|
3
3
|
--label_font_size: var(--zd_font_size14);
|
|
4
4
|
--label_text_color: var(--zdt_label_default_text);
|
|
5
|
-
--
|
|
5
|
+
--label_font_weight: var(--zd-fw-normal);
|
|
6
6
|
--label_cursor: default;
|
|
7
7
|
--label_line_height: 1.286;
|
|
8
8
|
}
|
|
@@ -13,24 +13,24 @@
|
|
|
13
13
|
line-height: var(--label_line_height);
|
|
14
14
|
font-size: var(--label_font_size);
|
|
15
15
|
color: var(--label_text_color);
|
|
16
|
-
font-
|
|
16
|
+
font-weight: var(--label_font_weight);
|
|
17
17
|
cursor: var(--label_cursor);
|
|
18
18
|
}
|
|
19
19
|
.xsmall {
|
|
20
20
|
--label_font_size: var(--zd_font_size12);
|
|
21
|
-
--label_line_height:1.5;
|
|
21
|
+
--label_line_height: 1.5;
|
|
22
22
|
}
|
|
23
23
|
.small {
|
|
24
24
|
--label_font_size: var(--zd_font_size13);
|
|
25
|
-
--label_line_height:1.385;
|
|
25
|
+
--label_line_height: 1.385;
|
|
26
26
|
}
|
|
27
27
|
.medium {
|
|
28
28
|
--label_font_size: var(--zd_font_size14);
|
|
29
|
-
--label_line_height:1.286;
|
|
29
|
+
--label_line_height: 1.286;
|
|
30
30
|
}
|
|
31
31
|
.large {
|
|
32
32
|
--label_font_size: var(--zd_font_size26);
|
|
33
|
-
--label_line_height:0.6923;
|
|
33
|
+
--label_line_height: 0.6923;
|
|
34
34
|
composes: semibold from '../common/common.module.css';
|
|
35
35
|
}
|
|
36
36
|
.pointer {
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
display: inline-block;
|
|
47
47
|
}
|
|
48
48
|
.font_default {
|
|
49
|
-
--
|
|
49
|
+
--label_font_weight: var(--zd-fw-normal);
|
|
50
50
|
}
|
|
51
51
|
.font_primary {
|
|
52
|
-
--
|
|
52
|
+
--label_font_weight: var(--zd-fw-semibold);
|
|
53
53
|
composes: ftsmooth from '../common/common.module.css';
|
|
54
54
|
}
|
|
55
55
|
.dotted {
|
|
@@ -103,62 +103,4 @@ describe('Label', function () {
|
|
|
103
103
|
|
|
104
104
|
expect(asFragment()).toMatchSnapshot();
|
|
105
105
|
});
|
|
106
|
-
test('rendering with renderRightPlaceholderNode', function () {
|
|
107
|
-
var _render12 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Label["default"], {
|
|
108
|
-
text: "New Feature",
|
|
109
|
-
id: "label_new",
|
|
110
|
-
renderRightPlaceholderNode: /*#__PURE__*/_react["default"].createElement("span", {
|
|
111
|
-
style: {
|
|
112
|
-
background: '#27ae60',
|
|
113
|
-
color: 'white',
|
|
114
|
-
padding: '2px 6px',
|
|
115
|
-
borderRadius: '3px',
|
|
116
|
-
fontSize: '10px',
|
|
117
|
-
fontWeight: 'bold'
|
|
118
|
-
}
|
|
119
|
-
}, "NEW")
|
|
120
|
-
})),
|
|
121
|
-
asFragment = _render12.asFragment;
|
|
122
|
-
|
|
123
|
-
expect(asFragment()).toMatchSnapshot();
|
|
124
|
-
});
|
|
125
|
-
test('rendering with customProps - containerProps & rightPlaceholderNodeProps', function () {
|
|
126
|
-
var _render13 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Label["default"], {
|
|
127
|
-
text: "Premium Feature",
|
|
128
|
-
id: "label_premium",
|
|
129
|
-
size: "large",
|
|
130
|
-
palette: "danger",
|
|
131
|
-
renderRightPlaceholderNode: /*#__PURE__*/_react["default"].createElement("span", {
|
|
132
|
-
style: {
|
|
133
|
-
fontSize: '10px',
|
|
134
|
-
background: '#f39c12',
|
|
135
|
-
color: 'white',
|
|
136
|
-
padding: '1px 4px',
|
|
137
|
-
borderRadius: '2px'
|
|
138
|
-
}
|
|
139
|
-
}, "PRO"),
|
|
140
|
-
customProps: {
|
|
141
|
-
containerProps: {
|
|
142
|
-
$ui_alignItems: 'center',
|
|
143
|
-
$tagAttributes_container: {
|
|
144
|
-
style: {
|
|
145
|
-
gap: '6px'
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
},
|
|
149
|
-
rightPlaceholderNodeProps: {
|
|
150
|
-
$ui_displayMode: 'flex',
|
|
151
|
-
$ui_alignItems: 'center',
|
|
152
|
-
$tagAttributes_container: {
|
|
153
|
-
style: {
|
|
154
|
-
gap: '6px'
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
})),
|
|
160
|
-
asFragment = _render13.asFragment;
|
|
161
|
-
|
|
162
|
-
expect(asFragment()).toMatchSnapshot();
|
|
163
|
-
});
|
|
164
106
|
});
|
|
@@ -310,69 +310,3 @@ exports[`Label rendering the variant of- primary 1`] = `
|
|
|
310
310
|
</label>
|
|
311
311
|
</DocumentFragment>
|
|
312
312
|
`;
|
|
313
|
-
|
|
314
|
-
exports[`Label rendering with customProps - containerProps & rightPlaceholderNodeProps 1`] = `
|
|
315
|
-
<DocumentFragment>
|
|
316
|
-
<div
|
|
317
|
-
class="flex row alignItems_center"
|
|
318
|
-
data-id="flex"
|
|
319
|
-
data-test-id="flex"
|
|
320
|
-
style="gap: 6px;"
|
|
321
|
-
>
|
|
322
|
-
<label
|
|
323
|
-
class="label title large danger font_default
|
|
324
|
-
cursor "
|
|
325
|
-
data-id="label"
|
|
326
|
-
data-selector-id="label"
|
|
327
|
-
data-test-id="label"
|
|
328
|
-
id="label_premium"
|
|
329
|
-
>
|
|
330
|
-
Premium Feature
|
|
331
|
-
</label>
|
|
332
|
-
<div
|
|
333
|
-
class="flex row alignItems_center"
|
|
334
|
-
data-id="flex"
|
|
335
|
-
data-test-id="flex"
|
|
336
|
-
style="gap: 6px;"
|
|
337
|
-
>
|
|
338
|
-
<span
|
|
339
|
-
style="font-size: 10px; background: rgb(243, 156, 18); color: white; padding: 1px 4px; border-radius: 2px;"
|
|
340
|
-
>
|
|
341
|
-
PRO
|
|
342
|
-
</span>
|
|
343
|
-
</div>
|
|
344
|
-
</div>
|
|
345
|
-
</DocumentFragment>
|
|
346
|
-
`;
|
|
347
|
-
|
|
348
|
-
exports[`Label rendering with renderRightPlaceholderNode 1`] = `
|
|
349
|
-
<DocumentFragment>
|
|
350
|
-
<div
|
|
351
|
-
class="flex row"
|
|
352
|
-
data-id="flex"
|
|
353
|
-
data-test-id="flex"
|
|
354
|
-
>
|
|
355
|
-
<label
|
|
356
|
-
class="label title medium default font_default
|
|
357
|
-
cursor "
|
|
358
|
-
data-id="label"
|
|
359
|
-
data-selector-id="label"
|
|
360
|
-
data-test-id="label"
|
|
361
|
-
id="label_new"
|
|
362
|
-
>
|
|
363
|
-
New Feature
|
|
364
|
-
</label>
|
|
365
|
-
<div
|
|
366
|
-
class=""
|
|
367
|
-
data-id="flex"
|
|
368
|
-
data-test-id="flex"
|
|
369
|
-
>
|
|
370
|
-
<span
|
|
371
|
-
style="background: rgb(39, 174, 96); color: white; padding: 2px 6px; border-radius: 3px; font-size: 10px; font-weight: bold;"
|
|
372
|
-
>
|
|
373
|
-
NEW
|
|
374
|
-
</span>
|
|
375
|
-
</div>
|
|
376
|
-
</div>
|
|
377
|
-
</DocumentFragment>
|
|
378
|
-
`;
|
|
@@ -7,8 +7,6 @@ exports.propTypes = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
|
|
10
|
-
var _propTypes2 = _interopRequireDefault(require("@zohodesk/layout/es/Flex/props/propTypes"));
|
|
11
|
-
|
|
12
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
11
|
|
|
14
12
|
var propTypes = {
|
|
@@ -23,15 +21,10 @@ var propTypes = {
|
|
|
23
21
|
title: _propTypes["default"].string,
|
|
24
22
|
type: _propTypes["default"].oneOf(['title', 'subtitle']),
|
|
25
23
|
variant: _propTypes["default"].oneOf(['primary', 'default']),
|
|
26
|
-
customProps: _propTypes["default"].shape({
|
|
27
|
-
containerProps: _propTypes["default"].exact(_propTypes2["default"]),
|
|
28
|
-
rightPlaceholderNodeProps: _propTypes["default"].exact(_propTypes2["default"])
|
|
29
|
-
}),
|
|
30
24
|
customClass: _propTypes["default"].string,
|
|
31
25
|
a11y: _propTypes["default"].shape({
|
|
32
26
|
tabIndex: _propTypes["default"].string
|
|
33
27
|
}),
|
|
34
|
-
id: _propTypes["default"].string
|
|
35
|
-
renderRightPlaceholderNode: _propTypes["default"].oneOfType([_propTypes["default"].node, _propTypes["default"].func])
|
|
28
|
+
id: _propTypes["default"].string
|
|
36
29
|
};
|
|
37
30
|
exports.propTypes = propTypes;
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
.more {
|
|
197
197
|
font-size: var(--zd_font_size14) ;
|
|
198
198
|
color: var(--zdt_multiselect_more_text);
|
|
199
|
-
font-
|
|
199
|
+
font-weight: var(--zd-fw-normal);
|
|
200
200
|
cursor: pointer;
|
|
201
201
|
margin-top: var(--zd_size5) ;
|
|
202
202
|
background-color: var(--zdt_multiselect_delete_bg);
|