@gr4vy/secure-fields-react 1.9.0 → 1.10.0

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # v1.10.0 (Wed Jun 14 2023)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - feat: secure input default styles [#353](https://github.com/gr4vy/secure-fields/pull/353) ([@luca-gr4vy](https://github.com/luca-gr4vy))
6
+
7
+ #### Authors: 1
8
+
9
+ - Luca Allievi ([@luca-gr4vy](https://github.com/luca-gr4vy))
10
+
11
+ ---
12
+
1
13
  # v1.8.0 (Mon Jun 12 2023)
2
14
 
3
15
  #### 🚀 Enhancement
package/README.md CHANGED
@@ -21,6 +21,9 @@ npm install @gr4vy/secure-fields-react --save-prod
21
21
  To use Secure Fields, import the `SecureFields` Provider component and wrap your app with it, making sure you pass the necessary configuration props and any event handlers.
22
22
 
23
23
  ```jsx
24
+ require('@gr4vy/secure-fields-react/lib/style.css') // default styles
25
+ // import '@gr4vy/secure-fields-react/lib/style.css'
26
+
24
27
  const { SecureFields } = require(`@gr4vy/secure-fields-react`)
25
28
  // import { SecureFields } from (`@gr4vy/secure-fields-react)
26
29
 
package/lib/style.css ADDED
@@ -0,0 +1,10 @@
1
+ .secure-fields__input {
2
+ display: inline-block;
3
+ border: 1px solid;
4
+ width: 200px;
5
+ height: 30px;
6
+ }
7
+
8
+ .secure-fields__input[data-secure-fields-invalid] {
9
+ border-color: #eb4c4b;
10
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gr4vy/secure-fields-react",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "description": "Gr4vy-hosted secure fields offering advanced theming, PCI compliance, event handling, and more.",
5
5
  "main": "lib/index",
6
6
  "types": "lib/index",
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "scripts": {
21
21
  "prepare": "ts-patch install -s",
22
- "build": "tsc -p tsconfig.prod.json",
22
+ "build": "tsc -p tsconfig.prod.json && cp ../secure-fields/src/style.css ./lib/style.css",
23
23
  "clean": "rm -rf lib *.tgz",
24
24
  "dev": "TOKEN=$(yarn --silent token) webpack serve --config webpack.dev.js",
25
25
  "lint": "eslint src --ext ts,tsx",
@@ -39,7 +39,7 @@
39
39
  "react-dom": ">=17.0.0"
40
40
  },
41
41
  "dependencies": {
42
- "@gr4vy/secure-fields": "^1.9.0"
42
+ "@gr4vy/secure-fields": "^1.10.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@testing-library/react-hooks": "^8.0.1",
@@ -51,5 +51,5 @@
51
51
  "publishConfig": {
52
52
  "access": "public"
53
53
  },
54
- "gitHead": "48fe152199250a322989cf9b2fd58915aee1c488"
54
+ "gitHead": "4e38f7e0755ad2a888a7a66f3373de49a351d2e7"
55
55
  }