@indico-data/design-system 2.45.3 → 2.45.4

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": "@indico-data/design-system",
3
- "version": "2.45.3",
3
+ "version": "2.45.4",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "lib/index.js",
@@ -15,19 +15,19 @@ export const Icon = ({ name, size = 'md', className, ariaLabel, ...props }: Icon
15
15
  );
16
16
 
17
17
  const faIconName = name.split('fa-')[1];
18
- const faIcon =
19
- faIconName &&
20
- findIconDefinition({
21
- prefix: 'fas',
22
- iconName: faIconName as FAIconName,
23
- });
24
- const icon =
25
- faIcon ||
26
- findIconDefinition({
27
- prefix: 'fak',
28
- // @ts-ignore
29
- iconName: name,
30
- });
18
+
19
+ // If the icon name starts with 'fa-', it's a Font Awesome icon
20
+ // Otherwise, search for an indicon (registered under Font Awesome with a prefix of 'fak')
21
+ const icon = faIconName
22
+ ? findIconDefinition({
23
+ prefix: 'fas',
24
+ iconName: faIconName as FAIconName,
25
+ })
26
+ : findIconDefinition({
27
+ prefix: 'fak',
28
+ // @ts-ignore
29
+ iconName: name,
30
+ });
31
31
 
32
32
  if (!icon) {
33
33
  console.error(
@@ -753,8 +753,8 @@ const indicons = {
753
753
  </svg>
754
754
  ),
755
755
  url: (
756
- <svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 50 50">
757
- <path d="M22 33.1h-8q-3.85 0-6.475-2.625T4.9 24t2.625-6.475T14 14.9h8v2.3h-8q-2.9 0-4.85 1.95T7.2 24t1.95 4.85T14 30.8h8zm-5.3-7.95v-2.3h14.65v2.3zM26 33.1v-2.3h8q2.9 0 4.85-1.95T40.8 24t-1.95-4.85T34 17.2h-8v-2.3h8q3.85 0 6.475 2.625T43.1 24t-2.625 6.475T34 33.1z" />
756
+ <svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 100 100">
757
+ <path d="M 44.2376 70.4481 h -20.8177 q -10.0185 0 -16.8493 -6.8308 T -0.2602 46.768 t 6.8308 -16.8493 T 23.4199 23.0879 h 20.8177 v 5.9851 h -20.8177 q -7.5464 0 -12.6207 5.0743 T 5.7249 46.768 t 5.0743 12.6207 T 23.4199 64.4631 h 20.8177 z m -13.7917 -20.6876 v -5.9851 h 38.1224 v 5.9851 z M 54.6465 70.4481 v -5.9851 h 20.8177 q 7.5464 0 12.6207 -5.0743 T 93.1592 46.768 t -5.0743 -12.6207 T 75.4642 29.073 h -20.8177 v -5.9851 h 20.8177 q 10.0185 0 16.8493 6.8308 T 99.1443 46.768 t -6.8308 16.8493 T 75.4642 70.4481 z" />
758
758
  </svg>
759
759
  ),
760
760
  user: (