@vinyasa/button 1.0.3 → 1.0.5

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,5 @@
1
+ declare module '*.css' {
2
+ const css: string;
3
+
4
+ export default css;
5
+ }
package/package.json CHANGED
@@ -1,13 +1,15 @@
1
1
  {
2
2
  "name": "@vinyasa/button",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "sideEffects": [
7
7
  "**/*.css"
8
8
  ],
9
9
  "files": [
10
- "dist"
10
+ "dist",
11
+ "style.css",
12
+ "style.css.d.ts"
11
13
  ],
12
14
  "publishConfig": {
13
15
  "access": "public"
@@ -28,11 +30,15 @@
28
30
  "require": "./dist/cjs/*.cjs",
29
31
  "default": "./dist/esm/*.js"
30
32
  },
31
- "./*.css": "./dist/esm/*.css",
33
+ "./style.css": {
34
+ "types": "./style.css.d.ts",
35
+ "default": "./style.css"
36
+ },
32
37
  "./package.json": "./package.json"
33
38
  },
34
39
  "scripts": {
35
40
  "build": "rslib build",
41
+ "postbuild": "node ../../scripts/copy-css-types.mjs packages/button",
36
42
  "typecheck": "tsc --noEmit -p tsconfig.json",
37
43
  "lint": "eslint --config ../../configs/eslint.config.mjs src/**/*.{ts,tsx}",
38
44
  "lint:fix": "eslint --config ../../configs/eslint.config.mjs src/**/*.{ts,tsx} --fix",
package/style.css ADDED
@@ -0,0 +1,9 @@
1
+ ._1bwnrav0 {
2
+ color: #fff;
3
+ background-color: #111827;
4
+ border: 1px solid #1f2937;
5
+ border-radius: .75rem;
6
+ padding: .75rem 1rem;
7
+ font-weight: 600;
8
+ }
9
+
package/style.css.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ declare module '*.css' {
2
+ const css: string;
3
+
4
+ export default css;
5
+ }