@mrfylke/contact-form 0.1.3 → 0.1.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 (314) hide show
  1. package/lib/ContactFormRoot.d.ts.map +1 -1
  2. package/lib/ContactFormRoot.js +3 -1
  3. package/lib/commoneEvents.d.ts.map +1 -1
  4. package/lib/components/button/button.d.ts.map +1 -1
  5. package/lib/components/button/index.d.ts.map +1 -1
  6. package/lib/components/button/link.d.ts.map +1 -1
  7. package/lib/components/button/utils.d.ts.map +1 -1
  8. package/lib/components/checkbox/checkbox.d.ts.map +1 -1
  9. package/lib/components/checkbox/index.d.ts.map +1 -1
  10. package/lib/components/error-message/error-message.d.ts.map +1 -1
  11. package/lib/components/error-message/index.d.ts.map +1 -1
  12. package/lib/components/external-link-page.d.ts +1 -1
  13. package/lib/components/external-link-page.d.ts.map +1 -1
  14. package/lib/components/external-link-page.js +7 -6
  15. package/lib/components/form/date-selector.d.ts +1 -1
  16. package/lib/components/form/date-selector.d.ts.map +1 -1
  17. package/lib/components/form/description-modal.d.ts.map +1 -1
  18. package/lib/components/form/field-wrapper-with-error/index.d.ts +1 -1
  19. package/lib/components/form/field-wrapper-with-error/index.d.ts.map +1 -1
  20. package/lib/components/form/fieldset/index.d.ts.map +1 -1
  21. package/lib/components/form/file-input.d.ts.map +1 -1
  22. package/lib/components/form/file-input.js +1 -1
  23. package/lib/components/form/form-component-label/index.d.ts.map +1 -1
  24. package/lib/components/form/index.d.ts.map +1 -1
  25. package/lib/components/form/input.d.ts +1 -1
  26. package/lib/components/form/input.d.ts.map +1 -1
  27. package/lib/components/form/input.js +1 -1
  28. package/lib/components/form/radio.d.ts.map +1 -1
  29. package/lib/components/form/searchable-select/index.d.ts.map +1 -1
  30. package/lib/components/form/searchable-select/searchable-select.d.ts.map +1 -1
  31. package/lib/components/form/searchable-select/searchable-select.js +1 -1
  32. package/lib/components/form/searchable-select/utils.d.ts +1 -1
  33. package/lib/components/form/searchable-select/utils.d.ts.map +1 -1
  34. package/lib/components/form/select.d.ts.map +1 -1
  35. package/lib/components/form/textarea.d.ts.map +1 -1
  36. package/lib/components/form/time-selector.d.ts +1 -1
  37. package/lib/components/form/time-selector.d.ts.map +1 -1
  38. package/lib/components/icon/checkbox-icon.d.ts +1 -1
  39. package/lib/components/icon/checkbox-icon.d.ts.map +1 -1
  40. package/lib/components/icon/checkbox-icon.js +1 -1
  41. package/lib/components/icon/color-icon.d.ts.map +1 -1
  42. package/lib/components/icon/color-icon.js +0 -2
  43. package/lib/components/icon/generated-icons.d.ts +233 -233
  44. package/lib/components/icon/generated-icons.d.ts.map +1 -1
  45. package/lib/components/icon/generated-icons.js +1771 -1771
  46. package/lib/components/icon/icon-wrapper.d.ts +1 -1
  47. package/lib/components/icon/icon-wrapper.d.ts.map +1 -1
  48. package/lib/components/icon/illustration.d.ts.map +1 -1
  49. package/lib/components/icon/illustration.js +0 -2
  50. package/lib/components/icon/image.d.ts.map +1 -1
  51. package/lib/components/icon/image.js +0 -2
  52. package/lib/components/icon/mono-icon-new.d.ts +2 -2
  53. package/lib/components/icon/mono-icon-new.d.ts.map +1 -1
  54. package/lib/components/icon/mono-icon.d.ts +1 -1
  55. package/lib/components/icon/mono-icon.d.ts.map +1 -1
  56. package/lib/components/icon/mono-icon.js +1 -3
  57. package/lib/components/index.d.ts.map +1 -1
  58. package/lib/components/loading/index.d.ts +1 -1
  59. package/lib/components/loading/index.d.ts.map +1 -1
  60. package/lib/components/section-card/index.d.ts.map +1 -1
  61. package/lib/components/section-card/section-card.d.ts.map +1 -1
  62. package/lib/components/typography/index.d.ts +6 -5
  63. package/lib/components/typography/index.d.ts.map +1 -1
  64. package/lib/components/typography/index.js +0 -1
  65. package/lib/index.d.ts +2 -2
  66. package/lib/index.d.ts.map +1 -1
  67. package/lib/journey-info/events.d.ts +6 -6
  68. package/lib/journey-info/events.d.ts.map +1 -1
  69. package/lib/journey-info/events.js +0 -1
  70. package/lib/journey-info/index.d.ts.map +1 -1
  71. package/lib/journey-info/index.js +4 -2
  72. package/lib/journey-info/journeyInfoStateMachine.d.ts.map +1 -1
  73. package/lib/layouts/contact-form-container.d.ts.map +1 -1
  74. package/lib/layouts/contact-form-footer.d.ts +1 -1
  75. package/lib/layouts/contact-form-footer.d.ts.map +1 -1
  76. package/lib/layouts/contact-form-footer.js +39 -23
  77. package/lib/layouts/contact-form-header.d.ts.map +1 -1
  78. package/lib/layouts/contact-form-header.js +12 -7
  79. package/lib/layouts/contact-page-layout.d.ts +2 -2
  80. package/lib/layouts/contact-page-layout.d.ts.map +1 -1
  81. package/lib/layouts/contact-page-layout.js +1 -5
  82. package/lib/layouts/index.d.ts.map +1 -1
  83. package/lib/lines/use-lines.d.ts.map +1 -1
  84. package/lib/means-of-transport/events.d.ts +7 -7
  85. package/lib/means-of-transport/events.d.ts.map +1 -1
  86. package/lib/means-of-transport/events.js +0 -1
  87. package/lib/means-of-transport/forms/delayForm.d.ts.map +1 -1
  88. package/lib/means-of-transport/forms/driverForm.d.ts.map +1 -1
  89. package/lib/means-of-transport/forms/index.d.ts.map +1 -1
  90. package/lib/means-of-transport/forms/injuryForm.d.ts.map +1 -1
  91. package/lib/means-of-transport/forms/serviceOfferingForm.d.ts.map +1 -1
  92. package/lib/means-of-transport/forms/stopForm.d.ts.map +1 -1
  93. package/lib/means-of-transport/forms/transportationForm.d.ts.map +1 -1
  94. package/lib/means-of-transport/index.d.ts.map +1 -1
  95. package/lib/means-of-transport/index.js +4 -2
  96. package/lib/means-of-transport/means-of-transport-form-machine.d.ts.map +1 -1
  97. package/lib/means-of-transport/means-of-transport-form-machine.js +5 -1
  98. package/lib/modules/api-browser/index.d.ts.map +1 -1
  99. package/lib/modules/config/context.d.ts.map +1 -1
  100. package/lib/modules/config/theme-adapter.d.ts.map +1 -1
  101. package/lib/modules/config/types.d.ts +2 -2
  102. package/lib/modules/config/types.d.ts.map +1 -1
  103. package/lib/modules/graphql-types/index.d.ts.map +1 -1
  104. package/lib/modules/graphql-types/journeyplanner-types_v3.generated.d.ts.map +1 -1
  105. package/lib/modules/theme/index.d.ts.map +1 -1
  106. package/lib/modules/theme/theme-context.d.ts +1 -1
  107. package/lib/modules/theme/theme-context.d.ts.map +1 -1
  108. package/lib/modules/theme/theme-context.js +9 -6
  109. package/lib/modules/transport-mode/filter/filter.d.ts.map +1 -1
  110. package/lib/modules/transport-mode/filter/index.d.ts.map +1 -1
  111. package/lib/modules/transport-mode/filter/types.d.ts.map +1 -1
  112. package/lib/modules/transport-mode/filter/utils.d.ts.map +1 -1
  113. package/lib/modules/transport-mode/icon/index.d.ts.map +1 -1
  114. package/lib/modules/transport-mode/icon/index.js +1 -1
  115. package/lib/modules/transport-mode/index.d.ts.map +1 -1
  116. package/lib/modules/transport-mode/types.d.ts.map +1 -1
  117. package/lib/modules/transport-mode/utils.d.ts.map +1 -1
  118. package/lib/refund/events.d.ts +12 -12
  119. package/lib/refund/events.d.ts.map +1 -1
  120. package/lib/refund/events.js +0 -1
  121. package/lib/refund/forms/refund-and-travel-guarantee/index.d.ts.map +1 -1
  122. package/lib/refund/forms/refund-and-travel-guarantee/refundCarForm.d.ts.map +1 -1
  123. package/lib/refund/forms/refund-and-travel-guarantee/refundTaxiForm.d.ts.map +1 -1
  124. package/lib/refund/forms/refund-ticket/appTicketRefund.d.ts.map +1 -1
  125. package/lib/refund/forms/refund-ticket/index.d.ts.map +1 -1
  126. package/lib/refund/forms/refund-ticket/otherTicketRefund.d.ts.map +1 -1
  127. package/lib/refund/index.d.ts.map +1 -1
  128. package/lib/refund/index.js +4 -2
  129. package/lib/refund/refundFormMachine.d.ts.map +1 -1
  130. package/lib/refund/refundFormMachine.js +9 -3
  131. package/lib/server/index.d.ts +1 -1
  132. package/lib/server/index.d.ts.map +1 -1
  133. package/lib/server/journey-planner/authority.d.ts.map +1 -1
  134. package/lib/server/journey-planner/entur-client.d.ts.map +1 -1
  135. package/lib/server/journey-planner/index.d.ts.map +1 -1
  136. package/lib/server/journey-planner/journey-gql/lines.generated.d.ts +1 -1
  137. package/lib/server/journey-planner/journey-gql/lines.generated.d.ts.map +1 -1
  138. package/lib/server/journey-planner/journey-gql/lines.generated.js +11 -11
  139. package/lib/server/journey-planner/validators.d.ts.map +1 -1
  140. package/lib/server/types.d.ts.map +1 -1
  141. package/lib/ticket-control/events.d.ts +6 -6
  142. package/lib/ticket-control/events.d.ts.map +1 -1
  143. package/lib/ticket-control/events.js +0 -1
  144. package/lib/ticket-control/forms/feeComplaintForm.d.ts.map +1 -1
  145. package/lib/ticket-control/forms/feedbackForm.d.ts.map +1 -1
  146. package/lib/ticket-control/forms/postponePayment.d.ts.map +1 -1
  147. package/lib/ticket-control/index.d.ts.map +1 -1
  148. package/lib/ticket-control/index.js +4 -2
  149. package/lib/ticket-control/ticket-control-form-machine.d.ts.map +1 -1
  150. package/lib/ticket-control/ticket-control-form-machine.js +7 -2
  151. package/lib/ticketing/events.d.ts +10 -10
  152. package/lib/ticketing/events.d.ts.map +1 -1
  153. package/lib/ticketing/events.js +0 -1
  154. package/lib/ticketing/forms/app/appAccountForm.d.ts.map +1 -1
  155. package/lib/ticketing/forms/app/appTicketingForm.d.ts.map +1 -1
  156. package/lib/ticketing/forms/app/appTravelSuggestionForm.d.ts.map +1 -1
  157. package/lib/ticketing/forms/app/index.d.ts.map +1 -1
  158. package/lib/ticketing/forms/app/index.js +1 -1
  159. package/lib/ticketing/forms/priceAndTicketTypesForm.d.ts.map +1 -1
  160. package/lib/ticketing/forms/travel-card/index.d.ts.map +1 -1
  161. package/lib/ticketing/forms/travel-card/index.js +1 -1
  162. package/lib/ticketing/forms/travel-card/orderTravelCard.d.ts.map +1 -1
  163. package/lib/ticketing/forms/travel-card/travelCardQuestionForm.d.ts.map +1 -1
  164. package/lib/ticketing/forms/webshop/index.d.ts.map +1 -1
  165. package/lib/ticketing/forms/webshop/index.js +1 -1
  166. package/lib/ticketing/forms/webshop/webshopAccountForm.d.ts.map +1 -1
  167. package/lib/ticketing/forms/webshop/webshopTicketingForm.d.ts.map +1 -1
  168. package/lib/ticketing/index.d.ts.map +1 -1
  169. package/lib/ticketing/index.js +4 -2
  170. package/lib/ticketing/ticketingStateMachine.d.ts.map +1 -1
  171. package/lib/ticketing/ticketingStateMachine.js +2 -1
  172. package/lib/translations/common/index.d.ts.map +1 -1
  173. package/lib/translations/common/layout.d.ts.map +1 -1
  174. package/lib/translations/commons.d.ts.map +1 -1
  175. package/lib/translations/components/index.d.ts.map +1 -1
  176. package/lib/translations/components/map.d.ts.map +1 -1
  177. package/lib/translations/components/search.d.ts.map +1 -1
  178. package/lib/translations/components/transport-mode.d.ts.map +1 -1
  179. package/lib/translations/dictionary.d.ts.map +1 -1
  180. package/lib/translations/index.d.ts +2 -2
  181. package/lib/translations/index.d.ts.map +1 -1
  182. package/lib/translations/json-to-override.d.ts.map +1 -1
  183. package/lib/translations/json-to-override.js +15 -5
  184. package/lib/translations/language-context.d.ts.map +1 -1
  185. package/lib/translations/language-context.js +5 -9
  186. package/lib/translations/load-org-translations.d.ts.map +1 -1
  187. package/lib/translations/merge-overrides.d.ts.map +1 -1
  188. package/lib/translations/merge-overrides.js +3 -1
  189. package/lib/translations/modules/index.d.ts.map +1 -1
  190. package/lib/translations/modules/situation.d.ts.map +1 -1
  191. package/lib/translations/pages/contact.d.ts +1 -1
  192. package/lib/translations/pages/contact.d.ts.map +1 -1
  193. package/lib/translations/pages/departures.d.ts.map +1 -1
  194. package/lib/translations/pages/index.d.ts.map +1 -1
  195. package/lib/translations/server/endpoints.d.ts.map +1 -1
  196. package/lib/translations/server/index.d.ts.map +1 -1
  197. package/lib/translations/translations-context.d.ts.map +1 -1
  198. package/lib/translations/types.d.ts.map +1 -1
  199. package/lib/translations/utils.d.ts.map +1 -1
  200. package/lib/translations/utils.js +3 -1
  201. package/lib/types/submit-payloads.d.ts.map +1 -1
  202. package/lib/types.d.ts +1 -1
  203. package/lib/types.d.ts.map +1 -1
  204. package/lib/utils/color.js +1 -1
  205. package/lib/utils/date.d.ts.map +1 -1
  206. package/lib/utils/date.js +1 -1
  207. package/lib/utils/env.d.ts.map +1 -1
  208. package/lib/utils/presence.d.ts.map +1 -1
  209. package/lib/utils/use-localstorage.d.ts.map +1 -1
  210. package/lib/utils.d.ts +1 -1
  211. package/lib/utils.d.ts.map +1 -1
  212. package/lib/validation/commonInputValidator.d.ts.map +1 -1
  213. package/lib/validation/index.d.ts.map +1 -1
  214. package/lib/validation/validationRules.d.ts.map +1 -1
  215. package/package.json +1 -1
  216. package/lib/modules/api-server/external-client.d.ts +0 -22
  217. package/lib/modules/api-server/external-client.d.ts.map +0 -1
  218. package/lib/modules/api-server/external-client.js +0 -86
  219. package/lib/modules/api-server/index.d.ts +0 -9
  220. package/lib/modules/api-server/index.d.ts.map +0 -1
  221. package/lib/modules/api-server/index.js +0 -24
  222. package/lib/modules/api-server/requesters/graphql-requester.d.ts +0 -6
  223. package/lib/modules/api-server/requesters/graphql-requester.d.ts.map +0 -1
  224. package/lib/modules/api-server/requesters/graphql-requester.js +0 -63
  225. package/lib/modules/api-server/requesters/http-requester.d.ts +0 -3
  226. package/lib/modules/api-server/requesters/http-requester.d.ts.map +0 -1
  227. package/lib/modules/api-server/requesters/http-requester.js +0 -110
  228. package/lib/modules/api-server/requesters/types.d.ts +0 -37
  229. package/lib/modules/api-server/requesters/types.d.ts.map +0 -1
  230. package/lib/modules/api-server/requesters/types.js +0 -34
  231. package/lib/modules/api-server/requesters/utils.d.ts +0 -17
  232. package/lib/modules/api-server/requesters/utils.d.ts.map +0 -1
  233. package/lib/modules/api-server/requesters/utils.js +0 -75
  234. package/lib/modules/cookies/constants.d.ts +0 -4
  235. package/lib/modules/cookies/constants.d.ts.map +0 -1
  236. package/lib/modules/cookies/constants.js +0 -6
  237. package/lib/modules/cookies/cookies-context.d.ts +0 -17
  238. package/lib/modules/cookies/cookies-context.d.ts.map +0 -1
  239. package/lib/modules/cookies/cookies-context.js +0 -61
  240. package/lib/modules/cookies/index.d.ts +0 -15
  241. package/lib/modules/cookies/index.d.ts.map +0 -1
  242. package/lib/modules/cookies/index.js +0 -22
  243. package/lib/modules/firebase/analytics.d.ts +0 -3
  244. package/lib/modules/firebase/analytics.d.ts.map +0 -1
  245. package/lib/modules/firebase/analytics.js +0 -40
  246. package/lib/modules/firebase/firebase.d.ts +0 -4
  247. package/lib/modules/firebase/firebase.d.ts.map +0 -1
  248. package/lib/modules/firebase/firebase.js +0 -19
  249. package/lib/modules/firebase/index.d.ts +0 -5
  250. package/lib/modules/firebase/index.d.ts.map +0 -1
  251. package/lib/modules/firebase/index.js +0 -25
  252. package/lib/modules/firebase/preassigned-fare-products.d.ts +0 -8
  253. package/lib/modules/firebase/preassigned-fare-products.d.ts.map +0 -1
  254. package/lib/modules/firebase/preassigned-fare-products.js +0 -35
  255. package/lib/modules/firebase/tariff-zones.d.ts +0 -17
  256. package/lib/modules/firebase/tariff-zones.d.ts.map +0 -1
  257. package/lib/modules/firebase/tariff-zones.js +0 -32
  258. package/lib/modules/firebase/transport-mode-filter.d.ts +0 -27
  259. package/lib/modules/firebase/transport-mode-filter.d.ts.map +0 -1
  260. package/lib/modules/firebase/transport-mode-filter.js +0 -27
  261. package/lib/modules/firebase/types.d.ts +0 -19
  262. package/lib/modules/firebase/types.d.ts.map +0 -1
  263. package/lib/modules/firebase/types.js +0 -15
  264. package/lib/modules/logging/index.d.ts +0 -6
  265. package/lib/modules/logging/index.d.ts.map +0 -1
  266. package/lib/modules/logging/index.js +0 -13
  267. package/lib/modules/logging/log-api-response.d.ts +0 -15
  268. package/lib/modules/logging/log-api-response.d.ts.map +0 -1
  269. package/lib/modules/logging/log-api-response.js +0 -52
  270. package/lib/modules/logging/log-page-access.d.ts +0 -20
  271. package/lib/modules/logging/log-page-access.d.ts.map +0 -1
  272. package/lib/modules/logging/log-page-access.js +0 -60
  273. package/lib/modules/logging/logger.d.ts +0 -3
  274. package/lib/modules/logging/logger.d.ts.map +0 -1
  275. package/lib/modules/logging/logger.js +0 -32
  276. package/lib/modules/logging/timer.d.ts +0 -6
  277. package/lib/modules/logging/timer.d.ts.map +0 -1
  278. package/lib/modules/logging/timer.js +0 -13
  279. package/lib/modules/logging/with-access-logging.d.ts +0 -5
  280. package/lib/modules/logging/with-access-logging.d.ts.map +0 -1
  281. package/lib/modules/logging/with-access-logging.js +0 -20
  282. package/lib/modules/transport-mode/icon/transport-icon-new.d.ts +0 -28
  283. package/lib/modules/transport-mode/icon/transport-icon-new.d.ts.map +0 -1
  284. package/lib/modules/transport-mode/icon/transport-icon-new.js +0 -114
  285. package/lib/server/contact/index.d.ts +0 -11
  286. package/lib/server/contact/index.d.ts.map +0 -1
  287. package/lib/server/contact/index.js +0 -47
  288. package/lib/translations/__tests__/utils.test.d.ts +0 -2
  289. package/lib/translations/__tests__/utils.test.d.ts.map +0 -1
  290. package/lib/translations/__tests__/utils.test.js +0 -35
  291. package/lib/translations/pages/assistant.d.ts +0 -2
  292. package/lib/translations/pages/assistant.d.ts.map +0 -1
  293. package/lib/translations/pages/assistant.js +0 -303
  294. package/lib/utils/enum-from-string.d.ts +0 -4
  295. package/lib/utils/enum-from-string.d.ts.map +0 -1
  296. package/lib/utils/enum-from-string.js +0 -9
  297. package/lib/utils/only-uniques.d.ts +0 -3
  298. package/lib/utils/only-uniques.d.ts.map +0 -1
  299. package/lib/utils/only-uniques.js +0 -7
  300. package/lib/utils/org-theme-definitions.d.ts +0 -5
  301. package/lib/utils/org-theme-definitions.d.ts.map +0 -1
  302. package/lib/utils/org-theme-definitions.js +0 -13
  303. package/lib/utils/reference-data.d.ts +0 -15
  304. package/lib/utils/reference-data.d.ts.map +0 -1
  305. package/lib/utils/reference-data.js +0 -15
  306. package/lib/utils/use-client-width.d.ts +0 -2
  307. package/lib/utils/use-client-width.d.ts.map +0 -1
  308. package/lib/utils/use-client-width.js +0 -18
  309. package/lib/utils/use-interval.d.ts +0 -2
  310. package/lib/utils/use-interval.d.ts.map +0 -1
  311. package/lib/utils/use-interval.js +0 -22
  312. package/lib/utils/use-now.d.ts +0 -2
  313. package/lib/utils/use-now.d.ts.map +0 -1
  314. package/lib/utils/use-now.js +0 -13
@@ -1,4 +1,4 @@
1
- import { IconName } from "../../modules/config";
1
+ import { IconName } from '../../modules/config';
2
2
  export type IconProps = {
3
3
  /** Name of the icon to display */
4
4
  icon: IconName;
@@ -1 +1 @@
1
- {"version":3,"file":"icon-wrapper.d.ts","sourceRoot":"","sources":["../../../src/components/icon/icon-wrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAgB,MAAM,sBAAsB,CAAC;AAE7D,MAAM,MAAM,SAAS,GAAG;IACpB,kCAAkC;IAClC,IAAI,EAAE,QAAQ,CAAC;IACf,uBAAuB;IACvB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iCAAiC;IACjC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,oBAAoB;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC/B,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,IAAI,CAAC,EACI,IAAI,EACJ,IAAe,EACf,SAAS,EACT,IAAY,EACZ,GAAQ,EACR,KAAK,GACR,EAAE,SAAS,kDAkBhC;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAWtE"}
1
+ {"version":3,"file":"icon-wrapper.d.ts","sourceRoot":"","sources":["../../../src/components/icon/icon-wrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAiB,MAAM,sBAAsB,CAAC;AAE/D,MAAM,MAAM,SAAS,GAAG;IACtB,kCAAkC;IAClC,IAAI,EAAE,QAAQ,CAAC;IACf,uBAAuB;IACvB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iCAAiC;IACjC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,oBAAoB;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,IAAI,CAAC,EACnB,IAAI,EACJ,IAAe,EACf,SAAS,EACT,IAAY,EACZ,GAAQ,EACR,KAAK,GACN,EAAE,SAAS,kDAkBX;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAWtE"}
@@ -1 +1 @@
1
- {"version":3,"file":"illustration.d.ts","sourceRoot":"","sources":["../../../src/components/icon/illustration.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAGvD,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAChC,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAClC,KAAK,CACR,GAAG;IACA,KAAK,EAAE,aAAa,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,wBAAgB,YAAY,CAAC,EAAC,KAAK,EAAE,GAAG,KAAK,EAAC,EAAE,iBAAiB,2CAiBhE"}
1
+ {"version":3,"file":"illustration.d.ts","sourceRoot":"","sources":["../../../src/components/icon/illustration.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGzD,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAClC,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAClC,KAAK,CACN,GAAG;IACF,KAAK,EAAE,aAAa,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,2CAgBlE"}
@@ -9,12 +9,10 @@ function Illustration({ image, ...props }) {
9
9
  const currentIcon = generated_icons_1.icons['illustration'][image];
10
10
  if (!currentIcon.darkable) {
11
11
  const totalPath = `/assets/${currentIcon.relative}`;
12
- // eslint-disable-next-line
13
12
  return (0, jsx_runtime_1.jsx)("img", { src: totalPath, ...props });
14
13
  }
15
14
  else {
16
15
  const totalPath = `/assets/${specifyDarkOrLight(currentIcon.relative, isDarkMode)}`;
17
- // eslint-disable-next-line
18
16
  return (0, jsx_runtime_1.jsx)("img", { src: totalPath, ...props });
19
17
  }
20
18
  }
@@ -1 +1 @@
1
- {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/components/icon/image.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAGhD,KAAK,eAAe,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,GAAG;IACrE,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,wBAAgB,KAAK,CAAC,EAAC,KAAK,EAAE,GAAG,KAAK,EAAC,EAAE,eAAe,2CAmBvD"}
1
+ {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/components/icon/image.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAGlD,KAAK,eAAe,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,GAAG;IACvE,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,wBAAgB,KAAK,CAAC,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,2CAkBzD"}
@@ -10,12 +10,10 @@ function Image({ image, ...props }) {
10
10
  const currentIcon = generated_icons_1.icons['images'][image];
11
11
  if (!currentIcon.darkable) {
12
12
  const totalPath = `/assets/${currentIcon.relative}`;
13
- // eslint-disable-next-line
14
13
  return (0, jsx_runtime_1.jsx)("img", { ...extras, src: totalPath, ...props });
15
14
  }
16
15
  else {
17
16
  const totalPath = `/assets/${specifyDarkOrLight(currentIcon.relative, isDarkMode)}`;
18
- // eslint-disable-next-line
19
17
  return (0, jsx_runtime_1.jsx)("img", { ...extras, src: totalPath, ...props });
20
18
  }
21
19
  }
@@ -1,5 +1,5 @@
1
- import { InteractiveColor, InteractiveState } from "@atb-as/theme";
2
- import { IconName } from "../../modules/config";
1
+ import { InteractiveColor, InteractiveState } from '@atb-as/theme';
2
+ import { IconName } from '../../modules/config';
3
3
  export type MonoIconOverrideMode = 'none' | 'dark' | 'light';
4
4
  export type SizeProps = 'small' | 'normal' | 'large';
5
5
  export type MonoIconProps = Omit<React.JSX.IntrinsicElements['div'], 'ref'> & {
@@ -1 +1 @@
1
- {"version":3,"file":"mono-icon-new.d.ts","sourceRoot":"","sources":["../../../src/components/icon/mono-icon-new.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAC,gBAAgB,EAAE,gBAAgB,EAAC,MAAM,eAAe,CAAC;AAEjE,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAE9C,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAC7D,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAErD,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,GAAG;IAC1E;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,IAAI,EAAE,QAAQ,CAAC;IACf;;;OAGG;IACH,YAAY,CAAC,EAAE,oBAAoB,CAAC;IACpC;;O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{ MonoIcons } from './generated-icons';
2
2
  import { SizeProps } from './utils';
3
- import { InteractiveColor, InteractiveState } from "@atb-as/theme";
3
+ import { InteractiveColor, InteractiveState } from '@atb-as/theme';
4
4
  export type MonoIconOverrideMode = 'none' | 'dark' | 'light';
5
5
  export type { SizeProps };
6
6
  export type MonoIconProps = Omit<React.JSX.IntrinsicElements['img'], 'src'> & {
@@ -1 +1 @@
1
- {"version":3,"file":"mono-icon.d.ts","sourceRoot":"","sources":["../../../src/components/icon/mono-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAQ,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAC,SAAS,EAAU,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAC,gBAAgB,EAAE,gBAAgB,EAAgB,MAAM,eAAe,CAAC;AAIhF,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAE7D,YAAY,EAAC,SAAS,EAAC,CAAC;AACxB,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,GAAG;IAC1E;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;;OAGG;IACH,YAAY,CAAC,EAAE,oBAAoB,CAAC;IACpC;;OAEG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACvC,CAAC;AAEF,wBAAgB,QAAQ,CAAC,EACI,IAAI,EACJ,IAAe,EACf,YAAqB,EACrB,gBAAgB,EAChB,gBAAgB,EAChB,GAAG,KAAK,EACX,EAAE,aAAa,2CAqBxC;AAED,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"mono-icon.d.ts","sourceRoot":"","sources":["../../../src/components/icon/mono-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAS,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAW,MAAM,SAAS,CAAC;AAC7C,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAEjB,MAAM,eAAe,CAAC;AAIvB,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAE7D,YAAY,EAAE,SAAS,EAAE,CAAC;AAC1B,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,GAAG;IAC5E;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;;OAGG;IACH,YAAY,CAAC,EAAE,oBAAoB,CAAC;IACpC;;OAEG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC,CAAC;AAEF,wBAAgB,QAAQ,CAAC,EACvB,IAAI,EACJ,IAAe,EACf,YAAqB,EACrB,gBAAgB,EAChB,gBAAgB,EAChB,GAAG,KAAK,EACT,EAAE,aAAa,2CAoBf;AAED,eAAe,QAAQ,CAAC"}
@@ -15,9 +15,7 @@ function MonoIcon({ icon, size = 'normal', overrideMode = 'none', interactiveCol
15
15
  (isDarkMode ? 'dark' : 'light');
16
16
  const totalPath = `/assets/${insertMode(currentIcon.relative, darkModeString)}`;
17
17
  const wh = (0, utils_1.useSize)(size);
18
- return (
19
- // eslint-disable-next-line
20
- (0, jsx_runtime_1.jsx)("img", { src: totalPath, width: wh, height: wh, role: "none", alt: "", ...props }));
18
+ return ((0, jsx_runtime_1.jsx)("img", { src: totalPath, width: wh, height: wh, role: "none", alt: "", ...props }));
21
19
  }
22
20
  exports.default = MonoIcon;
23
21
  function insertMode(relative, mode) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,qBAAqB,EACrB,SAAS,EACT,QAAQ,EACR,KAAK,EACL,KAAK,EACL,MAAM,EACN,QAAQ,EACR,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,YAAY,EACZ,YAAY,GACf,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,SAAS,EACT,QAAQ,EACR,KAAK,EACL,KAAK,EACL,MAAM,EACN,QAAQ,EACR,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,YAAY,EACZ,YAAY,GACb,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { ColorIconProps } from "../icon";
1
+ import { ColorIconProps } from '../icon';
2
2
  export type LoadingProps = {
3
3
  /**
4
4
  * Loading text string.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/loading/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAY,cAAc,EAAC,MAAM,SAAS,CAAC;AAElD,MAAM,MAAM,YAAY,GAAG;IACvB;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,wBAAgB,OAAO,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,EAAE,YAAY,2CAkBnD;AAED,wBAAgB,WAAW,CAAC,EACI,IAAI,EACJ,QAAQ,GACX,EAAE;IAC3B,IAAI,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,2CAYA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/loading/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAa,cAAc,EAAE,MAAM,SAAS,CAAC;AAEpD,MAAM,MAAM,YAAY,GAAG;IACzB;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,wBAAgB,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,YAAY,2CAkBrD;AAED,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,QAAQ,GACT,EAAE;IACD,IAAI,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,2CAYA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/section-card/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/section-card/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"section-card.d.ts","sourceRoot":"","sources":["../../../src/components/section-card/section-card.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAC,iBAAiB,EAAC,MAAM,OAAO,CAAC;AAExC,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,CAAC;IAC7C,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC,CAAC;AAEH,eAAO,MAAM,WAAW,GAAI,qBAAmB,gBAAgB,4CAO9D,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"section-card.d.ts","sourceRoot":"","sources":["../../../src/components/section-card/section-card.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE1C,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,CAAC;IAC/C,KAAK,EAAE,MAAM,CAAC;CACf,CAAC,CAAC;AAEH,eAAO,MAAM,WAAW,GAAI,qBAAqB,gBAAgB,4CAOhE,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -8,12 +8,13 @@ type BaseTypographyInternal<E extends React.ElementType = React.ElementType> = R
8
8
  export type BaseTypographyProps<E extends React.ElementType> = BaseTypographyInternal<E> & Omit<React.ComponentProps<E>, keyof BaseTypographyInternal>;
9
9
  declare const __DEFAULT_ELEMENT__ = "span";
10
10
  export default function BaseTypography<E extends React.ElementType = typeof __DEFAULT_ELEMENT__>({ as, textType, testID, className, children, ...props }: BaseTypographyProps<E>): import("react/jsx-runtime").JSX.Element;
11
+ type SupportedTypes = 'div' | 'p' | 'span' | 'h2' | 'h3';
11
12
  export declare const Typo: {
12
- span: (props: BaseTypographyProps<"div" | "p" | "span" | "h2" | "h3">) => import("react/jsx-runtime").JSX.Element;
13
- div: (props: BaseTypographyProps<"div" | "p" | "span" | "h2" | "h3">) => import("react/jsx-runtime").JSX.Element;
14
- p: (props: BaseTypographyProps<"div" | "p" | "span" | "h2" | "h3">) => import("react/jsx-runtime").JSX.Element;
15
- h2: (props: BaseTypographyProps<"div" | "p" | "span" | "h2" | "h3">) => import("react/jsx-runtime").JSX.Element;
16
- h3: (props: BaseTypographyProps<"div" | "p" | "span" | "h2" | "h3">) => import("react/jsx-runtime").JSX.Element;
13
+ span: (props: BaseTypographyProps<SupportedTypes>) => import("react/jsx-runtime").JSX.Element;
14
+ div: (props: BaseTypographyProps<SupportedTypes>) => import("react/jsx-runtime").JSX.Element;
15
+ p: (props: BaseTypographyProps<SupportedTypes>) => import("react/jsx-runtime").JSX.Element;
16
+ h2: (props: BaseTypographyProps<SupportedTypes>) => import("react/jsx-runtime").JSX.Element;
17
+ h3: (props: BaseTypographyProps<SupportedTypes>) => import("react/jsx-runtime").JSX.Element;
17
18
  };
18
19
  export { screenReaderPause } from './utils';
19
20
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/typography/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AAG7C,KAAK,sBAAsB,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,IACvE,KAAK,CAAC,iBAAiB,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;IACpB,EAAE,CAAC,EAAE,CAAC,CAAC;IACP,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC,CAAC;AAEP,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,IACvD,sBAAsB,CAAC,CAAC,CAAC,GACzB,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,MAAM,sBAAsB,CAAC,CAAC;AAEhE,QAAA,MAAM,mBAAmB,SAAS,CAAC;AAEnC,MAAM,CAAC,OAAO,UAAU,cAAc,CAClC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,OAAO,mBAAmB,EAC1D,EACI,EAAE,EACF,QAAQ,EACR,MAAM,EACN,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACX,EAAE,mBAAmB,CAAC,CAAC,CAAC,2CAY1B;AAWD,eAAO,MAAM,IAAI;kBALmB,mBAAmB,oCAAY;iBAA/B,mBAAmB,oCAAY;eAA/B,mBAAmB,oCAAY;gBAA/B,mBAAmB,oCAAY;gBAA/B,mBAAmB,oCAAY;CAWlE,CAAC;AAEF,OAAO,EAAC,iBAAiB,EAAC,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/typography/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG/C,KAAK,sBAAsB,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,IACzE,KAAK,CAAC,iBAAiB,CAAC;IACtB,QAAQ,EAAE,SAAS,CAAC;IACpB,EAAE,CAAC,EAAE,CAAC,CAAC;IACP,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC,CAAC;AAEL,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,IACzD,sBAAsB,CAAC,CAAC,CAAC,GACvB,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,MAAM,sBAAsB,CAAC,CAAC;AAEhE,QAAA,MAAM,mBAAmB,SAAS,CAAC;AAEnC,MAAM,CAAC,OAAO,UAAU,cAAc,CACpC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,OAAO,mBAAmB,EACxD,EACA,EAAE,EACF,QAAQ,EACR,MAAM,EACN,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,mBAAmB,CAAC,CAAC,CAAC,2CAYxB;AAED,KAAK,cAAc,GAAG,KAAK,GAAG,GAAG,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;AAQzD,eAAO,MAAM,IAAI;kBALiB,mBAAmB,gBAAY;iBAA/B,mBAAmB,gBAAY;eAA/B,mBAAmB,gBAAY;gBAA/B,mBAAmB,gBAAY;gBAA/B,mBAAmB,gBAAY;CAWhE,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC"}
@@ -10,7 +10,6 @@ function BaseTypography({ as, textType, testID, className, children, ...props })
10
10
  const extraClass = `typo-${textType}`;
11
11
  return ((0, jsx_runtime_1.jsx)(Component, { ...props, className: (0, css_1.and)(extraClass, className), "data-testid": testID ? testID : undefined, children: children }));
12
12
  }
13
- const supportedTypes = ['div', 'p', 'span', 'h2', 'h3'];
14
13
  function createConstructor(key) {
15
14
  return function TypoType(props) {
16
15
  return (0, jsx_runtime_1.jsx)(BaseTypography, { as: key, ...props });
package/lib/index.d.ts CHANGED
@@ -3,7 +3,7 @@ export type { TicketControlSubmitPayload, RefundSubmitPayload, MeansOfTransportS
3
3
  export type { TransportModeType, ReasonForTransportFailure, TicketType, PurchasePlatformType, } from './types';
4
4
  export { TicketTypeId } from './types';
5
5
  export type { ContactFormConfig, IconComponent, IconName, IconSet, Theme, ThemeColors, ContrastColor, TransportColors, InteractiveColor, StatusColors, TypographyConfig, ApiConfig, OrgConfig, LayoutConfig, LayoutLinkLabel, PagesOverrides, FormSchemaOverrides, FormSchemaName, } from './modules/config';
6
- export { ThemeProvider, useTheme, useDarkMode, useHtmlDarkMode } from './modules/theme';
6
+ export { ThemeProvider, useTheme, useDarkMode, useHtmlDarkMode, } from './modules/theme';
7
7
  export { Icon } from './components/icon/icon-wrapper';
8
8
  export { MonoIcon } from './components/icon/mono-icon-new';
9
9
  export { ButtonLink } from './components/button';
@@ -12,7 +12,7 @@ export { type Line } from './server/journey-planner/validators';
12
12
  export { useLines, useTransportModeOptions } from './lines/use-lines';
13
13
  export { shouldShowContactPage } from './utils';
14
14
  export { ContactPageLayout, type ContactPageLayoutProps, getStandardContactPages, ContactFormContainer, type ContactFormContainerProps, } from './layouts';
15
- export { ExternalLinkPage, type ExternalLinkPageProps } from './components/external-link-page';
15
+ export { ExternalLinkPage, type ExternalLinkPageProps, } from './components/external-link-page';
16
16
  export { ErrorContent } from './error-content/error-content';
17
17
  export { SuccessContent } from './success-content/success-content';
18
18
  export { default as RefundContent } from './refund';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EACH,yBAAyB,EACzB,oBAAoB,EACpB,cAAc,EACd,aAAa,EACb,YAAY,EACZ,YAAY,GACf,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACR,0BAA0B,EAC1B,mBAAmB,EACnB,6BAA6B,EAC7B,sBAAsB,EACtB,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OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,YAAY,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAG3D,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,qCAAqC,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,EACL,iBAAiB,EACjB,KAAK,sBAAsB,EAC3B,uBAAuB,EACvB,oBAAoB,EACpB,KAAK,yBAAyB,GAC/B,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,gBAAgB,EAChB,KAAK,qBAAqB,GAC3B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,cAAc,gBAAgB,CAAC;AAG/B,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
@@ -1,14 +1,14 @@
1
1
  import { commonEvents } from '../commoneEvents';
2
- declare const journeyInfoSpecificFormEvents: {
3
- type: "ON_INPUT_CHANGE";
4
- inputName: "question";
2
+ type JourneyInfoSpecificFormEvents = {
3
+ type: 'ON_INPUT_CHANGE';
4
+ inputName: 'question';
5
5
  value: string | boolean;
6
6
  } | {
7
- type: "ON_SET_STATE";
7
+ type: 'ON_SET_STATE';
8
8
  } | {
9
- type: "SUBMIT";
9
+ type: 'SUBMIT';
10
10
  orderedFormFieldNames: string[];
11
11
  };
12
- export declare const journeyInfoFormEvents: typeof commonEvents | typeof journeyInfoSpecificFormEvents;
12
+ export declare const journeyInfoFormEvents: typeof commonEvents | JourneyInfoSpecificFormEvents;
13
13
  export {};
14
14
  //# sourceMappingURL=events.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/journey-info/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,kBAAkB,CAAC;AAE9C,QAAA,MAAM,6BAA6B,EAC7B;IACF,IAAI,EAAE,iBAAiB,CAAC;IACxB,SAAS,EAAE,UAAU,CAAC;IACtB,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;CAC3B,GACK;IACF,IAAI,EAAE,cAAc,CAAC;CACxB,GACK;IACF,IAAI,EAAE,QAAQ,CAAC;IACf,qBAAqB,EAAE,MAAM,EAAE,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAC5B,OAAO,YAAY,GACnB,OAAO,6BAA6B,CAAC"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/journey-info/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,KAAK,6BAA6B,GAC9B;IACE,IAAI,EAAE,iBAAiB,CAAC;IACxB,SAAS,EAAE,UAAU,CAAC;IACtB,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;CACzB,GACD;IACE,IAAI,EAAE,cAAc,CAAC;CACtB,GACD;IACE,IAAI,EAAE,QAAQ,CAAC;IACf,qBAAqB,EAAE,MAAM,EAAE,CAAC;CACjC,CAAC;AAEN,eAAO,MAAM,qBAAqB,EAC9B,OAAO,YAAY,GACnB,6BAA6B,CAAC"}
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.journeyInfoFormEvents = void 0;
4
- const journeyInfoSpecificFormEvents = {};
5
4
  exports.journeyInfoFormEvents = {};
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/journey-info/index.tsx"],"names":[],"mappings":"AAaA,MAAM,CAAC,OAAO,UAAU,kBAAkB,4CAmJzC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/journey-info/index.tsx"],"names":[],"mappings":"AAaA,MAAM,CAAC,OAAO,UAAU,kBAAkB,4CAwJzC"}
@@ -20,8 +20,10 @@ function JourneyInfoContent() {
20
20
  const { t } = (0, translations_1.useTranslation)();
21
21
  const apiConfig = (0, config_1.useApiConfig)();
22
22
  const { layout } = (0, config_1.useContactFormConfig)();
23
- const successPath = layout?.successPath ?? (layout?.basePath ? `${layout.basePath}/success` : '/contact/success');
24
- const errorPath = layout?.errorPath ?? (layout?.basePath ? `${layout.basePath}/error` : '/contact/error');
23
+ const successPath = layout?.successPath ??
24
+ (layout?.basePath ? `${layout.basePath}/success` : '/contact/success');
25
+ const errorPath = layout?.errorPath ??
26
+ (layout?.basePath ? `${layout.basePath}/error` : '/contact/error');
25
27
  const machine = (0, react_2.useMemo)(() => (0, journeyInfoStateMachine_1.createJourneyInfoStateMachine)(apiConfig.onSubmit, {
26
28
  successPath,
27
29
  errorPath,
@@ -1 +1 @@
1
- {"version":3,"file":"journeyInfoStateMachine.d.ts","sourceRoot":"","sources":["../../src/journey-info/journeyInfoStateMachine.ts"],"names":[],"mappings":"AAMA,OAAO,EAAuB,kBAAkB,EAAC,MAAM,eAAe,CAAC;AAEvE,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AAE5D,KAAK,WAAW,GAAG;IACf,WAAW,CAAC,EAAE,IAAI,EAAE,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,C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SAAS,CAAC;IAClB,QAAQ,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,EACjC,MAAM,EACN,MAAM,EACN,QAAQ,GACX,EAAE,yBAAyB,2CAS3B"}
1
+ {"version":3,"file":"contact-form-container.d.ts","sourceRoot":"","sources":["../../src/layouts/contact-form-container.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,MAAM,MAAM,yBAAyB,GAAG;IACtC,oDAAoD;IACpD,MAAM,EAAE,SAAS,CAAC;IAClB,oDAAoD;IACpD,MAAM,EAAE,SAAS,CAAC;IAClB,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,EACnC,MAAM,EACN,MAAM,EACN,QAAQ,GACT,EAAE,yBAAyB,2CAS3B"}
@@ -1,5 +1,5 @@
1
1
  export type ContactFormFooterProps = {
2
2
  withoutSettings?: boolean;
3
3
  };
4
- export declare function ContactFormFooter({ withoutSettings }: ContactFormFooterProps): import("react/jsx-runtime").JSX.Element;
4
+ export declare function ContactFormFooter({ withoutSettings, }: ContactFormFooterProps): import("react/jsx-runtime").JSX.Element;
5
5
  //# sourceMappingURL=contact-form-footer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"contact-form-footer.d.ts","sourceRoot":"","sources":["../../src/layouts/contact-form-footer.tsx"],"names":[],"mappings":"AAOA,MAAM,MAAM,sBAAsB,GAAG;IACjC,eAAe,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AAUF,wBAAgB,iBAAiB,CAAC,EAAE,eAAuB,EAAE,EAAE,sBAAsB,2CA8LpF"}
1
+ {"version":3,"file":"contact-form-footer.d.ts","sourceRoot":"","sources":["../../src/layouts/contact-form-footer.tsx"],"names":[],"mappings":"AAYA,MAAM,MAAM,sBAAsB,GAAG;IACnC,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAqBF,wBAAgB,iBAAiB,CAAC,EAChC,eAAuB,GACxB,EAAE,sBAAsB,2CAqPxB"}
@@ -19,41 +19,57 @@ function getAccentColor(theme) {
19
19
  const neutral = theme?.color?.background?.neutral;
20
20
  return neutral?.[0]?.foreground?.primary ?? 'inherit';
21
21
  }
22
- function ContactFormFooter({ withoutSettings = false }) {
22
+ function ContactFormFooter({ withoutSettings = false, }) {
23
23
  const { t, language } = (0, translations_1.useTranslation)();
24
24
  const { isDarkMode, toggleDarkmode, theme, isThemeForced } = (0, theme_1.useTheme)();
25
25
  const { org, layout } = (0, config_1.useContactFormConfig)();
26
26
  const { setLanguage } = (0, language_context_1.useLanguageSettings)();
27
27
  const footerUrls = layout?.footerUrls;
28
28
  const footerLinksOverride = layout?.footerLinksOverride;
29
- const buttonStyle = { color: getAccentColor(theme), borderColor: getAccentColor(theme) };
29
+ const buttonStyle = {
30
+ color: getAccentColor(theme),
31
+ borderColor: getAccentColor(theme),
32
+ };
30
33
  const basePath = layout?.basePath ?? '/contact';
31
34
  const supportHref = footerUrls?.help ?? basePath;
32
35
  // Group override links by section if section is provided
33
- const groupedOverrideLinks = footerLinksOverride ? footerLinksOverride.reduce((acc, link) => {
34
- const section = link.section || 'default';
35
- if (!acc[section])
36
- acc[section] = [];
37
- acc[section].push(link);
38
- return acc;
39
- }, {}) : null;
36
+ const groupedOverrideLinks = footerLinksOverride
37
+ ? footerLinksOverride.reduce((acc, link) => {
38
+ const section = link.section || 'default';
39
+ if (!acc[section])
40
+ acc[section] = [];
41
+ acc[section].push(link);
42
+ return acc;
43
+ }, {})
44
+ : null;
40
45
  return ((0, jsx_runtime_1.jsx)("footer", { className: footer_module_css_1.default.footer, children: (0, jsx_runtime_1.jsxs)("div", { className: footer_module_css_1.default.footer__content, children: [(0, jsx_runtime_1.jsxs)("div", { className: footer_module_css_1.default.footer__top, children: [footerLinksOverride ? (
41
46
  // Render override links, grouped by section
42
47
  Object.entries(groupedOverrideLinks).map(([sectionKey, links]) => ((0, jsx_runtime_1.jsxs)("section", { className: footer_module_css_1.default.footer__section, children: [sectionKey !== 'default' && ((0, jsx_runtime_1.jsx)("h3", { className: footer_module_css_1.default.footer__title, children: sectionKey })), (0, jsx_runtime_1.jsx)("ul", { className: footer_module_css_1.default.footer__linkList, children: links.map((link, index) => ((0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)("a", { href: link.href, target: "_blank", rel: "noreferrer", children: t(link.label) }) }, index))) })] }, sectionKey)))) : (
43
48
  // Standard behavior: fixed sections
44
- (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("section", { className: footer_module_css_1.default.footer__section, children: [(0, jsx_runtime_1.jsx)("h3", { className: footer_module_css_1.default.footer__title, children: t(translations_1.ModuleText.Layout.base.footer.sections.general.header) }), (0, jsx_runtime_1.jsx)("ul", { className: footer_module_css_1.default.footer__linkList, children: footerUrls?.tickets && ((0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)("a", { href: footerUrls.tickets, target: "_blank", rel: "noreferrer", children: t(translations_1.ModuleText.Layout.base.footer.sections.general.ticketPricesPageLink) }) })) })] }), (0, jsx_runtime_1.jsxs)("section", { className: footer_module_css_1.default.footer__section, children: [(0, jsx_runtime_1.jsx)("h3", { className: footer_module_css_1.default.footer__title, children: t(translations_1.ModuleText.Layout.base.footer.sections.contact.header) }), (0, jsx_runtime_1.jsx)("ul", { className: footer_module_css_1.default.footer__linkList, children: (0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)("a", { href: supportHref, children: t(translations_1.ModuleText.Layout.base.footer.sections.general.supportPageLink) }) }) })] })] })), !withoutSettings && ((0, jsx_runtime_1.jsxs)("section", { className: footer_module_css_1.default.footer__section, children: [(0, jsx_runtime_1.jsx)("h3", { className: footer_module_css_1.default.footer__title, children: t(!isThemeForced
49
+ (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("section", { className: footer_module_css_1.default.footer__section, children: [(0, jsx_runtime_1.jsx)("h3", { className: footer_module_css_1.default.footer__title, children: t(translations_1.ModuleText.Layout.base.footer.sections.general.header) }), (0, jsx_runtime_1.jsx)("ul", { className: footer_module_css_1.default.footer__linkList, children: footerUrls?.tickets && ((0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)("a", { href: footerUrls.tickets, target: "_blank", rel: "noreferrer", children: t(translations_1.ModuleText.Layout.base.footer.sections.general
50
+ .ticketPricesPageLink) }) })) })] }), (0, jsx_runtime_1.jsxs)("section", { className: footer_module_css_1.default.footer__section, children: [(0, jsx_runtime_1.jsx)("h3", { className: footer_module_css_1.default.footer__title, children: t(translations_1.ModuleText.Layout.base.footer.sections.contact.header) }), (0, jsx_runtime_1.jsx)("ul", { className: footer_module_css_1.default.footer__linkList, children: (0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)("a", { href: supportHref, children: t(translations_1.ModuleText.Layout.base.footer.sections.general
51
+ .supportPageLink) }) }) })] })] })), !withoutSettings && ((0, jsx_runtime_1.jsxs)("section", { className: footer_module_css_1.default.footer__section, children: [(0, jsx_runtime_1.jsx)("h3", { className: footer_module_css_1.default.footer__title, children: t(!isThemeForced
45
52
  ? translations_1.ModuleText.Layout.base.footer.sections.settings.header
46
- : translations_1.ModuleText.Layout.base.footer.sections.settings.forcedThemeHeader) }), (0, jsx_runtime_1.jsxs)("ul", { className: footer_module_css_1.default.footer__linkList, children: [language !== translations_1.Language.Norwegian && ((0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)("button", { className: footer_module_css_1.default.buttonLink, onClick: () => setLanguage(translations_1.Language.Norwegian), style: buttonStyle, children: t(translations_1.ModuleText.Layout.base.footer.sections.settings.setLanguage.norsk) }) })), language !== translations_1.Language.English && ((0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)("button", { className: footer_module_css_1.default.buttonLink, onClick: () => setLanguage(translations_1.Language.English), style: buttonStyle, children: t(translations_1.ModuleText.Layout.base.footer.sections.settings.setLanguage.english) }) })), language !== translations_1.Language.Nynorsk && ((0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)("button", { className: footer_module_css_1.default.buttonLink, onClick: () => setLanguage(translations_1.Language.Nynorsk), style: buttonStyle, children: t(translations_1.ModuleText.Layout.base.footer.sections.settings.setLanguage.nynorsk) }) })), !isThemeForced && ((0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)("button", { className: footer_module_css_1.default.buttonLink, style: buttonStyle, onClick: () => toggleDarkmode(!isDarkMode), children: isDarkMode
47
- ? t(translations_1.ModuleText.Layout.base.footer.sections.settings.toggleLightMode)
48
- : t(translations_1.ModuleText.Layout.base.footer.sections.settings.toggleDarkMode) }) }))] }), (0, jsx_runtime_1.jsx)("p", { className: footer_module_css_1.default.footer__cookieWarning, children: t(!isThemeForced
49
- ? translations_1.ModuleText.Layout.base.footer.sections.settings.cookiesWarning
50
- : translations_1.ModuleText.Layout.base.footer.sections.settings.languageCookiesWarning) })] }))] }), (0, jsx_runtime_1.jsx)("hr", {}), (0, jsx_runtime_1.jsxs)("section", { className: footer_module_css_1.default.footer__bottomLinks, children: [footerLinksOverride ? (
51
- // When override is set, bottom links come from override (filter by section if needed)
52
- // For now, render all override links that don't have a section or have section='bottom'
53
- (() => {
54
- const bottomLinks = footerLinksOverride.filter(link => !link.section || link.section === 'bottom');
55
- return bottomLinks.length > 0 && ((0, jsx_runtime_1.jsx)("div", { className: footer_module_css_1.default.footer__bottomLinks__mid, children: bottomLinks.map((link, index) => ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [index > 0 && (0, jsx_runtime_1.jsx)("span", { "aria-hidden": "true", children: "\u2022" }), (0, jsx_runtime_1.jsx)("a", { href: link.href, target: "_blank", rel: "noreferrer", children: t(link.label) })] }, index))) }));
56
- })()) : (
57
- // Standard behavior: privacy and accessibility from footerUrls
58
- (footerUrls?.privacy || footerUrls?.accessibility) && ((0, jsx_runtime_1.jsxs)("div", { className: footer_module_css_1.default.footer__bottomLinks__mid, children: [footerUrls?.privacy && ((0, jsx_runtime_1.jsx)("a", { href: footerUrls.privacy, target: "_blank", rel: "noreferrer", children: t(translations_1.ModuleText.Layout.base.footer.bottomLinks.privacy) })), footerUrls?.privacy && footerUrls?.accessibility && ((0, jsx_runtime_1.jsx)("span", { "aria-hidden": "true", children: "\u2022" })), footerUrls?.accessibility && ((0, jsx_runtime_1.jsx)("a", { href: footerUrls.accessibility, target: "_blank", rel: "noreferrer", children: t(translations_1.ModuleText.Layout.base.footer.bottomLinks.accessibilityStatement) }))] }))), org.logo && ((0, jsx_runtime_1.jsx)("img", { className: footer_module_css_1.default.footer__orgLogo, src: org.logo.accentBar ?? org.logo.srcDark ?? org.logo.src, alt: org.logo.alt }))] })] }) }));
53
+ : translations_1.ModuleText.Layout.base.footer.sections.settings
54
+ .forcedThemeHeader) }), (0, jsx_runtime_1.jsxs)("ul", { className: footer_module_css_1.default.footer__linkList, children: [language !== translations_1.Language.Norwegian && ((0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)("button", { className: footer_module_css_1.default.buttonLink, onClick: () => setLanguage(translations_1.Language.Norwegian), style: buttonStyle, children: t(translations_1.ModuleText.Layout.base.footer.sections.settings
55
+ .setLanguage.norsk) }) })), language !== translations_1.Language.English && ((0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)("button", { className: footer_module_css_1.default.buttonLink, onClick: () => setLanguage(translations_1.Language.English), style: buttonStyle, children: t(translations_1.ModuleText.Layout.base.footer.sections.settings
56
+ .setLanguage.english) }) })), language !== translations_1.Language.Nynorsk && ((0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)("button", { className: footer_module_css_1.default.buttonLink, onClick: () => setLanguage(translations_1.Language.Nynorsk), style: buttonStyle, children: t(translations_1.ModuleText.Layout.base.footer.sections.settings
57
+ .setLanguage.nynorsk) }) })), !isThemeForced && ((0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)("button", { className: footer_module_css_1.default.buttonLink, style: buttonStyle, onClick: () => toggleDarkmode(!isDarkMode), children: isDarkMode
58
+ ? t(translations_1.ModuleText.Layout.base.footer.sections.settings
59
+ .toggleLightMode)
60
+ : t(translations_1.ModuleText.Layout.base.footer.sections.settings
61
+ .toggleDarkMode) }) }))] }), (0, jsx_runtime_1.jsx)("p", { className: footer_module_css_1.default.footer__cookieWarning, children: t(!isThemeForced
62
+ ? translations_1.ModuleText.Layout.base.footer.sections.settings
63
+ .cookiesWarning
64
+ : translations_1.ModuleText.Layout.base.footer.sections.settings
65
+ .languageCookiesWarning) })] }))] }), (0, jsx_runtime_1.jsx)("hr", {}), (0, jsx_runtime_1.jsxs)("section", { className: footer_module_css_1.default.footer__bottomLinks, children: [footerLinksOverride
66
+ ? // When override is set, bottom links come from override (filter by section if needed)
67
+ // For now, render all override links that don't have a section or have section='bottom'
68
+ (() => {
69
+ const bottomLinks = footerLinksOverride.filter((link) => !link.section || link.section === 'bottom');
70
+ return (bottomLinks.length > 0 && ((0, jsx_runtime_1.jsx)("div", { className: footer_module_css_1.default.footer__bottomLinks__mid, children: bottomLinks.map((link, index) => ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [index > 0 && (0, jsx_runtime_1.jsx)("span", { "aria-hidden": "true", children: "\u2022" }), (0, jsx_runtime_1.jsx)("a", { href: link.href, target: "_blank", rel: "noreferrer", children: t(link.label) })] }, index))) })));
71
+ })()
72
+ : // Standard behavior: privacy and accessibility from footerUrls
73
+ (footerUrls?.privacy || footerUrls?.accessibility) && ((0, jsx_runtime_1.jsxs)("div", { className: footer_module_css_1.default.footer__bottomLinks__mid, children: [footerUrls?.privacy && ((0, jsx_runtime_1.jsx)("a", { href: footerUrls.privacy, target: "_blank", rel: "noreferrer", children: t(translations_1.ModuleText.Layout.base.footer.bottomLinks.privacy) })), footerUrls?.privacy && footerUrls?.accessibility && ((0, jsx_runtime_1.jsx)("span", { "aria-hidden": "true", children: "\u2022" })), footerUrls?.accessibility && ((0, jsx_runtime_1.jsx)("a", { href: footerUrls.accessibility, target: "_blank", rel: "noreferrer", children: t(translations_1.ModuleText.Layout.base.footer.bottomLinks
74
+ .accessibilityStatement) }))] })), org.logo && ((0, jsx_runtime_1.jsx)("img", { className: footer_module_css_1.default.footer__orgLogo, src: org.logo.accentBar ?? org.logo.srcDark ?? org.logo.src, alt: org.logo.alt }))] })] }) }));
59
75
  }
@@ -1 +1 @@
1
- {"version":3,"file":"contact-form-header.d.ts","sourceRoot":"","sources":["../../src/layouts/contact-form-header.tsx"],"names":[],"mappings":"AASA,MAAM,MAAM,sBAAsB,GAAG;IACjC,qGAAqG;IACrG,OAAO,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CAC5C,CAAC;AAoBF,wBAAgB,iBAAiB,CAAC,EAAE,OAAO,EAAE,EAAE,sBAAsB,2CA6DpE"}
1
+ {"version":3,"file":"contact-form-header.d.ts","sourceRoot":"","sources":["../../src/layouts/contact-form-header.tsx"],"names":[],"mappings":"AASA,MAAM,MAAM,sBAAsB,GAAG;IACnC,qGAAqG;IACrG,OAAO,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CAC1C,CAAC;AA0BF,wBAAgB,iBAAiB,CAAC,EAAE,OAAO,EAAE,EAAE,sBAAsB,2CA2DpE"}
@@ -16,7 +16,8 @@ function getAccentContrastColor(theme) {
16
16
  const accent = theme?.color?.background?.accent;
17
17
  const accent4 = accent?.[4];
18
18
  if (accent4 && typeof accent4 === 'object' && 'foreground' in accent4) {
19
- const fg = accent4.foreground?.primary;
19
+ const fg = accent4.foreground
20
+ ?.primary;
20
21
  if (fg) {
21
22
  return {
22
23
  background: accent4.background ?? 'transparent',
@@ -26,7 +27,11 @@ function getAccentContrastColor(theme) {
26
27
  }
27
28
  return {
28
29
  background: 'transparent',
29
- foreground: { primary: 'currentColor', secondary: 'currentColor', disabled: 'currentColor' },
30
+ foreground: {
31
+ primary: 'currentColor',
32
+ secondary: 'currentColor',
33
+ disabled: 'currentColor',
34
+ },
30
35
  };
31
36
  }
32
37
  function ContactFormHeader({ homeUrl }) {
@@ -37,9 +42,9 @@ function ContactFormHeader({ homeUrl }) {
37
42
  // Use override links if provided, otherwise fall back to standard behavior
38
43
  const headerLinks = layout?.headerLinksOverride;
39
44
  const standardHome = homeUrl ?? layout?.footerUrls?.homePage;
40
- return ((0, jsx_runtime_1.jsx)("header", { className: header_module_css_1.default.pageHeader, children: (0, jsx_runtime_1.jsxs)("div", { className: header_module_css_1.default.pageHeader__content, children: [(0, jsx_runtime_1.jsx)("h1", { className: header_module_css_1.default.pageHeader__logo, children: (0, jsx_runtime_1.jsx)(link_1.default, { href: layout?.basePath ?? '/contact', className: header_module_css_1.default.pageHeader__logoLink, "data-testid": "homeButton", children: org.logo ? ((0, jsx_runtime_1.jsx)("img", { className: header_module_css_1.default.pageHeader__logoImg, src: org.logo.accentBar ?? org.logo.srcDark ?? org.logo.src, alt: org.logo.alt })) : ((0, jsx_runtime_1.jsx)("span", { children: org.name })) }) }), headerLinks ? (
41
- // Render override links
42
- headerLinks.map((link, index) => ((0, jsx_runtime_1.jsx)(button_1.ButtonLink, { href: link.href, title: t(link.label), mode: "secondary", backgroundColor: accentColor, radiusSize: "circular", size: "pill", aProps: { target: '_blank', rel: 'noreferrer' } }, index)))) : (
43
- // Standard behavior: single optional home link
44
- standardHome && ((0, jsx_runtime_1.jsx)(button_1.ButtonLink, { href: standardHome.href, title: t(translations_2.CommonText.Layout.homeLink(standardHome.name)), mode: "secondary", backgroundColor: accentColor, radiusSize: "circular", size: "pill", aProps: { target: '_blank', rel: 'noreferrer' } })))] }) }));
45
+ return ((0, jsx_runtime_1.jsx)("header", { className: header_module_css_1.default.pageHeader, children: (0, jsx_runtime_1.jsxs)("div", { className: header_module_css_1.default.pageHeader__content, children: [(0, jsx_runtime_1.jsx)("h1", { className: header_module_css_1.default.pageHeader__logo, children: (0, jsx_runtime_1.jsx)(link_1.default, { href: layout?.basePath ?? '/contact', className: header_module_css_1.default.pageHeader__logoLink, "data-testid": "homeButton", children: org.logo ? ((0, jsx_runtime_1.jsx)("img", { className: header_module_css_1.default.pageHeader__logoImg, src: org.logo.accentBar ?? org.logo.srcDark ?? org.logo.src, alt: org.logo.alt })) : ((0, jsx_runtime_1.jsx)("span", { children: org.name })) }) }), headerLinks
46
+ ? // Render override links
47
+ headerLinks.map((link, index) => ((0, jsx_runtime_1.jsx)(button_1.ButtonLink, { href: link.href, title: t(link.label), mode: "secondary", backgroundColor: accentColor, radiusSize: "circular", size: "pill", aProps: { target: '_blank', rel: 'noreferrer' } }, index)))
48
+ : // Standard behavior: single optional home link
49
+ standardHome && ((0, jsx_runtime_1.jsx)(button_1.ButtonLink, { href: standardHome.href, title: t(translations_2.CommonText.Layout.homeLink(standardHome.name)), mode: "secondary", backgroundColor: accentColor, radiusSize: "circular", size: "pill", aProps: { target: '_blank', rel: 'noreferrer' } }))] }) }));
45
50
  }
@@ -1,6 +1,6 @@
1
1
  import { PropsWithChildren } from 'react';
2
- import { TranslatedString } from "../translations";
3
- import { MonoIcons } from "../components/icon";
2
+ import { TranslatedString } from '../translations';
3
+ import { MonoIcons } from '../components/icon';
4
4
  export type ContactPage = {
5
5
  title: TranslatedString;
6
6
  href: string;
@@ -1 +1 @@
1
- {"version":3,"file":"contact-page-layout.d.ts","sourceRoot":"","sources":["../../src/layouts/contact-page-layout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAA+B,MAAM,OAAO,CAAC;AAItE,OAAO,EAAW,gBAAgB,EAAiB,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EAAW,SAAS,EAAC,MAAM,oBAAoB,CAAC;AAMvD,MAAM,MAAM,WAAW,GAAG;IACtB,KAAK,EAAE,gBAA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AC/E,CAAC,CAAC;AAEH,iBAAS,iBAAiB,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,sBAAsB,2CA4ExE;AAED,eAAe,iBAAiB,CAAC"}
@@ -74,7 +74,6 @@ function ContactPageLayout({ children, backLink }) {
74
74
  const { t } = (0, translations_1.useTranslation)();
75
75
  const pathname = (0, navigation_1.usePathname)();
76
76
  const { pagesOverrides } = (0, config_1.useContactFormConfig)();
77
- const [selectedContactPage, setSelectedContactPage] = (0, react_1.useState)(undefined);
78
77
  // Resolve visible pages: standard list minus hidden pages
79
78
  const visiblePages = (0, react_1.useMemo)(() => {
80
79
  const standard = (0, exports.getStandardContactPages)();
@@ -84,10 +83,7 @@ function ContactPageLayout({ children, backLink }) {
84
83
  return !hidePageIds.includes(pageId);
85
84
  });
86
85
  }, [pagesOverrides]);
87
- (0, react_1.useEffect)(() => {
88
- const activePage = visiblePages.find((contactPage) => pathname.includes(contactPage.href));
89
- setSelectedContactPage(activePage);
90
- }, [pathname, visiblePages]);
86
+ const selectedContactPage = (0, react_1.useMemo)(() => visiblePages.find((contactPage) => pathname.includes(contactPage.href)), [pathname, visiblePages]);
91
87
  const displayPrivacyAndTerms = (contactPage) => {
92
88
  if (!contactPage)
93
89
  return false;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/layouts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,OAAO,IAAI,iBAAiB,EAC5B,KAAK,sBAAsB,EAC3B,uBAAuB,GAC1B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACH,oBAAoB,EACpB,KAAK,yBAAyB,GACjC,MAAM,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/layouts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,IAAI,iBAAiB,EAC5B,KAAK,sBAAsB,EAC3B,uBAAuB,GACxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,oBAAoB,EACpB,KAAK,yBAAyB,GAC/B,MAAM,0BAA0B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-lines.d.ts","sourceRoot":"","sources":["../../src/lines/use-lines.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,IAAI,EAAC,MAAM,sCAAsC,CAAC;AAK1D;;;GAGG;AACH,eAAO,MAAM,uBAAuB,QAAO,iBAAiB,EAQ3D,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;oCA0BsB,iBAAiB,KAAG,IAAI,EAAE;6BAgCjC,MAAM,KAAG,IAAI,CAAC,OAAO,CAAC;CAYzD,CAAC"}
1
+ {"version":3,"file":"use-lines.d.ts","sourceRoot":"","sources":["../../src/lines/use-lines.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,sCAAsC,CAAC;AAK5D;;;GAGG;AACH,eAAO,MAAM,uBAAuB,QAAO,iBAAiB,EAQ3D,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;oCA0BoB,iBAAiB,KAAG,IAAI,EAAE;6BAkCjC,MAAM,KAAG,IAAI,CAAC,OAAO,CAAC;CAYvD,CAAC"}
@@ -1,17 +1,17 @@
1
1
  import { commonEvents } from '../commoneEvents';
2
2
  import { Line } from '..';
3
3
  import { FormType } from './means-of-transport-form-machine';
4
- declare const meansOfTransportSpecificFormEvents: {
5
- type: "ON_INPUT_CHANGE";
6
- inputName: "formType" | "isResponseWanted" | "stop";
7
- value: string | boolean | Line["quays"][0] | undefined;
4
+ type MeansOfTransportSpecificFormEvents = {
5
+ type: 'ON_INPUT_CHANGE';
6
+ inputName: 'formType' | 'isResponseWanted' | 'stop';
7
+ value: string | boolean | Line['quays'][0] | undefined;
8
8
  } | {
9
- type: "SELECT_FORM_TYPE";
9
+ type: 'SELECT_FORM_TYPE';
10
10
  formType: FormType;
11
11
  } | {
12
- type: "SUBMIT";
12
+ type: 'SUBMIT';
13
13
  orderedFormFieldNames: string[];
14
14
  };
15
- export declare const meansOfTransportFormEvents: typeof meansOfTransportSpecificFormEvents | typeof commonEvents;
15
+ export declare const meansOfTransportFormEvents: MeansOfTransportSpecificFormEvents | typeof commonEvents;
16
16
  export {};
17
17
  //# sourceMappingURL=events.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/means-of-transport/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAC,IAAI,EAAC,MAAM,IAAI,CAAC;AACxB,OAAO,EAAC,QAAQ,EAAC,MAAM,mCAAmC,CAAC;AAE3D,QAAA,MAAM,kCAAkC,EAClC;IACF,IAAI,EAAE,iBAAiB,CAAC;IACxB,SAAS,EAAE,UAAU,GAAG,kBAAkB,GAAG,MAAM,CAAC;IACpD,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC;CAC1D,GACK;IACF,IAAI,EAAE,kBAAkB,CAAC;IACzB,QAAQ,EAAE,QAAQ,CAAC;CACtB,GACK;IACF,IAAI,EAAE,QAAQ,CAAC;IACf,qBAAqB,EAAE,MAAM,EAAE,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,0BAA0B,EACjC,OAAO,kCAAkC,GACzC,OAAO,YAAY,CAAC"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/means-of-transport/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAE7D,KAAK,kCAAkC,GACnC;IACE,IAAI,EAAE,iBAAiB,CAAC;IACxB,SAAS,EAAE,UAAU,GAAG,kBAAkB,GAAG,MAAM,CAAC;IACpD,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC;CACxD,GACD;IACE,IAAI,EAAE,kBAAkB,CAAC;IACzB,QAAQ,EAAE,QAAQ,CAAC;CACpB,GACD;IACE,IAAI,EAAE,QAAQ,CAAC;IACf,qBAAqB,EAAE,MAAM,EAAE,CAAC;CACjC,CAAC;AAEN,eAAO,MAAM,0BAA0B,EACnC,kCAAkC,GAClC,OAAO,YAAY,CAAC"}
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.meansOfTransportFormEvents = void 0;
4
- const meansOfTransportSpecificFormEvents = {};
5
4
  exports.meansOfTransportFormEvents = {};
@@ -1 +1 @@
1
- {"version":3,"file":"delayForm.d.ts","sourceRoot":"","sources":["../../../src/means-of-transport/forms/delayForm.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAC,4BAA4B,EAAC,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAC,0BAA0B,EAAC,MAAM,WAAW,CAAC;AAiBrD,KAAK,cAAc,GAAG;IAClB,KAAK,EAAE;QAAE,OAAO,EAAE,4BAA4B,CAAA;KAAE,CAAC;IACjD,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,0BAA0B,KAAK,IAAI,CAAC;CAC5D,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,iBAAe,cAAc,4CAyQtD,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"delayForm.d.ts","sourceRoot":"","sources":["../../../src/means-of-transport/forms/delayForm.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAClF,OAAO,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAC;AAiBvD,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE;QAAE,OAAO,EAAE,4BAA4B,CAAA;KAAE,CAAC;IACjD,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,0BAA0B,KAAK,IAAI,CAAC;CAC1D,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,iBAAiB,cAAc,4CAyQxD,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"driverForm.d.ts","sourceRoot":"","sources":["../../../src/means-of-transport/forms/driverForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,4BAA4B,EAAC,MAAM,oCAAoC,CAAC;AAIhF,OAAO,EAAC,0BAA0B,EAAC,MAAM,WAAW,CAAC;AAiBrD,KAAK,eAAe,GAAG;IACnB,KAAK,EAAE;QAAE,OAAO,EAAE,4BAA4B,CAAA;KAAE,CAAC;IACjD,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,0BAA0B,KAAK,IAAI,CAAC;CAC5D,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,iBAAe,eAAe,4CAyQxD,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"driverForm.d.ts","sourceRoot":"","sources":["../../../src/means-of-transport/forms/driverForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAIlF,OAAO,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAC;AAiBvD,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE;QAAE,OAAO,EAAE,4BAA4B,CAAA;KAAE,CAAC;IACjD,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,0BAA0B,KAAK,IAAI,CAAC;CAC1D,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,iBAAiB,eAAe,4CAyQ1D,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/means-of-transport/forms/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,OAAO,IAAI,UAAU,EAAC,MAAM,cAAc,CAAC;AACnD,OAAO,EAAC,OAAO,IAAI,UAAU,EAAC,MAAM,cAAc,CAAC;AACnD,OAAO,EAAC,OAAO,IAAI,mBAAmB,EAAC,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,kBAAkB,EAAC,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/means-of-transport/forms/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"injuryForm.d.ts","sourceRoot":"","sources":["../../../src/means-of-transport/forms/injuryForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,4BAA4B,EAAC,MAAM,oCAAoC,CAAC;AAIhF,OAAO,EAAC,0BAA0B,EAAC,MAAM,WAAW,CAAC;AAiBrD,KAAK,eAAe,GAAG;IACnB,KAAK,EAAE;QAAE,OAAO,EAAE,4BAA4B,CAAA;KAAE,CAAC;IACjD,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,0BAA0B,KAAK,IAAI,CAAC;CAC5D,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,iBAAe,eAAe,4CAwQxD,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"injuryForm.d.ts","sourceRoot":"","sources":["../../../src/means-of-transport/forms/injuryForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAIlF,OAAO,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAC;AAiBvD,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE;QAAE,OAAO,EAAE,4BAA4B,CAAA;KAAE,CAAC;IACjD,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,0BAA0B,KAAK,IAAI,CAAC;CAC1D,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,iBAAiB,eAAe,4CAwQ1D,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"serviceOfferingForm.d.ts","sourceRoot":"","sources":["../../../src/means-of-transport/forms/serviceOfferingForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,4BAA4B,EAAC,MAAM,oCAAoC,CAAC;AAIhF,OAAO,EAAC,0BAA0B,EAAC,MAAM,WAAW,CAAC;AAcrD,KAAK,wBAAwB,GAAG;IAC5B,KAAK,EAAE;QAAE,OAAO,EAAE,4BAA4B,CAAA;KAAE,CAAC;IACjD,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,0BAA0B,KAAK,IAAI,CAAC;CAC5D,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,kBAGE,wBAAwB,4CAmM7D,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"serviceOfferingForm.d.ts","sourceRoot":"","sources":["../../../src/means-of-transport/forms/serviceOfferingForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAIlF,OAAO,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAC;AAcvD,KAAK,wBAAwB,GAAG;IAC9B,KAAK,EAAE;QAAE,OAAO,EAAE,4BAA4B,CAAA;KAAE,CAAC;IACjD,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,0BAA0B,KAAK,IAAI,CAAC;CAC1D,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,kBAGjC,wBAAwB,4CAmM1B,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"stopForm.d.ts","sourceRoot":"","sources":["../../../src/means-of-transport/forms/stopForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,4BAA4B,EAAC,MAAM,oCAAoC,CAAC;AAIhF,OAAO,EAAC,0BAA0B,EAAC,MAAM,WAAW,CAAC;AAgBrD,KAAK,aAAa,GAAG;IACjB,KAAK,EAAE;QAAE,OAAO,EAAE,4BAA4B,CAAA;KAAE,CAAC;IACjD,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,0BAA0B,KAAK,IAAI,CAAC;CAC5D,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,iBAAe,aAAa,4CAiOpD,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"stopForm.d.ts","sourceRoot":"","sources":["../../../src/means-of-transport/forms/stopForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAIlF,OAAO,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAC;AAgBvD,KAAK,aAAa,GAAG;IACnB,KAAK,EAAE;QAAE,OAAO,EAAE,4BAA4B,CAAA;KAAE,CAAC;IACjD,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,0BAA0B,KAAK,IAAI,CAAC;CAC1D,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,iBAAiB,aAAa,4CAiOtD,CAAC;AAEF,eAAe,QAAQ,CAAC"}