teacss 0.2.0-alpha.10 → 0.2.0-alpha.12

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/index.cjs CHANGED
@@ -8,7 +8,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
8
8
 
9
9
  var classnames__default = /*#__PURE__*/_interopDefault(classnames);
10
10
 
11
- function x(...n){return tailwindMerge.twMerge(clsx.clsx(n))}var y=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,l=clsx.clsx,V=(n,r)=>t=>{if(r?.variants==null)return l(n,t?.class,t?.className);let{variants:p,defaultVariants:s}=r,d=Object.keys(p).map(e=>{let a=t?.[e],o=s?.[e];if(a===null)return null;let i=y(a)||y(o);return p[e][i]}),c=t&&Object.entries(t).reduce((e,[a,o])=>(o===void 0||(e[a]=o),e),{}),u=r?.compoundVariants?.reduce((e,{class:a,className:o,...i})=>Object.entries(i).every(([m,f])=>Array.isArray(f)?f.includes({...s,...c}[m]):{...s,...c}[m]===f)?[...e,a,o]:e,[]);return l(n,d,u,t?.class,t?.className)};
11
+ function T(...n){return tailwindMerge.twMerge(clsx.clsx(n))}var m=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,l=clsx.clsx,V=(n,r)=>t=>{if(r?.variants==null)return l(n,t?.class,t?.className);let{variants:p,defaultVariants:s}=r,d=Object.keys(p).map(e=>{let a=t?.[e],o=s?.[e];if(a===null)return null;let i=m(a)||m(o);return p[e][i]}),c=t&&Object.entries(t).reduce((e,[a,o])=>(o===void 0||(e[a]=o),e),{}),u=r?.compoundVariants?.reduce((e,{class:a,className:o,...i})=>Object.entries(i).every(([C,f])=>Array.isArray(f)?f.includes({...s,...c}[C]):{...s,...c}[C]===f)?[...e,a,o]:e,[]);return l(n,d,u,t?.class,t?.className)};
12
12
 
13
13
  Object.defineProperty(exports, "cn", {
14
14
  enumerable: true,
@@ -16,4 +16,4 @@ Object.defineProperty(exports, "cn", {
16
16
  });
17
17
  exports.cva = V;
18
18
  exports.cx = l;
19
- exports.cxm = x;
19
+ exports.cxm = T;
package/dist/index.d.mts CHANGED
@@ -17,7 +17,7 @@ type OmitUndefined<T> = T extends undefined ? never : T;
17
17
  type StringToBoolean<T> = T extends "true" | "false" ? boolean : T;
18
18
 
19
19
  declare function cxm(...inputs: ClassValue[]): string;
20
- type VariantProps<Component extends (...args: any) => any> = Omit<OmitUndefined<Parameters<Component>[0]>, "class" | "className">;
20
+ type CxVariantProps<Component extends (...args: any) => any> = Omit<OmitUndefined<Parameters<Component>[0]>, "class" | "className">;
21
21
  type CxOptions = Parameters<typeof clsx>;
22
22
  type CxReturn = ReturnType<typeof clsx>;
23
23
  declare const cx: typeof clsx;
@@ -36,4 +36,4 @@ type Config<T> = T extends ConfigSchema ? {
36
36
  type Props<T> = T extends ConfigSchema ? ConfigVariants<T> & ClassProp : ClassProp;
37
37
  declare const cva: <T>(base?: ClassValue, config?: Config<T>) => (props?: Props<T>) => string;
38
38
 
39
- export { type CxOptions, type CxReturn, type VariantProps, cva, cx, cxm };
39
+ export { type CxOptions, type CxReturn, type CxVariantProps, cva, cx, cxm };
package/dist/index.d.ts CHANGED
@@ -17,7 +17,7 @@ type OmitUndefined<T> = T extends undefined ? never : T;
17
17
  type StringToBoolean<T> = T extends "true" | "false" ? boolean : T;
18
18
 
19
19
  declare function cxm(...inputs: ClassValue[]): string;
20
- type VariantProps<Component extends (...args: any) => any> = Omit<OmitUndefined<Parameters<Component>[0]>, "class" | "className">;
20
+ type CxVariantProps<Component extends (...args: any) => any> = Omit<OmitUndefined<Parameters<Component>[0]>, "class" | "className">;
21
21
  type CxOptions = Parameters<typeof clsx>;
22
22
  type CxReturn = ReturnType<typeof clsx>;
23
23
  declare const cx: typeof clsx;
@@ -36,4 +36,4 @@ type Config<T> = T extends ConfigSchema ? {
36
36
  type Props<T> = T extends ConfigSchema ? ConfigVariants<T> & ClassProp : ClassProp;
37
37
  declare const cva: <T>(base?: ClassValue, config?: Config<T>) => (props?: Props<T>) => string;
38
38
 
39
- export { type CxOptions, type CxReturn, type VariantProps, cva, cx, cxm };
39
+ export { type CxOptions, type CxReturn, type CxVariantProps, cva, cx, cxm };
package/dist/index.js CHANGED
@@ -1061,6 +1061,12 @@ var getDefaultConfig = () => {
1061
1061
  "border-color-y": [{
1062
1062
  "border-y": [borderColor]
1063
1063
  }],
1064
+ "border-color-s": [{
1065
+ "border-s": [borderColor]
1066
+ }],
1067
+ "border-color-e": [{
1068
+ "border-e": [borderColor]
1069
+ }],
1064
1070
  "border-color-t": [{
1065
1071
  "border-t": [borderColor]
1066
1072
  }],
@@ -1393,7 +1399,7 @@ var getDefaultConfig = () => {
1393
1399
  "border-w": ["border-w-s", "border-w-e", "border-w-t", "border-w-r", "border-w-b", "border-w-l"],
1394
1400
  "border-w-x": ["border-w-r", "border-w-l"],
1395
1401
  "border-w-y": ["border-w-t", "border-w-b"],
1396
- "border-color": ["border-color-t", "border-color-r", "border-color-b", "border-color-l"],
1402
+ "border-color": ["border-color-s", "border-color-e", "border-color-t", "border-color-r", "border-color-b", "border-color-l"],
1397
1403
  "border-color-x": ["border-color-r", "border-color-l"],
1398
1404
  "border-color-y": ["border-color-t", "border-color-b"],
1399
1405
  "scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"],
package/dist/index.mjs CHANGED
@@ -2,6 +2,6 @@ export { default as cn } from 'classnames';
2
2
  import { clsx } from 'clsx';
3
3
  import { twMerge } from 'tailwind-merge';
4
4
 
5
- function x(...n){return twMerge(clsx(n))}var y=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,l=clsx,V=(n,r)=>t=>{if(r?.variants==null)return l(n,t?.class,t?.className);let{variants:p,defaultVariants:s}=r,d=Object.keys(p).map(e=>{let a=t?.[e],o=s?.[e];if(a===null)return null;let i=y(a)||y(o);return p[e][i]}),c=t&&Object.entries(t).reduce((e,[a,o])=>(o===void 0||(e[a]=o),e),{}),u=r?.compoundVariants?.reduce((e,{class:a,className:o,...i})=>Object.entries(i).every(([m,f])=>Array.isArray(f)?f.includes({...s,...c}[m]):{...s,...c}[m]===f)?[...e,a,o]:e,[]);return l(n,d,u,t?.class,t?.className)};
5
+ function T(...n){return twMerge(clsx(n))}var m=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,l=clsx,V=(n,r)=>t=>{if(r?.variants==null)return l(n,t?.class,t?.className);let{variants:p,defaultVariants:s}=r,d=Object.keys(p).map(e=>{let a=t?.[e],o=s?.[e];if(a===null)return null;let i=m(a)||m(o);return p[e][i]}),c=t&&Object.entries(t).reduce((e,[a,o])=>(o===void 0||(e[a]=o),e),{}),u=r?.compoundVariants?.reduce((e,{class:a,className:o,...i})=>Object.entries(i).every(([C,f])=>Array.isArray(f)?f.includes({...s,...c}[C]):{...s,...c}[C]===f)?[...e,a,o]:e,[]);return l(n,d,u,t?.class,t?.className)};
6
6
 
7
- export { V as cva, l as cx, x as cxm };
7
+ export { V as cva, l as cx, T as cxm };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "teacss",
3
- "version": "0.2.0-alpha.10",
3
+ "version": "0.2.0-alpha.12",
4
4
  "license": "MIT",
5
5
  "description": "Teacss aims to provide a one-stop solution for writing stylesheet.",
6
6
  "author": "Billgo <hi@billgo.me>",
@@ -63,11 +63,7 @@
63
63
  },
64
64
  "./*": "./*"
65
65
  },
66
- "files": [
67
- "dist",
68
- "types",
69
- "README.md"
70
- ],
66
+ "files": ["dist", "types", "README.md"],
71
67
  "scripts": {
72
68
  "prepublishOnly": "bun run build",
73
69
  "build": "bunx rimraf dist && bun run build:esm && bun run build:bun && rollup -c",
@@ -80,44 +76,44 @@
80
76
  "dependencies": {
81
77
  "@teacss/postcss-breakpoints": "^0.1.0-alpha.0",
82
78
  "@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",
79
+ "@unocss/core": "^0.63.4",
80
+ "@unocss/postcss": "^0.63.4",
81
+ "@unocss/rule-utils": "^0.63.4",
82
+ "@unocss/transformer-directives": "^0.63.4",
83
+ "@unocss/transformer-variant-group": "^0.63.4",
88
84
  "autoprefixer": "^10.4.20",
89
85
  "classnames": "^2.5.1",
90
86
  "clsx": "^2.1.1",
91
87
  "postcss-combine-duplicated-selectors": "^10.0.3",
92
- "postcss-custom-media": "^11.0.1",
88
+ "postcss-custom-media": "^11.0.3",
93
89
  "postcss-discard-comments": "^7.0.3",
94
90
  "postcss-discard-duplicates": "^7.0.1",
95
91
  "postcss-discard-empty": "^7.0.0",
96
92
  "postcss-discard-unused": "^7.0.3",
97
93
  "postcss-import": "^16.1.0",
98
94
  "postcss-nesting": "^13.0.0",
99
- "tailwind-merge": "^2.5.2"
95
+ "tailwind-merge": "^2.5.4"
100
96
  },
101
97
  "devDependencies": {
102
- "@biomejs/biome": "1.9.0",
103
- "@devjskit/biome-config": "^0.1.6",
98
+ "@biomejs/biome": "1.9.3",
99
+ "@devjskit/biome-config": "^0.1.13",
104
100
  "@devjskit/copy-files": "^1.0.0",
105
101
  "@devjskit/cross-env": "^1.0.0",
106
102
  "@devjskit/kill-port": "^1.0.0",
107
103
  "@devjskit/rimraf": "^1.0.0",
108
104
  "@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",
105
+ "@rsbuild/core": "^1.0.15",
106
+ "@rsbuild/plugin-react": "^1.0.5",
107
+ "@rsbuild/plugin-svgr": "^1.0.4",
108
+ "@tanstack/react-query": "^5.59.15",
109
+ "@tanstack/react-query-devtools": "^5.59.15",
110
+ "@types/bun": "^1.1.11",
115
111
  "@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",
112
+ "@types/react": "^18.3.11",
113
+ "@types/react-dom": "^18.3.1",
114
+ "@types/web": "^0.0.173",
119
115
  "cpy-cli": "^5.0.0",
120
- "cypress": "^13.14.2",
116
+ "cypress": "^13.15.0",
121
117
  "cypress-real-events": "^1.13.0",
122
118
  "ky": "^1.7.2",
123
119
  "nprogress": "^0.2.0",
@@ -126,15 +122,15 @@
126
122
  "react": "^18.3.1",
127
123
  "react-dom": "^18.3.1",
128
124
  "react-hook-form": "^7.53.0",
129
- "react-intl": "^6.6.8",
130
- "react-router-dom": "^6.26.2",
131
- "rollup": "^4.21.3",
125
+ "react-intl": "^6.8.0",
126
+ "react-router-dom": "^6.27.0",
127
+ "rollup": "^4.24.0",
132
128
  "rollup-plugin-dts": "^6.1.1",
133
129
  "styled-components": "^6.1.13",
134
- "stylelint": "^16.9.0",
130
+ "stylelint": "^16.10.0",
135
131
  "tsup": "^8.3.0",
136
- "typescript": "^5.6.2",
137
- "zustand": "^4.5.5"
132
+ "typescript": "^5.6.3",
133
+ "zustand": "^5.0.0"
138
134
  },
139
135
  "peerDependencies": {
140
136
  "@types/react": "*",