@npm-zenwork/tax-remittance-ui 0.10.0 → 0.11.0
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/dist/components/dashboard/dashboardMockData.d.ts +4 -0
- package/dist/components/ui/CalendarPicker.d.ts +13 -1
- package/dist/index.cjs +21 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +9225 -9107
- package/dist/index.mjs.map +1 -1
- package/dist/lib/paymentsNavigation.d.ts +13 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DashboardPaymentStatus } from './dashboardUtils';
|
|
2
|
+
import { PaymentCategory } from '../../lib/paymentsNavigation';
|
|
2
3
|
export interface AttentionAlert {
|
|
3
4
|
/** Composite `category-id`, unique across both payment categories. */
|
|
4
5
|
id: string;
|
|
@@ -30,6 +31,9 @@ export interface RecentPaymentRow {
|
|
|
30
31
|
statusLabel: string;
|
|
31
32
|
formType: string;
|
|
32
33
|
amount: number;
|
|
34
|
+
/** Which half of the Tax Payments table this row lives in — carried so
|
|
35
|
+
* "View details" can preselect the page's payment-type filter. */
|
|
36
|
+
category: PaymentCategory;
|
|
33
37
|
}
|
|
34
38
|
export interface UpcomingPaymentRow {
|
|
35
39
|
id: string;
|
|
@@ -13,5 +13,17 @@ export interface CalendarPickerProps {
|
|
|
13
13
|
/** Grays out and disallows picking a date the caller doesn't consider valid (e.g. weekends, an out-of-range date). */
|
|
14
14
|
isDateSelectable?: (date: Date) => boolean;
|
|
15
15
|
monthLabel?: (year: number, monthIndex: number) => string;
|
|
16
|
+
/**
|
|
17
|
+
* Swaps the header's static month label for month + year dropdowns, spanning
|
|
18
|
+
* these years inclusive. A field whose answer can sit decades back — a date
|
|
19
|
+
* of birth — is unreachable by month arrows alone; one bound to the months
|
|
20
|
+
* either side of today (a settlement date) should leave this off.
|
|
21
|
+
*/
|
|
22
|
+
yearRange?: {
|
|
23
|
+
from: number;
|
|
24
|
+
to: number;
|
|
25
|
+
};
|
|
26
|
+
/** Describes the field for screen readers on the icon button. */
|
|
27
|
+
ariaLabel?: string;
|
|
16
28
|
}
|
|
17
|
-
export declare function CalendarPicker({ value, onChange, onBlur, parseValue, formatValue, placeholder, disabled, hasError, isDateSelectable, monthLabel, }: CalendarPickerProps): import("react").JSX.Element;
|
|
29
|
+
export declare function CalendarPicker({ value, onChange, onBlur, parseValue, formatValue, placeholder, disabled, hasError, isDateSelectable, monthLabel, yearRange, ariaLabel, }: CalendarPickerProps): import("react").JSX.Element;
|