@opensite/ui 2.5.0 → 2.5.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.
@@ -1,27 +1,14 @@
1
1
  import * as React from 'react';
2
2
  import { f as SectionBackground, g as SectionSpacing, t as PatternName } from './community-initiatives-B658AD6n.cjs';
3
- import { O as OptixFlowConfig, A as ActionConfig } from './blocks-DUr75v0S.cjs';
3
+ import { O as OptixFlowConfig } from './blocks-DUr75v0S.cjs';
4
4
  import { F as FooterSocialLink } from './types-Cs1jk79n.cjs';
5
- import { FormFieldConfig, PageSpeedFormConfig } from '@page-speed/forms/integration';
5
+ import { FormEngineProps } from '@page-speed/forms/integration';
6
6
  import 'react/jsx-runtime';
7
7
  import 'class-variance-authority';
8
8
  import './button-variants-lRElsmTc.cjs';
9
9
  import 'class-variance-authority/types';
10
10
  import '@opensite/hooks/usePlatformFromUrl';
11
11
 
12
- /**
13
- * Logo configuration for the footer
14
- */
15
- interface FooterSocialNewsletterLogo {
16
- /** Logo link URL */
17
- url: string;
18
- /** Logo image source */
19
- src: string;
20
- /** Logo alt text */
21
- alt: string;
22
- /** Logo title/brand name */
23
- title: string;
24
- }
25
12
  /**
26
13
  * Navigation link configuration
27
14
  */
@@ -44,8 +31,18 @@ interface FooterSocialNewsletterSection {
44
31
  * Props for the FooterSocialNewsletter component
45
32
  */
46
33
  interface FooterSocialNewsletterProps {
47
- /** Logo configuration */
48
- logo?: FooterSocialNewsletterLogo;
34
+ /**
35
+ * Logo configuration
36
+ */
37
+ logo?: {
38
+ src: string;
39
+ /** Logo link URL */
40
+ url?: string;
41
+ /** Brand title */
42
+ alt?: string;
43
+ /** img tag class name */
44
+ className?: string;
45
+ };
49
46
  /** Navigation sections */
50
47
  sections?: FooterSocialNewsletterSection[];
51
48
  /** Social media links */
@@ -58,8 +55,6 @@ interface FooterSocialNewsletterProps {
58
55
  contentClassName?: string;
59
56
  /** Additional CSS classes for the logo wrapper */
60
57
  logoWrapperClassName?: string;
61
- /** Additional CSS classes for the logo image */
62
- logoClassName?: string;
63
58
  /** Additional CSS classes for the main grid */
64
59
  gridClassName?: string;
65
60
  /** Additional CSS classes for navigation sections */
@@ -97,41 +92,9 @@ interface FooterSocialNewsletterProps {
97
92
  /** Optional Optix Flow configuration for @page-speed/img */
98
93
  optixFlowConfig?: OptixFlowConfig;
99
94
  /**
100
- * Form field configuration
101
- */
102
- formFields?: FormFieldConfig[];
103
- /**
104
- * Form configuration for submission
105
- */
106
- formConfig?: PageSpeedFormConfig;
107
- /**
108
- * Custom submit handler
109
- */
110
- onSubmit?: (values: Record<string, any>) => void | Promise<void>;
111
- /**
112
- * Success callback
113
- */
114
- onSuccess?: (data: unknown) => void;
115
- /**
116
- * Error callback
117
- */
118
- onError?: (error: Error) => void;
119
- /**
120
- * Success message to display
121
- */
122
- successMessage?: React.ReactNode;
123
- /**
124
- * Submit button configuration
125
- */
126
- buttonAction?: ActionConfig;
127
- /**
128
- * Helper text below form
129
- */
130
- helperText?: React.ReactNode;
131
- /**
132
- * Custom slot for form (overrides form props)
95
+ * Full form engine setup and props
133
96
  */
134
- formSlot?: React.ReactNode;
97
+ formEngineSetup?: FormEngineProps;
135
98
  }
136
99
  /**
137
100
  * FooterSocialNewsletter - A footer with social icons, navigation links, and newsletter signup.
@@ -140,6 +103,6 @@ interface FooterSocialNewsletterProps {
140
103
  * and a newsletter subscription form in the bottom bar. Ideal for community-focused products,
141
104
  * SaaS platforms, and businesses that prioritize social engagement and email marketing.
142
105
  */
143
- declare function FooterSocialNewsletter({ logo, sections, socialLinks, copyright, className, contentClassName, logoWrapperClassName, logoClassName, gridClassName, navSectionClassName, navTitleClassName, navLinksClassName, navLinkClassName, socialColumnClassName, socialLinksClassName, socialLinkClassName, formFields, formConfig, onSubmit, onSuccess, onError, successMessage, buttonAction, helperText, formSlot, privacyClassName, bottomClassName, copyrightClassName, background, containerClassName, spacing, pattern, patternOpacity, optixFlowConfig, }: FooterSocialNewsletterProps): React.JSX.Element;
106
+ declare function FooterSocialNewsletter({ logo, sections, socialLinks, copyright, className, contentClassName, logoWrapperClassName, gridClassName, navSectionClassName, navTitleClassName, navLinksClassName, navLinkClassName, socialColumnClassName, socialLinksClassName, socialLinkClassName, formEngineSetup, bottomClassName, copyrightClassName, background, containerClassName, spacing, pattern, patternOpacity, optixFlowConfig, }: FooterSocialNewsletterProps): React.JSX.Element;
144
107
 
145
108
  export { FooterSocialNewsletter, type FooterSocialNewsletterProps, type FooterSocialNewsletterSection };
@@ -1,27 +1,14 @@
1
1
  import * as React from 'react';
2
2
  import { f as SectionBackground, g as SectionSpacing, t as PatternName } from './community-initiatives-BphRfrhZ.js';
3
- import { O as OptixFlowConfig, A as ActionConfig } from './blocks-BzFuQGP0.js';
3
+ import { O as OptixFlowConfig } from './blocks-BzFuQGP0.js';
4
4
  import { F as FooterSocialLink } from './types-Cs1jk79n.js';
5
- import { FormFieldConfig, PageSpeedFormConfig } from '@page-speed/forms/integration';
5
+ import { FormEngineProps } from '@page-speed/forms/integration';
6
6
  import 'react/jsx-runtime';
7
7
  import 'class-variance-authority';
8
8
  import './button-variants-lRElsmTc.js';
9
9
  import 'class-variance-authority/types';
10
10
  import '@opensite/hooks/usePlatformFromUrl';
11
11
 
12
- /**
13
- * Logo configuration for the footer
14
- */
15
- interface FooterSocialNewsletterLogo {
16
- /** Logo link URL */
17
- url: string;
18
- /** Logo image source */
19
- src: string;
20
- /** Logo alt text */
21
- alt: string;
22
- /** Logo title/brand name */
23
- title: string;
24
- }
25
12
  /**
26
13
  * Navigation link configuration
27
14
  */
@@ -44,8 +31,18 @@ interface FooterSocialNewsletterSection {
44
31
  * Props for the FooterSocialNewsletter component
45
32
  */
46
33
  interface FooterSocialNewsletterProps {
47
- /** Logo configuration */
48
- logo?: FooterSocialNewsletterLogo;
34
+ /**
35
+ * Logo configuration
36
+ */
37
+ logo?: {
38
+ src: string;
39
+ /** Logo link URL */
40
+ url?: string;
41
+ /** Brand title */
42
+ alt?: string;
43
+ /** img tag class name */
44
+ className?: string;
45
+ };
49
46
  /** Navigation sections */
50
47
  sections?: FooterSocialNewsletterSection[];
51
48
  /** Social media links */
@@ -58,8 +55,6 @@ interface FooterSocialNewsletterProps {
58
55
  contentClassName?: string;
59
56
  /** Additional CSS classes for the logo wrapper */
60
57
  logoWrapperClassName?: string;
61
- /** Additional CSS classes for the logo image */
62
- logoClassName?: string;
63
58
  /** Additional CSS classes for the main grid */
64
59
  gridClassName?: string;
65
60
  /** Additional CSS classes for navigation sections */
@@ -97,41 +92,9 @@ interface FooterSocialNewsletterProps {
97
92
  /** Optional Optix Flow configuration for @page-speed/img */
98
93
  optixFlowConfig?: OptixFlowConfig;
99
94
  /**
100
- * Form field configuration
101
- */
102
- formFields?: FormFieldConfig[];
103
- /**
104
- * Form configuration for submission
105
- */
106
- formConfig?: PageSpeedFormConfig;
107
- /**
108
- * Custom submit handler
109
- */
110
- onSubmit?: (values: Record<string, any>) => void | Promise<void>;
111
- /**
112
- * Success callback
113
- */
114
- onSuccess?: (data: unknown) => void;
115
- /**
116
- * Error callback
117
- */
118
- onError?: (error: Error) => void;
119
- /**
120
- * Success message to display
121
- */
122
- successMessage?: React.ReactNode;
123
- /**
124
- * Submit button configuration
125
- */
126
- buttonAction?: ActionConfig;
127
- /**
128
- * Helper text below form
129
- */
130
- helperText?: React.ReactNode;
131
- /**
132
- * Custom slot for form (overrides form props)
95
+ * Full form engine setup and props
133
96
  */
134
- formSlot?: React.ReactNode;
97
+ formEngineSetup?: FormEngineProps;
135
98
  }
136
99
  /**
137
100
  * FooterSocialNewsletter - A footer with social icons, navigation links, and newsletter signup.
@@ -140,6 +103,6 @@ interface FooterSocialNewsletterProps {
140
103
  * and a newsletter subscription form in the bottom bar. Ideal for community-focused products,
141
104
  * SaaS platforms, and businesses that prioritize social engagement and email marketing.
142
105
  */
143
- declare function FooterSocialNewsletter({ logo, sections, socialLinks, copyright, className, contentClassName, logoWrapperClassName, logoClassName, gridClassName, navSectionClassName, navTitleClassName, navLinksClassName, navLinkClassName, socialColumnClassName, socialLinksClassName, socialLinkClassName, formFields, formConfig, onSubmit, onSuccess, onError, successMessage, buttonAction, helperText, formSlot, privacyClassName, bottomClassName, copyrightClassName, background, containerClassName, spacing, pattern, patternOpacity, optixFlowConfig, }: FooterSocialNewsletterProps): React.JSX.Element;
106
+ declare function FooterSocialNewsletter({ logo, sections, socialLinks, copyright, className, contentClassName, logoWrapperClassName, gridClassName, navSectionClassName, navTitleClassName, navLinksClassName, navLinkClassName, socialColumnClassName, socialLinksClassName, socialLinkClassName, formEngineSetup, bottomClassName, copyrightClassName, background, containerClassName, spacing, pattern, patternOpacity, optixFlowConfig, }: FooterSocialNewsletterProps): React.JSX.Element;
144
107
 
145
108
  export { FooterSocialNewsletter, type FooterSocialNewsletterProps, type FooterSocialNewsletterSection };