@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/README.md +7 -1
- package/lib/index.esm.js +7 -6
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +7 -6
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/icons/Icon.tsx +13 -13
- package/src/components/icons/indicons.tsx +2 -2
package/package.json
CHANGED
|
@@ -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
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
findIconDefinition({
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
|
757
|
-
<path d="
|
|
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: (
|