@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/catalog.json +14 -13
- package/dist/{footerDefaults-zo_Pjl3n.cjs → footerDefaults-C-9-hOSt.cjs} +668 -539
- package/dist/footerDefaults-C-9-hOSt.cjs.map +1 -0
- package/dist/{footerDefaults-CByEGl8Q.js → footerDefaults-DRDmvQb8.js} +684 -555
- package/dist/footerDefaults-DRDmvQb8.js.map +1 -0
- package/dist/icons.cjs +2419 -0
- package/dist/icons.cjs.map +1 -0
- package/dist/icons.d.ts +20 -0
- package/dist/icons.js +2419 -0
- package/dist/icons.js.map +1 -0
- package/dist/index.cjs +4 -1199
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +980 -731
- package/dist/index.d.ts +19 -0
- package/dist/index.js +18 -1213
- package/dist/index.js.map +1 -1
- package/dist/page-spec.cjs +20 -2
- package/dist/page-spec.cjs.map +1 -1
- package/dist/page-spec.d.ts +42 -0
- package/dist/page-spec.js +20 -2
- package/dist/page-spec.js.map +1 -1
- package/dist/render.cjs +28 -3
- package/dist/render.cjs.map +1 -1
- package/dist/render.js +28 -3
- package/dist/render.js.map +1 -1
- package/package.json +6 -2
- package/dist/footerDefaults-CByEGl8Q.js.map +0 -1
- package/dist/footerDefaults-zo_Pjl3n.cjs.map +0 -1
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;
|