@thecb/components 12.0.5 → 12.0.6

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
@@ -14067,8 +14067,13 @@ var PaymentMethodIcon = function PaymentMethodIcon(_ref) {
14067
14067
  };
14068
14068
  var PaymentMethodIcon$1 = themeComponent(PaymentMethodIcon, "Icons", fallbackValues$2, "info");
14069
14069
 
14070
+ // When ariaHidden is true, aria-hidden="true" is added to the SVG, which tells
14071
+ // screen readers to skip this element. Use this when the icon is purely decorative
14072
+ // and adjacent text already conveys its meaning (e.g. an icon inside a labeled nav link).
14070
14073
  var AccountsIconSmall = function AccountsIconSmall(_ref) {
14071
- var themeValues = _ref.themeValues;
14074
+ var themeValues = _ref.themeValues,
14075
+ _ref$ariaHidden = _ref.ariaHidden,
14076
+ ariaHidden = _ref$ariaHidden === void 0 ? true : _ref$ariaHidden;
14072
14077
  return /*#__PURE__*/React__default.createElement("svg", {
14073
14078
  width: "22px",
14074
14079
  height: "22px",
@@ -14079,7 +14084,8 @@ var AccountsIconSmall = function AccountsIconSmall(_ref) {
14079
14084
  style: {
14080
14085
  display: "inline-block",
14081
14086
  verticalAlign: "text-bottom"
14082
- }
14087
+ },
14088
+ "aria-hidden": ariaHidden ? "true" : undefined
14083
14089
  }, /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("rect", {
14084
14090
  id: "path-1-accountssmall",
14085
14091
  x: "0",
@@ -14246,8 +14252,13 @@ var ProfileIconSmall = function ProfileIconSmall(_ref) {
14246
14252
  };
14247
14253
  var ProfileIconSmall$1 = themeComponent(ProfileIconSmall, "Icons", fallbackValues$2, "primary");
14248
14254
 
14255
+ // When ariaHidden is true, aria-hidden="true" is added to the SVG, which tells
14256
+ // screen readers to skip this element. Use this when the icon is purely decorative
14257
+ // and adjacent text already conveys its meaning (e.g. an icon inside a labeled nav link).
14249
14258
  var SettingsIconSmall = function SettingsIconSmall(_ref) {
14250
- var themeValues = _ref.themeValues;
14259
+ var themeValues = _ref.themeValues,
14260
+ _ref$ariaHidden = _ref.ariaHidden,
14261
+ ariaHidden = _ref$ariaHidden === void 0 ? true : _ref$ariaHidden;
14251
14262
  return /*#__PURE__*/React__default.createElement("svg", {
14252
14263
  width: "22px",
14253
14264
  height: "22px",
@@ -14258,7 +14269,8 @@ var SettingsIconSmall = function SettingsIconSmall(_ref) {
14258
14269
  style: {
14259
14270
  display: "inline-block",
14260
14271
  verticalAlign: "text-bottom"
14261
- }
14272
+ },
14273
+ "aria-hidden": ariaHidden ? "true" : undefined
14262
14274
  }, /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("rect", {
14263
14275
  id: "path-1-paymentssmall",
14264
14276
  x: "0",
@@ -14296,17 +14308,23 @@ var SettingsIconSmall = function SettingsIconSmall(_ref) {
14296
14308
  };
14297
14309
  var SettingsIconSmall$1 = themeComponent(SettingsIconSmall, "Icons", fallbackValues$2, "primary");
14298
14310
 
14311
+ // When ariaHidden is true, aria-hidden="true" is added to the SVG, which tells
14312
+ // screen readers to skip this element. Use this when the icon is purely decorative
14313
+ // and adjacent text already conveys its meaning (e.g. an icon inside a labeled nav link).
14299
14314
  var WalletIconSmall = function WalletIconSmall(_ref) {
14300
14315
  var themeValues = _ref.themeValues,
14301
14316
  _ref$iconIndex = _ref.iconIndex,
14302
14317
  iconIndex = _ref$iconIndex === void 0 ? 0 : _ref$iconIndex,
14303
- colorOverride = _ref.colorOverride;
14318
+ colorOverride = _ref.colorOverride,
14319
+ _ref$ariaHidden = _ref.ariaHidden,
14320
+ ariaHidden = _ref$ariaHidden === void 0 ? true : _ref$ariaHidden;
14304
14321
  return /*#__PURE__*/React__default.createElement("svg", {
14305
14322
  width: "20",
14306
14323
  height: "20",
14307
14324
  viewBox: "0 0 20 20",
14308
14325
  fill: "none",
14309
- xmlns: "http://www.w3.org/2000/svg"
14326
+ xmlns: "http://www.w3.org/2000/svg",
14327
+ "aria-hidden": ariaHidden ? "true" : undefined
14310
14328
  }, /*#__PURE__*/React__default.createElement("path", {
14311
14329
  fillRule: "evenodd",
14312
14330
  clipRule: "evenodd",
@@ -14446,8 +14464,13 @@ var PropertiesAddIcon = function PropertiesAddIcon(_ref) {
14446
14464
  };
14447
14465
  var PropertiesAddIcon$1 = themeComponent(PropertiesAddIcon, "Icons", fallbackValues$2, "info");
14448
14466
 
14467
+ // When ariaHidden is true, aria-hidden="true" is added to the SVG, which tells
14468
+ // screen readers to skip this element. Use this when the icon is purely decorative
14469
+ // and adjacent text already conveys its meaning (e.g. an icon inside a labeled nav link).
14449
14470
  var PropertiesIconSmall = function PropertiesIconSmall(_ref) {
14450
- var themeValues = _ref.themeValues;
14471
+ var themeValues = _ref.themeValues,
14472
+ _ref$ariaHidden = _ref.ariaHidden,
14473
+ ariaHidden = _ref$ariaHidden === void 0 ? true : _ref$ariaHidden;
14451
14474
  return /*#__PURE__*/React__default.createElement("svg", {
14452
14475
  xmlns: "http://www.w3.org/2000/svg",
14453
14476
  width: "22px",
@@ -14458,7 +14481,8 @@ var PropertiesIconSmall = function PropertiesIconSmall(_ref) {
14458
14481
  style: {
14459
14482
  display: "inline-block",
14460
14483
  verticalAlign: "text-bottom"
14461
- }
14484
+ },
14485
+ "aria-hidden": ariaHidden ? "true" : undefined
14462
14486
  }, /*#__PURE__*/React__default.createElement("g", {
14463
14487
  fill: "none",
14464
14488
  fillRule: "evenodd",
@@ -17224,17 +17248,23 @@ var CashieringImage = function CashieringImage() {
17224
17248
  })));
17225
17249
  };
17226
17250
 
17251
+ // When ariaHidden is true, aria-hidden="true" is added to the SVG, which tells
17252
+ // screen readers to skip this element. Use this when the icon is purely decorative
17253
+ // and adjacent text already conveys its meaning (e.g. an icon inside a labeled nav link).
17227
17254
  var FindIconSmall = function FindIconSmall(_ref) {
17228
17255
  var themeValues = _ref.themeValues,
17229
17256
  _ref$iconIndex = _ref.iconIndex,
17230
- iconIndex = _ref$iconIndex === void 0 ? 0 : _ref$iconIndex;
17257
+ iconIndex = _ref$iconIndex === void 0 ? 0 : _ref$iconIndex,
17258
+ _ref$ariaHidden = _ref.ariaHidden,
17259
+ ariaHidden = _ref$ariaHidden === void 0 ? true : _ref$ariaHidden;
17231
17260
  var maskId = "find-icon-mask-".concat(iconIndex);
17232
17261
  return /*#__PURE__*/React__default.createElement("svg", {
17233
17262
  width: "20",
17234
17263
  height: "20",
17235
17264
  viewBox: "0 0 20 20",
17236
17265
  fill: "none",
17237
- xmlns: "http://www.w3.org/2000/svg"
17266
+ xmlns: "http://www.w3.org/2000/svg",
17267
+ "aria-hidden": ariaHidden ? "true" : undefined
17238
17268
  }, /*#__PURE__*/React__default.createElement("path", {
17239
17269
  fillRule: "evenodd",
17240
17270
  clipRule: "evenodd",
@@ -17265,14 +17295,20 @@ var FindIconSmall = function FindIconSmall(_ref) {
17265
17295
  };
17266
17296
  var FindIconSmall$1 = themeComponent(FindIconSmall, "Icons", fallbackValues$2, "primary");
17267
17297
 
17298
+ // When ariaHidden is true, aria-hidden="true" is added to the SVG, which tells
17299
+ // screen readers to skip this element. Use this when the icon is purely decorative
17300
+ // and adjacent text already conveys its meaning (e.g. an icon inside a labeled nav link).
17268
17301
  var HistoryIconSmall = function HistoryIconSmall(_ref) {
17269
- var themeValues = _ref.themeValues;
17302
+ var themeValues = _ref.themeValues,
17303
+ _ref$ariaHidden = _ref.ariaHidden,
17304
+ ariaHidden = _ref$ariaHidden === void 0 ? true : _ref$ariaHidden;
17270
17305
  return /*#__PURE__*/React__default.createElement("svg", {
17271
17306
  width: "20",
17272
17307
  height: "20",
17273
17308
  viewBox: "0 0 20 20",
17274
17309
  fill: "none",
17275
- xmlns: "http://www.w3.org/2000/svg"
17310
+ xmlns: "http://www.w3.org/2000/svg",
17311
+ "aria-hidden": ariaHidden ? "true" : undefined
17276
17312
  }, /*#__PURE__*/React__default.createElement("path", {
17277
17313
  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",
17278
17314
  fill: themeValues.singleIconColor