x-star-design 0.0.81 → 0.0.83
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/dist/status-tag/index.js
CHANGED
|
@@ -67,7 +67,8 @@ var StatusTag = function StatusTag(_ref) {
|
|
|
67
67
|
backgroundColor: required ? '#FFF2F0' : '',
|
|
68
68
|
icon: /*#__PURE__*/React.createElement("img", {
|
|
69
69
|
src: required ? wrongSVG : wrongOptionalSVG,
|
|
70
|
-
alt: ""
|
|
70
|
+
alt: "",
|
|
71
|
+
"data-testid": 'wrong-status-icon'
|
|
71
72
|
})
|
|
72
73
|
}], ['pending', {
|
|
73
74
|
color: '#FC7D33',
|
|
@@ -92,10 +93,10 @@ var StatusTag = function StatusTag(_ref) {
|
|
|
92
93
|
onClick: onClick,
|
|
93
94
|
onMouseEnter: handleMouseEnter,
|
|
94
95
|
onMouseLeave: handleMouseLeave
|
|
95
|
-
}, statusCSSMap !== null && statusCSSMap !== void 0 && (_statusCSSMap$get = statusCSSMap.get(status)) !== null && _statusCSSMap$get !== void 0 && _statusCSSMap$get.icon ? hover ? showContent ? children : statusCSSMap === null || statusCSSMap === void 0 ? void 0 : (_statusCSSMap$get2 = statusCSSMap.get(status)) === null || _statusCSSMap$get2 === void 0 ? void 0 : _statusCSSMap$get2.icon : statusCSSMap === null || statusCSSMap === void 0 ? void 0 : (_statusCSSMap$get3 = statusCSSMap.get(status)) === null || _statusCSSMap$get3 === void 0 ? void 0 : _statusCSSMap$get3.icon : children, required && /*#__PURE__*/React.createElement("img", {
|
|
96
|
-
"data-testid": '
|
|
96
|
+
}, statusCSSMap !== null && statusCSSMap !== void 0 && (_statusCSSMap$get = statusCSSMap.get(status)) !== null && _statusCSSMap$get !== void 0 && _statusCSSMap$get.icon ? hover ? showContent ? children : statusCSSMap === null || statusCSSMap === void 0 ? void 0 : (_statusCSSMap$get2 = statusCSSMap.get(status)) === null || _statusCSSMap$get2 === void 0 ? void 0 : _statusCSSMap$get2.icon : statusCSSMap === null || statusCSSMap === void 0 ? void 0 : (_statusCSSMap$get3 = statusCSSMap.get(status)) === null || _statusCSSMap$get3 === void 0 ? void 0 : _statusCSSMap$get3.icon : children, !required && /*#__PURE__*/React.createElement("img", {
|
|
97
|
+
"data-testid": 'optional-icon',
|
|
97
98
|
src: diamondSVG,
|
|
98
|
-
className: classNames("".concat(prefix, "-
|
|
99
|
+
className: classNames("".concat(prefix, "-optional"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefix, "-circleOptional"), shape === 'circle'), _defineProperty(_classNames, "".concat(prefix, "-rectOptional"), shape !== 'circle'), _classNames))
|
|
99
100
|
}));
|
|
100
101
|
};
|
|
101
102
|
export default StatusTag;
|
package/dist/styles/index.css
CHANGED
|
@@ -478,16 +478,16 @@
|
|
|
478
478
|
width: 1rem;
|
|
479
479
|
height: 1rem;
|
|
480
480
|
}
|
|
481
|
-
.x-star-design-statusTag .x-star-design-
|
|
481
|
+
.x-star-design-statusTag .x-star-design-optional {
|
|
482
482
|
position: absolute;
|
|
483
483
|
width: 0.8rem;
|
|
484
484
|
height: 0.8rem;
|
|
485
485
|
}
|
|
486
|
-
.x-star-design-statusTag .x-star-design-
|
|
486
|
+
.x-star-design-statusTag .x-star-design-circleOptional {
|
|
487
487
|
top: -3px;
|
|
488
488
|
right: -3px;
|
|
489
489
|
}
|
|
490
|
-
.x-star-design-statusTag .x-star-design-
|
|
490
|
+
.x-star-design-statusTag .x-star-design-rectOptional {
|
|
491
491
|
top: -5px;
|
|
492
492
|
right: -5px;
|
|
493
493
|
}
|