@simplybusiness/services 2.4.5 → 2.4.7
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 +14 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/types/address-lookup/index.test.d.ts +0 -1
- package/dist/types/components/Actions/Actions.d.ts +0 -15
- package/dist/types/components/Actions/Actions.hidden-stories.d.ts +0 -10
- package/dist/types/components/Actions/Actions.stories.d.ts +0 -10
- package/dist/types/components/Actions/Actions.test.d.ts +0 -1
- package/dist/types/components/Actions/LinkOrButton.d.ts +0 -2
- package/dist/types/components/Actions/LinkOrButton.test.d.ts +0 -1
- package/dist/types/components/Actions/index.d.ts +0 -1
- package/dist/types/components/Footer/Address.d.ts +0 -6
- package/dist/types/components/Footer/Addresses.d.ts +0 -5
- package/dist/types/components/Footer/Copyright.d.ts +0 -7
- package/dist/types/components/Footer/Footer.d.ts +0 -2
- package/dist/types/components/Footer/Footer.stories.d.ts +0 -7
- package/dist/types/components/Footer/Footer.test.d.ts +0 -1
- package/dist/types/components/Footer/Legal.d.ts +0 -7
- package/dist/types/components/Footer/LegalLinks.d.ts +0 -5
- package/dist/types/components/Footer/OpeningHours.d.ts +0 -2
- package/dist/types/components/Footer/OpeningHoursEntry.d.ts +0 -2
- package/dist/types/components/Footer/SmallPrint.d.ts +0 -5
- package/dist/types/components/Footer/Support.d.ts +0 -3
- package/dist/types/components/Footer/Title.d.ts +0 -5
- package/dist/types/components/Footer/Underline.d.ts +0 -1
- package/dist/types/components/Footer/constants.d.ts +0 -25
- package/dist/types/components/Footer/index.d.ts +0 -2
- package/dist/types/components/Footer/types.d.ts +0 -18
- package/dist/types/components/Header/ContactDetails.d.ts +0 -2
- package/dist/types/components/Header/Header.d.ts +0 -2
- package/dist/types/components/Header/Header.stories.d.ts +0 -8
- package/dist/types/components/Header/Header.test.d.ts +0 -1
- package/dist/types/components/Header/Logo.d.ts +0 -2
- package/dist/types/components/Header/constants.d.ts +0 -4
- package/dist/types/components/Header/index.d.ts +0 -3
- package/dist/types/components/Header/mockOpeningHoursData.d.ts +0 -4
- package/dist/types/components/Header/types.d.ts +0 -25
- package/dist/types/components/HelpWidget/HelpWidget.d.ts +0 -10
- package/dist/types/components/HelpWidget/HelpWidget.stories.d.ts +0 -6
- package/dist/types/components/HelpWidget/HelpWidget.test.d.ts +0 -1
- package/dist/types/components/HelpWidget/index.d.ts +0 -1
- package/dist/types/components/MaskedField/MaskedField.d.ts +0 -11
- package/dist/types/components/MaskedField/MaskedField.hidden-stories.d.ts +0 -6
- package/dist/types/components/MaskedField/MaskedField.stories.d.ts +0 -6
- package/dist/types/components/MaskedField/MaskedField.test.d.ts +0 -1
- package/dist/types/components/MaskedField/index.d.ts +0 -1
- package/dist/types/components/MaskedField/inputFormatters.d.ts +0 -10
- package/dist/types/components/PageFlat/PageFlat.d.ts +0 -2
- package/dist/types/components/PageFlat/PageFlat.stories.d.ts +0 -6
- package/dist/types/components/PageFlat/index.d.ts +0 -1
- package/dist/types/components/PageNested/PageNested.d.ts +0 -2
- package/dist/types/components/PageNested/PageNested.stories.d.ts +0 -6
- package/dist/types/components/PageNested/index.d.ts +0 -1
- package/dist/types/components/PaymentConfirmation/PaymentConfirmation.d.ts +0 -6
- package/dist/types/components/PaymentConfirmation/PaymentConfirmation.hidden-stories.d.ts +0 -6
- package/dist/types/components/PaymentConfirmation/PaymentConfirmation.stories.d.ts +0 -6
- package/dist/types/components/PaymentConfirmation/PaymentConfirmation.test.d.ts +0 -1
- package/dist/types/components/PaymentConfirmation/index.d.ts +0 -1
- package/dist/types/components/PercentageTotalsQuestion/PercentageItem.d.ts +0 -6
- package/dist/types/components/PercentageTotalsQuestion/PercentageTotalsQuestion.d.ts +0 -10
- package/dist/types/components/PercentageTotalsQuestion/PercentageTotalsQuestion.hidden-stories.d.ts +0 -6
- package/dist/types/components/PercentageTotalsQuestion/PercentageTotalsQuestion.hiddenstories.d.ts +0 -6
- package/dist/types/components/PercentageTotalsQuestion/PercentageTotalsQuestion.stories.d.ts +0 -6
- package/dist/types/components/PercentageTotalsQuestion/PercentageTotalsQuestion.test.d.ts +0 -1
- package/dist/types/components/PercentageTotalsQuestion/index.d.ts +0 -1
- package/dist/types/components/PreFooter/LogoBbbAccreditedBusiness.d.ts +0 -5
- package/dist/types/components/PreFooter/LogoForbesAdvisor.d.ts +0 -5
- package/dist/types/components/PreFooter/PreFooter.d.ts +0 -10
- package/dist/types/components/PreFooter/PreFooter.stories.d.ts +0 -6
- package/dist/types/components/PreFooter/PreFooter.test.d.ts +0 -1
- package/dist/types/components/PreFooter/index.d.ts +0 -1
- package/dist/types/components/Question/Question.d.ts +0 -13
- package/dist/types/components/Question/Question.hidden-stories.d.ts +0 -14
- package/dist/types/components/Question/Question.stories.d.ts +0 -14
- package/dist/types/components/Question/Question.test.d.ts +0 -1
- package/dist/types/components/Question/index.d.ts +0 -1
- package/dist/types/components/QuestionGroup/QuestionGroup.d.ts +0 -16
- package/dist/types/components/QuestionGroup/QuestionGroup.hidden-stories.d.ts +0 -6
- package/dist/types/components/QuestionGroup/QuestionGroup.stories.d.ts +0 -6
- package/dist/types/components/QuestionGroup/QuestionGroup.test.d.ts +0 -1
- package/dist/types/components/QuestionGroup/index.d.ts +0 -1
- package/dist/types/components/QuestionHelp/QuestionHelp.d.ts +0 -11
- package/dist/types/components/QuestionHelp/QuestionHelp.test.d.ts +0 -1
- package/dist/types/components/QuestionHelp/index.d.ts +0 -1
- package/dist/types/components/QuestionHelp/question.d.ts +0 -3
- package/dist/types/components/Section/Section.d.ts +0 -14
- package/dist/types/components/Section/Section.hidden-stories.d.ts +0 -6
- package/dist/types/components/Section/Section.stories.d.ts +0 -6
- package/dist/types/components/Section/Section.test.d.ts +0 -1
- package/dist/types/components/Section/index.d.ts +0 -1
- package/dist/types/components/Steps/StepItem.d.ts +0 -20
- package/dist/types/components/Steps/Steps.d.ts +0 -13
- package/dist/types/components/Steps/Steps.hidden-stories.d.ts +0 -6
- package/dist/types/components/Steps/Steps.stories.d.ts +0 -6
- package/dist/types/components/Steps/Steps.test.d.ts +0 -1
- package/dist/types/components/Steps/index.d.ts +0 -2
- package/dist/types/components/Testimonial/Testimonial.d.ts +0 -13
- package/dist/types/components/Testimonial/Testimonial.hidden-stories.d.ts +0 -6
- package/dist/types/components/Testimonial/Testimonial.stories.d.ts +0 -6
- package/dist/types/components/Testimonial/Testimonial.test.d.ts +0 -1
- package/dist/types/components/Testimonial/index.d.ts +0 -1
- package/dist/types/components/ThankYou/ThankYou.d.ts +0 -3
- package/dist/types/components/ThankYou/ThankYou.stories.d.ts +0 -7
- package/dist/types/components/ThankYou/ThankYou.test.d.ts +0 -1
- package/dist/types/components/ThankYou/ThankYouSidebar.d.ts +0 -1
- package/dist/types/components/ThankYou/ThankYouText.d.ts +0 -2
- package/dist/types/components/ThankYou/ThankYouText.test.d.ts +0 -1
- package/dist/types/components/ThankYou/index.d.ts +0 -2
- package/dist/types/components/ThankYou/types.d.ts +0 -17
- package/dist/types/components/TradeSearch/SearchResults/SearchResults.d.ts +0 -15
- package/dist/types/components/TradeSearch/TradeSearch.d.ts +0 -2
- package/dist/types/components/TradeSearch/TradeSearch.stories.d.ts +0 -6
- package/dist/types/components/TradeSearch/components/Listing/Listing.d.ts +0 -12
- package/dist/types/components/TradeSearch/components/Listing/Listing.test.d.ts +0 -1
- package/dist/types/components/TradeSearch/components/Listing/ListingItem.d.ts +0 -8
- package/dist/types/components/TradeSearch/components/Listing/ListingItem.test.d.ts +0 -1
- package/dist/types/components/TradeSearch/components/Listing/index.d.ts +0 -1
- package/dist/types/components/TradeSearch/components/SearchResults/SearchResults.d.ts +0 -2
- package/dist/types/components/TradeSearch/components/SearchResults/SearchResults.test.d.ts +0 -1
- package/dist/types/components/TradeSearch/components/SearchResults/index.d.ts +0 -1
- package/dist/types/components/TradeSearch/components/TradeContext/TradeContext.d.ts +0 -1
- package/dist/types/components/TradeSearch/components/TradeContext/index.d.ts +0 -1
- package/dist/types/components/TradeSearch/components/index.d.ts +0 -1
- package/dist/types/components/TradeSearch/constants.d.ts +0 -1
- package/dist/types/components/TradeSearch/hooks/index.d.ts +0 -4
- package/dist/types/components/TradeSearch/hooks/useApiEndpoint.d.ts +0 -1
- package/dist/types/components/TradeSearch/hooks/useFetchTrades.d.ts +0 -6
- package/dist/types/components/TradeSearch/hooks/useTradeContext.d.ts +0 -1
- package/dist/types/components/TradeSearch/hooks/useTradeState.d.ts +0 -6
- package/dist/types/components/TradeSearch/index.d.ts +0 -2
- package/dist/types/components/TradeSearch/types.d.ts +0 -65
- package/dist/types/components/TradeSearch/utils/addQueryParam.d.ts +0 -1
- package/dist/types/components/TradeSearch/utils/index.d.ts +0 -1
- package/dist/types/components/TradeSelector/Header/Header.d.ts +0 -9
- package/dist/types/components/TradeSelector/Header/index.d.ts +0 -1
- package/dist/types/components/TradeSelector/Listing/Listing.d.ts +0 -12
- package/dist/types/components/TradeSelector/Listing/Listing.test.d.ts +0 -1
- package/dist/types/components/TradeSelector/Listing/ListingItem.d.ts +0 -8
- package/dist/types/components/TradeSelector/Listing/ListingItem.test.d.ts +0 -1
- package/dist/types/components/TradeSelector/Listing/index.d.ts +0 -1
- package/dist/types/components/TradeSelector/SearchResults/SearchResults.d.ts +0 -15
- package/dist/types/components/TradeSelector/SearchResults/SearchResults.test.d.ts +0 -1
- package/dist/types/components/TradeSelector/SearchResults/index.d.ts +0 -1
- package/dist/types/components/TradeSelector/TradeInput/TradeInput.d.ts +0 -15
- package/dist/types/components/TradeSelector/TradeInput/TradeInput.test.d.ts +0 -1
- package/dist/types/components/TradeSelector/TradeInput/index.d.ts +0 -1
- package/dist/types/components/TradeSelector/TradeSelector.d.ts +0 -5
- package/dist/types/components/TradeSelector/TradeSelector.stories.d.ts +0 -10
- package/dist/types/components/TradeSelector/TradeSelector.test.d.ts +0 -1
- package/dist/types/components/TradeSelector/config/development.d.ts +0 -7
- package/dist/types/components/TradeSelector/config/index.d.ts +0 -18
- package/dist/types/components/TradeSelector/config/production.d.ts +0 -7
- package/dist/types/components/TradeSelector/config/shared.d.ts +0 -17
- package/dist/types/components/TradeSelector/config/testing.d.ts +0 -7
- package/dist/types/components/TradeSelector/index.d.ts +0 -2
- package/dist/types/components/TradeSelector/jestHTMLDialogPolyfill.d.ts +0 -1
- package/dist/types/components/TradeSelector/mockApiResults.d.ts +0 -13
- package/dist/types/components/TradeSelector/types.d.ts +0 -51
- package/dist/types/components/TradeSelector/useFetchTrades/index.d.ts +0 -1
- package/dist/types/components/TradeSelector/useFetchTrades/useFetchTrades.d.ts +0 -7
- package/dist/types/components/TradeSelector/useTradeSelectorUrl/index.d.ts +0 -1
- package/dist/types/components/TradeSelector/useTradeSelectorUrl/useTradeSelectorUrl.d.ts +0 -6
- package/dist/types/components/TradeSelector/useTradeSelectorUrl/useTradeSelectorUrl.test.d.ts +0 -1
- package/dist/types/components/TrustSection/TrustSection.d.ts +0 -10
- package/dist/types/components/TrustSection/TrustSection.stories.d.ts +0 -6
- package/dist/types/components/TrustSection/TrustSection.test.d.ts +0 -1
- package/dist/types/components/TrustSection/index.d.ts +0 -1
- package/dist/types/data/page-contract-flat.d.ts +0 -17
- package/dist/types/data/page-contract-nested.d.ts +0 -17
- package/dist/types/data/page-contract-v1.d.ts +0 -2
- package/dist/types/data/page-contract-v2.d.ts +0 -2
- package/dist/types/data/scripts-mock.d.ts +0 -44
- package/dist/types/data/thank-you-page-mock.d.ts +0 -44
- package/dist/types/hooks/useOnClickOutside/index.d.ts +0 -1
- package/dist/types/hooks/useOnClickOutside/useOnClickOutside.d.ts +0 -2
- package/dist/types/hooks/useWindowEvent/index.d.ts +0 -1
- package/dist/types/hooks/useWindowEvent/useWindowEvent.d.ts +0 -1
- package/dist/types/pages/GeneralPage/GeneralPage.d.ts +0 -2
- package/dist/types/pages/GeneralPage/GeneralPage.stories.d.ts +0 -6
- package/dist/types/pages/GeneralPage/GeneralPage.test.d.ts +0 -1
- package/dist/types/pages/GeneralPage/Main.d.ts +0 -5
- package/dist/types/pages/GeneralPage/getMainComponents.d.ts +0 -6
- package/dist/types/pages/GeneralPage/index.d.ts +0 -1
- package/dist/types/pages/GeneralPage/mainComponents.d.ts +0 -2
- package/dist/types/pages/GeneralPage/types.d.ts +0 -23
- package/dist/types/pages/Page/Page.d.ts +0 -2
- package/dist/types/pages/Page/index.d.ts +0 -1
- package/dist/types/pages/Page/types.d.ts +0 -29
- package/dist/types/pages/Simple/Main.d.ts +0 -5
- package/dist/types/pages/Simple/Simple.d.ts +0 -2
- package/dist/types/pages/Simple/Simple.stories.d.ts +0 -6
- package/dist/types/pages/Simple/index.d.ts +0 -1
- package/dist/types/pages/Simple/useMainComponents.d.ts +0 -3
- package/dist/types/pages/ThankYouPage/ThankYouPage.d.ts +0 -2
- package/dist/types/pages/ThankYouPage/ThankYouPage.stories.d.ts +0 -6
- package/dist/types/pages/ThankYouPage/ThankYouPage.test.d.ts +0 -1
- package/dist/types/pages/ThankYouPage/index.d.ts +0 -1
- package/dist/types/pages/ThankYouPage/types.d.ts +0 -10
- package/dist/types/services/airbrake/index.d.ts +0 -2
- package/dist/types/services/index.d.ts +0 -2
- package/dist/types/services/snowplow/Snowplow.d.ts +0 -29
- package/dist/types/services/snowplow/SnowplowContext.d.ts +0 -14
- package/dist/types/services/snowplow/SnowplowContext.test.d.ts +0 -1
- package/dist/types/services/snowplow/contexts.d.ts +0 -3
- package/dist/types/services/snowplow/contexts.test.d.ts +0 -1
- package/dist/types/services/snowplow/event-definitions/base.d.ts +0 -18
- package/dist/types/services/snowplow/event-definitions/index.d.ts +0 -2
- package/dist/types/services/snowplow/event-definitions/qcp.d.ts +0 -18
- package/dist/types/services/snowplow/event-definitions.d.ts +0 -18
- package/dist/types/services/snowplow/getSnowplowConfig.d.ts +0 -2
- package/dist/types/services/snowplow/index.d.ts +0 -6
- package/dist/types/services/snowplow/index.test.d.ts +0 -1
- package/dist/types/services/snowplow/types.d.ts +0 -37
- package/dist/types/snowplow/SnowplowContext.test.d.ts +0 -1
- package/dist/types/snowplow/contexts.test.d.ts +0 -1
- package/dist/types/snowplow/event-definitions/events.d.ts +0 -20
- package/dist/types/snowplow/event-definitions/pcp.d.ts +0 -20
- package/dist/types/snowplow/event-definitions/progressbar.d.ts +0 -2
- package/dist/types/snowplow/event-definitions/questionnaire/questionnaire.test.d.ts +0 -1
- package/dist/types/snowplow/event-definitions/questionnaire.d.ts +0 -2
- package/dist/types/snowplow/event-definitions/questionnaire.test.d.ts +0 -1
- package/dist/types/snowplow/event-definitions/redaction.d.ts +0 -5
- package/dist/types/snowplow/event-definitions/shared.d.ts +0 -2
- package/dist/types/snowplow/event-definitions/shoppingCart.d.ts +0 -2
- package/dist/types/snowplow/event-definitions/thankYou.d.ts +0 -2
- package/dist/types/snowplow/events.d.ts +0 -20
- package/dist/types/snowplow/index.test.d.ts +0 -1
- package/dist/types/src/address-lookup/index.d.ts +0 -15
- package/dist/types/src/address-lookup/types.d.ts +0 -44
- package/dist/types/src/airbrake/index.d.ts +0 -9
- package/dist/types/src/index.d.ts +0 -3
- package/dist/types/src/mocks/eventDefinitions.d.ts +0 -61
- package/dist/types/src/mocks/scripts-mock.d.ts +0 -44
- package/dist/types/src/snowplow/Snowplow.d.ts +0 -34
- package/dist/types/src/snowplow/SnowplowContext.d.ts +0 -14
- package/dist/types/src/snowplow/constants.d.ts +0 -1
- package/dist/types/src/snowplow/contexts.d.ts +0 -4
- package/dist/types/src/snowplow/event-definitions/base.d.ts +0 -22
- package/dist/types/src/snowplow/event-definitions/coverage-selection.d.ts +0 -2
- package/dist/types/src/snowplow/event-definitions/index.d.ts +0 -8
- package/dist/types/src/snowplow/event-definitions/intervention.d.ts +0 -12
- package/dist/types/src/snowplow/event-definitions/personalised_cover.d.ts +0 -22
- package/dist/types/src/snowplow/event-definitions/qcp.d.ts +0 -2
- package/dist/types/src/snowplow/event-definitions/questionnaire/questionnaire.d.ts +0 -2
- package/dist/types/src/snowplow/event-definitions/questionnaire/redaction.d.ts +0 -5
- package/dist/types/src/snowplow/event-definitions/referral.d.ts +0 -2
- package/dist/types/src/snowplow/event-definitions/test-utils.d.ts +0 -2
- package/dist/types/src/snowplow/getSnowplowConfig.d.ts +0 -2
- package/dist/types/src/snowplow/index.d.ts +0 -6
- package/dist/types/src/snowplow/types.d.ts +0 -54
- package/dist/types/src/utils/index.d.ts +0 -2
- package/dist/types/src/utils/isObject.d.ts +0 -1
- package/dist/types/src/utils/testUtils.d.ts +0 -7
- package/dist/types/src/utils/text.d.ts +0 -3
- package/dist/types/tracking-helper/TrackingHelper.d.ts +0 -15
- package/dist/types/tracking-helper/index.d.ts +0 -15
- package/dist/types/types.d.ts +0 -5
- package/dist/types/utils/StoryContainer.d.ts +0 -1
- package/dist/types/utils/TrackingHelper.d.ts +0 -15
- package/dist/types/utils/TrustpilotProvider.d.ts +0 -4
- package/dist/types/utils/env.d.ts +0 -5
- package/dist/types/utils/env.test.d.ts +0 -1
- package/dist/types/utils/excludeControls.d.ts +0 -1
- package/dist/types/utils/excludeControls.test.d.ts +0 -1
- package/dist/types/utils/isObject.test.d.ts +0 -1
- package/dist/types/utils/spaceDelimitedList.d.ts +0 -1
- package/dist/types/utils/spaceDelimitedList.test.d.ts +0 -1
- package/dist/types/utils/text.test.d.ts +0 -1
- package/dist/types/vitest.config.d.ts +0 -2
|
@@ -1,11 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./QuestionHelp";
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Ref, RefAttributes, ReactNode } from "react";
|
|
2
|
-
import { DOMProps } from "@react-types/shared";
|
|
3
|
-
import { ForwardedRefComponent } from "@simplybusiness/mobius";
|
|
4
|
-
export type SectionElementType = HTMLDivElement;
|
|
5
|
-
export interface SectionProps extends DOMProps, RefAttributes<SectionElementType> {
|
|
6
|
-
children?: ReactNode;
|
|
7
|
-
/** Custom class name for setting specific CSS */
|
|
8
|
-
className?: string;
|
|
9
|
-
elementType?: string | React.ElementType;
|
|
10
|
-
title?: string;
|
|
11
|
-
}
|
|
12
|
-
export type SectionRef = Ref<SectionElementType>;
|
|
13
|
-
declare const Section: ForwardedRefComponent<SectionProps, SectionElementType>;
|
|
14
|
-
export { Section };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Section";
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Ref, RefAttributes, ReactNode } from "react";
|
|
2
|
-
import { DOMProps } from "@react-types/shared";
|
|
3
|
-
import { ForwardedRefComponent } from "@simplybusiness/mobius";
|
|
4
|
-
export type StepItemElementType = HTMLLIElement;
|
|
5
|
-
export interface StepItemProps extends DOMProps, RefAttributes<StepItemElementType> {
|
|
6
|
-
children?: ReactNode;
|
|
7
|
-
/** Custom class name for setting specific CSS */
|
|
8
|
-
className?: string;
|
|
9
|
-
elementType?: React.ElementType;
|
|
10
|
-
linkElementType?: React.ElementType;
|
|
11
|
-
name: string;
|
|
12
|
-
index?: number;
|
|
13
|
-
active?: boolean;
|
|
14
|
-
url?: string;
|
|
15
|
-
completed?: boolean;
|
|
16
|
-
to?: unknown;
|
|
17
|
-
}
|
|
18
|
-
export type StepItemRef = Ref<StepItemElementType>;
|
|
19
|
-
declare const StepItem: ForwardedRefComponent<StepItemProps, StepItemElementType>;
|
|
20
|
-
export { StepItem };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Ref, RefAttributes, ReactNode } from "react";
|
|
2
|
-
import { DOMProps } from "@react-types/shared";
|
|
3
|
-
import { ForwardedRefComponent } from "@simplybusiness/mobius";
|
|
4
|
-
export type StepsElementType = HTMLOListElement;
|
|
5
|
-
export interface StepsProps extends DOMProps, RefAttributes<StepsElementType> {
|
|
6
|
-
children?: ReactNode;
|
|
7
|
-
/** Custom class name for setting specific CSS */
|
|
8
|
-
className?: string;
|
|
9
|
-
elementType?: React.ElementType;
|
|
10
|
-
}
|
|
11
|
-
export type StepsRef = Ref<StepsElementType>;
|
|
12
|
-
declare const Steps: ForwardedRefComponent<StepsProps, StepsElementType>;
|
|
13
|
-
export { Steps };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Ref, RefAttributes, ReactNode } from "react";
|
|
2
|
-
import { DOMProps } from "@react-types/shared";
|
|
3
|
-
import { ForwardedRefComponent } from "@simplybusiness/mobius";
|
|
4
|
-
export type TestimonialElementType = HTMLElement;
|
|
5
|
-
export interface TestimonialProps extends DOMProps, RefAttributes<TestimonialElementType> {
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
/** Custom class name for setting specific CSS */
|
|
8
|
-
className?: string;
|
|
9
|
-
author: string;
|
|
10
|
-
}
|
|
11
|
-
export type TestimonialRef = Ref<TestimonialElementType>;
|
|
12
|
-
declare const Testimonial: ForwardedRefComponent<TestimonialProps, TestimonialElementType>;
|
|
13
|
-
export { Testimonial };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Testimonial";
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { ThankYou } from "./ThankYou";
|
|
3
|
-
type StoryType = StoryObj<typeof ThankYou>;
|
|
4
|
-
declare const meta: Meta<typeof ThankYou>;
|
|
5
|
-
export declare const Normal: StoryType;
|
|
6
|
-
export declare const Partner: StoryType;
|
|
7
|
-
export default meta;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ThankYouSidebar: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { DOMProps } from "@react-types/shared";
|
|
2
|
-
import { Ref, RefAttributes } from "react";
|
|
3
|
-
export type ThankYouRef = Ref<ThankYouElementType>;
|
|
4
|
-
export type ThankYouElementType = HTMLDivElement;
|
|
5
|
-
export interface PhoneNumberProps {
|
|
6
|
-
contactYou?: string;
|
|
7
|
-
contactUs: string;
|
|
8
|
-
}
|
|
9
|
-
export interface ThankYouProps extends DOMProps, RefAttributes<ThankYouElementType> {
|
|
10
|
-
className?: string;
|
|
11
|
-
firstName?: string;
|
|
12
|
-
showTrustSection?: boolean;
|
|
13
|
-
referenceNumber?: string;
|
|
14
|
-
phoneNumbers: PhoneNumberProps;
|
|
15
|
-
sbDirect: boolean;
|
|
16
|
-
}
|
|
17
|
-
export type ThankYouTextProps = Pick<ThankYouProps, "firstName" | "referenceNumber" | "phoneNumbers" | "sbDirect">;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { RefObject } from "react";
|
|
2
|
-
import type { LabelProps, TradeProps } from "../../types";
|
|
3
|
-
export type SearchResultsProps = {
|
|
4
|
-
isOpen: boolean;
|
|
5
|
-
inputRef: RefObject<HTMLInputElement>;
|
|
6
|
-
results: TradeProps[] | null;
|
|
7
|
-
fallbackUrl?: string | undefined;
|
|
8
|
-
labels: LabelProps;
|
|
9
|
-
className?: string;
|
|
10
|
-
isLoading: boolean;
|
|
11
|
-
describedBy?: string;
|
|
12
|
-
onClick: (trade: TradeProps) => void;
|
|
13
|
-
onClose: () => void;
|
|
14
|
-
};
|
|
15
|
-
export declare const SearchResults: (props: SearchResultsProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { MutableRefObject } from "react";
|
|
2
|
-
import { TradeProps } from "../../types";
|
|
3
|
-
export type ListingProps = {
|
|
4
|
-
title: string;
|
|
5
|
-
trades: TradeProps[];
|
|
6
|
-
resultRefs?: MutableRefObject<HTMLButtonElement[]>;
|
|
7
|
-
refCountStart?: number;
|
|
8
|
-
className?: string;
|
|
9
|
-
onClick: (trade: TradeProps) => void;
|
|
10
|
-
selectedId: number;
|
|
11
|
-
};
|
|
12
|
-
export declare const Listing: (props: ListingProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { TradeProps } from "../../types";
|
|
2
|
-
export type ListingItemElementType = HTMLButtonElement;
|
|
3
|
-
export type ListingItemProps = {
|
|
4
|
-
trade: TradeProps;
|
|
5
|
-
onClick: (trade: TradeProps) => void;
|
|
6
|
-
selected: boolean;
|
|
7
|
-
};
|
|
8
|
-
export declare const ListingItem: import("react").ForwardRefExoticComponent<ListingItemProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Listing";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./SearchResults";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const TradeContext: import("react").Context<import("../../types").TradeSearchConfig>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./TradeContext";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./SearchResults";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ERROR_MESSAGE_SERVICE_UNAVAILABLE = "The service is currently unavailable. Please try again later";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useApiEndpoint: (userInput: string) => URL;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useTradeContext: () => import("..").TradeSearchConfig;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { DOMProps } from "@react-types/shared";
|
|
2
|
-
import { Ref, RefAttributes, RefObject } from "react";
|
|
3
|
-
export type TradeSearchDialogRef = HTMLDialogElement;
|
|
4
|
-
export type TradeSearchInputRef = HTMLInputElement;
|
|
5
|
-
export type TradeSearchScope = "all_verticals" | "current_and_supported_verticals" | "current_vertical" | "except_current_vertical" | "usa_contractors" | "commercial_landlord_business_types" | "contractors_combined" | "supported_for_current_vertical" | "commercial_combined_manufacturer" | "commercial_combined_wholesaler" | "commercial_combined_all";
|
|
6
|
-
export type TradeSearchVertical = string;
|
|
7
|
-
export type TradeSearchSite = string;
|
|
8
|
-
export interface TradeSearchUrls {
|
|
9
|
-
base: string;
|
|
10
|
-
fallback: string;
|
|
11
|
-
}
|
|
12
|
-
export interface TradeSearchLabels {
|
|
13
|
-
input: string;
|
|
14
|
-
suggested: string;
|
|
15
|
-
exact: string;
|
|
16
|
-
noResults: string;
|
|
17
|
-
loading: string;
|
|
18
|
-
description: string;
|
|
19
|
-
placeholder: string;
|
|
20
|
-
}
|
|
21
|
-
export interface TradeSearchConfig {
|
|
22
|
-
site: TradeSearchSite;
|
|
23
|
-
vertical: TradeSearchVertical;
|
|
24
|
-
searchScope: TradeSearchScope;
|
|
25
|
-
urls: TradeSearchUrls;
|
|
26
|
-
labels: TradeSearchLabels;
|
|
27
|
-
debounceInMs: number;
|
|
28
|
-
minInput: number;
|
|
29
|
-
}
|
|
30
|
-
export interface useApiEndpointProps {
|
|
31
|
-
baseUrl: TradeSearchUrls["base"];
|
|
32
|
-
userInput: string;
|
|
33
|
-
vertical: TradeSearchVertical;
|
|
34
|
-
searchScope: TradeSearchScope;
|
|
35
|
-
site: TradeSearchSite;
|
|
36
|
-
}
|
|
37
|
-
export type TradeProps = {
|
|
38
|
-
value: string;
|
|
39
|
-
vertical: string;
|
|
40
|
-
supported_verticals: string[] | null;
|
|
41
|
-
label: string;
|
|
42
|
-
type: string;
|
|
43
|
-
trade_detail: string | null;
|
|
44
|
-
trade_type: string | null;
|
|
45
|
-
blocked: boolean;
|
|
46
|
-
};
|
|
47
|
-
export type TradeSearchElementType = HTMLDivElement;
|
|
48
|
-
export interface TradeSearchProps extends DOMProps, RefAttributes<TradeSearchElementType> {
|
|
49
|
-
className?: string;
|
|
50
|
-
onTradeSelected?: (trade: TradeProps) => void;
|
|
51
|
-
config: TradeSearchConfig;
|
|
52
|
-
"aria-describedby"?: string;
|
|
53
|
-
initialInput?: string;
|
|
54
|
-
}
|
|
55
|
-
export type TradeSearchRef = Ref<TradeSearchElementType>;
|
|
56
|
-
export type TradeContextProps = TradeSearchConfig;
|
|
57
|
-
export type TradeResultsDataProps = TradeProps[] | null;
|
|
58
|
-
export interface TradeSearchResultsProps {
|
|
59
|
-
inputRef: RefObject<TradeSearchInputRef>;
|
|
60
|
-
data: TradeResultsDataProps;
|
|
61
|
-
isLoading: boolean;
|
|
62
|
-
ariaDescribedBy: string | undefined;
|
|
63
|
-
onClick: (trade: TradeProps) => void;
|
|
64
|
-
onClose: () => void;
|
|
65
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const addQueryParam: (url: URL, key: string, value?: string) => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "../hooks/useApiEndpoint";
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FocusableElement } from "@react-types/shared";
|
|
2
|
-
import { DOMAttributes } from "react";
|
|
3
|
-
import type { LabelProps } from "../types";
|
|
4
|
-
export type HeaderProps = {
|
|
5
|
-
isOpen: boolean;
|
|
6
|
-
labelProps: DOMAttributes<FocusableElement> | React.LabelHTMLAttributes<HTMLLabelElement>;
|
|
7
|
-
labels: LabelProps;
|
|
8
|
-
};
|
|
9
|
-
export declare const Header: (props: HeaderProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Header";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { MutableRefObject } from "react";
|
|
2
|
-
import { TradeProps } from "../types";
|
|
3
|
-
export type ListingProps = {
|
|
4
|
-
title: string;
|
|
5
|
-
trades: TradeProps[];
|
|
6
|
-
resultRefs?: MutableRefObject<HTMLButtonElement[]>;
|
|
7
|
-
refCountStart?: number;
|
|
8
|
-
className?: string;
|
|
9
|
-
onClick: (trade: TradeProps) => void;
|
|
10
|
-
selectedId: number;
|
|
11
|
-
};
|
|
12
|
-
export declare const Listing: (props: ListingProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { TradeProps } from "../types";
|
|
2
|
-
export type ListingItemElementType = HTMLButtonElement;
|
|
3
|
-
export type ListingItemProps = {
|
|
4
|
-
trade: TradeProps;
|
|
5
|
-
onClick: (trade: TradeProps) => void;
|
|
6
|
-
selected: boolean;
|
|
7
|
-
};
|
|
8
|
-
export declare const ListingItem: import("react").ForwardRefExoticComponent<ListingItemProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Listing";
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { RefObject } from "react";
|
|
2
|
-
import type { LabelProps, TradeProps } from "../types";
|
|
3
|
-
export type SearchResultsProps = {
|
|
4
|
-
isOpen: boolean;
|
|
5
|
-
inputRef: RefObject<HTMLInputElement>;
|
|
6
|
-
results: TradeProps[] | null;
|
|
7
|
-
fallbackUrl?: string | undefined;
|
|
8
|
-
labels: LabelProps;
|
|
9
|
-
className?: string;
|
|
10
|
-
isLoading: boolean;
|
|
11
|
-
describedBy?: string;
|
|
12
|
-
onClick: (trade: TradeProps) => void;
|
|
13
|
-
onClose: () => void;
|
|
14
|
-
};
|
|
15
|
-
export declare const SearchResults: (props: SearchResultsProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./SearchResults";
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { UseLabelProps } from "@simplybusiness/mobius";
|
|
2
|
-
import { ChangeEvent, MouseEvent, RefObject } from "react";
|
|
3
|
-
export type TradeInputProps = {
|
|
4
|
-
onChange: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
5
|
-
inputRef: RefObject<HTMLInputElement>;
|
|
6
|
-
inputProps?: UseLabelProps;
|
|
7
|
-
value: string;
|
|
8
|
-
className?: string;
|
|
9
|
-
label?: string;
|
|
10
|
-
placeholder: string;
|
|
11
|
-
initialTrade?: string;
|
|
12
|
-
onEdit: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
13
|
-
isEditable: boolean;
|
|
14
|
-
};
|
|
15
|
-
export declare const TradeInput: (props: TradeInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./TradeInput";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ForwardedRefComponent } from "@simplybusiness/mobius";
|
|
2
|
-
import { TradeSelectorElementType, TradeSelectorProps } from "./types";
|
|
3
|
-
export declare const ERROR_MESSAGE_SERVICE_UNAVAILABLE = "The service is currently unavailable. Please try again later";
|
|
4
|
-
declare const TradeSelector: ForwardedRefComponent<TradeSelectorProps, TradeSelectorElementType>;
|
|
5
|
-
export { TradeSelector };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { TradeSelector } from ".";
|
|
3
|
-
type StoryType = StoryObj<typeof TradeSelector>;
|
|
4
|
-
declare const meta: Meta<typeof TradeSelector>;
|
|
5
|
-
export declare const Normal: StoryType;
|
|
6
|
-
export declare const WithoutLabel: StoryType;
|
|
7
|
-
export declare const WithoutAllOccupationsLink: StoryType;
|
|
8
|
-
export declare const WithTrade: StoryType;
|
|
9
|
-
export declare const WithSearchScope: StoryType;
|
|
10
|
-
export default meta;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
declare const getConfig: () => {
|
|
2
|
-
defaultLabels: {
|
|
3
|
-
input: string;
|
|
4
|
-
description: string;
|
|
5
|
-
exact: string;
|
|
6
|
-
placeholder: string;
|
|
7
|
-
suggested: string;
|
|
8
|
-
noResults: string;
|
|
9
|
-
loading: string;
|
|
10
|
-
};
|
|
11
|
-
appId: string;
|
|
12
|
-
site: string;
|
|
13
|
-
baseUrl: string;
|
|
14
|
-
redirectUrl: string;
|
|
15
|
-
useTracking: boolean;
|
|
16
|
-
env: string | undefined;
|
|
17
|
-
};
|
|
18
|
-
export { getConfig };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file contains configuation that remains
|
|
3
|
-
* consistent across all environments
|
|
4
|
-
*/
|
|
5
|
-
declare const shared: {
|
|
6
|
-
appId: string;
|
|
7
|
-
defaultLabels: {
|
|
8
|
-
input: string;
|
|
9
|
-
description: string;
|
|
10
|
-
exact: string;
|
|
11
|
-
placeholder: string;
|
|
12
|
-
suggested: string;
|
|
13
|
-
noResults: string;
|
|
14
|
-
loading: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export { shared };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const jestHTMLDialogPolyfill: () => void;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TradeProps } from ".";
|
|
2
|
-
export declare const mockTrade: {
|
|
3
|
-
blocked: boolean;
|
|
4
|
-
label: string;
|
|
5
|
-
supported_verticals: null;
|
|
6
|
-
trade_detail: null;
|
|
7
|
-
trade_type: null;
|
|
8
|
-
type: string;
|
|
9
|
-
value: string;
|
|
10
|
-
vertical: string;
|
|
11
|
-
};
|
|
12
|
-
export declare const exactResults: TradeProps[];
|
|
13
|
-
export declare const suggestedResults: TradeProps[];
|