keystone-design-bootstrap 1.0.40 → 1.0.41

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.
@@ -1,194 +0,0 @@
1
- import { S as Service, F as FormDefinition } from '../../form-CWXC-IHT.js';
2
- import * as React from 'react';
3
- import React__default, { ComponentProps, ReactNode, FC } from 'react';
4
- export { Theme } from '../../themes/index.js';
5
- import { B as BlogPost, a as BlogPostAuthor, b as BlogPostTag } from '../../blog-post-CvRhU9ss.js';
6
- import { BadgeGroup } from '../elements/index.js';
7
- import 'react-aria-components';
8
- import 'embla-carousel-react';
9
-
10
- interface PolicyDocumentSectionProps {
11
- /** Page title (e.g. "Terms of Service" or "Privacy Policy") */
12
- title: string;
13
- /** Optional effective date string (e.g. "January 1, 2025") */
14
- effectiveDate?: string;
15
- /** Full markdown content for the policy (supports placeholders replaced before passing in) */
16
- content: string;
17
- /** Optional additional class name for the container */
18
- className?: string;
19
- }
20
-
21
- interface ServiceDetailContentProps {
22
- service?: Service | null;
23
- /** Label above the title (e.g. "Why Balance Aesthetics") */
24
- sectionLabel?: string;
25
- /** CTA button text */
26
- ctaText?: string;
27
- /** CTA button href */
28
- ctaHref?: string;
29
- /** Fallback summary when service.summary is empty */
30
- defaultSummary?: string;
31
- }
32
-
33
- declare const getBlogPostData: (article: BlogPost) => {
34
- author: BlogPostAuthor | null;
35
- authorName: string;
36
- authorHref: string;
37
- authorAvatarUrl: string | null;
38
- tag: BlogPostTag | null;
39
- tagName: string;
40
- tagHref: string;
41
- href: string;
42
- title: string;
43
- publishedAt: string;
44
- summary: string;
45
- };
46
- declare const BlogCardVertical: ({ article, imageClassName }: {
47
- article: BlogPost;
48
- imageClassName?: string;
49
- }) => React.JSX.Element;
50
- declare const BlogCardVerticalBadge: ({ article, badgeTheme, imageClassName, }: {
51
- article: BlogPost;
52
- badgeTheme?: ComponentProps<typeof BadgeGroup>["theme"];
53
- imageClassName?: string;
54
- }) => React.JSX.Element;
55
- declare const BlogCardVerticalCompact: ({ article, imageClassName, titleClassName, className, }: {
56
- article: BlogPost;
57
- imageClassName?: string;
58
- titleClassName?: string;
59
- className?: string;
60
- }) => React.JSX.Element;
61
- declare const BlogCardVerticalMinimal: ({ article, imageClassName, className }: {
62
- article: BlogPost;
63
- imageClassName?: string;
64
- className?: string;
65
- }) => React.JSX.Element;
66
- declare const BlogCardHorizontal: ({ article, imageClassName }: {
67
- article: BlogPost;
68
- imageClassName?: string;
69
- }) => React.JSX.Element;
70
- declare const BlogCardHorizontalBadge: ({ article }: {
71
- article: BlogPost;
72
- }) => React.JSX.Element;
73
- declare const BlogCardHorizontalCompact: ({ article, imageClassName }: {
74
- article: BlogPost;
75
- imageClassName?: string;
76
- }) => React.JSX.Element;
77
- declare const BlogCardHorizontalMinimal: ({ article }: {
78
- article: BlogPost;
79
- }) => React.JSX.Element;
80
- declare const BlogCardFullWidthVertical: ({ article }: {
81
- article: BlogPost;
82
- }) => React.JSX.Element;
83
- declare const BlogCardFullWidthVerticalAlt: ({ article }: {
84
- article: BlogPost;
85
- }) => React.JSX.Element;
86
- declare const BlogCardFullWidthVerticalCompact: ({ article }: {
87
- article: BlogPost;
88
- }) => React.JSX.Element;
89
- declare const BlogCardFullWidthVerticalMinimal: ({ article }: {
90
- article: BlogPost;
91
- }) => React.JSX.Element;
92
- declare const BlogCardFullWidthHorizontal: ({ article }: {
93
- article: BlogPost;
94
- }) => React.JSX.Element;
95
- declare const BlogCardFullWidthHorizontalAlt: ({ article }: {
96
- article: BlogPost;
97
- }) => React.JSX.Element;
98
- declare const BlogCardFullWidthHorizontalCompact: ({ article }: {
99
- article: BlogPost;
100
- }) => React.JSX.Element;
101
- declare const BlogCardFullWidthHorizontalMinimal: ({ article }: {
102
- article: BlogPost;
103
- }) => React.JSX.Element;
104
-
105
- interface FeatureTabProps {
106
- title: string;
107
- subtitle: string;
108
- footer?: ReactNode;
109
- isCurrent?: boolean;
110
- }
111
- declare const FeatureTabVertical: ({ title, subtitle, footer, isCurrent }: FeatureTabProps) => React.JSX.Element;
112
- declare const FeatureTabHorizontal: ({ title, subtitle, footer, isCurrent }: FeatureTabProps) => React.JSX.Element;
113
-
114
- interface TextCentered {
115
- title: string;
116
- subtitle: string;
117
- footer?: ReactNode;
118
- }
119
- declare const FeatureTextCentered: ({ title, subtitle, footer }: TextCentered) => React.JSX.Element;
120
- declare const FeatureTextLeft: ({ title, subtitle, footer }: TextCentered) => React.JSX.Element;
121
- interface FeatureTextIcon extends TextCentered {
122
- icon: FC<{
123
- className?: string;
124
- }>;
125
- }
126
- declare const FeatureTextIconTopCentered: ({ icon: Icon, title, subtitle, footer }: FeatureTextIcon) => React.JSX.Element;
127
- declare const FeatureTextIconTopLeft: ({ icon: Icon, title, subtitle, footer }: FeatureTextIcon) => React.JSX.Element;
128
- declare const FeatureTextIconLeft: ({ icon: Icon, title, subtitle, footer }: FeatureTextIcon) => React.JSX.Element;
129
- declare const FeatureTextFeaturedIconTopCentered: ({ color, theme, icon, title, subtitle, footer, }: FeatureTextIcon & {
130
- color?: "brand" | "gray" | "success" | "warning" | "error";
131
- theme?: "light" | "gradient" | "dark" | "outline" | "modern";
132
- }) => React.JSX.Element;
133
- declare const FeatureTextFeaturedIconTopLeft: ({ icon, title, subtitle, footer }: FeatureTextIcon) => React.JSX.Element;
134
- declare const FeatureTextFeaturedIconLeft: ({ icon, title, subtitle, footer }: FeatureTextIcon) => React.JSX.Element;
135
- declare const FeatureTextFeaturedIconBox: ({ icon, title, subtitle, footer }: FeatureTextIcon) => React.JSX.Element;
136
- interface FeatureTextIntegrationIcon extends TextCentered {
137
- imgUrl: string;
138
- }
139
- declare const FeatureTextIntegrationIconTopCentered: ({ imgUrl, title, subtitle, footer }: FeatureTextIntegrationIcon) => React.JSX.Element;
140
- declare const FeatureTextIntegrationIconTopLeft: ({ imgUrl, title, subtitle, footer }: FeatureTextIntegrationIcon) => React.JSX.Element;
141
- declare const FeatureTextIntegrationIconLeft: ({ imgUrl, title, subtitle, footer }: FeatureTextIntegrationIcon) => React.JSX.Element;
142
- declare const FeatureTextIntegrationIconBox: ({ imgUrl, title, subtitle, footer }: FeatureTextIntegrationIcon) => React.JSX.Element;
143
- declare const FeatureTextIconCard: ({ icon: Icon, title, subtitle, footer }: FeatureTextIcon) => React.JSX.Element;
144
- declare const FeatureTextFeaturedIconCard: ({ icon, title, subtitle, footer }: FeatureTextIcon) => React.JSX.Element;
145
- declare const FeatureTextLeftBrand: ({ title, subtitle, footer }: TextCentered) => React.JSX.Element;
146
- declare const FeatureTextFeaturedIconTopCenteredBrand: ({ icon, title, subtitle, footer }: FeatureTextIcon) => React.JSX.Element;
147
- declare const FeatureTextFeaturedIconTopLeftBrand: ({ icon, title, subtitle, footer }: FeatureTextIcon) => React.JSX.Element;
148
-
149
- interface JobApplicationFormProps {
150
- jobSlug: string;
151
- /** Form fields are rendered from this definition (required). */
152
- formDefinition: FormDefinition | null | undefined;
153
- inline?: boolean;
154
- }
155
- declare const JobApplicationForm: ({ jobSlug, formDefinition, inline }: JobApplicationFormProps) => React__default.JSX.Element | null;
156
-
157
- declare const HeroHome: (props: Record<string, unknown>) => React__default.ReactElement<Record<string, unknown>, string | React__default.JSXElementConstructor<any>>;
158
- declare const ServicesHome: (props: Record<string, unknown>) => React__default.ReactElement<Record<string, unknown>, string | React__default.JSXElementConstructor<any>>;
159
- declare const AboutHome: (props: Record<string, unknown>) => React__default.ReactElement<Record<string, unknown>, string | React__default.JSXElementConstructor<any>>;
160
- declare const TestimonialsHome: (props: Record<string, unknown>) => React__default.ReactElement<Record<string, unknown>, string | React__default.JSXElementConstructor<any>>;
161
- declare const TestimonialsGrid: (props: Record<string, unknown>) => React__default.ReactElement<Record<string, unknown>, string | React__default.JSXElementConstructor<any>>;
162
- declare const FAQHome: (props: Record<string, unknown>) => React__default.ReactElement<Record<string, unknown>, string | React__default.JSXElementConstructor<any>>;
163
- declare const BlogSection: (props: Record<string, unknown>) => React__default.ReactElement<Record<string, unknown>, string | React__default.JSXElementConstructor<any>>;
164
- declare const ContactSection: (props: Record<string, unknown>) => React__default.ReactElement<Record<string, unknown>, string | React__default.JSXElementConstructor<any>>;
165
- declare const FooterHome: (props: Record<string, unknown>) => React__default.ReactElement<Record<string, unknown>, string | React__default.JSXElementConstructor<any>>;
166
- declare const HeaderNavigation: (props: Record<string, unknown>) => React__default.ReactElement<Record<string, unknown>, string | React__default.JSXElementConstructor<any>>;
167
- declare const GenericHeaderComponent: (props: Record<string, unknown>) => React__default.ReactElement<Record<string, unknown>, string | React__default.JSXElementConstructor<any>>;
168
- declare const StatisticsSection: (props: Record<string, unknown>) => React__default.ReactElement<Record<string, unknown>, string | React__default.JSXElementConstructor<any>>;
169
- declare const ValuesSection: (props: Record<string, unknown>) => React__default.ReactElement<Record<string, unknown>, string | React__default.JSXElementConstructor<any>>;
170
- declare const TeamGrid: (props: Record<string, unknown>) => React__default.ReactElement<Record<string, unknown>, string | React__default.JSXElementConstructor<any>>;
171
- declare const LocationGrid: (props: Record<string, unknown>) => React__default.ReactElement<Record<string, unknown>, string | React__default.JSXElementConstructor<any>>;
172
- declare const LocationDetailsSection: (props: Record<string, unknown>) => React__default.ReactElement<Record<string, unknown>, string | React__default.JSXElementConstructor<any>>;
173
- declare const ServicesGrid: (props: Record<string, unknown>) => React__default.ReactElement<Record<string, unknown>, string | React__default.JSXElementConstructor<any>>;
174
- declare const SocialMediaGrid: (props: Record<string, unknown>) => React__default.ReactElement<Record<string, unknown>, string | React__default.JSXElementConstructor<any>>;
175
- declare const JobGallery: (props: Record<string, unknown>) => React__default.ReactElement<Record<string, unknown>, string | React__default.JSXElementConstructor<any>>;
176
- declare const BlogHome: (props: Record<string, unknown>) => React__default.ReactElement<Record<string, unknown>, string | React__default.JSXElementConstructor<any>>;
177
- declare const BlogGallery: (props: Record<string, unknown>) => React__default.ReactElement<Record<string, unknown>, string | React__default.JSXElementConstructor<any>>;
178
- declare const BlogPostSection: (props: Record<string, unknown>) => React__default.ReactElement<Record<string, unknown>, string | React__default.JSXElementConstructor<any>>;
179
- declare const ContactHome: (props: Record<string, unknown>) => React__default.ReactElement<Record<string, unknown>, string | React__default.JSXElementConstructor<any>>;
180
- declare const FAQGrid: (props: Record<string, unknown>) => React__default.ReactElement<Record<string, unknown>, string | React__default.JSXElementConstructor<any>>;
181
- declare const FAQHero: (props: Record<string, unknown>) => React__default.ReactElement<Record<string, unknown>, string | React__default.JSXElementConstructor<any>>;
182
-
183
- declare const GenericTextHero: (props: Record<string, unknown>) => React__default.ReactElement<Record<string, unknown>, string | React__default.JSXElementConstructor<any>>;
184
- declare const LocationDetailHero: (props: Record<string, unknown>) => React__default.ReactElement<Record<string, unknown>, string | React__default.JSXElementConstructor<any>>;
185
- declare const ServiceDetailHero: (props: Record<string, unknown>) => React__default.ReactElement<Record<string, unknown>, string | React__default.JSXElementConstructor<any>>;
186
- declare const ServiceDetailContent: ({ service, sectionLabel, ctaText, ctaHref, defaultSummary, }: ServiceDetailContentProps) => React__default.JSX.Element | null;
187
- declare const JobDetailHero: (props: Record<string, unknown>) => React__default.ReactElement<Record<string, unknown>, string | React__default.JSXElementConstructor<any>>;
188
- declare const JobDetailSection: (props: Record<string, unknown>) => React__default.ReactElement<Record<string, unknown>, string | React__default.JSXElementConstructor<any>>;
189
- declare const PolicyDocumentSection: ({ title, effectiveDate, content, className, }: PolicyDocumentSectionProps) => React__default.JSX.Element;
190
- declare const SocialMediaHero: (props: Record<string, unknown>) => React__default.ReactElement<Record<string, unknown>, string | React__default.JSXElementConstructor<any>>;
191
- declare const TestimonialsHero: (props: Record<string, unknown>) => React__default.ReactElement<Record<string, unknown>, string | React__default.JSXElementConstructor<any>>;
192
- declare const HomeHeroComponent: (props: Record<string, unknown>) => React__default.ReactElement<Record<string, unknown>, string | React__default.JSXElementConstructor<any>>;
193
-
194
- export { AboutHome, BlogCardFullWidthHorizontal, BlogCardFullWidthHorizontalAlt, BlogCardFullWidthHorizontalCompact, BlogCardFullWidthHorizontalMinimal, BlogCardFullWidthVertical, BlogCardFullWidthVerticalAlt, BlogCardFullWidthVerticalCompact, BlogCardFullWidthVerticalMinimal, BlogCardHorizontal, BlogCardHorizontalBadge, BlogCardHorizontalCompact, BlogCardHorizontalMinimal, BlogCardVertical, BlogCardVerticalBadge, BlogCardVerticalCompact, BlogCardVerticalMinimal, BlogGallery, BlogHome, BlogPostSection, BlogSection, ContactHome, ContactSection, FAQGrid, FAQHero, FAQHome, FeatureTabHorizontal, FeatureTabVertical, FeatureTextCentered, FeatureTextFeaturedIconBox, FeatureTextFeaturedIconCard, FeatureTextFeaturedIconLeft, FeatureTextFeaturedIconTopCentered, FeatureTextFeaturedIconTopCenteredBrand, FeatureTextFeaturedIconTopLeft, FeatureTextFeaturedIconTopLeftBrand, FeatureTextIconCard, FeatureTextIconLeft, FeatureTextIconTopCentered, FeatureTextIconTopLeft, FeatureTextIntegrationIconBox, FeatureTextIntegrationIconLeft, FeatureTextIntegrationIconTopCentered, FeatureTextIntegrationIconTopLeft, FeatureTextLeft, FeatureTextLeftBrand, FooterHome, GenericHeaderComponent, GenericTextHero, HeaderNavigation, HeroHome, HomeHeroComponent, JobApplicationForm, JobDetailHero, JobDetailSection, JobGallery, LocationDetailHero, LocationDetailsSection, LocationGrid, PolicyDocumentSection, ServiceDetailContent, ServiceDetailHero, ServicesGrid, ServicesHome, SocialMediaGrid, SocialMediaHero, StatisticsSection, TeamGrid, TestimonialsGrid, TestimonialsHero, TestimonialsHome, ValuesSection, getBlogPostData };
@@ -1,88 +0,0 @@
1
- interface Service {
2
- id: number;
3
- name: string;
4
- slug: string;
5
- description_markdown: string;
6
- summary?: string;
7
- pricing_info?: string;
8
- features_markdown?: string;
9
- featured: boolean;
10
- sort_order: number;
11
- photo_attachments?: Array<{
12
- id: number;
13
- featured: boolean;
14
- attachable_id?: number;
15
- attachable_type?: string;
16
- photo?: {
17
- id: number;
18
- title: string;
19
- thumbnail_url?: string;
20
- medium_url?: string;
21
- large_url?: string;
22
- original_url?: string;
23
- };
24
- }>;
25
- created_at: string;
26
- updated_at: string;
27
- }
28
- interface ServiceParams {
29
- featured?: boolean;
30
- q?: string;
31
- page?: number;
32
- per_page?: number;
33
- }
34
- type ServiceResponse = Service[];
35
-
36
- /**
37
- * Photo and PhotoAttachment type definitions
38
- */
39
- interface Photo {
40
- id: number;
41
- title: string;
42
- description?: string;
43
- alt_text?: string;
44
- thumbnail_url?: string;
45
- medium_url?: string;
46
- large_url?: string;
47
- original_url?: string;
48
- generated: boolean;
49
- created_at: string;
50
- updated_at: string;
51
- }
52
- interface PhotoAttachment {
53
- id: number;
54
- photo: Photo;
55
- featured: boolean;
56
- sort_order: number;
57
- created_at: string;
58
- updated_at: string;
59
- }
60
-
61
- /**
62
- * Form definition from API (GET /public/forms/:form_type).
63
- * fields is an ordered array; each item is a single field or an array of fields (inline row). Max depth 2.
64
- */
65
- interface FormFieldDefinition {
66
- name: string;
67
- type: string;
68
- label: string;
69
- required?: boolean;
70
- placeholder?: string;
71
- /** For hidden fields, optional value to submit. */
72
- value?: string;
73
- }
74
- /** One item in the fields array: either a single field or a row of fields (inline). */
75
- type FormFieldItem = FormFieldDefinition | FormFieldDefinition[];
76
- interface FormDefinition {
77
- id: number;
78
- name: string;
79
- form_type: string;
80
- /** Ordered array; each element is a field or an array of fields (inline row). */
81
- fields: FormFieldItem[];
82
- settings?: Record<string, unknown>;
83
- created_at?: string;
84
- updated_at?: string;
85
- }
86
- type FormType = 'lead' | 'job_application';
87
-
88
- export type { FormDefinition as F, Photo as P, Service as S, PhotoAttachment as a, FormFieldDefinition as b, FormFieldItem as c, FormType as d, ServiceParams as e, ServiceResponse as f };
package/dist/index.d.ts DELETED
@@ -1,76 +0,0 @@
1
- export { AboutHome, BlogCardFullWidthHorizontal, BlogCardFullWidthHorizontalAlt, BlogCardFullWidthHorizontalCompact, BlogCardFullWidthHorizontalMinimal, BlogCardFullWidthVertical, BlogCardFullWidthVerticalAlt, BlogCardFullWidthVerticalCompact, BlogCardFullWidthVerticalMinimal, BlogCardHorizontal, BlogCardHorizontalBadge, BlogCardHorizontalCompact, BlogCardHorizontalMinimal, BlogCardVertical, BlogCardVerticalBadge, BlogCardVerticalCompact, BlogCardVerticalMinimal, BlogGallery, BlogHome, BlogPostSection, BlogSection, ContactHome, ContactSection, FAQGrid, FAQHero, FAQHome, FeatureTabHorizontal, FeatureTabVertical, FeatureTextCentered, FeatureTextFeaturedIconBox, FeatureTextFeaturedIconCard, FeatureTextFeaturedIconLeft, FeatureTextFeaturedIconTopCentered, FeatureTextFeaturedIconTopCenteredBrand, FeatureTextFeaturedIconTopLeft, FeatureTextFeaturedIconTopLeftBrand, FeatureTextIconCard, FeatureTextIconLeft, FeatureTextIconTopCentered, FeatureTextIconTopLeft, FeatureTextIntegrationIconBox, FeatureTextIntegrationIconLeft, FeatureTextIntegrationIconTopCentered, FeatureTextIntegrationIconTopLeft, FeatureTextLeft, FeatureTextLeftBrand, FooterHome, GenericHeaderComponent, GenericTextHero, HeaderNavigation, HeroHome, HomeHeroComponent, JobApplicationForm, JobDetailHero, JobDetailSection, JobGallery, LocationDetailHero, LocationDetailsSection, LocationGrid, PolicyDocumentSection, ServiceDetailContent, ServiceDetailHero, ServicesGrid, ServicesHome, SocialMediaGrid, SocialMediaHero, StatisticsSection, TeamGrid, TestimonialsGrid, TestimonialsHero, TestimonialsHome, ValuesSection, getBlogPostData } from './design_system/sections/index.js';
2
- export { Avatar, AvatarLabelGroup, Badge, BadgeGroup, BadgeWithDot, Breadcrumb, Button, ButtonGroup, Carousel, CarouselContext, CarouselSectionWrapper, ComboBox, FeaturedIcon, Form, FormContainer, GoogleMap, HintText, Input, InputBase, InputGroup, Label, MarkdownRenderer, NativeSelect, Pagination, PaginationPageDefault, PaginationPageMinimalCenter, PhotoWithFallback, PrivacyCheckbox, RatingBadge, RatingStars, RoundButton, Select, SelectItem, SocialIcon, StarIcon, Textarea, Tooltip, VerifiedTick, VideoModal, VideoPlayButton, Wreath, getSocialIcon, getStarProgress, useCarousel } from './design_system/elements/index.js';
3
- import { C as CompanyInformation } from './company-information-C_k_sLSB.js';
4
- export { ThemeProvider, useTheme } from './contexts/index.js';
5
- import React__default from 'react';
6
- export { Theme } from './themes/index.js';
7
- import './form-CWXC-IHT.js';
8
- import './blog-post-CvRhU9ss.js';
9
- import 'react-aria-components';
10
- import 'embla-carousel-react';
11
-
12
- /**
13
- * Server Actions for form submissions
14
- * These run on the server and can safely use API_KEY without exposing it to the browser
15
- */
16
- interface ContactFormResult {
17
- success: boolean;
18
- message?: string;
19
- error?: string;
20
- /** Present on lead form success; use for Meta Pixel dedup: fbq('track', 'Lead', {}, { eventID: eventId }) */
21
- eventId?: string;
22
- }
23
- /**
24
- * Submit contact form via Server Action
25
- */
26
- declare function submitContactFormAction(formData: FormData): Promise<ContactFormResult>;
27
- /**
28
- * Submit lead form via Server Action
29
- */
30
- declare function submitLeadFormAction(formData: FormData): Promise<ContactFormResult>;
31
-
32
- /**
33
- * Single place that defines default primary and secondary CTA URLs.
34
- * Primary = external management (booking) URL when present, else /contact.
35
- * Secondary = /contact.
36
- */
37
-
38
- /** True when the href is absolute (external); use for target="_blank" and rel="noopener noreferrer". */
39
- declare function isExternalCtaUrl(href: string): boolean;
40
- interface CtaUrlOverrides {
41
- primaryHrefOverride?: string | null;
42
- secondaryHrefOverride?: string | null;
43
- }
44
- interface CtaButtonLike {
45
- href?: string | null;
46
- secondary_href?: string | null;
47
- }
48
- interface ResolvedCtaUrls {
49
- primaryHref: string;
50
- secondaryHref: string;
51
- hasSecondary: boolean;
52
- }
53
- /**
54
- * Resolve primary and secondary CTA hrefs from company info and optional overrides.
55
- * - primaryHref = external_management_url (if set) else /contact
56
- * - secondaryHref = /contact
57
- * Overrides win when provided.
58
- */
59
- declare function resolveCtaUrls(companyInformation?: CompanyInformation | null, _ctaButton?: CtaButtonLike | null, overrides?: CtaUrlOverrides | null): ResolvedCtaUrls;
60
-
61
- interface TeamMember {
62
- id: number;
63
- name: string;
64
- position?: string;
65
- photo_url?: string;
66
- }
67
- interface ChatWidgetProps {
68
- position?: 'bottom-right' | 'bottom-left';
69
- primaryColor?: string;
70
- sessionId?: string;
71
- displayName?: string;
72
- teamMembers?: TeamMember[];
73
- }
74
- declare function ChatWidget({ position, primaryColor, sessionId: providedSessionId, displayName: providedDisplayName, teamMembers }: ChatWidgetProps): React__default.JSX.Element;
75
-
76
- export { ChatWidget, type CtaUrlOverrides, type ResolvedCtaUrls, isExternalCtaUrl, resolveCtaUrls, submitContactFormAction, submitLeadFormAction };
@@ -1,13 +0,0 @@
1
- import React__default from 'react';
2
- import { Theme } from '../themes/index.js';
3
-
4
- /**
5
- * Component Registry
6
- * Runtime registry for component theme variants
7
- */
8
-
9
- declare function registerThemeVariant<P = unknown>(componentName: string, theme: string, component: React__default.ComponentType<P>): void;
10
- declare function getThemedComponent(componentName: string, theme?: Theme): React__default.ComponentType<unknown>;
11
- declare function getRegistry(): Record<string, string[]>;
12
-
13
- export { getRegistry, getThemedComponent, registerThemeVariant };
@@ -1,64 +0,0 @@
1
- import { RefObject } from '@react-types/shared';
2
-
3
- /**
4
- * Checks whether a particular Tailwind CSS viewport size applies.
5
- *
6
- * @param size The size to check, which must either be included in Tailwind CSS's
7
- * list of default screen sizes, or added to the Tailwind CSS config file.
8
- *
9
- * @returns A boolean indicating whether the viewport size applies.
10
- */
11
- declare const useBreakpoint: (size: "sm" | "md" | "lg" | "xl" | "2xl") => boolean;
12
-
13
- type UseClipboardReturnType = {
14
- /**
15
- * The state indicating whether the text has been copied.
16
- * If a string is provided, it will be used as the identifier for the copied state.
17
- */
18
- copied: string | boolean;
19
- /**
20
- * Function to copy text to the clipboard using the modern clipboard API.
21
- * Falls back to the fallback function if the modern API fails.
22
- *
23
- * @param {string} text - The text to be copied.
24
- * @param {string} [id] - Optional identifier to set the copied state.
25
- * @returns {Promise<Object>} - A promise that resolves to an object containing:
26
- * - `success` (boolean): Whether the copy operation was successful.
27
- * - `error` (Error | undefined): The error object if the copy operation failed.
28
- */
29
- copy: (text: string, id?: string) => Promise<{
30
- success: boolean;
31
- error?: Error;
32
- }>;
33
- };
34
- /**
35
- * Custom hook to copy text to the clipboard.
36
- *
37
- * @returns {UseClipboardReturnType} - An object containing the copied state and the copy function.
38
- */
39
- declare const useClipboard: () => UseClipboardReturnType;
40
-
41
- /**
42
- * The options for the useResizeObserver hook.
43
- */
44
- type useResizeObserverOptionsType<T> = {
45
- /**
46
- * The ref to the element to observe.
47
- */
48
- ref: RefObject<T | undefined | null> | undefined;
49
- /**
50
- * The box to observe.
51
- */
52
- box?: ResizeObserverBoxOptions;
53
- /**
54
- * The callback function to call when the size changes.
55
- */
56
- onResize: () => void;
57
- };
58
- /**
59
- * A hook that observes the size of an element and calls a callback function when the size changes.
60
- * @param options - The options for the hook.
61
- */
62
- declare function useResizeObserver<T extends Element>(options: useResizeObserverOptionsType<T>): void;
63
-
64
- export { useBreakpoint, useClipboard, useResizeObserver };
@@ -1,40 +0,0 @@
1
- import { S as Service, F as FormDefinition } from '../form-CWXC-IHT.js';
2
- import { C as CompanyInformation } from '../company-information-C_k_sLSB.js';
3
-
4
- interface FetchOptions {
5
- cache?: RequestCache;
6
- revalidate?: number;
7
- }
8
- /**
9
- * Generic serverApi object for flexible endpoint access
10
- */
11
- declare const serverApi: {
12
- get: <T = unknown>(endpoint: string, options?: FetchOptions) => Promise<T | null>;
13
- };
14
- declare function getCompanyInformation(): Promise<CompanyInformation | null>;
15
- /** Ads config (e.g. Meta Pixel). Returns { meta_pixel_id?: string } or {}. Only present when account has connected Meta Ads. */
16
- declare function getAdsConfig(): Promise<{
17
- meta_pixel_id?: string;
18
- } | null>;
19
- /** Extract Meta Pixel ID from ads config for use with <MetaPixel pixelId={...} />. Only returns a value when present and valid (numeric). */
20
- declare function getMetaPixelId(adsConfig: {
21
- meta_pixel_id?: string;
22
- } | null | undefined): string | null;
23
- declare function getServices(): Promise<unknown>;
24
- declare function getService(slug: string): Promise<Service | null>;
25
- declare function getLocations(): Promise<unknown>;
26
- declare function getLocation(slug: string): Promise<unknown>;
27
- declare function getReviews(): Promise<unknown>;
28
- declare function getFAQs(): Promise<unknown>;
29
- declare function getBlogPosts(): Promise<unknown>;
30
- declare function getBlogPost(slug: string): Promise<unknown>;
31
- declare function getTeamMembers(): Promise<unknown>;
32
- declare function getWebsitePhotos(): Promise<unknown>;
33
- declare function getJobPostings(): Promise<unknown>;
34
- declare function getJobPosting(slug: string): Promise<unknown>;
35
- declare function getSocialPosts(): Promise<unknown>;
36
- declare function getTestimonials(): Promise<unknown>;
37
- /** Form definition for dynamic form rendering (fields may include optional placeholder). */
38
- declare function getForm(formType: string): Promise<FormDefinition | null>;
39
-
40
- export { getAdsConfig, getBlogPost, getBlogPosts, getCompanyInformation, getFAQs, getForm, getJobPosting, getJobPostings, getLocation, getLocations, getMetaPixelId, getReviews, getService, getServices, getSocialPosts, getTeamMembers, getTestimonials, getWebsitePhotos, serverApi };
@@ -1,16 +0,0 @@
1
- /**
2
- * Theme Configuration
3
- * Single source of truth for all themes
4
- */
5
- declare const THEME_CONFIG: {
6
- readonly classic: "";
7
- readonly aman: ".aman";
8
- readonly barelux: ".barelux";
9
- readonly balance: ".balance";
10
- };
11
- type Theme = keyof typeof THEME_CONFIG;
12
- declare function getAvailableThemes(): Theme[];
13
- declare function getThemeSuffix(theme: Theme): string;
14
- declare function isValidTheme(theme: string): theme is Theme;
15
-
16
- export { THEME_CONFIG, type Theme, getAvailableThemes, getThemeSuffix, isValidTheme };