@butternutbox/pawprint-native 0.10.10 → 0.10.11

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.
@@ -7,12 +7,12 @@
7
7
  CJS Build start
8
8
  ESM Build start
9
9
  DTS Build start
10
- ESM dist/index.js 1.72 MB
11
- ESM dist/index.js.map 2.70 MB
12
- ESM ⚡️ Build success in 11267ms
13
10
  CJS dist/index.cjs 1.80 MB
14
11
  CJS dist/index.cjs.map 2.70 MB
15
- CJS ⚡️ Build success in 11267ms
16
- DTS ⚡️ Build success in 22659ms
12
+ CJS ⚡️ Build success in 11449ms
13
+ ESM dist/index.js 1.73 MB
14
+ ESM dist/index.js.map 2.70 MB
15
+ ESM ⚡️ Build success in 11453ms
16
+ DTS ⚡️ Build success in 22526ms
17
17
  DTS dist/index.d.cts 91.44 KB
18
18
  DTS dist/index.d.ts 91.44 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @butternutbox/pawprint-native
2
2
 
3
+ ## 0.10.11
4
+
5
+ ### Patch Changes
6
+
7
+ - 27bbcb5: NumberField: center the label, small label and description/error copy over the
8
+ input on native.
9
+
10
+ Previously the label and help text were left-aligned across the full width of
11
+ the root, so they drifted away from the input group (which packs to the left
12
+ when not `fullWidth`). The copy now centers over the field: the root centers its
13
+ children when not `fullWidth`, and the label/help text use centered text so they
14
+ stay centered over the input in `fullWidth` mode too. Matches the Figma design.
15
+
3
16
  ## 0.10.10
4
17
 
5
18
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -10574,7 +10574,7 @@ NumberFieldInput.displayName = "NumberField.Input";
10574
10574
  var parseTokenValue35 = (value) => parseFloat(value);
10575
10575
  var StyledRoot10 = styled50__default.default(reactNative.View)(({ rootGap, fullWidth }) => __spreadValues({
10576
10576
  gap: rootGap
10577
- }, fullWidth && { width: "100%" }));
10577
+ }, fullWidth ? { width: "100%" } : { alignItems: "center" }));
10578
10578
  var StyledLabelGroup = styled50__default.default(reactNative.View)(({ labelGap }) => ({
10579
10579
  gap: labelGap
10580
10580
  }));
@@ -10638,6 +10638,7 @@ var NumberField = React65__default.default.forwardRef(
10638
10638
  {
10639
10639
  token: typoTokens.label,
10640
10640
  color: tokens3.colour.text.label,
10641
+ align: "center",
10641
10642
  children: label
10642
10643
  }
10643
10644
  ),
@@ -10646,6 +10647,7 @@ var NumberField = React65__default.default.forwardRef(
10646
10647
  {
10647
10648
  token: typoTokens.smallLabel,
10648
10649
  color: tokens3.colour.text.description,
10650
+ align: "center",
10649
10651
  children: smallLabel
10650
10652
  }
10651
10653
  )
@@ -10675,6 +10677,7 @@ var NumberField = React65__default.default.forwardRef(
10675
10677
  {
10676
10678
  token: size === "lg" ? tokens3.typography.large.secondaryContent : tokens3.typography.small.smallLabel,
10677
10679
  color: tokens3.colour.text.description,
10680
+ align: "center",
10678
10681
  children: description
10679
10682
  }
10680
10683
  ),
@@ -10683,6 +10686,7 @@ var NumberField = React65__default.default.forwardRef(
10683
10686
  {
10684
10687
  token: size === "lg" ? tokens3.typography.large.secondaryContent : tokens3.typography.small.smallLabel,
10685
10688
  color: theme2.tokens.components.inputs.colour.description.error,
10689
+ align: "center",
10686
10690
  children: error
10687
10691
  }
10688
10692
  )