@thecb/components 9.1.5-beta.0 → 9.1.7-beta.0
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/index.cjs.js
CHANGED
|
@@ -23766,13 +23766,19 @@ var DropdownContentWrapper = styled__default.div.withConfig({
|
|
|
23766
23766
|
var DropdownItemWrapper = styled__default.li.withConfig({
|
|
23767
23767
|
displayName: "Dropdown__DropdownItemWrapper",
|
|
23768
23768
|
componentId: "sc-pn6m0h-2"
|
|
23769
|
-
})(["
|
|
23770
|
-
var
|
|
23771
|
-
themeValues = _ref4.themeValues;
|
|
23772
|
-
return selected ? themeValues.selectedColor : WHITE;
|
|
23773
|
-
}, function (_ref5) {
|
|
23774
|
-
var disabled = _ref5.disabled;
|
|
23769
|
+
})(["text-align:start;border-width:2px;border-color:transparent;box-shadow:none;padding:1rem;box-sizing:border-box;width:100%;list-style:none;cursor:", ";&:hover{border-color:themeValues.selectedColor;}&:focus{outline:none;border-color:themeValues.selectedColor;}"], function (_ref4) {
|
|
23770
|
+
var disabled = _ref4.disabled;
|
|
23775
23771
|
return disabled ? "default" : "pointer";
|
|
23772
|
+
}); // ${({ selected, themeValues }) =>
|
|
23773
|
+
// selected ? themeValues.selectedColor : TRANSPARENT};
|
|
23774
|
+
|
|
23775
|
+
var DropdownItemBorder = styled__default.div.withConfig({
|
|
23776
|
+
displayName: "Dropdown__DropdownItemBorder",
|
|
23777
|
+
componentId: "sc-pn6m0h-3"
|
|
23778
|
+
})(["background-color:", ";border-width:2px;border-color:white;width:100%;&:hover{background-color:", ";}&:focus{background-color:", ";outline:none;}"], function (_ref5) {
|
|
23779
|
+
var selected = _ref5.selected,
|
|
23780
|
+
themeValues = _ref5.themeValues;
|
|
23781
|
+
return selected ? themeValues.selectedColor : WHITE;
|
|
23776
23782
|
}, function (_ref6) {
|
|
23777
23783
|
var selected = _ref6.selected,
|
|
23778
23784
|
disabled = _ref6.disabled,
|
|
@@ -24133,11 +24139,13 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
24133
24139
|
onFocus: function onFocus() {
|
|
24134
24140
|
return setFocusedRef(optionRefs.current[i]);
|
|
24135
24141
|
}
|
|
24142
|
+
}, /*#__PURE__*/React__default.createElement(DropdownItemBorder, {
|
|
24143
|
+
selected: choice.value === value
|
|
24136
24144
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
24137
24145
|
variant: "p",
|
|
24138
24146
|
color: choice.value === value ? WHITE : disabledValues.includes(choice.value) ? STORM_GREY : MINESHAFT_GREY,
|
|
24139
|
-
extraStyles: "padding-left: 16px;\n
|
|
24140
|
-
}, choice.text));
|
|
24147
|
+
extraStyles: "padding-left: 16px;\n cursor: ".concat(disabledValues.includes(choice.value) ? "default" : "pointer", ";\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;")
|
|
24148
|
+
}, choice.text)));
|
|
24141
24149
|
}))) : /*#__PURE__*/React__default.createElement(React.Fragment, null)));
|
|
24142
24150
|
};
|
|
24143
24151
|
|
|
@@ -26682,7 +26690,7 @@ var LineItem = function LineItem(_ref) {
|
|
|
26682
26690
|
};
|
|
26683
26691
|
|
|
26684
26692
|
var visibleCustomAttrs = customAttributes === null || customAttributes === void 0 ? void 0 : (_customAttributes$fil = customAttributes.filter(function (attr) {
|
|
26685
|
-
return visibleFields.includes(attr.key) && attr.key !== "description";
|
|
26693
|
+
return (visibleFields === null || visibleFields === void 0 ? void 0 : visibleFields.includes(attr.key)) && attr.key !== "description";
|
|
26686
26694
|
})) === null || _customAttributes$fil === void 0 ? void 0 : _customAttributes$fil.map(function (attr) {
|
|
26687
26695
|
return /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
26688
26696
|
variant: "pS",
|