@opensite/ui 1.7.5 → 1.7.6
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/contact-dark.cjs +503 -124
- package/dist/contact-dark.d.cts +28 -9
- package/dist/contact-dark.d.ts +28 -9
- package/dist/contact-dark.js +505 -126
- package/dist/contact-faq.cjs +482 -104
- package/dist/contact-faq.d.cts +27 -17
- package/dist/contact-faq.d.ts +27 -17
- package/dist/contact-faq.js +484 -106
- package/dist/contact-photography.cjs +485 -116
- package/dist/contact-photography.d.cts +22 -9
- package/dist/contact-photography.d.ts +22 -9
- package/dist/contact-photography.js +487 -118
- package/dist/form-field-types-BYdJNOsW.d.cts +92 -0
- package/dist/form-field-types-BYdJNOsW.d.ts +92 -0
- package/dist/registry.cjs +2397 -2037
- package/dist/registry.js +1141 -781
- package/package.json +6 -1
package/dist/contact-dark.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { F as FormFieldConfig } from './form-field-types-BYdJNOsW.cjs';
|
|
2
3
|
import { P as PageSpeedFormConfig } from './forms-BCcwNFhk.cjs';
|
|
3
4
|
import { f as SectionBackground, g as SectionSpacing, t as PatternName } from './community-initiatives-Bz_A5vLU.cjs';
|
|
4
5
|
import { A as ActionConfig } from './blocks-Cohq4eio.cjs';
|
|
@@ -7,12 +8,6 @@ import 'class-variance-authority';
|
|
|
7
8
|
import './button-variants-lRElsmTc.cjs';
|
|
8
9
|
import 'class-variance-authority/types';
|
|
9
10
|
|
|
10
|
-
interface ContactDarkFormValues {
|
|
11
|
-
firstName: string;
|
|
12
|
-
lastName: string;
|
|
13
|
-
email: string;
|
|
14
|
-
message: string;
|
|
15
|
-
}
|
|
16
11
|
interface ContactDarkOption {
|
|
17
12
|
/**
|
|
18
13
|
* Icon name for the contact option
|
|
@@ -90,6 +85,21 @@ interface ContactDarkProps {
|
|
|
90
85
|
* Custom slot for rendering social links (overrides socialLinks array)
|
|
91
86
|
*/
|
|
92
87
|
socialLinksSlot?: React.ReactNode;
|
|
88
|
+
/**
|
|
89
|
+
* Array of form field configurations
|
|
90
|
+
* If not provided, defaults to: firstName, lastName, email, message
|
|
91
|
+
*/
|
|
92
|
+
formFields?: FormFieldConfig[];
|
|
93
|
+
/**
|
|
94
|
+
* Success message to display after form submission
|
|
95
|
+
* @default "Thank you! Your message has been sent successfully."
|
|
96
|
+
*/
|
|
97
|
+
successMessage?: React.ReactNode;
|
|
98
|
+
/**
|
|
99
|
+
* Error message to display if submission fails
|
|
100
|
+
* @default "There was an error sending your message. Please try again."
|
|
101
|
+
*/
|
|
102
|
+
errorMessage?: React.ReactNode;
|
|
93
103
|
/**
|
|
94
104
|
* Additional CSS classes for the section
|
|
95
105
|
*/
|
|
@@ -137,7 +147,16 @@ interface ContactDarkProps {
|
|
|
137
147
|
/**
|
|
138
148
|
* Additional CSS classes for the social links container
|
|
139
149
|
*/
|
|
140
|
-
socialLinksClassName?: string;
|
|
150
|
+
socialLinksClassName?: string;
|
|
151
|
+
/**
|
|
152
|
+
* Additional CSS classes for the success message
|
|
153
|
+
*/
|
|
154
|
+
successMessageClassName?: string;
|
|
155
|
+
/**
|
|
156
|
+
* Additional CSS classes for the error message
|
|
157
|
+
*/
|
|
158
|
+
errorMessageClassName?: string;
|
|
159
|
+
/**
|
|
141
160
|
* Background style for the section
|
|
142
161
|
*/
|
|
143
162
|
background?: SectionBackground;
|
|
@@ -193,7 +212,7 @@ interface ContactDarkProps {
|
|
|
193
212
|
* });
|
|
194
213
|
* }}
|
|
195
214
|
*/
|
|
196
|
-
onSubmit?: (values:
|
|
215
|
+
onSubmit?: (values: Record<string, any>) => void | Promise<void>;
|
|
197
216
|
/**
|
|
198
217
|
* Optional success callback invoked after successful submission.
|
|
199
218
|
*
|
|
@@ -223,6 +242,6 @@ interface ContactDarkProps {
|
|
|
223
242
|
* />
|
|
224
243
|
* ```
|
|
225
244
|
*/
|
|
226
|
-
declare function ContactDark({ heading, description, contactHeading, contactDescription, buttonText, buttonIcon, actions, actionsSlot, contactOptions, contactOptionsSlot, socialLinks, socialLinksSlot, className, headerClassName, headingClassName, descriptionClassName, cardClassName, formPanelClassName, formClassName, submitClassName, infoPanelClassName, contactOptionsClassName, socialLinksClassName, background, spacing, containerClassName, pattern, patternOpacity, formConfig, onSubmit, onSuccess, onError, }: ContactDarkProps): React.JSX.Element;
|
|
245
|
+
declare function ContactDark({ heading, description, contactHeading, contactDescription, buttonText, buttonIcon, actions, actionsSlot, contactOptions, contactOptionsSlot, socialLinks, socialLinksSlot, formFields, successMessage, errorMessage, className, headerClassName, headingClassName, descriptionClassName, cardClassName, formPanelClassName, formClassName, submitClassName, infoPanelClassName, contactOptionsClassName, socialLinksClassName, successMessageClassName, errorMessageClassName, background, spacing, containerClassName, pattern, patternOpacity, formConfig, onSubmit, onSuccess, onError, }: ContactDarkProps): React.JSX.Element;
|
|
227
246
|
|
|
228
247
|
export { ContactDark, type ContactDarkProps };
|
package/dist/contact-dark.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { F as FormFieldConfig } from './form-field-types-BYdJNOsW.js';
|
|
2
3
|
import { P as PageSpeedFormConfig } from './forms-BCcwNFhk.js';
|
|
3
4
|
import { f as SectionBackground, g as SectionSpacing, t as PatternName } from './community-initiatives-Bi_ClKrO.js';
|
|
4
5
|
import { A as ActionConfig } from './blocks-k17uluAz.js';
|
|
@@ -7,12 +8,6 @@ import 'class-variance-authority';
|
|
|
7
8
|
import './button-variants-lRElsmTc.js';
|
|
8
9
|
import 'class-variance-authority/types';
|
|
9
10
|
|
|
10
|
-
interface ContactDarkFormValues {
|
|
11
|
-
firstName: string;
|
|
12
|
-
lastName: string;
|
|
13
|
-
email: string;
|
|
14
|
-
message: string;
|
|
15
|
-
}
|
|
16
11
|
interface ContactDarkOption {
|
|
17
12
|
/**
|
|
18
13
|
* Icon name for the contact option
|
|
@@ -90,6 +85,21 @@ interface ContactDarkProps {
|
|
|
90
85
|
* Custom slot for rendering social links (overrides socialLinks array)
|
|
91
86
|
*/
|
|
92
87
|
socialLinksSlot?: React.ReactNode;
|
|
88
|
+
/**
|
|
89
|
+
* Array of form field configurations
|
|
90
|
+
* If not provided, defaults to: firstName, lastName, email, message
|
|
91
|
+
*/
|
|
92
|
+
formFields?: FormFieldConfig[];
|
|
93
|
+
/**
|
|
94
|
+
* Success message to display after form submission
|
|
95
|
+
* @default "Thank you! Your message has been sent successfully."
|
|
96
|
+
*/
|
|
97
|
+
successMessage?: React.ReactNode;
|
|
98
|
+
/**
|
|
99
|
+
* Error message to display if submission fails
|
|
100
|
+
* @default "There was an error sending your message. Please try again."
|
|
101
|
+
*/
|
|
102
|
+
errorMessage?: React.ReactNode;
|
|
93
103
|
/**
|
|
94
104
|
* Additional CSS classes for the section
|
|
95
105
|
*/
|
|
@@ -137,7 +147,16 @@ interface ContactDarkProps {
|
|
|
137
147
|
/**
|
|
138
148
|
* Additional CSS classes for the social links container
|
|
139
149
|
*/
|
|
140
|
-
socialLinksClassName?: string;
|
|
150
|
+
socialLinksClassName?: string;
|
|
151
|
+
/**
|
|
152
|
+
* Additional CSS classes for the success message
|
|
153
|
+
*/
|
|
154
|
+
successMessageClassName?: string;
|
|
155
|
+
/**
|
|
156
|
+
* Additional CSS classes for the error message
|
|
157
|
+
*/
|
|
158
|
+
errorMessageClassName?: string;
|
|
159
|
+
/**
|
|
141
160
|
* Background style for the section
|
|
142
161
|
*/
|
|
143
162
|
background?: SectionBackground;
|
|
@@ -193,7 +212,7 @@ interface ContactDarkProps {
|
|
|
193
212
|
* });
|
|
194
213
|
* }}
|
|
195
214
|
*/
|
|
196
|
-
onSubmit?: (values:
|
|
215
|
+
onSubmit?: (values: Record<string, any>) => void | Promise<void>;
|
|
197
216
|
/**
|
|
198
217
|
* Optional success callback invoked after successful submission.
|
|
199
218
|
*
|
|
@@ -223,6 +242,6 @@ interface ContactDarkProps {
|
|
|
223
242
|
* />
|
|
224
243
|
* ```
|
|
225
244
|
*/
|
|
226
|
-
declare function ContactDark({ heading, description, contactHeading, contactDescription, buttonText, buttonIcon, actions, actionsSlot, contactOptions, contactOptionsSlot, socialLinks, socialLinksSlot, className, headerClassName, headingClassName, descriptionClassName, cardClassName, formPanelClassName, formClassName, submitClassName, infoPanelClassName, contactOptionsClassName, socialLinksClassName, background, spacing, containerClassName, pattern, patternOpacity, formConfig, onSubmit, onSuccess, onError, }: ContactDarkProps): React.JSX.Element;
|
|
245
|
+
declare function ContactDark({ heading, description, contactHeading, contactDescription, buttonText, buttonIcon, actions, actionsSlot, contactOptions, contactOptionsSlot, socialLinks, socialLinksSlot, formFields, successMessage, errorMessage, className, headerClassName, headingClassName, descriptionClassName, cardClassName, formPanelClassName, formClassName, submitClassName, infoPanelClassName, contactOptionsClassName, socialLinksClassName, successMessageClassName, errorMessageClassName, background, spacing, containerClassName, pattern, patternOpacity, formConfig, onSubmit, onSuccess, onError, }: ContactDarkProps): React.JSX.Element;
|
|
227
246
|
|
|
228
247
|
export { ContactDark, type ContactDarkProps };
|