visits-style 2.0.2 → 2.0.4

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 (2) hide show
  1. package/README.md +9 -2
  2. package/package.json +4 -2
package/README.md CHANGED
@@ -29,13 +29,20 @@ bun add -D tailwindcss
29
29
 
30
30
  ```css
31
31
  @import "tailwindcss"
32
- @import "visits-style/dist/lib.css"
32
+ @import "visits-style/lib.css";
33
+ @source "../node_modules/visits-style";
33
34
 
34
35
  /** カスタムグロバールcss定義 */
35
36
  ```
36
37
  ```tsx
38
+ import { Button } from 'visits-style';
37
39
  export default function TestComponent() {
38
- return <div className="bg-primary" />;
40
+ return (
41
+ <div role="alert" className="bg-warn-fore px-2 py-1 flex justify-between items-center">
42
+ <p>Warning message!</p>
43
+ <Button variant="ghost">Dismiss</Button>
44
+ </div>
45
+ );
39
46
  }
40
47
  ```
41
48
 
package/package.json CHANGED
@@ -2,7 +2,8 @@
2
2
  "name": "visits-style",
3
3
  "repository": "https://github.com/visits-works/visits-style",
4
4
  "homepage": "https://github.com/visits-works/visits-style",
5
- "version": "2.0.2",
5
+ "version": "2.0.4",
6
+ "description": "VISITS Technologiesのreactデザインコンポーネント",
6
7
  "type": "module",
7
8
  "main": "./dist/index.cjs.js",
8
9
  "module": "./dist/index.es.js",
@@ -10,7 +11,8 @@
10
11
  "exports": {
11
12
  ".": {
12
13
  "import": "./dist/index.es.js",
13
- "require": "./dist/index.cjs.js"
14
+ "require": "./dist/index.cjs.js",
15
+ "types": "./dist/index.d.ts"
14
16
  },
15
17
  "./lib.css": "./dist/lib.css"
16
18
  },