@react-native-styled-system/core 0.0.6 → 0.0.10

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.
@@ -238,54 +238,54 @@ export declare const useSx: <S extends ViewStyle = ViewStyle, P extends Props =
238
238
  absoluteFill?: boolean | undefined;
239
239
  center?: boolean | undefined;
240
240
  } | keyof {
241
- margin: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
242
- m: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
243
- marginTop: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
244
- mt: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
245
- marginRight: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
246
- mr: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
247
- marginBottom: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
248
- mb: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
249
- marginLeft: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
250
- ml: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
251
- marginX: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
252
- mx: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
253
- marginY: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
254
- my: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
255
- padding: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
256
- p: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
257
- paddingTop: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
258
- pt: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
259
- paddingRight: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
260
- pr: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
261
- paddingBottom: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
262
- pb: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
263
- paddingLeft: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
264
- pl: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
265
- paddingX: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
266
- px: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
267
- paddingY: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
268
- py: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
269
- top: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
270
- right: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
271
- bottom: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
272
- left: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
273
- gap: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
274
- gapX: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
275
- gapY: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px`;
241
+ margin: `${number}` | import("../@types/Token").SpaceValue | `${number}px` | `${any}px`;
242
+ m: `${number}` | import("../@types/Token").SpaceValue | `${number}px` | `${any}px`;
243
+ marginTop: `${number}` | import("../@types/Token").SpaceValue | `${number}px` | `${any}px`;
244
+ mt: `${number}` | import("../@types/Token").SpaceValue | `${number}px` | `${any}px`;
245
+ marginRight: `${number}` | import("../@types/Token").SpaceValue | `${number}px` | `${any}px`;
246
+ mr: `${number}` | import("../@types/Token").SpaceValue | `${number}px` | `${any}px`;
247
+ marginBottom: `${number}` | import("../@types/Token").SpaceValue | `${number}px` | `${any}px`;
248
+ mb: `${number}` | import("../@types/Token").SpaceValue | `${number}px` | `${any}px`;
249
+ marginLeft: `${number}` | import("../@types/Token").SpaceValue | `${number}px` | `${any}px`;
250
+ ml: `${number}` | import("../@types/Token").SpaceValue | `${number}px` | `${any}px`;
251
+ marginX: `${number}` | import("../@types/Token").SpaceValue | `${number}px` | `${any}px`;
252
+ mx: `${number}` | import("../@types/Token").SpaceValue | `${number}px` | `${any}px`;
253
+ marginY: `${number}` | import("../@types/Token").SpaceValue | `${number}px` | `${any}px`;
254
+ my: `${number}` | import("../@types/Token").SpaceValue | `${number}px` | `${any}px`;
255
+ padding: `${number}` | import("../@types/Token").SpaceValue | `${number}px` | `${any}px`;
256
+ p: `${number}` | import("../@types/Token").SpaceValue | `${number}px` | `${any}px`;
257
+ paddingTop: `${number}` | import("../@types/Token").SpaceValue | `${number}px` | `${any}px`;
258
+ pt: `${number}` | import("../@types/Token").SpaceValue | `${number}px` | `${any}px`;
259
+ paddingRight: `${number}` | import("../@types/Token").SpaceValue | `${number}px` | `${any}px`;
260
+ pr: `${number}` | import("../@types/Token").SpaceValue | `${number}px` | `${any}px`;
261
+ paddingBottom: `${number}` | import("../@types/Token").SpaceValue | `${number}px` | `${any}px`;
262
+ pb: `${number}` | import("../@types/Token").SpaceValue | `${number}px` | `${any}px`;
263
+ paddingLeft: `${number}` | import("../@types/Token").SpaceValue | `${number}px` | `${any}px`;
264
+ pl: `${number}` | import("../@types/Token").SpaceValue | `${number}px` | `${any}px`;
265
+ paddingX: `${number}` | import("../@types/Token").SpaceValue | `${number}px` | `${any}px`;
266
+ px: `${number}` | import("../@types/Token").SpaceValue | `${number}px` | `${any}px`;
267
+ paddingY: `${number}` | import("../@types/Token").SpaceValue | `${number}px` | `${any}px`;
268
+ py: `${number}` | import("../@types/Token").SpaceValue | `${number}px` | `${any}px`;
269
+ top: `${number}` | import("../@types/Token").SpaceValue | `${number}px` | `${any}px`;
270
+ right: `${number}` | import("../@types/Token").SpaceValue | `${number}px` | `${any}px`;
271
+ bottom: `${number}` | import("../@types/Token").SpaceValue | `${number}px` | `${any}px`;
272
+ left: `${number}` | import("../@types/Token").SpaceValue | `${number}px` | `${any}px`;
273
+ gap: `${number}` | import("../@types/Token").SpaceValue | `${number}px` | `${any}px`;
274
+ gapX: `${number}` | import("../@types/Token").SpaceValue | `${number}px` | `${any}px`;
275
+ gapY: `${number}` | import("../@types/Token").SpaceValue | `${number}px` | `${any}px`;
276
276
  } | keyof {
277
- width: `${number}` | `${number}px` | `${any}px` | import("packages/core/src/@types/Token").SizesValue;
278
- w: `${number}` | `${number}px` | `${any}px` | import("packages/core/src/@types/Token").SizesValue;
279
- minWidth: `${number}` | `${number}px` | `${any}px` | import("packages/core/src/@types/Token").SizesValue;
280
- minW: `${number}` | `${number}px` | `${any}px` | import("packages/core/src/@types/Token").SizesValue;
281
- maxWidth: `${number}` | `${number}px` | `${any}px` | import("packages/core/src/@types/Token").SizesValue;
282
- maxW: `${number}` | `${number}px` | `${any}px` | import("packages/core/src/@types/Token").SizesValue;
283
- height: `${number}` | `${number}px` | `${any}px` | import("packages/core/src/@types/Token").SizesValue;
284
- h: `${number}` | `${number}px` | `${any}px` | import("packages/core/src/@types/Token").SizesValue;
285
- minHeight: `${number}` | `${number}px` | `${any}px` | import("packages/core/src/@types/Token").SizesValue;
286
- minH: `${number}` | `${number}px` | `${any}px` | import("packages/core/src/@types/Token").SizesValue;
287
- maxHeight: `${number}` | `${number}px` | `${any}px` | import("packages/core/src/@types/Token").SizesValue;
288
- maxH: `${number}` | `${number}px` | `${any}px` | import("packages/core/src/@types/Token").SizesValue;
277
+ width: `${number}` | `${number}px` | `${any}px` | import("../@types/Token").SizesValue;
278
+ w: `${number}` | `${number}px` | `${any}px` | import("../@types/Token").SizesValue;
279
+ minWidth: `${number}` | `${number}px` | `${any}px` | import("../@types/Token").SizesValue;
280
+ minW: `${number}` | `${number}px` | `${any}px` | import("../@types/Token").SizesValue;
281
+ maxWidth: `${number}` | `${number}px` | `${any}px` | import("../@types/Token").SizesValue;
282
+ maxW: `${number}` | `${number}px` | `${any}px` | import("../@types/Token").SizesValue;
283
+ height: `${number}` | `${number}px` | `${any}px` | import("../@types/Token").SizesValue;
284
+ h: `${number}` | `${number}px` | `${any}px` | import("../@types/Token").SizesValue;
285
+ minHeight: `${number}` | `${number}px` | `${any}px` | import("../@types/Token").SizesValue;
286
+ minH: `${number}` | `${number}px` | `${any}px` | import("../@types/Token").SizesValue;
287
+ maxHeight: `${number}` | `${number}px` | `${any}px` | import("../@types/Token").SizesValue;
288
+ maxH: `${number}` | `${number}px` | `${any}px` | import("../@types/Token").SizesValue;
289
289
  } | keyof {
290
290
  backgroundColor: string;
291
291
  bg: string;
@@ -1,10 +1,10 @@
1
1
  import type { ThemedDict } from '../../@types/ThemedDict';
2
2
  export declare const createTokenParsers: (theme: ThemedDict) => {
3
3
  colors: (token?: string | undefined) => string | undefined;
4
- space: (token?: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px` | undefined) => import("packages/core/src/@types/Token").SpaceValue | undefined;
5
- spaceAsNumberOnly: (token?: `${number}` | import("packages/core/src/@types/Token").SpaceValue | `${number}px` | `${any}px` | undefined) => number | undefined;
6
- sizes: (token?: `${number}` | `${number}px` | `${any}px` | import("packages/core/src/@types/Token").SizesValue | undefined) => import("packages/core/src/@types/Token").SizesValue | undefined;
4
+ space: (token?: `${number}` | import("../../@types/Token").SpaceValue | `${number}px` | `${any}px` | undefined) => import("../../@types/Token").SpaceValue | undefined;
5
+ spaceAsNumberOnly: (token?: `${number}` | import("../../@types/Token").SpaceValue | `${number}px` | `${any}px` | undefined) => number | undefined;
6
+ sizes: (token?: `${number}` | `${number}px` | `${any}px` | import("../../@types/Token").SizesValue | undefined) => import("../../@types/Token").SizesValue | undefined;
7
7
  radii: (token?: number | `${number}` | `${number}px` | `${any}px` | undefined) => number | undefined;
8
- typography: (token?: string | undefined) => import("packages/core/src/@types/Token").TypographyValue | undefined;
8
+ typography: (token?: string | undefined) => import("../../@types/Token").TypographyValue | undefined;
9
9
  };
10
10
  //# sourceMappingURL=TokenParser.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-styled-system/core",
3
- "version": "0.0.6",
3
+ "version": "0.0.10",
4
4
  "description": "React Native Styled System",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "types": "lib/typescript/index.d.ts",
@@ -42,7 +42,9 @@
42
42
  "@mj-studio/js-util": "1.0.31",
43
43
  "invariant": "^2.2.4"
44
44
  },
45
- "bin": "./bin/theme-gen.js",
45
+ "bin": {
46
+ "generate-theme-type": "./bin/theme-gen.js"
47
+ },
46
48
  "react-native": "src/index.ts",
47
49
  "source": "src/index.ts",
48
50
  "module": "lib/module/index.js",
@@ -74,5 +76,5 @@
74
76
  "workspaces": [
75
77
  "packages/*"
76
78
  ],
77
- "gitHead": "95058221eb7ea5949e09bdac8b18c86ef98d4eed"
79
+ "gitHead": "b0fc78862c6749cd8fa8760110845a22ca961506"
78
80
  }