@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.esm.js CHANGED
@@ -6474,7 +6474,7 @@ var BoxWrapper = styled(function (_ref) {
6474
6474
  }).withConfig({
6475
6475
  displayName: "Boxstyled__BoxWrapper",
6476
6476
  componentId: "sc-1f9ij0d-0"
6477
- })(["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) {
6477
+ })(["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) {
6478
6478
  var padding = _ref2.padding;
6479
6479
  return padding;
6480
6480
  }, function (_ref3) {
@@ -6529,13 +6529,17 @@ var BoxWrapper = styled(function (_ref) {
6529
6529
  as = _ref17.as;
6530
6530
  return css(["", " ", ""], disabledStyles, as === "button" ? " > * > span {\n ".concat(disabledStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
6531
6531
  }, function (_ref18) {
6532
- var color = _ref18.color;
6533
- return color;
6532
+ var disabledStyles = _ref18.disabledStyles,
6533
+ as = _ref18.as;
6534
+ return css(["", " ", ""], disabledStyles, as === "button" ? " > * > span {\n ".concat(disabledStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
6534
6535
  }, function (_ref19) {
6535
- var hiddenStyles = _ref19.hiddenStyles;
6536
- return hiddenStyles && css(["display:none;"]);
6536
+ var color = _ref19.color;
6537
+ return color;
6537
6538
  }, function (_ref20) {
6538
- var extraStyles = _ref20.extraStyles;
6539
+ var hiddenStyles = _ref20.hiddenStyles;
6540
+ return hiddenStyles && css(["display:none;"]);
6541
+ }, function (_ref21) {
6542
+ var extraStyles = _ref21.extraStyles;
6539
6543
  return css(["", ""], extraStyles);
6540
6544
  });
6541
6545
  /* eslint-enable no-unused-vars */
@@ -12876,7 +12880,7 @@ var SpinnerIcon = function SpinnerIcon(_ref3) {
12876
12880
  }))))));
12877
12881
  };
12878
12882
 
12879
- var _excluded$h = ["action", "variant", "text", "textWrap", "isLoading", "loadingColor", "dataQa", "textExtraStyles", "contentOverride", "extraStyles", "tabIndex", "children", "extraDisabledStyles"];
12883
+ var _excluded$h = ["action", "variant", "text", "textWrap", "isLoading", "disabled", "loadingColor", "dataQa", "textExtraStyles", "contentOverride", "extraStyles", "tabIndex", "children", "extraDisabledStyles"];
12880
12884
  var rotate$1 = posed.div({
12881
12885
  fixed: {
12882
12886
  rotate: "0deg"
@@ -12939,6 +12943,8 @@ var ButtonWithAction = /*#__PURE__*/forwardRef(function (_ref2, ref) {
12939
12943
  textWrap = _ref2$textWrap === void 0 ? false : _ref2$textWrap,
12940
12944
  _ref2$isLoading = _ref2.isLoading,
12941
12945
  isLoading = _ref2$isLoading === void 0 ? false : _ref2$isLoading,
12946
+ _ref2$disabled = _ref2.disabled,
12947
+ disabled = _ref2$disabled === void 0 ? false : _ref2$disabled,
12942
12948
  _ref2$loadingColor = _ref2.loadingColor,
12943
12949
  loadingColor = _ref2$loadingColor === void 0 ? "white" : _ref2$loadingColor,
12944
12950
  _ref2$dataQa = _ref2.dataQa,
@@ -12970,8 +12976,9 @@ var ButtonWithAction = /*#__PURE__*/forwardRef(function (_ref2, ref) {
12970
12976
  hoverStyles: hoverStyles,
12971
12977
  activeStyles: activeStyles,
12972
12978
  disabledStyles: disabledStyles,
12979
+ "aria-disabled": disabled,
12973
12980
  as: "button",
12974
- onClick: isLoading ? undefined : action,
12981
+ onClick: isLoading || disabled ? undefined : action,
12975
12982
  borderRadius: "2px",
12976
12983
  theme: themeContext,
12977
12984
  extraStyles: "margin: 0.5rem; ".concat(extraStyles),
@@ -21820,6 +21827,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
21820
21827
  extraStyles: "".concat(linkExtraStyles, " text-decoration: none; &:hover {\n text-decoration: none; }"),
21821
21828
  dataQa: dataQa
21822
21829
  }, /*#__PURE__*/React.createElement(ButtonWithAction, _extends({}, otherProps, {
21830
+ disabled: disabled,
21823
21831
  extraStyles: extraStyles
21824
21832
  })));
21825
21833
  };
@@ -22146,7 +22154,7 @@ var ENTER = 13;
22146
22154
  var ESCAPE = 27;
22147
22155
  var SPACEBAR = 32;
22148
22156
 
22149
- var CheckboxContainer = styled.span.withConfig({
22157
+ var CheckboxContainer = styled.div.withConfig({
22150
22158
  displayName: "Checkbox__CheckboxContainer",
22151
22159
  componentId: "sc-36kqbv-0"
22152
22160
  })(["display:inline-block;vertical-align:middle;"]);
@@ -26138,7 +26146,11 @@ var FormInput = function FormInput(_ref15) {
26138
26146
  weight: themeValues.fontWeight,
26139
26147
  extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
26140
26148
  id: createIdFromString(labelTextWhenNoError)
26141
- }, labelTextWhenNoError), helperModal()) : /*#__PURE__*/React.createElement(Box, {
26149
+ }, labelTextWhenNoError), /*#__PURE__*/React.createElement(Text$1, {
26150
+ color: themeValues.linkColor,
26151
+ variant: "pS",
26152
+ weight: themeValues.fontWeight
26153
+ }, helperModal())) : /*#__PURE__*/React.createElement(Box, {
26142
26154
  padding: "0",
26143
26155
  minWidth: "100%"
26144
26156
  }, /*#__PURE__*/React.createElement(Cluster, {