@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.
- package/.turbo/turbo-build.log +6 -6
- package/CHANGELOG.md +11 -0
- package/dist/index.cjs +94 -44
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -4
- package/dist/index.d.ts +14 -4
- package/dist/index.js +94 -44
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/ButtonDock/ButtonDock.tsx +10 -4
- package/src/components/molecules/Notification/Notification.tsx +36 -10
- package/src/components/molecules/Radio/Radio.stories.tsx +46 -0
- package/src/components/molecules/Radio/Radio.test.tsx +18 -0
- package/src/components/molecules/Radio/Radio.tsx +19 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -15,16 +15,16 @@
|
|
|
15
15
|
[32mESM[39m [1mdist/ibm-plex-sans-condensed-700-normal-4PFYFTSO.woff2 [22m[32m18.90 KB[39m
|
|
16
16
|
[32mESM[39m [1mdist/index.js [22m[32m1.70 MB[39m
|
|
17
17
|
[32mESM[39m [1mdist/index.js.map [22m[32m2.65 MB[39m
|
|
18
|
-
[32mESM[39m ⚡️ Build success in
|
|
18
|
+
[32mESM[39m ⚡️ Build success in 11379ms
|
|
19
19
|
[32mCJS[39m [1mdist/ida-narrow-500-normal-C6I2PK4T.woff2 [22m[32m47.41 KB[39m
|
|
20
20
|
[32mCJS[39m [1mdist/ida-narrow-700-normal-UPHPRIN6.woff2 [22m[32m49.90 KB[39m
|
|
21
21
|
[32mCJS[39m [1mdist/ibm-plex-sans-condensed-400-normal-I2XLJNNB.woff2 [22m[32m19.33 KB[39m
|
|
22
22
|
[32mCJS[39m [1mdist/ibm-plex-sans-condensed-500-normal-IEQBNVGX.woff2 [22m[32m19.48 KB[39m
|
|
23
23
|
[32mCJS[39m [1mdist/ibm-plex-sans-condensed-600-normal-UX5ZU5T6.woff2 [22m[32m19.35 KB[39m
|
|
24
24
|
[32mCJS[39m [1mdist/ibm-plex-sans-condensed-700-normal-4PFYFTSO.woff2 [22m[32m18.90 KB[39m
|
|
25
|
-
[32mCJS[39m [1mdist/index.cjs [22m[32m1.
|
|
25
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m1.78 MB[39m
|
|
26
26
|
[32mCJS[39m [1mdist/index.cjs.map [22m[32m2.65 MB[39m
|
|
27
|
-
[32mCJS[39m ⚡️ Build success in
|
|
28
|
-
[32mDTS[39m ⚡️ Build success in
|
|
29
|
-
[32mDTS[39m [1mdist/index.d.cts [22m[32m88.
|
|
30
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m88.
|
|
27
|
+
[32mCJS[39m ⚡️ Build success in 11384ms
|
|
28
|
+
[32mDTS[39m ⚡️ Build success in 21658ms
|
|
29
|
+
[32mDTS[39m [1mdist/index.d.cts [22m[32m88.74 KB[39m
|
|
30
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m88.74 KB[39m
|
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-
|
|
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.
|
|
12443
|
-
|
|
12444
|
-
|
|
12445
|
-
|
|
12446
|
-
|
|
12447
|
-
|
|
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.
|
|
12544
|
-
|
|
12545
|
-
|
|
12546
|
-
|
|
12547
|
-
|
|
12548
|
-
|
|
12549
|
-
|
|
12550
|
-
|
|
12551
|
-
|
|
12552
|
-
|
|
12553
|
-
|
|
12554
|
-
|
|
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
|
-
|
|
12557
|
-
children:
|
|
12558
|
-
|
|
12559
|
-
|
|
12560
|
-
|
|
12561
|
-
|
|
12562
|
-
|
|
12563
|
-
|
|
12564
|
-
|
|
12565
|
-
|
|
12566
|
-
|
|
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
|
{
|