teacss 0.2.0-alpha.8 → 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/dist/postcss.d.ts CHANGED
@@ -1,23 +1 @@
1
- declare const postcssPlugins: any[];
2
- declare const plugins: {
3
- "postcss-import": {};
4
- "@unocss/postcss": {};
5
- "postcss-nesting": {};
6
- "@teacss/postcss-breakpoints": {
7
- xs: string;
8
- sm: string;
9
- md: string;
10
- lg: string;
11
- xl: string;
12
- };
13
- "postcss-custom-media": {};
14
- "postcss-combine-duplicated-selectors": {};
15
- "postcss-discard-comments": {};
16
- "postcss-discard-duplicates": {};
17
- "postcss-discard-unused": {};
18
- "postcss-discard-empty": {};
19
- "@teacss/postcss-whitespace": {};
20
- autoprefixer: {};
21
- };
22
-
23
- export { plugins, postcssPlugins };
1
+ export * from "@teacss/postcss";
@@ -0,0 +1 @@
1
+ export*from"@teacss/postcss";export{};
@@ -0,0 +1,3 @@
1
+ import preset_articles_default from "@teacss/preset-articles";
2
+ export * from "@teacss/preset-articles";
3
+ export { preset_articles_default as default };
@@ -0,0 +1 @@
1
+ import e from"@teacss/preset-articles";export*from"@teacss/preset-articles";export{e as default};
@@ -0,0 +1,3 @@
1
+ import preset_icons_default from "@teacss/preset-icons";
2
+ export * from "@teacss/preset-icons";
3
+ export { preset_icons_default as default };
@@ -0,0 +1 @@
1
+ import e from"@teacss/preset-icons";export*from"@teacss/preset-icons";export{e as default};
@@ -0,0 +1,3 @@
1
+ import preset_standard_default from "@teacss/preset-standard";
2
+ export * from "@teacss/preset-standard";
3
+ export { preset_standard_default as default };
@@ -0,0 +1 @@
1
+ import e from"@teacss/preset-standard";export*from"@teacss/preset-standard";export{e as default};
@@ -0,0 +1 @@
1
+ export * from "@teacss/rsbuild";
@@ -0,0 +1 @@
1
+ export*from"@teacss/rsbuild";export{};
package/dist/vite.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "@teacss/vite";
package/dist/vite.js ADDED
@@ -0,0 +1 @@
1
+ export*from"@teacss/vite";export{};
package/package.json CHANGED
@@ -1,158 +1,70 @@
1
1
  {
2
2
  "name": "teacss",
3
- "version": "0.2.0-alpha.8",
3
+ "version": "0.3.0",
4
+ "description": "The TeaCSS application entry with the official `cn`, `recipe`, engine, presets, and opt-in build integration subpaths.",
5
+ "homepage": "https://css.teasim.com",
6
+ "funding": "https://github.com/sponsors/billgo",
4
7
  "license": "MIT",
5
- "description": "Teacss aims to provide a one-stop solution for writing stylesheet.",
6
8
  "author": "Billgo <hi@billgo.me>",
7
- "bugs": "https://github.com/teacss/styles/issues",
8
- "repository": "git+ssh://git@github.com:teacss/styles.git",
9
- "homepage": "/",
10
- "main": "dist/index.cjs",
11
- "module": "dist/index.mjs",
12
- "types": "./dist/index.d.ts",
9
+ "sideEffects": false,
10
+ "type": "module",
13
11
  "exports": {
14
- ".": {
15
- "require": {
16
- "types": "./dist/index.d.ts",
17
- "default": "./dist/index.cjs"
18
- },
19
- "import": {
20
- "types": "./dist/index.d.mts",
21
- "default": "./dist/index.mjs"
22
- }
23
- },
24
- "./unocss": {
25
- "require": {
26
- "types": "./dist/unocss.d.ts",
27
- "default": "./dist/unocss.cjs"
28
- },
29
- "import": {
30
- "types": "./dist/unocss.d.mts",
31
- "default": "./dist/unocss.mjs"
32
- }
33
- },
34
- "./postcss": {
35
- "require": {
36
- "types": "./dist/postcss.d.ts",
37
- "default": "./dist/postcss.cjs"
38
- },
39
- "import": {
40
- "types": "./dist/postcss.d.mts",
41
- "default": "./dist/postcss.mjs"
42
- }
43
- },
44
- "./stitches": {
45
- "require": {
46
- "types": "./dist/stitches.d.ts",
47
- "default": "./dist/stitches.cjs"
48
- },
49
- "import": {
50
- "types": "./dist/stitches.d.mts",
51
- "default": "./dist/stitches.mjs"
52
- }
53
- },
54
- "./colors": {
55
- "require": {
56
- "types": "./dist/colors.d.ts",
57
- "default": "./dist/colors.cjs"
58
- },
59
- "import": {
60
- "types": "./dist/colors.d.mts",
61
- "default": "./dist/colors.mjs"
62
- }
63
- },
64
- "./*": "./*"
12
+ ".": "./dist/index.js",
13
+ "./astro": "./dist/astro.js",
14
+ "./bun": "./dist/bun.js",
15
+ "./core": "./dist/core.js",
16
+ "./postcss": "./dist/postcss.js",
17
+ "./preset-articles": "./dist/preset-articles.js",
18
+ "./preset-icons": "./dist/preset-icons.js",
19
+ "./preset-standard": "./dist/preset-standard.js",
20
+ "./rsbuild": "./dist/rsbuild.js",
21
+ "./vite": "./dist/vite.js",
22
+ "./package.json": "./package.json"
65
23
  },
24
+ "types": "./dist/index.d.ts",
66
25
  "files": [
67
26
  "dist",
68
- "types",
69
27
  "README.md"
70
28
  ],
71
29
  "scripts": {
72
- "prepublishOnly": "bun run build",
73
- "build": "bunx rimraf dist && bun run build:esm && bun run build:bun && rollup -c",
74
- "build:bun": "bun run bun.build.mjs",
75
- "build:esm": "bunx tsup",
76
- "build:app": "bunx rimraf build && bunx cross-env BUILD_TYPE=single rsbuild build",
77
- "build:css": "postcss example/styles/utilities/index.css -o build/utilities.css --config postcss.config.mjs",
78
- "start": "bunx kill-port 3000 && bunx rsbuild dev --open http://localhost:3000"
30
+ "build": "bunx rimraf dist && bunx tsdown --config tsdown.config.mts",
31
+ "dev": "tsdown --watch"
79
32
  },
80
33
  "dependencies": {
81
- "@teacss/postcss-breakpoints": "^0.1.0-alpha.0",
82
- "@teacss/postcss-whitespace": "^0.1.0-alpha.0",
83
- "@unocss/core": "^0.62.4",
84
- "@unocss/postcss": "^0.62.4",
85
- "@unocss/rule-utils": "^0.62.4",
86
- "@unocss/transformer-directives": "^0.62.4",
87
- "@unocss/transformer-variant-group": "^0.62.4",
88
- "autoprefixer": "^10.4.20",
89
- "classnames": "^2.5.1",
90
- "clsx": "^2.1.1",
91
- "postcss-combine-duplicated-selectors": "^10.0.3",
92
- "postcss-custom-media": "^11.0.1",
93
- "postcss-discard-comments": "^7.0.3",
94
- "postcss-discard-duplicates": "^7.0.1",
95
- "postcss-discard-empty": "^7.0.0",
96
- "postcss-discard-unused": "^7.0.3",
97
- "postcss-import": "^16.1.0",
98
- "postcss-nesting": "^13.0.0",
99
- "tailwind-merge": "^2.5.2"
100
- },
101
- "devDependencies": {
102
- "@biomejs/biome": "1.9.0",
103
- "@devjskit/biome-config": "^0.1.6",
104
- "@devjskit/copy-files": "^1.0.0",
105
- "@devjskit/cross-env": "^1.0.0",
106
- "@devjskit/kill-port": "^1.0.0",
107
- "@devjskit/rimraf": "^1.0.0",
108
- "@happy-dom/global-registrator": "^15.7.4",
109
- "@rsbuild/core": "^1.0.4",
110
- "@rsbuild/plugin-react": "^1.0.2",
111
- "@rsbuild/plugin-svgr": "^1.0.2",
112
- "@tanstack/react-query": "^5.56.2",
113
- "@tanstack/react-query-devtools": "^5.56.2",
114
- "@types/bun": "^1.1.9",
115
- "@types/postcss-import": "^14.0.3",
116
- "@types/react": "^18.3.6",
117
- "@types/react-dom": "^18.3.0",
118
- "@types/web": "^0.0.163",
119
- "cpy-cli": "^5.0.0",
120
- "cypress": "^13.14.2",
121
- "cypress-real-events": "^1.13.0",
122
- "ky": "^1.7.2",
123
- "nprogress": "^0.2.0",
124
- "postcss": "^8.4.47",
125
- "postcss-cli": "^11.0.0",
126
- "react": "^18.3.1",
127
- "react-dom": "^18.3.1",
128
- "react-hook-form": "^7.53.0",
129
- "react-intl": "^6.6.8",
130
- "react-router-dom": "^6.26.2",
131
- "rollup": "^4.21.3",
132
- "rollup-plugin-dts": "^6.1.1",
133
- "styled-components": "^6.1.13",
134
- "stylelint": "^16.9.0",
135
- "tsup": "^8.3.0",
136
- "typescript": "^5.6.2",
137
- "zustand": "^4.5.5"
34
+ "@teacss/classes": "0.3.0",
35
+ "@teacss/core": "0.3.0",
36
+ "@teacss/preset-articles": "0.3.0",
37
+ "@teacss/preset-icons": "0.3.0",
38
+ "@teacss/preset-standard": "0.3.0"
138
39
  },
139
40
  "peerDependencies": {
140
- "@types/react": "*",
141
- "@types/react-dom": "*",
142
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0",
143
- "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0",
144
- "postcss": "^8.0"
41
+ "@teacss/astro": "0.3.0",
42
+ "@teacss/bun": "0.3.0",
43
+ "@teacss/postcss": "0.3.0",
44
+ "@teacss/rsbuild": "0.3.0",
45
+ "@teacss/vite": "0.3.0"
145
46
  },
146
47
  "peerDependenciesMeta": {
147
- "@types/react": {
48
+ "@teacss/astro": {
148
49
  "optional": true
149
50
  },
150
- "@types/react-dom": {
51
+ "@teacss/bun": {
52
+ "optional": true
53
+ },
54
+ "@teacss/postcss": {
55
+ "optional": true
56
+ },
57
+ "@teacss/rsbuild": {
58
+ "optional": true
59
+ },
60
+ "@teacss/vite": {
151
61
  "optional": true
152
62
  }
153
63
  },
64
+ "engines": {
65
+ "node": ">=22.12.0"
66
+ },
154
67
  "publishConfig": {
155
- "registry": "https://registry.npmjs.org/",
156
68
  "access": "public"
157
69
  }
158
70
  }