teacss 0.2.0-alpha.7 → 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,154 +1,70 @@
1
1
  {
2
2
  "name": "teacss",
3
- "version": "0.2.0-alpha.7",
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
  },
66
- "files": ["dist", "types", "README.md"],
24
+ "types": "./dist/index.d.ts",
25
+ "files": [
26
+ "dist",
27
+ "README.md"
28
+ ],
67
29
  "scripts": {
68
- "prepublishOnly": "bun run build",
69
- "build": "bunx rimraf dist && bun run build:esm && bun run build:bun && rollup -c",
70
- "build:bun": "bun run bun.build.mjs",
71
- "build:esm": "bunx tsup",
72
- "build:app": "bunx rimraf build && bunx cross-env BUILD_TYPE=single rsbuild build",
73
- "build:css": "postcss example/styles/utilities/index.css -o build/utilities.css --config postcss.config.mjs",
74
- "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"
75
32
  },
76
33
  "dependencies": {
77
- "@teacss/postcss-breakpoints": "^0.1.0-alpha.0",
78
- "@teacss/postcss-whitespace": "^0.1.0-alpha.0",
79
- "@unocss/core": "^0.62.4",
80
- "@unocss/postcss": "^0.62.4",
81
- "@unocss/rule-utils": "^0.62.4",
82
- "@unocss/transformer-directives": "^0.62.4",
83
- "@unocss/transformer-variant-group": "^0.62.4",
84
- "autoprefixer": "^10.4.20",
85
- "classnames": "^2.5.1",
86
- "clsx": "^2.1.1",
87
- "postcss-combine-duplicated-selectors": "^10.0.3",
88
- "postcss-custom-media": "^11.0.1",
89
- "postcss-discard-comments": "^7.0.3",
90
- "postcss-discard-duplicates": "^7.0.1",
91
- "postcss-discard-empty": "^7.0.0",
92
- "postcss-discard-unused": "^7.0.3",
93
- "postcss-import": "^16.1.0",
94
- "postcss-nesting": "^13.0.0",
95
- "tailwind-merge": "^2.5.2"
96
- },
97
- "devDependencies": {
98
- "@biomejs/biome": "1.9.0",
99
- "@devjskit/biome-config": "^0.1.6",
100
- "@devjskit/copy-files": "^1.0.0",
101
- "@devjskit/cross-env": "^1.0.0",
102
- "@devjskit/kill-port": "^1.0.0",
103
- "@devjskit/rimraf": "^1.0.0",
104
- "@happy-dom/global-registrator": "^15.7.4",
105
- "@rsbuild/core": "^1.0.4",
106
- "@rsbuild/plugin-react": "^1.0.2",
107
- "@rsbuild/plugin-svgr": "^1.0.2",
108
- "@tanstack/react-query": "^5.56.2",
109
- "@tanstack/react-query-devtools": "^5.56.2",
110
- "@types/bun": "^1.1.9",
111
- "@types/postcss-import": "^14.0.3",
112
- "@types/react": "^18.3.6",
113
- "@types/react-dom": "^18.3.0",
114
- "@types/web": "^0.0.163",
115
- "cpy-cli": "^5.0.0",
116
- "cypress": "^13.14.2",
117
- "cypress-real-events": "^1.13.0",
118
- "ky": "^1.7.2",
119
- "nprogress": "^0.2.0",
120
- "postcss": "^8.4.47",
121
- "postcss-cli": "^11.0.0",
122
- "react": "^18.3.1",
123
- "react-dom": "^18.3.1",
124
- "react-hook-form": "^7.53.0",
125
- "react-intl": "^6.6.8",
126
- "react-router-dom": "^6.26.2",
127
- "rollup": "^4.21.3",
128
- "rollup-plugin-dts": "^6.1.1",
129
- "styled-components": "^6.1.13",
130
- "stylelint": "^16.9.0",
131
- "tsup": "^8.3.0",
132
- "typescript": "^5.6.2",
133
- "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"
134
39
  },
135
40
  "peerDependencies": {
136
- "@types/react": "*",
137
- "@types/react-dom": "*",
138
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0",
139
- "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0",
140
- "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"
141
46
  },
142
47
  "peerDependenciesMeta": {
143
- "@types/react": {
48
+ "@teacss/astro": {
144
49
  "optional": true
145
50
  },
146
- "@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": {
147
61
  "optional": true
148
62
  }
149
63
  },
64
+ "engines": {
65
+ "node": ">=22.12.0"
66
+ },
150
67
  "publishConfig": {
151
- "registry": "https://registry.npmjs.org/",
152
68
  "access": "public"
153
69
  }
154
70
  }