@dloizides/ui-forms 1.44.0 → 1.44.1

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
@@ -1805,7 +1805,10 @@ var ACTIVATION_KEYS = ["Enter", " ", "Spacebar"];
1805
1805
  var HINT_FONT_SIZE2 = 12;
1806
1806
  var BOX_SIZE = 20;
1807
1807
  var BOX_RADIUS = 5;
1808
- var CHECK_FONT_SIZE = 14;
1808
+ var TICK_WIDTH = 6;
1809
+ var TICK_HEIGHT = 10;
1810
+ var TICK_STROKE = 2;
1811
+ var TICK_LIFT = -2;
1809
1812
  var DISABLED_OPACITY = 0.5;
1810
1813
  var FOCUS_RING_WIDTH = 2;
1811
1814
  var WEB_NO_DEFAULT_OUTLINE = { outlineStyle: "none" };
@@ -1843,10 +1846,13 @@ var styles15 = StyleSheet.create({
1843
1846
  borderWidth: FOCUS_RING_WIDTH,
1844
1847
  borderRadius: BOX_RADIUS - FOCUS_RING_INSET
1845
1848
  },
1846
- check: {
1847
- fontSize: CHECK_FONT_SIZE,
1848
- fontWeight: "700",
1849
- lineHeight: CHECK_FONT_SIZE
1849
+ tick: {
1850
+ width: TICK_WIDTH,
1851
+ height: TICK_HEIGHT,
1852
+ marginTop: TICK_LIFT,
1853
+ borderRightWidth: TICK_STROKE,
1854
+ borderBottomWidth: TICK_STROKE,
1855
+ transform: [{ rotate: "45deg" }]
1850
1856
  },
1851
1857
  textColumn: {
1852
1858
  flex: 1
@@ -1926,7 +1932,7 @@ var FormCheckbox = ({
1926
1932
  children: [
1927
1933
  /* @__PURE__ */ jsxs(View, { style: [styles15.box, value ? themeStyles.boxOn : themeStyles.boxOff], testID: `${testID}-box`, children: [
1928
1934
  focused ? /* @__PURE__ */ jsx(View, { pointerEvents: "none", style: [styles15.focusRing, themeStyles.ring], testID: `${testID}-focus-ring` }) : null,
1929
- value ? /* @__PURE__ */ jsx(Text, { style: [styles15.check, { color: colors.surface }], accessibilityElementsHidden: true, children: "\u2713" }) : null
1935
+ value ? /* @__PURE__ */ jsx(View, { accessibilityElementsHidden: true, pointerEvents: "none", style: [styles15.tick, { borderColor: colors.surface }], testID: `${testID}-tick` }) : null
1930
1936
  ] }),
1931
1937
  /* @__PURE__ */ jsxs(View, { style: styles15.textColumn, children: [
1932
1938
  /* @__PURE__ */ jsx(Text, { style: [styles15.label, themeStyles.label], children: label }),