@affinda/react 0.0.24 → 0.0.26

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.
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ export type NumberBadgeNumber = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
3
+ export type NumberBadgeVariant = 'inCircle' | 'outlined';
4
+ export interface NumberBadgeProps {
5
+ /** The number to display (1-10) */
6
+ number: NumberBadgeNumber;
7
+ /** Visual variant - inCircle shows filled badge, outlined shows just the number */
8
+ variant?: NumberBadgeVariant;
9
+ /** Size of the badge in pixels */
10
+ size?: number;
11
+ /** Additional class name */
12
+ className?: string;
13
+ /** Inline styles */
14
+ style?: React.CSSProperties;
15
+ }
16
+ /**
17
+ * NumberBadge displays numbers 1-10 in either a filled circle or text-only style.
18
+ * Perfect for numbered lists, step indicators, or ordered content.
19
+ */
20
+ export declare const NumberBadge: React.ForwardRefExoticComponent<NumberBadgeProps & React.RefAttributes<HTMLElement>>;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ /**
3
+ * NumberBadge displays numbers 1-10 in either a filled circle or text-only style.
4
+ * Perfect for numbered lists, step indicators, or ordered content.
5
+ */
6
+ export const NumberBadge = React.forwardRef(({ number, variant = 'inCircle', size = 48, className, style, ...props }, ref) => {
7
+ return React.createElement('af-number-badge', {
8
+ ref,
9
+ number,
10
+ variant,
11
+ size,
12
+ class: className,
13
+ style,
14
+ ...props,
15
+ });
16
+ });
17
+ NumberBadge.displayName = 'NumberBadge';
@@ -1,6 +1,4 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- // @ts-nocheck
3
- import * as React from 'react';
4
2
  /**
5
3
  * Decorative paperclip vector graphic for hero sections.
6
4
  *
@@ -0,0 +1,33 @@
1
+ import React from 'react';
2
+ export type TabShape = 'square' | 'pill';
3
+ export interface TabProps {
4
+ /** The text label for the tab */
5
+ label: string;
6
+ /** Whether the tab is currently active/selected */
7
+ active?: boolean;
8
+ /** Whether the tab is disabled */
9
+ disabled?: boolean;
10
+ /** Visual shape variant */
11
+ shape?: TabShape;
12
+ /** Whether to show the icon slot */
13
+ displayIcon?: boolean;
14
+ /** Whether to show the number badge slot */
15
+ displayNumber?: boolean;
16
+ /** Unique value for the tab, used for programmatic selection */
17
+ value?: string;
18
+ /** Additional class name */
19
+ className?: string;
20
+ /** Inline styles */
21
+ style?: React.CSSProperties;
22
+ /** Tab click handler */
23
+ onAfTabClick?: (event: CustomEvent<{
24
+ value?: string;
25
+ }>) => void;
26
+ /** Children (for icon and number slots) */
27
+ children?: React.ReactNode;
28
+ }
29
+ /**
30
+ * Tab component for use within a TabBar.
31
+ * Represents an individual selectable tab with support for icons and number badges.
32
+ */
33
+ export declare const Tab: React.ForwardRefExoticComponent<TabProps & React.RefAttributes<HTMLElement>>;
@@ -0,0 +1,32 @@
1
+ import React from 'react';
2
+ /**
3
+ * Tab component for use within a TabBar.
4
+ * Represents an individual selectable tab with support for icons and number badges.
5
+ */
6
+ export const Tab = React.forwardRef(({ label, active, disabled, shape, displayIcon, displayNumber, value, className, style, onAfTabClick, children, ...props }, ref) => {
7
+ const tabRef = React.useRef(null);
8
+ React.useEffect(() => {
9
+ const el = tabRef.current;
10
+ if (el && onAfTabClick) {
11
+ const handler = (e) => onAfTabClick(e);
12
+ el.addEventListener('afTabClick', handler);
13
+ return () => el.removeEventListener('afTabClick', handler);
14
+ }
15
+ }, [onAfTabClick]);
16
+ // Merge refs
17
+ React.useImperativeHandle(ref, () => tabRef.current);
18
+ return React.createElement('af-tab', {
19
+ ref: tabRef,
20
+ label,
21
+ active,
22
+ disabled,
23
+ shape,
24
+ 'display-icon': displayIcon,
25
+ 'display-number': displayNumber,
26
+ value,
27
+ class: className,
28
+ style,
29
+ ...props,
30
+ }, children);
31
+ });
32
+ Tab.displayName = 'Tab';
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ export type TabBarShape = 'square' | 'pill';
3
+ export type TabBarBreakpoint = 'mobile' | 'desktop';
4
+ export interface TabBarProps {
5
+ /** Visual shape variant for all tabs */
6
+ shape?: TabBarShape;
7
+ /** Responsive breakpoint mode */
8
+ breakpoint?: TabBarBreakpoint;
9
+ /** Additional class name */
10
+ className?: string;
11
+ /** Inline styles */
12
+ style?: React.CSSProperties;
13
+ /** Tab elements */
14
+ children?: React.ReactNode;
15
+ }
16
+ /**
17
+ * TabBar component that contains and manages a group of tabs.
18
+ * Provides horizontal layout, keyboard navigation, and consistent styling.
19
+ */
20
+ export declare const TabBar: React.ForwardRefExoticComponent<TabBarProps & React.RefAttributes<HTMLElement>>;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ /**
3
+ * TabBar component that contains and manages a group of tabs.
4
+ * Provides horizontal layout, keyboard navigation, and consistent styling.
5
+ */
6
+ export const TabBar = React.forwardRef(({ shape, breakpoint, className, style, children, ...props }, ref) => {
7
+ return React.createElement('af-tab-bar', {
8
+ ref,
9
+ shape,
10
+ breakpoint,
11
+ class: className,
12
+ style,
13
+ ...props,
14
+ }, children);
15
+ });
16
+ TabBar.displayName = 'TabBar';
@@ -6,30 +6,56 @@ import { AfAspectRatio as AfAspectRatioElement } from "@affinda/wc/dist/componen
6
6
  import { AfButtonGroup as AfButtonGroupElement } from "@affinda/wc/dist/components/af-button-group.js";
7
7
  import { AfButton as AfButtonElement } from "@affinda/wc/dist/components/af-button.js";
8
8
  import { AfCard as AfCardElement } from "@affinda/wc/dist/components/af-card.js";
9
+ import { AfCheckbox as AfCheckboxElement } from "@affinda/wc/dist/components/af-checkbox.js";
9
10
  import { AfClientCarousel as AfClientCarouselElement } from "@affinda/wc/dist/components/af-client-carousel.js";
10
11
  import { AfColorSwatch as AfColorSwatchElement } from "@affinda/wc/dist/components/af-color-swatch.js";
11
12
  import { AfContactItem as AfContactItemElement } from "@affinda/wc/dist/components/af-contact-item.js";
12
13
  import { AfContainer as AfContainerElement } from "@affinda/wc/dist/components/af-container.js";
13
- import { AfCtaSection as AfCtaSectionElement } from "@affinda/wc/dist/components/af-cta-section.js";
14
14
  import { AfFeatureAccordion as AfFeatureAccordionElement } from "@affinda/wc/dist/components/af-feature-accordion.js";
15
+ import { AfFeatureCard as AfFeatureCardElement } from "@affinda/wc/dist/components/af-feature-card.js";
16
+ import { AfFeatureGrid as AfFeatureGridElement } from "@affinda/wc/dist/components/af-feature-grid.js";
17
+ import { AfFieldset as AfFieldsetElement } from "@affinda/wc/dist/components/af-fieldset.js";
15
18
  import { AfFooterColumn as AfFooterColumnElement } from "@affinda/wc/dist/components/af-footer-column.js";
16
19
  import { AfFooterLink as AfFooterLinkElement } from "@affinda/wc/dist/components/af-footer-link.js";
17
20
  import { AfFooter as AfFooterElement } from "@affinda/wc/dist/components/af-footer.js";
21
+ import { AfGridCallout as AfGridCalloutElement } from "@affinda/wc/dist/components/af-grid-callout.js";
18
22
  import { AfHeading as AfHeadingElement } from "@affinda/wc/dist/components/af-heading.js";
19
23
  import { AfHeroSection as AfHeroSectionElement } from "@affinda/wc/dist/components/af-hero-section.js";
24
+ import { AfIconBox as AfIconBoxElement } from "@affinda/wc/dist/components/af-icon-box.js";
20
25
  import { AfIconButton as AfIconButtonElement } from "@affinda/wc/dist/components/af-icon-button.js";
26
+ import { AfIconText as AfIconTextElement } from "@affinda/wc/dist/components/af-icon-text.js";
27
+ import { AfIcon as AfIconElement } from "@affinda/wc/dist/components/af-icon.js";
28
+ import { AfIllustratedCard as AfIllustratedCardElement } from "@affinda/wc/dist/components/af-illustrated-card.js";
29
+ import { AfImage as AfImageElement } from "@affinda/wc/dist/components/af-image.js";
30
+ import { AfInPageBanner as AfInPageBannerElement } from "@affinda/wc/dist/components/af-in-page-banner.js";
31
+ import { AfInput as AfInputElement } from "@affinda/wc/dist/components/af-input.js";
21
32
  import { AfLogoWell as AfLogoWellElement } from "@affinda/wc/dist/components/af-logo-well.js";
22
33
  import { AfLogo as AfLogoElement } from "@affinda/wc/dist/components/af-logo.js";
34
+ import { AfNavCard as AfNavCardElement } from "@affinda/wc/dist/components/af-nav-card.js";
23
35
  import { AfNavItem as AfNavItemElement } from "@affinda/wc/dist/components/af-nav-item.js";
36
+ import { AfNavMenuNest as AfNavMenuNestElement } from "@affinda/wc/dist/components/af-nav-menu-nest.js";
37
+ import { AfNavMenu as AfNavMenuElement } from "@affinda/wc/dist/components/af-nav-menu.js";
24
38
  import { AfNavbar as AfNavbarElement } from "@affinda/wc/dist/components/af-navbar.js";
39
+ import { AfNumberBadge as AfNumberBadgeElement } from "@affinda/wc/dist/components/af-number-badge.js";
40
+ import { AfProgressLine as AfProgressLineElement } from "@affinda/wc/dist/components/af-progress-line.js";
41
+ import { AfRadio as AfRadioElement } from "@affinda/wc/dist/components/af-radio.js";
25
42
  import { AfSection as AfSectionElement } from "@affinda/wc/dist/components/af-section.js";
26
43
  import { AfSocialLink as AfSocialLinkElement } from "@affinda/wc/dist/components/af-social-link.js";
44
+ import { AfSplitSection as AfSplitSectionElement } from "@affinda/wc/dist/components/af-split-section.js";
45
+ import { AfSwitch as AfSwitchElement } from "@affinda/wc/dist/components/af-switch.js";
46
+ import { AfTabBar as AfTabBarElement } from "@affinda/wc/dist/components/af-tab-bar.js";
47
+ import { AfTab as AfTabElement } from "@affinda/wc/dist/components/af-tab.js";
48
+ import { AfTag as AfTagElement } from "@affinda/wc/dist/components/af-tag.js";
27
49
  import { AfTestimonialCarousel as AfTestimonialCarouselElement } from "@affinda/wc/dist/components/af-testimonial-carousel.js";
28
50
  import { AfTestimonialStat as AfTestimonialStatElement } from "@affinda/wc/dist/components/af-testimonial-stat.js";
29
51
  import { AfTestimonial as AfTestimonialElement } from "@affinda/wc/dist/components/af-testimonial.js";
52
+ import { AfTextImageNest as AfTextImageNestElement } from "@affinda/wc/dist/components/af-text-image-nest.js";
53
+ import { AfTextImage as AfTextImageElement } from "@affinda/wc/dist/components/af-text-image.js";
30
54
  import { AfText as AfTextElement } from "@affinda/wc/dist/components/af-text.js";
55
+ import { AfTextarea as AfTextareaElement } from "@affinda/wc/dist/components/af-textarea.js";
31
56
  import { AfTypographyLockup as AfTypographyLockupElement } from "@affinda/wc/dist/components/af-typography-lockup.js";
32
- import type { StencilReactComponent } from '@stencil/react-output-target/runtime';
57
+ import { AfVideoContainer as AfVideoContainerElement } from "@affinda/wc/dist/components/af-video-container.js";
58
+ import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
33
59
  export type AfAspectRatioEvents = NonNullable<unknown>;
34
60
  export declare const AfAspectRatio: StencilReactComponent<AfAspectRatioElement, AfAspectRatioEvents>;
35
61
  export type AfButtonEvents = NonNullable<unknown>;
@@ -38,6 +64,12 @@ export type AfButtonGroupEvents = NonNullable<unknown>;
38
64
  export declare const AfButtonGroup: StencilReactComponent<AfButtonGroupElement, AfButtonGroupEvents>;
39
65
  export type AfCardEvents = NonNullable<unknown>;
40
66
  export declare const AfCard: StencilReactComponent<AfCardElement, AfCardEvents>;
67
+ export type AfCheckboxEvents = {
68
+ onAfChange: EventName<CustomEvent<{
69
+ checked: boolean;
70
+ }>>;
71
+ };
72
+ export declare const AfCheckbox: StencilReactComponent<AfCheckboxElement, AfCheckboxEvents>;
41
73
  export type AfClientCarouselEvents = NonNullable<unknown>;
42
74
  export declare const AfClientCarousel: StencilReactComponent<AfClientCarouselElement, AfClientCarouselEvents>;
43
75
  export type AfColorSwatchEvents = NonNullable<unknown>;
@@ -46,35 +78,101 @@ export type AfContactItemEvents = NonNullable<unknown>;
46
78
  export declare const AfContactItem: StencilReactComponent<AfContactItemElement, AfContactItemEvents>;
47
79
  export type AfContainerEvents = NonNullable<unknown>;
48
80
  export declare const AfContainer: StencilReactComponent<AfContainerElement, AfContainerEvents>;
49
- export type AfCtaSectionEvents = NonNullable<unknown>;
50
- export declare const AfCtaSection: StencilReactComponent<AfCtaSectionElement, AfCtaSectionEvents>;
51
81
  export type AfFeatureAccordionEvents = NonNullable<unknown>;
52
82
  export declare const AfFeatureAccordion: StencilReactComponent<AfFeatureAccordionElement, AfFeatureAccordionEvents>;
83
+ export type AfFeatureCardEvents = NonNullable<unknown>;
84
+ export declare const AfFeatureCard: StencilReactComponent<AfFeatureCardElement, AfFeatureCardEvents>;
85
+ export type AfFeatureGridEvents = NonNullable<unknown>;
86
+ export declare const AfFeatureGrid: StencilReactComponent<AfFeatureGridElement, AfFeatureGridEvents>;
87
+ export type AfFieldsetEvents = NonNullable<unknown>;
88
+ export declare const AfFieldset: StencilReactComponent<AfFieldsetElement, AfFieldsetEvents>;
53
89
  export type AfFooterEvents = NonNullable<unknown>;
54
90
  export declare const AfFooter: StencilReactComponent<AfFooterElement, AfFooterEvents>;
55
91
  export type AfFooterColumnEvents = NonNullable<unknown>;
56
92
  export declare const AfFooterColumn: StencilReactComponent<AfFooterColumnElement, AfFooterColumnEvents>;
57
93
  export type AfFooterLinkEvents = NonNullable<unknown>;
58
94
  export declare const AfFooterLink: StencilReactComponent<AfFooterLinkElement, AfFooterLinkEvents>;
95
+ export type AfGridCalloutEvents = NonNullable<unknown>;
96
+ export declare const AfGridCallout: StencilReactComponent<AfGridCalloutElement, AfGridCalloutEvents>;
59
97
  export type AfHeadingEvents = NonNullable<unknown>;
60
98
  export declare const AfHeading: StencilReactComponent<AfHeadingElement, AfHeadingEvents>;
61
99
  export type AfHeroSectionEvents = NonNullable<unknown>;
62
100
  export declare const AfHeroSection: StencilReactComponent<AfHeroSectionElement, AfHeroSectionEvents>;
101
+ export type AfIconEvents = NonNullable<unknown>;
102
+ export declare const AfIcon: StencilReactComponent<AfIconElement, AfIconEvents>;
103
+ export type AfIconBoxEvents = NonNullable<unknown>;
104
+ export declare const AfIconBox: StencilReactComponent<AfIconBoxElement, AfIconBoxEvents>;
63
105
  export type AfIconButtonEvents = NonNullable<unknown>;
64
106
  export declare const AfIconButton: StencilReactComponent<AfIconButtonElement, AfIconButtonEvents>;
107
+ export type AfIconTextEvents = NonNullable<unknown>;
108
+ export declare const AfIconText: StencilReactComponent<AfIconTextElement, AfIconTextEvents>;
109
+ export type AfIllustratedCardEvents = NonNullable<unknown>;
110
+ export declare const AfIllustratedCard: StencilReactComponent<AfIllustratedCardElement, AfIllustratedCardEvents>;
111
+ export type AfImageEvents = NonNullable<unknown>;
112
+ export declare const AfImage: StencilReactComponent<AfImageElement, AfImageEvents>;
113
+ export type AfInPageBannerEvents = NonNullable<unknown>;
114
+ export declare const AfInPageBanner: StencilReactComponent<AfInPageBannerElement, AfInPageBannerEvents>;
115
+ export type AfInputEvents = {
116
+ onAfInput: EventName<CustomEvent<{
117
+ value: string;
118
+ }>>;
119
+ onAfBlur: EventName<CustomEvent<void>>;
120
+ onAfFocus: EventName<CustomEvent<void>>;
121
+ onAfClear: EventName<CustomEvent<void>>;
122
+ onAfInfoClick: EventName<CustomEvent<void>>;
123
+ };
124
+ export declare const AfInput: StencilReactComponent<AfInputElement, AfInputEvents>;
65
125
  export type AfLogoEvents = NonNullable<unknown>;
66
126
  export declare const AfLogo: StencilReactComponent<AfLogoElement, AfLogoEvents>;
67
127
  export type AfLogoWellEvents = NonNullable<unknown>;
68
128
  export declare const AfLogoWell: StencilReactComponent<AfLogoWellElement, AfLogoWellEvents>;
129
+ export type AfNavCardEvents = NonNullable<unknown>;
130
+ export declare const AfNavCard: StencilReactComponent<AfNavCardElement, AfNavCardEvents>;
69
131
  export type AfNavItemEvents = NonNullable<unknown>;
70
132
  export declare const AfNavItem: StencilReactComponent<AfNavItemElement, AfNavItemEvents>;
133
+ export type AfNavMenuEvents = NonNullable<unknown>;
134
+ export declare const AfNavMenu: StencilReactComponent<AfNavMenuElement, AfNavMenuEvents>;
135
+ export type AfNavMenuNestEvents = NonNullable<unknown>;
136
+ export declare const AfNavMenuNest: StencilReactComponent<AfNavMenuNestElement, AfNavMenuNestEvents>;
71
137
  export type AfNavbarEvents = NonNullable<unknown>;
72
138
  export declare const AfNavbar: StencilReactComponent<AfNavbarElement, AfNavbarEvents>;
139
+ export type AfNumberBadgeEvents = NonNullable<unknown>;
140
+ export declare const AfNumberBadge: StencilReactComponent<AfNumberBadgeElement, AfNumberBadgeEvents>;
141
+ export type AfProgressLineEvents = NonNullable<unknown>;
142
+ export declare const AfProgressLine: StencilReactComponent<AfProgressLineElement, AfProgressLineEvents>;
143
+ export type AfRadioEvents = {
144
+ onAfChange: EventName<CustomEvent<{
145
+ checked: boolean;
146
+ value?: string;
147
+ }>>;
148
+ };
149
+ export declare const AfRadio: StencilReactComponent<AfRadioElement, AfRadioEvents>;
73
150
  export type AfSectionEvents = NonNullable<unknown>;
74
151
  export declare const AfSection: StencilReactComponent<AfSectionElement, AfSectionEvents>;
75
152
  export type AfSocialLinkEvents = NonNullable<unknown>;
76
153
  export declare const AfSocialLink: StencilReactComponent<AfSocialLinkElement, AfSocialLinkEvents>;
77
- export type AfTestimonialEvents = NonNullable<unknown>;
154
+ export type AfSplitSectionEvents = NonNullable<unknown>;
155
+ export declare const AfSplitSection: StencilReactComponent<AfSplitSectionElement, AfSplitSectionEvents>;
156
+ export type AfSwitchEvents = {
157
+ onAfChange: EventName<CustomEvent<{
158
+ active: boolean;
159
+ }>>;
160
+ };
161
+ export declare const AfSwitch: StencilReactComponent<AfSwitchElement, AfSwitchEvents>;
162
+ export type AfTabEvents = {
163
+ onAfTabClick: EventName<CustomEvent<{
164
+ value?: string;
165
+ }>>;
166
+ };
167
+ export declare const AfTab: StencilReactComponent<AfTabElement, AfTabEvents>;
168
+ export type AfTabBarEvents = NonNullable<unknown>;
169
+ export declare const AfTabBar: StencilReactComponent<AfTabBarElement, AfTabBarEvents>;
170
+ export type AfTagEvents = NonNullable<unknown>;
171
+ export declare const AfTag: StencilReactComponent<AfTagElement, AfTagEvents>;
172
+ export type AfTestimonialEvents = {
173
+ onNavPrev: EventName<CustomEvent<void>>;
174
+ onNavNext: EventName<CustomEvent<void>>;
175
+ };
78
176
  export declare const AfTestimonial: StencilReactComponent<AfTestimonialElement, AfTestimonialEvents>;
79
177
  export type AfTestimonialCarouselEvents = NonNullable<unknown>;
80
178
  export declare const AfTestimonialCarousel: StencilReactComponent<AfTestimonialCarouselElement, AfTestimonialCarouselEvents>;
@@ -82,5 +180,24 @@ export type AfTestimonialStatEvents = NonNullable<unknown>;
82
180
  export declare const AfTestimonialStat: StencilReactComponent<AfTestimonialStatElement, AfTestimonialStatEvents>;
83
181
  export type AfTextEvents = NonNullable<unknown>;
84
182
  export declare const AfText: StencilReactComponent<AfTextElement, AfTextEvents>;
183
+ export type AfTextImageEvents = NonNullable<unknown>;
184
+ export declare const AfTextImage: StencilReactComponent<AfTextImageElement, AfTextImageEvents>;
185
+ export type AfTextImageNestEvents = NonNullable<unknown>;
186
+ export declare const AfTextImageNest: StencilReactComponent<AfTextImageNestElement, AfTextImageNestEvents>;
187
+ export type AfTextareaEvents = {
188
+ onAfInput: EventName<CustomEvent<{
189
+ value: string;
190
+ }>>;
191
+ onAfBlur: EventName<CustomEvent<void>>;
192
+ onAfFocus: EventName<CustomEvent<void>>;
193
+ onAfInfoClick: EventName<CustomEvent<void>>;
194
+ };
195
+ export declare const AfTextarea: StencilReactComponent<AfTextareaElement, AfTextareaEvents>;
85
196
  export type AfTypographyLockupEvents = NonNullable<unknown>;
86
197
  export declare const AfTypographyLockup: StencilReactComponent<AfTypographyLockupElement, AfTypographyLockupEvents>;
198
+ export type AfVideoContainerEvents = {
199
+ onPlayClick: EventName<CustomEvent<{
200
+ videoUrl: string;
201
+ }>>;
202
+ };
203
+ export declare const AfVideoContainer: StencilReactComponent<AfVideoContainerElement, AfVideoContainerEvents>;