@payfit/unity-icons 3.29.59 → 3.29.61

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 CHANGED
@@ -60,7 +60,12 @@ You can also use the `Icon` component from `@payfit/unity-components` to render
60
60
  import { Icon } from '@payfit/unity-components'
61
61
 
62
62
  function MyComponent() {
63
- return <Icon src="Icon1" size={20} />
63
+ return (
64
+ <Icon
65
+ src="Icon1"
66
+ size={20}
67
+ />
68
+ )
64
69
  }
65
70
  ```
66
71
 
@@ -73,7 +78,14 @@ The `IconSprite` component accepts all the props of an SVG element.
73
78
  import { IconSprite } from '@payfit/unity-icons'
74
79
 
75
80
  function MyComponent() {
76
- return <IconSprite src="AirplaneFilled" width="32" height="32" fill="#000" />
81
+ return (
82
+ <IconSprite
83
+ src="AirplaneFilled"
84
+ width="32"
85
+ height="32"
86
+ fill="#000"
87
+ />
88
+ )
77
89
  }
78
90
  ```
79
91
 
@@ -1,5 +1,5 @@
1
- import { VariantProps } from '@payfit/unity-themes';
2
1
  import { HTMLAttributes } from 'react';
2
+ import { VariantProps } from '@payfit/unity-themes';
3
3
  import { UnityIcon } from '../../generated/index.js';
4
4
  declare const icon: import('tailwind-variants').TVReturnType<{
5
5
  size: {
@@ -15,7 +15,7 @@ interface UnityIconsProviderProps {
15
15
  /**
16
16
  * The `UnityIconsProvider` component is a context provider that ensures the Unity icon sprite sheet is loaded before rendering any icons, and exactly once for the current tree.
17
17
  */
18
- export declare function UnityIconsProvider({ children, onError, fallback, }: UnityIconsProviderProps): import('react/jsx-runtime').JSX.Element;
18
+ export declare function UnityIconsProvider({ children, onError, fallback }: UnityIconsProviderProps): import('react/jsx-runtime').JSX.Element;
19
19
  export declare namespace UnityIconsProvider {
20
20
  var displayName: string;
21
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payfit/unity-icons",
3
- "version": "3.29.59",
3
+ "version": "3.29.61",
4
4
  "files": [
5
5
  "dist",
6
6
  "skills",
@@ -42,7 +42,7 @@
42
42
  "./package.json": "./package.json"
43
43
  },
44
44
  "dependencies": {
45
- "@payfit/unity-themes": "3.29.59",
45
+ "@payfit/unity-themes": "3.29.61",
46
46
  "react": "18.3.1",
47
47
  "react-dom": "18.3.1"
48
48
  },
@@ -27,7 +27,10 @@ jq '.icons[] | select(.baseName | test("search|glass"; "i"))' \
27
27
 
28
28
  ```tsx
29
29
  import { Icon } from '@payfit/unity-icons'
30
- ;<Icon src="MagnifyingGlassOutlined" size={20} />
30
+ ;<Icon
31
+ src="MagnifyingGlassOutlined"
32
+ size={20}
33
+ />
31
34
  ```
32
35
 
33
36
  Do not guess lowercase or kebab-case names, and do not cast arbitrary strings to `UnityIcon`; both bypass the typed sprite-id guard and can render an empty SVG.