@canutin/svelte-currency-input 0.2.2 → 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/README.md CHANGED
@@ -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} {locale} {currency} />
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
@@ -0,0 +1,2 @@
1
+ import CurrencyInput from './CurrencyInput.svelte';
2
+ export default CurrencyInput;
package/index.js ADDED
@@ -0,0 +1,2 @@
1
+ import CurrencyInput from './CurrencyInput.svelte';
2
+ export default CurrencyInput;
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@canutin/svelte-currency-input",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "exports": {
5
5
  "./package.json": "./package.json",
6
- ".": "./CurrencyInput.svelte",
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": "./CurrencyInput.svelte"
49
+ "svelte": "./index.js"
50
50
  }