@butternutbox/pawprint-native 1.1.0 → 1.1.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.
@@ -7,12 +7,12 @@
7
7
  CJS Build start
8
8
  ESM Build start
9
9
  DTS Build start
10
- CJS dist/index.cjs 553.93 KB
11
- CJS dist/index.cjs.map 1.08 MB
12
- CJS ⚡️ Build success in 7609ms
13
- ESM dist/index.js 523.65 KB
10
+ ESM dist/index.js 523.89 KB
14
11
  ESM dist/index.js.map 1.08 MB
15
- ESM ⚡️ Build success in 7611ms
16
- DTS ⚡️ Build success in 20912ms
17
- DTS dist/index.d.cts 104.52 KB
18
- DTS dist/index.d.ts 104.52 KB
12
+ ESM ⚡️ Build success in 7667ms
13
+ CJS dist/index.cjs 554.16 KB
14
+ CJS dist/index.cjs.map 1.08 MB
15
+ CJS ⚡️ Build success in 7668ms
16
+ DTS ⚡️ Build success in 20184ms
17
+ DTS dist/index.d.cts 104.30 KB
18
+ DTS dist/index.d.ts 104.30 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @butternutbox/pawprint-native
2
2
 
3
+ ## 1.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 603a9a2: `SegmentedControl`: stop the intrinsic track flashing at full height on mount.
8
+
9
+ The track's magenta clip had no height of its own — it took whatever the horizontal `ScrollView` inside it measured, and that only settles after `onLayout` and `onContentSizeChange` have fired, i.e. after the first paint. On mount the first painted frame showed the track stretched down the whole available height before snapping back to one row. The clip is now sized from the tokens it already renders with (`controlItem.size.small.height` plus `spacing.verticalPadding` top and bottom), so its height never depends on measurement.
10
+
11
+ ## 1.1.1
12
+
13
+ ### Patch Changes
14
+
15
+ - bcc53c6: unlink quantity picker visibility to thumbnail badge on product display card'
16
+
3
17
  ## 1.1.0
4
18
 
5
19
  ### Minor Changes
package/dist/index.cjs CHANGED
@@ -8392,8 +8392,9 @@ var StyledSegmentItem = styled51__default.default(reactNative.Pressable)(
8392
8392
  opacity: itemOpacity
8393
8393
  }, itemFlex !== void 0 ? { flex: itemFlex } : { flexShrink: 0 })
8394
8394
  );
8395
- var StyledIntrinsicClip = styled51__default.default(reactNative.View)(({ clipBorderRadius, clipBgColor, clipWidth }) => __spreadValues({
8395
+ var StyledIntrinsicClip = styled51__default.default(reactNative.View)(({ clipBorderRadius, clipBgColor, clipHeight, clipWidth }) => __spreadValues({
8396
8396
  overflow: "hidden",
8397
+ height: clipHeight,
8397
8398
  borderRadius: clipBorderRadius,
8398
8399
  backgroundColor: clipBgColor,
8399
8400
  alignSelf: "flex-start",
@@ -8523,10 +8524,12 @@ SegmentedControlItem.displayName = "SegmentedControl.Item";
8523
8524
  var IntrinsicTrack = (_a) => {
8524
8525
  var _b = _a, {
8525
8526
  containerProps,
8527
+ trackHeight,
8526
8528
  renderItems,
8527
8529
  forwardedRef
8528
8530
  } = _b, rest = __objRest(_b, [
8529
8531
  "containerProps",
8532
+ "trackHeight",
8530
8533
  "renderItems",
8531
8534
  "forwardedRef"
8532
8535
  ]);
@@ -8559,6 +8562,7 @@ var IntrinsicTrack = (_a) => {
8559
8562
  {
8560
8563
  clipBorderRadius: containerProps.containerBorderRadius,
8561
8564
  clipBgColor: containerProps.containerBgColor,
8565
+ clipHeight: trackHeight,
8562
8566
  clipWidth: containerWidth > 0 && contentWidth > 0 ? Math.min(contentWidth, containerWidth) : void 0,
8563
8567
  children: /* @__PURE__ */ jsxRuntime.jsx(
8564
8568
  reactNative.ScrollView,
@@ -8650,7 +8654,7 @@ var SegmentedControlRoot = React66__default.default.forwardRef(
8650
8654
  ]);
8651
8655
  var _a2, _b2;
8652
8656
  const theme2 = react.useTheme();
8653
- const { spacing, borderRadius, colour } = theme2.tokens.components.segmentedControl;
8657
+ const { spacing, borderRadius, colour, controlItem } = theme2.tokens.components.segmentedControl;
8654
8658
  const { dimensions: dimensions3 } = theme2.tokens.semantics;
8655
8659
  const optionsFirstValue = (_a2 = options == null ? void 0 : options[0]) == null ? void 0 : _a2.value;
8656
8660
  const childrenArray = React66__default.default.Children.toArray(children);
@@ -8717,11 +8721,13 @@ var SegmentedControlRoot = React66__default.default.forwardRef(
8717
8721
  scrollIndicatorPaddingOuter: parseTokenValue44(dimensions3.spacing["2xl"]),
8718
8722
  scrollIndicatorPaddingInner: parseTokenValue44(dimensions3.spacing.sm)
8719
8723
  };
8724
+ const trackHeight = parseTokenValue44(controlItem.size.small.height) + parseTokenValue44(spacing.verticalPadding) * 2;
8720
8725
  if (layout === "intrinsic") {
8721
8726
  return /* @__PURE__ */ jsxRuntime.jsx(
8722
8727
  IntrinsicTrack,
8723
8728
  __spreadValues({
8724
8729
  containerProps,
8730
+ trackHeight,
8725
8731
  renderItems,
8726
8732
  forwardedRef: ref
8727
8733
  }, rest)
@@ -12337,7 +12343,7 @@ var ProductDisplayCard = React66__default.default.forwardRef(
12337
12343
  /* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "heading", size: "2xs", color: "primary", children: title }),
12338
12344
  showSubtext && subtext && /* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "body", size: "sm", color: "secondary", children: subtext })
12339
12345
  ] }),
12340
- showQuantityPicker && !resolvedBadgeProps && /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: { marginLeft: "auto" }, children: /* @__PURE__ */ jsxRuntime.jsx(
12346
+ showQuantityPicker && /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: { marginLeft: "auto" }, children: /* @__PURE__ */ jsxRuntime.jsx(
12341
12347
  NumberField,
12342
12348
  {
12343
12349
  size: "sm",