@availity/mui-favorites 0.2.4 → 0.2.5
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/CHANGELOG.md +2 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/lib/FavoriteHeart.tsx +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.2.5](https://github.com/Availity/element/compare/@availity/mui-favorites@0.2.4...@availity/mui-favorites@0.2.5) (2025-01-13)
|
|
6
|
+
|
|
5
7
|
## [0.2.4](https://github.com/Availity/element/compare/@availity/mui-favorites@0.2.3...@availity/mui-favorites@0.2.4) (2025-01-10)
|
|
6
8
|
|
|
7
9
|
## [0.2.3](https://github.com/Availity/element/compare/@availity/mui-favorites@0.2.2...@availity/mui-favorites@0.2.3) (2025-01-06)
|
package/dist/index.js
CHANGED
|
@@ -309,7 +309,7 @@ var FavoriteIcon = (0, import_styles.styled)("div", {
|
|
|
309
309
|
fontSize: fontSize(customSize)
|
|
310
310
|
}));
|
|
311
311
|
var validateSize = (size) => {
|
|
312
|
-
const match = size.match(/^(
|
|
312
|
+
const match = size.match(/^(\d*\.?\d+)(px|rem)$/);
|
|
313
313
|
if (!match) {
|
|
314
314
|
return false;
|
|
315
315
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -274,7 +274,7 @@ var FavoriteIcon = styled("div", {
|
|
|
274
274
|
fontSize: fontSize(customSize)
|
|
275
275
|
}));
|
|
276
276
|
var validateSize = (size) => {
|
|
277
|
-
const match = size.match(/^(
|
|
277
|
+
const match = size.match(/^(\d*\.?\d+)(px|rem)$/);
|
|
278
278
|
if (!match) {
|
|
279
279
|
return false;
|
|
280
280
|
}
|
package/package.json
CHANGED
|
@@ -63,7 +63,7 @@ const FavoriteIcon = styled('div', {
|
|
|
63
63
|
// validates the size input is the correct format and at least 24px or 1.5rem
|
|
64
64
|
const validateSize = (size: string) => {
|
|
65
65
|
// Match the number and unit in the size string
|
|
66
|
-
const match = size.match(/^(
|
|
66
|
+
const match = size.match(/^(\d*\.?\d+)(px|rem)$/);
|
|
67
67
|
|
|
68
68
|
if (!match) {
|
|
69
69
|
return false; // Invalid format
|