@carrier-dpx/air-react-library 0.7.21 → 0.7.22
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
|
@@ -63,13 +63,6 @@ figma.connect(
|
|
|
63
63
|
*/
|
|
64
64
|
letter: figma.string("✏️ Letter"),
|
|
65
65
|
|
|
66
|
-
/**
|
|
67
|
-
* IMAGE SOURCE
|
|
68
|
-
* Maps image source when type="image"
|
|
69
|
-
* Note: This would need to be mapped from Figma's image fill property
|
|
70
|
-
*/
|
|
71
|
-
src: figma.string("Image"),
|
|
72
|
-
|
|
73
66
|
/**
|
|
74
67
|
* ICON NESTED PROPERTIES
|
|
75
68
|
* Access Icon's fontSize and SVG through nested properties
|
|
@@ -90,13 +83,7 @@ figma.connect(
|
|
|
90
83
|
* EXAMPLE CODE TEMPLATE
|
|
91
84
|
* Shows how Avatar should be used based on type
|
|
92
85
|
*/
|
|
93
|
-
example: ({ variant, size, type, letter,
|
|
94
|
-
if (type === "image") {
|
|
95
|
-
return (
|
|
96
|
-
<Avatar variant={variant} size={size} src={src} />
|
|
97
|
-
);
|
|
98
|
-
}
|
|
99
|
-
|
|
86
|
+
example: ({ variant, size, type, letter, icon }) => {
|
|
100
87
|
if (type === "icon") {
|
|
101
88
|
return (
|
|
102
89
|
<Avatar variant={variant} size={size}>
|
|
@@ -107,7 +94,7 @@ figma.connect(
|
|
|
107
94
|
);
|
|
108
95
|
}
|
|
109
96
|
|
|
110
|
-
// Default to letter type
|
|
97
|
+
// Default to letter type (or image if src is provided via sx)
|
|
111
98
|
return (
|
|
112
99
|
<Avatar variant={variant} size={size}>
|
|
113
100
|
{letter}
|