@dloizides/ui-forms 1.39.0 → 1.40.0

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/dist/index.mjs CHANGED
@@ -1727,7 +1727,7 @@ var FormSwitch = ({
1727
1727
  onPress: toggle,
1728
1728
  style: [styles13.container, containerStyle],
1729
1729
  tabIndex: -1,
1730
- testID: `${testID}-row`,
1730
+ testID,
1731
1731
  children: [
1732
1732
  /* @__PURE__ */ jsxs(View, { style: styles13.textColumn, children: [
1733
1733
  /* @__PURE__ */ jsx(Text, { style: [styles13.label, themeStyles.label], children: label }),
@@ -1740,7 +1740,7 @@ var FormSwitch = ({
1740
1740
  accessibilityLabel: label,
1741
1741
  accessibilityState: { checked: value, disabled },
1742
1742
  disabled,
1743
- testID,
1743
+ testID: `${testID}-switch`,
1744
1744
  value,
1745
1745
  onValueChange
1746
1746
  }
@@ -4022,13 +4022,15 @@ var LINE_HEIGHT = 20;
4022
4022
  var COUNTER_FONT = 12;
4023
4023
  var BRANCH_OPACITY = 0.5;
4024
4024
  var GAP2 = 8;
4025
+ var INPUT_PAD_V2 = 13;
4025
4026
  var ghostStyles = StyleSheet.create({
4026
4027
  field: { flex: 1, justifyContent: "center", minHeight: LINE_HEIGHT },
4027
4028
  mono: { fontFamily: "monospace", fontSize: FONT_SIZE, lineHeight: LINE_HEIGHT },
4028
- layer: { position: "absolute", left: 0, top: 0, bottom: 0 },
4029
+ layer: { position: "absolute", left: 0, top: INPUT_PAD_V2, bottom: INPUT_PAD_V2 },
4029
4030
  hidden: { opacity: 0 },
4030
4031
  branch: { opacity: BRANCH_OPACITY },
4031
- input: { padding: 0, borderWidth: 0, minHeight: LINE_HEIGHT },
4032
+ input: { padding: 0, paddingVertical: INPUT_PAD_V2, borderWidth: 0, minHeight: LINE_HEIGHT },
4033
+ trigger: { paddingVertical: 0 },
4032
4034
  counter: { fontSize: COUNTER_FONT, marginLeft: GAP2 }
4033
4035
  });
4034
4036
 
@@ -4132,7 +4134,7 @@ function IbanInput({ value, onChange, onVerdict, accessibilityLabel, accessibili
4132
4134
  onLeft?.();
4133
4135
  }, [onLeave, onVerdict, value, onLeft]);
4134
4136
  return /* @__PURE__ */ jsxs(View, { children: [
4135
- /* @__PURE__ */ jsxs(View, { style: [controlStyles.selectTrigger, { borderColor: colors.border, backgroundColor: colors.surfaceElevated }], children: [
4137
+ /* @__PURE__ */ jsxs(View, { style: [controlStyles.selectTrigger, ghostStyles.trigger, { borderColor: colors.border, backgroundColor: colors.surfaceElevated }], children: [
4136
4138
  /* @__PURE__ */ jsxs(View, { style: ghostStyles.field, children: [
4137
4139
  /* @__PURE__ */ jsxs(Text, { "aria-hidden": true, style: [ghostStyles.mono, ghostStyles.layer], children: [
4138
4140
  /* @__PURE__ */ jsx(Text, { style: ghostStyles.hidden, children: draft.display }),
@@ -4216,7 +4218,7 @@ function BicInput({ value, onChange, onVerdict, accessibilityLabel, accessibilit
4216
4218
  onLeft?.();
4217
4219
  }, [onLeave, onVerdict, value, onLeft]);
4218
4220
  return /* @__PURE__ */ jsxs(View, { children: [
4219
- /* @__PURE__ */ jsx(View, { style: [controlStyles.selectTrigger, { borderColor: colors.border, backgroundColor: colors.surfaceElevated }], children: /* @__PURE__ */ jsxs(View, { style: ghostStyles.field, children: [
4221
+ /* @__PURE__ */ jsx(View, { style: [controlStyles.selectTrigger, ghostStyles.trigger, { borderColor: colors.border, backgroundColor: colors.surfaceElevated }], children: /* @__PURE__ */ jsxs(View, { style: ghostStyles.field, children: [
4220
4222
  /* @__PURE__ */ jsxs(Text, { "aria-hidden": true, style: [ghostStyles.mono, ghostStyles.layer], children: [
4221
4223
  /* @__PURE__ */ jsx(Text, { style: ghostStyles.hidden, children: draft.value }),
4222
4224
  /* @__PURE__ */ jsx(Text, { style: { color: colors.textSecondary }, children: draft.ghost }),