@veevarts/design-system 2.18.0 → 2.20.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.
@@ -9,6 +9,8 @@ export interface MetaCardRowProps {
9
9
  label: string;
10
10
  /** Associates the caption with the control it labels. */
11
11
  htmlFor?: string;
12
+ /** Marks the caption with a red asterisk; pair it with the control's own required state. */
13
+ required?: boolean;
12
14
  children: ReactNode;
13
15
  className?: string;
14
16
  'data-testid'?: string;
@@ -11,6 +11,7 @@ export interface ReasonSelectProps {
11
11
  value: string | null;
12
12
  onChange: (id: string) => void;
13
13
  error?: string;
14
+ isRequired?: boolean;
14
15
  labels?: ReasonSelectLabels;
15
16
  className?: string;
16
17
  'data-testid'?: string;
@@ -83,6 +83,8 @@ export interface SummaryTotalRow {
83
83
  amount: Money;
84
84
  /** Stable id; when set and `onRemoveTotalRow` exists, the row shows the remove control (e.g. one row per removable discount). */
85
85
  id?: string;
86
+ /** Tone of the amount: `'success'` paints it in the success color (e.g. a discount); default inherits the row tone. */
87
+ amountTone?: 'default' | 'success';
86
88
  }
87
89
  /**
88
90
  * A post-total row — the same flat shape as {@link SummaryTotalRow}; rows with
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@veevarts/design-system",
3
3
  "private": false,
4
- "version": "2.18.0",
4
+ "version": "2.20.0",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",