@affinda/react 0.0.22 → 0.0.24
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/README.md +119 -36
- package/dist/generated/components.d.ts +12 -0
- package/dist/generated/components.js +36 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -26,13 +26,13 @@ defineCustomElements();
|
|
|
26
26
|
### 2. Use Components
|
|
27
27
|
|
|
28
28
|
```tsx
|
|
29
|
-
import { Button, Navbar, NavItem
|
|
29
|
+
import { Button, Navbar, NavItem } from '@affinda/react';
|
|
30
30
|
|
|
31
31
|
function App() {
|
|
32
32
|
return (
|
|
33
33
|
<div>
|
|
34
|
+
{/* Navbar displays the default Affinda logo automatically */}
|
|
34
35
|
<Navbar>
|
|
35
|
-
<Logo slot="logo" />
|
|
36
36
|
<div slot="start">
|
|
37
37
|
<NavItem href="/products">Products</NavItem>
|
|
38
38
|
</div>
|
|
@@ -126,7 +126,11 @@ import { Button, Heading, TypographyLockup } from '@affinda/react';
|
|
|
126
126
|
- **PaperclipDecoration** - Decorative paperclip vector for hero sections
|
|
127
127
|
|
|
128
128
|
**Footer:**
|
|
129
|
-
- **Footer** / AfFooter -
|
|
129
|
+
- **Footer** / AfFooter - Slot-based footer layout component
|
|
130
|
+
- **FooterColumn** / AfFooterColumn - Navigation column for footer
|
|
131
|
+
- **FooterLink** / AfFooterLink - Styled link for footer navigation
|
|
132
|
+
- **SocialLink** / AfSocialLink - Circular social media icon link
|
|
133
|
+
- **ContactItem** / AfContactItem - Label/value pair for contact info
|
|
130
134
|
|
|
131
135
|
## Quick Start Components
|
|
132
136
|
|
|
@@ -373,16 +377,22 @@ import { HeroSection, PaperclipDecoration } from '@affinda/react';
|
|
|
373
377
|
|
|
374
378
|
Site-wide navigation header with responsive design and mobile menu support.
|
|
375
379
|
|
|
376
|
-
**
|
|
377
|
-
- `
|
|
380
|
+
**Props:**
|
|
381
|
+
- `showDefaultLogo` (boolean, default: `true`) - Whether to show the default Affinda logo when no logo slot content is provided
|
|
382
|
+
|
|
383
|
+
**Slots:**
|
|
384
|
+
- `logo` - Brand logo (left side) - *optional*, defaults to Affinda logo
|
|
378
385
|
- `start` - Primary navigation links (center-left)
|
|
379
386
|
- `end` - Secondary navigation and actions (right side)
|
|
380
387
|
- `button` - Call-to-action button (far right)
|
|
381
388
|
|
|
382
389
|
```tsx
|
|
383
390
|
<Navbar>
|
|
384
|
-
{/* Logo slot -
|
|
385
|
-
<Logo slot="logo" />
|
|
391
|
+
{/* Logo slot - optional, defaults to Affinda logo */}
|
|
392
|
+
{/* <Logo slot="logo" /> */}
|
|
393
|
+
|
|
394
|
+
{/* Or use a custom logo */}
|
|
395
|
+
{/* <Logo slot="logo" src="/path/to/custom-logo.svg" alt="My Company" /> */}
|
|
386
396
|
|
|
387
397
|
{/* Start slot - main navigation items */}
|
|
388
398
|
<div slot="start">
|
|
@@ -418,13 +428,19 @@ Site-wide navigation header with responsive design and mobile menu support.
|
|
|
418
428
|
```tsx
|
|
419
429
|
// ❌ WRONG - Direct children are ignored
|
|
420
430
|
<Navbar>
|
|
421
|
-
<Logo />
|
|
422
431
|
<NavItem href="/home">Home</NavItem>
|
|
423
432
|
</Navbar>
|
|
424
433
|
|
|
425
434
|
// ✅ CORRECT - Use slots
|
|
426
435
|
<Navbar>
|
|
427
|
-
<
|
|
436
|
+
<div slot="start">
|
|
437
|
+
<NavItem href="/home">Home</NavItem>
|
|
438
|
+
</div>
|
|
439
|
+
</Navbar>
|
|
440
|
+
|
|
441
|
+
// ✅ ALSO CORRECT - Custom logo via slot
|
|
442
|
+
<Navbar>
|
|
443
|
+
<Logo slot="logo" src="/my-logo.svg" alt="My Company" />
|
|
428
444
|
<div slot="start">
|
|
429
445
|
<NavItem href="/home">Home</NavItem>
|
|
430
446
|
</div>
|
|
@@ -561,10 +577,19 @@ import { getIllustrationUrlByScene } from '@affinda/illustrations';
|
|
|
561
577
|
**Logo**
|
|
562
578
|
- Affinda logo component with consistent sizing
|
|
563
579
|
- Use in Navbar and footer
|
|
564
|
-
-
|
|
580
|
+
- Renders as inline SVG for crisp display at any size
|
|
581
|
+
- Supports custom logos via the `src` prop
|
|
582
|
+
|
|
583
|
+
**Props:**
|
|
584
|
+
- `src` (string, optional) - Custom logo image URL. If provided, displays this instead of the default Affinda logo
|
|
585
|
+
- `alt` (string, default: "Affinda") - Alt text for the logo
|
|
565
586
|
|
|
566
587
|
```tsx
|
|
588
|
+
// Default Affinda logo
|
|
567
589
|
<Logo />
|
|
590
|
+
|
|
591
|
+
// Custom logo
|
|
592
|
+
<Logo src="/path/to/my-logo.svg" alt="My Company" />
|
|
568
593
|
```
|
|
569
594
|
|
|
570
595
|
**ColorSwatch**
|
|
@@ -653,12 +678,12 @@ function Hero() {
|
|
|
653
678
|
### Navigation
|
|
654
679
|
|
|
655
680
|
```tsx
|
|
656
|
-
import { Navbar, NavItem,
|
|
681
|
+
import { Navbar, NavItem, Button } from '@affinda/react';
|
|
657
682
|
|
|
658
683
|
function Header() {
|
|
659
684
|
return (
|
|
685
|
+
// Navbar displays the default Affinda logo automatically
|
|
660
686
|
<Navbar>
|
|
661
|
-
<Logo slot="logo" />
|
|
662
687
|
<div slot="start">
|
|
663
688
|
<NavItem hierarchy="primary" variant="01" href="/">
|
|
664
689
|
Home
|
|
@@ -757,45 +782,103 @@ When generating Affinda UI code:
|
|
|
757
782
|
|
|
758
783
|
### Footer
|
|
759
784
|
|
|
760
|
-
A
|
|
785
|
+
A flexible, slot-based footer component for composing marketing page footers.
|
|
761
786
|
|
|
762
787
|
```tsx
|
|
763
|
-
import {
|
|
788
|
+
import {
|
|
789
|
+
Footer,
|
|
790
|
+
FooterColumn,
|
|
791
|
+
FooterLink,
|
|
792
|
+
SocialLink,
|
|
793
|
+
ContactItem,
|
|
794
|
+
Logo
|
|
795
|
+
} from '@affinda/react';
|
|
764
796
|
|
|
765
797
|
<Footer
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
youtubeUrl="https://www.youtube.com/@affinda"
|
|
770
|
-
githubUrl="https://github.com/affinda"
|
|
771
|
-
statusUrl="https://status.affinda.com"
|
|
798
|
+
copyrightText="© 2025 Your Company. All rights reserved."
|
|
799
|
+
statusText="All systems are operational"
|
|
800
|
+
statusUrl="https://status.example.com"
|
|
772
801
|
systemsOperational={true}
|
|
802
|
+
showStatus={true}
|
|
773
803
|
>
|
|
804
|
+
{/* Logo */}
|
|
774
805
|
<Logo slot="logo" />
|
|
806
|
+
|
|
807
|
+
{/* Social Links */}
|
|
808
|
+
<div slot="social" style={{ display: 'flex', gap: '12px' }}>
|
|
809
|
+
<SocialLink href="https://linkedin.com/company/..." icon="linkedin" label="LinkedIn" />
|
|
810
|
+
<SocialLink href="https://youtube.com/..." icon="youtube" label="YouTube" />
|
|
811
|
+
<SocialLink href="https://github.com/..." icon="github" label="GitHub" />
|
|
812
|
+
</div>
|
|
813
|
+
|
|
814
|
+
{/* Contact Info */}
|
|
815
|
+
<div slot="contact" style={{ display: 'flex', flexDirection: 'column', gap: '20px' }}>
|
|
816
|
+
<ContactItem label="Sales enquiries" value="sales@example.com" />
|
|
817
|
+
<ContactItem label="Support" value="support@example.com" />
|
|
818
|
+
</div>
|
|
819
|
+
|
|
820
|
+
{/* Navigation Columns */}
|
|
821
|
+
<div slot="nav" style={{ display: 'contents' }}>
|
|
822
|
+
<FooterColumn heading="Products">
|
|
823
|
+
<FooterLink href="/product-a">Product A</FooterLink>
|
|
824
|
+
<FooterLink href="/product-b">Product B</FooterLink>
|
|
825
|
+
</FooterColumn>
|
|
826
|
+
|
|
827
|
+
<FooterColumn heading="Company">
|
|
828
|
+
<FooterLink href="/about">About</FooterLink>
|
|
829
|
+
<FooterLink href="/careers">Careers</FooterLink>
|
|
830
|
+
<FooterLink href="https://external.com" external>Partner Site</FooterLink>
|
|
831
|
+
</FooterColumn>
|
|
832
|
+
</div>
|
|
833
|
+
|
|
834
|
+
{/* Legal Links */}
|
|
835
|
+
<div slot="legal" style={{ display: 'flex', gap: '24px' }}>
|
|
836
|
+
<a href="/privacy">Privacy policy</a>
|
|
837
|
+
<a href="/terms">Terms of service</a>
|
|
838
|
+
</div>
|
|
839
|
+
|
|
840
|
+
{/* Certification Badges (optional) */}
|
|
841
|
+
<div slot="badges">
|
|
842
|
+
{/* Your certification badge SVGs or images */}
|
|
843
|
+
</div>
|
|
775
844
|
</Footer>
|
|
776
845
|
```
|
|
777
846
|
|
|
778
|
-
**Props:**
|
|
779
|
-
- `
|
|
780
|
-
- `
|
|
781
|
-
- `
|
|
782
|
-
- `
|
|
783
|
-
- `
|
|
784
|
-
- `statusUrl`: Status page URL
|
|
785
|
-
- `systemsOperational`: Boolean indicating system status
|
|
786
|
-
- `copyrightYear`: Copyright year (defaults to current year)
|
|
847
|
+
**Footer Props:**
|
|
848
|
+
- `copyrightText`: Copyright text (e.g., "© 2025 Company. All rights reserved.")
|
|
849
|
+
- `statusText`: Status message text
|
|
850
|
+
- `statusUrl`: Link to status page
|
|
851
|
+
- `systemsOperational`: Boolean for green/red status indicator
|
|
852
|
+
- `showStatus`: Whether to show the status section
|
|
787
853
|
|
|
788
|
-
**Slots:**
|
|
789
|
-
- `logo`:
|
|
790
|
-
- `
|
|
791
|
-
- `
|
|
854
|
+
**Footer Slots:**
|
|
855
|
+
- `logo`: Your logo component
|
|
856
|
+
- `social`: Social media links (use SocialLink components)
|
|
857
|
+
- `contact`: Contact information (use ContactItem components)
|
|
858
|
+
- `nav`: Navigation columns (use FooterColumn + FooterLink components)
|
|
859
|
+
- `legal`: Legal/policy links
|
|
860
|
+
- `badges`: Certification badges
|
|
861
|
+
|
|
862
|
+
**Helper Components:**
|
|
863
|
+
|
|
864
|
+
- **FooterColumn**: Navigation column with heading
|
|
865
|
+
- Props: `heading` (string)
|
|
866
|
+
|
|
867
|
+
- **FooterLink**: Styled footer link
|
|
868
|
+
- Props: `href` (string), `external` (boolean - adds external link icon)
|
|
869
|
+
|
|
870
|
+
- **SocialLink**: Circular social media icon link
|
|
871
|
+
- Props: `href`, `label`, `icon` ('linkedin' | 'youtube' | 'github' | 'twitter' | 'facebook' | 'custom')
|
|
872
|
+
|
|
873
|
+
- **ContactItem**: Label + value pair for contact info
|
|
874
|
+
- Props: `label`, `value`
|
|
792
875
|
|
|
793
876
|
**Features:**
|
|
794
877
|
- Dark inkwell background with mist green text
|
|
795
|
-
-
|
|
796
|
-
-
|
|
878
|
+
- Fully composable via slots
|
|
879
|
+
- Built-in social media icons
|
|
880
|
+
- External link indicators
|
|
797
881
|
- System status indicator
|
|
798
|
-
- Legal links and certification badges
|
|
799
882
|
- Fully responsive design
|
|
800
883
|
|
|
801
884
|
## Using Illustrations
|
|
@@ -8,9 +8,12 @@ import { AfButton as AfButtonElement } from "@affinda/wc/dist/components/af-butt
|
|
|
8
8
|
import { AfCard as AfCardElement } from "@affinda/wc/dist/components/af-card.js";
|
|
9
9
|
import { AfClientCarousel as AfClientCarouselElement } from "@affinda/wc/dist/components/af-client-carousel.js";
|
|
10
10
|
import { AfColorSwatch as AfColorSwatchElement } from "@affinda/wc/dist/components/af-color-swatch.js";
|
|
11
|
+
import { AfContactItem as AfContactItemElement } from "@affinda/wc/dist/components/af-contact-item.js";
|
|
11
12
|
import { AfContainer as AfContainerElement } from "@affinda/wc/dist/components/af-container.js";
|
|
12
13
|
import { AfCtaSection as AfCtaSectionElement } from "@affinda/wc/dist/components/af-cta-section.js";
|
|
13
14
|
import { AfFeatureAccordion as AfFeatureAccordionElement } from "@affinda/wc/dist/components/af-feature-accordion.js";
|
|
15
|
+
import { AfFooterColumn as AfFooterColumnElement } from "@affinda/wc/dist/components/af-footer-column.js";
|
|
16
|
+
import { AfFooterLink as AfFooterLinkElement } from "@affinda/wc/dist/components/af-footer-link.js";
|
|
14
17
|
import { AfFooter as AfFooterElement } from "@affinda/wc/dist/components/af-footer.js";
|
|
15
18
|
import { AfHeading as AfHeadingElement } from "@affinda/wc/dist/components/af-heading.js";
|
|
16
19
|
import { AfHeroSection as AfHeroSectionElement } from "@affinda/wc/dist/components/af-hero-section.js";
|
|
@@ -20,6 +23,7 @@ import { AfLogo as AfLogoElement } from "@affinda/wc/dist/components/af-logo.js"
|
|
|
20
23
|
import { AfNavItem as AfNavItemElement } from "@affinda/wc/dist/components/af-nav-item.js";
|
|
21
24
|
import { AfNavbar as AfNavbarElement } from "@affinda/wc/dist/components/af-navbar.js";
|
|
22
25
|
import { AfSection as AfSectionElement } from "@affinda/wc/dist/components/af-section.js";
|
|
26
|
+
import { AfSocialLink as AfSocialLinkElement } from "@affinda/wc/dist/components/af-social-link.js";
|
|
23
27
|
import { AfTestimonialCarousel as AfTestimonialCarouselElement } from "@affinda/wc/dist/components/af-testimonial-carousel.js";
|
|
24
28
|
import { AfTestimonialStat as AfTestimonialStatElement } from "@affinda/wc/dist/components/af-testimonial-stat.js";
|
|
25
29
|
import { AfTestimonial as AfTestimonialElement } from "@affinda/wc/dist/components/af-testimonial.js";
|
|
@@ -38,6 +42,8 @@ export type AfClientCarouselEvents = NonNullable<unknown>;
|
|
|
38
42
|
export declare const AfClientCarousel: StencilReactComponent<AfClientCarouselElement, AfClientCarouselEvents>;
|
|
39
43
|
export type AfColorSwatchEvents = NonNullable<unknown>;
|
|
40
44
|
export declare const AfColorSwatch: StencilReactComponent<AfColorSwatchElement, AfColorSwatchEvents>;
|
|
45
|
+
export type AfContactItemEvents = NonNullable<unknown>;
|
|
46
|
+
export declare const AfContactItem: StencilReactComponent<AfContactItemElement, AfContactItemEvents>;
|
|
41
47
|
export type AfContainerEvents = NonNullable<unknown>;
|
|
42
48
|
export declare const AfContainer: StencilReactComponent<AfContainerElement, AfContainerEvents>;
|
|
43
49
|
export type AfCtaSectionEvents = NonNullable<unknown>;
|
|
@@ -46,6 +52,10 @@ export type AfFeatureAccordionEvents = NonNullable<unknown>;
|
|
|
46
52
|
export declare const AfFeatureAccordion: StencilReactComponent<AfFeatureAccordionElement, AfFeatureAccordionEvents>;
|
|
47
53
|
export type AfFooterEvents = NonNullable<unknown>;
|
|
48
54
|
export declare const AfFooter: StencilReactComponent<AfFooterElement, AfFooterEvents>;
|
|
55
|
+
export type AfFooterColumnEvents = NonNullable<unknown>;
|
|
56
|
+
export declare const AfFooterColumn: StencilReactComponent<AfFooterColumnElement, AfFooterColumnEvents>;
|
|
57
|
+
export type AfFooterLinkEvents = NonNullable<unknown>;
|
|
58
|
+
export declare const AfFooterLink: StencilReactComponent<AfFooterLinkElement, AfFooterLinkEvents>;
|
|
49
59
|
export type AfHeadingEvents = NonNullable<unknown>;
|
|
50
60
|
export declare const AfHeading: StencilReactComponent<AfHeadingElement, AfHeadingEvents>;
|
|
51
61
|
export type AfHeroSectionEvents = NonNullable<unknown>;
|
|
@@ -62,6 +72,8 @@ export type AfNavbarEvents = NonNullable<unknown>;
|
|
|
62
72
|
export declare const AfNavbar: StencilReactComponent<AfNavbarElement, AfNavbarEvents>;
|
|
63
73
|
export type AfSectionEvents = NonNullable<unknown>;
|
|
64
74
|
export declare const AfSection: StencilReactComponent<AfSectionElement, AfSectionEvents>;
|
|
75
|
+
export type AfSocialLinkEvents = NonNullable<unknown>;
|
|
76
|
+
export declare const AfSocialLink: StencilReactComponent<AfSocialLinkElement, AfSocialLinkEvents>;
|
|
65
77
|
export type AfTestimonialEvents = NonNullable<unknown>;
|
|
66
78
|
export declare const AfTestimonial: StencilReactComponent<AfTestimonialElement, AfTestimonialEvents>;
|
|
67
79
|
export type AfTestimonialCarouselEvents = NonNullable<unknown>;
|
|
@@ -10,9 +10,12 @@ import { AfButton as AfButtonElement, defineCustomElement as defineAfButton } fr
|
|
|
10
10
|
import { AfCard as AfCardElement, defineCustomElement as defineAfCard } from "@affinda/wc/dist/components/af-card.js";
|
|
11
11
|
import { AfClientCarousel as AfClientCarouselElement, defineCustomElement as defineAfClientCarousel } from "@affinda/wc/dist/components/af-client-carousel.js";
|
|
12
12
|
import { AfColorSwatch as AfColorSwatchElement, defineCustomElement as defineAfColorSwatch } from "@affinda/wc/dist/components/af-color-swatch.js";
|
|
13
|
+
import { AfContactItem as AfContactItemElement, defineCustomElement as defineAfContactItem } from "@affinda/wc/dist/components/af-contact-item.js";
|
|
13
14
|
import { AfContainer as AfContainerElement, defineCustomElement as defineAfContainer } from "@affinda/wc/dist/components/af-container.js";
|
|
14
15
|
import { AfCtaSection as AfCtaSectionElement, defineCustomElement as defineAfCtaSection } from "@affinda/wc/dist/components/af-cta-section.js";
|
|
15
16
|
import { AfFeatureAccordion as AfFeatureAccordionElement, defineCustomElement as defineAfFeatureAccordion } from "@affinda/wc/dist/components/af-feature-accordion.js";
|
|
17
|
+
import { AfFooterColumn as AfFooterColumnElement, defineCustomElement as defineAfFooterColumn } from "@affinda/wc/dist/components/af-footer-column.js";
|
|
18
|
+
import { AfFooterLink as AfFooterLinkElement, defineCustomElement as defineAfFooterLink } from "@affinda/wc/dist/components/af-footer-link.js";
|
|
16
19
|
import { AfFooter as AfFooterElement, defineCustomElement as defineAfFooter } from "@affinda/wc/dist/components/af-footer.js";
|
|
17
20
|
import { AfHeading as AfHeadingElement, defineCustomElement as defineAfHeading } from "@affinda/wc/dist/components/af-heading.js";
|
|
18
21
|
import { AfHeroSection as AfHeroSectionElement, defineCustomElement as defineAfHeroSection } from "@affinda/wc/dist/components/af-hero-section.js";
|
|
@@ -22,6 +25,7 @@ import { AfLogo as AfLogoElement, defineCustomElement as defineAfLogo } from "@a
|
|
|
22
25
|
import { AfNavItem as AfNavItemElement, defineCustomElement as defineAfNavItem } from "@affinda/wc/dist/components/af-nav-item.js";
|
|
23
26
|
import { AfNavbar as AfNavbarElement, defineCustomElement as defineAfNavbar } from "@affinda/wc/dist/components/af-navbar.js";
|
|
24
27
|
import { AfSection as AfSectionElement, defineCustomElement as defineAfSection } from "@affinda/wc/dist/components/af-section.js";
|
|
28
|
+
import { AfSocialLink as AfSocialLinkElement, defineCustomElement as defineAfSocialLink } from "@affinda/wc/dist/components/af-social-link.js";
|
|
25
29
|
import { AfTestimonialCarousel as AfTestimonialCarouselElement, defineCustomElement as defineAfTestimonialCarousel } from "@affinda/wc/dist/components/af-testimonial-carousel.js";
|
|
26
30
|
import { AfTestimonialStat as AfTestimonialStatElement, defineCustomElement as defineAfTestimonialStat } from "@affinda/wc/dist/components/af-testimonial-stat.js";
|
|
27
31
|
import { AfTestimonial as AfTestimonialElement, defineCustomElement as defineAfTestimonial } from "@affinda/wc/dist/components/af-testimonial.js";
|
|
@@ -77,6 +81,14 @@ export const AfColorSwatch = /*@__PURE__*/ createComponent({
|
|
|
77
81
|
events: {},
|
|
78
82
|
defineCustomElement: defineAfColorSwatch
|
|
79
83
|
});
|
|
84
|
+
export const AfContactItem = /*@__PURE__*/ createComponent({
|
|
85
|
+
tagName: 'af-contact-item',
|
|
86
|
+
elementClass: AfContactItemElement,
|
|
87
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
88
|
+
react: React,
|
|
89
|
+
events: {},
|
|
90
|
+
defineCustomElement: defineAfContactItem
|
|
91
|
+
});
|
|
80
92
|
export const AfContainer = /*@__PURE__*/ createComponent({
|
|
81
93
|
tagName: 'af-container',
|
|
82
94
|
elementClass: AfContainerElement,
|
|
@@ -109,6 +121,22 @@ export const AfFooter = /*@__PURE__*/ createComponent({
|
|
|
109
121
|
events: {},
|
|
110
122
|
defineCustomElement: defineAfFooter
|
|
111
123
|
});
|
|
124
|
+
export const AfFooterColumn = /*@__PURE__*/ createComponent({
|
|
125
|
+
tagName: 'af-footer-column',
|
|
126
|
+
elementClass: AfFooterColumnElement,
|
|
127
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
128
|
+
react: React,
|
|
129
|
+
events: {},
|
|
130
|
+
defineCustomElement: defineAfFooterColumn
|
|
131
|
+
});
|
|
132
|
+
export const AfFooterLink = /*@__PURE__*/ createComponent({
|
|
133
|
+
tagName: 'af-footer-link',
|
|
134
|
+
elementClass: AfFooterLinkElement,
|
|
135
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
136
|
+
react: React,
|
|
137
|
+
events: {},
|
|
138
|
+
defineCustomElement: defineAfFooterLink
|
|
139
|
+
});
|
|
112
140
|
export const AfHeading = /*@__PURE__*/ createComponent({
|
|
113
141
|
tagName: 'af-heading',
|
|
114
142
|
elementClass: AfHeadingElement,
|
|
@@ -173,6 +201,14 @@ export const AfSection = /*@__PURE__*/ createComponent({
|
|
|
173
201
|
events: {},
|
|
174
202
|
defineCustomElement: defineAfSection
|
|
175
203
|
});
|
|
204
|
+
export const AfSocialLink = /*@__PURE__*/ createComponent({
|
|
205
|
+
tagName: 'af-social-link',
|
|
206
|
+
elementClass: AfSocialLinkElement,
|
|
207
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
208
|
+
react: React,
|
|
209
|
+
events: {},
|
|
210
|
+
defineCustomElement: defineAfSocialLink
|
|
211
|
+
});
|
|
176
212
|
export const AfTestimonial = /*@__PURE__*/ createComponent({
|
|
177
213
|
tagName: 'af-testimonial',
|
|
178
214
|
elementClass: AfTestimonialElement,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export * from './generated/components.js';
|
|
2
|
-
export { AfAspectRatio as AspectRatio, AfButton as Button, AfButtonGroup as ButtonGroup, AfCard as Card, AfClientCarousel as ClientCarousel, AfColorSwatch as ColorSwatch, AfContainer as Container, AfCtaSection as CtaSection, AfFeatureAccordion as FeatureAccordion, AfFooter as Footer, AfHeading as Heading, AfHeroSection as HeroSection, AfIconButton as IconButton, AfLogo as Logo, AfLogoWell as LogoWell, AfNavItem as NavItem, AfNavbar as Navbar, AfSection as Section, AfText as Text, AfTestimonial as Testimonial, AfTestimonialCarousel as TestimonialCarousel, AfTestimonialStat as TestimonialStat, AfTypographyLockup as TypographyLockup } from './generated/components.js';
|
|
2
|
+
export { AfAspectRatio as AspectRatio, AfButton as Button, AfButtonGroup as ButtonGroup, AfCard as Card, AfClientCarousel as ClientCarousel, AfColorSwatch as ColorSwatch, AfContactItem as ContactItem, AfContainer as Container, AfCtaSection as CtaSection, AfFeatureAccordion as FeatureAccordion, AfFooter as Footer, AfFooterColumn as FooterColumn, AfFooterLink as FooterLink, AfHeading as Heading, AfHeroSection as HeroSection, AfIconButton as IconButton, AfLogo as Logo, AfLogoWell as LogoWell, AfNavItem as NavItem, AfNavbar as Navbar, AfSection as Section, AfSocialLink as SocialLink, AfText as Text, AfTestimonial as Testimonial, AfTestimonialCarousel as TestimonialCarousel, AfTestimonialStat as TestimonialStat, AfTypographyLockup as TypographyLockup } from './generated/components.js';
|
|
3
3
|
export * from '@affinda/icons/react';
|
|
4
4
|
export { PaperclipDecoration } from './components/PaperclipDecoration';
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export * from './generated/components.js';
|
|
3
3
|
// Note: defineCustomElements should be imported directly from @affinda/wc/loader/index.js in your app
|
|
4
4
|
// Re-export components without the 'Af' prefix for cleaner React usage
|
|
5
|
-
export { AfAspectRatio as AspectRatio, AfButton as Button, AfButtonGroup as ButtonGroup, AfCard as Card, AfClientCarousel as ClientCarousel, AfColorSwatch as ColorSwatch, AfContainer as Container, AfCtaSection as CtaSection, AfFeatureAccordion as FeatureAccordion, AfFooter as Footer, AfHeading as Heading, AfHeroSection as HeroSection, AfIconButton as IconButton, AfLogo as Logo, AfLogoWell as LogoWell, AfNavItem as NavItem, AfNavbar as Navbar, AfSection as Section, AfText as Text, AfTestimonial as Testimonial, AfTestimonialCarousel as TestimonialCarousel, AfTestimonialStat as TestimonialStat, AfTypographyLockup as TypographyLockup } from './generated/components.js';
|
|
5
|
+
export { AfAspectRatio as AspectRatio, AfButton as Button, AfButtonGroup as ButtonGroup, AfCard as Card, AfClientCarousel as ClientCarousel, AfColorSwatch as ColorSwatch, AfContactItem as ContactItem, AfContainer as Container, AfCtaSection as CtaSection, AfFeatureAccordion as FeatureAccordion, AfFooter as Footer, AfFooterColumn as FooterColumn, AfFooterLink as FooterLink, AfHeading as Heading, AfHeroSection as HeroSection, AfIconButton as IconButton, AfLogo as Logo, AfLogoWell as LogoWell, AfNavItem as NavItem, AfNavbar as Navbar, AfSection as Section, AfSocialLink as SocialLink, AfText as Text, AfTestimonial as Testimonial, AfTestimonialCarousel as TestimonialCarousel, AfTestimonialStat as TestimonialStat, AfTypographyLockup as TypographyLockup } from './generated/components.js';
|
|
6
6
|
// Re-export React icon components from icons package
|
|
7
7
|
export * from '@affinda/icons/react';
|
|
8
8
|
// Export custom React components
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@affinda/react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.24",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@affinda/icons": "^0.0.3",
|
|
19
|
-
"@affinda/wc": "^0.0.
|
|
19
|
+
"@affinda/wc": "^0.0.15",
|
|
20
20
|
"@stencil/react-output-target": "^1.2.0"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|