@designcrowd/library.brand-page 6.2.13 → 6.2.14-ast-faq-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.
- package/lib/src/{CreatedOnBrandCrowd-de-de-COhZYMwW.js → CreatedOnBrandCrowd-de-de-BOZKTen0.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-De5eIVfZ.js → CreatedOnBrandCrowd-en-us-BOr4hsGD.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-D7Bk2q4d.js → CreatedOnBrandCrowd-es-es-nyn1fkbK.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-BBCuO0D-.js → CreatedOnBrandCrowd-fr-ca-D48bdVhn.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-BBCuO0D-.js → CreatedOnBrandCrowd-fr-fr-D48bdVhn.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-B5MrGFq-.js → CreatedOnBrandCrowd-pt-br-Dt1bgmSg.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-B5MrGFq-.js → CreatedOnBrandCrowd-pt-pt-Dt1bgmSg.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-CJSWCbRg.js → CreatedOnDcom-de-de-BlySA1ky.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-OO0s0TRW.js → CreatedOnDcom-en-us-Dle6Aa4e.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-DQX1lZq7.js → CreatedOnDcom-es-es-DTH0STxF.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-C5cQ3rla.js → CreatedOnDcom-fr-ca-CW6e1MGN.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-UdyUX0b_.js → CreatedOnDcom-fr-fr-CAZYd0g7.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-C0FiDCQG.js → CreatedOnDcom-pt-br-Bg0uOt54.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-CbbnZ7aN.js → CreatedOnDcom-pt-pt-BXbVj4Fe.js} +1 -1
- package/lib/src/about-CA2U8qFD.js +13 -0
- package/lib/src/add-page-B16VpbS1.js +13 -0
- package/lib/src/ai-8_ADatlq.js +13 -0
- package/lib/src/align-center-CoOemTnd.js +14 -0
- package/lib/src/align-justify-BvjnqgE_.js +14 -0
- package/lib/src/align-left-F60LFC0p.js +14 -0
- package/lib/src/align-right-Dy6In9X5.js +14 -0
- package/lib/src/animate-DUh3exn7.js +14 -0
- package/lib/src/annotate-heart-kcf1_E1T.js +14 -0
- package/lib/src/arrow-down-MUNmkKUY.js +13 -0
- package/lib/src/arrow-left-DiHBGlhr.js +14 -0
- package/lib/src/arrow-right-CsxPBfl5.js +14 -0
- package/lib/src/arrow-top-right-DTPz5ghV.js +13 -0
- package/lib/src/arrow-up-D7K51NT_.js +14 -0
- package/lib/src/arrow-up-underline-DWAO3NRn.js +14 -0
- package/lib/src/attach-WZWuwngY.js +13 -0
- package/lib/src/auth-facebook-DBP-GYNH.js +16 -0
- package/lib/src/auth-facebook-white-BfEdFTUd.js +24 -0
- package/lib/src/auth-google-CtsAwire.js +16 -0
- package/lib/src/award-CViKEvBO.js +14 -0
- package/lib/src/background-BUwy-GRR.js +14 -0
- package/lib/src/badge-Buy4y_Wi.js +15 -0
- package/lib/src/ban-Le5fPXzP.js +10 -0
- package/lib/src/banner-CQ1O8sRx.js +14 -0
- package/lib/src/banner-centered-DidEDgt1.js +28 -0
- package/lib/src/banner-left-CyP_XZ07.js +28 -0
- package/lib/src/bar-C2F0_hjA.js +31 -0
- package/lib/src/bc-mast-B69nRuxM.js +14 -0
- package/lib/src/bezier-curve-C1Rm5iXf.js +14 -0
- package/lib/src/bezier-curve-outline-Z5V-cKkk.js +14 -0
- package/lib/src/bold-CIXLiBBm.js +14 -0
- package/lib/src/brand-page/constants/misc.constants.d.ts +7 -0
- package/lib/src/brand-page/constants/misc.constants.js +7 -0
- package/lib/src/brand-page/constants/styles.constants.d.ts +2 -0
- package/lib/src/brand-page/constants/styles.constants.js +2 -0
- package/lib/src/brand-page/models/content.model.d.ts +1 -0
- package/lib/src/brand-page/models/content.model.js +1 -0
- package/lib/src/brand-page/models/index.d.ts +26 -0
- package/lib/src/brand-page/utils/container-text-color.util.d.ts +12 -2
- package/lib/src/brand-page/utils/container-text-color.util.js +13 -1
- package/lib/src/brand-page/utils/content-callback-util.d.ts +2 -1
- package/lib/src/brand-page/utils/content-callback-util.js +3 -0
- package/lib/src/brand-page/utils/migration/migration-22.d.ts +3 -2
- package/lib/src/brand-page/utils/migration/migration-22.js +8 -3
- package/lib/src/brand-page/utils/view-model.util.js +16 -0
- package/lib/src/brand-page/view-models.d.ts +5 -2
- package/lib/src/brand-page-maker/assessors/faq-accordion-color-field-visibility.assessor.d.ts +3 -0
- package/lib/src/brand-page-maker/assessors/faq-accordion-color-field-visibility.assessor.js +4 -0
- package/lib/src/brand-page-maker/assessors/index.d.ts +1 -0
- package/lib/src/brand-page-maker/assessors/index.js +1 -0
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +1 -0
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +1 -0
- package/lib/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.js +2 -0
- package/lib/src/brand-page-maker/constants/config-settings-constant.d.ts +2 -1
- package/lib/src/brand-page-maker/constants/config-settings-constant.js +116 -4
- package/lib/src/brand-page-maker/constants/personalisation.constant.d.ts +2 -2
- package/lib/src/brand-page-maker/constants/personalisation.constant.js +3 -2
- package/lib/src/brand-page-maker/convertors/faq-display-style.convertor.d.ts +3 -0
- package/lib/src/brand-page-maker/convertors/faq-display-style.convertor.js +49 -0
- package/lib/src/brand-page-maker/models/content-settings-configs.d.ts +1 -0
- package/lib/src/brand-page-maker/models/content-settings-configs.js +1 -0
- package/lib/src/brand-page-maker/models/content-settings.d.ts +2 -1
- package/lib/src/brand-page-maker/models/content-settings.js +49 -2
- package/lib/src/brand-page-maker/utils/apply-color-strategy.js +41 -17
- package/lib/src/brand-page-maker/utils/rte-authoring.util.js +9 -1
- package/lib/src/brand-page-maker/validators/field.validator.js +2 -0
- package/lib/src/briefcase-B6_7grKF.js +14 -0
- package/lib/src/browser-oh2Vb5TO.js +14 -0
- package/lib/src/brush-Bmz4KGPe.js +13 -0
- package/lib/src/building-dpbDj8tp.js +10 -0
- package/lib/src/bulb-CkC7CUkR.js +14 -0
- package/lib/src/{bundled-translations-yGrvPE5i.js → bundled-translations-LMpZwTQ3.js} +15 -15
- package/lib/src/{bundled-translations.de-DE-L4Znf8Hs.js → bundled-translations.de-DE-Dz0bbwo3.js} +35 -35
- package/lib/src/{bundled-translations.es-ES-D6iticrK.js → bundled-translations.es-ES-DxFSGNeu.js} +21 -21
- package/lib/src/{bundled-translations.fr-CA-BgAVE-9k.js → bundled-translations.fr-CA-CArr9KG-.js} +33 -33
- package/lib/src/{bundled-translations.fr-FR-B8GbyqxQ.js → bundled-translations.fr-FR-Ci7-8b_w.js} +9 -9
- package/lib/src/{bundled-translations.pt-BR-DjPU3Db7.js → bundled-translations.pt-BR-BmPWrJ7g.js} +31 -31
- package/lib/src/{bundled-translations.pt-PT-BaepaDpr.js → bundled-translations.pt-PT-DS8g_MFC.js} +31 -31
- package/lib/src/bundles/bundled-translations.de-DE.json +9 -1
- package/lib/src/bundles/bundled-translations.es-ES.json +9 -1
- package/lib/src/bundles/bundled-translations.fr-CA.json +9 -1
- package/lib/src/bundles/bundled-translations.fr-FR.json +9 -1
- package/lib/src/bundles/bundled-translations.json +9 -1
- package/lib/src/bundles/bundled-translations.pt-BR.json +9 -1
- package/lib/src/bundles/bundled-translations.pt-PT.json +9 -1
- package/lib/src/business-P5lAjtM1.js +13 -0
- package/lib/src/business-card-filled-B8FYAc9F.js +10 -0
- package/lib/src/button-DUwORK3d.js +15 -0
- package/lib/src/button-arrow-C21QBCDX.js +19 -0
- package/lib/src/button-arrow-left-RyzPrE3S.js +19 -0
- package/lib/src/button-arrow-right-BHN4kUET.js +19 -0
- package/lib/src/button-brushstroke-5Y7xIt5q.js +21 -0
- package/lib/src/button-brushstroke-left-BS7UvaYJ.js +14 -0
- package/lib/src/button-brushstroke-right-D_drP-mz.js +14 -0
- package/lib/src/button-dashed-oval-8krpSeyO.js +25 -0
- package/lib/src/button-dashed-rectangle-BrNR2D5F.js +24 -0
- package/lib/src/button-dashed-rounded-DGBhTxBy.js +25 -0
- package/lib/src/button-doubleline-oval-Bl4D-nUA.js +23 -0
- package/lib/src/button-doubleline-rectangle-DFGrRUXS.js +29 -0
- package/lib/src/button-doubleline-rounded-C9RVBpgl.js +23 -0
- package/lib/src/button-justified-TeuXv4ih.js +33 -0
- package/lib/src/button-paper-bottom-acRIK_iq.js +12 -0
- package/lib/src/button-paper-top-kg3wCODW.js +12 -0
- package/lib/src/button-paper-z_BETvSN.js +16 -0
- package/lib/src/button-softshadow-oval-C4q_q05P.js +16 -0
- package/lib/src/button-softshadow-rectangle-B1cBNKwb.js +16 -0
- package/lib/src/button-softshadow-rounded-C2B3wOTW.js +16 -0
- package/lib/src/calculator-C64par6C.js +10 -0
- package/lib/src/calendar-Dh_pdAjv.js +10 -0
- package/lib/src/callout-error-DqCLmDD3.js +13 -0
- package/lib/src/callout-info-B7gMahpm.js +13 -0
- package/lib/src/callout-success-BXE7hDQa.js +13 -0
- package/lib/src/callout-warning-BYfYeq-R.js +13 -0
- package/lib/src/cap-CCT0Z5bu.js +27 -0
- package/lib/src/card-Bf12swxw.js +19 -0
- package/lib/src/card-vertical-D2_NWDkH.js +14 -0
- package/lib/src/cart-empty-Br4yXtxk.js +16 -0
- package/lib/src/chart-BDmHbVTZ.js +12 -0
- package/lib/src/chart-bar-8BIdDcVf.js +16 -0
- package/lib/src/chart-column-BWb0a1c-.js +16 -0
- package/lib/src/chart-line-DkV0aDnf.js +14 -0
- package/lib/src/chart-pie-D2lzlG9R.js +14 -0
- package/lib/src/check-DfVIi3EO.js +13 -0
- package/lib/src/check-circle-light-DIoK6jWp.js +14 -0
- package/lib/src/check-rounded-DQuKjI5X.js +14 -0
- package/lib/src/check-thin-D9l3KWds.js +14 -0
- package/lib/src/chevron-down-BK0tVi-v.js +14 -0
- package/lib/src/chevron-left-Ce2Ek0TX.js +14 -0
- package/lib/src/chevron-right-D6K0Xlf4.js +13 -0
- package/lib/src/chevron-right-wide-zeV0oMJY.js +10 -0
- package/lib/src/chevron-up-DEcGFjEW.js +14 -0
- package/lib/src/clipboard-check-CULRDD5v.js +14 -0
- package/lib/src/clock-jnGPbgJX.js +10 -0
- package/lib/src/close-DQFS3Sn3.js +13 -0
- package/lib/src/coins-sparkle-BMVH4j2S.js +21 -0
- package/lib/src/column-1-Dojsf9v5.js +23 -0
- package/lib/src/column-2-DyRERwMR.js +29 -0
- package/lib/src/column-3-DmD62vaw.js +35 -0
- package/lib/src/column-4-BFiVlvA0.js +41 -0
- package/lib/src/community-BYHvNCaR.js +10 -0
- package/lib/src/contact-message-Do2F-KMo.js +13 -0
- package/lib/src/content-C7yxSqyO.js +14 -0
- package/lib/src/copy-DfvPNoI3.js +13 -0
- package/lib/src/crop-GqhVDNLJ.js +13 -0
- package/lib/src/crown-7UXyL06i.js +13 -0
- package/lib/src/crown-alt-BqPAhYxv.js +10 -0
- package/lib/src/css/library.brand-page-brandCrowd.min.css +272 -71
- package/lib/src/css/library.brand-page-brandPage.min.css +273 -72
- package/lib/src/css/library.brand-page-designCom.min.css +272 -71
- package/lib/src/css/library.brand-page-preview.min.css +272 -71
- package/lib/src/custom-landscape-CO1c41ow.js +10 -0
- package/lib/src/delete-Cn3sOGVC.js +13 -0
- package/lib/src/designs-BiFt8Z2-.js +13 -0
- package/lib/src/desktop-C5jU-D9m.js +14 -0
- package/lib/src/desktop-hamburger-display-style-1-CQFklLXK.js +31 -0
- package/lib/src/desktop-hamburger-display-style-2-DyRQvlRW.js +31 -0
- package/lib/src/desktop-hamburger-display-style-with-button-1-Cn-j5kP-.js +16 -0
- package/lib/src/desktop-hamburger-display-style-with-button-2-CkxHluU-.js +16 -0
- package/lib/src/desktop-tab-display-style-1-C_lzujEJ.js +31 -0
- package/lib/src/desktop-tab-display-style-2-CyjVpaGh.js +31 -0
- package/lib/src/desktop-tab-display-style-3-CK2FHqHY.js +27 -0
- package/lib/src/desktop-tab-display-style-4-tg888kKw.js +27 -0
- package/lib/src/desktop-tab-display-style-5-oIOXfqiI.js +31 -0
- package/lib/src/desktop-tab-display-style-6-DXrHVn7T.js +31 -0
- package/lib/src/desktop-tab-display-style-7-CDDsTAoN.js +35 -0
- package/lib/src/desktop-tab-display-style-8-CKJj0E9x.js +31 -0
- package/lib/src/desktop-tab-display-style-with-button-1-DiDGyVoH.js +35 -0
- package/lib/src/desktop-tab-display-style-with-button-2-RgoJXDuT.js +35 -0
- package/lib/src/desktop-tab-display-style-with-button-3-yHVimk7a.js +35 -0
- package/lib/src/desktop-tab-display-style-with-button-4-EYzhwttF.js +31 -0
- package/lib/src/desktop-tab-display-style-with-button-5-BKnCnvSm.js +16 -0
- package/lib/src/desktop-tab-display-style-with-button-6-Cn9HAs9b.js +16 -0
- package/lib/src/diamond-CsooDu9J.js +14 -0
- package/lib/src/digital-business-card-filled-C6Stwxx8.js +33 -0
- package/lib/src/display-style-1-BEg7o5KX.js +16 -0
- package/lib/src/display-style-1-CxYTH6JK.js +39 -0
- package/lib/src/display-style-1-DJukLs5O.js +31 -0
- package/lib/src/display-style-2-BqFkMvXJ.js +16 -0
- package/lib/src/display-style-2-S7aFIUF1.js +31 -0
- package/lib/src/display-style-2-yHYek1LD.js +27 -0
- package/lib/src/display-style-3-BSfQVGfL.js +31 -0
- package/lib/src/display-style-4-D73_AwHI.js +31 -0
- package/lib/src/display-style-about-1-Cj_0h3ka.js +31 -0
- package/lib/src/display-style-about-2-C5YaCkbC.js +31 -0
- package/lib/src/display-style-about-3-DB1DO3YJ.js +31 -0
- package/lib/src/display-style-about-4-wUBXrcnI.js +16 -0
- package/lib/src/display-style-about-5-CpTChryH.js +15 -0
- package/lib/src/display-style-about-6-CRsCwWvs.js +15 -0
- package/lib/src/display-style-banner-1-D1TD-nVB.js +31 -0
- package/lib/src/display-style-banner-10-Bbe3mOXS.js +31 -0
- package/lib/src/display-style-banner-11-CCC10WBS.js +31 -0
- package/lib/src/display-style-banner-12-DDTvMLpr.js +31 -0
- package/lib/src/display-style-banner-13-CqyQU8QB.js +32 -0
- package/lib/src/display-style-banner-14-X_YwwJ5t.js +33 -0
- package/lib/src/display-style-banner-15-DdfEqAkL.js +33 -0
- package/lib/src/display-style-banner-2-Ip3gMaWG.js +31 -0
- package/lib/src/display-style-banner-3-D88bVwtF.js +31 -0
- package/lib/src/display-style-banner-4-O4USRoZm.js +31 -0
- package/lib/src/display-style-banner-5-IUk-Wcyq.js +31 -0
- package/lib/src/display-style-banner-6-DHFb_3Oy.js +16 -0
- package/lib/src/display-style-banner-7-BVHJvZd6.js +16 -0
- package/lib/src/display-style-banner-8-B4R9axSZ.js +31 -0
- package/lib/src/display-style-banner-9-CPUyJ4is.js +31 -0
- package/lib/src/display-style-contact-1-lSmMHZrd.js +16 -0
- package/lib/src/display-style-contact-2-CbMQRN8T.js +16 -0
- package/lib/src/display-style-contact-4-CTDhnebN.js +16 -0
- package/lib/src/display-style-contact-5-GOVNCsrO.js +16 -0
- package/lib/src/display-style-contact-6-DP13X6Dz.js +16 -0
- package/lib/src/display-style-faq-1-OdiBJki1.js +16 -0
- package/lib/src/display-style-faq-2-D2mPx7wp.js +16 -0
- package/lib/src/display-style-faq-3-CM8GjFrz.js +16 -0
- package/lib/src/display-style-images-1-BL5h9d7e.js +16 -0
- package/lib/src/display-style-images-2-AQL3jwsB.js +16 -0
- package/lib/src/display-style-images-3-BsLTjVqi.js +16 -0
- package/lib/src/display-style-images-4-DLIEaM5v.js +27 -0
- package/lib/src/display-style-images-5-DO3FMfGJ.js +16 -0
- package/lib/src/display-style-images-6-OJDb8aTH.js +16 -0
- package/lib/src/divider-DqRHNmAA.js +14 -0
- package/lib/src/divider-thick-2seTdgJ_.js +23 -0
- package/lib/src/divider-thin-DWpexrCi.js +23 -0
- package/lib/src/donate-GJJFBZwx.js +13 -0
- package/lib/src/download-M7Zv0qPP.js +14 -0
- package/lib/src/duplicate-DdSDaKyu.js +13 -0
- package/lib/src/edit-LJipizmf.js +13 -0
- package/lib/src/edit-line-mr_EMK0x.js +16 -0
- package/lib/src/ellipsis-DrM5z4ZU.js +13 -0
- package/lib/src/email-BlluCrzL.js +10 -0
- package/lib/src/email-symbol-Ds9JVreJ.js +10 -0
- package/lib/src/envelope-email-Dlf3t8tS.js +16 -0
- package/lib/src/eraser-BwqDE3_S.js +10 -0
- package/lib/src/error-DePFLc1o.js +13 -0
- package/lib/src/etsy-2JUxMOrW.js +10 -0
- package/lib/src/eye-crossed-Ckoo6NjF.js +14 -0
- package/lib/src/eye-open-CMtPWg6M.js +24 -0
- package/lib/src/facebook-CbMBmHqI.js +10 -0
- package/lib/src/favicon-BgAFzy-F.js +14 -0
- package/lib/src/fees-6IgVBMJK.js +13 -0
- package/lib/src/file-CM_cCwRB.js +14 -0
- package/lib/src/file-box--FOxDVVp.js +13 -0
- package/lib/src/file-empty-Dq78MiWX.js +14 -0
- package/lib/src/filter-BNUIffVJ.js +13 -0
- package/lib/src/filter-BtIaks3C.js +14 -0
- package/lib/src/filters-DX1BaZ_0.js +13 -0
- package/lib/src/flag-CyYYjK4h.js +16 -0
- package/lib/src/flip-horizontal-DYIH2DFe.js +14 -0
- package/lib/src/flip-vertical-D0QRQ62e.js +14 -0
- package/lib/src/flyer-Dz6-Upky.js +14 -0
- package/lib/src/folder-Bc0IYlYr.js +13 -0
- package/lib/src/font-BC7w__Ii.js +14 -0
- package/lib/src/footer-centered-B42yBfO9.js +35 -0
- package/lib/src/footer-left-BERh-HMR.js +35 -0
- package/lib/src/form-5ChueEI_.js +10 -0
- package/lib/src/form-message-DJHYrMh0.js +13 -0
- package/lib/src/fullscreen-exit-OEYMjlqe.js +10 -0
- package/lib/src/fullscreen-sbd3iMrv.js +10 -0
- package/lib/src/gift-certificate-BLPkW1PN.js +10 -0
- package/lib/src/globe-BKuXHs-u.js +13 -0
- package/lib/src/globe-D7rT9g5d.js +10 -0
- package/lib/src/globe-DWMDC3Fz.js +13 -0
- package/lib/src/group-vkps_drx.js +13 -0
- package/lib/src/hamburger-1-DmgOPkec.js +17 -0
- package/lib/src/hamburger-2-DpgCodLE.js +19 -0
- package/lib/src/hamburger-3-CpokpV-A.js +19 -0
- package/lib/src/hamburger-4-DBWXThmV.js +15 -0
- package/lib/src/hamburger-D2PAtHYk.js +19 -0
- package/lib/src/hamburger-DWj5RuNx.js +31 -0
- package/lib/src/hamburger-display-style-no-logo-1-BSjvwYdh.js +27 -0
- package/lib/src/hamburger-display-style-no-logo-2-DalRHVgp.js +27 -0
- package/lib/src/hamburger-display-style-no-logo-3-CFBUxClo.js +27 -0
- package/lib/src/headphones-CvqsESMB.js +14 -0
- package/lib/src/heart-tdAcpdOF.js +14 -0
- package/lib/src/history-8XHHIJEL.js +41 -0
- package/lib/src/home-BneFO850.js +14 -0
- package/lib/src/home-DrL5yNQA.js +13 -0
- package/lib/src/home-outline-xK2rSUQx.js +13 -0
- package/lib/src/icon-style-circle-bg-DRp5jFW_.js +29 -0
- package/lib/src/icon-style-no-bg-CGdrwaFS.js +23 -0
- package/lib/src/icon-style-square-bg-BkdfCAxi.js +29 -0
- package/lib/src/image-CbLXB_e4.js +14 -0
- package/lib/src/image-gallery-carousel-CWJ4IhXH.js +22 -0
- package/lib/src/image-gallery-grid-3iuQHQil.js +32 -0
- package/lib/src/image-gallery-masonry-BVcxBAQz.js +26 -0
- package/lib/src/image-lMmsvCnC.js +14 -0
- package/lib/src/images-BClPAOMU.js +14 -0
- package/lib/src/images-gallery-CA1jSxVQ.js +10 -0
- package/lib/src/index.mjs +164 -163
- package/lib/src/info-Sadn2qng.js +21 -0
- package/lib/src/infographics-Dv1VTCuM.js +10 -0
- package/lib/src/instagram-aMcgu4WP.js +14 -0
- package/lib/src/invitation-BvAOhO_q.js +10 -0
- package/lib/src/invoice-D8X9y1np.js +10 -0
- package/lib/src/italic-mPugSpnj.js +14 -0
- package/lib/src/jobs-CUOMxqpK.js +13 -0
- package/lib/src/layer-BfXc5_Ip.js +13 -0
- package/lib/src/layer-bring-front-BPccgyCU.js +13 -0
- package/lib/src/layer-send-back-CX7OXowD.js +13 -0
- package/lib/src/layout-icon-bottom-normal-text-center-normal-D-pwYMO1.js +35 -0
- package/lib/src/layout-icon-bottom-normal-text-center-small-Cbno-m_-.js +35 -0
- package/lib/src/layout-icon-bottom-small-text-center-normal-CpG8_IEr.js +35 -0
- package/lib/src/layout-icon-center-normal-curved-text-bottom-D493L7Ic.js +33 -0
- package/lib/src/layout-icon-center-normal-curved-text-circle-DAu62RSK.js +26 -0
- package/lib/src/layout-icon-center-normal-curved-text-top-D7Rj7OxI.js +33 -0
- package/lib/src/layout-icon-left-normal-text-center-normal-BtqDgRXk.js +35 -0
- package/lib/src/layout-icon-left-normal-text-justify-normal-CF_QbqrU.js +35 -0
- package/lib/src/layout-icon-left-normal-text-left-normal-B-Umd3-c.js +35 -0
- package/lib/src/layout-icon-left-small-text-left-normal-DVugFjwb.js +35 -0
- package/lib/src/layout-icon-right-normal-text-center-normal-DVSOf61N.js +35 -0
- package/lib/src/layout-icon-right-normal-text-justify-normal-D48XHWez.js +35 -0
- package/lib/src/layout-icon-right-normal-text-right-normal-CLEZkV0W.js +35 -0
- package/lib/src/layout-icon-right-small-text-right-normal-BjQiSAMX.js +35 -0
- package/lib/src/layout-icon-top-normal-text-center-normal-Dfw7qQt1.js +35 -0
- package/lib/src/layout-icon-top-normal-text-center-small-CP-1KBXB.js +35 -0
- package/lib/src/layout-icon-top-normal-text-justify-normal-Ct0uFZkO.js +35 -0
- package/lib/src/layout-icon-top-small-text-center-normal-YvwFeY_d.js +35 -0
- package/lib/src/layout-x_inyjbH.js +10 -0
- package/lib/src/letterhead-filled-B_YMead7.js +10 -0
- package/lib/src/{lib-DgFekeRm.js → lib-BYr0zU6P.js} +34254 -39515
- package/lib/src/lightning-Djx9pAsW.js +14 -0
- package/lib/src/link-CuKRCkDJ.js +14 -0
- package/lib/src/link-DpcArx0s.js +13 -0
- package/lib/src/link-in-bio-filled-BNbpBADv.js +33 -0
- package/lib/src/linkedin-CpoW8YFX.js +14 -0
- package/lib/src/list-bullet-DDwntN21.js +18 -0
- package/lib/src/list-numbered-CpcSHjac.js +26 -0
- package/lib/src/location-OID_IJaF.js +13 -0
- package/lib/src/lock-ThDH4_TT.js +13 -0
- package/lib/src/logo--AZG59WO.js +10 -0
- package/lib/src/logo-C7cLnHsN.js +14 -0
- package/lib/src/mac-command-CQ7gS8N9.js +15 -0
- package/lib/src/map-BDGzZ_mT.js +13 -0
- package/lib/src/media-DP1GxX0O.js +10 -0
- package/lib/src/menu-DkzazM74.js +10 -0
- package/lib/src/message-Dl_LzrtO.js +13 -0
- package/lib/src/metadata-builder/parsers/section-tool-arguments.d.ts +1 -1
- package/lib/src/microphone-BODqyvoZ.js +10 -0
- package/lib/src/microphone-bold-CzVKhcgN.js +14 -0
- package/lib/src/minus-Q4ERtmep.js +13 -0
- package/lib/src/minus-circle-light-G01NAH99.js +14 -0
- package/lib/src/mobile-BF3QRH7G.js +10 -0
- package/lib/src/mobile-hamburger-display-style-1-C6zR_t6p.js +31 -0
- package/lib/src/mobile-hamburger-display-style-2-hPy5lOWF.js +31 -0
- package/lib/src/mobile-hamburger-display-style-3-2M6PedAU.js +31 -0
- package/lib/src/mobile-hamburger-display-style-4-CmQP6cRi.js +31 -0
- package/lib/src/mobile-tab-display-style-1-BHWhjlil.js +31 -0
- package/lib/src/mobile-tab-display-style-2-BZc8zkWA.js +31 -0
- package/lib/src/mobile-tab-display-style-with-button-1-HIrxlXjb.js +16 -0
- package/lib/src/mobile-tab-display-style-with-button-2-CA7PC3Ko.js +16 -0
- package/lib/src/mug-BnsydEdB.js +35 -0
- package/lib/src/opacity-BS1W0rWc.js +13 -0
- package/lib/src/other-Crbh5gBd.js +29 -0
- package/lib/src/page-blank-DjT_1sEM.js +13 -0
- package/lib/src/page-buttons-BTz0mBDH.js +18 -0
- package/lib/src/page-hamburger-DVvzxsq8.js +37 -0
- package/lib/src/page-tabs-BLj4RTsH.js +39 -0
- package/lib/src/pages-BivOWT09.js +13 -0
- package/lib/src/paint-brush-COGmslT4.js +10 -0
- package/lib/src/palette-C7YUuFs1.js +14 -0
- package/lib/src/palette-outline-BXpfwR0C.js +14 -0
- package/lib/src/pause-B3LlI4Ks.js +10 -0
- package/lib/src/pause-CWIK7Gqn.js +10 -0
- package/lib/src/payment-D4uzF2Va.js +21 -0
- package/lib/src/payments-featured-D0B24aZp.js +27 -0
- package/lib/src/payments-textonly-DyGstQ_O.js +40 -0
- package/lib/src/payments-thumbnail-BxfPpaR7.js +29 -0
- package/lib/src/pen-Dl3zmvGf.js +14 -0
- package/lib/src/pen-outline-S2zJBfdQ.js +14 -0
- package/lib/src/pen-sparkle-OIXJEPi_.js +26 -0
- package/lib/src/pen-tool-DHm5Ozhj.js +14 -0
- package/lib/src/phone-BrSVrNAS.js +10 -0
- package/lib/src/phone-DtbJr72s.js +13 -0
- package/lib/src/pinterest-bWl_HpHl.js +10 -0
- package/lib/src/play-Bb2KtpkI.js +10 -0
- package/lib/src/plus-Db58OMHA.js +10 -0
- package/lib/src/plus-circle-DKm1gqx2.js +14 -0
- package/lib/src/plus-circle-light-Dk5nkiKi.js +15 -0
- package/lib/src/plus-light-COSiGgr_.js +14 -0
- package/lib/src/poll-CjKfUqap.js +10 -0
- package/lib/src/portfolio-DUuqjSRU.js +13 -0
- package/lib/src/postcard-CDsGx6Oe.js +10 -0
- package/lib/src/poster-DEfOJXhV.js +14 -0
- package/lib/src/premium-content-CqUbwj1Q.js +21 -0
- package/lib/src/preview-M8JuE8FA.js +13 -0
- package/lib/src/printing-CRa3zgt0.js +13 -0
- package/lib/src/processing-CF7WuIN_.js +10 -0
- package/lib/src/profile-iKmC1gBN.js +10 -0
- package/lib/src/qrcode-BajTftW2.js +10 -0
- package/lib/src/question-alt-DI4lAsF2.js +29 -0
- package/lib/src/question-apq2ThbN.js +21 -0
- package/lib/src/question-circle-filled-Do0RmQZg.js +14 -0
- package/lib/src/quote-DsIgF7Jm.js +12 -0
- package/lib/src/ratio-1-1-6DggHD-x.js +15 -0
- package/lib/src/ratio-16-9--YDEDQf3.js +15 -0
- package/lib/src/ratio-2-3-D-aitNaC.js +15 -0
- package/lib/src/ratio-3-2-BdjVkvS7.js +15 -0
- package/lib/src/ratio-3-4-BGWY4j11.js +15 -0
- package/lib/src/ratio-4-3--17pib5m.js +15 -0
- package/lib/src/ratio-9-16-CLjGdlkk.js +15 -0
- package/lib/src/ratio-circle-DRlkb_m-.js +15 -0
- package/lib/src/ratio-original-ZQrzfIA2.js +23 -0
- package/lib/src/redo-CXxBSQ9O.js +13 -0
- package/lib/src/refresh-diNjzys6.js +13 -0
- package/lib/src/reload-h4T5ex3A.js +13 -0
- package/lib/src/reorderable-CG3mfLQe.js +10 -0
- package/lib/src/request-payment-DcUb5bHG.js +13 -0
- package/lib/src/reset-DYGG7q_U.js +13 -0
- package/lib/src/resize-CDwF0EFX.js +25 -0
- package/lib/src/roller-brush-Q8QF4zh0.js +10 -0
- package/lib/src/save-Ck6-GZEB.js +13 -0
- package/lib/src/search-BC2E1fVu.js +14 -0
- package/lib/src/secure-qq7tRi-P.js +14 -0
- package/lib/src/select-all-CM73JbnB.js +24 -0
- package/lib/src/send-CPeono2p.js +23 -0
- package/lib/src/services-51M4TDWn.js +12 -0
- package/lib/src/settings-BPeaz_sx.js +15 -0
- package/lib/src/shape-nefQXknJ.js +10 -0
- package/lib/src/share-CNn3c5Go.js +17 -0
- package/lib/src/shared/color-strategies/color-strategies.js +4 -0
- package/lib/src/shared/color-strategies/rte-field-pairs.d.ts +11 -0
- package/lib/src/shared/color-strategies/rte-field-pairs.js +23 -0
- package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +1 -0
- package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +2 -1
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.d.ts +1 -0
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +1 -0
- package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.d.ts +1 -0
- package/lib/src/shared/content-settings/components/items-field/ItemsField.mixin.d.ts +12 -0
- package/lib/src/shared/content-settings/components/items-field/ItemsField.mixin.js +8 -0
- package/lib/src/shared/content-settings/components/text-style-field/TextStyleField.mixin.d.ts +2 -0
- package/lib/src/shared/content-settings/store/content-settings-store.d.ts +2 -0
- package/lib/src/shared/content-settings/store/content-settings-store.js +23 -3
- package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +1 -0
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +1 -0
- package/lib/src/shield-tick-BCiYY5PS.js +13 -0
- package/lib/src/shop-BAQIwMa_.js +13 -0
- package/lib/src/size-auto-S8cpKptj.js +10 -0
- package/lib/src/size-landscape-dGzSYKas.js +10 -0
- package/lib/src/size-portrait-CUHFXrVf.js +10 -0
- package/lib/src/size-square-CkRrs7Ov.js +10 -0
- package/lib/src/sms-BlyG3RPC.js +10 -0
- package/lib/src/snapchat-C4fJ9Yi2.js +10 -0
- package/lib/src/social-facebook-CqmOcNY-.js +13 -0
- package/lib/src/social-facebook-DcFvK-uj.js +10 -0
- package/lib/src/social-facebook-color-DHx6K415.js +25 -0
- package/lib/src/social-google-DmThCoNs.js +13 -0
- package/lib/src/social-google-a7JJsrHw.js +10 -0
- package/lib/src/social-instagram-ByKfrFlq.js +13 -0
- package/lib/src/social-instagram-color-T3I0TDyJ.js +62 -0
- package/lib/src/social-linkedin-color-HhqCj_Uw.js +21 -0
- package/lib/src/social-share-CAC6rJBn.js +12 -0
- package/lib/src/social-twitter-Ce2qByIs.js +13 -0
- package/lib/src/social-twitter-color-Bk2USA8V.js +25 -0
- package/lib/src/social-youtube-Db0J2xyR.js +13 -0
- package/lib/src/sort-f0uVGBUk.js +10 -0
- package/lib/src/soundcloud-DJeN4zCO.js +14 -0
- package/lib/src/spacing-DRJhLg5v.js +27 -0
- package/lib/src/sparkle-square-CCVDm9QS.js +31 -0
- package/lib/src/squares-CIOZvJNb.js +14 -0
- package/lib/src/star-filled-CYUW9wTa.js +13 -0
- package/lib/src/star-hollow-CkMkxjF_.js +13 -0
- package/lib/src/sticker-Bq3nOtYG.js +35 -0
- package/lib/src/stop-D09YQ-pe.js +10 -0
- package/lib/src/strikethrough-ClqheNy8.js +14 -0
- package/lib/src/styles-CF6j2hNP.js +10 -0
- package/lib/src/submit-Bywn-czX.js +10 -0
- package/lib/src/t-shirt-JavBTB2B.js +39 -0
- package/lib/src/tab-display-style-no-logo-1-mZHIAnnG.js +27 -0
- package/lib/src/tab-display-style-no-logo-2-Cs1NtjTl.js +27 -0
- package/lib/src/tab-display-style-no-logo-3-CqLyY9wQ.js +27 -0
- package/lib/src/templates-B5MDsWMM.js +14 -0
- package/lib/src/testimonial-big-image-B-03OWnh.js +36 -0
- package/lib/src/testimonial-centered-BFQre57m.js +32 -0
- package/lib/src/testimonial-columns-0o9HSqxb.js +40 -0
- package/lib/src/text-CTCTH32T.js +14 -0
- package/lib/src/text-CkN4utq1.js +14 -0
- package/lib/src/text-background-color-Bhytor8r.js +21 -0
- package/lib/src/text-color-XP97NWD3.js +23 -0
- package/lib/src/text-image-B8IMPB_Y.js +44 -0
- package/lib/src/text-image-center-FBrkZAcD.js +28 -0
- package/lib/src/text-image-justified-DVaqaCUy.js +35 -0
- package/lib/src/text-image-left-bfMPUlWg.js +29 -0
- package/lib/src/text-image-only-DP2azAss.js +21 -0
- package/lib/src/text-image-right-C4ojD_mq.js +29 -0
- package/lib/src/thankyou-card-Q9IqgLMI.js +10 -0
- package/lib/src/thumbs-up-Dzk8tvIj.js +10 -0
- package/lib/src/tiktok-DGfFEeQJ.js +10 -0
- package/lib/src/time-BXJ1J3wo.js +13 -0
- package/lib/src/tools-DMupzD6c.js +10 -0
- package/lib/src/tooltip-bottom-Dq1AVX8Z.js +12 -0
- package/lib/src/tooltip-left-BN03FWHL.js +12 -0
- package/lib/src/tooltip-right-0VGKKTUL.js +12 -0
- package/lib/src/tooltip-top-BfJysqUL.js +12 -0
- package/lib/src/transition-YKQkncqU.js +27 -0
- package/lib/src/tumblr-C56KclMw.js +10 -0
- package/lib/src/twitch-u3d7CWDb.js +14 -0
- package/lib/src/twitter-BPx8RAT3.js +10 -0
- package/lib/src/underline-B3R6bt71.js +14 -0
- package/lib/src/undo-L9V0V8Gd.js +13 -0
- package/lib/src/upgrade-BD-1DOR4.js +16 -0
- package/lib/src/upgrade-alt-BbX-56TQ.js +14 -0
- package/lib/src/upgrade-to-add-page-DWdwZCPk.js +57 -0
- package/lib/src/upgrade-to-contact-form-B6pJIxO_.js +95 -0
- package/lib/src/upgrade-to-google-ad-Cs22u0jd.js +129 -0
- package/lib/src/upgrade-to-maps-C3dG_78P.js +56 -0
- package/lib/src/upgrade-to-publish-2rNmYUeK.js +119 -0
- package/lib/src/upgrade-to-remove-watermark-Bp5Cs7ZH.js +108 -0
- package/lib/src/upgrade-to-videos-C3pRflCM.js +54 -0
- package/lib/src/upload-DWr8meFS.js +10 -0
- package/lib/src/upload-arrow-C_A0xWB2.js +10 -0
- package/lib/src/uppercase-4yduRmD9.js +24 -0
- package/lib/src/user-accounts-5-MMqae3.js +10 -0
- package/lib/src/user-headset-9r_hgDVJ.js +57 -0
- package/lib/src/users-2-DyDpBOVr.js +15 -0
- package/lib/src/users-DP8gNQn-.js +14 -0
- package/lib/src/video-EUQit6xy.js +10 -0
- package/lib/src/volume-BaBbRNg7.js +10 -0
- package/lib/src/volume-muted-BINymoJ9.js +10 -0
- package/lib/src/watchlist-filled-Ds514Isf.js +24 -0
- package/lib/src/watchlist-hollow-alt-DS2B9QNl.js +24 -0
- package/lib/src/watchlist-hollow-vNPjZGkO.js +13 -0
- package/lib/src/website-DmI1yoob.js +13 -0
- package/lib/src/website-filled-4avDThjD.js +10 -0
- package/lib/src/whatsapp-B8qj9zQZ.js +14 -0
- package/lib/src/wholesale-BAKTZEcZ.js +13 -0
- package/lib/src/wrap-text-DW8J7Ky7.js +15 -0
- package/lib/src/youtube-P5mIb2lW.js +10 -0
- package/lib/src/zoom-DHEfnGn1.js +16 -0
- package/lib/src/zoom-DqOT9mWt.js +10 -0
- package/lib/src/zoom-in-BjQhk7Qm.js +10 -0
- package/lib/src/zoom-out-DUpK4hsG.js +10 -0
- package/package.json +2 -2
- package/src/brand-page/components/faq-section/FaqSection.test.ts +196 -0
- package/src/brand-page/components/faq-section/FaqSection.vue +315 -0
- package/src/brand-page/components/page/PageComponent.vue +2 -0
- package/src/brand-page/constants/misc.constants.ts +9 -0
- package/src/brand-page/constants/styles.constants.ts +2 -0
- package/src/brand-page/models/content.model.ts +1 -0
- package/src/brand-page/models/index.ts +29 -0
- package/src/brand-page/utils/container-text-color.util.test.ts +81 -0
- package/src/brand-page/utils/container-text-color.util.ts +19 -3
- package/src/brand-page/utils/content-callback-util.ts +5 -0
- package/src/brand-page/utils/migration/__snapshots__/migration-22-output/new-brandcontact-every-section.v22.json +4 -8
- package/src/brand-page/utils/migration/__snapshots__/migration-22-output/new-brandpage-every-section.v22.json +4 -8
- package/src/brand-page/utils/migration/__snapshots__/migration-22-output/new-brandsite-every-section.v22.json +4 -8
- package/src/brand-page/utils/migration/__snapshots__/migration-22-output/real-brandcontact.v22.json +1 -2
- package/src/brand-page/utils/migration/__snapshots__/migration-22-output/real-brandpage-general-link.v22.json +3 -6
- package/src/brand-page/utils/migration/__snapshots__/migration-22-output/real-brandpage-links.v22.json +1 -2
- package/src/brand-page/utils/migration/migration-22.test.ts +88 -0
- package/src/brand-page/utils/migration/migration-22.ts +9 -2
- package/src/brand-page/utils/personalisation.util.test.ts +53 -0
- package/src/brand-page/utils/view-model.util.ts +26 -0
- package/src/brand-page/view-models.ts +8 -1
- package/src/brand-page-maker/assessors/faq-accordion-color-field-visibility.assessor.ts +9 -0
- package/src/brand-page-maker/assessors/index.ts +1 -0
- package/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.ts +2 -0
- package/src/brand-page-maker/constants/config-settings-constant.ts +122 -1
- package/src/brand-page-maker/constants/faq-section-config.test.ts +22 -0
- package/src/brand-page-maker/constants/personalisation.constant.ts +5 -3
- package/src/brand-page-maker/convertors/faq-display-style.convertor.ts +61 -0
- package/src/brand-page-maker/models/content-settings-configs.ts +1 -0
- package/src/brand-page-maker/models/content-settings.test.ts +55 -1
- package/src/brand-page-maker/models/content-settings.ts +54 -1
- package/src/brand-page-maker/utils/__snapshots__/apply-color-strategy.golden.test.ts.snap +2940 -300
- package/src/brand-page-maker/utils/apply-color-strategy.test.ts +93 -2
- package/src/brand-page-maker/utils/apply-color-strategy.ts +69 -19
- package/src/brand-page-maker/utils/rte-authoring.util.test.ts +30 -0
- package/src/brand-page-maker/utils/rte-authoring.util.ts +14 -0
- package/src/brand-page-maker/validators/field.validator.ts +2 -0
- package/src/bundles/bundled-translations.de-DE.json +9 -1
- package/src/bundles/bundled-translations.es-ES.json +9 -1
- package/src/bundles/bundled-translations.fr-CA.json +9 -1
- package/src/bundles/bundled-translations.fr-FR.json +9 -1
- package/src/bundles/bundled-translations.json +9 -1
- package/src/bundles/bundled-translations.pt-BR.json +9 -1
- package/src/bundles/bundled-translations.pt-PT.json +9 -1
- package/src/metadata-builder/parsers/section-tool-arguments.ts +2 -1
- package/src/shared/color-strategies/color-strategies.ts +4 -0
- package/src/shared/color-strategies/rte-field-pairs.test.ts +2 -0
- package/src/shared/color-strategies/rte-field-pairs.ts +35 -0
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.de-DE.json +10 -1
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.es-ES.json +10 -1
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.fr-CA.json +10 -1
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.fr-FR.json +10 -1
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.json +10 -1
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.pt-BR.json +10 -1
- package/src/shared/content-settings/components/content-settings/i18n/content-settings.pt-PT.json +10 -1
- package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.vue +2 -0
- package/src/shared/content-settings/components/faq-items-field/FaqItemsField.test.ts +162 -0
- package/src/shared/content-settings/components/faq-items-field/FaqItemsField.vue +288 -0
- package/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.vue +1 -0
- package/src/shared/content-settings/components/items-field/ItemsField.mixin.ts +8 -0
- package/src/shared/content-settings/components/items-field/ItemsField.vue +9 -3
- package/src/shared/content-settings/store/content-settings-store.test.ts +86 -0
- package/src/shared/content-settings/store/content-settings-store.ts +39 -4
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<section data-component="faq-section">
|
|
3
|
+
<div
|
|
4
|
+
class="tw-relative tw-px-6"
|
|
5
|
+
:style="[viewModel.backgroundStyle, contentPaddingStyle]"
|
|
6
|
+
style="container-type: inline-size"
|
|
7
|
+
>
|
|
8
|
+
<div class="c_faq" :class="`c_faq--${layout}`">
|
|
9
|
+
<div
|
|
10
|
+
v-if="hasTitle || hasDescription"
|
|
11
|
+
class="c_faq__heading"
|
|
12
|
+
data-test-faq-heading
|
|
13
|
+
>
|
|
14
|
+
<TextWrapper
|
|
15
|
+
v-if="hasTitle"
|
|
16
|
+
:text-style="viewModel.titleStyle"
|
|
17
|
+
:text="viewModel.title"
|
|
18
|
+
:slug="context.brandPageSlug"
|
|
19
|
+
element="h2"
|
|
20
|
+
/>
|
|
21
|
+
<TextWrapper
|
|
22
|
+
v-if="hasDescription"
|
|
23
|
+
class="tw-mt-4"
|
|
24
|
+
:text-style="viewModel.descriptionStyle"
|
|
25
|
+
:text="getRenderText(viewModel.description)"
|
|
26
|
+
:slug="context.brandPageSlug"
|
|
27
|
+
element="div"
|
|
28
|
+
/>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
<!-- No items: no list at all, so the heading gap doesn't linger. -->
|
|
32
|
+
<div
|
|
33
|
+
v-if="hasItems && isAccordion"
|
|
34
|
+
class="c_faq__items"
|
|
35
|
+
:style="dividerStyle"
|
|
36
|
+
data-test-faq-items
|
|
37
|
+
>
|
|
38
|
+
<div
|
|
39
|
+
v-for="item in viewModel.items"
|
|
40
|
+
:key="item.id"
|
|
41
|
+
class="c_faq__item"
|
|
42
|
+
:data-test-faq-item="item.id"
|
|
43
|
+
>
|
|
44
|
+
<h3 class="tw-m-0">
|
|
45
|
+
<button
|
|
46
|
+
type="button"
|
|
47
|
+
class="c_faq__question"
|
|
48
|
+
:aria-expanded="isOpen(item.id)"
|
|
49
|
+
:aria-controls="answerId(item.id)"
|
|
50
|
+
data-test-faq-question
|
|
51
|
+
@click="onQuestionClick($event, item.id)"
|
|
52
|
+
>
|
|
53
|
+
<TextWrapper
|
|
54
|
+
:text-style="viewModel.questionStyle"
|
|
55
|
+
:text="getRenderText(item.question)"
|
|
56
|
+
:slug="context.brandPageSlug"
|
|
57
|
+
element="span"
|
|
58
|
+
/>
|
|
59
|
+
<Icon
|
|
60
|
+
class="c_faq__toggle"
|
|
61
|
+
:style="iconStyle"
|
|
62
|
+
:name="isOpen(item.id) ? 'minus' : 'plus-light'"
|
|
63
|
+
size="sm"
|
|
64
|
+
data-test-faq-toggle
|
|
65
|
+
/>
|
|
66
|
+
</button>
|
|
67
|
+
</h3>
|
|
68
|
+
<div
|
|
69
|
+
v-show="isOpen(item.id)"
|
|
70
|
+
:id="answerId(item.id)"
|
|
71
|
+
class="c_faq__answer"
|
|
72
|
+
data-test-faq-answer
|
|
73
|
+
>
|
|
74
|
+
<TextWrapper
|
|
75
|
+
:text-style="viewModel.answerStyle"
|
|
76
|
+
:text="getRenderText(item.answer)"
|
|
77
|
+
:slug="context.brandPageSlug"
|
|
78
|
+
element="div"
|
|
79
|
+
/>
|
|
80
|
+
</div>
|
|
81
|
+
</div>
|
|
82
|
+
</div>
|
|
83
|
+
|
|
84
|
+
<div v-else-if="hasItems" class="c_faq__grid" data-test-faq-items>
|
|
85
|
+
<div
|
|
86
|
+
v-for="item in viewModel.items"
|
|
87
|
+
:key="item.id"
|
|
88
|
+
:data-test-faq-item="item.id"
|
|
89
|
+
>
|
|
90
|
+
<TextWrapper
|
|
91
|
+
:text-style="viewModel.questionStyle"
|
|
92
|
+
:text="getRenderText(item.question)"
|
|
93
|
+
:slug="context.brandPageSlug"
|
|
94
|
+
element="h3"
|
|
95
|
+
/>
|
|
96
|
+
<TextWrapper
|
|
97
|
+
class="tw-mt-2"
|
|
98
|
+
:text-style="viewModel.answerStyle"
|
|
99
|
+
:text="getRenderText(item.answer)"
|
|
100
|
+
:slug="context.brandPageSlug"
|
|
101
|
+
element="div"
|
|
102
|
+
data-test-faq-answer
|
|
103
|
+
/>
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
</div>
|
|
108
|
+
</section>
|
|
109
|
+
</template>
|
|
110
|
+
<script setup lang="ts">
|
|
111
|
+
import type { PropType } from 'vue';
|
|
112
|
+
import { computed, ref } from 'vue';
|
|
113
|
+
import { Icon } from '@designcrowd/fe-shared-lib';
|
|
114
|
+
import TextWrapper from '../text-wrapper/TextWrapper.vue';
|
|
115
|
+
import type { FaqSectionViewModel } from '@brand-page/view-models';
|
|
116
|
+
import type { BrandPageContext } from '@brand-page/models';
|
|
117
|
+
import { FAQ_DISPLAY_STYLES } from '@brand-page/constants';
|
|
118
|
+
import {
|
|
119
|
+
escapeContentText,
|
|
120
|
+
getRenderText,
|
|
121
|
+
contentPaddingStyle as toContentPaddingStyle,
|
|
122
|
+
} from '@brand-page/utils';
|
|
123
|
+
|
|
124
|
+
const props = defineProps({
|
|
125
|
+
viewModel: {
|
|
126
|
+
type: Object as PropType<FaqSectionViewModel>,
|
|
127
|
+
required: true,
|
|
128
|
+
},
|
|
129
|
+
context: {
|
|
130
|
+
type: Object as PropType<BrandPageContext>,
|
|
131
|
+
required: true,
|
|
132
|
+
},
|
|
133
|
+
containerClientWidth: {
|
|
134
|
+
type: Number as PropType<number | undefined>,
|
|
135
|
+
required: false,
|
|
136
|
+
default: undefined,
|
|
137
|
+
},
|
|
138
|
+
containerClientHeight: {
|
|
139
|
+
type: Number as PropType<number | undefined>,
|
|
140
|
+
required: false,
|
|
141
|
+
default: undefined,
|
|
142
|
+
},
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
const contentPaddingStyle = computed(() =>
|
|
146
|
+
toContentPaddingStyle(props.viewModel),
|
|
147
|
+
);
|
|
148
|
+
|
|
149
|
+
const layout = computed((): string => {
|
|
150
|
+
switch (props.viewModel.displayStyle) {
|
|
151
|
+
case FAQ_DISPLAY_STYLES.split:
|
|
152
|
+
return 'split';
|
|
153
|
+
case FAQ_DISPLAY_STYLES.grid:
|
|
154
|
+
return 'grid';
|
|
155
|
+
default:
|
|
156
|
+
return 'centered';
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
|
|
160
|
+
const isAccordion = computed((): boolean => layout.value !== 'grid');
|
|
161
|
+
|
|
162
|
+
const hasItems = computed((): boolean => props.viewModel.items.length > 0);
|
|
163
|
+
|
|
164
|
+
// The h2 (ADR 0004) and description hide when empty, so no heading gap lingers.
|
|
165
|
+
const hasTitle = computed(
|
|
166
|
+
(): boolean => !!escapeContentText(props.viewModel.title),
|
|
167
|
+
);
|
|
168
|
+
const hasDescription = computed(
|
|
169
|
+
(): boolean => !!escapeContentText(props.viewModel.description),
|
|
170
|
+
);
|
|
171
|
+
|
|
172
|
+
// The icon and divider colours are baked at birth by applyTextContrast.
|
|
173
|
+
const iconStyle = computed((): { color?: string } => ({
|
|
174
|
+
color: props.viewModel.iconColor?.color,
|
|
175
|
+
}));
|
|
176
|
+
|
|
177
|
+
const dividerStyle = computed(
|
|
178
|
+
(): Record<string, string | undefined> => ({
|
|
179
|
+
'--faq-divider-color': props.viewModel.dividerColor?.backgroundColor,
|
|
180
|
+
}),
|
|
181
|
+
);
|
|
182
|
+
|
|
183
|
+
// Items open independently: any number can be open at once, including none.
|
|
184
|
+
// Seeded from data (not `mounted`) so SSR and hydration render the same open
|
|
185
|
+
// item. A new item starts closed; it simply isn't in the set yet.
|
|
186
|
+
const openItemIds = ref<Set<string>>(
|
|
187
|
+
new Set(props.viewModel.items[0] ? [props.viewModel.items[0].id] : []),
|
|
188
|
+
);
|
|
189
|
+
|
|
190
|
+
// Every item renders expanded in the editor canvas only, so edits don't need
|
|
191
|
+
// opening each row. A template thumbnail also sets isPreview (see
|
|
192
|
+
// TemplatePreview.mixin.ts) but renders like a real page on load (first item
|
|
193
|
+
// only) and is never clicked; context.isTemplate is the signal sibling
|
|
194
|
+
// sections already read (e.g. ButtonCarouselNavigation.vue) to suppress
|
|
195
|
+
// canvas-only behaviour in those renders, so it gates this split too.
|
|
196
|
+
const isOpen = (itemId: string): boolean =>
|
|
197
|
+
(props.context.isPreview && !props.context.isTemplate) ||
|
|
198
|
+
openItemIds.value.has(itemId);
|
|
199
|
+
|
|
200
|
+
const toggle = (itemId: string): void => {
|
|
201
|
+
const next = new Set(openItemIds.value);
|
|
202
|
+
if (next.has(itemId)) {
|
|
203
|
+
next.delete(itemId);
|
|
204
|
+
} else {
|
|
205
|
+
next.add(itemId);
|
|
206
|
+
}
|
|
207
|
+
openItemIds.value = next;
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
// A link inside a rich-text question follows the link; only the rest of the row toggles.
|
|
211
|
+
const onQuestionClick = (event: MouseEvent, itemId: string): void => {
|
|
212
|
+
if ((event.target as Element | null)?.closest?.('a')) {
|
|
213
|
+
return;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
toggle(itemId);
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
const answerId = (itemId: string): string =>
|
|
220
|
+
`faq-answer-${props.viewModel.id}-${itemId}`;
|
|
221
|
+
</script>
|
|
222
|
+
|
|
223
|
+
<style scoped>
|
|
224
|
+
/* Spacing follows the Figma redlines ("Website — Features & Widgets", FAQ): 32 heading→items,
|
|
225
|
+
16 above and below each question, dividers only between items. */
|
|
226
|
+
.c_faq {
|
|
227
|
+
margin: 0 auto;
|
|
228
|
+
max-width: var(--brandsite-max-width);
|
|
229
|
+
display: flex;
|
|
230
|
+
flex-direction: column;
|
|
231
|
+
gap: 32px;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.c_faq--centered .c_faq__items {
|
|
235
|
+
width: 100%;
|
|
236
|
+
max-width: 48rem;
|
|
237
|
+
margin: 0 auto;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.c_faq__item {
|
|
241
|
+
padding: 16px 0;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.c_faq__item + .c_faq__item {
|
|
245
|
+
/* `transparent` is a valid pick: the line disappears, with no fallback to the default. */
|
|
246
|
+
border-top: 1px solid var(--faq-divider-color, currentColor);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.c_faq__question {
|
|
250
|
+
display: flex;
|
|
251
|
+
align-items: center;
|
|
252
|
+
justify-content: space-between;
|
|
253
|
+
gap: 16px;
|
|
254
|
+
width: 100%;
|
|
255
|
+
padding: 0;
|
|
256
|
+
border: none;
|
|
257
|
+
background: none;
|
|
258
|
+
/* Buttons don't inherit font by default; the question's em sizes need the h3's. */
|
|
259
|
+
font: inherit;
|
|
260
|
+
color: inherit;
|
|
261
|
+
text-align: left;
|
|
262
|
+
cursor: pointer;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.c_faq__toggle {
|
|
266
|
+
flex: 0 0 auto;
|
|
267
|
+
/* Stays on the right when the question is empty and renders nothing. */
|
|
268
|
+
margin-left: auto;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/* A long unbroken word wraps instead of pushing the +/- out of the row. */
|
|
272
|
+
.c_faq__question > [data-component='text-wrapper'] {
|
|
273
|
+
flex: 1 1 auto;
|
|
274
|
+
min-width: 0;
|
|
275
|
+
overflow-wrap: anywhere;
|
|
276
|
+
/* The dcom maker chrome resets every <button> to capitalize (!important); this
|
|
277
|
+
question holds content text, not a UI label, so reset it back on the child
|
|
278
|
+
(HeaderNavigationType.vue uses the same technique for the same clash). */
|
|
279
|
+
text-transform: none;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.c_faq__answer {
|
|
283
|
+
margin-top: 8px;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.c_faq__grid {
|
|
287
|
+
display: grid;
|
|
288
|
+
grid-template-columns: 1fr 1fr;
|
|
289
|
+
gap: 32px;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
@container (min-width: 640px) {
|
|
293
|
+
.c_faq--split {
|
|
294
|
+
flex-direction: row;
|
|
295
|
+
align-items: flex-start;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/* 1/3 heading · 2/3 items, either side of the 32px gap. */
|
|
299
|
+
.c_faq--split .c_faq__heading {
|
|
300
|
+
flex: 1 1 0;
|
|
301
|
+
min-width: 0;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.c_faq--split .c_faq__items {
|
|
305
|
+
flex: 2 1 0;
|
|
306
|
+
min-width: 0;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
@container (max-width: 640px) {
|
|
311
|
+
.c_faq__grid {
|
|
312
|
+
grid-template-columns: 1fr;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
</style>
|
|
@@ -35,6 +35,7 @@ import ShapesSection from '../shapes-section/ShapesSection.vue';
|
|
|
35
35
|
import PageComponentMixin from './PageComponent.mixin.ts';
|
|
36
36
|
import Shop from '../shop/Shop.vue';
|
|
37
37
|
import BookingSection from '../booking-section/BookingSection.vue';
|
|
38
|
+
import FaqSection from '../faq-section/FaqSection.vue';
|
|
38
39
|
|
|
39
40
|
export default {
|
|
40
41
|
components: {
|
|
@@ -60,6 +61,7 @@ export default {
|
|
|
60
61
|
'bp-shapes-section': ShapesSection,
|
|
61
62
|
'bp-shop-section': Shop,
|
|
62
63
|
'bp-booking-section': BookingSection,
|
|
64
|
+
'bp-faq-section': FaqSection,
|
|
63
65
|
},
|
|
64
66
|
mixins: [PageComponentMixin],
|
|
65
67
|
};
|
|
@@ -126,6 +126,15 @@ export const IMAGE_RESOLUTION_PRESETS = {
|
|
|
126
126
|
export type ImagesSectionContentDisplayStyle =
|
|
127
127
|
(typeof IMAGES_SECTION_CONTENT_DISPLAY_STYLES)[number];
|
|
128
128
|
|
|
129
|
+
/** Centered and split are accordions; grid shows every answer. */
|
|
130
|
+
export const FAQ_DISPLAY_STYLES = Object.freeze({
|
|
131
|
+
centered: 'faq-centered',
|
|
132
|
+
split: 'faq-split',
|
|
133
|
+
grid: 'faq-grid',
|
|
134
|
+
} as const);
|
|
135
|
+
|
|
136
|
+
export const FAQ_MAX_ITEMS = 6;
|
|
137
|
+
|
|
129
138
|
export const HEADER_CSRF_TOKEN = 'csrf-token';
|
|
130
139
|
|
|
131
140
|
export const STYLE_THEME_KEYS = Object.freeze({
|
|
@@ -40,6 +40,8 @@ export const CONTENT_TEXT_STYLE_PROPERTY_KEYS = {
|
|
|
40
40
|
buttonTextStyle: 'buttonTextStyle',
|
|
41
41
|
copyrightStyle: 'copyrightStyle',
|
|
42
42
|
successMessageStyle: 'successMessageStyle',
|
|
43
|
+
questionStyle: 'questionStyle',
|
|
44
|
+
answerStyle: 'answerStyle',
|
|
43
45
|
} as const;
|
|
44
46
|
|
|
45
47
|
export type ContentTextStylePropertyKey =
|
|
@@ -672,6 +672,35 @@ export interface BookingSectionContent extends Content {
|
|
|
672
672
|
buttonTextStyle: TextStyleDeclaration;
|
|
673
673
|
}
|
|
674
674
|
|
|
675
|
+
export interface FaqItem {
|
|
676
|
+
/** Stable per-item identifier. See ImageItem.id. */
|
|
677
|
+
id: string;
|
|
678
|
+
question: RichTextValue;
|
|
679
|
+
answer: RichTextValue;
|
|
680
|
+
// Overrides for personalisation
|
|
681
|
+
questionOverride?: string;
|
|
682
|
+
answerOverride?: string;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
export interface FaqSectionContent extends Content {
|
|
686
|
+
type: 'faq-section';
|
|
687
|
+
title: RichTextValue;
|
|
688
|
+
description: RichTextValue;
|
|
689
|
+
displayStyle: string;
|
|
690
|
+
items: FaqItem[];
|
|
691
|
+
titleStyle: RteTextRole;
|
|
692
|
+
descriptionStyle: RteTextRole;
|
|
693
|
+
/** Shared by every question; a question's own formatting lives in its doc. */
|
|
694
|
+
questionStyle: RteTextRole;
|
|
695
|
+
/** Shared by every answer. */
|
|
696
|
+
answerStyle: RteTextRole;
|
|
697
|
+
backgroundStyle: BrandPageCssStyle;
|
|
698
|
+
/** `{ color }` for the +/- toggle. */
|
|
699
|
+
iconColor: BrandPageCssStyle;
|
|
700
|
+
/** `{ backgroundColor }`, the Divider section's shape. `'transparent'` hides the line. */
|
|
701
|
+
dividerColor: BrandPageCssStyle;
|
|
702
|
+
}
|
|
703
|
+
|
|
675
704
|
export class PageModel {
|
|
676
705
|
title: string;
|
|
677
706
|
contents: Content[];
|
|
@@ -1244,6 +1244,87 @@ describe('applyTextContrast — standalone button labels (BP-5969)', () => {
|
|
|
1244
1244
|
});
|
|
1245
1245
|
});
|
|
1246
1246
|
|
|
1247
|
+
describe('applyTextContrast — FAQ shared question and answer styles', () => {
|
|
1248
|
+
test('a new FAQ bakes a contrast colour into the shared question and answer styles', () => {
|
|
1249
|
+
const styles = new PageStyles();
|
|
1250
|
+
|
|
1251
|
+
styles.colors = [
|
|
1252
|
+
{ id: 'palette-0', value: '#000000', type: 'palette' }, // dark brand
|
|
1253
|
+
{ id: 'palette-1', value: '#ffffff', type: 'palette' }, // light brand
|
|
1254
|
+
];
|
|
1255
|
+
|
|
1256
|
+
const content = {
|
|
1257
|
+
id: 'faq',
|
|
1258
|
+
type: 'faq-section',
|
|
1259
|
+
backgroundStyle: { backgroundColor: 'var(--palette-0)' }, // dark band
|
|
1260
|
+
questionStyle: { textStyleType: 'heading5' },
|
|
1261
|
+
answerStyle: { textStyleType: 'paragraph2' },
|
|
1262
|
+
items: [{ id: 'a', question: 'Q1', answer: 'A1' }],
|
|
1263
|
+
} as unknown as Content & {
|
|
1264
|
+
questionStyle: { color?: string };
|
|
1265
|
+
answerStyle: { color?: string };
|
|
1266
|
+
};
|
|
1267
|
+
|
|
1268
|
+
applyTextContrast(content, styles);
|
|
1269
|
+
|
|
1270
|
+
expect(content.questionStyle.color).toBe('var(--palette-1)'); // light on dark
|
|
1271
|
+
expect(content.answerStyle.color).toBe('var(--palette-1)');
|
|
1272
|
+
});
|
|
1273
|
+
});
|
|
1274
|
+
|
|
1275
|
+
describe('applyTextContrast — FAQ icon and divider', () => {
|
|
1276
|
+
const styles = (): PageStyles => {
|
|
1277
|
+
const pageStyles = new PageStyles();
|
|
1278
|
+
|
|
1279
|
+
pageStyles.colors = [
|
|
1280
|
+
{ id: 'palette-0', value: '#000000', type: 'palette' },
|
|
1281
|
+
{ id: 'palette-1', value: '#ffffff', type: 'palette' },
|
|
1282
|
+
];
|
|
1283
|
+
|
|
1284
|
+
return pageStyles;
|
|
1285
|
+
};
|
|
1286
|
+
|
|
1287
|
+
const faq = (iconColor: BrandPageCssStyle, dividerColor: BrandPageCssStyle) =>
|
|
1288
|
+
({
|
|
1289
|
+
id: 'f',
|
|
1290
|
+
type: 'faq-section',
|
|
1291
|
+
titleStyle: { textStyleType: 'heading4' },
|
|
1292
|
+
items: [],
|
|
1293
|
+
iconColor,
|
|
1294
|
+
dividerColor,
|
|
1295
|
+
backgroundStyle: {},
|
|
1296
|
+
}) as unknown as Content & {
|
|
1297
|
+
iconColor: BrandPageCssStyle;
|
|
1298
|
+
dividerColor: BrandPageCssStyle;
|
|
1299
|
+
};
|
|
1300
|
+
|
|
1301
|
+
test('a new FAQ stores its title colour on the icon and divider', () => {
|
|
1302
|
+
const content = faq({}, {});
|
|
1303
|
+
|
|
1304
|
+
applyTextContrast(content, styles());
|
|
1305
|
+
|
|
1306
|
+
const titleColour = (
|
|
1307
|
+
content as unknown as { titleStyle: { color?: string } }
|
|
1308
|
+
).titleStyle.color;
|
|
1309
|
+
|
|
1310
|
+
expect(titleColour).toMatch(/^var\(--palette-/);
|
|
1311
|
+
expect(content.iconColor.color).toBe(titleColour);
|
|
1312
|
+
expect(content.dividerColor.backgroundColor).toBe(titleColour);
|
|
1313
|
+
});
|
|
1314
|
+
|
|
1315
|
+
test('an explicit or transparent colour is left alone', () => {
|
|
1316
|
+
const content = faq(
|
|
1317
|
+
{ color: '#abcdef' },
|
|
1318
|
+
{ backgroundColor: 'transparent' },
|
|
1319
|
+
);
|
|
1320
|
+
|
|
1321
|
+
applyTextContrast(content, styles());
|
|
1322
|
+
|
|
1323
|
+
expect(content.iconColor.color).toBe('#abcdef');
|
|
1324
|
+
expect(content.dividerColor.backgroundColor).toBe('transparent');
|
|
1325
|
+
});
|
|
1326
|
+
});
|
|
1327
|
+
|
|
1247
1328
|
describe('applyTextContrast — social-links icon fill', () => {
|
|
1248
1329
|
const styles = (): PageStyles => {
|
|
1249
1330
|
const pageStyles = new PageStyles();
|
|
@@ -9,14 +9,15 @@
|
|
|
9
9
|
* reason `resolveTextColor` lives in one place (`text-style.util.ts`).
|
|
10
10
|
*
|
|
11
11
|
* MIGRATION-22 SNAPSHOT DEPENDENCY: the v21 -> v22 colour bake calls
|
|
12
|
-
* `containerTextColorDefaults` and `
|
|
13
|
-
* before changing
|
|
12
|
+
* `containerTextColorDefaults`, `titleSurfaceContrastFill` and `isButtonLabelField`. Pin that
|
|
13
|
+
* migration's behaviour before changing any of them after it releases.
|
|
14
14
|
*/
|
|
15
15
|
import type {
|
|
16
16
|
Content,
|
|
17
17
|
PageStyles,
|
|
18
18
|
BrandPageType,
|
|
19
19
|
ColorItem,
|
|
20
|
+
FaqSectionContent,
|
|
20
21
|
ShopContent,
|
|
21
22
|
SocialLinksContent,
|
|
22
23
|
TextStyleDeclaration,
|
|
@@ -180,7 +181,7 @@ const NON_SECTION_SURFACE_KEYS = new Set<ContentTextStylePropertyKey>([
|
|
|
180
181
|
* contrast the PAGE instead and collide with the fill (the default theme paints both from the same
|
|
181
182
|
* brand role, hiding the text).
|
|
182
183
|
*/
|
|
183
|
-
const isButtonLabelField = (
|
|
184
|
+
export const isButtonLabelField = (
|
|
184
185
|
content: Content,
|
|
185
186
|
key: ContentTextStylePropertyKey,
|
|
186
187
|
): boolean => key === 'titleStyle' && isButtonContent(content);
|
|
@@ -753,6 +754,21 @@ export const applyTextContrast = (
|
|
|
753
754
|
}
|
|
754
755
|
}
|
|
755
756
|
|
|
757
|
+
// Same for the FAQ's +/− icons and divider: with no base coat to inherit, a new section
|
|
758
|
+
// stores its title's contrast colour, so both start linked to the palette.
|
|
759
|
+
if (content.type === 'faq-section') {
|
|
760
|
+
const faq = content as FaqSectionContent;
|
|
761
|
+
const fill = titleSurfaceContrastFill(content, styles, brandPageType);
|
|
762
|
+
|
|
763
|
+
if (fill && isBlankColorValue(faq.iconColor?.color)) {
|
|
764
|
+
faq.iconColor = { ...faq.iconColor, color: fill };
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
if (fill && isBlankColorValue(faq.dividerColor?.backgroundColor)) {
|
|
768
|
+
faq.dividerColor = { ...faq.dividerColor, backgroundColor: fill };
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
|
|
756
772
|
return content;
|
|
757
773
|
};
|
|
758
774
|
|
|
@@ -17,6 +17,7 @@ import type {
|
|
|
17
17
|
ButtonContent,
|
|
18
18
|
PageModel,
|
|
19
19
|
BookingSectionContent,
|
|
20
|
+
FaqSectionContent,
|
|
20
21
|
} from '../models';
|
|
21
22
|
|
|
22
23
|
export type ContentCallback = {
|
|
@@ -39,6 +40,7 @@ export type ContentCallback = {
|
|
|
39
40
|
shopSectionContentCallback: (content: ShopContent) => void;
|
|
40
41
|
buttonContentCallback: (content: ButtonContent) => void;
|
|
41
42
|
bookingSectionContentCallback: (content: BookingSectionContent) => void;
|
|
43
|
+
faqSectionContentCallback: (content: FaqSectionContent) => void;
|
|
42
44
|
};
|
|
43
45
|
|
|
44
46
|
export const forEachPageCallContentCallback = (
|
|
@@ -101,6 +103,9 @@ export const forEachPageCallContentCallback = (
|
|
|
101
103
|
content as BookingSectionContent,
|
|
102
104
|
);
|
|
103
105
|
break;
|
|
106
|
+
case 'faq-section':
|
|
107
|
+
callbacks.faqSectionContentCallback(content as FaqSectionContent);
|
|
108
|
+
break;
|
|
104
109
|
case 'general-link':
|
|
105
110
|
case 'website':
|
|
106
111
|
case 'email':
|
|
@@ -646,8 +646,7 @@
|
|
|
646
646
|
"textStyleType": "button",
|
|
647
647
|
"textAlign": "center",
|
|
648
648
|
"lineHeight": "1.5",
|
|
649
|
-
"letterSpacing": "0"
|
|
650
|
-
"color": "var(--palette-1)"
|
|
649
|
+
"letterSpacing": "0"
|
|
651
650
|
},
|
|
652
651
|
"url": "",
|
|
653
652
|
"colorReplacements": [],
|
|
@@ -665,8 +664,7 @@
|
|
|
665
664
|
"textStyleType": "button",
|
|
666
665
|
"textAlign": "center",
|
|
667
666
|
"lineHeight": "1.5",
|
|
668
|
-
"letterSpacing": "0"
|
|
669
|
-
"color": "var(--palette-1)"
|
|
667
|
+
"letterSpacing": "0"
|
|
670
668
|
},
|
|
671
669
|
"url": "",
|
|
672
670
|
"colorReplacements": [],
|
|
@@ -684,8 +682,7 @@
|
|
|
684
682
|
"textStyleType": "button",
|
|
685
683
|
"textAlign": "center",
|
|
686
684
|
"lineHeight": "1.5",
|
|
687
|
-
"letterSpacing": "0"
|
|
688
|
-
"color": "var(--palette-1)"
|
|
685
|
+
"letterSpacing": "0"
|
|
689
686
|
},
|
|
690
687
|
"url": "",
|
|
691
688
|
"colorReplacements": [],
|
|
@@ -708,8 +705,7 @@
|
|
|
708
705
|
"textStyleType": "button",
|
|
709
706
|
"textAlign": "center",
|
|
710
707
|
"lineHeight": "1.5",
|
|
711
|
-
"letterSpacing": "0"
|
|
712
|
-
"color": "var(--palette-1)"
|
|
708
|
+
"letterSpacing": "0"
|
|
713
709
|
},
|
|
714
710
|
"fieldRole": "button"
|
|
715
711
|
},
|
|
@@ -646,8 +646,7 @@
|
|
|
646
646
|
"textStyleType": "button",
|
|
647
647
|
"textAlign": "center",
|
|
648
648
|
"lineHeight": "1.5",
|
|
649
|
-
"letterSpacing": "0"
|
|
650
|
-
"color": "var(--palette-1)"
|
|
649
|
+
"letterSpacing": "0"
|
|
651
650
|
},
|
|
652
651
|
"url": "",
|
|
653
652
|
"colorReplacements": [],
|
|
@@ -665,8 +664,7 @@
|
|
|
665
664
|
"textStyleType": "button",
|
|
666
665
|
"textAlign": "center",
|
|
667
666
|
"lineHeight": "1.5",
|
|
668
|
-
"letterSpacing": "0"
|
|
669
|
-
"color": "var(--palette-1)"
|
|
667
|
+
"letterSpacing": "0"
|
|
670
668
|
},
|
|
671
669
|
"url": "",
|
|
672
670
|
"colorReplacements": [],
|
|
@@ -684,8 +682,7 @@
|
|
|
684
682
|
"textStyleType": "button",
|
|
685
683
|
"textAlign": "center",
|
|
686
684
|
"lineHeight": "1.5",
|
|
687
|
-
"letterSpacing": "0"
|
|
688
|
-
"color": "var(--palette-1)"
|
|
685
|
+
"letterSpacing": "0"
|
|
689
686
|
},
|
|
690
687
|
"url": "",
|
|
691
688
|
"colorReplacements": [],
|
|
@@ -708,8 +705,7 @@
|
|
|
708
705
|
"textStyleType": "button",
|
|
709
706
|
"textAlign": "center",
|
|
710
707
|
"lineHeight": "1.5",
|
|
711
|
-
"letterSpacing": "0"
|
|
712
|
-
"color": "var(--palette-1)"
|
|
708
|
+
"letterSpacing": "0"
|
|
713
709
|
},
|
|
714
710
|
"fieldRole": "button"
|
|
715
711
|
},
|
|
@@ -646,8 +646,7 @@
|
|
|
646
646
|
"textStyleType": "button",
|
|
647
647
|
"textAlign": "center",
|
|
648
648
|
"lineHeight": "1.5",
|
|
649
|
-
"letterSpacing": "0"
|
|
650
|
-
"color": "var(--palette-1)"
|
|
649
|
+
"letterSpacing": "0"
|
|
651
650
|
},
|
|
652
651
|
"url": "",
|
|
653
652
|
"colorReplacements": [],
|
|
@@ -665,8 +664,7 @@
|
|
|
665
664
|
"textStyleType": "button",
|
|
666
665
|
"textAlign": "center",
|
|
667
666
|
"lineHeight": "1.5",
|
|
668
|
-
"letterSpacing": "0"
|
|
669
|
-
"color": "var(--palette-1)"
|
|
667
|
+
"letterSpacing": "0"
|
|
670
668
|
},
|
|
671
669
|
"url": "",
|
|
672
670
|
"colorReplacements": [],
|
|
@@ -684,8 +682,7 @@
|
|
|
684
682
|
"textStyleType": "button",
|
|
685
683
|
"textAlign": "center",
|
|
686
684
|
"lineHeight": "1.5",
|
|
687
|
-
"letterSpacing": "0"
|
|
688
|
-
"color": "var(--palette-1)"
|
|
685
|
+
"letterSpacing": "0"
|
|
689
686
|
},
|
|
690
687
|
"url": "",
|
|
691
688
|
"colorReplacements": [],
|
|
@@ -708,8 +705,7 @@
|
|
|
708
705
|
"textStyleType": "button",
|
|
709
706
|
"textAlign": "center",
|
|
710
707
|
"lineHeight": "1.5",
|
|
711
|
-
"letterSpacing": "0"
|
|
712
|
-
"color": "var(--palette-1)"
|
|
708
|
+
"letterSpacing": "0"
|
|
713
709
|
},
|
|
714
710
|
"fieldRole": "button"
|
|
715
711
|
},
|