@nice2dev/ui-money 1.0.17 → 1.0.18
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.
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NiceStandardProps } from '@nice2dev/ui-core';
|
|
2
2
|
import { ExchangeRateProvider } from '../exchange';
|
|
3
3
|
import { Money } from '../types';
|
|
4
4
|
|
|
5
|
-
export interface NiceMoneyProps extends
|
|
5
|
+
export interface NiceMoneyProps extends NiceStandardProps {
|
|
6
6
|
/** Money in minor units (preferred). */
|
|
7
7
|
value?: Money | null;
|
|
8
8
|
/** Convenience: pass major-unit number + currency. */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NiceStandardProps } from '@nice2dev/ui-core';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
3
|
import { Money } from '../types';
|
|
4
4
|
|
|
5
|
-
export interface NicePriceTagProps extends
|
|
5
|
+
export interface NicePriceTagProps extends NiceStandardProps {
|
|
6
6
|
/** Current (sale / final) price. */
|
|
7
7
|
price: Money;
|
|
8
8
|
/** Original price — when set and higher, rendered struck-through. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NiceStandardProps } from '@nice2dev/ui-core';
|
|
2
2
|
import { Money } from '../types';
|
|
3
3
|
|
|
4
4
|
export interface NiceTaxBreakdownLine {
|
|
@@ -9,7 +9,7 @@ export interface NiceTaxBreakdownLine {
|
|
|
9
9
|
/** VAT/tax rate as a fraction (0.23 = 23%). */
|
|
10
10
|
vatRate: number;
|
|
11
11
|
}
|
|
12
|
-
export interface NiceTaxBreakdownProps extends
|
|
12
|
+
export interface NiceTaxBreakdownProps extends NiceStandardProps {
|
|
13
13
|
/** Tax lines (one row per VAT rate, optionally grouped). */
|
|
14
14
|
lines: NiceTaxBreakdownLine[];
|
|
15
15
|
/** Locale used for formatting amounts. Default: browser locale. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nice2dev/ui-money",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.18",
|
|
4
4
|
"description": "Nice2Dev Money & Payments — Money / MoneyInput / CurrencySelector / CreditCardInput / PaymentForm + ISO 4217 catalog, Luhn validation, exchange-rate & payment-processor adapters",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
"prepublishOnly": "npm run build"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@nice2dev/ui-core": "^1.0.
|
|
36
|
+
"@nice2dev/ui-core": "^1.0.18",
|
|
37
37
|
"react": ">=17.0.0",
|
|
38
38
|
"react-dom": ">=17.0.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@nice2dev/ui-core": "^1.0.
|
|
41
|
+
"@nice2dev/ui-core": "^1.0.18",
|
|
42
42
|
"@testing-library/jest-dom": "^6.9.1",
|
|
43
43
|
"@testing-library/react": "^14.0.0",
|
|
44
44
|
"@types/react": "^18.2.0",
|