@thecb/components 12.0.4 → 12.0.5-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,12 @@ 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
+ ariaHidden = _ref.ariaHidden;
14079
14083
  return /*#__PURE__*/React__default.createElement("svg", {
14080
14084
  width: "22px",
14081
14085
  height: "22px",
@@ -14086,7 +14090,8 @@ var AccountsIconSmall = function AccountsIconSmall(_ref) {
14086
14090
  style: {
14087
14091
  display: "inline-block",
14088
14092
  verticalAlign: "text-bottom"
14089
- }
14093
+ },
14094
+ "aria-hidden": ariaHidden ? "true" : undefined
14090
14095
  }, /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("rect", {
14091
14096
  id: "path-1-accountssmall",
14092
14097
  x: "0",
@@ -14253,8 +14258,12 @@ var ProfileIconSmall = function ProfileIconSmall(_ref) {
14253
14258
  };
14254
14259
  var ProfileIconSmall$1 = themeComponent(ProfileIconSmall, "Icons", fallbackValues$2, "primary");
14255
14260
 
14261
+ // When ariaHidden is true, aria-hidden="true" is added to the SVG, which tells
14262
+ // screen readers to skip this element. Use this when the icon is purely decorative
14263
+ // and adjacent text already conveys its meaning (e.g. an icon inside a labeled nav link).
14256
14264
  var SettingsIconSmall = function SettingsIconSmall(_ref) {
14257
- var themeValues = _ref.themeValues;
14265
+ var themeValues = _ref.themeValues,
14266
+ ariaHidden = _ref.ariaHidden;
14258
14267
  return /*#__PURE__*/React__default.createElement("svg", {
14259
14268
  width: "22px",
14260
14269
  height: "22px",
@@ -14265,7 +14274,8 @@ var SettingsIconSmall = function SettingsIconSmall(_ref) {
14265
14274
  style: {
14266
14275
  display: "inline-block",
14267
14276
  verticalAlign: "text-bottom"
14268
- }
14277
+ },
14278
+ "aria-hidden": ariaHidden ? "true" : undefined
14269
14279
  }, /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("rect", {
14270
14280
  id: "path-1-paymentssmall",
14271
14281
  x: "0",
@@ -14303,17 +14313,22 @@ var SettingsIconSmall = function SettingsIconSmall(_ref) {
14303
14313
  };
14304
14314
  var SettingsIconSmall$1 = themeComponent(SettingsIconSmall, "Icons", fallbackValues$2, "primary");
14305
14315
 
14316
+ // When ariaHidden is true, aria-hidden="true" is added to the SVG, which tells
14317
+ // screen readers to skip this element. Use this when the icon is purely decorative
14318
+ // and adjacent text already conveys its meaning (e.g. an icon inside a labeled nav link).
14306
14319
  var WalletIconSmall = function WalletIconSmall(_ref) {
14307
14320
  var themeValues = _ref.themeValues,
14308
14321
  _ref$iconIndex = _ref.iconIndex,
14309
14322
  iconIndex = _ref$iconIndex === void 0 ? 0 : _ref$iconIndex,
14310
- colorOverride = _ref.colorOverride;
14323
+ colorOverride = _ref.colorOverride,
14324
+ ariaHidden = _ref.ariaHidden;
14311
14325
  return /*#__PURE__*/React__default.createElement("svg", {
14312
14326
  width: "20",
14313
14327
  height: "20",
14314
14328
  viewBox: "0 0 20 20",
14315
14329
  fill: "none",
14316
- xmlns: "http://www.w3.org/2000/svg"
14330
+ xmlns: "http://www.w3.org/2000/svg",
14331
+ "aria-hidden": ariaHidden ? "true" : undefined
14317
14332
  }, /*#__PURE__*/React__default.createElement("path", {
14318
14333
  fillRule: "evenodd",
14319
14334
  clipRule: "evenodd",
@@ -14453,8 +14468,12 @@ var PropertiesAddIcon = function PropertiesAddIcon(_ref) {
14453
14468
  };
14454
14469
  var PropertiesAddIcon$1 = themeComponent(PropertiesAddIcon, "Icons", fallbackValues$2, "info");
14455
14470
 
14471
+ // When ariaHidden is true, aria-hidden="true" is added to the SVG, which tells
14472
+ // screen readers to skip this element. Use this when the icon is purely decorative
14473
+ // and adjacent text already conveys its meaning (e.g. an icon inside a labeled nav link).
14456
14474
  var PropertiesIconSmall = function PropertiesIconSmall(_ref) {
14457
- var themeValues = _ref.themeValues;
14475
+ var themeValues = _ref.themeValues,
14476
+ ariaHidden = _ref.ariaHidden;
14458
14477
  return /*#__PURE__*/React__default.createElement("svg", {
14459
14478
  xmlns: "http://www.w3.org/2000/svg",
14460
14479
  width: "22px",
@@ -14465,7 +14484,8 @@ var PropertiesIconSmall = function PropertiesIconSmall(_ref) {
14465
14484
  style: {
14466
14485
  display: "inline-block",
14467
14486
  verticalAlign: "text-bottom"
14468
- }
14487
+ },
14488
+ "aria-hidden": ariaHidden ? "true" : undefined
14469
14489
  }, /*#__PURE__*/React__default.createElement("g", {
14470
14490
  fill: "none",
14471
14491
  fillRule: "evenodd",
@@ -17231,17 +17251,22 @@ var CashieringImage = function CashieringImage() {
17231
17251
  })));
17232
17252
  };
17233
17253
 
17254
+ // When ariaHidden is true, aria-hidden="true" is added to the SVG, which tells
17255
+ // screen readers to skip this element. Use this when the icon is purely decorative
17256
+ // and adjacent text already conveys its meaning (e.g. an icon inside a labeled nav link).
17234
17257
  var FindIconSmall = function FindIconSmall(_ref) {
17235
17258
  var themeValues = _ref.themeValues,
17236
17259
  _ref$iconIndex = _ref.iconIndex,
17237
- iconIndex = _ref$iconIndex === void 0 ? 0 : _ref$iconIndex;
17260
+ iconIndex = _ref$iconIndex === void 0 ? 0 : _ref$iconIndex,
17261
+ ariaHidden = _ref.ariaHidden;
17238
17262
  var maskId = "find-icon-mask-".concat(iconIndex);
17239
17263
  return /*#__PURE__*/React__default.createElement("svg", {
17240
17264
  width: "20",
17241
17265
  height: "20",
17242
17266
  viewBox: "0 0 20 20",
17243
17267
  fill: "none",
17244
- xmlns: "http://www.w3.org/2000/svg"
17268
+ xmlns: "http://www.w3.org/2000/svg",
17269
+ "aria-hidden": ariaHidden ? "true" : undefined
17245
17270
  }, /*#__PURE__*/React__default.createElement("path", {
17246
17271
  fillRule: "evenodd",
17247
17272
  clipRule: "evenodd",
@@ -17272,14 +17297,19 @@ var FindIconSmall = function FindIconSmall(_ref) {
17272
17297
  };
17273
17298
  var FindIconSmall$1 = themeComponent(FindIconSmall, "Icons", fallbackValues$2, "primary");
17274
17299
 
17300
+ // When ariaHidden is true, aria-hidden="true" is added to the SVG, which tells
17301
+ // screen readers to skip this element. Use this when the icon is purely decorative
17302
+ // and adjacent text already conveys its meaning (e.g. an icon inside a labeled nav link).
17275
17303
  var HistoryIconSmall = function HistoryIconSmall(_ref) {
17276
- var themeValues = _ref.themeValues;
17304
+ var themeValues = _ref.themeValues,
17305
+ ariaHidden = _ref.ariaHidden;
17277
17306
  return /*#__PURE__*/React__default.createElement("svg", {
17278
17307
  width: "20",
17279
17308
  height: "20",
17280
17309
  viewBox: "0 0 20 20",
17281
17310
  fill: "none",
17282
- xmlns: "http://www.w3.org/2000/svg"
17311
+ xmlns: "http://www.w3.org/2000/svg",
17312
+ "aria-hidden": ariaHidden ? "true" : undefined
17283
17313
  }, /*#__PURE__*/React__default.createElement("path", {
17284
17314
  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
17315
  fill: themeValues.singleIconColor