@thecb/components 6.0.0 → 6.0.3-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
@@ -6145,6 +6145,8 @@ var checkDeniedCards = function checkDeniedCards(name) {
6145
6145
  */
6146
6146
 
6147
6147
  var screenReaderOnlyStyle = "\n position: absolute;\n left: -10000px;\n top: auto;\n width: 1px;\n height: 1px;\n overflow: hidden;\n";
6148
+ var inputPlaceholderTextStyle = "\n ::-webkit-input-placeholder {\n color: ".concat(CHARADE_GREY, ";\n }\n ::-moz-placeholder {\n color: ").concat(CHARADE_GREY, ";\n }\n ::-ms-placeholder {\n color: ").concat(CHARADE_GREY, ";\n }\n ::placeholder {\n color: ").concat(CHARADE_GREY, ";\n }\n");
6149
+ var inputDisabledStyle = "\n color: #6e727e;\n background-color: #f7f7f7;\n pointer-events: none;\n";
6148
6150
 
6149
6151
  var general = /*#__PURE__*/Object.freeze({
6150
6152
  __proto__: null,
@@ -6157,7 +6159,9 @@ var general = /*#__PURE__*/Object.freeze({
6157
6159
  checkCardBrand: checkCardBrand,
6158
6160
  displayCardBrand: displayCardBrand,
6159
6161
  checkDeniedCards: checkDeniedCards,
6160
- screenReaderOnlyStyle: screenReaderOnlyStyle
6162
+ screenReaderOnlyStyle: screenReaderOnlyStyle,
6163
+ inputPlaceholderTextStyle: inputPlaceholderTextStyle,
6164
+ inputDisabledStyle: inputDisabledStyle
6161
6165
  });
6162
6166
 
6163
6167
  var _excluded$1 = ["themeValues", "weight", "color", "textWrap", "extraStyles", "hoverStyles", "onClick", "onKeyPress", "as", "dataQa", "children"];
@@ -20969,7 +20973,7 @@ var Dropdown = function Dropdown(_ref8) {
20969
20973
  borderRadius: "2px",
20970
20974
  borderSize: "1px",
20971
20975
  borderColor: isError ? ERROR_COLOR : isOpen ? themeValues.selectedColor : GREY_CHATEAU,
20972
- extraStyles: disabled && "color: #6e727e;\n background-color: #f7f7f7;\n pointer-events: none;",
20976
+ extraStyles: disabled ? "".concat(inputPlaceholderTextStyle).concat(inputDisabledStyle) : inputPlaceholderTextStyle,
20973
20977
  hoverStyles: "background-color: ".concat(themeValues.hoverColor, ";"),
20974
20978
  isOpen: isOpen,
20975
20979
  minHeight: "48px",
@@ -37264,7 +37268,10 @@ var HighlightTabRow = function HighlightTabRow(_ref) {
37264
37268
  boxShadow: "0px 0px 4px 0px rgb(110, 114, 126)",
37265
37269
  role: "region",
37266
37270
  "aria-label": "Payment step"
37267
- }, /*#__PURE__*/React__default.createElement(Center, {
37271
+ }, /*#__PURE__*/React__default.createElement(Box, {
37272
+ srOnly: true,
37273
+ padding: "0"
37274
+ }, /*#__PURE__*/React__default.createElement(Text$1, null, "Current step: ".concat(tabs[highlightIndex]))), /*#__PURE__*/React__default.createElement(Center, {
37268
37275
  maxWidth: "76.5rem"
37269
37276
  }, /*#__PURE__*/React__default.createElement(Reel, {
37270
37277
  padding: "0",
@@ -43037,7 +43044,8 @@ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
43037
43044
  borderRadius: "3px",
43038
43045
  extraStyles: "overflow: scroll; max-height: 20rem;"
43039
43046
  }, /*#__PURE__*/React__default.createElement(Text$1, {
43040
- variant: "p"
43047
+ variant: "p",
43048
+ extraStyles: "& a { text-decoration: underline; }"
43041
43049
  }, terms)),
43042
43050
  defaultWrapper: false,
43043
43051
  onlyCloseButton: !acceptText,