@thecb/components 12.0.4 → 12.0.6-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
@@ -14074,8 +14074,13 @@ var PaymentMethodIcon = function PaymentMethodIcon(_ref) {
14074
14074
  };
14075
14075
  var PaymentMethodIcon$1 = themeComponent(PaymentMethodIcon, "Icons", fallbackValues$2, "info");
14076
14076
 
14077
+ // When ariaHidden is true, aria-hidden="true" is added to the SVG, which tells
14078
+ // screen readers to skip this element. Use this when the icon is purely decorative
14079
+ // and adjacent text already conveys its meaning (e.g. an icon inside a labeled nav link).
14077
14080
  var AccountsIconSmall = function AccountsIconSmall(_ref) {
14078
- var themeValues = _ref.themeValues;
14081
+ var themeValues = _ref.themeValues,
14082
+ _ref$ariaHidden = _ref.ariaHidden,
14083
+ ariaHidden = _ref$ariaHidden === void 0 ? true : _ref$ariaHidden;
14079
14084
  return /*#__PURE__*/React__default.createElement("svg", {
14080
14085
  width: "22px",
14081
14086
  height: "22px",
@@ -14086,7 +14091,8 @@ var AccountsIconSmall = function AccountsIconSmall(_ref) {
14086
14091
  style: {
14087
14092
  display: "inline-block",
14088
14093
  verticalAlign: "text-bottom"
14089
- }
14094
+ },
14095
+ "aria-hidden": ariaHidden ? "true" : undefined
14090
14096
  }, /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("rect", {
14091
14097
  id: "path-1-accountssmall",
14092
14098
  x: "0",
@@ -14253,8 +14259,13 @@ var ProfileIconSmall = function ProfileIconSmall(_ref) {
14253
14259
  };
14254
14260
  var ProfileIconSmall$1 = themeComponent(ProfileIconSmall, "Icons", fallbackValues$2, "primary");
14255
14261
 
14262
+ // When ariaHidden is true, aria-hidden="true" is added to the SVG, which tells
14263
+ // screen readers to skip this element. Use this when the icon is purely decorative
14264
+ // and adjacent text already conveys its meaning (e.g. an icon inside a labeled nav link).
14256
14265
  var SettingsIconSmall = function SettingsIconSmall(_ref) {
14257
- var themeValues = _ref.themeValues;
14266
+ var themeValues = _ref.themeValues,
14267
+ _ref$ariaHidden = _ref.ariaHidden,
14268
+ ariaHidden = _ref$ariaHidden === void 0 ? true : _ref$ariaHidden;
14258
14269
  return /*#__PURE__*/React__default.createElement("svg", {
14259
14270
  width: "22px",
14260
14271
  height: "22px",
@@ -14265,7 +14276,8 @@ var SettingsIconSmall = function SettingsIconSmall(_ref) {
14265
14276
  style: {
14266
14277
  display: "inline-block",
14267
14278
  verticalAlign: "text-bottom"
14268
- }
14279
+ },
14280
+ "aria-hidden": ariaHidden ? "true" : undefined
14269
14281
  }, /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("rect", {
14270
14282
  id: "path-1-paymentssmall",
14271
14283
  x: "0",
@@ -14303,17 +14315,23 @@ var SettingsIconSmall = function SettingsIconSmall(_ref) {
14303
14315
  };
14304
14316
  var SettingsIconSmall$1 = themeComponent(SettingsIconSmall, "Icons", fallbackValues$2, "primary");
14305
14317
 
14318
+ // When ariaHidden is true, aria-hidden="true" is added to the SVG, which tells
14319
+ // screen readers to skip this element. Use this when the icon is purely decorative
14320
+ // and adjacent text already conveys its meaning (e.g. an icon inside a labeled nav link).
14306
14321
  var WalletIconSmall = function WalletIconSmall(_ref) {
14307
14322
  var themeValues = _ref.themeValues,
14308
14323
  _ref$iconIndex = _ref.iconIndex,
14309
14324
  iconIndex = _ref$iconIndex === void 0 ? 0 : _ref$iconIndex,
14310
- colorOverride = _ref.colorOverride;
14325
+ colorOverride = _ref.colorOverride,
14326
+ _ref$ariaHidden = _ref.ariaHidden,
14327
+ ariaHidden = _ref$ariaHidden === void 0 ? true : _ref$ariaHidden;
14311
14328
  return /*#__PURE__*/React__default.createElement("svg", {
14312
14329
  width: "20",
14313
14330
  height: "20",
14314
14331
  viewBox: "0 0 20 20",
14315
14332
  fill: "none",
14316
- xmlns: "http://www.w3.org/2000/svg"
14333
+ xmlns: "http://www.w3.org/2000/svg",
14334
+ "aria-hidden": ariaHidden ? "true" : undefined
14317
14335
  }, /*#__PURE__*/React__default.createElement("path", {
14318
14336
  fillRule: "evenodd",
14319
14337
  clipRule: "evenodd",
@@ -14453,8 +14471,13 @@ var PropertiesAddIcon = function PropertiesAddIcon(_ref) {
14453
14471
  };
14454
14472
  var PropertiesAddIcon$1 = themeComponent(PropertiesAddIcon, "Icons", fallbackValues$2, "info");
14455
14473
 
14474
+ // When ariaHidden is true, aria-hidden="true" is added to the SVG, which tells
14475
+ // screen readers to skip this element. Use this when the icon is purely decorative
14476
+ // and adjacent text already conveys its meaning (e.g. an icon inside a labeled nav link).
14456
14477
  var PropertiesIconSmall = function PropertiesIconSmall(_ref) {
14457
- var themeValues = _ref.themeValues;
14478
+ var themeValues = _ref.themeValues,
14479
+ _ref$ariaHidden = _ref.ariaHidden,
14480
+ ariaHidden = _ref$ariaHidden === void 0 ? true : _ref$ariaHidden;
14458
14481
  return /*#__PURE__*/React__default.createElement("svg", {
14459
14482
  xmlns: "http://www.w3.org/2000/svg",
14460
14483
  width: "22px",
@@ -14465,7 +14488,8 @@ var PropertiesIconSmall = function PropertiesIconSmall(_ref) {
14465
14488
  style: {
14466
14489
  display: "inline-block",
14467
14490
  verticalAlign: "text-bottom"
14468
- }
14491
+ },
14492
+ "aria-hidden": ariaHidden ? "true" : undefined
14469
14493
  }, /*#__PURE__*/React__default.createElement("g", {
14470
14494
  fill: "none",
14471
14495
  fillRule: "evenodd",
@@ -17231,17 +17255,23 @@ var CashieringImage = function CashieringImage() {
17231
17255
  })));
17232
17256
  };
17233
17257
 
17258
+ // When ariaHidden is true, aria-hidden="true" is added to the SVG, which tells
17259
+ // screen readers to skip this element. Use this when the icon is purely decorative
17260
+ // and adjacent text already conveys its meaning (e.g. an icon inside a labeled nav link).
17234
17261
  var FindIconSmall = function FindIconSmall(_ref) {
17235
17262
  var themeValues = _ref.themeValues,
17236
17263
  _ref$iconIndex = _ref.iconIndex,
17237
- iconIndex = _ref$iconIndex === void 0 ? 0 : _ref$iconIndex;
17264
+ iconIndex = _ref$iconIndex === void 0 ? 0 : _ref$iconIndex,
17265
+ _ref$ariaHidden = _ref.ariaHidden,
17266
+ ariaHidden = _ref$ariaHidden === void 0 ? true : _ref$ariaHidden;
17238
17267
  var maskId = "find-icon-mask-".concat(iconIndex);
17239
17268
  return /*#__PURE__*/React__default.createElement("svg", {
17240
17269
  width: "20",
17241
17270
  height: "20",
17242
17271
  viewBox: "0 0 20 20",
17243
17272
  fill: "none",
17244
- xmlns: "http://www.w3.org/2000/svg"
17273
+ xmlns: "http://www.w3.org/2000/svg",
17274
+ "aria-hidden": ariaHidden ? "true" : undefined
17245
17275
  }, /*#__PURE__*/React__default.createElement("path", {
17246
17276
  fillRule: "evenodd",
17247
17277
  clipRule: "evenodd",
@@ -17272,14 +17302,20 @@ var FindIconSmall = function FindIconSmall(_ref) {
17272
17302
  };
17273
17303
  var FindIconSmall$1 = themeComponent(FindIconSmall, "Icons", fallbackValues$2, "primary");
17274
17304
 
17305
+ // When ariaHidden is true, aria-hidden="true" is added to the SVG, which tells
17306
+ // screen readers to skip this element. Use this when the icon is purely decorative
17307
+ // and adjacent text already conveys its meaning (e.g. an icon inside a labeled nav link).
17275
17308
  var HistoryIconSmall = function HistoryIconSmall(_ref) {
17276
- var themeValues = _ref.themeValues;
17309
+ var themeValues = _ref.themeValues,
17310
+ _ref$ariaHidden = _ref.ariaHidden,
17311
+ ariaHidden = _ref$ariaHidden === void 0 ? true : _ref$ariaHidden;
17277
17312
  return /*#__PURE__*/React__default.createElement("svg", {
17278
17313
  width: "20",
17279
17314
  height: "20",
17280
17315
  viewBox: "0 0 20 20",
17281
17316
  fill: "none",
17282
- xmlns: "http://www.w3.org/2000/svg"
17317
+ xmlns: "http://www.w3.org/2000/svg",
17318
+ "aria-hidden": ariaHidden ? "true" : undefined
17283
17319
  }, /*#__PURE__*/React__default.createElement("path", {
17284
17320
  d: "M3.33337 8.33333C3.33337 7.8731 3.70647 7.5 4.16671 7.5H15.8334C16.2936 7.5 16.6667 7.8731 16.6667 8.33333V16.6667C16.6667 17.1269 16.2936 17.5 15.8334 17.5H4.16671C3.70647 17.5 3.33337 17.1269 3.33337 16.6667V8.33333Z",
17285
17321
  fill: themeValues.singleIconColor