@weapp-tailwindcss/react-native 0.2.22 → 0.3.0

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/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@weapp-tailwindcss/react-native",
3
3
  "type": "module",
4
- "version": "0.2.22",
4
+ "version": "0.3.0",
5
5
  "description": "Tailwind CSS compiler and Expo Metro integration for cross-platform React Native apps. 面向跨端 React Native 应用的 Tailwind CSS 编译器与 Expo Metro 集成。",
6
6
  "license": "MIT",
7
7
  "homepage": "https://tw.weapp.dev/docs/quick-start/react-native-expo",
8
8
  "repository": {
9
9
  "type": "git",
10
- "url": "git+https://github.com/sonofmagic/weapp-tailwindcss.git",
10
+ "url": "git+https://github.com/weapp-tailwindcss/weapp-tailwindcss.git",
11
11
  "directory": "packages/react-native"
12
12
  },
13
13
  "sideEffects": true,
@@ -92,18 +92,19 @@
92
92
  },
93
93
  "dependencies": {
94
94
  "@babel/types": "^8.0.5",
95
- "@weapp-tailwindcss/postcss": "3.3.9",
96
- "weapp-tailwindcss": "5.5.10"
95
+ "@weapp-tailwindcss/postcss": "3.3.11",
96
+ "weapp-tailwindcss": "5.5.12"
97
97
  },
98
98
  "devDependencies": {
99
99
  "@babel/core": "^8.0.5",
100
100
  "@types/react": "^19.2.18",
101
101
  "react": "^19.2.8",
102
- "vitest": "~5.0.1"
102
+ "vitest": "~5.0.3"
103
103
  },
104
104
  "scripts": {
105
105
  "build": "tsdown",
106
106
  "test": "vitest run",
107
+ "typecheck": "tsc -p tsconfig.typecheck.json --pretty false",
107
108
  "bench": "vitest bench",
108
109
  "test:dev": "vitest",
109
110
  "lint": "eslint .",
@@ -1,31 +0,0 @@
1
- import { CompileNativeStylesheetOptions, NativeCompilerWarning, NativeCompilerWarning as NativeCompilerWarning$1, NativePlatform, NativePlatform as NativePlatform$1, NativeStyleRule, NativeStyleRule as NativeStyleRule$1 } from "@weapp-tailwindcss/postcss/native";
2
- //#region src/types.d.ts
3
- interface NativeStyleEnvironment {
4
- colorScheme?: 'light' | 'dark' | undefined;
5
- platform?: NativePlatform | undefined;
6
- }
7
- interface NativeStyleManifest {
8
- version: 1;
9
- classSet: string[];
10
- rules: Record<string, NativeStyleRule[]>;
11
- /** 可直接交给 StyleSheet.create 的稳定规则表。 */
12
- styleSheet?: Record<string, Record<string, unknown>>;
13
- /** styleSheet 规则的条件和优先级元数据。 */
14
- styleEntries?: Record<string, NativeStyleRule>;
15
- /** 每个 class token 对应的静态 style ID,Babel 编译结果直接使用它。 */
16
- staticLookup?: Record<string, string[]>;
17
- variables: Record<string, string>;
18
- warnings: NativeCompilerWarning[];
19
- }
20
- type NativeClassValue = string | false | null | undefined | NativeClassValue[] | Record<string, boolean>;
21
- type NativeStyleValue = Record<string, unknown> | number | readonly NativeStyleValue[];
22
- interface NativeStyleRuntime {
23
- tw: (value: NativeClassValue, environment?: NativeStyleEnvironment) => NativeStyleValue;
24
- getStaticStyle: (ids: readonly string[], environment?: NativeStyleEnvironment) => NativeStyleValue;
25
- composeStyle: (tailwindStyle: NativeStyleValue, inlineStyle: unknown) => NativeStyleValue[];
26
- setManifest: (manifest: NativeStyleManifest) => void;
27
- setEnvironment: (environment: NativeStyleEnvironment) => void;
28
- getManifest: () => NativeStyleManifest | undefined;
29
- }
30
- //#endregion
31
- export { NativeStyleEnvironment as a, NativeStyleRuntime as c, NativePlatform$1 as i, NativeStyleValue as l, NativeClassValue as n, NativeStyleManifest as o, NativeCompilerWarning$1 as r, NativeStyleRule$1 as s, CompileNativeStylesheetOptions as t };