@clay-ds/react 0.2.1 → 0.3.1

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.d.ts CHANGED
@@ -389,6 +389,17 @@ export declare const FOOTER_ASSETS: {
389
389
  */
390
390
  export declare const FOOTER_DEFAULTS: Omit<FooterSectionProps, 'logo'>;
391
391
 
392
+ /**
393
+ * Canonical content for the compact (`short`) footer variant.
394
+ *
395
+ * Reuses the full footer's shared bottom bar (social, badges, legal,
396
+ * language, accessibility) and only swaps the navigation for a single
397
+ * row of two-link columns. Spread it the same way as FOOTER_DEFAULTS:
398
+ *
399
+ * <FooterSection {...FOOTER_SHORT_DEFAULTS} logo={{ src, alt, href }} />
400
+ */
401
+ export declare const FOOTER_SHORT_DEFAULTS: Omit<FooterSectionProps, 'logo'>;
402
+
392
403
  export declare interface FooterBadge {
393
404
  src: string;
394
405
  alt: string;
@@ -427,6 +438,12 @@ export declare interface FooterNavLink {
427
438
  export declare const FooterSection: ForwardRefExoticComponent<FooterSectionProps & RefAttributes<HTMLElement>>;
428
439
 
429
440
  export declare interface FooterSectionProps extends Omit<HTMLAttributes<HTMLElement>, 'children'> {
441
+ /**
442
+ * Layout variant.
443
+ * - `full` (default): the multi-column mega footer.
444
+ * - `short`: a compact footer with the logo + a single row of link columns.
445
+ */
446
+ variant?: FooterVariant;
430
447
  logo?: {
431
448
  src: string;
432
449
  alt: string;
@@ -453,6 +470,8 @@ export declare interface FooterSocialLink {
453
470
  icon: ReactNode;
454
471
  }
455
472
 
473
+ export declare type FooterVariant = 'full' | 'short';
474
+
456
475
  export declare interface FormField {
457
476
  name: string;
458
477
  placeholder: string;