@thecb/components 10.1.0-beta.0 → 10.1.1-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 +22 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +22 -10
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/button-with-action/ButtonWithAction.js +3 -1
- package/src/components/atoms/button-with-action/ButtonWithAction.stories.js +4 -1
- package/src/components/atoms/button-with-link/ButtonWithLink.js +5 -1
- package/src/components/atoms/checkbox/Checkbox.js +1 -1
- package/src/components/atoms/form-layouts/FormInput.js +7 -1
- package/src/components/atoms/layouts/Box.styled.js +15 -0
package/dist/index.cjs.js
CHANGED
|
@@ -6482,7 +6482,7 @@ var BoxWrapper = styled__default(function (_ref) {
|
|
|
6482
6482
|
}).withConfig({
|
|
6483
6483
|
displayName: "Boxstyled__BoxWrapper",
|
|
6484
6484
|
componentId: "sc-1f9ij0d-0"
|
|
6485
|
-
})(["position:relative;box-sizing:border-box;padding:", ";border:", ";box-shadow:", ";background-color:", ";min-height:", ";", " min-width:", ";max-width:", ";color:", ";border-radius:", ";border-width:", ";text-align:", ";&:hover{", "}&:focus{", "}&:active{", "}&:disabled{", "}& *{color:", ";}", " ", ""], function (_ref2) {
|
|
6485
|
+
})(["position:relative;box-sizing:border-box;padding:", ";border:", ";box-shadow:", ";background-color:", ";min-height:", ";", " min-width:", ";max-width:", ";color:", ";border-radius:", ";border-width:", ";text-align:", ";&:hover{", "}&:focus{", "}&:active{", "}&:disabled{", "}&[aria-disabled=\"true\"]{", "}& *{color:", ";}", " ", ""], function (_ref2) {
|
|
6486
6486
|
var padding = _ref2.padding;
|
|
6487
6487
|
return padding;
|
|
6488
6488
|
}, function (_ref3) {
|
|
@@ -6537,13 +6537,17 @@ var BoxWrapper = styled__default(function (_ref) {
|
|
|
6537
6537
|
as = _ref17.as;
|
|
6538
6538
|
return styled.css(["", " ", ""], disabledStyles, as === "button" ? " > * > span {\n ".concat(disabledStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
|
|
6539
6539
|
}, function (_ref18) {
|
|
6540
|
-
var
|
|
6541
|
-
|
|
6540
|
+
var disabledStyles = _ref18.disabledStyles,
|
|
6541
|
+
as = _ref18.as;
|
|
6542
|
+
return styled.css(["", " ", ""], disabledStyles, as === "button" ? " > * > span {\n ".concat(disabledStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
|
|
6542
6543
|
}, function (_ref19) {
|
|
6543
|
-
var
|
|
6544
|
-
return
|
|
6544
|
+
var color = _ref19.color;
|
|
6545
|
+
return color;
|
|
6545
6546
|
}, function (_ref20) {
|
|
6546
|
-
var
|
|
6547
|
+
var hiddenStyles = _ref20.hiddenStyles;
|
|
6548
|
+
return hiddenStyles && styled.css(["display:none;"]);
|
|
6549
|
+
}, function (_ref21) {
|
|
6550
|
+
var extraStyles = _ref21.extraStyles;
|
|
6547
6551
|
return styled.css(["", ""], extraStyles);
|
|
6548
6552
|
});
|
|
6549
6553
|
/* eslint-enable no-unused-vars */
|
|
@@ -12884,7 +12888,7 @@ var SpinnerIcon = function SpinnerIcon(_ref3) {
|
|
|
12884
12888
|
}))))));
|
|
12885
12889
|
};
|
|
12886
12890
|
|
|
12887
|
-
var _excluded$h = ["action", "variant", "text", "textWrap", "isLoading", "loadingColor", "dataQa", "textExtraStyles", "contentOverride", "extraStyles", "tabIndex", "children", "extraDisabledStyles"];
|
|
12891
|
+
var _excluded$h = ["action", "variant", "text", "textWrap", "isLoading", "disabled", "loadingColor", "dataQa", "textExtraStyles", "contentOverride", "extraStyles", "tabIndex", "children", "extraDisabledStyles"];
|
|
12888
12892
|
var rotate$1 = posed.div({
|
|
12889
12893
|
fixed: {
|
|
12890
12894
|
rotate: "0deg"
|
|
@@ -12947,6 +12951,8 @@ var ButtonWithAction = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
12947
12951
|
textWrap = _ref2$textWrap === void 0 ? false : _ref2$textWrap,
|
|
12948
12952
|
_ref2$isLoading = _ref2.isLoading,
|
|
12949
12953
|
isLoading = _ref2$isLoading === void 0 ? false : _ref2$isLoading,
|
|
12954
|
+
_ref2$disabled = _ref2.disabled,
|
|
12955
|
+
disabled = _ref2$disabled === void 0 ? false : _ref2$disabled,
|
|
12950
12956
|
_ref2$loadingColor = _ref2.loadingColor,
|
|
12951
12957
|
loadingColor = _ref2$loadingColor === void 0 ? "white" : _ref2$loadingColor,
|
|
12952
12958
|
_ref2$dataQa = _ref2.dataQa,
|
|
@@ -12978,8 +12984,9 @@ var ButtonWithAction = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
12978
12984
|
hoverStyles: hoverStyles,
|
|
12979
12985
|
activeStyles: activeStyles,
|
|
12980
12986
|
disabledStyles: disabledStyles,
|
|
12987
|
+
"aria-disabled": disabled,
|
|
12981
12988
|
as: "button",
|
|
12982
|
-
onClick: isLoading ? undefined : action,
|
|
12989
|
+
onClick: isLoading || disabled ? undefined : action,
|
|
12983
12990
|
borderRadius: "2px",
|
|
12984
12991
|
theme: themeContext,
|
|
12985
12992
|
extraStyles: "margin: 0.5rem; ".concat(extraStyles),
|
|
@@ -21828,6 +21835,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
|
21828
21835
|
extraStyles: "".concat(linkExtraStyles, " text-decoration: none; &:hover {\n text-decoration: none; }"),
|
|
21829
21836
|
dataQa: dataQa
|
|
21830
21837
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, _extends({}, otherProps, {
|
|
21838
|
+
disabled: disabled,
|
|
21831
21839
|
extraStyles: extraStyles
|
|
21832
21840
|
})));
|
|
21833
21841
|
};
|
|
@@ -22154,7 +22162,7 @@ var ENTER = 13;
|
|
|
22154
22162
|
var ESCAPE = 27;
|
|
22155
22163
|
var SPACEBAR = 32;
|
|
22156
22164
|
|
|
22157
|
-
var CheckboxContainer = styled__default.
|
|
22165
|
+
var CheckboxContainer = styled__default.div.withConfig({
|
|
22158
22166
|
displayName: "Checkbox__CheckboxContainer",
|
|
22159
22167
|
componentId: "sc-36kqbv-0"
|
|
22160
22168
|
})(["display:inline-block;vertical-align:middle;"]);
|
|
@@ -26146,7 +26154,11 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26146
26154
|
weight: themeValues.fontWeight,
|
|
26147
26155
|
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
|
|
26148
26156
|
id: createIdFromString(labelTextWhenNoError)
|
|
26149
|
-
}, labelTextWhenNoError),
|
|
26157
|
+
}, labelTextWhenNoError), /*#__PURE__*/React__default.createElement(Text$1, {
|
|
26158
|
+
color: themeValues.linkColor,
|
|
26159
|
+
variant: "pS",
|
|
26160
|
+
weight: themeValues.fontWeight
|
|
26161
|
+
}, helperModal())) : /*#__PURE__*/React__default.createElement(Box, {
|
|
26150
26162
|
padding: "0",
|
|
26151
26163
|
minWidth: "100%"
|
|
26152
26164
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|