@butternutbox/pawprint-native 0.5.1 → 0.6.0

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.
@@ -15,16 +15,16 @@
15
15
  ESM dist/ibm-plex-sans-condensed-700-normal-4PFYFTSO.woff2 18.90 KB
16
16
  ESM dist/index.js 1.70 MB
17
17
  ESM dist/index.js.map 2.65 MB
18
- ESM ⚡️ Build success in 11961ms
18
+ ESM ⚡️ Build success in 11379ms
19
19
  CJS dist/ida-narrow-500-normal-C6I2PK4T.woff2 47.41 KB
20
20
  CJS dist/ida-narrow-700-normal-UPHPRIN6.woff2 49.90 KB
21
21
  CJS dist/ibm-plex-sans-condensed-400-normal-I2XLJNNB.woff2 19.33 KB
22
22
  CJS dist/ibm-plex-sans-condensed-500-normal-IEQBNVGX.woff2 19.48 KB
23
23
  CJS dist/ibm-plex-sans-condensed-600-normal-UX5ZU5T6.woff2 19.35 KB
24
24
  CJS dist/ibm-plex-sans-condensed-700-normal-4PFYFTSO.woff2 18.90 KB
25
- CJS dist/index.cjs 1.77 MB
25
+ CJS dist/index.cjs 1.78 MB
26
26
  CJS dist/index.cjs.map 2.65 MB
27
- CJS ⚡️ Build success in 11962ms
28
- DTS ⚡️ Build success in 22770ms
29
- DTS dist/index.d.cts 88.44 KB
30
- DTS dist/index.d.ts 88.44 KB
27
+ CJS ⚡️ Build success in 11384ms
28
+ DTS ⚡️ Build success in 21658ms
29
+ DTS dist/index.d.cts 88.74 KB
30
+ DTS dist/index.d.ts 88.74 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @butternutbox/pawprint-native
2
2
 
3
+ ## 0.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 9ea6d92: Add optional `tag` prop to Radio (web + native). Renders a Tag below the label/subtext using the `radio.spacing.content.tag.topPadding` token, and passes through the full Tag API (variant, icon, size). The tag is hidden when the prop is omitted.
8
+
9
+ ### Patch Changes
10
+
11
+ - 924acde: Apply ButtonDock horizontal padding tokens and fix inline variant alignment to space-between
12
+ - a164330: allow all notification variants to accept link prop
13
+
3
14
  ## 0.5.1
4
15
 
5
16
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -9490,7 +9490,8 @@ var StyledDockRoot = styled60__default.default(reactNative.View)(
9490
9490
  dockBgColor,
9491
9491
  dockBorderTopWidth,
9492
9492
  dockBorderTopColor,
9493
- dockPaddingVertical
9493
+ dockPaddingVertical,
9494
+ dockPaddingHorizontal
9494
9495
  }) => ({
9495
9496
  alignItems: "center",
9496
9497
  justifyContent: "center",
@@ -9498,7 +9499,8 @@ var StyledDockRoot = styled60__default.default(reactNative.View)(
9498
9499
  backgroundColor: dockBgColor,
9499
9500
  borderTopWidth: dockBorderTopWidth,
9500
9501
  borderTopColor: dockBorderTopColor,
9501
- paddingVertical: dockPaddingVertical
9502
+ paddingVertical: dockPaddingVertical,
9503
+ paddingHorizontal: dockPaddingHorizontal
9502
9504
  })
9503
9505
  );
9504
9506
  var StyledStackedInner = styled60__default.default(reactNative.View)(
@@ -9535,6 +9537,9 @@ var ButtonDock = React60__default.default.forwardRef(
9535
9537
  dockBorderTopColor: buttonDock.colour.border,
9536
9538
  dockPaddingVertical: parseTokenValue28(
9537
9539
  buttonDock.spacing[variant].mobile.topPadding
9540
+ ),
9541
+ dockPaddingHorizontal: parseTokenValue28(
9542
+ buttonDock.spacing[variant].mobile.horizontalPadding
9538
9543
  )
9539
9544
  }, rest), {
9540
9545
  children: isStacked ? /* @__PURE__ */ jsxRuntime.jsxs(
@@ -9569,7 +9574,7 @@ var ButtonDock = React60__default.default.forwardRef(
9569
9574
  {
9570
9575
  groupDirection: "row",
9571
9576
  groupAlign: "center",
9572
- groupJustify: "space-around",
9577
+ groupJustify: "space-between",
9573
9578
  groupGap,
9574
9579
  children
9575
9580
  }
@@ -10905,6 +10910,12 @@ var StyledTextContent = styled60__default.default(reactNative.View)(({ textConte
10905
10910
  var StyledAssetWrapper = styled60__default.default(reactNative.View)({
10906
10911
  alignSelf: "center"
10907
10912
  });
10913
+ var StyledTagWrapper = styled60__default.default(reactNative.View)(
10914
+ ({ tagTopPadding }) => ({
10915
+ alignItems: "flex-start",
10916
+ paddingTop: tagTopPadding
10917
+ })
10918
+ );
10908
10919
  var Radio = React60__default.default.forwardRef(
10909
10920
  (_a, ref) => {
10910
10921
  var _b = _a, {
@@ -10912,6 +10923,7 @@ var Radio = React60__default.default.forwardRef(
10912
10923
  label,
10913
10924
  subText,
10914
10925
  asset,
10926
+ tag,
10915
10927
  disabled = false,
10916
10928
  value,
10917
10929
  selected = false,
@@ -10922,6 +10934,7 @@ var Radio = React60__default.default.forwardRef(
10922
10934
  "label",
10923
10935
  "subText",
10924
10936
  "asset",
10937
+ "tag",
10925
10938
  "disabled",
10926
10939
  "value",
10927
10940
  "selected",
@@ -10976,7 +10989,7 @@ var Radio = React60__default.default.forwardRef(
10976
10989
  )
10977
10990
  }
10978
10991
  ),
10979
- (label || subText) && /* @__PURE__ */ jsxRuntime.jsxs(
10992
+ (label || subText || tag) && /* @__PURE__ */ jsxRuntime.jsxs(
10980
10993
  StyledTextContent,
10981
10994
  {
10982
10995
  textContentGap: parseTokenValue40(spacing.content.gap),
@@ -10989,6 +11002,13 @@ var Radio = React60__default.default.forwardRef(
10989
11002
  color: colour.text.subtext,
10990
11003
  children: subText
10991
11004
  }
11005
+ ),
11006
+ tag && /* @__PURE__ */ jsxRuntime.jsx(
11007
+ StyledTagWrapper,
11008
+ {
11009
+ tagTopPadding: parseTokenValue40(spacing.content.tag.topPadding),
11010
+ children: /* @__PURE__ */ jsxRuntime.jsx(Tag, __spreadValues({}, tag))
11011
+ }
10992
11012
  )
10993
11013
  ]
10994
11014
  }
@@ -12439,14 +12459,26 @@ var Notification = React60__default.default.forwardRef(
12439
12459
  "aria-label": type
12440
12460
  }
12441
12461
  ),
12442
- /* @__PURE__ */ jsxRuntime.jsx(
12443
- Typography,
12444
- {
12445
- token: systemNotifications.notifications.typography.default,
12446
- color: systemNotifications.notification.colour.text.default,
12447
- children
12448
- }
12449
- )
12462
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: { flexDirection: "column", gap: 8, flex: 1 }, children: [
12463
+ /* @__PURE__ */ jsxRuntime.jsx(
12464
+ Typography,
12465
+ {
12466
+ token: systemNotifications.notifications.typography.default,
12467
+ color: systemNotifications.notification.colour.text.default,
12468
+ children
12469
+ }
12470
+ ),
12471
+ link && /* @__PURE__ */ jsxRuntime.jsx(
12472
+ Link,
12473
+ {
12474
+ href: link.href,
12475
+ onPress: link.onPress,
12476
+ weight: "semiBold",
12477
+ size: "md",
12478
+ children: link.label
12479
+ }
12480
+ )
12481
+ ] })
12450
12482
  ]
12451
12483
  })
12452
12484
  );
@@ -12540,41 +12572,59 @@ var Notification = React60__default.default.forwardRef(
12540
12572
  rootBgColor: bgMap[type]
12541
12573
  }, rest), {
12542
12574
  children: [
12543
- /* @__PURE__ */ jsxRuntime.jsx(StyledContents, { contentsGap: parseTokenValue49(content.spacing.gap), children: /* @__PURE__ */ jsxRuntime.jsxs(StyledCopyRow, { copyGap: parseTokenValue49(content.spacing.gap), children: [
12544
- showIcon && /* @__PURE__ */ jsxRuntime.jsx(
12545
- Icon,
12546
- {
12547
- icon: IconComponent,
12548
- size: "md",
12549
- colour: type,
12550
- "aria-label": type
12551
- }
12552
- ),
12553
- /* @__PURE__ */ jsxRuntime.jsxs(
12554
- StyledInlineCopy,
12575
+ /* @__PURE__ */ jsxRuntime.jsxs(StyledContents, { contentsGap: parseTokenValue49(content.spacing.gap), children: [
12576
+ /* @__PURE__ */ jsxRuntime.jsxs(StyledCopyRow, { copyGap: parseTokenValue49(content.spacing.gap), children: [
12577
+ showIcon && /* @__PURE__ */ jsxRuntime.jsx(
12578
+ Icon,
12579
+ {
12580
+ icon: IconComponent,
12581
+ size: "md",
12582
+ colour: type,
12583
+ "aria-label": type
12584
+ }
12585
+ ),
12586
+ /* @__PURE__ */ jsxRuntime.jsxs(
12587
+ StyledInlineCopy,
12588
+ {
12589
+ copyGap: parseTokenValue49(content.copy.spacing.gap),
12590
+ children: [
12591
+ title && /* @__PURE__ */ jsxRuntime.jsx(
12592
+ Typography,
12593
+ {
12594
+ token: notifications.typography.title,
12595
+ color: colour.text.title,
12596
+ children: title
12597
+ }
12598
+ ),
12599
+ /* @__PURE__ */ jsxRuntime.jsx(
12600
+ Typography,
12601
+ {
12602
+ token: notifications.typography.body,
12603
+ color: colour.text.body,
12604
+ children
12605
+ }
12606
+ )
12607
+ ]
12608
+ }
12609
+ )
12610
+ ] }),
12611
+ link && /* @__PURE__ */ jsxRuntime.jsx(
12612
+ StyledLinkWrapper,
12555
12613
  {
12556
- copyGap: parseTokenValue49(content.copy.spacing.gap),
12557
- children: [
12558
- title && /* @__PURE__ */ jsxRuntime.jsx(
12559
- Typography,
12560
- {
12561
- token: notifications.typography.title,
12562
- color: colour.text.title,
12563
- children: title
12564
- }
12565
- ),
12566
- /* @__PURE__ */ jsxRuntime.jsx(
12567
- Typography,
12568
- {
12569
- token: notifications.typography.body,
12570
- color: colour.text.body,
12571
- children
12572
- }
12573
- )
12574
- ]
12614
+ linkPaddingLeft: parseTokenValue49(content.copy.spacing.gap),
12615
+ children: /* @__PURE__ */ jsxRuntime.jsx(
12616
+ Link,
12617
+ {
12618
+ href: link.href,
12619
+ onPress: link.onPress,
12620
+ weight: "semiBold",
12621
+ size: "md",
12622
+ children: link.label
12623
+ }
12624
+ )
12575
12625
  }
12576
12626
  )
12577
- ] }) }),
12627
+ ] }),
12578
12628
  onClose && /* @__PURE__ */ jsxRuntime.jsx(
12579
12629
  StyledCloseButton,
12580
12630
  {