@jamm-pay/react-sdk 0.1.1 → 0.1.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 (2) hide show
  1. package/README.md +34 -0
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -7,3 +7,37 @@ Provides React based UI for merchants.
7
7
  ```bash
8
8
  npm install @jamm-pay/react-sdk
9
9
  ```
10
+
11
+ ## Components
12
+
13
+ ### JammModal
14
+
15
+ ```typescript
16
+ import { useState } from 'react'
17
+ import { JammModal } from '@jamm-pay/react-sdk'
18
+
19
+ function App() {
20
+ const [modal, setModal] = useState(false)
21
+
22
+ return (
23
+ <>
24
+ <button onClick={() => setModal(true)}>
25
+ Open
26
+ </button>
27
+
28
+ {modal && (
29
+ <JammModal onClose={() => setModal(false)} />
30
+ )}
31
+ </>
32
+ )
33
+ }
34
+
35
+ export default App
36
+ ```
37
+
38
+ ## Compatibility
39
+
40
+ This module supports the following React versions.
41
+
42
+ - React 18.x
43
+ - React 19.x
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Jamm React SDK",
4
4
  "author": "Jamm <support@jamm-pay.jp> (https://jamm-pay.jp)",
5
5
  "license": "MIT",
6
- "version": "0.1.1",
6
+ "version": "0.1.3",
7
7
  "type": "module",
8
8
  "main": "dist/index.js",
9
9
  "types": "dist/index.d.ts",
@@ -18,8 +18,8 @@
18
18
  },
19
19
  "peerDependencies": {
20
20
  "clsx": "^2.0.0",
21
- "react": "^19.1.0",
22
- "react-dom": "^19.1.0"
21
+ "react": "^18.0.0 || ^19.0.0",
22
+ "react-dom": "^18.0.0 || ^19.0.0"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@eslint/js": "^9.25.0",