@particle-network/ui-native 0.5.1-beta.2 → 0.5.1-beta.3

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.
@@ -1,7 +1,7 @@
1
1
  import { useColors, useMs, useRadius, useSpacing } from "../../../hooks/index.js";
2
2
  import { useShadow } from "../../../hooks/useShadow.js";
3
3
  const useBoxStyle = (props)=>{
4
- const { fullWidth, fullHeight, h, minH, maxH, w, minW, maxW, m, mt, mr, mb, ml, ms, me, mh, mv, p, pt, pr, pb, pl, ps, pe, ph, pv, borderStyle, border, borderTop, borderRight, borderBottom, borderLeft, borderStart, borderEnd, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor, borderStartColor, borderEndColor, radius, topLeftRadius, topRightRadius, bottomLeftRadius, bottomRightRadius, topStartRadius, topEndRadius, bottomStartRadius, bottomEndRadius, position, top, right, bottom, left, start, end, bg, bgOpacity, opacity, zIndex, overflow, shadow } = props;
4
+ const { fullWidth, fullHeight, h, minH, maxH, w, minW, maxW, m, mt, mr, mb, ml, ms, me, mh, mv, p, pt, pr, pb, pl, ps, pe, ph, px, py, pv, borderStyle, border, borderTop, borderRight, borderBottom, borderLeft, borderStart, borderEnd, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor, borderStartColor, borderEndColor, radius, topLeftRadius, topRightRadius, bottomLeftRadius, bottomRightRadius, topStartRadius, topEndRadius, bottomStartRadius, bottomEndRadius, position, top, right, bottom, left, start, end, bg, bgOpacity, opacity, zIndex, overflow, shadow } = props;
5
5
  const { ms: uxms } = useMs();
6
6
  const { getColor } = useColors();
7
7
  const { getSpacing } = useSpacing();
@@ -25,8 +25,8 @@ const useBoxStyle = (props)=>{
25
25
  styleObj.marginLeft = getSpacing(ml);
26
26
  styleObj.marginStart = getSpacing(ms);
27
27
  styleObj.marginEnd = getSpacing(me);
28
- styleObj.marginHorizontal = getSpacing(mh);
29
- styleObj.marginVertical = getSpacing(mv);
28
+ styleObj.marginHorizontal = getSpacing(mh || px);
29
+ styleObj.marginVertical = getSpacing(mv || py);
30
30
  styleObj.padding = getSpacing(p);
31
31
  styleObj.paddingTop = getSpacing(pt);
32
32
  styleObj.paddingRight = getSpacing(pr);
@@ -101,10 +101,12 @@ export interface UseBoxProps {
101
101
  * Shorthand for the `paddingHorizontal` style property.
102
102
  */
103
103
  ph?: SpacingType;
104
+ px?: SpacingType;
104
105
  /**
105
106
  * Shorthand for the `paddingVertical` style property.
106
107
  */
107
108
  pv?: SpacingType;
109
+ py?: SpacingType;
108
110
  /**
109
111
  * Shorthand for the `borderStyle` style property.
110
112
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@particle-network/ui-native",
3
- "version": "0.5.1-beta.2",
3
+ "version": "0.5.1-beta.3",
4
4
  "main": "./entry.js",
5
5
  "react-native": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -45,8 +45,8 @@
45
45
  "react-native-size-matters": "^0.4.2",
46
46
  "react-native-toast-message": "^2.3.3",
47
47
  "react-native-worklets": "0.5.1",
48
- "@particle-network/ui-shared": "0.4.1-beta.1",
49
- "@particle-network/icons": "0.5.1-beta.2"
48
+ "@particle-network/ui-shared": "0.4.1-beta.2",
49
+ "@particle-network/icons": "0.5.1-beta.3"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@babel/core": "^7.24.0",
@@ -89,9 +89,9 @@
89
89
  "unfetch": "^4.2.0",
90
90
  "vite": "^6.3.5",
91
91
  "zustand": "^5.0.8",
92
- "@particle-network/lintstaged-config": "0.1.0",
93
92
  "@particle-network/eslint-config": "0.3.0",
94
- "@particle-network/icons": "0.5.1-beta.2"
93
+ "@particle-network/lintstaged-config": "0.1.0",
94
+ "@particle-network/icons": "0.5.1-beta.3"
95
95
  },
96
96
  "overrides": {
97
97
  "react-docgen-typescript": "2.2.2",