@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.
package/dist/index.d.cts CHANGED
@@ -2351,16 +2351,14 @@ type ProductDisplayCardProps = ViewProps & {
2351
2351
  * wins. This prop will be removed in a future major release.
2352
2352
  *
2353
2353
  * Show a quantity badge overlaid on the top-right of the image (rendering the
2354
- * current `quantity`) instead of the quantity picker. Defaults to `false`.
2355
- * The badge and the quantity picker are mutually exclusive — only one shows
2356
- * at a time; when `quantityBadge` is true the picker is never rendered.
2354
+ * current `quantity`). Defaults to `false`. Independent of the quantity
2355
+ * picker — use `showQuantityPicker` to control that separately.
2357
2356
  */
2358
2357
  quantityBadge?: boolean;
2359
2358
  /**
2360
2359
  * Render a `Badge` overlaid on the top-right of the image. Accepts any
2361
2360
  * `BadgeProps` (variant, size, icon, children, etc.) — pass them as an object.
2362
- * Mutually exclusive with the quantity picker: when set, the picker is never
2363
- * rendered.
2361
+ * Independent of the quantity picker: both can be shown at the same time.
2364
2362
  *
2365
2363
  * @example
2366
2364
  * thumbnailBadge={{ variant: "primary", size: "large", children: "New" }}
@@ -2429,16 +2427,14 @@ declare const ProductDisplayCard: React.ForwardRefExoticComponent<ViewProps & {
2429
2427
  * wins. This prop will be removed in a future major release.
2430
2428
  *
2431
2429
  * Show a quantity badge overlaid on the top-right of the image (rendering the
2432
- * current `quantity`) instead of the quantity picker. Defaults to `false`.
2433
- * The badge and the quantity picker are mutually exclusive — only one shows
2434
- * at a time; when `quantityBadge` is true the picker is never rendered.
2430
+ * current `quantity`). Defaults to `false`. Independent of the quantity
2431
+ * picker — use `showQuantityPicker` to control that separately.
2435
2432
  */
2436
2433
  quantityBadge?: boolean;
2437
2434
  /**
2438
2435
  * Render a `Badge` overlaid on the top-right of the image. Accepts any
2439
2436
  * `BadgeProps` (variant, size, icon, children, etc.) — pass them as an object.
2440
- * Mutually exclusive with the quantity picker: when set, the picker is never
2441
- * rendered.
2437
+ * Independent of the quantity picker: both can be shown at the same time.
2442
2438
  *
2443
2439
  * @example
2444
2440
  * thumbnailBadge={{ variant: "primary", size: "large", children: "New" }}
package/dist/index.d.ts CHANGED
@@ -2351,16 +2351,14 @@ type ProductDisplayCardProps = ViewProps & {
2351
2351
  * wins. This prop will be removed in a future major release.
2352
2352
  *
2353
2353
  * Show a quantity badge overlaid on the top-right of the image (rendering the
2354
- * current `quantity`) instead of the quantity picker. Defaults to `false`.
2355
- * The badge and the quantity picker are mutually exclusive — only one shows
2356
- * at a time; when `quantityBadge` is true the picker is never rendered.
2354
+ * current `quantity`). Defaults to `false`. Independent of the quantity
2355
+ * picker — use `showQuantityPicker` to control that separately.
2357
2356
  */
2358
2357
  quantityBadge?: boolean;
2359
2358
  /**
2360
2359
  * Render a `Badge` overlaid on the top-right of the image. Accepts any
2361
2360
  * `BadgeProps` (variant, size, icon, children, etc.) — pass them as an object.
2362
- * Mutually exclusive with the quantity picker: when set, the picker is never
2363
- * rendered.
2361
+ * Independent of the quantity picker: both can be shown at the same time.
2364
2362
  *
2365
2363
  * @example
2366
2364
  * thumbnailBadge={{ variant: "primary", size: "large", children: "New" }}
@@ -2429,16 +2427,14 @@ declare const ProductDisplayCard: React.ForwardRefExoticComponent<ViewProps & {
2429
2427
  * wins. This prop will be removed in a future major release.
2430
2428
  *
2431
2429
  * Show a quantity badge overlaid on the top-right of the image (rendering the
2432
- * current `quantity`) instead of the quantity picker. Defaults to `false`.
2433
- * The badge and the quantity picker are mutually exclusive — only one shows
2434
- * at a time; when `quantityBadge` is true the picker is never rendered.
2430
+ * current `quantity`). Defaults to `false`. Independent of the quantity
2431
+ * picker — use `showQuantityPicker` to control that separately.
2435
2432
  */
2436
2433
  quantityBadge?: boolean;
2437
2434
  /**
2438
2435
  * Render a `Badge` overlaid on the top-right of the image. Accepts any
2439
2436
  * `BadgeProps` (variant, size, icon, children, etc.) — pass them as an object.
2440
- * Mutually exclusive with the quantity picker: when set, the picker is never
2441
- * rendered.
2437
+ * Independent of the quantity picker: both can be shown at the same time.
2442
2438
  *
2443
2439
  * @example
2444
2440
  * thumbnailBadge={{ variant: "primary", size: "large", children: "New" }}
package/dist/index.js CHANGED
@@ -8361,8 +8361,9 @@ var StyledSegmentItem = styled51(Pressable)(
8361
8361
  opacity: itemOpacity
8362
8362
  }, itemFlex !== void 0 ? { flex: itemFlex } : { flexShrink: 0 })
8363
8363
  );
8364
- var StyledIntrinsicClip = styled51(View)(({ clipBorderRadius, clipBgColor, clipWidth }) => __spreadValues({
8364
+ var StyledIntrinsicClip = styled51(View)(({ clipBorderRadius, clipBgColor, clipHeight, clipWidth }) => __spreadValues({
8365
8365
  overflow: "hidden",
8366
+ height: clipHeight,
8366
8367
  borderRadius: clipBorderRadius,
8367
8368
  backgroundColor: clipBgColor,
8368
8369
  alignSelf: "flex-start",
@@ -8492,10 +8493,12 @@ SegmentedControlItem.displayName = "SegmentedControl.Item";
8492
8493
  var IntrinsicTrack = (_a) => {
8493
8494
  var _b = _a, {
8494
8495
  containerProps,
8496
+ trackHeight,
8495
8497
  renderItems,
8496
8498
  forwardedRef
8497
8499
  } = _b, rest = __objRest(_b, [
8498
8500
  "containerProps",
8501
+ "trackHeight",
8499
8502
  "renderItems",
8500
8503
  "forwardedRef"
8501
8504
  ]);
@@ -8528,6 +8531,7 @@ var IntrinsicTrack = (_a) => {
8528
8531
  {
8529
8532
  clipBorderRadius: containerProps.containerBorderRadius,
8530
8533
  clipBgColor: containerProps.containerBgColor,
8534
+ clipHeight: trackHeight,
8531
8535
  clipWidth: containerWidth > 0 && contentWidth > 0 ? Math.min(contentWidth, containerWidth) : void 0,
8532
8536
  children: /* @__PURE__ */ jsx(
8533
8537
  ScrollView,
@@ -8619,7 +8623,7 @@ var SegmentedControlRoot = React66.forwardRef(
8619
8623
  ]);
8620
8624
  var _a2, _b2;
8621
8625
  const theme2 = useTheme();
8622
- const { spacing, borderRadius, colour } = theme2.tokens.components.segmentedControl;
8626
+ const { spacing, borderRadius, colour, controlItem } = theme2.tokens.components.segmentedControl;
8623
8627
  const { dimensions: dimensions3 } = theme2.tokens.semantics;
8624
8628
  const optionsFirstValue = (_a2 = options == null ? void 0 : options[0]) == null ? void 0 : _a2.value;
8625
8629
  const childrenArray = React66.Children.toArray(children);
@@ -8686,11 +8690,13 @@ var SegmentedControlRoot = React66.forwardRef(
8686
8690
  scrollIndicatorPaddingOuter: parseTokenValue44(dimensions3.spacing["2xl"]),
8687
8691
  scrollIndicatorPaddingInner: parseTokenValue44(dimensions3.spacing.sm)
8688
8692
  };
8693
+ const trackHeight = parseTokenValue44(controlItem.size.small.height) + parseTokenValue44(spacing.verticalPadding) * 2;
8689
8694
  if (layout === "intrinsic") {
8690
8695
  return /* @__PURE__ */ jsx(
8691
8696
  IntrinsicTrack,
8692
8697
  __spreadValues({
8693
8698
  containerProps,
8699
+ trackHeight,
8694
8700
  renderItems,
8695
8701
  forwardedRef: ref
8696
8702
  }, rest)
@@ -12306,7 +12312,7 @@ var ProductDisplayCard = React66.forwardRef(
12306
12312
  /* @__PURE__ */ jsx(Typography, { variant: "heading", size: "2xs", color: "primary", children: title }),
12307
12313
  showSubtext && subtext && /* @__PURE__ */ jsx(Typography, { variant: "body", size: "sm", color: "secondary", children: subtext })
12308
12314
  ] }),
12309
- showQuantityPicker && !resolvedBadgeProps && /* @__PURE__ */ jsx(View, { style: { marginLeft: "auto" }, children: /* @__PURE__ */ jsx(
12315
+ showQuantityPicker && /* @__PURE__ */ jsx(View, { style: { marginLeft: "auto" }, children: /* @__PURE__ */ jsx(
12310
12316
  NumberField,
12311
12317
  {
12312
12318
  size: "sm",