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