@thecb/components 12.0.5-beta.0 → 12.0.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "12.0.5-beta.0",
3
+ "version": "12.0.5",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -2,10 +2,7 @@ import React from "react";
2
2
  import { fallbackValues } from "./Icons.theme";
3
3
  import { themeComponent } from "../../../util/themeUtils";
4
4
 
5
- // When ariaHidden is true, aria-hidden="true" is added to the SVG, which tells
6
- // screen readers to skip this element. Use this when the icon is purely decorative
7
- // and adjacent text already conveys its meaning (e.g. an icon inside a labeled nav link).
8
- const AccountsIconSmall = ({ themeValues, ariaHidden }) => {
5
+ const AccountsIconSmall = ({ themeValues }) => {
9
6
  return (
10
7
  <svg
11
8
  width="22px"
@@ -15,7 +12,6 @@ const AccountsIconSmall = ({ themeValues, ariaHidden }) => {
15
12
  xmlns="http://www.w3.org/2000/svg"
16
13
  xmlnsXlink="http://www.w3.org/1999/xlink"
17
14
  style={{ display: "inline-block", verticalAlign: "text-bottom" }}
18
- aria-hidden={ariaHidden ? "true" : undefined}
19
15
  >
20
16
  <defs>
21
17
  <rect
@@ -2,10 +2,7 @@ import React from "react";
2
2
  import { fallbackValues } from "./Icons.theme";
3
3
  import { themeComponent } from "../../../util/themeUtils";
4
4
 
5
- // When ariaHidden is true, aria-hidden="true" is added to the SVG, which tells
6
- // screen readers to skip this element. Use this when the icon is purely decorative
7
- // and adjacent text already conveys its meaning (e.g. an icon inside a labeled nav link).
8
- const FindIconSmall = ({ themeValues, iconIndex = 0, ariaHidden }) => {
5
+ const FindIconSmall = ({ themeValues, iconIndex = 0 }) => {
9
6
  const maskId = `find-icon-mask-${iconIndex}`;
10
7
  return (
11
8
  <svg
@@ -14,7 +11,6 @@ const FindIconSmall = ({ themeValues, iconIndex = 0, ariaHidden }) => {
14
11
  viewBox="0 0 20 20"
15
12
  fill="none"
16
13
  xmlns="http://www.w3.org/2000/svg"
17
- aria-hidden={ariaHidden ? "true" : undefined}
18
14
  >
19
15
  <path
20
16
  fillRule="evenodd"
@@ -10,6 +10,7 @@ const ForgotPasswordIcon = ({ themeValues }) => {
10
10
  width="100"
11
11
  height="100"
12
12
  viewBox="0 0 100 100"
13
+ aria-hidden="true"
13
14
  >
14
15
  <defs>
15
16
  <path id="prefix__a" d="M0 0h100v100H0z" />
@@ -2,10 +2,7 @@ import React from "react";
2
2
  import { fallbackValues } from "./Icons.theme";
3
3
  import { themeComponent } from "../../../util/themeUtils";
4
4
 
5
- // When ariaHidden is true, aria-hidden="true" is added to the SVG, which tells
6
- // screen readers to skip this element. Use this when the icon is purely decorative
7
- // and adjacent text already conveys its meaning (e.g. an icon inside a labeled nav link).
8
- const HistoryIconSmall = ({ themeValues, ariaHidden }) => {
5
+ const HistoryIconSmall = ({ themeValues }) => {
9
6
  return (
10
7
  <svg
11
8
  width="20"
@@ -13,7 +10,6 @@ const HistoryIconSmall = ({ themeValues, ariaHidden }) => {
13
10
  viewBox="0 0 20 20"
14
11
  fill="none"
15
12
  xmlns="http://www.w3.org/2000/svg"
16
- aria-hidden={ariaHidden ? "true" : undefined}
17
13
  >
18
14
  <path
19
15
  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"
@@ -2,10 +2,7 @@ import React from "react";
2
2
  import { fallbackValues } from "./Icons.theme";
3
3
  import { themeComponent } from "../../../util/themeUtils";
4
4
 
5
- // When ariaHidden is true, aria-hidden="true" is added to the SVG, which tells
6
- // screen readers to skip this element. Use this when the icon is purely decorative
7
- // and adjacent text already conveys its meaning (e.g. an icon inside a labeled nav link).
8
- const PropertiesIconSmall = ({ themeValues, ariaHidden }) => {
5
+ const PropertiesIconSmall = ({ themeValues }) => {
9
6
  return (
10
7
  <svg
11
8
  xmlns="http://www.w3.org/2000/svg"
@@ -15,7 +12,6 @@ const PropertiesIconSmall = ({ themeValues, ariaHidden }) => {
15
12
  version="1.1"
16
13
  xmlnsXlink="http://www.w3.org/1999/xlink"
17
14
  style={{ display: "inline-block", verticalAlign: "text-bottom" }}
18
- aria-hidden={ariaHidden ? "true" : undefined}
19
15
  >
20
16
  <g fill="none" fillRule="evenodd" stroke="none" strokeWidth="1">
21
17
  <path
@@ -2,10 +2,7 @@ import React from "react";
2
2
  import { fallbackValues } from "./Icons.theme";
3
3
  import { themeComponent } from "../../../util/themeUtils";
4
4
 
5
- // When ariaHidden is true, aria-hidden="true" is added to the SVG, which tells
6
- // screen readers to skip this element. Use this when the icon is purely decorative
7
- // and adjacent text already conveys its meaning (e.g. an icon inside a labeled nav link).
8
- const SettingsIconSmall = ({ themeValues, ariaHidden }) => {
5
+ const SettingsIconSmall = ({ themeValues }) => {
9
6
  return (
10
7
  <svg
11
8
  width="22px"
@@ -15,7 +12,6 @@ const SettingsIconSmall = ({ themeValues, ariaHidden }) => {
15
12
  xmlns="http://www.w3.org/2000/svg"
16
13
  xmlnsXlink="http://www.w3.org/1999/xlink"
17
14
  style={{ display: "inline-block", verticalAlign: "text-bottom" }}
18
- aria-hidden={ariaHidden ? "true" : undefined}
19
15
  >
20
16
  <defs>
21
17
  <rect
@@ -2,15 +2,7 @@ import React from "react";
2
2
  import { fallbackValues } from "./Icons.theme";
3
3
  import { themeComponent } from "../../../util/themeUtils";
4
4
 
5
- // When ariaHidden is true, aria-hidden="true" is added to the SVG, which tells
6
- // screen readers to skip this element. Use this when the icon is purely decorative
7
- // and adjacent text already conveys its meaning (e.g. an icon inside a labeled nav link).
8
- const WalletIconSmall = ({
9
- themeValues,
10
- iconIndex = 0,
11
- colorOverride,
12
- ariaHidden
13
- }) => {
5
+ const WalletIconSmall = ({ themeValues, iconIndex = 0, colorOverride }) => {
14
6
  return (
15
7
  <svg
16
8
  width="20"
@@ -18,7 +10,6 @@ const WalletIconSmall = ({
18
10
  viewBox="0 0 20 20"
19
11
  fill="none"
20
12
  xmlns="http://www.w3.org/2000/svg"
21
- aria-hidden={ariaHidden ? "true" : undefined}
22
13
  >
23
14
  <path
24
15
  fillRule="evenodd"