@veevarts/design-system 1.12.6 → 1.12.7
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.
|
@@ -60,6 +60,20 @@ export interface CashTenderFormProps {
|
|
|
60
60
|
* Disable interactions (e.g. while submitting).
|
|
61
61
|
*/
|
|
62
62
|
isDisabled?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Auto-focus the Cash Received field when this component mounts.
|
|
65
|
+
* Pair with `key={...}` from the host to re-trigger focus on every
|
|
66
|
+
* sub-payment (the form re-mounts and `autoFocus` fires again).
|
|
67
|
+
* The built-in `onFocus` already selects the value, so a cashier
|
|
68
|
+
* landing here can overwrite the existing amount with a single
|
|
69
|
+
* keystroke.
|
|
70
|
+
*
|
|
71
|
+
* Default `false` — the field is unfocused at mount. Hosts opt in
|
|
72
|
+
* when their flow guarantees the cashier just navigated TO this
|
|
73
|
+
* tender (e.g. selecting Cash from the method picker, advancing to
|
|
74
|
+
* the next split sub-payment).
|
|
75
|
+
*/
|
|
76
|
+
autoFocus?: boolean;
|
|
63
77
|
/**
|
|
64
78
|
* Inline test id forwarded to the root element.
|
|
65
79
|
*/
|
|
@@ -37,6 +37,16 @@ export interface CheckTenderFormProps {
|
|
|
37
37
|
/** Hide the bank name field when the host doesn't care. */
|
|
38
38
|
hideBankName?: boolean;
|
|
39
39
|
isDisabled?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Auto-focus the Check Number field when this component mounts.
|
|
42
|
+
* Pair with `key={...}` from the host to re-trigger focus on every
|
|
43
|
+
* sub-payment (the form re-mounts and `autoFocus` fires again).
|
|
44
|
+
* Default `false` — the field is unfocused at mount. Hosts opt in
|
|
45
|
+
* when their flow guarantees the cashier just navigated TO this
|
|
46
|
+
* tender (e.g. selecting Check from the method picker, advancing
|
|
47
|
+
* to the next split sub-payment).
|
|
48
|
+
*/
|
|
49
|
+
autoFocus?: boolean;
|
|
40
50
|
'data-testid'?: string;
|
|
41
51
|
className?: string;
|
|
42
52
|
}
|
|
@@ -25,6 +25,19 @@ export interface PaymentSubAmountInputProps {
|
|
|
25
25
|
* + locale).
|
|
26
26
|
*/
|
|
27
27
|
errorMessage?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Auto-focus the amount field when this component mounts. Pair
|
|
30
|
+
* with `key={...}` from the host to re-trigger focus on every
|
|
31
|
+
* sub-payment (the input re-mounts each time and `autoFocus`
|
|
32
|
+
* fires again). The built-in `onFocus` already selects the
|
|
33
|
+
* value, so a cashier landing here can overwrite the placeholder
|
|
34
|
+
* with a single keystroke.
|
|
35
|
+
*
|
|
36
|
+
* Default `false` — the input is unfocused at mount. Hosts opt in
|
|
37
|
+
* when their flow guarantees the cashier just navigated TO this
|
|
38
|
+
* step (e.g. opening Split, advancing to Payment #N).
|
|
39
|
+
*/
|
|
40
|
+
autoFocus?: boolean;
|
|
28
41
|
'data-testid'?: string;
|
|
29
42
|
className?: string;
|
|
30
43
|
}
|