@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.
- package/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +15 -0
- package/dist/index.cjs +40 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +26 -4
- package/dist/index.d.ts +26 -4
- package/dist/index.js +40 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/Illustration/Illustration.tsx +52 -7
- package/src/components/molecules/NumberField/NumberFieldInput.tsx +10 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
[34mCJS[39m Build start
|
|
8
8
|
[34mESM[39m Build start
|
|
9
9
|
[34mDTS[39m Build start
|
|
10
|
-
[
|
|
11
|
-
[32mESM[39m [1mdist/index.js.map [22m[32m1.02 MB[39m
|
|
12
|
-
[32mESM[39m ⚡️ Build success in 7939ms
|
|
13
|
-
[32mCJS[39m [1mdist/index.cjs [22m[32m532.57 KB[39m
|
|
10
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m533.53 KB[39m
|
|
14
11
|
[32mCJS[39m [1mdist/index.cjs.map [22m[32m1.02 MB[39m
|
|
15
|
-
[32mCJS[39m ⚡️ Build success in
|
|
16
|
-
[
|
|
17
|
-
[
|
|
18
|
-
[
|
|
12
|
+
[32mCJS[39m ⚡️ Build success in 7997ms
|
|
13
|
+
[32mESM[39m [1mdist/index.js [22m[32m503.89 KB[39m
|
|
14
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m1.02 MB[39m
|
|
15
|
+
[32mESM[39m ⚡️ Build success in 7998ms
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 22782ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.cts [22m[32m99.79 KB[39m
|
|
18
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m99.79 KB[39m
|
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
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
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
|
|
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:
|
|
7172
|
+
token: isLarge ? tokens3.typography.large.secondaryContent : tokens3.typography.small.smallLabel,
|
|
7141
7173
|
color: inputTokens3.colour.description.default,
|
|
7142
7174
|
children: inlineHelpText
|
|
7143
7175
|
}
|