@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.
Files changed (269) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/tsconfig.build.tsbuildinfo +1 -1
  3. package/package.json +3 -3
  4. package/dist/types/address-lookup/index.test.d.ts +0 -1
  5. package/dist/types/components/Actions/Actions.d.ts +0 -15
  6. package/dist/types/components/Actions/Actions.hidden-stories.d.ts +0 -10
  7. package/dist/types/components/Actions/Actions.stories.d.ts +0 -10
  8. package/dist/types/components/Actions/Actions.test.d.ts +0 -1
  9. package/dist/types/components/Actions/LinkOrButton.d.ts +0 -2
  10. package/dist/types/components/Actions/LinkOrButton.test.d.ts +0 -1
  11. package/dist/types/components/Actions/index.d.ts +0 -1
  12. package/dist/types/components/Footer/Address.d.ts +0 -6
  13. package/dist/types/components/Footer/Addresses.d.ts +0 -5
  14. package/dist/types/components/Footer/Copyright.d.ts +0 -7
  15. package/dist/types/components/Footer/Footer.d.ts +0 -2
  16. package/dist/types/components/Footer/Footer.stories.d.ts +0 -7
  17. package/dist/types/components/Footer/Footer.test.d.ts +0 -1
  18. package/dist/types/components/Footer/Legal.d.ts +0 -7
  19. package/dist/types/components/Footer/LegalLinks.d.ts +0 -5
  20. package/dist/types/components/Footer/OpeningHours.d.ts +0 -2
  21. package/dist/types/components/Footer/OpeningHoursEntry.d.ts +0 -2
  22. package/dist/types/components/Footer/SmallPrint.d.ts +0 -5
  23. package/dist/types/components/Footer/Support.d.ts +0 -3
  24. package/dist/types/components/Footer/Title.d.ts +0 -5
  25. package/dist/types/components/Footer/Underline.d.ts +0 -1
  26. package/dist/types/components/Footer/constants.d.ts +0 -25
  27. package/dist/types/components/Footer/index.d.ts +0 -2
  28. package/dist/types/components/Footer/types.d.ts +0 -18
  29. package/dist/types/components/Header/ContactDetails.d.ts +0 -2
  30. package/dist/types/components/Header/Header.d.ts +0 -2
  31. package/dist/types/components/Header/Header.stories.d.ts +0 -8
  32. package/dist/types/components/Header/Header.test.d.ts +0 -1
  33. package/dist/types/components/Header/Logo.d.ts +0 -2
  34. package/dist/types/components/Header/constants.d.ts +0 -4
  35. package/dist/types/components/Header/index.d.ts +0 -3
  36. package/dist/types/components/Header/mockOpeningHoursData.d.ts +0 -4
  37. package/dist/types/components/Header/types.d.ts +0 -25
  38. package/dist/types/components/HelpWidget/HelpWidget.d.ts +0 -10
  39. package/dist/types/components/HelpWidget/HelpWidget.stories.d.ts +0 -6
  40. package/dist/types/components/HelpWidget/HelpWidget.test.d.ts +0 -1
  41. package/dist/types/components/HelpWidget/index.d.ts +0 -1
  42. package/dist/types/components/MaskedField/MaskedField.d.ts +0 -11
  43. package/dist/types/components/MaskedField/MaskedField.hidden-stories.d.ts +0 -6
  44. package/dist/types/components/MaskedField/MaskedField.stories.d.ts +0 -6
  45. package/dist/types/components/MaskedField/MaskedField.test.d.ts +0 -1
  46. package/dist/types/components/MaskedField/index.d.ts +0 -1
  47. package/dist/types/components/MaskedField/inputFormatters.d.ts +0 -10
  48. package/dist/types/components/PageFlat/PageFlat.d.ts +0 -2
  49. package/dist/types/components/PageFlat/PageFlat.stories.d.ts +0 -6
  50. package/dist/types/components/PageFlat/index.d.ts +0 -1
  51. package/dist/types/components/PageNested/PageNested.d.ts +0 -2
  52. package/dist/types/components/PageNested/PageNested.stories.d.ts +0 -6
  53. package/dist/types/components/PageNested/index.d.ts +0 -1
  54. package/dist/types/components/PaymentConfirmation/PaymentConfirmation.d.ts +0 -6
  55. package/dist/types/components/PaymentConfirmation/PaymentConfirmation.hidden-stories.d.ts +0 -6
  56. package/dist/types/components/PaymentConfirmation/PaymentConfirmation.stories.d.ts +0 -6
  57. package/dist/types/components/PaymentConfirmation/PaymentConfirmation.test.d.ts +0 -1
  58. package/dist/types/components/PaymentConfirmation/index.d.ts +0 -1
  59. package/dist/types/components/PercentageTotalsQuestion/PercentageItem.d.ts +0 -6
  60. package/dist/types/components/PercentageTotalsQuestion/PercentageTotalsQuestion.d.ts +0 -10
  61. package/dist/types/components/PercentageTotalsQuestion/PercentageTotalsQuestion.hidden-stories.d.ts +0 -6
  62. package/dist/types/components/PercentageTotalsQuestion/PercentageTotalsQuestion.hiddenstories.d.ts +0 -6
  63. package/dist/types/components/PercentageTotalsQuestion/PercentageTotalsQuestion.stories.d.ts +0 -6
  64. package/dist/types/components/PercentageTotalsQuestion/PercentageTotalsQuestion.test.d.ts +0 -1
  65. package/dist/types/components/PercentageTotalsQuestion/index.d.ts +0 -1
  66. package/dist/types/components/PreFooter/LogoBbbAccreditedBusiness.d.ts +0 -5
  67. package/dist/types/components/PreFooter/LogoForbesAdvisor.d.ts +0 -5
  68. package/dist/types/components/PreFooter/PreFooter.d.ts +0 -10
  69. package/dist/types/components/PreFooter/PreFooter.stories.d.ts +0 -6
  70. package/dist/types/components/PreFooter/PreFooter.test.d.ts +0 -1
  71. package/dist/types/components/PreFooter/index.d.ts +0 -1
  72. package/dist/types/components/Question/Question.d.ts +0 -13
  73. package/dist/types/components/Question/Question.hidden-stories.d.ts +0 -14
  74. package/dist/types/components/Question/Question.stories.d.ts +0 -14
  75. package/dist/types/components/Question/Question.test.d.ts +0 -1
  76. package/dist/types/components/Question/index.d.ts +0 -1
  77. package/dist/types/components/QuestionGroup/QuestionGroup.d.ts +0 -16
  78. package/dist/types/components/QuestionGroup/QuestionGroup.hidden-stories.d.ts +0 -6
  79. package/dist/types/components/QuestionGroup/QuestionGroup.stories.d.ts +0 -6
  80. package/dist/types/components/QuestionGroup/QuestionGroup.test.d.ts +0 -1
  81. package/dist/types/components/QuestionGroup/index.d.ts +0 -1
  82. package/dist/types/components/QuestionHelp/QuestionHelp.d.ts +0 -11
  83. package/dist/types/components/QuestionHelp/QuestionHelp.test.d.ts +0 -1
  84. package/dist/types/components/QuestionHelp/index.d.ts +0 -1
  85. package/dist/types/components/QuestionHelp/question.d.ts +0 -3
  86. package/dist/types/components/Section/Section.d.ts +0 -14
  87. package/dist/types/components/Section/Section.hidden-stories.d.ts +0 -6
  88. package/dist/types/components/Section/Section.stories.d.ts +0 -6
  89. package/dist/types/components/Section/Section.test.d.ts +0 -1
  90. package/dist/types/components/Section/index.d.ts +0 -1
  91. package/dist/types/components/Steps/StepItem.d.ts +0 -20
  92. package/dist/types/components/Steps/Steps.d.ts +0 -13
  93. package/dist/types/components/Steps/Steps.hidden-stories.d.ts +0 -6
  94. package/dist/types/components/Steps/Steps.stories.d.ts +0 -6
  95. package/dist/types/components/Steps/Steps.test.d.ts +0 -1
  96. package/dist/types/components/Steps/index.d.ts +0 -2
  97. package/dist/types/components/Testimonial/Testimonial.d.ts +0 -13
  98. package/dist/types/components/Testimonial/Testimonial.hidden-stories.d.ts +0 -6
  99. package/dist/types/components/Testimonial/Testimonial.stories.d.ts +0 -6
  100. package/dist/types/components/Testimonial/Testimonial.test.d.ts +0 -1
  101. package/dist/types/components/Testimonial/index.d.ts +0 -1
  102. package/dist/types/components/ThankYou/ThankYou.d.ts +0 -3
  103. package/dist/types/components/ThankYou/ThankYou.stories.d.ts +0 -7
  104. package/dist/types/components/ThankYou/ThankYou.test.d.ts +0 -1
  105. package/dist/types/components/ThankYou/ThankYouSidebar.d.ts +0 -1
  106. package/dist/types/components/ThankYou/ThankYouText.d.ts +0 -2
  107. package/dist/types/components/ThankYou/ThankYouText.test.d.ts +0 -1
  108. package/dist/types/components/ThankYou/index.d.ts +0 -2
  109. package/dist/types/components/ThankYou/types.d.ts +0 -17
  110. package/dist/types/components/TradeSearch/SearchResults/SearchResults.d.ts +0 -15
  111. package/dist/types/components/TradeSearch/TradeSearch.d.ts +0 -2
  112. package/dist/types/components/TradeSearch/TradeSearch.stories.d.ts +0 -6
  113. package/dist/types/components/TradeSearch/components/Listing/Listing.d.ts +0 -12
  114. package/dist/types/components/TradeSearch/components/Listing/Listing.test.d.ts +0 -1
  115. package/dist/types/components/TradeSearch/components/Listing/ListingItem.d.ts +0 -8
  116. package/dist/types/components/TradeSearch/components/Listing/ListingItem.test.d.ts +0 -1
  117. package/dist/types/components/TradeSearch/components/Listing/index.d.ts +0 -1
  118. package/dist/types/components/TradeSearch/components/SearchResults/SearchResults.d.ts +0 -2
  119. package/dist/types/components/TradeSearch/components/SearchResults/SearchResults.test.d.ts +0 -1
  120. package/dist/types/components/TradeSearch/components/SearchResults/index.d.ts +0 -1
  121. package/dist/types/components/TradeSearch/components/TradeContext/TradeContext.d.ts +0 -1
  122. package/dist/types/components/TradeSearch/components/TradeContext/index.d.ts +0 -1
  123. package/dist/types/components/TradeSearch/components/index.d.ts +0 -1
  124. package/dist/types/components/TradeSearch/constants.d.ts +0 -1
  125. package/dist/types/components/TradeSearch/hooks/index.d.ts +0 -4
  126. package/dist/types/components/TradeSearch/hooks/useApiEndpoint.d.ts +0 -1
  127. package/dist/types/components/TradeSearch/hooks/useFetchTrades.d.ts +0 -6
  128. package/dist/types/components/TradeSearch/hooks/useTradeContext.d.ts +0 -1
  129. package/dist/types/components/TradeSearch/hooks/useTradeState.d.ts +0 -6
  130. package/dist/types/components/TradeSearch/index.d.ts +0 -2
  131. package/dist/types/components/TradeSearch/types.d.ts +0 -65
  132. package/dist/types/components/TradeSearch/utils/addQueryParam.d.ts +0 -1
  133. package/dist/types/components/TradeSearch/utils/index.d.ts +0 -1
  134. package/dist/types/components/TradeSelector/Header/Header.d.ts +0 -9
  135. package/dist/types/components/TradeSelector/Header/index.d.ts +0 -1
  136. package/dist/types/components/TradeSelector/Listing/Listing.d.ts +0 -12
  137. package/dist/types/components/TradeSelector/Listing/Listing.test.d.ts +0 -1
  138. package/dist/types/components/TradeSelector/Listing/ListingItem.d.ts +0 -8
  139. package/dist/types/components/TradeSelector/Listing/ListingItem.test.d.ts +0 -1
  140. package/dist/types/components/TradeSelector/Listing/index.d.ts +0 -1
  141. package/dist/types/components/TradeSelector/SearchResults/SearchResults.d.ts +0 -15
  142. package/dist/types/components/TradeSelector/SearchResults/SearchResults.test.d.ts +0 -1
  143. package/dist/types/components/TradeSelector/SearchResults/index.d.ts +0 -1
  144. package/dist/types/components/TradeSelector/TradeInput/TradeInput.d.ts +0 -15
  145. package/dist/types/components/TradeSelector/TradeInput/TradeInput.test.d.ts +0 -1
  146. package/dist/types/components/TradeSelector/TradeInput/index.d.ts +0 -1
  147. package/dist/types/components/TradeSelector/TradeSelector.d.ts +0 -5
  148. package/dist/types/components/TradeSelector/TradeSelector.stories.d.ts +0 -10
  149. package/dist/types/components/TradeSelector/TradeSelector.test.d.ts +0 -1
  150. package/dist/types/components/TradeSelector/config/development.d.ts +0 -7
  151. package/dist/types/components/TradeSelector/config/index.d.ts +0 -18
  152. package/dist/types/components/TradeSelector/config/production.d.ts +0 -7
  153. package/dist/types/components/TradeSelector/config/shared.d.ts +0 -17
  154. package/dist/types/components/TradeSelector/config/testing.d.ts +0 -7
  155. package/dist/types/components/TradeSelector/index.d.ts +0 -2
  156. package/dist/types/components/TradeSelector/jestHTMLDialogPolyfill.d.ts +0 -1
  157. package/dist/types/components/TradeSelector/mockApiResults.d.ts +0 -13
  158. package/dist/types/components/TradeSelector/types.d.ts +0 -51
  159. package/dist/types/components/TradeSelector/useFetchTrades/index.d.ts +0 -1
  160. package/dist/types/components/TradeSelector/useFetchTrades/useFetchTrades.d.ts +0 -7
  161. package/dist/types/components/TradeSelector/useTradeSelectorUrl/index.d.ts +0 -1
  162. package/dist/types/components/TradeSelector/useTradeSelectorUrl/useTradeSelectorUrl.d.ts +0 -6
  163. package/dist/types/components/TradeSelector/useTradeSelectorUrl/useTradeSelectorUrl.test.d.ts +0 -1
  164. package/dist/types/components/TrustSection/TrustSection.d.ts +0 -10
  165. package/dist/types/components/TrustSection/TrustSection.stories.d.ts +0 -6
  166. package/dist/types/components/TrustSection/TrustSection.test.d.ts +0 -1
  167. package/dist/types/components/TrustSection/index.d.ts +0 -1
  168. package/dist/types/data/page-contract-flat.d.ts +0 -17
  169. package/dist/types/data/page-contract-nested.d.ts +0 -17
  170. package/dist/types/data/page-contract-v1.d.ts +0 -2
  171. package/dist/types/data/page-contract-v2.d.ts +0 -2
  172. package/dist/types/data/scripts-mock.d.ts +0 -44
  173. package/dist/types/data/thank-you-page-mock.d.ts +0 -44
  174. package/dist/types/hooks/useOnClickOutside/index.d.ts +0 -1
  175. package/dist/types/hooks/useOnClickOutside/useOnClickOutside.d.ts +0 -2
  176. package/dist/types/hooks/useWindowEvent/index.d.ts +0 -1
  177. package/dist/types/hooks/useWindowEvent/useWindowEvent.d.ts +0 -1
  178. package/dist/types/pages/GeneralPage/GeneralPage.d.ts +0 -2
  179. package/dist/types/pages/GeneralPage/GeneralPage.stories.d.ts +0 -6
  180. package/dist/types/pages/GeneralPage/GeneralPage.test.d.ts +0 -1
  181. package/dist/types/pages/GeneralPage/Main.d.ts +0 -5
  182. package/dist/types/pages/GeneralPage/getMainComponents.d.ts +0 -6
  183. package/dist/types/pages/GeneralPage/index.d.ts +0 -1
  184. package/dist/types/pages/GeneralPage/mainComponents.d.ts +0 -2
  185. package/dist/types/pages/GeneralPage/types.d.ts +0 -23
  186. package/dist/types/pages/Page/Page.d.ts +0 -2
  187. package/dist/types/pages/Page/index.d.ts +0 -1
  188. package/dist/types/pages/Page/types.d.ts +0 -29
  189. package/dist/types/pages/Simple/Main.d.ts +0 -5
  190. package/dist/types/pages/Simple/Simple.d.ts +0 -2
  191. package/dist/types/pages/Simple/Simple.stories.d.ts +0 -6
  192. package/dist/types/pages/Simple/index.d.ts +0 -1
  193. package/dist/types/pages/Simple/useMainComponents.d.ts +0 -3
  194. package/dist/types/pages/ThankYouPage/ThankYouPage.d.ts +0 -2
  195. package/dist/types/pages/ThankYouPage/ThankYouPage.stories.d.ts +0 -6
  196. package/dist/types/pages/ThankYouPage/ThankYouPage.test.d.ts +0 -1
  197. package/dist/types/pages/ThankYouPage/index.d.ts +0 -1
  198. package/dist/types/pages/ThankYouPage/types.d.ts +0 -10
  199. package/dist/types/services/airbrake/index.d.ts +0 -2
  200. package/dist/types/services/index.d.ts +0 -2
  201. package/dist/types/services/snowplow/Snowplow.d.ts +0 -29
  202. package/dist/types/services/snowplow/SnowplowContext.d.ts +0 -14
  203. package/dist/types/services/snowplow/SnowplowContext.test.d.ts +0 -1
  204. package/dist/types/services/snowplow/contexts.d.ts +0 -3
  205. package/dist/types/services/snowplow/contexts.test.d.ts +0 -1
  206. package/dist/types/services/snowplow/event-definitions/base.d.ts +0 -18
  207. package/dist/types/services/snowplow/event-definitions/index.d.ts +0 -2
  208. package/dist/types/services/snowplow/event-definitions/qcp.d.ts +0 -18
  209. package/dist/types/services/snowplow/event-definitions.d.ts +0 -18
  210. package/dist/types/services/snowplow/getSnowplowConfig.d.ts +0 -2
  211. package/dist/types/services/snowplow/index.d.ts +0 -6
  212. package/dist/types/services/snowplow/index.test.d.ts +0 -1
  213. package/dist/types/services/snowplow/types.d.ts +0 -37
  214. package/dist/types/snowplow/SnowplowContext.test.d.ts +0 -1
  215. package/dist/types/snowplow/contexts.test.d.ts +0 -1
  216. package/dist/types/snowplow/event-definitions/events.d.ts +0 -20
  217. package/dist/types/snowplow/event-definitions/pcp.d.ts +0 -20
  218. package/dist/types/snowplow/event-definitions/progressbar.d.ts +0 -2
  219. package/dist/types/snowplow/event-definitions/questionnaire/questionnaire.test.d.ts +0 -1
  220. package/dist/types/snowplow/event-definitions/questionnaire.d.ts +0 -2
  221. package/dist/types/snowplow/event-definitions/questionnaire.test.d.ts +0 -1
  222. package/dist/types/snowplow/event-definitions/redaction.d.ts +0 -5
  223. package/dist/types/snowplow/event-definitions/shared.d.ts +0 -2
  224. package/dist/types/snowplow/event-definitions/shoppingCart.d.ts +0 -2
  225. package/dist/types/snowplow/event-definitions/thankYou.d.ts +0 -2
  226. package/dist/types/snowplow/events.d.ts +0 -20
  227. package/dist/types/snowplow/index.test.d.ts +0 -1
  228. package/dist/types/src/address-lookup/index.d.ts +0 -15
  229. package/dist/types/src/address-lookup/types.d.ts +0 -44
  230. package/dist/types/src/airbrake/index.d.ts +0 -9
  231. package/dist/types/src/index.d.ts +0 -3
  232. package/dist/types/src/mocks/eventDefinitions.d.ts +0 -61
  233. package/dist/types/src/mocks/scripts-mock.d.ts +0 -44
  234. package/dist/types/src/snowplow/Snowplow.d.ts +0 -34
  235. package/dist/types/src/snowplow/SnowplowContext.d.ts +0 -14
  236. package/dist/types/src/snowplow/constants.d.ts +0 -1
  237. package/dist/types/src/snowplow/contexts.d.ts +0 -4
  238. package/dist/types/src/snowplow/event-definitions/base.d.ts +0 -22
  239. package/dist/types/src/snowplow/event-definitions/coverage-selection.d.ts +0 -2
  240. package/dist/types/src/snowplow/event-definitions/index.d.ts +0 -8
  241. package/dist/types/src/snowplow/event-definitions/intervention.d.ts +0 -12
  242. package/dist/types/src/snowplow/event-definitions/personalised_cover.d.ts +0 -22
  243. package/dist/types/src/snowplow/event-definitions/qcp.d.ts +0 -2
  244. package/dist/types/src/snowplow/event-definitions/questionnaire/questionnaire.d.ts +0 -2
  245. package/dist/types/src/snowplow/event-definitions/questionnaire/redaction.d.ts +0 -5
  246. package/dist/types/src/snowplow/event-definitions/referral.d.ts +0 -2
  247. package/dist/types/src/snowplow/event-definitions/test-utils.d.ts +0 -2
  248. package/dist/types/src/snowplow/getSnowplowConfig.d.ts +0 -2
  249. package/dist/types/src/snowplow/index.d.ts +0 -6
  250. package/dist/types/src/snowplow/types.d.ts +0 -54
  251. package/dist/types/src/utils/index.d.ts +0 -2
  252. package/dist/types/src/utils/isObject.d.ts +0 -1
  253. package/dist/types/src/utils/testUtils.d.ts +0 -7
  254. package/dist/types/src/utils/text.d.ts +0 -3
  255. package/dist/types/tracking-helper/TrackingHelper.d.ts +0 -15
  256. package/dist/types/tracking-helper/index.d.ts +0 -15
  257. package/dist/types/types.d.ts +0 -5
  258. package/dist/types/utils/StoryContainer.d.ts +0 -1
  259. package/dist/types/utils/TrackingHelper.d.ts +0 -15
  260. package/dist/types/utils/TrustpilotProvider.d.ts +0 -4
  261. package/dist/types/utils/env.d.ts +0 -5
  262. package/dist/types/utils/env.test.d.ts +0 -1
  263. package/dist/types/utils/excludeControls.d.ts +0 -1
  264. package/dist/types/utils/excludeControls.test.d.ts +0 -1
  265. package/dist/types/utils/isObject.test.d.ts +0 -1
  266. package/dist/types/utils/spaceDelimitedList.d.ts +0 -1
  267. package/dist/types/utils/spaceDelimitedList.test.d.ts +0 -1
  268. package/dist/types/utils/text.test.d.ts +0 -1
  269. 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 * from "./QuestionHelp";
@@ -1,3 +0,0 @@
1
- import { IconDefinition } from "@simplybusiness/icons";
2
- declare const question: IconDefinition;
3
- export { question };
@@ -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,6 +0,0 @@
1
- import type { Meta, StoryObj } from "@storybook/react";
2
- import { Section } from "./Section";
3
- type StoryType = StoryObj<typeof Section>;
4
- declare const meta: Meta<typeof Section>;
5
- export declare const Normal: StoryType;
6
- export default meta;
@@ -1,6 +0,0 @@
1
- import type { Meta, StoryObj } from "@storybook/react";
2
- import { Section } from "./Section";
3
- type StoryType = StoryObj<typeof Section>;
4
- declare const meta: Meta<typeof Section>;
5
- export declare const Normal: StoryType;
6
- export default meta;
@@ -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,6 +0,0 @@
1
- import type { Meta, StoryObj } from "@storybook/react";
2
- import { Steps } from ".";
3
- type StoryType = StoryObj<typeof Steps>;
4
- declare const meta: Meta<typeof Steps>;
5
- export declare const Normal: StoryType;
6
- export default meta;
@@ -1,6 +0,0 @@
1
- import type { Meta, StoryObj } from "@storybook/react";
2
- import { Steps } from ".";
3
- type StoryType = StoryObj<typeof Steps>;
4
- declare const meta: Meta<typeof Steps>;
5
- export declare const Normal: StoryType;
6
- export default meta;
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- export * from "./Steps";
2
- export * from "./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 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,6 +0,0 @@
1
- import type { Meta, StoryObj } from "@storybook/react";
2
- import { Testimonial } from "./Testimonial";
3
- type StoryType = StoryObj<typeof Testimonial>;
4
- declare const meta: Meta<typeof Testimonial>;
5
- export declare const Normal: StoryType;
6
- export default meta;
@@ -1,6 +0,0 @@
1
- import type { Meta, StoryObj } from "@storybook/react";
2
- import { Testimonial } from "./Testimonial";
3
- type StoryType = StoryObj<typeof Testimonial>;
4
- declare const meta: Meta<typeof Testimonial>;
5
- export declare const Normal: StoryType;
6
- export default meta;
@@ -1 +0,0 @@
1
- export * from "./Testimonial";
@@ -1,3 +0,0 @@
1
- import { ForwardedRefComponent } from "@simplybusiness/mobius";
2
- import { ThankYouElementType, ThankYouProps } from "./types";
3
- export declare const ThankYou: ForwardedRefComponent<ThankYouProps, ThankYouElementType>;
@@ -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,2 +0,0 @@
1
- import { ThankYouTextProps } from "./types";
2
- export declare const ThankYouText: (props: ThankYouTextProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- export * from "./ThankYou";
2
- export * from "./types";
@@ -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,2 +0,0 @@
1
- import { TradeSearchProps } from "./types";
2
- export declare const TradeSearch: import("react").ForwardRefExoticComponent<Omit<TradeSearchProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,6 +0,0 @@
1
- import type { Meta, StoryObj } from "@storybook/react";
2
- import { TradeSearch } from ".";
3
- type StoryType = StoryObj<typeof TradeSearch>;
4
- declare const meta: Meta<typeof TradeSearch>;
5
- export declare const Normal: StoryType;
6
- export default meta;
@@ -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,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 * from "./Listing";
@@ -1,2 +0,0 @@
1
- import { TradeSearchResultsProps } from "../../types";
2
- export declare const SearchResults: (props: TradeSearchResultsProps) => import("react/jsx-runtime").JSX.Element;
@@ -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,4 +0,0 @@
1
- export * from "./useApiEndpoint";
2
- export * from "./useFetchTrades";
3
- export * from "./useTradeContext";
4
- export * from "./useTradeState";
@@ -1 +0,0 @@
1
- export declare const useApiEndpoint: (userInput: string) => URL;
@@ -1,6 +0,0 @@
1
- import { TradeProps } from "../types";
2
- export declare const useFetchTrades: (apiEndpoint: URL, shouldFetch: boolean) => {
3
- isLoading: boolean;
4
- isError: boolean;
5
- data: TradeProps[] | null;
6
- };
@@ -1 +0,0 @@
1
- export declare const useTradeContext: () => import("..").TradeSearchConfig;
@@ -1,6 +0,0 @@
1
- import { ChangeEvent } from "react";
2
- export declare const useTradeState: () => {
3
- userInput: string;
4
- onChange: (event: ChangeEvent<HTMLInputElement>) => void;
5
- shouldTrigger: boolean;
6
- };
@@ -1,2 +0,0 @@
1
- export * from "./TradeSearch";
2
- export * from "./types";
@@ -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,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 * 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 * 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 * 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,7 +0,0 @@
1
- declare const development: {
2
- site: string;
3
- baseUrl: string;
4
- redirectUrl: string;
5
- useTracking: boolean;
6
- };
7
- export { development };
@@ -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,7 +0,0 @@
1
- declare const production: {
2
- site: string;
3
- baseUrl: string;
4
- redirectUrl: string;
5
- useTracking: boolean;
6
- };
7
- export { production };
@@ -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,7 +0,0 @@
1
- declare const test: {
2
- site: string;
3
- baseUrl: string;
4
- redirectUrl: string;
5
- useTracking: boolean;
6
- };
7
- export { test };
@@ -1,2 +0,0 @@
1
- export * from "./TradeSelector";
2
- export * from "./types";
@@ -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[];