@carrier-dpx/air-react-library 0.7.12 → 0.7.14
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
|
@@ -52,32 +52,21 @@ figma.connect(
|
|
|
52
52
|
* Maps Figma's "elevation" boolean property to React's "elevation" prop
|
|
53
53
|
*/
|
|
54
54
|
elevation: figma.boolean("elevation"),
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* POSITION
|
|
58
|
-
* AppBar position prop
|
|
59
|
-
*/
|
|
60
|
-
position: figma.enum("position", {
|
|
61
|
-
static: "static",
|
|
62
|
-
fixed: "fixed",
|
|
63
|
-
absolute: "absolute",
|
|
64
|
-
sticky: "sticky",
|
|
65
|
-
relative: "relative",
|
|
66
|
-
}),
|
|
67
55
|
},
|
|
68
56
|
|
|
69
57
|
/**
|
|
70
58
|
* CODE EXAMPLE TEMPLATE
|
|
71
59
|
*
|
|
72
60
|
* Shows how AppBar should be used with Toolbar and content
|
|
61
|
+
* Note: position is set to "static" by default (not mapped from Figma)
|
|
73
62
|
*/
|
|
74
|
-
example: ({ size, color, divider, elevation
|
|
63
|
+
example: ({ size, color, divider, elevation }) => (
|
|
75
64
|
<AppBar
|
|
76
65
|
size={size}
|
|
77
66
|
color={color}
|
|
78
67
|
divider={divider}
|
|
79
68
|
elevation={elevation}
|
|
80
|
-
position=
|
|
69
|
+
position="static"
|
|
81
70
|
>
|
|
82
71
|
<Toolbar>
|
|
83
72
|
<IconButton
|