@carrier-dpx/air-react-library 0.7.1 → 0.7.2

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.1",
3
+ "version": "0.7.2",
4
4
  "description": "Air web React component library for Figma Make",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -71,11 +71,11 @@ figma.connect(
71
71
  /**
72
72
  * EXAMPLE CODE TEMPLATE
73
73
  * Shows how Tooltip should be used
74
- * Note: Tooltip wraps children, so children should be passed as ReactNode
74
+ * Note: Tooltip wraps children - in actual usage, wrap the target element
75
75
  */
76
- example: ({ title, color, placement, arrow, children }) => (
76
+ example: ({ title, color, placement, arrow }) => (
77
77
  <Tooltip title={title.label} color={color} placement={placement} arrow={arrow}>
78
- {children}
78
+ <span>Hover me</span>
79
79
  </Tooltip>
80
80
  ),
81
81
  }
package/src/index.ts CHANGED
@@ -23,3 +23,23 @@ export { default as BottomNavigationAction } from "./components/BottomNavigation
23
23
  export type { BottomNavigationProps } from "./components/BottomNavigation";
24
24
  export type { BottomNavigationActionProps } from "./components/BottomNavigation/BottomNavigationAction";
25
25
  export * from "./components/theme";
26
+
27
+ // Demo Icons - exported from main index to avoid deep-path imports
28
+ export {
29
+ HomeIcon,
30
+ DeviceManagerIcon,
31
+ SiteIcon,
32
+ WarningTriangle,
33
+ SvgIcon,
34
+ iconRegistry,
35
+ getIcon,
36
+ getIconNames,
37
+ } from "./components/Icon/icons/demo";
38
+ export type {
39
+ HomeIconProps,
40
+ DeviceManagerIconProps,
41
+ SiteIconProps,
42
+ WarningTriangleProps,
43
+ SvgIconProps,
44
+ IconInfo,
45
+ } from "./components/Icon/icons/demo";