@canutin/svelte-currency-input 0.0.1 → 0.0.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 +40 -60
- package/CurrencyInput.svelte.d.ts +4 -4
- package/README.md +86 -20
- package/package.json +45 -49
- package/index.d.ts +0 -0
- package/index.js +0 -1
package/CurrencyInput.svelte
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
<script>export let value;
|
|
2
|
-
export let
|
|
1
|
+
<script>export let value = 0;
|
|
2
|
+
export let locale = 'en-US';
|
|
3
|
+
export let currency = 'USD';
|
|
4
|
+
export let name = 'total';
|
|
3
5
|
export let required = false;
|
|
4
6
|
export let disabled = false;
|
|
5
7
|
export let isNegativeAllowed = true;
|
|
6
|
-
export let locale = 'en-US';
|
|
7
|
-
export let currency = 'USD';
|
|
8
8
|
let formattedValue = '';
|
|
9
9
|
$: isZero = value === 0;
|
|
10
10
|
$: isNegative = value < 0;
|
|
@@ -21,7 +21,7 @@ const formatCurrency = (value, maximumFractionDigits, minimumFractionDigits) =>
|
|
|
21
21
|
const placeholder = formatCurrency(0, 2, 2); // e.g. '$0.00'
|
|
22
22
|
const currencySymbol = formatCurrency(0, 0).replace('0', ''); // e.g. '$'
|
|
23
23
|
const currencyDecimal = new Intl.NumberFormat(locale).format(1.1).charAt(1); // '.' or ','
|
|
24
|
-
const currenctInputName = `
|
|
24
|
+
const currenctInputName = `formatted${name.replace(/^./g, ($1) => $1.toUpperCase())}`; // e.g. `formattedTotal`
|
|
25
25
|
// Updates `value` by stripping away the currency formatting
|
|
26
26
|
const setValue = (event) => {
|
|
27
27
|
// Don't format if the user is typing a currencyDecimal point
|
|
@@ -57,13 +57,13 @@ const applyFormatting = () => {
|
|
|
57
57
|
</script>
|
|
58
58
|
|
|
59
59
|
<div class="currencyInput">
|
|
60
|
-
<input class="
|
|
60
|
+
<input class="currencyInput__unformatted" type="hidden" {name} {disabled} bind:value />
|
|
61
61
|
<input
|
|
62
62
|
class="
|
|
63
|
-
|
|
64
|
-
{isNegativeAllowed && !isZero && !isNegative && '
|
|
65
|
-
{isZero && '
|
|
66
|
-
{isNegativeAllowed && isNegative && '
|
|
63
|
+
currencyInput__formatted
|
|
64
|
+
{isNegativeAllowed && !isZero && !isNegative && 'currencyInput__formatted--positive'}
|
|
65
|
+
{isZero && 'currencyInput__formatted--zero'}
|
|
66
|
+
{isNegativeAllowed && isNegative && 'currencyInput__formatted--negative'}
|
|
67
67
|
"
|
|
68
68
|
type="text"
|
|
69
69
|
inputmode="numeric"
|
|
@@ -76,54 +76,34 @@ const applyFormatting = () => {
|
|
|
76
76
|
/>
|
|
77
77
|
</div>
|
|
78
78
|
|
|
79
|
-
<style>
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
79
|
+
<style>
|
|
80
|
+
div.currencyInput {
|
|
81
|
+
display: flex;
|
|
82
|
+
flex-direction: column;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
input.currencyInput__formatted {
|
|
86
|
+
border: 1px solid #e2e2e2;
|
|
87
|
+
padding: 10px;
|
|
88
|
+
box-sizing: border-box;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
input.currencyInput__formatted--zero {
|
|
92
|
+
color: #333;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
input.currencyInput__formatted--positive {
|
|
96
|
+
color: #00a36f;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
input.currencyInput__formatted--negative {
|
|
100
|
+
color: #e75258;
|
|
101
|
+
}
|
|
83
102
|
|
|
84
|
-
input.
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
box-sizing: border-box;
|
|
92
|
-
/* background-color: var(--input-background-color);
|
|
93
|
-
border-width: var(--input-border-width);
|
|
94
|
-
border-style: var(--input-border-style);
|
|
95
|
-
border-radius: var(--input-border-radius);
|
|
96
|
-
border-color: var(--input-border-color);
|
|
97
|
-
padding: var(--input-padding);
|
|
98
|
-
font-family: var(--input-font-family);
|
|
99
|
-
font-size: var(--input-font-size);
|
|
100
|
-
box-sizing: var(--input-box-sizing); */
|
|
101
|
-
font-family: var(--font-monospace);
|
|
102
|
-
}
|
|
103
|
-
input.currencyInput__currency:active, input.currencyInput__currency:focus {
|
|
104
|
-
outline-color: var(--color-bluePrimary);
|
|
105
|
-
outline-style: auto;
|
|
106
|
-
/* outline-color: var(--input-active-outline-color);
|
|
107
|
-
outline-style: var(--input-active-outline-style); */
|
|
108
|
-
}
|
|
109
|
-
input.currencyInput__currency--positive {
|
|
110
|
-
color: var(--color-greenPrimary);
|
|
111
|
-
}
|
|
112
|
-
input.currencyInput__currency--zero {
|
|
113
|
-
color: var(--color-grey80);
|
|
114
|
-
}
|
|
115
|
-
input.currencyInput__currency--negative {
|
|
116
|
-
color: var(--color-redPrimary);
|
|
117
|
-
}
|
|
118
|
-
input.currencyInput__currency--error {
|
|
119
|
-
border-color: var(--color-redPrimary);
|
|
120
|
-
}
|
|
121
|
-
input.currencyInput__currency::placeholder {
|
|
122
|
-
color: var(--color-grey40);
|
|
123
|
-
}
|
|
124
|
-
input.currencyInput__currency:disabled {
|
|
125
|
-
pointer-events: none;
|
|
126
|
-
background-color: var(--color-grey10);
|
|
127
|
-
color: var(--color-grey40);
|
|
128
|
-
cursor: default;
|
|
129
|
-
}</style>
|
|
103
|
+
input.currencyInput__formatted:disabled {
|
|
104
|
+
color: #999;
|
|
105
|
+
background-color: #e2e2e2;
|
|
106
|
+
pointer-events: none;
|
|
107
|
+
cursor: default;
|
|
108
|
+
}
|
|
109
|
+
</style>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
|
-
value
|
|
5
|
-
|
|
4
|
+
value?: number | undefined;
|
|
5
|
+
locale?: string | undefined;
|
|
6
|
+
currency?: string | undefined;
|
|
7
|
+
name?: string | undefined;
|
|
6
8
|
required?: boolean | undefined;
|
|
7
9
|
disabled?: boolean | undefined;
|
|
8
10
|
isNegativeAllowed?: boolean | undefined;
|
|
9
|
-
locale?: string | undefined;
|
|
10
|
-
currency?: string | undefined;
|
|
11
11
|
};
|
|
12
12
|
events: {
|
|
13
13
|
[evt: string]: CustomEvent<any>;
|
package/README.md
CHANGED
|
@@ -1,38 +1,104 @@
|
|
|
1
|
-
#
|
|
1
|
+
# svelte-currency-input
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A form input that converts numbers to currencies as you type in localized formats
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
<img width="1059" alt="image" src="https://user-images.githubusercontent.com/1434675/190315136-c1d310ab-0ef1-441d-a80c-2b3727d74f59.png">
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
|
|
8
|
+
## Features
|
|
9
|
+
|
|
10
|
+
- Formats **positive** and **negative** values
|
|
11
|
+
- 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
|
|
12
|
+
- Comprehensive [API](#api)
|
|
13
|
+
- Minimal default styling, [easy to customize](#styling)
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
8
16
|
|
|
9
17
|
```bash
|
|
10
|
-
|
|
11
|
-
|
|
18
|
+
npm install svelte-currency-input --save
|
|
19
|
+
```
|
|
12
20
|
|
|
13
|
-
|
|
14
|
-
|
|
21
|
+
```svelte
|
|
22
|
+
<script lang="ts">
|
|
23
|
+
import CurrencyInput from '@canutin/svelte-currency-input';
|
|
24
|
+
|
|
25
|
+
const locale = 'nl-NL';
|
|
26
|
+
const currency = 'EUR';
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
<CurrencyInput name="exchange-rate" value={-420.69} {locale} {currency} />
|
|
15
30
|
```
|
|
16
31
|
|
|
17
|
-
##
|
|
32
|
+
## How it works
|
|
18
33
|
|
|
19
|
-
|
|
34
|
+
When the form is submitted you get _unformatted_ or _formatted_ values from two `<input />`'s.
|
|
35
|
+
This is more or less what `<CurrencyInput />` looks like under the hood:
|
|
20
36
|
|
|
21
|
-
```
|
|
22
|
-
|
|
37
|
+
```html
|
|
38
|
+
<div class="currencyInput">
|
|
39
|
+
<!-- Unformatted value -->
|
|
40
|
+
<input class="currencyInput__unformatted" type="hidden" name="total" />
|
|
23
41
|
|
|
24
|
-
|
|
25
|
-
|
|
42
|
+
<!-- Formatted value -->
|
|
43
|
+
<input class="currencyInput__formatted" type="text" name="formattedTotal" />
|
|
44
|
+
</div>
|
|
26
45
|
```
|
|
27
46
|
|
|
28
|
-
##
|
|
47
|
+
## API
|
|
29
48
|
|
|
30
|
-
|
|
49
|
+
| Option | Type | Default | Description |
|
|
50
|
+
| --- | --- | --- | --- |
|
|
51
|
+
| value | `number` | `undefined` | Initial value. If left `undefined` a formatted value of `0` is visible as a placeholder |
|
|
52
|
+
| locale | `string` | `en-US` | Overrides default locale. [Examples](https://gist.github.com/ncreated/9934896) |
|
|
53
|
+
| currency | `string` | `USD` | Overrides default currency. [Examples](https://github.com/datasets/currency-codes/blob/master/data/codes-all.csv) |
|
|
54
|
+
| 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 |
|
|
55
|
+
| required | `boolean` | `false` | Marks the inputs as required |
|
|
56
|
+
| disabled | `boolean` | `false` | Marks the inputs as disabled |
|
|
57
|
+
| isNegativeAllowed | `boolean` | `true` | If `true`, forces formatting only to positive values and ignores `--positive` and `--negative` styling modifiers |
|
|
31
58
|
|
|
32
|
-
|
|
33
|
-
|
|
59
|
+
## Styling
|
|
60
|
+
|
|
61
|
+
The default styles use [BEM naming conventions](https://getbem.com/naming/). To override the default styles apply your styles as shown below:
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
```svelte
|
|
65
|
+
<div class="my-currency-input">
|
|
66
|
+
<CurrencyInput name="total" value={420.69} />
|
|
67
|
+
</div>
|
|
68
|
+
|
|
69
|
+
<style>
|
|
70
|
+
/* Container */
|
|
71
|
+
div.my-currency-input :global(div.currencyInput) { /* ... */}
|
|
72
|
+
|
|
73
|
+
/* Formatted input */
|
|
74
|
+
div.my-currency-input :global(input.currencyInput__formatted) { /* ... */}
|
|
75
|
+
|
|
76
|
+
/* Formatted input when the value is zero */
|
|
77
|
+
div.my-currency-input :global(input.currencyInput__formatted--zero) { /* ... */}
|
|
78
|
+
|
|
79
|
+
/* Formatted input when the value is positive */
|
|
80
|
+
div.my-currency-input :global(input.currencyInput__formatted--positive) { /* ... */}
|
|
81
|
+
|
|
82
|
+
/* Formatted input when the value is negative */
|
|
83
|
+
div.my-currency-input :global(input.currencyInput__formatted--negative) { /* ... */}
|
|
84
|
+
</style>
|
|
34
85
|
```
|
|
35
86
|
|
|
36
|
-
|
|
87
|
+
## Contributing
|
|
88
|
+
|
|
89
|
+
Here's ways in which you can contribute:
|
|
90
|
+
- Found a bug? Open a [new issue](https://github.com/Canutin/svelte-currency-input/issues/new)
|
|
91
|
+
- Browse our [existing issues](https://github.com/Canutin/svelte-currency-input/issues)
|
|
92
|
+
- Submit a [pull request](https://github.com/Canutin/svelte-currency-input/pulls)
|
|
93
|
+
|
|
94
|
+
## Developing
|
|
37
95
|
|
|
38
|
-
|
|
96
|
+
This package was generated with [SvelteKit](https://kit.svelte.dev/).
|
|
97
|
+
Install dependencies with `npm install`, then start a development server:
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
npm run dev
|
|
101
|
+
|
|
102
|
+
# or start the server and open the app in a new browser tab
|
|
103
|
+
npm run dev -- --open
|
|
104
|
+
```
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canutin/svelte-currency-input",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"devDependencies": {
|
|
5
5
|
"@playwright/test": "^1.25.0",
|
|
6
6
|
"@sveltejs/adapter-auto": "next",
|
|
7
7
|
"@sveltejs/kit": "next",
|
|
8
|
-
"@sveltejs/package": "
|
|
8
|
+
"@sveltejs/package": "next",
|
|
9
9
|
"@typescript-eslint/eslint-plugin": "^5.27.0",
|
|
10
10
|
"@typescript-eslint/parser": "^5.27.0",
|
|
11
11
|
"eslint": "^8.16.0",
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
"eslint-plugin-svelte3": "^4.0.0",
|
|
14
14
|
"prettier": "^2.6.2",
|
|
15
15
|
"prettier-plugin-svelte": "^2.7.0",
|
|
16
|
-
"sass": "^1.54.9",
|
|
17
16
|
"svelte": "^3.44.0",
|
|
18
17
|
"svelte-check": "^2.7.1",
|
|
19
18
|
"svelte-preprocess": "^4.10.6",
|
|
@@ -22,121 +21,120 @@
|
|
|
22
21
|
"vite": "^3.1.0"
|
|
23
22
|
},
|
|
24
23
|
"type": "module",
|
|
25
|
-
"description": "
|
|
26
|
-
"main": "svelte.config.js",
|
|
24
|
+
"description": "An input field that formats numbers to currency as you type",
|
|
27
25
|
"dependencies": {
|
|
28
|
-
"acorn": "^8.8.0",
|
|
29
26
|
"abbrev": "^1.1.1",
|
|
27
|
+
"acorn": "^8.8.0",
|
|
28
|
+
"acorn-jsx": "^5.3.2",
|
|
30
29
|
"agent-base": "^6.0.2",
|
|
31
30
|
"ajv": "^6.12.6",
|
|
32
|
-
"acorn-jsx": "^5.3.2",
|
|
33
31
|
"ansi-regex": "^5.0.1",
|
|
34
32
|
"ansi-styles": "^4.3.0",
|
|
35
33
|
"anymatch": "^3.1.2",
|
|
36
|
-
"argparse": "^2.0.1",
|
|
37
34
|
"aproba": "^2.0.0",
|
|
38
35
|
"are-we-there-yet": "^2.0.0",
|
|
36
|
+
"argparse": "^2.0.1",
|
|
39
37
|
"array-union": "^2.1.0",
|
|
40
38
|
"async-sema": "^3.1.1",
|
|
41
39
|
"balanced-match": "^1.0.2",
|
|
42
40
|
"binary-extensions": "^2.2.0",
|
|
43
41
|
"bindings": "^1.5.0",
|
|
44
|
-
"braces": "^3.0.2",
|
|
45
42
|
"brace-expansion": "^1.1.11",
|
|
43
|
+
"braces": "^3.0.2",
|
|
46
44
|
"buffer-crc32": "^0.2.13",
|
|
45
|
+
"callsites": "^3.1.0",
|
|
47
46
|
"chalk": "^4.1.2",
|
|
48
47
|
"chokidar": "^3.5.3",
|
|
49
|
-
"callsites": "^3.1.0",
|
|
50
|
-
"color-convert": "^2.0.1",
|
|
51
48
|
"chownr": "^2.0.0",
|
|
49
|
+
"color-convert": "^2.0.1",
|
|
52
50
|
"color-name": "^1.1.4",
|
|
53
51
|
"color-support": "^1.1.3",
|
|
54
52
|
"concat-map": "^0.0.1",
|
|
53
|
+
"console-control-strings": "^1.1.0",
|
|
55
54
|
"cookie": "^0.5.0",
|
|
56
55
|
"cross-spawn": "^7.0.3",
|
|
57
|
-
"console-control-strings": "^1.1.0",
|
|
58
56
|
"data-uri-to-buffer": "^4.0.0",
|
|
59
57
|
"debug": "^4.3.4",
|
|
60
|
-
"deepmerge": "^4.2.2",
|
|
61
|
-
"delegates": "^1.0.0",
|
|
62
58
|
"dedent-js": "^1.0.1",
|
|
63
59
|
"deep-is": "^0.1.4",
|
|
60
|
+
"deepmerge": "^4.2.2",
|
|
61
|
+
"delegates": "^1.0.0",
|
|
64
62
|
"detect-indent": "^6.1.0",
|
|
65
63
|
"detect-libc": "^2.0.1",
|
|
66
64
|
"devalue": "^3.1.3",
|
|
67
65
|
"dir-glob": "^3.0.1",
|
|
68
66
|
"doctrine": "^3.0.0",
|
|
69
67
|
"emoji-regex": "^8.0.0",
|
|
70
|
-
"es6-promise": "^3.3.1",
|
|
71
68
|
"encoding": "^0.1.13",
|
|
69
|
+
"es6-promise": "^3.3.1",
|
|
72
70
|
"esbuild": "^0.15.7",
|
|
73
71
|
"esbuild-darwin-64": "^0.15.7",
|
|
74
72
|
"escape-string-regexp": "^4.0.0",
|
|
75
73
|
"eslint-scope": "^5.1.1",
|
|
76
|
-
"eslint-visitor-keys": "^3.3.0",
|
|
77
74
|
"eslint-utils": "^3.0.0",
|
|
78
|
-
"
|
|
75
|
+
"eslint-visitor-keys": "^3.3.0",
|
|
79
76
|
"espree": "^9.4.0",
|
|
80
77
|
"esquery": "^1.4.0",
|
|
81
78
|
"esrecurse": "^4.3.0",
|
|
79
|
+
"estraverse": "^4.3.0",
|
|
82
80
|
"estree-walker": "^2.0.2",
|
|
83
|
-
"fast-deep-equal": "^3.1.3",
|
|
84
81
|
"esutils": "^2.0.3",
|
|
82
|
+
"fast-deep-equal": "^3.1.3",
|
|
85
83
|
"fast-glob": "^3.2.12",
|
|
86
84
|
"fast-json-stable-stringify": "^2.1.0",
|
|
87
85
|
"fast-levenshtein": "^2.0.6",
|
|
86
|
+
"fastq": "^1.13.0",
|
|
88
87
|
"fetch-blob": "^3.2.0",
|
|
89
88
|
"file-entry-cache": "^6.0.1",
|
|
90
|
-
"fastq": "^1.13.0",
|
|
91
89
|
"file-uri-to-path": "^1.0.0",
|
|
92
|
-
"find-up": "^5.0.0",
|
|
93
90
|
"fill-range": "^7.0.1",
|
|
91
|
+
"find-up": "^5.0.0",
|
|
94
92
|
"flat-cache": "^3.0.4",
|
|
95
93
|
"flatted": "^3.2.7",
|
|
96
94
|
"formdata-polyfill": "^4.0.10",
|
|
97
95
|
"fs-minipass": "^2.1.0",
|
|
96
|
+
"fs.realpath": "^1.0.0",
|
|
98
97
|
"fsevents": "^2.3.2",
|
|
99
98
|
"function-bind": "^1.1.1",
|
|
100
|
-
"fs.realpath": "^1.0.0",
|
|
101
99
|
"functional-red-black-tree": "^1.0.1",
|
|
102
|
-
"glob": "^7.2.3",
|
|
103
100
|
"gauge": "^3.0.2",
|
|
101
|
+
"glob": "^7.2.3",
|
|
104
102
|
"glob-parent": "^5.1.2",
|
|
105
103
|
"globals": "^13.17.0",
|
|
106
104
|
"globalyzer": "^0.1.0",
|
|
107
105
|
"globby": "^11.1.0",
|
|
108
106
|
"globrex": "^0.1.2",
|
|
109
107
|
"graceful-fs": "^4.2.10",
|
|
110
|
-
"has": "^1.0.3",
|
|
111
108
|
"grapheme-splitter": "^1.0.4",
|
|
109
|
+
"has": "^1.0.3",
|
|
112
110
|
"has-flag": "^4.0.0",
|
|
113
111
|
"has-unicode": "^2.0.1",
|
|
114
112
|
"https-proxy-agent": "^5.0.1",
|
|
115
113
|
"iconv-lite": "^0.6.3",
|
|
116
114
|
"ignore": "^5.2.0",
|
|
115
|
+
"immutable": "^4.1.0",
|
|
117
116
|
"import-fresh": "^3.3.0",
|
|
118
117
|
"imurmurhash": "^0.1.4",
|
|
119
|
-
"immutable": "^4.1.0",
|
|
120
118
|
"inflight": "^1.0.6",
|
|
121
119
|
"inherits": "^2.0.4",
|
|
122
120
|
"is-binary-path": "^2.1.0",
|
|
123
|
-
"is-extglob": "^2.1.1",
|
|
124
121
|
"is-core-module": "^2.10.0",
|
|
125
|
-
"is-
|
|
122
|
+
"is-extglob": "^2.1.1",
|
|
126
123
|
"is-fullwidth-code-point": "^3.0.0",
|
|
124
|
+
"is-glob": "^4.0.3",
|
|
127
125
|
"is-number": "^7.0.0",
|
|
128
126
|
"isexe": "^2.0.0",
|
|
129
127
|
"js-sdsl": "^4.1.4",
|
|
130
128
|
"js-yaml": "^4.1.0",
|
|
131
129
|
"json-schema-traverse": "^0.4.1",
|
|
132
|
-
"kleur": "^4.1.5",
|
|
133
|
-
"locate-path": "^6.0.0",
|
|
134
130
|
"json-stable-stringify-without-jsonify": "^1.0.1",
|
|
131
|
+
"kleur": "^4.1.5",
|
|
135
132
|
"levn": "^0.4.1",
|
|
133
|
+
"locate-path": "^6.0.0",
|
|
136
134
|
"lodash.merge": "^4.6.2",
|
|
137
135
|
"lower-case": "^2.0.2",
|
|
138
|
-
"magic-string": "^0.26.3",
|
|
139
136
|
"lru-cache": "^6.0.0",
|
|
137
|
+
"magic-string": "^0.26.3",
|
|
140
138
|
"make-dir": "^3.1.0",
|
|
141
139
|
"merge2": "^1.4.1",
|
|
142
140
|
"micromatch": "^4.0.5",
|
|
@@ -145,67 +143,67 @@
|
|
|
145
143
|
"minimatch": "^3.1.2",
|
|
146
144
|
"minimist": "^1.2.6",
|
|
147
145
|
"minipass": "^3.3.4",
|
|
148
|
-
"mkdirp": "^0.5.6",
|
|
149
146
|
"minizlib": "^2.1.2",
|
|
147
|
+
"mkdirp": "^0.5.6",
|
|
150
148
|
"mri": "^1.2.0",
|
|
151
|
-
"ms": "^2.1.2",
|
|
152
149
|
"mrmime": "^1.0.1",
|
|
150
|
+
"ms": "^2.1.2",
|
|
153
151
|
"nanoid": "^3.3.4",
|
|
154
152
|
"natural-compare": "^1.4.0",
|
|
155
|
-
"node-domexception": "^1.0.0",
|
|
156
153
|
"no-case": "^3.0.4",
|
|
154
|
+
"node-domexception": "^1.0.0",
|
|
157
155
|
"node-fetch": "^3.2.10",
|
|
156
|
+
"node-gyp-build": "^4.5.0",
|
|
158
157
|
"nopt": "^5.0.0",
|
|
159
158
|
"normalize-path": "^3.0.0",
|
|
160
|
-
"object-assign": "^4.1.1",
|
|
161
159
|
"npmlog": "^5.0.1",
|
|
160
|
+
"object-assign": "^4.1.1",
|
|
162
161
|
"once": "^1.4.0",
|
|
163
|
-
"node-gyp-build": "^4.5.0",
|
|
164
162
|
"optionator": "^0.9.1",
|
|
165
163
|
"p-limit": "^3.1.0",
|
|
166
164
|
"p-locate": "^5.0.0",
|
|
165
|
+
"parent-module": "^1.0.1",
|
|
167
166
|
"pascal-case": "^3.1.2",
|
|
168
167
|
"path-exists": "^4.0.0",
|
|
169
168
|
"path-is-absolute": "^1.0.1",
|
|
170
169
|
"path-key": "^3.1.1",
|
|
171
|
-
"parent-module": "^1.0.1",
|
|
172
170
|
"path-parse": "^1.0.7",
|
|
173
|
-
"picocolors": "^1.0.0",
|
|
174
171
|
"path-type": "^4.0.0",
|
|
172
|
+
"picocolors": "^1.0.0",
|
|
175
173
|
"picomatch": "^2.3.1",
|
|
176
174
|
"playwright-core": "^1.25.2",
|
|
177
175
|
"postcss": "^8.4.16",
|
|
178
176
|
"prelude-ls": "^1.2.1",
|
|
179
177
|
"punycode": "^2.1.1",
|
|
180
178
|
"queue-microtask": "^1.2.3",
|
|
181
|
-
"readdirp": "^3.6.0",
|
|
182
179
|
"readable-stream": "^3.6.0",
|
|
183
|
-
"
|
|
180
|
+
"readdirp": "^3.6.0",
|
|
184
181
|
"regexparam": "^2.0.1",
|
|
182
|
+
"regexpp": "^3.2.0",
|
|
185
183
|
"resolve": "^1.22.1",
|
|
186
184
|
"resolve-from": "^5.0.0",
|
|
187
|
-
"rimraf": "^3.0.2",
|
|
188
185
|
"reusify": "^1.0.4",
|
|
186
|
+
"rimraf": "^3.0.2",
|
|
189
187
|
"rollup": "^2.78.1",
|
|
190
188
|
"rollup-pluginutils": "^2.8.2",
|
|
191
189
|
"run-parallel": "^1.2.0",
|
|
192
190
|
"sade": "^1.8.1",
|
|
193
191
|
"safe-buffer": "^5.2.1",
|
|
194
192
|
"safer-buffer": "^2.1.2",
|
|
195
|
-
"semver": "^7.3.7",
|
|
196
193
|
"sander": "^0.5.1",
|
|
194
|
+
"semver": "^7.3.7",
|
|
197
195
|
"set-blocking": "^2.0.0",
|
|
198
196
|
"set-cookie-parser": "^2.5.1",
|
|
199
197
|
"shebang-command": "^2.0.0",
|
|
200
198
|
"shebang-regex": "^3.0.0",
|
|
201
199
|
"signal-exit": "^3.0.7",
|
|
202
|
-
"slash": "^3.0.0",
|
|
203
200
|
"sirv": "^2.0.2",
|
|
201
|
+
"slash": "^3.0.0",
|
|
204
202
|
"sorcery": "^0.10.0",
|
|
205
203
|
"source-map-js": "^1.0.2",
|
|
206
|
-
"string-width": "^4.2.3",
|
|
207
204
|
"sourcemap-codec": "^1.4.8",
|
|
208
205
|
"string_decoder": "^1.3.0",
|
|
206
|
+
"string-width": "^4.2.3",
|
|
209
207
|
"strip-ansi": "^6.0.1",
|
|
210
208
|
"strip-indent": "^3.0.0",
|
|
211
209
|
"strip-json-comments": "^3.1.1",
|
|
@@ -217,18 +215,18 @@
|
|
|
217
215
|
"text-table": "^0.2.0",
|
|
218
216
|
"tiny-glob": "^0.2.9",
|
|
219
217
|
"to-regex-range": "^5.0.1",
|
|
220
|
-
"tr46": "^0.0.3",
|
|
221
218
|
"totalist": "^3.0.0",
|
|
219
|
+
"tr46": "^0.0.3",
|
|
222
220
|
"tsutils": "^3.21.0",
|
|
223
|
-
"type-fest": "^0.20.2",
|
|
224
221
|
"type-check": "^0.4.0",
|
|
222
|
+
"type-fest": "^0.20.2",
|
|
225
223
|
"undici": "^5.10.0",
|
|
226
224
|
"uri-js": "^4.4.1",
|
|
227
225
|
"util-deprecate": "^1.0.2",
|
|
228
226
|
"web-streams-polyfill": "^3.2.1",
|
|
229
227
|
"webidl-conversions": "^3.0.1",
|
|
230
|
-
"which": "^2.0.2",
|
|
231
228
|
"whatwg-url": "^5.0.0",
|
|
229
|
+
"which": "^2.0.2",
|
|
232
230
|
"wide-align": "^1.1.5",
|
|
233
231
|
"word-wrap": "^1.2.3",
|
|
234
232
|
"worktop": "^0.8.0-next.14",
|
|
@@ -248,8 +246,6 @@
|
|
|
248
246
|
"homepage": "https://github.com/Canutin/svelte-currency-input#readme",
|
|
249
247
|
"exports": {
|
|
250
248
|
"./package.json": "./package.json",
|
|
251
|
-
"./CurrencyInput.svelte": "./CurrencyInput.svelte"
|
|
252
|
-
|
|
253
|
-
},
|
|
254
|
-
"svelte": "./index.js"
|
|
249
|
+
"./CurrencyInput.svelte": "./CurrencyInput.svelte"
|
|
250
|
+
}
|
|
255
251
|
}
|
package/index.d.ts
DELETED
|
File without changes
|
package/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
// Reexport your entry components here
|