@canutin/svelte-currency-input 0.1.0 → 0.1.1
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 +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ A form input that converts numbers to currencies as you type in localized format
|
|
|
16
16
|
|
|
17
17
|
- Formats **positive** and **negative** values
|
|
18
18
|
- Leverages [`Intl.NumberFormat`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat) for **localizing** currency denominations and masking the input
|
|
19
|
-
-
|
|
19
|
+
- Simple [API](#api)
|
|
20
20
|
- Minimal default styling, [easy to customize](#styling)
|
|
21
21
|
|
|
22
22
|
## Usage
|
|
@@ -61,7 +61,7 @@ This is more or less what `<CurrencyInput />` looks like under the hood:
|
|
|
61
61
|
| name | `string` | `total` | Applies the name to the [input fields](#how-it-works) for _unformatted_ (e.g `[name=total]`) and _formatted_ (e.g. `[name=formattedTotal]` in camelCase) values |
|
|
62
62
|
| required | `boolean` | `false` | Marks the inputs as required |
|
|
63
63
|
| disabled | `boolean` | `false` | Marks the inputs as disabled |
|
|
64
|
-
| isNegativeAllowed | `boolean` | `true` | If `
|
|
64
|
+
| isNegativeAllowed | `boolean` | `true` | If `false`, forces formatting only to positive values and ignores `--positive` and `--negative` styling modifiers |
|
|
65
65
|
|
|
66
66
|
## Styling
|
|
67
67
|
|