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