@dloizides/ui-forms 1.18.1 → 1.18.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/CHANGELOG.md +10 -0
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1267,6 +1267,12 @@ var styles6 = StyleSheet.create({
|
|
|
1267
1267
|
// `hitSlop`, so a pointer target smaller than the floor cannot be widened any other way.
|
|
1268
1268
|
minHeight: MIN_TOUCH_TARGET_PX
|
|
1269
1269
|
},
|
|
1270
|
+
switchSlot: {
|
|
1271
|
+
minWidth: MIN_TOUCH_TARGET_PX,
|
|
1272
|
+
minHeight: MIN_TOUCH_TARGET_PX,
|
|
1273
|
+
alignItems: "center",
|
|
1274
|
+
justifyContent: "center"
|
|
1275
|
+
},
|
|
1270
1276
|
textColumn: {
|
|
1271
1277
|
flex: 1
|
|
1272
1278
|
},
|
|
@@ -1320,7 +1326,7 @@ var FormSwitch = ({
|
|
|
1320
1326
|
/* @__PURE__ */ jsx(Text, { style: [styles6.label, themeStyles.label], children: label }),
|
|
1321
1327
|
hasDescription ? /* @__PURE__ */ jsx(Text, { style: [styles6.description, themeStyles.description], children: description }) : null
|
|
1322
1328
|
] }),
|
|
1323
|
-
/* @__PURE__ */ jsx(View, { pointerEvents: "none", children: /* @__PURE__ */ jsx(
|
|
1329
|
+
/* @__PURE__ */ jsx(View, { pointerEvents: "none", style: styles6.switchSlot, testID: `${testID}-hitbox`, children: /* @__PURE__ */ jsx(
|
|
1324
1330
|
Switch,
|
|
1325
1331
|
{
|
|
1326
1332
|
accessibilityHint: accessibilityHint ?? label,
|