@carrier-dpx/air-react-library 0.7.21 → 0.7.23

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": "@carrier-dpx/air-react-library",
3
- "version": "0.7.21",
3
+ "version": "0.7.23",
4
4
  "description": "Air web React component library for Figma Make",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Figma Code Connect Configuration for Avatar Component
3
3
  *
4
- * Figma URL: https://www.figma.com/design/vkoHdM6rchIhH9IWetZeP0/Air--Components?node-id=6587-47403
4
+ * Figma URL: https://www.figma.com/design/vkoHdM6rchIhH9IWetZeP0/Air--Components?node-id=40377-292
5
5
  *
6
6
  * Figma Properties:
7
7
  * - variant (circle, rounded)
@@ -16,7 +16,7 @@ import Icon from "../Icon";
16
16
 
17
17
  figma.connect(
18
18
  Avatar,
19
- "https://www.figma.com/design/vkoHdM6rchIhH9IWetZeP0/Air--Components?node-id=6587-47403",
19
+ "https://www.figma.com/design/vkoHdM6rchIhH9IWetZeP0/Air--Components?node-id=40377-292",
20
20
  {
21
21
  props: {
22
22
  /**
@@ -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, src, icon }) => {
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}