css-variants 2.3.1 → 2.3.3

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.
Files changed (3) hide show
  1. package/README.md +2 -2
  2. package/package.json +8 -6
  3. package/LICENSE +0 -19
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  Build powerful, flexible component style systems with variants.<br/>
8
8
  Perfect for Tailwind CSS, vanilla CSS, or any CSS-in-JS solution.
9
9
 
10
- [![test](https://github.com/timphandev/css-variants/actions/workflows/ci.yml/badge.svg)](https://github.com/timphandev/css-variants/actions/workflows/ci.yml)
10
+ [![test](https://github.com/timphandev/css-variants/actions/workflows/packages.css-variants.test.yml/badge.svg)](https://github.com/timphandev/css-variants/actions/workflows/packages.css-variants.test.yml)
11
11
  [![npm version](https://img.shields.io/npm/v/css-variants.svg)](https://www.npmjs.com/package/css-variants)
12
12
  [![Bundle Size](https://img.shields.io/bundlephobia/minzip/css-variants)](https://bundlephobia.com/package/css-variants)
13
13
  [![TypeScript](https://img.shields.io/badge/TypeScript-100%25-blue)](https://www.typescriptlang.org/)
@@ -139,7 +139,7 @@ box({ size: 'lg' }) // => { display: 'flex', borderRadius: '8px', padding: '24px
139
139
  ```bash
140
140
  git clone https://github.com/timphandev/css-variants.git
141
141
  cd css-variants && yarn install
142
- yarn test && yarn build
142
+ yarn css-variants test && yarn css-variants build
143
143
  ```
144
144
 
145
145
  ## License
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "css-variants",
3
- "version": "2.3.1",
3
+ "version": "2.3.3",
4
4
  "description": "Lightweight helpers to compose class names and inline styles using variants. Zero runtime deps, small bundle, and first-class TypeScript support.",
5
5
  "homepage": "https://css-variants.vercel.app",
6
6
  "type": "module",
@@ -45,10 +45,9 @@
45
45
  "scripts": {
46
46
  "lint": "eslint .",
47
47
  "test": "vitest run --coverage",
48
- "bench": "vitest bench ./src",
49
- "bench:cva": "npm install class-variance-authority --no-save --no-package-lock && vitest bench ./benchmark/cva.bench.ts --outputJson ./benchmark/cva.bench.json --run",
50
- "bench:tailwind-variants": "npm install tailwind-variants --no-save --no-package-lock && vitest bench ./benchmark/tailwind-variants.bench.ts --outputJson ./benchmark/tailwind-variants.bench.json --run",
51
- "build": "tsup"
48
+ "bench": "vitest bench",
49
+ "build": "tsup",
50
+ "prepublishOnly": "yarn build"
52
51
  },
53
52
  "repository": {
54
53
  "type": "git",
@@ -68,7 +67,10 @@
68
67
  "classname variants",
69
68
  "style variants",
70
69
  "cva",
71
- "class variance authority"
70
+ "class variance authority",
71
+ "tw",
72
+ "tailwind variants",
73
+ "stitches"
72
74
  ],
73
75
  "authors": [
74
76
  {
package/LICENSE DELETED
@@ -1,19 +0,0 @@
1
- MIT License
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy
4
- of this software and associated documentation files (the "Software"), to
5
- deal in the Software without restriction, including without limitation the
6
- rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7
- sell copies of the Software, and to permit persons to whom the Software is
8
- furnished to do so, subject to the following conditions:
9
-
10
- The above copyright notice and this permission notice shall be included in
11
- all copies or substantial portions of the Software.
12
-
13
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
19
- DEALINGS IN THE SOFTWARE.