@veevarts/design-system 2.17.0 → 2.18.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.
@@ -29,6 +29,10 @@ export interface CashTenderLabels {
29
29
  * `{due}` is replaced with the formatted due amount.
30
30
  */
31
31
  insufficientMessageTemplate?: string;
32
+ exactAmountLabel?: string;
33
+ exactAmountAriaTemplate?: string;
34
+ quickAmountsLabel?: string;
35
+ quickAmountAriaTemplate?: string;
32
36
  }
33
37
  export interface CashTenderFormProps {
34
38
  /**
@@ -70,6 +74,8 @@ export interface CashTenderFormProps {
70
74
  * the guard is value-based. Omit for no cap.
71
75
  */
72
76
  maxAmount?: number;
77
+ quickAmounts?: readonly number[];
78
+ showExactAmount?: boolean;
73
79
  /**
74
80
  * Auto-focus the Cash Received field when this component mounts.
75
81
  * Pair with `key={...}` from the host to re-trigger focus on every
@@ -1,6 +1,7 @@
1
1
  export interface PrefillEdits<T> {
2
2
  isUntouched: () => boolean;
3
3
  markEdited: (emitted: T) => void;
4
+ markUntouched: () => void;
4
5
  }
5
6
  export declare const usePrefillEdits: <T>(source: T, isSame?: (a: T, b: T) => boolean) => PrefillEdits<T>;
6
7
  export declare const useReplaceWhileUntouched: (isUntouched: () => boolean, replace: (text: string) => void) => import('react').RefObject<HTMLInputElement | null>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@veevarts/design-system",
3
3
  "private": false,
4
- "version": "2.17.0",
4
+ "version": "2.18.0",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",