@butternutbox/pawprint-native 0.25.0 → 0.25.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.
@@ -7,12 +7,12 @@
7
7
  CJS Build start
8
8
  ESM Build start
9
9
  DTS Build start
10
- CJS dist/index.cjs 554.97 KB
10
+ CJS dist/index.cjs 555.31 KB
11
11
  CJS dist/index.cjs.map 1.08 MB
12
- CJS ⚡️ Build success in 8316ms
13
- ESM dist/index.js 524.34 KB
12
+ CJS ⚡️ Build success in 8617ms
13
+ ESM dist/index.js 524.64 KB
14
14
  ESM dist/index.js.map 1.08 MB
15
- ESM ⚡️ Build success in 8318ms
16
- DTS ⚡️ Build success in 23693ms
15
+ ESM ⚡️ Build success in 8621ms
16
+ DTS ⚡️ Build success in 23481ms
17
17
  DTS dist/index.d.cts 103.29 KB
18
18
  DTS dist/index.d.ts 103.29 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @butternutbox/pawprint-native
2
2
 
3
+ ## 0.25.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 225f6c1: Allow custom date headers to be passed into date picker
8
+
3
9
  ## 0.25.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.cjs CHANGED
@@ -1300,6 +1300,16 @@ var Button = React66__default.default.forwardRef(
1300
1300
  };
1301
1301
  };
1302
1302
  const variantStyles = getVariantStyles(pressed);
1303
+ const renderIcon = (icon) => {
1304
+ if (!React66__default.default.isValidElement(icon)) return icon;
1305
+ const iconElement = icon;
1306
+ if (!pressed) {
1307
+ return icon;
1308
+ }
1309
+ return React66__default.default.cloneElement(iconElement, {
1310
+ customColour: variantStyles.textColor
1311
+ });
1312
+ };
1303
1313
  return /* @__PURE__ */ jsxRuntime.jsxs(
1304
1314
  StyledButton,
1305
1315
  __spreadProps(__spreadValues({
@@ -1323,7 +1333,7 @@ var Button = React66__default.default.forwardRef(
1323
1333
  buttonFullWidth: fullWidth
1324
1334
  }, rest), {
1325
1335
  children: [
1326
- startIcon && /* @__PURE__ */ jsxRuntime.jsx(IconWrapper, { children: startIcon }),
1336
+ startIcon && /* @__PURE__ */ jsxRuntime.jsx(IconWrapper, { children: renderIcon(startIcon) }),
1327
1337
  /* @__PURE__ */ jsxRuntime.jsx(
1328
1338
  Typography,
1329
1339
  {
@@ -1339,7 +1349,7 @@ var Button = React66__default.default.forwardRef(
1339
1349
  children
1340
1350
  }
1341
1351
  ),
1342
- endIcon && /* @__PURE__ */ jsxRuntime.jsx(IconWrapper, { children: endIcon }),
1352
+ endIcon && /* @__PURE__ */ jsxRuntime.jsx(IconWrapper, { children: renderIcon(endIcon) }),
1343
1353
  loading && /* @__PURE__ */ jsxRuntime.jsx(StyledSpinnerWrapper, { children: /* @__PURE__ */ jsxRuntime.jsx(
1344
1354
  Spinner,
1345
1355
  {