@granite-js/style-utils 0.1.0 → 0.1.2
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 +9 -0
- package/dist/box-spacing.d.ts +2 -2
- package/package.json +2 -2
- package/src/box-spacing.tsx +2 -2
package/CHANGELOG.md
CHANGED
package/dist/box-spacing.d.ts
CHANGED
|
@@ -115,7 +115,7 @@ export interface BoxSpacing extends BoxSpacingPresets {
|
|
|
115
115
|
* @property {ViewStyle} left32 - A style object that applies 32px inner spacing to the left
|
|
116
116
|
*
|
|
117
117
|
* @example
|
|
118
|
-
*
|
|
118
|
+
* ### Example of applying 8px inner spacing in horizontal and vertical directions, and 100px spacing in the bottom direction
|
|
119
119
|
*
|
|
120
120
|
* ```tsx
|
|
121
121
|
* import { padding } from '@granite-js/react-native';
|
|
@@ -193,7 +193,7 @@ export declare const padding: BoxSpacing;
|
|
|
193
193
|
* @property {ViewStyle} left32 - A style object that applies 32px outer spacing to the left
|
|
194
194
|
*
|
|
195
195
|
* @example
|
|
196
|
-
*
|
|
196
|
+
* ### Example of applying 8px outer spacing in horizontal and vertical directions, and 100px spacing in the bottom direction
|
|
197
197
|
*
|
|
198
198
|
* ```tsx
|
|
199
199
|
* import { margin } from '@granite-js/react-native';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@granite-js/style-utils",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"prepack": "yarn build",
|
|
6
6
|
"typecheck": "tsc --noEmit",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@babel/preset-env": "^7.24.8",
|
|
29
29
|
"@babel/preset-react": "^7.24.7",
|
|
30
30
|
"@babel/preset-typescript": "^7.24.7",
|
|
31
|
-
"@granite-js/native": "0.1.
|
|
31
|
+
"@granite-js/native": "0.1.2",
|
|
32
32
|
"@testing-library/jest-native": "^5.4.3",
|
|
33
33
|
"@testing-library/react-native": "^12.5.3",
|
|
34
34
|
"@types/jest": "^29.5.12",
|
package/src/box-spacing.tsx
CHANGED
|
@@ -197,7 +197,7 @@ function createSpacingWithProperty(cssProperty: string) {
|
|
|
197
197
|
* @property {ViewStyle} left32 - A style object that applies 32px inner spacing to the left
|
|
198
198
|
*
|
|
199
199
|
* @example
|
|
200
|
-
*
|
|
200
|
+
* ### Example of applying 8px inner spacing in horizontal and vertical directions, and 100px spacing in the bottom direction
|
|
201
201
|
*
|
|
202
202
|
* ```tsx
|
|
203
203
|
* import { padding } from '@granite-js/react-native';
|
|
@@ -276,7 +276,7 @@ export const padding = createSpacingWithProperty('padding');
|
|
|
276
276
|
* @property {ViewStyle} left32 - A style object that applies 32px outer spacing to the left
|
|
277
277
|
*
|
|
278
278
|
* @example
|
|
279
|
-
*
|
|
279
|
+
* ### Example of applying 8px outer spacing in horizontal and vertical directions, and 100px spacing in the bottom direction
|
|
280
280
|
*
|
|
281
281
|
* ```tsx
|
|
282
282
|
* import { margin } from '@granite-js/react-native';
|