@veevarts/design-system 2.14.2 → 2.16.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/index.cjs +5 -5
- package/dist/index.js +2736 -2697
- package/dist/patterns/Summary/types.d.ts +2 -0
- package/dist/patterns/shared/usePrefillEdits.d.ts +6 -0
- package/package.json +1 -1
|
@@ -63,6 +63,8 @@ export interface SummaryLineItem {
|
|
|
63
63
|
trailing?: ReactNode;
|
|
64
64
|
/** Tints the whole row with the tone's fill. */
|
|
65
65
|
tone?: RecordTone;
|
|
66
|
+
/** Dims the price while it is being recalculated (e.g. a quantity change not yet confirmed). */
|
|
67
|
+
pending?: boolean;
|
|
66
68
|
}
|
|
67
69
|
/** The "Pay Service fee" radio-toggle row. */
|
|
68
70
|
export interface SummaryServiceFee {
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface PrefillEdits<T> {
|
|
2
|
+
isUntouched: () => boolean;
|
|
3
|
+
markEdited: (emitted: T) => void;
|
|
4
|
+
}
|
|
5
|
+
export declare const usePrefillEdits: <T>(source: T, isSame?: (a: T, b: T) => boolean) => PrefillEdits<T>;
|
|
6
|
+
export declare const useReplaceWhileUntouched: (isUntouched: () => boolean, replace: (text: string) => void) => import('react').RefObject<HTMLInputElement | null>;
|