@opensite/ui 2.2.1 → 2.2.3
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-card.cjs +3 -32
- package/dist/contact-card.d.cts +2 -10
- package/dist/contact-card.d.ts +2 -10
- package/dist/contact-card.js +4 -33
- package/dist/{contact-dark-tweUQnN1.d.ts → contact-dark-0gEH_OJl.d.ts} +1 -10
- package/dist/{contact-dark-VpMwwNkH.d.cts → contact-dark-BCQefo1j.d.cts} +1 -10
- package/dist/contact-dark.cjs +3 -32
- package/dist/contact-dark.d.cts +1 -1
- package/dist/contact-dark.d.ts +1 -1
- package/dist/contact-dark.js +4 -33
- package/dist/contact-emergency.cjs +4 -33
- package/dist/contact-emergency.d.cts +1 -9
- package/dist/contact-emergency.d.ts +1 -9
- package/dist/contact-emergency.js +6 -35
- package/dist/contact-faq.cjs +10 -38
- package/dist/contact-faq.d.cts +1 -9
- package/dist/contact-faq.d.ts +1 -9
- package/dist/contact-faq.js +7 -38
- package/dist/contact-image.cjs +8 -37
- package/dist/contact-image.d.cts +1 -9
- package/dist/contact-image.d.ts +1 -9
- package/dist/contact-image.js +9 -38
- package/dist/contact-vendor.cjs +8 -44
- package/dist/contact-vendor.js +6 -27
- package/dist/hero-image-slider.cjs +15 -30
- package/dist/hero-image-slider.js +15 -30
- package/dist/hero-newsletter-minimal.cjs +17 -34
- package/dist/hero-newsletter-minimal.js +17 -34
- package/dist/registry.cjs +1713 -1911
- package/dist/registry.js +471 -669
- package/package.json +2 -2
package/dist/contact-card.cjs
CHANGED
|
@@ -896,8 +896,6 @@ var DEFAULT_FORM_FIELDS = [
|
|
|
896
896
|
function ContactCard({
|
|
897
897
|
heading = "Get In Touch",
|
|
898
898
|
description = "We'd love to hear from you. Send us a message and we'll respond as soon as possible.",
|
|
899
|
-
buttonText = "Send Message",
|
|
900
|
-
buttonIcon,
|
|
901
899
|
contactOptions,
|
|
902
900
|
contactOptionsSlot,
|
|
903
901
|
socialLinks,
|
|
@@ -918,22 +916,6 @@ function ContactCard({
|
|
|
918
916
|
pattern,
|
|
919
917
|
patternOpacity
|
|
920
918
|
}) {
|
|
921
|
-
const formStyleRules = React__namespace.useMemo(() => {
|
|
922
|
-
return {
|
|
923
|
-
formContainer: formEngineSetup?.formLayoutSettings?.styleRules?.formContainer ?? DEFAULT_STYLE_RULES.formContainer,
|
|
924
|
-
fieldsContainer: formEngineSetup?.formLayoutSettings?.styleRules?.fieldsContainer ?? DEFAULT_STYLE_RULES.fieldsContainer,
|
|
925
|
-
fieldClassName: formEngineSetup?.formLayoutSettings?.styleRules?.fieldClassName ?? DEFAULT_STYLE_RULES.fieldClassName,
|
|
926
|
-
formClassName: formEngineSetup?.formLayoutSettings?.styleRules?.formClassName ?? DEFAULT_STYLE_RULES.formClassName,
|
|
927
|
-
successMessageClassName: formEngineSetup?.formLayoutSettings?.styleRules?.successMessageClassName ?? DEFAULT_STYLE_RULES.successMessageClassName,
|
|
928
|
-
errorMessageClassName: formEngineSetup?.formLayoutSettings?.styleRules?.errorMessageClassName ?? DEFAULT_STYLE_RULES.errorMessageClassName
|
|
929
|
-
};
|
|
930
|
-
}, [formEngineSetup?.formLayoutSettings?.styleRules]);
|
|
931
|
-
const formFields = React__namespace.useMemo(() => {
|
|
932
|
-
if (formEngineSetup?.fields && formEngineSetup.fields.length > 0) {
|
|
933
|
-
return formEngineSetup.fields;
|
|
934
|
-
}
|
|
935
|
-
return DEFAULT_FORM_FIELDS;
|
|
936
|
-
}, [formEngineSetup?.fields]);
|
|
937
919
|
const contactOptionsContent = React__namespace.useMemo(() => {
|
|
938
920
|
if (contactOptionsSlot) return contactOptionsSlot;
|
|
939
921
|
if (contactOptions && contactOptions.length > 0) {
|
|
@@ -998,20 +980,9 @@ function ContactCard({
|
|
|
998
980
|
/* @__PURE__ */ jsxRuntime.jsx(Card, { className: cn("order-2 lg:order-1 pt-0 pb-0", cardClassName), children: /* @__PURE__ */ jsxRuntime.jsx(CardContent, { className: cn("p-6 lg:p-8", cardContentClassName), children: formEngineSetup ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
999
981
|
integration.FormEngine,
|
|
1000
982
|
{
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
formLayout: "standard",
|
|
1005
|
-
submitButtonSetup: {
|
|
1006
|
-
...formEngineSetup.formLayoutSettings?.submitButtonSetup,
|
|
1007
|
-
submitLabel: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1008
|
-
buttonIcon,
|
|
1009
|
-
buttonText
|
|
1010
|
-
] })
|
|
1011
|
-
},
|
|
1012
|
-
styleRules: formStyleRules
|
|
1013
|
-
},
|
|
1014
|
-
fields: formFields
|
|
983
|
+
formEngineSetup,
|
|
984
|
+
defaultFields: DEFAULT_FORM_FIELDS,
|
|
985
|
+
defaultStyleRules: DEFAULT_STYLE_RULES
|
|
1015
986
|
}
|
|
1016
987
|
) : null }) }),
|
|
1017
988
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
package/dist/contact-card.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { FormEngineProps } from '@page-speed/forms/integration';
|
|
3
3
|
import { f as SectionBackground, g as SectionSpacing, t as PatternName } from './community-initiatives-Bz_A5vLU.cjs';
|
|
4
|
-
import { C as ContactDarkSocialLink } from './contact-dark-
|
|
4
|
+
import { C as ContactDarkSocialLink } from './contact-dark-BCQefo1j.cjs';
|
|
5
5
|
import 'react/jsx-runtime';
|
|
6
6
|
import './blocks-Cohq4eio.cjs';
|
|
7
7
|
import 'class-variance-authority';
|
|
@@ -31,14 +31,6 @@ interface ContactCardProps {
|
|
|
31
31
|
* Description text below the heading
|
|
32
32
|
*/
|
|
33
33
|
description?: React.ReactNode;
|
|
34
|
-
/**
|
|
35
|
-
* Submit button text
|
|
36
|
-
*/
|
|
37
|
-
buttonText?: string;
|
|
38
|
-
/**
|
|
39
|
-
* Submit button icon (displayed before text)
|
|
40
|
-
*/
|
|
41
|
-
buttonIcon?: React.ReactNode;
|
|
42
34
|
/**
|
|
43
35
|
* Contact options to display with icons
|
|
44
36
|
*/
|
|
@@ -135,6 +127,6 @@ interface ContactCardProps {
|
|
|
135
127
|
* />
|
|
136
128
|
* ```
|
|
137
129
|
*/
|
|
138
|
-
declare function ContactCard({ heading, description,
|
|
130
|
+
declare function ContactCard({ heading, description, contactOptions, contactOptionsSlot, socialLinks, socialLinksSlot, formEngineSetup, className, containerClassName, cardClassName, cardContentClassName, infoPanelClassName, headingClassName, descriptionClassName, contactOptionsClassName, socialLinksClassName, gridClassName, background, spacing, pattern, patternOpacity, }: ContactCardProps): React.JSX.Element;
|
|
139
131
|
|
|
140
132
|
export { ContactCard, type ContactCardProps };
|
package/dist/contact-card.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { FormEngineProps } from '@page-speed/forms/integration';
|
|
3
3
|
import { f as SectionBackground, g as SectionSpacing, t as PatternName } from './community-initiatives-Bi_ClKrO.js';
|
|
4
|
-
import { C as ContactDarkSocialLink } from './contact-dark-
|
|
4
|
+
import { C as ContactDarkSocialLink } from './contact-dark-0gEH_OJl.js';
|
|
5
5
|
import 'react/jsx-runtime';
|
|
6
6
|
import './blocks-k17uluAz.js';
|
|
7
7
|
import 'class-variance-authority';
|
|
@@ -31,14 +31,6 @@ interface ContactCardProps {
|
|
|
31
31
|
* Description text below the heading
|
|
32
32
|
*/
|
|
33
33
|
description?: React.ReactNode;
|
|
34
|
-
/**
|
|
35
|
-
* Submit button text
|
|
36
|
-
*/
|
|
37
|
-
buttonText?: string;
|
|
38
|
-
/**
|
|
39
|
-
* Submit button icon (displayed before text)
|
|
40
|
-
*/
|
|
41
|
-
buttonIcon?: React.ReactNode;
|
|
42
34
|
/**
|
|
43
35
|
* Contact options to display with icons
|
|
44
36
|
*/
|
|
@@ -135,6 +127,6 @@ interface ContactCardProps {
|
|
|
135
127
|
* />
|
|
136
128
|
* ```
|
|
137
129
|
*/
|
|
138
|
-
declare function ContactCard({ heading, description,
|
|
130
|
+
declare function ContactCard({ heading, description, contactOptions, contactOptionsSlot, socialLinks, socialLinksSlot, formEngineSetup, className, containerClassName, cardClassName, cardContentClassName, infoPanelClassName, headingClassName, descriptionClassName, contactOptionsClassName, socialLinksClassName, gridClassName, background, spacing, pattern, patternOpacity, }: ContactCardProps): React.JSX.Element;
|
|
139
131
|
|
|
140
132
|
export { ContactCard, type ContactCardProps };
|
package/dist/contact-card.js
CHANGED
|
@@ -5,7 +5,7 @@ import { FormEngine } from '@page-speed/forms/integration';
|
|
|
5
5
|
import { clsx } from 'clsx';
|
|
6
6
|
import { twMerge } from 'tailwind-merge';
|
|
7
7
|
import { cva } from 'class-variance-authority';
|
|
8
|
-
import { jsx, jsxs
|
|
8
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
9
9
|
import { Icon } from '@page-speed/icon';
|
|
10
10
|
|
|
11
11
|
// components/blocks/contact/contact-card.tsx
|
|
@@ -875,8 +875,6 @@ var DEFAULT_FORM_FIELDS = [
|
|
|
875
875
|
function ContactCard({
|
|
876
876
|
heading = "Get In Touch",
|
|
877
877
|
description = "We'd love to hear from you. Send us a message and we'll respond as soon as possible.",
|
|
878
|
-
buttonText = "Send Message",
|
|
879
|
-
buttonIcon,
|
|
880
878
|
contactOptions,
|
|
881
879
|
contactOptionsSlot,
|
|
882
880
|
socialLinks,
|
|
@@ -897,22 +895,6 @@ function ContactCard({
|
|
|
897
895
|
pattern,
|
|
898
896
|
patternOpacity
|
|
899
897
|
}) {
|
|
900
|
-
const formStyleRules = React.useMemo(() => {
|
|
901
|
-
return {
|
|
902
|
-
formContainer: formEngineSetup?.formLayoutSettings?.styleRules?.formContainer ?? DEFAULT_STYLE_RULES.formContainer,
|
|
903
|
-
fieldsContainer: formEngineSetup?.formLayoutSettings?.styleRules?.fieldsContainer ?? DEFAULT_STYLE_RULES.fieldsContainer,
|
|
904
|
-
fieldClassName: formEngineSetup?.formLayoutSettings?.styleRules?.fieldClassName ?? DEFAULT_STYLE_RULES.fieldClassName,
|
|
905
|
-
formClassName: formEngineSetup?.formLayoutSettings?.styleRules?.formClassName ?? DEFAULT_STYLE_RULES.formClassName,
|
|
906
|
-
successMessageClassName: formEngineSetup?.formLayoutSettings?.styleRules?.successMessageClassName ?? DEFAULT_STYLE_RULES.successMessageClassName,
|
|
907
|
-
errorMessageClassName: formEngineSetup?.formLayoutSettings?.styleRules?.errorMessageClassName ?? DEFAULT_STYLE_RULES.errorMessageClassName
|
|
908
|
-
};
|
|
909
|
-
}, [formEngineSetup?.formLayoutSettings?.styleRules]);
|
|
910
|
-
const formFields = React.useMemo(() => {
|
|
911
|
-
if (formEngineSetup?.fields && formEngineSetup.fields.length > 0) {
|
|
912
|
-
return formEngineSetup.fields;
|
|
913
|
-
}
|
|
914
|
-
return DEFAULT_FORM_FIELDS;
|
|
915
|
-
}, [formEngineSetup?.fields]);
|
|
916
898
|
const contactOptionsContent = React.useMemo(() => {
|
|
917
899
|
if (contactOptionsSlot) return contactOptionsSlot;
|
|
918
900
|
if (contactOptions && contactOptions.length > 0) {
|
|
@@ -977,20 +959,9 @@ function ContactCard({
|
|
|
977
959
|
/* @__PURE__ */ jsx(Card, { className: cn("order-2 lg:order-1 pt-0 pb-0", cardClassName), children: /* @__PURE__ */ jsx(CardContent, { className: cn("p-6 lg:p-8", cardContentClassName), children: formEngineSetup ? /* @__PURE__ */ jsx(
|
|
978
960
|
FormEngine,
|
|
979
961
|
{
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
formLayout: "standard",
|
|
984
|
-
submitButtonSetup: {
|
|
985
|
-
...formEngineSetup.formLayoutSettings?.submitButtonSetup,
|
|
986
|
-
submitLabel: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
987
|
-
buttonIcon,
|
|
988
|
-
buttonText
|
|
989
|
-
] })
|
|
990
|
-
},
|
|
991
|
-
styleRules: formStyleRules
|
|
992
|
-
},
|
|
993
|
-
fields: formFields
|
|
962
|
+
formEngineSetup,
|
|
963
|
+
defaultFields: DEFAULT_FORM_FIELDS,
|
|
964
|
+
defaultStyleRules: DEFAULT_STYLE_RULES
|
|
994
965
|
}
|
|
995
966
|
) : null }) }),
|
|
996
967
|
/* @__PURE__ */ jsxs(
|
|
@@ -47,14 +47,6 @@ interface ContactDarkProps {
|
|
|
47
47
|
* Contact information description
|
|
48
48
|
*/
|
|
49
49
|
contactDescription?: React.ReactNode;
|
|
50
|
-
/**
|
|
51
|
-
* Submit button text
|
|
52
|
-
*/
|
|
53
|
-
buttonText?: string;
|
|
54
|
-
/**
|
|
55
|
-
* Submit button icon (displayed before text)
|
|
56
|
-
*/
|
|
57
|
-
buttonIcon?: React.ReactNode;
|
|
58
50
|
/**
|
|
59
51
|
* Contact options to display
|
|
60
52
|
*/
|
|
@@ -142,11 +134,10 @@ interface ContactDarkProps {
|
|
|
142
134
|
* <ContactDark
|
|
143
135
|
* heading="Contact Us"
|
|
144
136
|
* description="Any questions or remarks? Just write us a message!"
|
|
145
|
-
* buttonText="Send Message"
|
|
146
137
|
* formEngineSetup={{ formConfig: { endpoint: "/api/contact", format: "json" } }}
|
|
147
138
|
* />
|
|
148
139
|
* ```
|
|
149
140
|
*/
|
|
150
|
-
declare function ContactDark({ heading, description, contactHeading, contactDescription,
|
|
141
|
+
declare function ContactDark({ heading, description, contactHeading, contactDescription, contactOptions, contactOptionsSlot, socialLinks, socialLinksSlot, formEngineSetup, className, headerClassName, headingClassName, descriptionClassName, cardClassName, formPanelClassName, infoPanelClassName, contactOptionsClassName, socialLinksClassName, background, spacing, containerClassName, pattern, patternOpacity, }: ContactDarkProps): React.JSX.Element;
|
|
151
142
|
|
|
152
143
|
export { type ContactDarkSocialLink as C, ContactDark as a, type ContactDarkProps as b };
|
|
@@ -47,14 +47,6 @@ interface ContactDarkProps {
|
|
|
47
47
|
* Contact information description
|
|
48
48
|
*/
|
|
49
49
|
contactDescription?: React.ReactNode;
|
|
50
|
-
/**
|
|
51
|
-
* Submit button text
|
|
52
|
-
*/
|
|
53
|
-
buttonText?: string;
|
|
54
|
-
/**
|
|
55
|
-
* Submit button icon (displayed before text)
|
|
56
|
-
*/
|
|
57
|
-
buttonIcon?: React.ReactNode;
|
|
58
50
|
/**
|
|
59
51
|
* Contact options to display
|
|
60
52
|
*/
|
|
@@ -142,11 +134,10 @@ interface ContactDarkProps {
|
|
|
142
134
|
* <ContactDark
|
|
143
135
|
* heading="Contact Us"
|
|
144
136
|
* description="Any questions or remarks? Just write us a message!"
|
|
145
|
-
* buttonText="Send Message"
|
|
146
137
|
* formEngineSetup={{ formConfig: { endpoint: "/api/contact", format: "json" } }}
|
|
147
138
|
* />
|
|
148
139
|
* ```
|
|
149
140
|
*/
|
|
150
|
-
declare function ContactDark({ heading, description, contactHeading, contactDescription,
|
|
141
|
+
declare function ContactDark({ heading, description, contactHeading, contactDescription, contactOptions, contactOptionsSlot, socialLinks, socialLinksSlot, formEngineSetup, className, headerClassName, headingClassName, descriptionClassName, cardClassName, formPanelClassName, infoPanelClassName, contactOptionsClassName, socialLinksClassName, background, spacing, containerClassName, pattern, patternOpacity, }: ContactDarkProps): React.JSX.Element;
|
|
151
142
|
|
|
152
143
|
export { type ContactDarkSocialLink as C, ContactDark as a, type ContactDarkProps as b };
|
package/dist/contact-dark.cjs
CHANGED
|
@@ -889,8 +889,6 @@ function ContactDark({
|
|
|
889
889
|
description,
|
|
890
890
|
contactHeading = "Contact Information",
|
|
891
891
|
contactDescription = "Fill up the form and our team will get back to you within 24 hours.",
|
|
892
|
-
buttonText = "Submit",
|
|
893
|
-
buttonIcon,
|
|
894
892
|
contactOptions,
|
|
895
893
|
contactOptionsSlot,
|
|
896
894
|
socialLinks,
|
|
@@ -911,22 +909,6 @@ function ContactDark({
|
|
|
911
909
|
pattern,
|
|
912
910
|
patternOpacity
|
|
913
911
|
}) {
|
|
914
|
-
const formStyleRules = React__namespace.useMemo(() => {
|
|
915
|
-
return {
|
|
916
|
-
formContainer: formEngineSetup?.formLayoutSettings?.styleRules?.formContainer ?? DEFAULT_STYLE_RULES.formContainer,
|
|
917
|
-
fieldsContainer: formEngineSetup?.formLayoutSettings?.styleRules?.fieldsContainer ?? DEFAULT_STYLE_RULES.fieldsContainer,
|
|
918
|
-
fieldClassName: formEngineSetup?.formLayoutSettings?.styleRules?.fieldClassName ?? DEFAULT_STYLE_RULES.fieldClassName,
|
|
919
|
-
formClassName: formEngineSetup?.formLayoutSettings?.styleRules?.formClassName ?? DEFAULT_STYLE_RULES.formClassName,
|
|
920
|
-
successMessageClassName: formEngineSetup?.formLayoutSettings?.styleRules?.successMessageClassName ?? DEFAULT_STYLE_RULES.successMessageClassName,
|
|
921
|
-
errorMessageClassName: formEngineSetup?.formLayoutSettings?.styleRules?.errorMessageClassName ?? DEFAULT_STYLE_RULES.errorMessageClassName
|
|
922
|
-
};
|
|
923
|
-
}, [formEngineSetup?.formLayoutSettings?.styleRules]);
|
|
924
|
-
const formFields = React__namespace.useMemo(() => {
|
|
925
|
-
if (formEngineSetup?.fields && formEngineSetup.fields.length > 0) {
|
|
926
|
-
return formEngineSetup.fields;
|
|
927
|
-
}
|
|
928
|
-
return DEFAULT_FORM_FIELDS;
|
|
929
|
-
}, [formEngineSetup?.fields]);
|
|
930
912
|
const contactOptionsContent = React__namespace.useMemo(() => {
|
|
931
913
|
if (contactOptionsSlot) return contactOptionsSlot;
|
|
932
914
|
if (contactOptions && contactOptions.length > 0) {
|
|
@@ -992,20 +974,9 @@ function ContactDark({
|
|
|
992
974
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("p-6 lg:p-12", formPanelClassName), children: formEngineSetup ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
993
975
|
integration.FormEngine,
|
|
994
976
|
{
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
formLayout: "standard",
|
|
999
|
-
submitButtonSetup: {
|
|
1000
|
-
...formEngineSetup.formLayoutSettings?.submitButtonSetup,
|
|
1001
|
-
submitLabel: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1002
|
-
buttonIcon,
|
|
1003
|
-
buttonText
|
|
1004
|
-
] })
|
|
1005
|
-
},
|
|
1006
|
-
styleRules: formStyleRules
|
|
1007
|
-
},
|
|
1008
|
-
fields: formFields
|
|
977
|
+
formEngineSetup,
|
|
978
|
+
defaultFields: DEFAULT_FORM_FIELDS,
|
|
979
|
+
defaultStyleRules: DEFAULT_STYLE_RULES
|
|
1009
980
|
}
|
|
1010
981
|
) : null }),
|
|
1011
982
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
package/dist/contact-dark.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a as ContactDark, b as ContactDarkProps } from './contact-dark-
|
|
1
|
+
export { a as ContactDark, b as ContactDarkProps } from './contact-dark-BCQefo1j.cjs';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '@page-speed/forms/integration';
|
|
4
4
|
import './community-initiatives-Bz_A5vLU.cjs';
|
package/dist/contact-dark.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a as ContactDark, b as ContactDarkProps } from './contact-dark-
|
|
1
|
+
export { a as ContactDark, b as ContactDarkProps } from './contact-dark-0gEH_OJl.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '@page-speed/forms/integration';
|
|
4
4
|
import './community-initiatives-Bi_ClKrO.js';
|
package/dist/contact-dark.js
CHANGED
|
@@ -5,7 +5,7 @@ import { FormEngine } from '@page-speed/forms/integration';
|
|
|
5
5
|
import { clsx } from 'clsx';
|
|
6
6
|
import { twMerge } from 'tailwind-merge';
|
|
7
7
|
import { cva } from 'class-variance-authority';
|
|
8
|
-
import { jsx, jsxs
|
|
8
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
9
9
|
import { Icon } from '@page-speed/icon';
|
|
10
10
|
|
|
11
11
|
// components/blocks/contact/contact-dark.tsx
|
|
@@ -868,8 +868,6 @@ function ContactDark({
|
|
|
868
868
|
description,
|
|
869
869
|
contactHeading = "Contact Information",
|
|
870
870
|
contactDescription = "Fill up the form and our team will get back to you within 24 hours.",
|
|
871
|
-
buttonText = "Submit",
|
|
872
|
-
buttonIcon,
|
|
873
871
|
contactOptions,
|
|
874
872
|
contactOptionsSlot,
|
|
875
873
|
socialLinks,
|
|
@@ -890,22 +888,6 @@ function ContactDark({
|
|
|
890
888
|
pattern,
|
|
891
889
|
patternOpacity
|
|
892
890
|
}) {
|
|
893
|
-
const formStyleRules = React.useMemo(() => {
|
|
894
|
-
return {
|
|
895
|
-
formContainer: formEngineSetup?.formLayoutSettings?.styleRules?.formContainer ?? DEFAULT_STYLE_RULES.formContainer,
|
|
896
|
-
fieldsContainer: formEngineSetup?.formLayoutSettings?.styleRules?.fieldsContainer ?? DEFAULT_STYLE_RULES.fieldsContainer,
|
|
897
|
-
fieldClassName: formEngineSetup?.formLayoutSettings?.styleRules?.fieldClassName ?? DEFAULT_STYLE_RULES.fieldClassName,
|
|
898
|
-
formClassName: formEngineSetup?.formLayoutSettings?.styleRules?.formClassName ?? DEFAULT_STYLE_RULES.formClassName,
|
|
899
|
-
successMessageClassName: formEngineSetup?.formLayoutSettings?.styleRules?.successMessageClassName ?? DEFAULT_STYLE_RULES.successMessageClassName,
|
|
900
|
-
errorMessageClassName: formEngineSetup?.formLayoutSettings?.styleRules?.errorMessageClassName ?? DEFAULT_STYLE_RULES.errorMessageClassName
|
|
901
|
-
};
|
|
902
|
-
}, [formEngineSetup?.formLayoutSettings?.styleRules]);
|
|
903
|
-
const formFields = React.useMemo(() => {
|
|
904
|
-
if (formEngineSetup?.fields && formEngineSetup.fields.length > 0) {
|
|
905
|
-
return formEngineSetup.fields;
|
|
906
|
-
}
|
|
907
|
-
return DEFAULT_FORM_FIELDS;
|
|
908
|
-
}, [formEngineSetup?.fields]);
|
|
909
891
|
const contactOptionsContent = React.useMemo(() => {
|
|
910
892
|
if (contactOptionsSlot) return contactOptionsSlot;
|
|
911
893
|
if (contactOptions && contactOptions.length > 0) {
|
|
@@ -971,20 +953,9 @@ function ContactDark({
|
|
|
971
953
|
/* @__PURE__ */ jsx("div", { className: cn("p-6 lg:p-12", formPanelClassName), children: formEngineSetup ? /* @__PURE__ */ jsx(
|
|
972
954
|
FormEngine,
|
|
973
955
|
{
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
formLayout: "standard",
|
|
978
|
-
submitButtonSetup: {
|
|
979
|
-
...formEngineSetup.formLayoutSettings?.submitButtonSetup,
|
|
980
|
-
submitLabel: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
981
|
-
buttonIcon,
|
|
982
|
-
buttonText
|
|
983
|
-
] })
|
|
984
|
-
},
|
|
985
|
-
styleRules: formStyleRules
|
|
986
|
-
},
|
|
987
|
-
fields: formFields
|
|
956
|
+
formEngineSetup,
|
|
957
|
+
defaultFields: DEFAULT_FORM_FIELDS,
|
|
958
|
+
defaultStyleRules: DEFAULT_STYLE_RULES
|
|
988
959
|
}
|
|
989
960
|
) : null }),
|
|
990
961
|
/* @__PURE__ */ jsxs(
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var React = require('react');
|
|
5
4
|
var integration = require('@page-speed/forms/integration');
|
|
6
5
|
var clsx = require('clsx');
|
|
7
6
|
var tailwindMerge = require('tailwind-merge');
|
|
7
|
+
var React = require('react');
|
|
8
8
|
var classVarianceAuthority = require('class-variance-authority');
|
|
9
9
|
var jsxRuntime = require('react/jsx-runtime');
|
|
10
10
|
var icon = require('@page-speed/icon');
|
|
@@ -911,8 +911,6 @@ function ContactEmergency({
|
|
|
911
911
|
heading,
|
|
912
912
|
description,
|
|
913
913
|
contactItems,
|
|
914
|
-
buttonText = "Submit Emergency Request",
|
|
915
|
-
buttonIcon,
|
|
916
914
|
formEngineSetup,
|
|
917
915
|
className,
|
|
918
916
|
headerClassName,
|
|
@@ -924,22 +922,6 @@ function ContactEmergency({
|
|
|
924
922
|
pattern,
|
|
925
923
|
patternOpacity
|
|
926
924
|
}) {
|
|
927
|
-
const formStyleRules = React__namespace.useMemo(() => {
|
|
928
|
-
return {
|
|
929
|
-
formContainer: formEngineSetup?.formLayoutSettings?.styleRules?.formContainer ?? DEFAULT_STYLE_RULES.formContainer,
|
|
930
|
-
fieldsContainer: formEngineSetup?.formLayoutSettings?.styleRules?.fieldsContainer ?? DEFAULT_STYLE_RULES.fieldsContainer,
|
|
931
|
-
fieldClassName: formEngineSetup?.formLayoutSettings?.styleRules?.fieldClassName ?? DEFAULT_STYLE_RULES.fieldClassName,
|
|
932
|
-
formClassName: formEngineSetup?.formLayoutSettings?.styleRules?.formClassName ?? DEFAULT_STYLE_RULES.formClassName,
|
|
933
|
-
successMessageClassName: formEngineSetup?.formLayoutSettings?.styleRules?.successMessageClassName ?? DEFAULT_STYLE_RULES.successMessageClassName,
|
|
934
|
-
errorMessageClassName: formEngineSetup?.formLayoutSettings?.styleRules?.errorMessageClassName ?? DEFAULT_STYLE_RULES.errorMessageClassName
|
|
935
|
-
};
|
|
936
|
-
}, [formEngineSetup?.formLayoutSettings?.styleRules]);
|
|
937
|
-
const formFields = React__namespace.useMemo(() => {
|
|
938
|
-
if (formEngineSetup?.fields && formEngineSetup.fields.length > 0) {
|
|
939
|
-
return formEngineSetup.fields;
|
|
940
|
-
}
|
|
941
|
-
return DEFAULT_FORM_FIELDS;
|
|
942
|
-
}, [formEngineSetup?.fields]);
|
|
943
925
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
944
926
|
Section,
|
|
945
927
|
{
|
|
@@ -1013,20 +995,9 @@ function ContactEmergency({
|
|
|
1013
995
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-6", children: formEngineSetup ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1014
996
|
integration.FormEngine,
|
|
1015
997
|
{
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
formLayout: "standard",
|
|
1020
|
-
submitButtonSetup: {
|
|
1021
|
-
...formEngineSetup.formLayoutSettings?.submitButtonSetup,
|
|
1022
|
-
submitLabel: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1023
|
-
buttonIcon,
|
|
1024
|
-
buttonText
|
|
1025
|
-
] })
|
|
1026
|
-
},
|
|
1027
|
-
styleRules: formStyleRules
|
|
1028
|
-
},
|
|
1029
|
-
fields: formFields
|
|
998
|
+
formEngineSetup,
|
|
999
|
+
defaultFields: DEFAULT_FORM_FIELDS,
|
|
1000
|
+
defaultStyleRules: DEFAULT_STYLE_RULES
|
|
1030
1001
|
}
|
|
1031
1002
|
) : null })
|
|
1032
1003
|
] })
|
|
@@ -50,14 +50,6 @@ interface ContactEmergencyProps {
|
|
|
50
50
|
* Array of emergency contact info items to display in the grid
|
|
51
51
|
*/
|
|
52
52
|
contactItems?: ContactInfoItem[];
|
|
53
|
-
/**
|
|
54
|
-
* Submit button text
|
|
55
|
-
*/
|
|
56
|
-
buttonText?: string;
|
|
57
|
-
/**
|
|
58
|
-
* Icon to display in submit button
|
|
59
|
-
*/
|
|
60
|
-
buttonIcon?: React.ReactNode;
|
|
61
53
|
/**
|
|
62
54
|
* Full form engine setup and props
|
|
63
55
|
*/
|
|
@@ -111,6 +103,6 @@ interface ContactEmergencyProps {
|
|
|
111
103
|
* />
|
|
112
104
|
* ```
|
|
113
105
|
*/
|
|
114
|
-
declare function ContactEmergency({ heading, description, contactItems,
|
|
106
|
+
declare function ContactEmergency({ heading, description, contactItems, formEngineSetup, className, headerClassName, headingClassName, descriptionClassName, spacing, containerClassName, background, pattern, patternOpacity, }: ContactEmergencyProps): React.JSX.Element;
|
|
115
107
|
|
|
116
108
|
export { ContactEmergency, type ContactEmergencyProps };
|
|
@@ -50,14 +50,6 @@ interface ContactEmergencyProps {
|
|
|
50
50
|
* Array of emergency contact info items to display in the grid
|
|
51
51
|
*/
|
|
52
52
|
contactItems?: ContactInfoItem[];
|
|
53
|
-
/**
|
|
54
|
-
* Submit button text
|
|
55
|
-
*/
|
|
56
|
-
buttonText?: string;
|
|
57
|
-
/**
|
|
58
|
-
* Icon to display in submit button
|
|
59
|
-
*/
|
|
60
|
-
buttonIcon?: React.ReactNode;
|
|
61
53
|
/**
|
|
62
54
|
* Full form engine setup and props
|
|
63
55
|
*/
|
|
@@ -111,6 +103,6 @@ interface ContactEmergencyProps {
|
|
|
111
103
|
* />
|
|
112
104
|
* ```
|
|
113
105
|
*/
|
|
114
|
-
declare function ContactEmergency({ heading, description, contactItems,
|
|
106
|
+
declare function ContactEmergency({ heading, description, contactItems, formEngineSetup, className, headerClassName, headingClassName, descriptionClassName, spacing, containerClassName, background, pattern, patternOpacity, }: ContactEmergencyProps): React.JSX.Element;
|
|
115
107
|
|
|
116
108
|
export { ContactEmergency, type ContactEmergencyProps };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import React__default from 'react';
|
|
4
2
|
import { FormEngine } from '@page-speed/forms/integration';
|
|
5
3
|
import { clsx } from 'clsx';
|
|
6
4
|
import { twMerge } from 'tailwind-merge';
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import React__default from 'react';
|
|
7
7
|
import { cva } from 'class-variance-authority';
|
|
8
|
-
import { jsx, jsxs
|
|
8
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
9
9
|
import { Icon } from '@page-speed/icon';
|
|
10
10
|
|
|
11
11
|
// components/blocks/contact/contact-emergency.tsx
|
|
@@ -890,8 +890,6 @@ function ContactEmergency({
|
|
|
890
890
|
heading,
|
|
891
891
|
description,
|
|
892
892
|
contactItems,
|
|
893
|
-
buttonText = "Submit Emergency Request",
|
|
894
|
-
buttonIcon,
|
|
895
893
|
formEngineSetup,
|
|
896
894
|
className,
|
|
897
895
|
headerClassName,
|
|
@@ -903,22 +901,6 @@ function ContactEmergency({
|
|
|
903
901
|
pattern,
|
|
904
902
|
patternOpacity
|
|
905
903
|
}) {
|
|
906
|
-
const formStyleRules = React.useMemo(() => {
|
|
907
|
-
return {
|
|
908
|
-
formContainer: formEngineSetup?.formLayoutSettings?.styleRules?.formContainer ?? DEFAULT_STYLE_RULES.formContainer,
|
|
909
|
-
fieldsContainer: formEngineSetup?.formLayoutSettings?.styleRules?.fieldsContainer ?? DEFAULT_STYLE_RULES.fieldsContainer,
|
|
910
|
-
fieldClassName: formEngineSetup?.formLayoutSettings?.styleRules?.fieldClassName ?? DEFAULT_STYLE_RULES.fieldClassName,
|
|
911
|
-
formClassName: formEngineSetup?.formLayoutSettings?.styleRules?.formClassName ?? DEFAULT_STYLE_RULES.formClassName,
|
|
912
|
-
successMessageClassName: formEngineSetup?.formLayoutSettings?.styleRules?.successMessageClassName ?? DEFAULT_STYLE_RULES.successMessageClassName,
|
|
913
|
-
errorMessageClassName: formEngineSetup?.formLayoutSettings?.styleRules?.errorMessageClassName ?? DEFAULT_STYLE_RULES.errorMessageClassName
|
|
914
|
-
};
|
|
915
|
-
}, [formEngineSetup?.formLayoutSettings?.styleRules]);
|
|
916
|
-
const formFields = React.useMemo(() => {
|
|
917
|
-
if (formEngineSetup?.fields && formEngineSetup.fields.length > 0) {
|
|
918
|
-
return formEngineSetup.fields;
|
|
919
|
-
}
|
|
920
|
-
return DEFAULT_FORM_FIELDS;
|
|
921
|
-
}, [formEngineSetup?.fields]);
|
|
922
904
|
return /* @__PURE__ */ jsx(
|
|
923
905
|
Section,
|
|
924
906
|
{
|
|
@@ -992,20 +974,9 @@ function ContactEmergency({
|
|
|
992
974
|
/* @__PURE__ */ jsx("div", { className: "p-6", children: formEngineSetup ? /* @__PURE__ */ jsx(
|
|
993
975
|
FormEngine,
|
|
994
976
|
{
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
formLayout: "standard",
|
|
999
|
-
submitButtonSetup: {
|
|
1000
|
-
...formEngineSetup.formLayoutSettings?.submitButtonSetup,
|
|
1001
|
-
submitLabel: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1002
|
-
buttonIcon,
|
|
1003
|
-
buttonText
|
|
1004
|
-
] })
|
|
1005
|
-
},
|
|
1006
|
-
styleRules: formStyleRules
|
|
1007
|
-
},
|
|
1008
|
-
fields: formFields
|
|
977
|
+
formEngineSetup,
|
|
978
|
+
defaultFields: DEFAULT_FORM_FIELDS,
|
|
979
|
+
defaultStyleRules: DEFAULT_STYLE_RULES
|
|
1009
980
|
}
|
|
1010
981
|
) : null })
|
|
1011
982
|
] })
|