@butternutbox/pawprint-native 0.15.2 → 0.16.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.
@@ -7,12 +7,12 @@
7
7
  CJS Build start
8
8
  ESM Build start
9
9
  DTS Build start
10
- ESM dist/index.js 502.93 KB
11
- ESM dist/index.js.map 1.02 MB
12
- ESM ⚡️ Build success in 7939ms
13
- CJS dist/index.cjs 532.57 KB
10
+ CJS dist/index.cjs 533.53 KB
14
11
  CJS dist/index.cjs.map 1.02 MB
15
- CJS ⚡️ Build success in 7939ms
16
- DTS ⚡️ Build success in 22135ms
17
- DTS dist/index.d.cts 98.88 KB
18
- DTS dist/index.d.ts 98.88 KB
12
+ CJS ⚡️ Build success in 7997ms
13
+ ESM dist/index.js 503.89 KB
14
+ ESM dist/index.js.map 1.02 MB
15
+ ESM ⚡️ Build success in 7998ms
16
+ DTS ⚡️ Build success in 22782ms
17
+ DTS dist/index.d.cts 99.79 KB
18
+ DTS dist/index.d.ts 99.79 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @butternutbox/pawprint-native
2
2
 
3
+ ## 0.16.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 1223ab7: `NumberField`: render the large field's `inlineHelpText` at the secondary-content
8
+ size (`body.medium.md`, 16px) instead of the shared input description size
9
+ (`body.medium.sm`, 14px), matching the design-system spec. Small fields are
10
+ unchanged (`body.medium.sm`).
11
+
12
+ ## 0.16.0
13
+
14
+ ### Minor Changes
15
+
16
+ - 12b7c84: add alignment prop for illustration
17
+
3
18
  ## 0.15.2
4
19
 
5
20
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -1325,32 +1325,60 @@ var IconButton = React66__default.default.forwardRef(
1325
1325
  );
1326
1326
  IconButton.displayName = "IconButton";
1327
1327
  var parseTokenValue11 = (value) => parseFloat(value);
1328
- var StyledRoot2 = styled51__default.default(reactNative.View)(({ illustrationHeight }) => ({
1329
- alignItems: "center",
1330
- justifyContent: "center",
1331
- flexShrink: 0,
1332
- height: illustrationHeight
1333
- }));
1328
+ var StyledRoot2 = styled51__default.default(reactNative.View)(({ illustrationHeight, flexboxProps }) => {
1329
+ var _a, _b;
1330
+ return {
1331
+ alignItems: (_a = flexboxProps.align) != null ? _a : "center",
1332
+ justifyContent: (_b = flexboxProps.justify) != null ? _b : "center",
1333
+ flexDirection: flexboxProps.flexDirection,
1334
+ flexWrap: flexboxProps.flexWrap,
1335
+ alignContent: flexboxProps.alignContent,
1336
+ alignSelf: flexboxProps.alignSelf,
1337
+ flexShrink: 0,
1338
+ height: illustrationHeight
1339
+ };
1340
+ });
1334
1341
  var Illustration = React66__default.default.forwardRef(
1335
1342
  (_a, ref) => {
1336
1343
  var _b = _a, {
1337
1344
  illustration: IllustrationComponent,
1338
1345
  size = "sm",
1346
+ align,
1347
+ justify,
1348
+ flexDirection,
1349
+ flexWrap,
1350
+ alignContent,
1351
+ alignSelf,
1339
1352
  "aria-label": ariaLabel
1340
1353
  } = _b, rest = __objRest(_b, [
1341
1354
  "illustration",
1342
1355
  "size",
1356
+ "align",
1357
+ "justify",
1358
+ "flexDirection",
1359
+ "flexWrap",
1360
+ "alignContent",
1361
+ "alignSelf",
1343
1362
  "aria-label"
1344
1363
  ]);
1345
1364
  const theme2 = react.useTheme();
1346
1365
  const dimension = parseTokenValue11(
1347
1366
  theme2.tokens.components.illustrations.sizing.illustrations[size]
1348
1367
  );
1368
+ const flexboxProps = {
1369
+ align,
1370
+ justify,
1371
+ flexDirection,
1372
+ flexWrap,
1373
+ alignContent,
1374
+ alignSelf
1375
+ };
1349
1376
  return /* @__PURE__ */ jsxRuntime.jsx(
1350
1377
  StyledRoot2,
1351
1378
  __spreadProps(__spreadValues({
1352
1379
  ref,
1353
1380
  illustrationHeight: dimension,
1381
+ flexboxProps,
1354
1382
  accessibilityRole: ariaLabel ? "image" : void 0,
1355
1383
  accessibilityLabel: ariaLabel,
1356
1384
  accessible: !!ariaLabel
@@ -7129,7 +7157,11 @@ var NumberFieldInput = React66__default.default.forwardRef(
7129
7157
  style: {
7130
7158
  position: "absolute",
7131
7159
  bottom: 4,
7132
- width: fieldMinWidth,
7160
+ // Span the full field (not the min-width) so the help text
7161
+ // centres and never wraps into the value when the field is
7162
+ // wider than its min-width (e.g. fullWidth) or the copy is long.
7163
+ left: 0,
7164
+ right: 0,
7133
7165
  display: "flex",
7134
7166
  justifyContent: "center",
7135
7167
  alignItems: "center"
@@ -7137,7 +7169,7 @@ var NumberFieldInput = React66__default.default.forwardRef(
7137
7169
  children: /* @__PURE__ */ jsxRuntime.jsx(
7138
7170
  Typography,
7139
7171
  {
7140
- token: inputTokens3.description.text.default,
7172
+ token: isLarge ? tokens3.typography.large.secondaryContent : tokens3.typography.small.smallLabel,
7141
7173
  color: inputTokens3.colour.description.default,
7142
7174
  children: inlineHelpText
7143
7175
  }