@simplybusiness/services 2.4.3 → 2.4.5
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/CHANGELOG.md +16 -0
- package/dist/cjs/index.js +15 -12
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs/meta.json +32 -32
- package/dist/cjs/snowplow/Snowplow.js +3 -0
- package/dist/cjs/snowplow/Snowplow.js.map +2 -2
- package/dist/cjs/snowplow/SnowplowContext.js +15 -12
- package/dist/cjs/snowplow/SnowplowContext.js.map +2 -2
- package/dist/cjs/snowplow/event-definitions/index.js +3 -2
- package/dist/cjs/snowplow/event-definitions/index.js.map +2 -2
- package/dist/cjs/snowplow/event-definitions/questionnaire/questionnaire.js +3 -2
- package/dist/cjs/snowplow/event-definitions/questionnaire/questionnaire.js.map +2 -2
- package/dist/cjs/snowplow/index.js +15 -12
- package/dist/cjs/snowplow/index.js.map +2 -2
- package/dist/cjs/utils/testUtils.js +15 -12
- package/dist/cjs/utils/testUtils.js.map +2 -2
- package/dist/esm/{chunk-EDKZP2NB.js → chunk-2TWF6FRS.js} +4 -1
- package/dist/esm/{chunk-EDKZP2NB.js.map → chunk-2TWF6FRS.js.map} +2 -2
- package/dist/esm/{chunk-YO5FUC73.js → chunk-3VFJFBNM.js} +4 -3
- package/dist/esm/chunk-3VFJFBNM.js.map +7 -0
- package/dist/esm/{chunk-WB3C6L4X.js → chunk-RSDIB373.js} +12 -13
- package/dist/esm/chunk-RSDIB373.js.map +7 -0
- package/dist/esm/{chunk-LLSH4K4D.js → chunk-X77BVKJO.js} +2 -2
- package/dist/esm/index.js +4 -4
- package/dist/esm/meta.json +43 -43
- package/dist/esm/snowplow/Snowplow.js +1 -1
- package/dist/esm/snowplow/SnowplowContext.js +4 -4
- package/dist/esm/snowplow/event-definitions/index.js +2 -2
- package/dist/esm/snowplow/event-definitions/questionnaire/questionnaire.js +1 -1
- package/dist/esm/snowplow/index.js +4 -4
- package/dist/esm/utils/testUtils.js +4 -4
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/address-lookup/index.test.d.ts +1 -0
- package/dist/types/components/Actions/Actions.d.ts +15 -0
- package/dist/types/components/Actions/Actions.hidden-stories.d.ts +10 -0
- package/dist/types/components/Actions/Actions.stories.d.ts +10 -0
- package/dist/types/components/Actions/Actions.test.d.ts +1 -0
- package/dist/types/components/Actions/LinkOrButton.d.ts +2 -0
- package/dist/types/components/Actions/LinkOrButton.test.d.ts +1 -0
- package/dist/types/components/Actions/index.d.ts +1 -0
- package/dist/types/components/Footer/Address.d.ts +6 -0
- package/dist/types/components/Footer/Addresses.d.ts +5 -0
- package/dist/types/components/Footer/Copyright.d.ts +7 -0
- package/dist/types/components/Footer/Footer.d.ts +2 -0
- package/dist/types/components/Footer/Footer.stories.d.ts +7 -0
- package/dist/types/components/Footer/Footer.test.d.ts +1 -0
- package/dist/types/components/Footer/Legal.d.ts +7 -0
- package/dist/types/components/Footer/LegalLinks.d.ts +5 -0
- package/dist/types/components/Footer/OpeningHours.d.ts +2 -0
- package/dist/types/components/Footer/OpeningHoursEntry.d.ts +2 -0
- package/dist/types/components/Footer/SmallPrint.d.ts +5 -0
- package/dist/types/components/Footer/Support.d.ts +3 -0
- package/dist/types/components/Footer/Title.d.ts +5 -0
- package/dist/types/components/Footer/Underline.d.ts +1 -0
- package/dist/types/components/Footer/constants.d.ts +25 -0
- package/dist/types/components/Footer/index.d.ts +2 -0
- package/dist/types/components/Footer/types.d.ts +18 -0
- package/dist/types/components/Header/ContactDetails.d.ts +2 -0
- package/dist/types/components/Header/Header.d.ts +2 -0
- package/dist/types/components/Header/Header.stories.d.ts +8 -0
- package/dist/types/components/Header/Header.test.d.ts +1 -0
- package/dist/types/components/Header/Logo.d.ts +2 -0
- package/dist/types/components/Header/constants.d.ts +4 -0
- package/dist/types/components/Header/index.d.ts +3 -0
- package/dist/types/components/Header/mockOpeningHoursData.d.ts +4 -0
- package/dist/types/components/Header/types.d.ts +25 -0
- package/dist/types/components/HelpWidget/HelpWidget.d.ts +10 -0
- package/dist/types/components/HelpWidget/HelpWidget.stories.d.ts +6 -0
- package/dist/types/components/HelpWidget/HelpWidget.test.d.ts +1 -0
- package/dist/types/components/HelpWidget/index.d.ts +1 -0
- package/dist/types/components/MaskedField/MaskedField.d.ts +11 -0
- package/dist/types/components/MaskedField/MaskedField.hidden-stories.d.ts +6 -0
- package/dist/types/components/MaskedField/MaskedField.stories.d.ts +6 -0
- package/dist/types/components/MaskedField/MaskedField.test.d.ts +1 -0
- package/dist/types/components/MaskedField/index.d.ts +1 -0
- package/dist/types/components/MaskedField/inputFormatters.d.ts +10 -0
- package/dist/types/components/PageFlat/PageFlat.d.ts +2 -0
- package/dist/types/components/PageFlat/PageFlat.stories.d.ts +6 -0
- package/dist/types/components/PageFlat/index.d.ts +1 -0
- package/dist/types/components/PageNested/PageNested.d.ts +2 -0
- package/dist/types/components/PageNested/PageNested.stories.d.ts +6 -0
- package/dist/types/components/PageNested/index.d.ts +1 -0
- package/dist/types/components/PaymentConfirmation/PaymentConfirmation.d.ts +6 -0
- package/dist/types/components/PaymentConfirmation/PaymentConfirmation.hidden-stories.d.ts +6 -0
- package/dist/types/components/PaymentConfirmation/PaymentConfirmation.stories.d.ts +6 -0
- package/dist/types/components/PaymentConfirmation/PaymentConfirmation.test.d.ts +1 -0
- package/dist/types/components/PaymentConfirmation/index.d.ts +1 -0
- package/dist/types/components/PercentageTotalsQuestion/PercentageItem.d.ts +6 -0
- package/dist/types/components/PercentageTotalsQuestion/PercentageTotalsQuestion.d.ts +10 -0
- package/dist/types/components/PercentageTotalsQuestion/PercentageTotalsQuestion.hidden-stories.d.ts +6 -0
- package/dist/types/components/PercentageTotalsQuestion/PercentageTotalsQuestion.hiddenstories.d.ts +6 -0
- package/dist/types/components/PercentageTotalsQuestion/PercentageTotalsQuestion.stories.d.ts +6 -0
- package/dist/types/components/PercentageTotalsQuestion/PercentageTotalsQuestion.test.d.ts +1 -0
- package/dist/types/components/PercentageTotalsQuestion/index.d.ts +1 -0
- package/dist/types/components/PreFooter/LogoBbbAccreditedBusiness.d.ts +5 -0
- package/dist/types/components/PreFooter/LogoForbesAdvisor.d.ts +5 -0
- package/dist/types/components/PreFooter/PreFooter.d.ts +10 -0
- package/dist/types/components/PreFooter/PreFooter.stories.d.ts +6 -0
- package/dist/types/components/PreFooter/PreFooter.test.d.ts +1 -0
- package/dist/types/components/PreFooter/index.d.ts +1 -0
- package/dist/types/components/Question/Question.d.ts +13 -0
- package/dist/types/components/Question/Question.hidden-stories.d.ts +14 -0
- package/dist/types/components/Question/Question.stories.d.ts +14 -0
- package/dist/types/components/Question/Question.test.d.ts +1 -0
- package/dist/types/components/Question/index.d.ts +1 -0
- package/dist/types/components/QuestionGroup/QuestionGroup.d.ts +16 -0
- package/dist/types/components/QuestionGroup/QuestionGroup.hidden-stories.d.ts +6 -0
- package/dist/types/components/QuestionGroup/QuestionGroup.stories.d.ts +6 -0
- package/dist/types/components/QuestionGroup/QuestionGroup.test.d.ts +1 -0
- package/dist/types/components/QuestionGroup/index.d.ts +1 -0
- package/dist/types/components/QuestionHelp/QuestionHelp.d.ts +11 -0
- package/dist/types/components/QuestionHelp/QuestionHelp.test.d.ts +1 -0
- package/dist/types/components/QuestionHelp/index.d.ts +1 -0
- package/dist/types/components/QuestionHelp/question.d.ts +3 -0
- package/dist/types/components/Section/Section.d.ts +14 -0
- package/dist/types/components/Section/Section.hidden-stories.d.ts +6 -0
- package/dist/types/components/Section/Section.stories.d.ts +6 -0
- package/dist/types/components/Section/Section.test.d.ts +1 -0
- package/dist/types/components/Section/index.d.ts +1 -0
- package/dist/types/components/Steps/StepItem.d.ts +20 -0
- package/dist/types/components/Steps/Steps.d.ts +13 -0
- package/dist/types/components/Steps/Steps.hidden-stories.d.ts +6 -0
- package/dist/types/components/Steps/Steps.stories.d.ts +6 -0
- package/dist/types/components/Steps/Steps.test.d.ts +1 -0
- package/dist/types/components/Steps/index.d.ts +2 -0
- package/dist/types/components/Testimonial/Testimonial.d.ts +13 -0
- package/dist/types/components/Testimonial/Testimonial.hidden-stories.d.ts +6 -0
- package/dist/types/components/Testimonial/Testimonial.stories.d.ts +6 -0
- package/dist/types/components/Testimonial/Testimonial.test.d.ts +1 -0
- package/dist/types/components/Testimonial/index.d.ts +1 -0
- package/dist/types/components/ThankYou/ThankYou.d.ts +3 -0
- package/dist/types/components/ThankYou/ThankYou.stories.d.ts +7 -0
- package/dist/types/components/ThankYou/ThankYou.test.d.ts +1 -0
- package/dist/types/components/ThankYou/ThankYouSidebar.d.ts +1 -0
- package/dist/types/components/ThankYou/ThankYouText.d.ts +2 -0
- package/dist/types/components/ThankYou/ThankYouText.test.d.ts +1 -0
- package/dist/types/components/ThankYou/index.d.ts +2 -0
- package/dist/types/components/ThankYou/types.d.ts +17 -0
- package/dist/types/components/TradeSearch/SearchResults/SearchResults.d.ts +15 -0
- package/dist/types/components/TradeSearch/TradeSearch.d.ts +2 -0
- package/dist/types/components/TradeSearch/TradeSearch.stories.d.ts +6 -0
- package/dist/types/components/TradeSearch/components/Listing/Listing.d.ts +12 -0
- package/dist/types/components/TradeSearch/components/Listing/Listing.test.d.ts +1 -0
- package/dist/types/components/TradeSearch/components/Listing/ListingItem.d.ts +8 -0
- package/dist/types/components/TradeSearch/components/Listing/ListingItem.test.d.ts +1 -0
- package/dist/types/components/TradeSearch/components/Listing/index.d.ts +1 -0
- package/dist/types/components/TradeSearch/components/SearchResults/SearchResults.d.ts +2 -0
- package/dist/types/components/TradeSearch/components/SearchResults/SearchResults.test.d.ts +1 -0
- package/dist/types/components/TradeSearch/components/SearchResults/index.d.ts +1 -0
- package/dist/types/components/TradeSearch/components/TradeContext/TradeContext.d.ts +1 -0
- package/dist/types/components/TradeSearch/components/TradeContext/index.d.ts +1 -0
- package/dist/types/components/TradeSearch/components/index.d.ts +1 -0
- package/dist/types/components/TradeSearch/constants.d.ts +1 -0
- package/dist/types/components/TradeSearch/hooks/index.d.ts +4 -0
- package/dist/types/components/TradeSearch/hooks/useApiEndpoint.d.ts +1 -0
- package/dist/types/components/TradeSearch/hooks/useFetchTrades.d.ts +6 -0
- package/dist/types/components/TradeSearch/hooks/useTradeContext.d.ts +1 -0
- package/dist/types/components/TradeSearch/hooks/useTradeState.d.ts +6 -0
- package/dist/types/components/TradeSearch/index.d.ts +2 -0
- package/dist/types/components/TradeSearch/types.d.ts +65 -0
- package/dist/types/components/TradeSearch/utils/addQueryParam.d.ts +1 -0
- package/dist/types/components/TradeSearch/utils/index.d.ts +1 -0
- package/dist/types/components/TradeSelector/Header/Header.d.ts +9 -0
- package/dist/types/components/TradeSelector/Header/index.d.ts +1 -0
- package/dist/types/components/TradeSelector/Listing/Listing.d.ts +12 -0
- package/dist/types/components/TradeSelector/Listing/Listing.test.d.ts +1 -0
- package/dist/types/components/TradeSelector/Listing/ListingItem.d.ts +8 -0
- package/dist/types/components/TradeSelector/Listing/ListingItem.test.d.ts +1 -0
- package/dist/types/components/TradeSelector/Listing/index.d.ts +1 -0
- package/dist/types/components/TradeSelector/SearchResults/SearchResults.d.ts +15 -0
- package/dist/types/components/TradeSelector/SearchResults/SearchResults.test.d.ts +1 -0
- package/dist/types/components/TradeSelector/SearchResults/index.d.ts +1 -0
- package/dist/types/components/TradeSelector/TradeInput/TradeInput.d.ts +15 -0
- package/dist/types/components/TradeSelector/TradeInput/TradeInput.test.d.ts +1 -0
- package/dist/types/components/TradeSelector/TradeInput/index.d.ts +1 -0
- package/dist/types/components/TradeSelector/TradeSelector.d.ts +5 -0
- package/dist/types/components/TradeSelector/TradeSelector.stories.d.ts +10 -0
- package/dist/types/components/TradeSelector/TradeSelector.test.d.ts +1 -0
- package/dist/types/components/TradeSelector/config/development.d.ts +7 -0
- package/dist/types/components/TradeSelector/config/index.d.ts +18 -0
- package/dist/types/components/TradeSelector/config/production.d.ts +7 -0
- package/dist/types/components/TradeSelector/config/shared.d.ts +17 -0
- package/dist/types/components/TradeSelector/config/testing.d.ts +7 -0
- package/dist/types/components/TradeSelector/index.d.ts +2 -0
- package/dist/types/components/TradeSelector/jestHTMLDialogPolyfill.d.ts +1 -0
- package/dist/types/components/TradeSelector/mockApiResults.d.ts +13 -0
- package/dist/types/components/TradeSelector/types.d.ts +51 -0
- package/dist/types/components/TradeSelector/useFetchTrades/index.d.ts +1 -0
- package/dist/types/components/TradeSelector/useFetchTrades/useFetchTrades.d.ts +7 -0
- package/dist/types/components/TradeSelector/useTradeSelectorUrl/index.d.ts +1 -0
- package/dist/types/components/TradeSelector/useTradeSelectorUrl/useTradeSelectorUrl.d.ts +6 -0
- package/dist/types/components/TradeSelector/useTradeSelectorUrl/useTradeSelectorUrl.test.d.ts +1 -0
- package/dist/types/components/TrustSection/TrustSection.d.ts +10 -0
- package/dist/types/components/TrustSection/TrustSection.stories.d.ts +6 -0
- package/dist/types/components/TrustSection/TrustSection.test.d.ts +1 -0
- package/dist/types/components/TrustSection/index.d.ts +1 -0
- package/dist/types/data/page-contract-flat.d.ts +17 -0
- package/dist/types/data/page-contract-nested.d.ts +17 -0
- package/dist/types/data/page-contract-v1.d.ts +2 -0
- package/dist/types/data/page-contract-v2.d.ts +2 -0
- package/dist/types/data/scripts-mock.d.ts +44 -0
- package/dist/types/data/thank-you-page-mock.d.ts +44 -0
- package/dist/types/hooks/useOnClickOutside/index.d.ts +1 -0
- package/dist/types/hooks/useOnClickOutside/useOnClickOutside.d.ts +2 -0
- package/dist/types/hooks/useWindowEvent/index.d.ts +1 -0
- package/dist/types/hooks/useWindowEvent/useWindowEvent.d.ts +1 -0
- package/dist/types/pages/GeneralPage/GeneralPage.d.ts +2 -0
- package/dist/types/pages/GeneralPage/GeneralPage.stories.d.ts +6 -0
- package/dist/types/pages/GeneralPage/GeneralPage.test.d.ts +1 -0
- package/dist/types/pages/GeneralPage/Main.d.ts +5 -0
- package/dist/types/pages/GeneralPage/getMainComponents.d.ts +6 -0
- package/dist/types/pages/GeneralPage/index.d.ts +1 -0
- package/dist/types/pages/GeneralPage/mainComponents.d.ts +2 -0
- package/dist/types/pages/GeneralPage/types.d.ts +23 -0
- package/dist/types/pages/Page/Page.d.ts +2 -0
- package/dist/types/pages/Page/index.d.ts +1 -0
- package/dist/types/pages/Page/types.d.ts +29 -0
- package/dist/types/pages/Simple/Main.d.ts +5 -0
- package/dist/types/pages/Simple/Simple.d.ts +2 -0
- package/dist/types/pages/Simple/Simple.stories.d.ts +6 -0
- package/dist/types/pages/Simple/index.d.ts +1 -0
- package/dist/types/pages/Simple/useMainComponents.d.ts +3 -0
- package/dist/types/pages/ThankYouPage/ThankYouPage.d.ts +2 -0
- package/dist/types/pages/ThankYouPage/ThankYouPage.stories.d.ts +6 -0
- package/dist/types/pages/ThankYouPage/ThankYouPage.test.d.ts +1 -0
- package/dist/types/pages/ThankYouPage/index.d.ts +1 -0
- package/dist/types/pages/ThankYouPage/types.d.ts +10 -0
- package/dist/types/services/airbrake/index.d.ts +2 -0
- package/dist/types/services/index.d.ts +2 -0
- package/dist/types/services/snowplow/Snowplow.d.ts +29 -0
- package/dist/types/services/snowplow/SnowplowContext.d.ts +14 -0
- package/dist/types/services/snowplow/SnowplowContext.test.d.ts +1 -0
- package/dist/types/services/snowplow/contexts.d.ts +3 -0
- package/dist/types/services/snowplow/contexts.test.d.ts +1 -0
- package/dist/types/services/snowplow/event-definitions/base.d.ts +18 -0
- package/dist/types/services/snowplow/event-definitions/index.d.ts +2 -0
- package/dist/types/services/snowplow/event-definitions/qcp.d.ts +18 -0
- package/dist/types/services/snowplow/event-definitions.d.ts +18 -0
- package/dist/types/services/snowplow/getSnowplowConfig.d.ts +2 -0
- package/dist/types/services/snowplow/index.d.ts +6 -0
- package/dist/types/services/snowplow/index.test.d.ts +1 -0
- package/dist/types/services/snowplow/types.d.ts +37 -0
- package/dist/types/snowplow/SnowplowContext.test.d.ts +1 -0
- package/dist/types/snowplow/contexts.test.d.ts +1 -0
- package/dist/types/snowplow/event-definitions/events.d.ts +20 -0
- package/dist/types/snowplow/event-definitions/pcp.d.ts +20 -0
- package/dist/types/snowplow/event-definitions/progressbar.d.ts +2 -0
- package/dist/types/snowplow/event-definitions/questionnaire/questionnaire.test.d.ts +1 -0
- package/dist/types/snowplow/event-definitions/questionnaire.d.ts +2 -0
- package/dist/types/snowplow/event-definitions/questionnaire.test.d.ts +1 -0
- package/dist/types/snowplow/event-definitions/redaction.d.ts +5 -0
- package/dist/types/snowplow/event-definitions/shared.d.ts +2 -0
- package/dist/types/snowplow/event-definitions/shoppingCart.d.ts +2 -0
- package/dist/types/snowplow/event-definitions/thankYou.d.ts +2 -0
- package/dist/types/snowplow/events.d.ts +20 -0
- package/dist/types/snowplow/index.test.d.ts +1 -0
- package/dist/types/src/address-lookup/index.d.ts +15 -0
- package/dist/types/src/address-lookup/types.d.ts +44 -0
- package/dist/types/src/airbrake/index.d.ts +9 -0
- package/dist/types/src/index.d.ts +3 -0
- package/dist/types/src/mocks/eventDefinitions.d.ts +61 -0
- package/dist/types/src/mocks/scripts-mock.d.ts +44 -0
- package/dist/types/src/snowplow/Snowplow.d.ts +34 -0
- package/dist/types/src/snowplow/SnowplowContext.d.ts +14 -0
- package/dist/types/src/snowplow/constants.d.ts +1 -0
- package/dist/types/src/snowplow/contexts.d.ts +4 -0
- package/dist/types/src/snowplow/event-definitions/base.d.ts +22 -0
- package/dist/types/src/snowplow/event-definitions/coverage-selection.d.ts +2 -0
- package/dist/types/src/snowplow/event-definitions/index.d.ts +8 -0
- package/dist/types/src/snowplow/event-definitions/intervention.d.ts +12 -0
- package/dist/types/src/snowplow/event-definitions/personalised_cover.d.ts +22 -0
- package/dist/types/src/snowplow/event-definitions/qcp.d.ts +2 -0
- package/dist/types/src/snowplow/event-definitions/questionnaire/questionnaire.d.ts +2 -0
- package/dist/types/src/snowplow/event-definitions/questionnaire/redaction.d.ts +5 -0
- package/dist/types/src/snowplow/event-definitions/referral.d.ts +2 -0
- package/dist/types/src/snowplow/event-definitions/test-utils.d.ts +2 -0
- package/dist/types/src/snowplow/getSnowplowConfig.d.ts +2 -0
- package/dist/types/src/snowplow/index.d.ts +6 -0
- package/dist/types/src/snowplow/types.d.ts +54 -0
- package/dist/types/src/utils/index.d.ts +2 -0
- package/dist/types/src/utils/isObject.d.ts +1 -0
- package/dist/types/src/utils/testUtils.d.ts +7 -0
- package/dist/types/src/utils/text.d.ts +3 -0
- package/dist/types/tracking-helper/TrackingHelper.d.ts +15 -0
- package/dist/types/tracking-helper/index.d.ts +15 -0
- package/dist/types/types.d.ts +5 -0
- package/dist/types/utils/StoryContainer.d.ts +1 -0
- package/dist/types/utils/TrackingHelper.d.ts +15 -0
- package/dist/types/utils/TrustpilotProvider.d.ts +4 -0
- package/dist/types/utils/env.d.ts +5 -0
- package/dist/types/utils/env.test.d.ts +1 -0
- package/dist/types/utils/excludeControls.d.ts +1 -0
- package/dist/types/utils/excludeControls.test.d.ts +1 -0
- package/dist/types/utils/isObject.test.d.ts +1 -0
- package/dist/types/utils/spaceDelimitedList.d.ts +1 -0
- package/dist/types/utils/spaceDelimitedList.test.d.ts +1 -0
- package/dist/types/utils/text.test.d.ts +1 -0
- package/dist/types/vitest.config.d.ts +2 -0
- package/package.json +1 -1
- package/src/snowplow/Snowplow.ts +4 -0
- package/src/snowplow/SnowplowContext.tsx +10 -13
- package/src/snowplow/event-definitions/questionnaire/questionnaire.test.ts +43 -0
- package/src/snowplow/event-definitions/questionnaire/questionnaire.ts +5 -1
- package/src/snowplow/index.test.ts +32 -0
- package/dist/esm/chunk-WB3C6L4X.js.map +0 -7
- package/dist/esm/chunk-YO5FUC73.js.map +0 -7
- /package/dist/esm/{chunk-LLSH4K4D.js.map → chunk-X77BVKJO.js.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Ref } from "react";
|
|
2
|
+
import { DOMProps } from "@react-types/shared";
|
|
3
|
+
import type { ButtonProps, ForwardedRefComponent, LinkButtonProps } from "@simplybusiness/mobius";
|
|
4
|
+
export type ActionsElementType = HTMLDivElement;
|
|
5
|
+
export interface ActionsProps extends DOMProps {
|
|
6
|
+
/** Custom class name for setting specific CSS */
|
|
7
|
+
className?: string;
|
|
8
|
+
backButton?: LinkButtonProps | ButtonProps;
|
|
9
|
+
nextButton?: LinkButtonProps | ButtonProps;
|
|
10
|
+
backLabel?: string;
|
|
11
|
+
nextLabel?: string;
|
|
12
|
+
}
|
|
13
|
+
export type ActionsRef = Ref<ActionsElementType>;
|
|
14
|
+
declare const Actions: ForwardedRefComponent<ActionsProps, ActionsElementType>;
|
|
15
|
+
export { Actions };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { Actions } from ".";
|
|
3
|
+
type StoryType = StoryObj<typeof Actions>;
|
|
4
|
+
declare const meta: Meta<typeof Actions>;
|
|
5
|
+
export declare const Normal: StoryType;
|
|
6
|
+
export declare const WithLinks: StoryType;
|
|
7
|
+
export declare const OneAction: StoryType;
|
|
8
|
+
export declare const OneBackAction: StoryType;
|
|
9
|
+
export declare const DisabledActions: StoryType;
|
|
10
|
+
export default meta;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { Actions } from ".";
|
|
3
|
+
type StoryType = StoryObj<typeof Actions>;
|
|
4
|
+
declare const meta: Meta<typeof Actions>;
|
|
5
|
+
export declare const Normal: StoryType;
|
|
6
|
+
export declare const WithLinks: StoryType;
|
|
7
|
+
export declare const OneAction: StoryType;
|
|
8
|
+
export declare const OneBackAction: StoryType;
|
|
9
|
+
export declare const DisabledActions: StoryType;
|
|
10
|
+
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Actions";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { Footer } from ".";
|
|
3
|
+
type StoryType = StoryObj<typeof Footer>;
|
|
4
|
+
declare const meta: Meta<typeof Footer>;
|
|
5
|
+
export declare const UK: StoryType;
|
|
6
|
+
export declare const US: StoryType;
|
|
7
|
+
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Underline: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const PHONE_NUMBER_UK = "0333 014 6683";
|
|
2
|
+
export declare const PHONE_NUMBER_US = "(844) 654-7272";
|
|
3
|
+
export declare const OPENING_HOURS_UK: {
|
|
4
|
+
day: string;
|
|
5
|
+
hours: string;
|
|
6
|
+
}[];
|
|
7
|
+
export declare const OPENING_HOURS_US: {
|
|
8
|
+
day: string;
|
|
9
|
+
hours: string;
|
|
10
|
+
}[];
|
|
11
|
+
export declare const LONDON_ADDRESS: string[];
|
|
12
|
+
export declare const NORTHAMPTON_ADDRESS: string[];
|
|
13
|
+
export declare const BOSTON_ADDRESS: string[];
|
|
14
|
+
export declare const ADDRESSES_UK: string[][];
|
|
15
|
+
export declare const ADDRESSES_US: string[][];
|
|
16
|
+
export declare const LEGAL_LINKS_UK: {
|
|
17
|
+
href: string;
|
|
18
|
+
text: string;
|
|
19
|
+
}[];
|
|
20
|
+
export declare const LEGAL_LINKS_US: {
|
|
21
|
+
href: string;
|
|
22
|
+
text: string;
|
|
23
|
+
}[];
|
|
24
|
+
export declare const SMALL_PRINT_UK: string;
|
|
25
|
+
export declare const SMALL_PRINT_US: string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DOMProps } from "@react-types/shared";
|
|
2
|
+
import { OpeningHoursType } from "../../types";
|
|
3
|
+
export type PhoneNumberType = string;
|
|
4
|
+
export type AddressesType = Array<string[]>;
|
|
5
|
+
export type LegalLinksType = {
|
|
6
|
+
href: string;
|
|
7
|
+
text: string;
|
|
8
|
+
}[];
|
|
9
|
+
export type SmallPrintType = string;
|
|
10
|
+
export type FooterProps = {
|
|
11
|
+
className?: string;
|
|
12
|
+
phoneNumber: PhoneNumberType;
|
|
13
|
+
openingHours: OpeningHoursType;
|
|
14
|
+
addresses: AddressesType;
|
|
15
|
+
legalLinks: LegalLinksType;
|
|
16
|
+
smallPrint: SmallPrintType;
|
|
17
|
+
} & DOMProps;
|
|
18
|
+
export type OpeningHoursProps = Pick<FooterProps, "openingHours">;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { Header } from ".";
|
|
3
|
+
type StoryType = StoryObj<typeof Header>;
|
|
4
|
+
declare const meta: Meta<typeof Header>;
|
|
5
|
+
export declare const UK: StoryType;
|
|
6
|
+
export declare const US: StoryType;
|
|
7
|
+
export declare const WhiteLabel: StoryType;
|
|
8
|
+
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DOMProps } from "@react-types/shared";
|
|
2
|
+
import { OpeningHoursType } from "../../types";
|
|
3
|
+
export interface BaseHeaderProps extends DOMProps {
|
|
4
|
+
/** Custom class name for setting specific CSS */
|
|
5
|
+
className?: string;
|
|
6
|
+
whiteLabel?: boolean;
|
|
7
|
+
url?: string;
|
|
8
|
+
phoneNumber: string;
|
|
9
|
+
openingHours?: OpeningHoursType;
|
|
10
|
+
supportUrl?: string;
|
|
11
|
+
openingHoursLabel?: string;
|
|
12
|
+
flagUrl?: string;
|
|
13
|
+
}
|
|
14
|
+
interface HeaderWithOpeningHoursProps extends BaseHeaderProps {
|
|
15
|
+
openingHours: OpeningHoursType;
|
|
16
|
+
}
|
|
17
|
+
interface HeaderWithSupportUrlProps extends BaseHeaderProps {
|
|
18
|
+
supportUrl: string;
|
|
19
|
+
}
|
|
20
|
+
export type HeaderProps = HeaderWithOpeningHoursProps | HeaderWithSupportUrlProps;
|
|
21
|
+
export interface ContactDetailsProps extends Pick<HeaderProps, "phoneNumber" | "whiteLabel" | "openingHours" | "supportUrl" | "openingHoursLabel" | "flagUrl"> {
|
|
22
|
+
}
|
|
23
|
+
export interface LogoProps extends Pick<HeaderProps, "whiteLabel" | "url"> {
|
|
24
|
+
}
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Ref, RefAttributes } from "react";
|
|
2
|
+
import { DOMProps, ForwardedRefComponent } from "@simplybusiness/mobius";
|
|
3
|
+
export type HelpWidgetElementType = HTMLDivElement;
|
|
4
|
+
export interface HelpWidgetProps extends DOMProps, RefAttributes<HelpWidgetElementType> {
|
|
5
|
+
/** Custom class name for setting specific CSS */
|
|
6
|
+
className?: string;
|
|
7
|
+
elementType?: string | React.ElementType;
|
|
8
|
+
}
|
|
9
|
+
export type HelpWidgetRef = Ref<HelpWidgetElementType>;
|
|
10
|
+
export declare const HelpWidget: ForwardedRefComponent<HelpWidgetProps, HelpWidgetElementType>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./HelpWidget";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Ref, ChangeEvent } from "react";
|
|
2
|
+
import { DOMProps } from "@react-types/shared";
|
|
3
|
+
import type { ForwardedRefComponent } from "@simplybusiness/mobius";
|
|
4
|
+
import { TextFieldElementType, TextFieldProps } from "@simplybusiness/mobius";
|
|
5
|
+
export type MaskedFieldElementType = HTMLInputElement;
|
|
6
|
+
export interface MaskedFieldProps extends TextFieldProps, DOMProps {
|
|
7
|
+
pattern: "ssn" | "fein";
|
|
8
|
+
onChange?: (event: ChangeEvent<MaskedFieldElementType>) => void;
|
|
9
|
+
}
|
|
10
|
+
export type MaskedFieldRef = Ref<MaskedFieldElementType>;
|
|
11
|
+
export declare const MaskedField: ForwardedRefComponent<MaskedFieldProps, TextFieldElementType>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./MaskedField";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./PageFlat";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./PageNested";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { PaymentConfirmation } from ".";
|
|
3
|
+
type StoryType = StoryObj<typeof PaymentConfirmation>;
|
|
4
|
+
declare const meta: Meta<typeof PaymentConfirmation>;
|
|
5
|
+
export declare const Normal: StoryType;
|
|
6
|
+
export default meta;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { PaymentConfirmation } from ".";
|
|
3
|
+
type StoryType = StoryObj<typeof PaymentConfirmation>;
|
|
4
|
+
declare const meta: Meta<typeof PaymentConfirmation>;
|
|
5
|
+
export declare const Normal: StoryType;
|
|
6
|
+
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./PaymentConfirmation";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { QuestionProps } from "../Question";
|
|
2
|
+
export type PercentageTotalsQuestionProps = Omit<QuestionProps, "children" | "description" | "isInvalid" | "errorMessage"> & {
|
|
3
|
+
alertText?: string;
|
|
4
|
+
items: string[];
|
|
5
|
+
};
|
|
6
|
+
declare const PercentageTotalsQuestion: {
|
|
7
|
+
(props: PercentageTotalsQuestionProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
10
|
+
export { PercentageTotalsQuestion };
|
package/dist/types/components/PercentageTotalsQuestion/PercentageTotalsQuestion.hidden-stories.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { PercentageTotalsQuestion } from "./PercentageTotalsQuestion";
|
|
3
|
+
type StoryType = StoryObj<typeof PercentageTotalsQuestion>;
|
|
4
|
+
declare const meta: Meta<typeof PercentageTotalsQuestion>;
|
|
5
|
+
export declare const Normal: StoryType;
|
|
6
|
+
export default meta;
|
package/dist/types/components/PercentageTotalsQuestion/PercentageTotalsQuestion.hiddenstories.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { PercentageTotalsQuestion } from "./PercentageTotalsQuestion";
|
|
3
|
+
type StoryType = StoryObj<typeof PercentageTotalsQuestion>;
|
|
4
|
+
declare const meta: Meta<typeof PercentageTotalsQuestion>;
|
|
5
|
+
export declare const Normal: StoryType;
|
|
6
|
+
export default meta;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { PercentageTotalsQuestion } from "./PercentageTotalsQuestion";
|
|
3
|
+
type StoryType = StoryObj<typeof PercentageTotalsQuestion>;
|
|
4
|
+
declare const meta: Meta<typeof PercentageTotalsQuestion>;
|
|
5
|
+
export declare const Normal: StoryType;
|
|
6
|
+
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./PercentageTotalsQuestion";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Ref, RefAttributes } from "react";
|
|
2
|
+
import { DOMProps, ForwardedRefComponent } from "@simplybusiness/mobius";
|
|
3
|
+
export type PreFooterElementType = HTMLDivElement;
|
|
4
|
+
export interface PreFooterProps extends DOMProps, RefAttributes<PreFooterElementType> {
|
|
5
|
+
/** Custom class name for setting specific CSS */
|
|
6
|
+
className?: string;
|
|
7
|
+
elementType?: string | React.ElementType;
|
|
8
|
+
}
|
|
9
|
+
export type PreFooterRef = Ref<PreFooterElementType>;
|
|
10
|
+
export declare const PreFooter: ForwardedRefComponent<PreFooterProps, PreFooterElementType>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./PreFooter";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type Validation } from "@simplybusiness/mobius";
|
|
2
|
+
import { ReactElement, ReactNode } from "react";
|
|
3
|
+
export interface QuestionProps extends Validation {
|
|
4
|
+
label?: ReactElement | string;
|
|
5
|
+
description?: string | ReactNode;
|
|
6
|
+
errorMessage?: ReactNode;
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
help?: ReactNode;
|
|
9
|
+
className?: string;
|
|
10
|
+
closeHelpOnOutsideClick?: boolean;
|
|
11
|
+
onChange?: (state: boolean) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare function Question(props: QuestionProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { Question } from "./Question";
|
|
3
|
+
type StoryType = StoryObj<typeof Question>;
|
|
4
|
+
declare const meta: Meta<typeof Question>;
|
|
5
|
+
export declare const Normal: StoryType;
|
|
6
|
+
export declare const WithDescription: StoryType;
|
|
7
|
+
export declare const WithRichDescription: StoryType;
|
|
8
|
+
export declare const WithNoInput: StoryType;
|
|
9
|
+
export declare const WithHelpText: StoryType;
|
|
10
|
+
export declare const WithHelpTextOutside: StoryType;
|
|
11
|
+
export declare const WithError: StoryType;
|
|
12
|
+
export declare const WithRichError: StoryType;
|
|
13
|
+
export declare const CompleteExample: StoryType;
|
|
14
|
+
export default meta;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { Question } from "./Question";
|
|
3
|
+
type StoryType = StoryObj<typeof Question>;
|
|
4
|
+
declare const meta: Meta<typeof Question>;
|
|
5
|
+
export declare const Normal: StoryType;
|
|
6
|
+
export declare const WithDescription: StoryType;
|
|
7
|
+
export declare const WithRichDescription: StoryType;
|
|
8
|
+
export declare const WithNoInput: StoryType;
|
|
9
|
+
export declare const WithHelpText: StoryType;
|
|
10
|
+
export declare const WithHelpTextOutside: StoryType;
|
|
11
|
+
export declare const WithError: StoryType;
|
|
12
|
+
export declare const WithRichError: StoryType;
|
|
13
|
+
export declare const CompleteExample: StoryType;
|
|
14
|
+
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Question";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DOMProps } from "@react-types/shared";
|
|
2
|
+
import { ForwardedRefComponent } from "@simplybusiness/mobius";
|
|
3
|
+
import { ReactNode, Ref, RefAttributes } from "react";
|
|
4
|
+
export type QuestionGroupElementType = HTMLDivElement;
|
|
5
|
+
export interface QuestionGroupProps extends DOMProps, RefAttributes<QuestionGroupElementType> {
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
/** Custom class name for setting specific CSS */
|
|
8
|
+
className?: string;
|
|
9
|
+
elementType?: string | React.ElementType;
|
|
10
|
+
label?: string;
|
|
11
|
+
help?: ReactNode;
|
|
12
|
+
onChange?: (state: boolean) => void;
|
|
13
|
+
}
|
|
14
|
+
export type QuestionGroupRef = Ref<QuestionGroupElementType>;
|
|
15
|
+
declare const QuestionGroup: ForwardedRefComponent<QuestionGroupProps, QuestionGroupElementType>;
|
|
16
|
+
export { QuestionGroup };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { QuestionGroup } from "./QuestionGroup";
|
|
3
|
+
type StoryType = StoryObj<typeof QuestionGroup>;
|
|
4
|
+
declare const meta: Meta<typeof QuestionGroup>;
|
|
5
|
+
export declare const Normal: StoryType;
|
|
6
|
+
export default meta;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { QuestionGroup } from "./QuestionGroup";
|
|
3
|
+
type StoryType = StoryObj<typeof QuestionGroup>;
|
|
4
|
+
declare const meta: Meta<typeof QuestionGroup>;
|
|
5
|
+
export declare const Normal: StoryType;
|
|
6
|
+
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./QuestionGroup";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
export interface QuestionHelpProps {
|
|
3
|
+
closedLabel?: string;
|
|
4
|
+
openedLabel?: string;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
onChange?: (state: boolean) => void;
|
|
7
|
+
isDesktop?: boolean;
|
|
8
|
+
closeHelpOnOutsideClick?: boolean;
|
|
9
|
+
isOpen?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function QuestionHelp({ openedLabel, closedLabel, children, onChange, isDesktop, closeHelpOnOutsideClick, isOpen, }: QuestionHelpProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./QuestionHelp";
|