@canutin/svelte-currency-input 0.2.1 → 0.2.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.
- package/CurrencyInput.svelte +0 -5
- package/README.md +2 -5
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/package.json +3 -3
package/CurrencyInput.svelte
CHANGED
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# svelte-currency-input
|
|
2
2
|
|
|
3
|
-
A form input that converts numbers to
|
|
3
|
+
A form input that converts numbers to localized currency formats as you type
|
|
4
4
|
|
|
5
5
|
[<img width="1059" alt="image" src="https://user-images.githubusercontent.com/1434675/190315136-c1d310ab-0ef1-441d-a80c-2b3727d74f59.png">](https://svelte.dev/repl/d8f7d22e5b384555b430f62b157ac503?version=3.50.1)
|
|
6
6
|
|
|
@@ -28,12 +28,9 @@ npm install svelte-currency-input --save
|
|
|
28
28
|
```html
|
|
29
29
|
<script lang="ts">
|
|
30
30
|
import CurrencyInput from '@canutin/svelte-currency-input';
|
|
31
|
-
|
|
32
|
-
const locale = 'nl-NL';
|
|
33
|
-
const currency = 'EUR';
|
|
34
31
|
</script>
|
|
35
32
|
|
|
36
|
-
<CurrencyInput name="total" value={-420.69}
|
|
33
|
+
<CurrencyInput name="total" value={-420.69} locale="nl-NL" currency="EUR" />
|
|
37
34
|
```
|
|
38
35
|
|
|
39
36
|
## How it works
|
package/index.d.ts
ADDED
package/index.js
ADDED
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canutin/svelte-currency-input",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"exports": {
|
|
5
5
|
"./package.json": "./package.json",
|
|
6
|
-
".": "./
|
|
6
|
+
".": "./index.js",
|
|
7
7
|
"./CurrencyInput.svelte": "./CurrencyInput.svelte"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"url": "https://github.com/canutin/svelte-currency-input/issues"
|
|
47
47
|
},
|
|
48
48
|
"homepage": "https://github.com/canutin/svelte-currency-input#readme",
|
|
49
|
-
"svelte": "./
|
|
49
|
+
"svelte": "./index.js"
|
|
50
50
|
}
|