cva 1.0.0-beta.11 → 1.0.0-beta.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.
@@ -0,0 +1,7 @@
1
+ @custom-variant base {
2
+ @layer base {
3
+ :where(&) {
4
+ @slot;
5
+ }
6
+ }
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cva",
3
- "version": "1.0.0-beta.11",
3
+ "version": "1.0.0-beta.12",
4
4
  "description": "Class Variance Authority",
5
5
  "keywords": [
6
6
  "Class Variance Authority",
@@ -23,7 +23,9 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "author": "Joe Bell (https://joebell.studio)",
26
- "sideEffects": false,
26
+ "sideEffects": [
27
+ "**/*.css"
28
+ ],
27
29
  "exports": {
28
30
  ".": {
29
31
  "import": "./dist/index.mjs",
@@ -37,11 +39,8 @@
37
39
  "import": "./dist/tools.mjs",
38
40
  "require": "./dist/tools.cjs"
39
41
  },
40
- "./utils": {
41
- "import": "./dist/utils.mjs",
42
- "require": "./dist/utils.cjs"
43
- },
44
- "./package.json": "./package.json"
42
+ "./package.json": "./package.json",
43
+ "./tailwindcss": "./dist/tailwindcss.css"
45
44
  },
46
45
  "main": "dist/index.cjs",
47
46
  "module": "dist/index.mjs",
@@ -64,6 +63,8 @@
64
63
  "react-dom": "19.2.6",
65
64
  "size-limit": "^12.1.0",
66
65
  "tailwind-merge": "3.6.0",
66
+ "tailwindcss": "^4.3.0",
67
+ "tailwindcss-v4": "npm:tailwindcss@4.0.0",
67
68
  "tsdown": "0.22.4",
68
69
  "typescript": "6.0.3",
69
70
  "unplugin-unused": "0.5.7"
@@ -88,10 +89,6 @@
88
89
  {
89
90
  "path": "dist/tools.cjs",
90
91
  "limit": "0.35KB"
91
- },
92
- {
93
- "path": "dist/utils.cjs",
94
- "limit": "0.37KB"
95
92
  }
96
93
  ],
97
94
  "scripts": {
@@ -109,9 +106,6 @@
109
106
  ],
110
107
  "tools": [
111
108
  "./dist/tools.d.cts"
112
- ],
113
- "utils": [
114
- "./dist/utils.d.cts"
115
109
  ]
116
110
  }
117
111
  }
package/dist/utils.cjs DELETED
@@ -1,23 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- //#region src/utils.ts
3
- /**
4
- * Copyright 2022-present Joe Bell. All rights reserved.
5
- *
6
- * This file is licensed to you under the Apache License, Version 2.0
7
- * (the "License"); you may not use this file except in compliance with the
8
- * License. You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14
- * WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or implied. See the
15
- * License for the specific language governing permissions and limitations under
16
- * the License.
17
- */
18
- /** @deprecated Import `getSchema` from `cva/tools` instead. */
19
- const getSchema = require("./tools.cjs").getSchema;
20
- //#endregion
21
- exports.getSchema = getSchema;
22
-
23
- //# sourceMappingURL=utils.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.cjs","names":["getSchemaTool"],"sources":["../src/utils.ts"],"sourcesContent":["/**\n * Copyright 2022-present Joe Bell. All rights reserved.\n *\n * This file is licensed to you under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with the\n * License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or implied. See the\n * License for the specific language governing permissions and limitations under\n * the License.\n */\n\nimport {\n getSchema as getSchemaTool,\n type GetSchema as ToolsGetSchema,\n} from \"./tools.js\";\n\n/** @deprecated Import `GetSchema` from `cva/tools` instead. */\nexport type GetSchema = ToolsGetSchema;\n\n/** @deprecated Import `getSchema` from `cva/tools` instead. */\nexport const getSchema: GetSchema = getSchemaTool;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAyBA,MAAa,iCAAuBA,CAAAA,CAAAA"}
package/dist/utils.d.cts DELETED
@@ -1,9 +0,0 @@
1
- import { GetSchema as GetSchema$1 } from "./tools.cjs";
2
- //#region src/utils.d.ts
3
- /** @deprecated Import `GetSchema` from `cva/tools` instead. */
4
- type GetSchema = GetSchema$1;
5
- /** @deprecated Import `getSchema` from `cva/tools` instead. */
6
- declare const getSchema: GetSchema;
7
- //#endregion
8
- export { GetSchema, getSchema };
9
- //# sourceMappingURL=utils.d.cts.map
package/dist/utils.d.mts DELETED
@@ -1,9 +0,0 @@
1
- import { GetSchema as GetSchema$1 } from "./tools.mjs";
2
- //#region src/utils.d.ts
3
- /** @deprecated Import `GetSchema` from `cva/tools` instead. */
4
- type GetSchema = GetSchema$1;
5
- /** @deprecated Import `getSchema` from `cva/tools` instead. */
6
- declare const getSchema: GetSchema;
7
- //#endregion
8
- export { GetSchema, getSchema };
9
- //# sourceMappingURL=utils.d.mts.map
package/dist/utils.mjs DELETED
@@ -1,23 +0,0 @@
1
- import { getSchema as getSchema$1 } from "./tools.mjs";
2
- //#region src/utils.ts
3
- /**
4
- * Copyright 2022-present Joe Bell. All rights reserved.
5
- *
6
- * This file is licensed to you under the Apache License, Version 2.0
7
- * (the "License"); you may not use this file except in compliance with the
8
- * License. You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14
- * WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or implied. See the
15
- * License for the specific language governing permissions and limitations under
16
- * the License.
17
- */
18
- /** @deprecated Import `getSchema` from `cva/tools` instead. */
19
- const getSchema = getSchema$1;
20
- //#endregion
21
- export { getSchema };
22
-
23
- //# sourceMappingURL=utils.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.mjs","names":["getSchemaTool"],"sources":["../src/utils.ts"],"sourcesContent":["/**\n * Copyright 2022-present Joe Bell. All rights reserved.\n *\n * This file is licensed to you under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with the\n * License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or implied. See the\n * License for the specific language governing permissions and limitations under\n * the License.\n */\n\nimport {\n getSchema as getSchemaTool,\n type GetSchema as ToolsGetSchema,\n} from \"./tools.js\";\n\n/** @deprecated Import `GetSchema` from `cva/tools` instead. */\nexport type GetSchema = ToolsGetSchema;\n\n/** @deprecated Import `getSchema` from `cva/tools` instead. */\nexport const getSchema: GetSchema = getSchemaTool;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAyBA,MAAa,YAAuBA"}