@veevarts/design-system 2.1.0-beta.8 → 2.1.0-beta.9

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.
@@ -12,6 +12,8 @@ export interface ActionBarProps {
12
12
  cartAriaLabel: string;
13
13
  /** Optional caption rendered under the open-layer CTA (e.g. installment breakdown). */
14
14
  ctaCaption?: React.ReactNode;
15
+ /** Optional error rendered ABOVE the CTA, so it clears the screen edge and the thumb. */
16
+ ctaError?: React.ReactNode;
15
17
  /** Expand the summary — the closed-bar cart button opens it on click. */
16
18
  onToggleOpen?: () => void;
17
19
  classNames: SummaryClassNames;
@@ -141,6 +141,8 @@ export interface SummaryClassNames {
141
141
  cta?: string;
142
142
  /** The caption rendered under the CTA. */
143
143
  ctaCaption?: string;
144
+ /** The error rendered next to the CTA. */
145
+ ctaError?: string;
144
146
  /** Mobile compact bottom-bar. */
145
147
  mobileBar?: string;
146
148
  /** Mobile cart button. */
@@ -194,6 +196,13 @@ export interface SummaryProps {
194
196
  * installment breakdown like "$50.75 total · 12 monthly installments…").
195
197
  */
196
198
  ctaCaption?: ReactNode;
199
+ /**
200
+ * An optional error (e.g. a rejected request) shown in danger text next to
201
+ * the CTA: under it in the card layout, ABOVE it in the mobile bottom bar,
202
+ * where the sticky CTA sits at the screen edge and a message under it would
203
+ * hug the edge and sit beneath the thumb. Rendered as `role="alert"`.
204
+ */
205
+ ctaError?: ReactNode;
197
206
  /**
198
207
  * Whether the remove (trash) controls are shown — per-item, per-totals-row
199
208
  * and per-post-total-row alike. Defaults to `true`; pass `false` to hide them
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@veevarts/design-system",
3
3
  "private": false,
4
- "version": "2.1.0-beta.8",
4
+ "version": "2.1.0-beta.9",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",