@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.
Files changed (307) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/index.js +15 -12
  3. package/dist/cjs/index.js.map +2 -2
  4. package/dist/cjs/meta.json +32 -32
  5. package/dist/cjs/snowplow/Snowplow.js +3 -0
  6. package/dist/cjs/snowplow/Snowplow.js.map +2 -2
  7. package/dist/cjs/snowplow/SnowplowContext.js +15 -12
  8. package/dist/cjs/snowplow/SnowplowContext.js.map +2 -2
  9. package/dist/cjs/snowplow/event-definitions/index.js +3 -2
  10. package/dist/cjs/snowplow/event-definitions/index.js.map +2 -2
  11. package/dist/cjs/snowplow/event-definitions/questionnaire/questionnaire.js +3 -2
  12. package/dist/cjs/snowplow/event-definitions/questionnaire/questionnaire.js.map +2 -2
  13. package/dist/cjs/snowplow/index.js +15 -12
  14. package/dist/cjs/snowplow/index.js.map +2 -2
  15. package/dist/cjs/utils/testUtils.js +15 -12
  16. package/dist/cjs/utils/testUtils.js.map +2 -2
  17. package/dist/esm/{chunk-EDKZP2NB.js → chunk-2TWF6FRS.js} +4 -1
  18. package/dist/esm/{chunk-EDKZP2NB.js.map → chunk-2TWF6FRS.js.map} +2 -2
  19. package/dist/esm/{chunk-YO5FUC73.js → chunk-3VFJFBNM.js} +4 -3
  20. package/dist/esm/chunk-3VFJFBNM.js.map +7 -0
  21. package/dist/esm/{chunk-WB3C6L4X.js → chunk-RSDIB373.js} +12 -13
  22. package/dist/esm/chunk-RSDIB373.js.map +7 -0
  23. package/dist/esm/{chunk-LLSH4K4D.js → chunk-X77BVKJO.js} +2 -2
  24. package/dist/esm/index.js +4 -4
  25. package/dist/esm/meta.json +43 -43
  26. package/dist/esm/snowplow/Snowplow.js +1 -1
  27. package/dist/esm/snowplow/SnowplowContext.js +4 -4
  28. package/dist/esm/snowplow/event-definitions/index.js +2 -2
  29. package/dist/esm/snowplow/event-definitions/questionnaire/questionnaire.js +1 -1
  30. package/dist/esm/snowplow/index.js +4 -4
  31. package/dist/esm/utils/testUtils.js +4 -4
  32. package/dist/tsconfig.build.tsbuildinfo +1 -1
  33. package/dist/types/address-lookup/index.test.d.ts +1 -0
  34. package/dist/types/components/Actions/Actions.d.ts +15 -0
  35. package/dist/types/components/Actions/Actions.hidden-stories.d.ts +10 -0
  36. package/dist/types/components/Actions/Actions.stories.d.ts +10 -0
  37. package/dist/types/components/Actions/Actions.test.d.ts +1 -0
  38. package/dist/types/components/Actions/LinkOrButton.d.ts +2 -0
  39. package/dist/types/components/Actions/LinkOrButton.test.d.ts +1 -0
  40. package/dist/types/components/Actions/index.d.ts +1 -0
  41. package/dist/types/components/Footer/Address.d.ts +6 -0
  42. package/dist/types/components/Footer/Addresses.d.ts +5 -0
  43. package/dist/types/components/Footer/Copyright.d.ts +7 -0
  44. package/dist/types/components/Footer/Footer.d.ts +2 -0
  45. package/dist/types/components/Footer/Footer.stories.d.ts +7 -0
  46. package/dist/types/components/Footer/Footer.test.d.ts +1 -0
  47. package/dist/types/components/Footer/Legal.d.ts +7 -0
  48. package/dist/types/components/Footer/LegalLinks.d.ts +5 -0
  49. package/dist/types/components/Footer/OpeningHours.d.ts +2 -0
  50. package/dist/types/components/Footer/OpeningHoursEntry.d.ts +2 -0
  51. package/dist/types/components/Footer/SmallPrint.d.ts +5 -0
  52. package/dist/types/components/Footer/Support.d.ts +3 -0
  53. package/dist/types/components/Footer/Title.d.ts +5 -0
  54. package/dist/types/components/Footer/Underline.d.ts +1 -0
  55. package/dist/types/components/Footer/constants.d.ts +25 -0
  56. package/dist/types/components/Footer/index.d.ts +2 -0
  57. package/dist/types/components/Footer/types.d.ts +18 -0
  58. package/dist/types/components/Header/ContactDetails.d.ts +2 -0
  59. package/dist/types/components/Header/Header.d.ts +2 -0
  60. package/dist/types/components/Header/Header.stories.d.ts +8 -0
  61. package/dist/types/components/Header/Header.test.d.ts +1 -0
  62. package/dist/types/components/Header/Logo.d.ts +2 -0
  63. package/dist/types/components/Header/constants.d.ts +4 -0
  64. package/dist/types/components/Header/index.d.ts +3 -0
  65. package/dist/types/components/Header/mockOpeningHoursData.d.ts +4 -0
  66. package/dist/types/components/Header/types.d.ts +25 -0
  67. package/dist/types/components/HelpWidget/HelpWidget.d.ts +10 -0
  68. package/dist/types/components/HelpWidget/HelpWidget.stories.d.ts +6 -0
  69. package/dist/types/components/HelpWidget/HelpWidget.test.d.ts +1 -0
  70. package/dist/types/components/HelpWidget/index.d.ts +1 -0
  71. package/dist/types/components/MaskedField/MaskedField.d.ts +11 -0
  72. package/dist/types/components/MaskedField/MaskedField.hidden-stories.d.ts +6 -0
  73. package/dist/types/components/MaskedField/MaskedField.stories.d.ts +6 -0
  74. package/dist/types/components/MaskedField/MaskedField.test.d.ts +1 -0
  75. package/dist/types/components/MaskedField/index.d.ts +1 -0
  76. package/dist/types/components/MaskedField/inputFormatters.d.ts +10 -0
  77. package/dist/types/components/PageFlat/PageFlat.d.ts +2 -0
  78. package/dist/types/components/PageFlat/PageFlat.stories.d.ts +6 -0
  79. package/dist/types/components/PageFlat/index.d.ts +1 -0
  80. package/dist/types/components/PageNested/PageNested.d.ts +2 -0
  81. package/dist/types/components/PageNested/PageNested.stories.d.ts +6 -0
  82. package/dist/types/components/PageNested/index.d.ts +1 -0
  83. package/dist/types/components/PaymentConfirmation/PaymentConfirmation.d.ts +6 -0
  84. package/dist/types/components/PaymentConfirmation/PaymentConfirmation.hidden-stories.d.ts +6 -0
  85. package/dist/types/components/PaymentConfirmation/PaymentConfirmation.stories.d.ts +6 -0
  86. package/dist/types/components/PaymentConfirmation/PaymentConfirmation.test.d.ts +1 -0
  87. package/dist/types/components/PaymentConfirmation/index.d.ts +1 -0
  88. package/dist/types/components/PercentageTotalsQuestion/PercentageItem.d.ts +6 -0
  89. package/dist/types/components/PercentageTotalsQuestion/PercentageTotalsQuestion.d.ts +10 -0
  90. package/dist/types/components/PercentageTotalsQuestion/PercentageTotalsQuestion.hidden-stories.d.ts +6 -0
  91. package/dist/types/components/PercentageTotalsQuestion/PercentageTotalsQuestion.hiddenstories.d.ts +6 -0
  92. package/dist/types/components/PercentageTotalsQuestion/PercentageTotalsQuestion.stories.d.ts +6 -0
  93. package/dist/types/components/PercentageTotalsQuestion/PercentageTotalsQuestion.test.d.ts +1 -0
  94. package/dist/types/components/PercentageTotalsQuestion/index.d.ts +1 -0
  95. package/dist/types/components/PreFooter/LogoBbbAccreditedBusiness.d.ts +5 -0
  96. package/dist/types/components/PreFooter/LogoForbesAdvisor.d.ts +5 -0
  97. package/dist/types/components/PreFooter/PreFooter.d.ts +10 -0
  98. package/dist/types/components/PreFooter/PreFooter.stories.d.ts +6 -0
  99. package/dist/types/components/PreFooter/PreFooter.test.d.ts +1 -0
  100. package/dist/types/components/PreFooter/index.d.ts +1 -0
  101. package/dist/types/components/Question/Question.d.ts +13 -0
  102. package/dist/types/components/Question/Question.hidden-stories.d.ts +14 -0
  103. package/dist/types/components/Question/Question.stories.d.ts +14 -0
  104. package/dist/types/components/Question/Question.test.d.ts +1 -0
  105. package/dist/types/components/Question/index.d.ts +1 -0
  106. package/dist/types/components/QuestionGroup/QuestionGroup.d.ts +16 -0
  107. package/dist/types/components/QuestionGroup/QuestionGroup.hidden-stories.d.ts +6 -0
  108. package/dist/types/components/QuestionGroup/QuestionGroup.stories.d.ts +6 -0
  109. package/dist/types/components/QuestionGroup/QuestionGroup.test.d.ts +1 -0
  110. package/dist/types/components/QuestionGroup/index.d.ts +1 -0
  111. package/dist/types/components/QuestionHelp/QuestionHelp.d.ts +11 -0
  112. package/dist/types/components/QuestionHelp/QuestionHelp.test.d.ts +1 -0
  113. package/dist/types/components/QuestionHelp/index.d.ts +1 -0
  114. package/dist/types/components/QuestionHelp/question.d.ts +3 -0
  115. package/dist/types/components/Section/Section.d.ts +14 -0
  116. package/dist/types/components/Section/Section.hidden-stories.d.ts +6 -0
  117. package/dist/types/components/Section/Section.stories.d.ts +6 -0
  118. package/dist/types/components/Section/Section.test.d.ts +1 -0
  119. package/dist/types/components/Section/index.d.ts +1 -0
  120. package/dist/types/components/Steps/StepItem.d.ts +20 -0
  121. package/dist/types/components/Steps/Steps.d.ts +13 -0
  122. package/dist/types/components/Steps/Steps.hidden-stories.d.ts +6 -0
  123. package/dist/types/components/Steps/Steps.stories.d.ts +6 -0
  124. package/dist/types/components/Steps/Steps.test.d.ts +1 -0
  125. package/dist/types/components/Steps/index.d.ts +2 -0
  126. package/dist/types/components/Testimonial/Testimonial.d.ts +13 -0
  127. package/dist/types/components/Testimonial/Testimonial.hidden-stories.d.ts +6 -0
  128. package/dist/types/components/Testimonial/Testimonial.stories.d.ts +6 -0
  129. package/dist/types/components/Testimonial/Testimonial.test.d.ts +1 -0
  130. package/dist/types/components/Testimonial/index.d.ts +1 -0
  131. package/dist/types/components/ThankYou/ThankYou.d.ts +3 -0
  132. package/dist/types/components/ThankYou/ThankYou.stories.d.ts +7 -0
  133. package/dist/types/components/ThankYou/ThankYou.test.d.ts +1 -0
  134. package/dist/types/components/ThankYou/ThankYouSidebar.d.ts +1 -0
  135. package/dist/types/components/ThankYou/ThankYouText.d.ts +2 -0
  136. package/dist/types/components/ThankYou/ThankYouText.test.d.ts +1 -0
  137. package/dist/types/components/ThankYou/index.d.ts +2 -0
  138. package/dist/types/components/ThankYou/types.d.ts +17 -0
  139. package/dist/types/components/TradeSearch/SearchResults/SearchResults.d.ts +15 -0
  140. package/dist/types/components/TradeSearch/TradeSearch.d.ts +2 -0
  141. package/dist/types/components/TradeSearch/TradeSearch.stories.d.ts +6 -0
  142. package/dist/types/components/TradeSearch/components/Listing/Listing.d.ts +12 -0
  143. package/dist/types/components/TradeSearch/components/Listing/Listing.test.d.ts +1 -0
  144. package/dist/types/components/TradeSearch/components/Listing/ListingItem.d.ts +8 -0
  145. package/dist/types/components/TradeSearch/components/Listing/ListingItem.test.d.ts +1 -0
  146. package/dist/types/components/TradeSearch/components/Listing/index.d.ts +1 -0
  147. package/dist/types/components/TradeSearch/components/SearchResults/SearchResults.d.ts +2 -0
  148. package/dist/types/components/TradeSearch/components/SearchResults/SearchResults.test.d.ts +1 -0
  149. package/dist/types/components/TradeSearch/components/SearchResults/index.d.ts +1 -0
  150. package/dist/types/components/TradeSearch/components/TradeContext/TradeContext.d.ts +1 -0
  151. package/dist/types/components/TradeSearch/components/TradeContext/index.d.ts +1 -0
  152. package/dist/types/components/TradeSearch/components/index.d.ts +1 -0
  153. package/dist/types/components/TradeSearch/constants.d.ts +1 -0
  154. package/dist/types/components/TradeSearch/hooks/index.d.ts +4 -0
  155. package/dist/types/components/TradeSearch/hooks/useApiEndpoint.d.ts +1 -0
  156. package/dist/types/components/TradeSearch/hooks/useFetchTrades.d.ts +6 -0
  157. package/dist/types/components/TradeSearch/hooks/useTradeContext.d.ts +1 -0
  158. package/dist/types/components/TradeSearch/hooks/useTradeState.d.ts +6 -0
  159. package/dist/types/components/TradeSearch/index.d.ts +2 -0
  160. package/dist/types/components/TradeSearch/types.d.ts +65 -0
  161. package/dist/types/components/TradeSearch/utils/addQueryParam.d.ts +1 -0
  162. package/dist/types/components/TradeSearch/utils/index.d.ts +1 -0
  163. package/dist/types/components/TradeSelector/Header/Header.d.ts +9 -0
  164. package/dist/types/components/TradeSelector/Header/index.d.ts +1 -0
  165. package/dist/types/components/TradeSelector/Listing/Listing.d.ts +12 -0
  166. package/dist/types/components/TradeSelector/Listing/Listing.test.d.ts +1 -0
  167. package/dist/types/components/TradeSelector/Listing/ListingItem.d.ts +8 -0
  168. package/dist/types/components/TradeSelector/Listing/ListingItem.test.d.ts +1 -0
  169. package/dist/types/components/TradeSelector/Listing/index.d.ts +1 -0
  170. package/dist/types/components/TradeSelector/SearchResults/SearchResults.d.ts +15 -0
  171. package/dist/types/components/TradeSelector/SearchResults/SearchResults.test.d.ts +1 -0
  172. package/dist/types/components/TradeSelector/SearchResults/index.d.ts +1 -0
  173. package/dist/types/components/TradeSelector/TradeInput/TradeInput.d.ts +15 -0
  174. package/dist/types/components/TradeSelector/TradeInput/TradeInput.test.d.ts +1 -0
  175. package/dist/types/components/TradeSelector/TradeInput/index.d.ts +1 -0
  176. package/dist/types/components/TradeSelector/TradeSelector.d.ts +5 -0
  177. package/dist/types/components/TradeSelector/TradeSelector.stories.d.ts +10 -0
  178. package/dist/types/components/TradeSelector/TradeSelector.test.d.ts +1 -0
  179. package/dist/types/components/TradeSelector/config/development.d.ts +7 -0
  180. package/dist/types/components/TradeSelector/config/index.d.ts +18 -0
  181. package/dist/types/components/TradeSelector/config/production.d.ts +7 -0
  182. package/dist/types/components/TradeSelector/config/shared.d.ts +17 -0
  183. package/dist/types/components/TradeSelector/config/testing.d.ts +7 -0
  184. package/dist/types/components/TradeSelector/index.d.ts +2 -0
  185. package/dist/types/components/TradeSelector/jestHTMLDialogPolyfill.d.ts +1 -0
  186. package/dist/types/components/TradeSelector/mockApiResults.d.ts +13 -0
  187. package/dist/types/components/TradeSelector/types.d.ts +51 -0
  188. package/dist/types/components/TradeSelector/useFetchTrades/index.d.ts +1 -0
  189. package/dist/types/components/TradeSelector/useFetchTrades/useFetchTrades.d.ts +7 -0
  190. package/dist/types/components/TradeSelector/useTradeSelectorUrl/index.d.ts +1 -0
  191. package/dist/types/components/TradeSelector/useTradeSelectorUrl/useTradeSelectorUrl.d.ts +6 -0
  192. package/dist/types/components/TradeSelector/useTradeSelectorUrl/useTradeSelectorUrl.test.d.ts +1 -0
  193. package/dist/types/components/TrustSection/TrustSection.d.ts +10 -0
  194. package/dist/types/components/TrustSection/TrustSection.stories.d.ts +6 -0
  195. package/dist/types/components/TrustSection/TrustSection.test.d.ts +1 -0
  196. package/dist/types/components/TrustSection/index.d.ts +1 -0
  197. package/dist/types/data/page-contract-flat.d.ts +17 -0
  198. package/dist/types/data/page-contract-nested.d.ts +17 -0
  199. package/dist/types/data/page-contract-v1.d.ts +2 -0
  200. package/dist/types/data/page-contract-v2.d.ts +2 -0
  201. package/dist/types/data/scripts-mock.d.ts +44 -0
  202. package/dist/types/data/thank-you-page-mock.d.ts +44 -0
  203. package/dist/types/hooks/useOnClickOutside/index.d.ts +1 -0
  204. package/dist/types/hooks/useOnClickOutside/useOnClickOutside.d.ts +2 -0
  205. package/dist/types/hooks/useWindowEvent/index.d.ts +1 -0
  206. package/dist/types/hooks/useWindowEvent/useWindowEvent.d.ts +1 -0
  207. package/dist/types/pages/GeneralPage/GeneralPage.d.ts +2 -0
  208. package/dist/types/pages/GeneralPage/GeneralPage.stories.d.ts +6 -0
  209. package/dist/types/pages/GeneralPage/GeneralPage.test.d.ts +1 -0
  210. package/dist/types/pages/GeneralPage/Main.d.ts +5 -0
  211. package/dist/types/pages/GeneralPage/getMainComponents.d.ts +6 -0
  212. package/dist/types/pages/GeneralPage/index.d.ts +1 -0
  213. package/dist/types/pages/GeneralPage/mainComponents.d.ts +2 -0
  214. package/dist/types/pages/GeneralPage/types.d.ts +23 -0
  215. package/dist/types/pages/Page/Page.d.ts +2 -0
  216. package/dist/types/pages/Page/index.d.ts +1 -0
  217. package/dist/types/pages/Page/types.d.ts +29 -0
  218. package/dist/types/pages/Simple/Main.d.ts +5 -0
  219. package/dist/types/pages/Simple/Simple.d.ts +2 -0
  220. package/dist/types/pages/Simple/Simple.stories.d.ts +6 -0
  221. package/dist/types/pages/Simple/index.d.ts +1 -0
  222. package/dist/types/pages/Simple/useMainComponents.d.ts +3 -0
  223. package/dist/types/pages/ThankYouPage/ThankYouPage.d.ts +2 -0
  224. package/dist/types/pages/ThankYouPage/ThankYouPage.stories.d.ts +6 -0
  225. package/dist/types/pages/ThankYouPage/ThankYouPage.test.d.ts +1 -0
  226. package/dist/types/pages/ThankYouPage/index.d.ts +1 -0
  227. package/dist/types/pages/ThankYouPage/types.d.ts +10 -0
  228. package/dist/types/services/airbrake/index.d.ts +2 -0
  229. package/dist/types/services/index.d.ts +2 -0
  230. package/dist/types/services/snowplow/Snowplow.d.ts +29 -0
  231. package/dist/types/services/snowplow/SnowplowContext.d.ts +14 -0
  232. package/dist/types/services/snowplow/SnowplowContext.test.d.ts +1 -0
  233. package/dist/types/services/snowplow/contexts.d.ts +3 -0
  234. package/dist/types/services/snowplow/contexts.test.d.ts +1 -0
  235. package/dist/types/services/snowplow/event-definitions/base.d.ts +18 -0
  236. package/dist/types/services/snowplow/event-definitions/index.d.ts +2 -0
  237. package/dist/types/services/snowplow/event-definitions/qcp.d.ts +18 -0
  238. package/dist/types/services/snowplow/event-definitions.d.ts +18 -0
  239. package/dist/types/services/snowplow/getSnowplowConfig.d.ts +2 -0
  240. package/dist/types/services/snowplow/index.d.ts +6 -0
  241. package/dist/types/services/snowplow/index.test.d.ts +1 -0
  242. package/dist/types/services/snowplow/types.d.ts +37 -0
  243. package/dist/types/snowplow/SnowplowContext.test.d.ts +1 -0
  244. package/dist/types/snowplow/contexts.test.d.ts +1 -0
  245. package/dist/types/snowplow/event-definitions/events.d.ts +20 -0
  246. package/dist/types/snowplow/event-definitions/pcp.d.ts +20 -0
  247. package/dist/types/snowplow/event-definitions/progressbar.d.ts +2 -0
  248. package/dist/types/snowplow/event-definitions/questionnaire/questionnaire.test.d.ts +1 -0
  249. package/dist/types/snowplow/event-definitions/questionnaire.d.ts +2 -0
  250. package/dist/types/snowplow/event-definitions/questionnaire.test.d.ts +1 -0
  251. package/dist/types/snowplow/event-definitions/redaction.d.ts +5 -0
  252. package/dist/types/snowplow/event-definitions/shared.d.ts +2 -0
  253. package/dist/types/snowplow/event-definitions/shoppingCart.d.ts +2 -0
  254. package/dist/types/snowplow/event-definitions/thankYou.d.ts +2 -0
  255. package/dist/types/snowplow/events.d.ts +20 -0
  256. package/dist/types/snowplow/index.test.d.ts +1 -0
  257. package/dist/types/src/address-lookup/index.d.ts +15 -0
  258. package/dist/types/src/address-lookup/types.d.ts +44 -0
  259. package/dist/types/src/airbrake/index.d.ts +9 -0
  260. package/dist/types/src/index.d.ts +3 -0
  261. package/dist/types/src/mocks/eventDefinitions.d.ts +61 -0
  262. package/dist/types/src/mocks/scripts-mock.d.ts +44 -0
  263. package/dist/types/src/snowplow/Snowplow.d.ts +34 -0
  264. package/dist/types/src/snowplow/SnowplowContext.d.ts +14 -0
  265. package/dist/types/src/snowplow/constants.d.ts +1 -0
  266. package/dist/types/src/snowplow/contexts.d.ts +4 -0
  267. package/dist/types/src/snowplow/event-definitions/base.d.ts +22 -0
  268. package/dist/types/src/snowplow/event-definitions/coverage-selection.d.ts +2 -0
  269. package/dist/types/src/snowplow/event-definitions/index.d.ts +8 -0
  270. package/dist/types/src/snowplow/event-definitions/intervention.d.ts +12 -0
  271. package/dist/types/src/snowplow/event-definitions/personalised_cover.d.ts +22 -0
  272. package/dist/types/src/snowplow/event-definitions/qcp.d.ts +2 -0
  273. package/dist/types/src/snowplow/event-definitions/questionnaire/questionnaire.d.ts +2 -0
  274. package/dist/types/src/snowplow/event-definitions/questionnaire/redaction.d.ts +5 -0
  275. package/dist/types/src/snowplow/event-definitions/referral.d.ts +2 -0
  276. package/dist/types/src/snowplow/event-definitions/test-utils.d.ts +2 -0
  277. package/dist/types/src/snowplow/getSnowplowConfig.d.ts +2 -0
  278. package/dist/types/src/snowplow/index.d.ts +6 -0
  279. package/dist/types/src/snowplow/types.d.ts +54 -0
  280. package/dist/types/src/utils/index.d.ts +2 -0
  281. package/dist/types/src/utils/isObject.d.ts +1 -0
  282. package/dist/types/src/utils/testUtils.d.ts +7 -0
  283. package/dist/types/src/utils/text.d.ts +3 -0
  284. package/dist/types/tracking-helper/TrackingHelper.d.ts +15 -0
  285. package/dist/types/tracking-helper/index.d.ts +15 -0
  286. package/dist/types/types.d.ts +5 -0
  287. package/dist/types/utils/StoryContainer.d.ts +1 -0
  288. package/dist/types/utils/TrackingHelper.d.ts +15 -0
  289. package/dist/types/utils/TrustpilotProvider.d.ts +4 -0
  290. package/dist/types/utils/env.d.ts +5 -0
  291. package/dist/types/utils/env.test.d.ts +1 -0
  292. package/dist/types/utils/excludeControls.d.ts +1 -0
  293. package/dist/types/utils/excludeControls.test.d.ts +1 -0
  294. package/dist/types/utils/isObject.test.d.ts +1 -0
  295. package/dist/types/utils/spaceDelimitedList.d.ts +1 -0
  296. package/dist/types/utils/spaceDelimitedList.test.d.ts +1 -0
  297. package/dist/types/utils/text.test.d.ts +1 -0
  298. package/dist/types/vitest.config.d.ts +2 -0
  299. package/package.json +1 -1
  300. package/src/snowplow/Snowplow.ts +4 -0
  301. package/src/snowplow/SnowplowContext.tsx +10 -13
  302. package/src/snowplow/event-definitions/questionnaire/questionnaire.test.ts +43 -0
  303. package/src/snowplow/event-definitions/questionnaire/questionnaire.ts +5 -1
  304. package/src/snowplow/index.test.ts +32 -0
  305. package/dist/esm/chunk-WB3C6L4X.js.map +0 -7
  306. package/dist/esm/chunk-YO5FUC73.js.map +0 -7
  307. /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,2 @@
1
+ import type { ButtonProps, LinkButtonProps } from "@simplybusiness/mobius";
2
+ export declare const LinkOrButton: ({ href, children, ...rest }: LinkButtonProps | ButtonProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1 @@
1
+ export * from "./Actions";
@@ -0,0 +1,6 @@
1
+ import { FC } from "react";
2
+ export interface AddressProps {
3
+ address: Array<string[]>;
4
+ }
5
+ declare const Address: FC<AddressProps>;
6
+ export { Address };
@@ -0,0 +1,5 @@
1
+ import type { AddressesType } from "./types";
2
+ export type AddressProps = {
3
+ addresses: AddressesType;
4
+ };
5
+ export declare const Addresses: (props: AddressProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { FC } from "react";
2
+ export interface CopyrightProps {
3
+ text: string;
4
+ withLogo: boolean;
5
+ }
6
+ declare const Copyright: FC<CopyrightProps>;
7
+ export { Copyright };
@@ -0,0 +1,2 @@
1
+ import type { FooterProps } from "./types";
2
+ export declare const Footer: (props: FooterProps) => import("react/jsx-runtime").JSX.Element;
@@ -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,7 @@
1
+ import { FC } from "react";
2
+ import { LinkType } from "./types";
3
+ export interface LegalProps {
4
+ legalLinks: LinkType[];
5
+ }
6
+ declare const Legal: FC<LegalProps>;
7
+ export { Legal };
@@ -0,0 +1,5 @@
1
+ import type { LegalLinksType } from "./types";
2
+ export type LegalLinkProps = {
3
+ links: LegalLinksType;
4
+ };
5
+ export declare const LegalLinks: (props: LegalLinkProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { OpeningHoursProps } from "./types";
2
+ export declare const OpeningHours: (props: OpeningHoursProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { OpeningHoursEntryType } from "../../types";
2
+ export declare const OpeningHoursEntry: (props: OpeningHoursEntryType) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import type { SmallPrintType } from "./types";
2
+ export type SmallPrintProps = {
3
+ text: SmallPrintType;
4
+ };
5
+ export declare const SmallPrint: (props: SmallPrintProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import type { FooterProps } from "./types";
2
+ export type SupportProps = Pick<FooterProps, "openingHours" | "phoneNumber">;
3
+ export declare const Support: (props: SupportProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { ReactNode } from "react";
2
+ export type TitleProps = {
3
+ children: ReactNode;
4
+ };
5
+ export declare const Title: (props: TitleProps) => import("react/jsx-runtime").JSX.Element;
@@ -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,2 @@
1
+ export * from "./Footer";
2
+ export * from "./types";
@@ -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,2 @@
1
+ import type { ContactDetailsProps } from "./types";
2
+ export declare const ContactDetails: ({ phoneNumber, whiteLabel, openingHours, supportUrl, openingHoursLabel, flagUrl, }: ContactDetailsProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { HeaderProps } from "./types";
2
+ export declare const Header: ({ className, whiteLabel, url, phoneNumber, openingHours, supportUrl, openingHoursLabel, flagUrl, ...otherProps }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
@@ -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,2 @@
1
+ import type { LogoProps } from "./types";
2
+ export declare const Logo: ({ whiteLabel, url }: LogoProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { OpeningHoursType } from "../../types";
2
+ export declare const OPENING_HOURS_LABEL = "See our opening hours";
3
+ export declare const OPENING_HOURS_US: OpeningHoursType;
4
+ export declare const LOGO_LINK = "https://www.simplybusiness.co.uk/";
@@ -0,0 +1,3 @@
1
+ export * from "./constants";
2
+ export * from "./Header";
3
+ export * from "./types";
@@ -0,0 +1,4 @@
1
+ export type OpeningHoursType = {
2
+ [key: string]: string;
3
+ };
4
+ export declare const OPENING_HOURS: OpeningHoursType;
@@ -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,6 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { HelpWidget } from "./HelpWidget";
3
+ type StoryType = StoryObj<typeof HelpWidget>;
4
+ declare const meta: Meta<typeof HelpWidget>;
5
+ export declare const Normal: StoryType;
6
+ export default meta;
@@ -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,6 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { MaskedField } from "./MaskedField";
3
+ type StoryType = StoryObj<typeof MaskedField>;
4
+ declare const meta: Meta<typeof MaskedField>;
5
+ export declare const Normal: StoryType;
6
+ export default meta;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { MaskedField } from "./MaskedField";
3
+ type StoryType = StoryObj<typeof MaskedField>;
4
+ declare const meta: Meta<typeof MaskedField>;
5
+ export declare const Normal: StoryType;
6
+ export default meta;
@@ -0,0 +1 @@
1
+ export * from "./MaskedField";
@@ -0,0 +1,10 @@
1
+ export declare const INPUT_FORMATTERS: {
2
+ ssn: {
3
+ clean: (value: string) => string;
4
+ transform: (value: string) => string;
5
+ };
6
+ fein: {
7
+ clean: (value: string) => string;
8
+ transform: (value: string) => string;
9
+ };
10
+ };
@@ -0,0 +1,2 @@
1
+ import { PageProps } from "../../data/page-contract-flat";
2
+ export declare const PageFlat: (props: PageProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { PageFlat } from "./PageFlat";
3
+ type StoryType = StoryObj<typeof PageFlat>;
4
+ declare const meta: Meta<typeof PageFlat>;
5
+ export declare const Normal: StoryType;
6
+ export default meta;
@@ -0,0 +1 @@
1
+ export * from "./PageFlat";
@@ -0,0 +1,2 @@
1
+ import { PageProps } from "../../data/page-contract-nested";
2
+ export declare const PageNested: (props: PageProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { PageNested } from "./PageNested";
3
+ type StoryType = StoryObj<typeof PageNested>;
4
+ declare const meta: Meta<typeof PageNested>;
5
+ export declare const Normal: StoryType;
6
+ export default meta;
@@ -0,0 +1 @@
1
+ export * from "./PageNested";
@@ -0,0 +1,6 @@
1
+ export type PaymentConfirmationProps = {
2
+ policyRef: string;
3
+ policyStartDate: string;
4
+ email: string;
5
+ };
6
+ export declare const PaymentConfirmation: (props: PaymentConfirmationProps) => import("react/jsx-runtime").JSX.Element;
@@ -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 * from "./PaymentConfirmation";
@@ -0,0 +1,6 @@
1
+ export type PercentageItemProps = {
2
+ itemLabel: string;
3
+ maxRemainder?: number;
4
+ onChange: (val: number) => void;
5
+ };
6
+ export declare const PercentageItem: ({ itemLabel, maxRemainder, onChange, }: PercentageItemProps) => import("react/jsx-runtime").JSX.Element;
@@ -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 };
@@ -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,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 * from "./PercentageTotalsQuestion";
@@ -0,0 +1,5 @@
1
+ type LogoBbbAccreditedBusinessProps = {
2
+ className?: string;
3
+ };
4
+ export declare const LogoBbbAccreditedBusiness: (props: LogoBbbAccreditedBusinessProps) => import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1,5 @@
1
+ type LogoForbesAdvisorProps = {
2
+ className?: string;
3
+ };
4
+ export declare const LogoForbesAdvisor: (props: LogoForbesAdvisorProps) => import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -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,6 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { PreFooter } from "./PreFooter";
3
+ type StoryType = StoryObj<typeof PreFooter>;
4
+ declare const meta: Meta<typeof PreFooter>;
5
+ export declare const Normal: StoryType;
6
+ export default meta;
@@ -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 * 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 * from "./QuestionHelp";
@@ -0,0 +1,3 @@
1
+ import { IconDefinition } from "@simplybusiness/icons";
2
+ declare const question: IconDefinition;
3
+ export { question };