@carrier-dpx/air-react-library 0.7.32 → 0.7.33

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.32",
3
+ "version": "0.7.33",
4
4
  "description": "Air web React component library for Figma Make",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -113,11 +113,12 @@ figma.connect(
113
113
 
114
114
  // If label should be shown, wrap with FormControlLabel
115
115
  if (showLabel && label) {
116
+ const placement = labelPosition ? labelPosition : "end";
116
117
  return (
117
118
  <FormControlLabel
118
119
  control={checkbox}
119
120
  label={label}
120
- labelPlacement={labelPosition || "end"}
121
+ labelPlacement={placement}
121
122
  />
122
123
  );
123
124
  }
@@ -105,11 +105,12 @@ figma.connect(
105
105
 
106
106
  // If label should be shown, wrap with FormControlLabel
107
107
  if (showLabel && label) {
108
+ const placement = labelPosition ? labelPosition : "end";
108
109
  return (
109
110
  <FormControlLabel
110
111
  control={radio}
111
112
  label={label}
112
- labelPlacement={labelPosition || "end"}
113
+ labelPlacement={placement}
113
114
  />
114
115
  );
115
116
  }
@@ -105,11 +105,12 @@ figma.connect(
105
105
 
106
106
  // If label should be shown, wrap with FormControlLabel
107
107
  if (showLabel && label) {
108
+ const placement = labelPosition ? labelPosition : "end";
108
109
  return (
109
110
  <FormControlLabel
110
111
  control={switchComponent}
111
112
  label={label}
112
- labelPlacement={labelPosition || "end"}
113
+ labelPlacement={placement}
113
114
  />
114
115
  );
115
116
  }