@duffel/components 3.1.3--prototype.4 → 3.1.3--prototype.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (352) hide show
  1. package/{react-dist/custom-elements.js → custom-elements.js} +2 -2
  2. package/{react-dist/custom-elements.js.map → custom-elements.js.map} +1 -1
  3. package/{react-dist/index.js → index.js} +2 -2
  4. package/{react-dist/index.js.map → index.js.map} +1 -1
  5. package/package.json +3 -3
  6. package/scripts/generate-fixture.d.ts +3 -0
  7. package/scripts/setup-suggestion-data.d.ts +28 -0
  8. package/tsconfig.tsbuildinfo +1 -0
  9. package/.circleci/config.yml +0 -67
  10. package/.eslintrc.js +0 -47
  11. package/.github/CODEOWNERS +0 -4
  12. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -29
  13. package/.github/renovate.json +0 -12
  14. package/.nvmrc +0 -1
  15. package/.prettierignore +0 -6
  16. package/.storybook/main.ts +0 -33
  17. package/.storybook/preview.tsx +0 -28
  18. package/.tool-versions +0 -1
  19. package/.vscode/extensions.json +0 -7
  20. package/.vscode/settings.json +0 -10
  21. package/.yarn/releases/yarn-4.0.1.cjs +0 -893
  22. package/.yarn/sdks/eslint/bin/eslint.js +0 -20
  23. package/.yarn/sdks/eslint/lib/api.js +0 -20
  24. package/.yarn/sdks/eslint/lib/unsupported-api.js +0 -20
  25. package/.yarn/sdks/eslint/package.json +0 -14
  26. package/.yarn/sdks/integrations.yml +0 -5
  27. package/.yarn/sdks/prettier/bin-prettier.js +0 -20
  28. package/.yarn/sdks/prettier/index.js +0 -20
  29. package/.yarn/sdks/prettier/package.json +0 -7
  30. package/.yarn/sdks/typescript/bin/tsc +0 -20
  31. package/.yarn/sdks/typescript/bin/tsserver +0 -20
  32. package/.yarn/sdks/typescript/lib/tsc.js +0 -20
  33. package/.yarn/sdks/typescript/lib/tsserver.js +0 -225
  34. package/.yarn/sdks/typescript/lib/tsserverlibrary.js +0 -225
  35. package/.yarn/sdks/typescript/lib/typescript.js +0 -20
  36. package/.yarn/sdks/typescript/package.json +0 -10
  37. package/.yarnrc.yml +0 -3
  38. package/CONTRIBUTING.md +0 -83
  39. package/README.md +0 -68
  40. package/__mocks__/styleMock.js +0 -6
  41. package/babel.config.js +0 -20
  42. package/commitlint.config.js +0 -4
  43. package/config/esbuild.base.config.js +0 -18
  44. package/config/esbuild.cdn.config.js +0 -51
  45. package/config/esbuild.dev.config.js +0 -46
  46. package/config/esbuild.react.config.js +0 -42
  47. package/data/airports.csv +0 -9084
  48. package/data/cities.csv +0 -256
  49. package/jest.config.ts +0 -14
  50. package/scripts/build-and-publish.sh +0 -42
  51. package/scripts/generate-fixture.ts +0 -200
  52. package/scripts/setup-suggestion-data.ts +0 -100
  53. package/scripts/upload-to-cdn.sh +0 -34
  54. package/scripts.tsconfig.json +0 -11
  55. package/src/components/DuffelAncillaries/Card.tsx +0 -126
  56. package/src/components/DuffelAncillaries/Counter.tsx +0 -40
  57. package/src/components/DuffelAncillaries/DuffelAncillaries.tsx +0 -350
  58. package/src/components/DuffelAncillaries/DuffelAncillariesCustomElement.tsx +0 -124
  59. package/src/components/DuffelAncillaries/bags/BaggageSelectionCard.tsx +0 -101
  60. package/src/components/DuffelAncillaries/bags/BaggageSelectionController.tsx +0 -88
  61. package/src/components/DuffelAncillaries/bags/BaggageSelectionModal.tsx +0 -81
  62. package/src/components/DuffelAncillaries/bags/BaggageSelectionModalBody.tsx +0 -60
  63. package/src/components/DuffelAncillaries/bags/BaggageSelectionModalBodyPassenger.tsx +0 -122
  64. package/src/components/DuffelAncillaries/bags/BaggageSelectionModalFooter.tsx +0 -88
  65. package/src/components/DuffelAncillaries/bags/BaggageSelectionModalHeader.tsx +0 -82
  66. package/src/components/DuffelAncillaries/bags/IncludedBaggageBanner.tsx +0 -51
  67. package/src/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionCard.tsx +0 -90
  68. package/src/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModal.tsx +0 -63
  69. package/src/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalBody.tsx +0 -56
  70. package/src/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalBodyListItem.tsx +0 -11
  71. package/src/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalFooter.tsx +0 -74
  72. package/src/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalHeader.tsx +0 -9
  73. package/src/components/DuffelAncillaries/seats/Amenity.tsx +0 -21
  74. package/src/components/DuffelAncillaries/seats/DeckSelect.tsx +0 -27
  75. package/src/components/DuffelAncillaries/seats/Element.tsx +0 -52
  76. package/src/components/DuffelAncillaries/seats/EmptyElement.tsx +0 -5
  77. package/src/components/DuffelAncillaries/seats/ExitElement.tsx +0 -17
  78. package/src/components/DuffelAncillaries/seats/Legend.tsx +0 -60
  79. package/src/components/DuffelAncillaries/seats/Row.tsx +0 -47
  80. package/src/components/DuffelAncillaries/seats/RowSection.tsx +0 -78
  81. package/src/components/DuffelAncillaries/seats/SeatElement.tsx +0 -120
  82. package/src/components/DuffelAncillaries/seats/SeatInfo.tsx +0 -32
  83. package/src/components/DuffelAncillaries/seats/SeatMap.tsx +0 -85
  84. package/src/components/DuffelAncillaries/seats/SeatMapUnavailable.tsx +0 -21
  85. package/src/components/DuffelAncillaries/seats/SeatSelectionCard.tsx +0 -103
  86. package/src/components/DuffelAncillaries/seats/SeatSelectionModal.tsx +0 -142
  87. package/src/components/DuffelAncillaries/seats/SeatSelectionModalBody.tsx +0 -13
  88. package/src/components/DuffelAncillaries/seats/SeatSelectionModalFooter.tsx +0 -89
  89. package/src/components/DuffelAncillaries/seats/SeatSelectionModalHeader.tsx +0 -97
  90. package/src/components/DuffelAncillaries/seats/SeatUnavailable.tsx +0 -14
  91. package/src/components/DuffelPayments/DuffelPayments.tsx +0 -224
  92. package/src/components/DuffelPayments/DuffelPaymentsCustomElement.tsx +0 -130
  93. package/src/components/PlacesLookup/PlacesLookup.tsx +0 -122
  94. package/src/components/shared/AnimatedLoaderEllipsis.tsx +0 -5
  95. package/src/components/shared/Button.tsx +0 -63
  96. package/src/components/shared/ErrorBoundary.tsx +0 -54
  97. package/src/components/shared/FetchOfferErrorState.tsx +0 -35
  98. package/src/components/shared/Icon.tsx +0 -151
  99. package/src/components/shared/IconButton.tsx +0 -42
  100. package/src/components/shared/Modal.tsx +0 -40
  101. package/src/components/shared/NonIdealState.tsx +0 -28
  102. package/src/components/shared/Stamp.tsx +0 -29
  103. package/src/components/shared/Tabs.tsx +0 -36
  104. package/src/custom-elements.ts +0 -13
  105. package/src/examples/client-side/README.md +0 -30
  106. package/src/examples/client-side/index.html +0 -57
  107. package/src/examples/full-stack/README.md +0 -34
  108. package/src/examples/full-stack/index.html +0 -48
  109. package/src/examples/full-stack/server.mjs +0 -158
  110. package/src/examples/just-typescript/.yarn/install-state.gz +0 -0
  111. package/src/examples/just-typescript/README.md +0 -37
  112. package/src/examples/just-typescript/package.json +0 -16
  113. package/src/examples/just-typescript/src/index.html +0 -23
  114. package/src/examples/just-typescript/src/index.ts +0 -36
  115. package/src/examples/just-typescript/yarn.lock +0 -467
  116. package/src/examples/next/README.md +0 -28
  117. package/src/examples/next/next-env.d.ts +0 -5
  118. package/src/examples/next/next.config.js +0 -4
  119. package/src/examples/next/package.json +0 -24
  120. package/src/examples/next/src/app/DuffelComponents.tsx +0 -40
  121. package/src/examples/next/src/app/layout.tsx +0 -18
  122. package/src/examples/next/src/app/page.tsx +0 -9
  123. package/src/examples/next/tsconfig.json +0 -27
  124. package/src/examples/next/yarn.lock +0 -257
  125. package/src/examples/payments-custom-element/README.md +0 -17
  126. package/src/examples/payments-custom-element/index.html +0 -43
  127. package/src/examples/payments-just-typescript/README.md +0 -37
  128. package/src/examples/payments-just-typescript/package.json +0 -16
  129. package/src/examples/payments-just-typescript/src/index.html +0 -23
  130. package/src/examples/payments-just-typescript/src/index.ts +0 -18
  131. package/src/examples/payments-just-typescript/yarn.lock +0 -154
  132. package/src/examples/react-app/README.md +0 -37
  133. package/src/examples/react-app/package.json +0 -20
  134. package/src/examples/react-app/src/index.html +0 -19
  135. package/src/examples/react-app/src/index.tsx +0 -48
  136. package/src/examples/react-app/yarn.lock +0 -219
  137. package/src/fixtures/offers/off_0000AUde3KwTztSRK1cznH.json +0 -497
  138. package/src/fixtures/offers/off_0000AVx4lUFFKW8PsPeQeQ.json +0 -307
  139. package/src/fixtures/offers/off_1.json +0 -488
  140. package/src/fixtures/passengers/mock_passengers.ts +0 -26
  141. package/src/fixtures/seat-maps/off_0000AUde3KwTztSRK1cznH.json +0 -6852
  142. package/src/fixtures/seat-maps/off_0000AVx4lUFFKW8PsPeQeQ.json +0 -1
  143. package/src/fixtures/seat-maps/off_1.json +0 -6852
  144. package/src/index.ts +0 -7
  145. package/src/lib/captureErrorInSentry.ts +0 -42
  146. package/src/lib/compileCreateOrderPayload.ts +0 -63
  147. package/src/lib/createPriceFormatters.ts +0 -73
  148. package/src/lib/fetchFromDuffelAPI.ts +0 -54
  149. package/src/lib/fetchFromFixtures.ts +0 -18
  150. package/src/lib/formatAvailableServices.ts +0 -91
  151. package/src/lib/formatDate.ts +0 -20
  152. package/src/lib/formatSeatMaps.ts +0 -81
  153. package/src/lib/getBaggageServiceDescription.ts +0 -39
  154. package/src/lib/getCabinsForSegmentAndDeck.ts +0 -4
  155. package/src/lib/getCurrencyForSeatMaps.ts +0 -22
  156. package/src/lib/getCurrencyForServices.ts +0 -24
  157. package/src/lib/getFirstSeatElementMatchingCriteria.ts +0 -22
  158. package/src/lib/getPassengerBySegmentList.ts +0 -10
  159. package/src/lib/getPassengerInitials.ts +0 -6
  160. package/src/lib/getPassengerMapById.ts +0 -17
  161. package/src/lib/getPassengerName.ts +0 -41
  162. package/src/lib/getRowNumber.ts +0 -16
  163. package/src/lib/getSegmentList.ts +0 -7
  164. package/src/lib/getServicePriceMapById.ts +0 -20
  165. package/src/lib/getSymbols.ts +0 -22
  166. package/src/lib/getTotalAmountForServices.ts +0 -72
  167. package/src/lib/getTotalQuantity.ts +0 -5
  168. package/src/lib/hasHighLuminance.ts +0 -9
  169. package/src/lib/hasService.ts +0 -24
  170. package/src/lib/hasServiceOfSameMetadataTypeAlreadyBeenSelected.ts +0 -35
  171. package/src/lib/hasWings.ts +0 -8
  172. package/src/lib/isBaggageService.ts +0 -8
  173. package/src/lib/isCancelForAnyReasonService.ts +0 -9
  174. package/src/lib/isFixtureOfferId.ts +0 -4
  175. package/src/lib/isPayloadComplete.ts +0 -11
  176. package/src/lib/isSeatElement.ts +0 -10
  177. package/src/lib/logging.ts +0 -120
  178. package/src/lib/moneyStringFormatter.ts +0 -34
  179. package/src/lib/offerIsExpired.ts +0 -5
  180. package/src/lib/retrieveOffer.ts +0 -56
  181. package/src/lib/retrieveOfferFromDuffelAPI.ts +0 -13
  182. package/src/lib/retrieveSeatMaps.ts +0 -55
  183. package/src/lib/retrieveSeatMapsFromDuffelAPI.ts +0 -13
  184. package/src/lib/setBodyScrollability.ts +0 -7
  185. package/src/lib/validateProps.ts +0 -37
  186. package/src/lib/withPlural.ts +0 -8
  187. package/src/stories/BaggageSelectionModalHeader.stories.tsx +0 -21
  188. package/src/stories/Button.stories.tsx +0 -91
  189. package/src/stories/DuffelAncillaries.stories.tsx +0 -166
  190. package/src/stories/DuffelPayments.stories.tsx +0 -34
  191. package/src/stories/Icon.stories.tsx +0 -35
  192. package/src/stories/IconButton.stories.tsx +0 -25
  193. package/src/stories/PlacesLookup.stories.tsx +0 -22
  194. package/src/styles/colors.css +0 -22
  195. package/src/styles/components/Amenity.css +0 -23
  196. package/src/styles/components/BaggageDisplay.css +0 -25
  197. package/src/styles/components/Button.css +0 -169
  198. package/src/styles/components/Card.css +0 -52
  199. package/src/styles/components/CfarSelectionModal.css +0 -34
  200. package/src/styles/components/Counter.css +0 -18
  201. package/src/styles/components/DuffelPayments.css +0 -42
  202. package/src/styles/components/IconButton.css +0 -63
  203. package/src/styles/components/Legend.css +0 -62
  204. package/src/styles/components/Loader.css +0 -37
  205. package/src/styles/components/LoadingState.css +0 -87
  206. package/src/styles/components/Modal.css +0 -84
  207. package/src/styles/components/PassengerSelect.css +0 -99
  208. package/src/styles/components/PassengersLayout.css +0 -90
  209. package/src/styles/components/PlacesLookup.css +0 -36
  210. package/src/styles/components/Row.css +0 -70
  211. package/src/styles/components/Seat.css +0 -59
  212. package/src/styles/components/SeatInfo.css +0 -61
  213. package/src/styles/components/SeatMap.css +0 -24
  214. package/src/styles/components/SeatSelect.css +0 -92
  215. package/src/styles/components/Segment.css +0 -17
  216. package/src/styles/components/SelectionSegment.css +0 -10
  217. package/src/styles/components/Summary.css +0 -70
  218. package/src/styles/components/Tabs.css +0 -52
  219. package/src/styles/flex.css +0 -5
  220. package/src/styles/font-families.css +0 -47
  221. package/src/styles/global.css +0 -52
  222. package/src/styles/margin.css +0 -3
  223. package/src/styles/spacing.css +0 -18
  224. package/src/styles/transitions.css +0 -3
  225. package/src/styles/typography.css +0 -13
  226. package/src/tests/components/DuffelAncillaries.test.tsx +0 -342
  227. package/src/tests/lib/createPriceFormatters.test.tsx +0 -152
  228. package/src/tests/lib/formatAvailableServices.test.tsx +0 -79
  229. package/src/tests/lib/formatSeatMaps.test.tsx +0 -49
  230. package/src/tests/lib/getCurrencyForServices.test.tsx +0 -44
  231. package/src/tests/lib/hasServiceOfSameMetadataTypeAlreadyBeenSelected.test.ts +0 -86
  232. package/src/tests/lib/logging.test.tsx +0 -32
  233. package/src/tests/lib/moneyStringFormatter.test.tsx +0 -12
  234. package/src/tests/lib/validateProps.test.tsx +0 -57
  235. package/src/types/Aircraft.ts +0 -16
  236. package/src/types/Airline.ts +0 -16
  237. package/src/types/Airport.ts +0 -54
  238. package/src/types/City.ts +0 -21
  239. package/src/types/CreateOrderPayload.ts +0 -99
  240. package/src/types/CurrencyConversion.ts +0 -10
  241. package/src/types/DuffelAncillariesProps.ts +0 -108
  242. package/src/types/Offer.ts +0 -851
  243. package/src/types/Order.ts +0 -6
  244. package/src/types/Place.ts +0 -6
  245. package/src/types/SeatMap.ts +0 -231
  246. package/src/types/index.ts +0 -11
  247. package/tsconfig.json +0 -58
  248. /package/{react-dist/components → components}/DuffelAncillaries/Card.d.ts +0 -0
  249. /package/{react-dist/components → components}/DuffelAncillaries/Counter.d.ts +0 -0
  250. /package/{react-dist/components → components}/DuffelAncillaries/DuffelAncillaries.d.ts +0 -0
  251. /package/{react-dist/components → components}/DuffelAncillaries/DuffelAncillariesCustomElement.d.ts +0 -0
  252. /package/{react-dist/components → components}/DuffelAncillaries/bags/BaggageSelectionCard.d.ts +0 -0
  253. /package/{react-dist/components → components}/DuffelAncillaries/bags/BaggageSelectionController.d.ts +0 -0
  254. /package/{react-dist/components → components}/DuffelAncillaries/bags/BaggageSelectionModal.d.ts +0 -0
  255. /package/{react-dist/components → components}/DuffelAncillaries/bags/BaggageSelectionModalBody.d.ts +0 -0
  256. /package/{react-dist/components → components}/DuffelAncillaries/bags/BaggageSelectionModalBodyPassenger.d.ts +0 -0
  257. /package/{react-dist/components → components}/DuffelAncillaries/bags/BaggageSelectionModalFooter.d.ts +0 -0
  258. /package/{react-dist/components → components}/DuffelAncillaries/bags/BaggageSelectionModalHeader.d.ts +0 -0
  259. /package/{react-dist/components → components}/DuffelAncillaries/bags/IncludedBaggageBanner.d.ts +0 -0
  260. /package/{react-dist/components → components}/DuffelAncillaries/cancel_for_any_reason/CfarSelectionCard.d.ts +0 -0
  261. /package/{react-dist/components → components}/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModal.d.ts +0 -0
  262. /package/{react-dist/components → components}/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalBody.d.ts +0 -0
  263. /package/{react-dist/components → components}/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalBodyListItem.d.ts +0 -0
  264. /package/{react-dist/components → components}/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalFooter.d.ts +0 -0
  265. /package/{react-dist/components → components}/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalHeader.d.ts +0 -0
  266. /package/{react-dist/components → components}/DuffelAncillaries/seats/Amenity.d.ts +0 -0
  267. /package/{react-dist/components → components}/DuffelAncillaries/seats/DeckSelect.d.ts +0 -0
  268. /package/{react-dist/components → components}/DuffelAncillaries/seats/Element.d.ts +0 -0
  269. /package/{react-dist/components → components}/DuffelAncillaries/seats/EmptyElement.d.ts +0 -0
  270. /package/{react-dist/components → components}/DuffelAncillaries/seats/ExitElement.d.ts +0 -0
  271. /package/{react-dist/components → components}/DuffelAncillaries/seats/Legend.d.ts +0 -0
  272. /package/{react-dist/components → components}/DuffelAncillaries/seats/Row.d.ts +0 -0
  273. /package/{react-dist/components → components}/DuffelAncillaries/seats/RowSection.d.ts +0 -0
  274. /package/{react-dist/components → components}/DuffelAncillaries/seats/SeatElement.d.ts +0 -0
  275. /package/{react-dist/components → components}/DuffelAncillaries/seats/SeatInfo.d.ts +0 -0
  276. /package/{react-dist/components → components}/DuffelAncillaries/seats/SeatMap.d.ts +0 -0
  277. /package/{react-dist/components → components}/DuffelAncillaries/seats/SeatMapUnavailable.d.ts +0 -0
  278. /package/{react-dist/components → components}/DuffelAncillaries/seats/SeatSelectionCard.d.ts +0 -0
  279. /package/{react-dist/components → components}/DuffelAncillaries/seats/SeatSelectionModal.d.ts +0 -0
  280. /package/{react-dist/components → components}/DuffelAncillaries/seats/SeatSelectionModalBody.d.ts +0 -0
  281. /package/{react-dist/components → components}/DuffelAncillaries/seats/SeatSelectionModalFooter.d.ts +0 -0
  282. /package/{react-dist/components → components}/DuffelAncillaries/seats/SeatSelectionModalHeader.d.ts +0 -0
  283. /package/{react-dist/components → components}/DuffelAncillaries/seats/SeatUnavailable.d.ts +0 -0
  284. /package/{react-dist/components → components}/DuffelPayments/DuffelPayments.d.ts +0 -0
  285. /package/{react-dist/components → components}/DuffelPayments/DuffelPaymentsCustomElement.d.ts +0 -0
  286. /package/{react-dist/components → components}/PlacesLookup/PlacesLookup.d.ts +0 -0
  287. /package/{react-dist/components → components}/shared/AnimatedLoaderEllipsis.d.ts +0 -0
  288. /package/{react-dist/components → components}/shared/Button.d.ts +0 -0
  289. /package/{react-dist/components → components}/shared/ErrorBoundary.d.ts +0 -0
  290. /package/{react-dist/components → components}/shared/FetchOfferErrorState.d.ts +0 -0
  291. /package/{react-dist/components → components}/shared/Icon.d.ts +0 -0
  292. /package/{react-dist/components → components}/shared/IconButton.d.ts +0 -0
  293. /package/{react-dist/components → components}/shared/Modal.d.ts +0 -0
  294. /package/{react-dist/components → components}/shared/NonIdealState.d.ts +0 -0
  295. /package/{react-dist/components → components}/shared/Stamp.d.ts +0 -0
  296. /package/{react-dist/components → components}/shared/Tabs.d.ts +0 -0
  297. /package/{react-dist/custom-elements.d.ts → custom-elements.d.ts} +0 -0
  298. /package/{react-dist/index.d.ts → index.d.ts} +0 -0
  299. /package/{react-dist/lib → lib}/captureErrorInSentry.d.ts +0 -0
  300. /package/{react-dist/lib → lib}/compileCreateOrderPayload.d.ts +0 -0
  301. /package/{react-dist/lib → lib}/createPriceFormatters.d.ts +0 -0
  302. /package/{react-dist/lib → lib}/fetchFromDuffelAPI.d.ts +0 -0
  303. /package/{react-dist/lib → lib}/fetchFromFixtures.d.ts +0 -0
  304. /package/{react-dist/lib → lib}/formatAvailableServices.d.ts +0 -0
  305. /package/{react-dist/lib → lib}/formatDate.d.ts +0 -0
  306. /package/{react-dist/lib → lib}/formatSeatMaps.d.ts +0 -0
  307. /package/{react-dist/lib → lib}/getBaggageServiceDescription.d.ts +0 -0
  308. /package/{react-dist/lib → lib}/getCabinsForSegmentAndDeck.d.ts +0 -0
  309. /package/{react-dist/lib → lib}/getCurrencyForSeatMaps.d.ts +0 -0
  310. /package/{react-dist/lib → lib}/getCurrencyForServices.d.ts +0 -0
  311. /package/{react-dist/lib → lib}/getFirstSeatElementMatchingCriteria.d.ts +0 -0
  312. /package/{react-dist/lib → lib}/getPassengerBySegmentList.d.ts +0 -0
  313. /package/{react-dist/lib → lib}/getPassengerInitials.d.ts +0 -0
  314. /package/{react-dist/lib → lib}/getPassengerMapById.d.ts +0 -0
  315. /package/{react-dist/lib → lib}/getPassengerName.d.ts +0 -0
  316. /package/{react-dist/lib → lib}/getRowNumber.d.ts +0 -0
  317. /package/{react-dist/lib → lib}/getSegmentList.d.ts +0 -0
  318. /package/{react-dist/lib → lib}/getServicePriceMapById.d.ts +0 -0
  319. /package/{react-dist/lib → lib}/getSymbols.d.ts +0 -0
  320. /package/{react-dist/lib → lib}/getTotalAmountForServices.d.ts +0 -0
  321. /package/{react-dist/lib → lib}/getTotalQuantity.d.ts +0 -0
  322. /package/{react-dist/lib → lib}/hasHighLuminance.d.ts +0 -0
  323. /package/{react-dist/lib → lib}/hasService.d.ts +0 -0
  324. /package/{react-dist/lib → lib}/hasServiceOfSameMetadataTypeAlreadyBeenSelected.d.ts +0 -0
  325. /package/{react-dist/lib → lib}/hasWings.d.ts +0 -0
  326. /package/{react-dist/lib → lib}/isBaggageService.d.ts +0 -0
  327. /package/{react-dist/lib → lib}/isCancelForAnyReasonService.d.ts +0 -0
  328. /package/{react-dist/lib → lib}/isFixtureOfferId.d.ts +0 -0
  329. /package/{react-dist/lib → lib}/isPayloadComplete.d.ts +0 -0
  330. /package/{react-dist/lib → lib}/isSeatElement.d.ts +0 -0
  331. /package/{react-dist/lib → lib}/logging.d.ts +0 -0
  332. /package/{react-dist/lib → lib}/moneyStringFormatter.d.ts +0 -0
  333. /package/{react-dist/lib → lib}/offerIsExpired.d.ts +0 -0
  334. /package/{react-dist/lib → lib}/retrieveOffer.d.ts +0 -0
  335. /package/{react-dist/lib → lib}/retrieveOfferFromDuffelAPI.d.ts +0 -0
  336. /package/{react-dist/lib → lib}/retrieveSeatMaps.d.ts +0 -0
  337. /package/{react-dist/lib → lib}/retrieveSeatMapsFromDuffelAPI.d.ts +0 -0
  338. /package/{react-dist/lib → lib}/setBodyScrollability.d.ts +0 -0
  339. /package/{react-dist/lib → lib}/validateProps.d.ts +0 -0
  340. /package/{react-dist/lib → lib}/withPlural.d.ts +0 -0
  341. /package/{react-dist/types → types}/Aircraft.d.ts +0 -0
  342. /package/{react-dist/types → types}/Airline.d.ts +0 -0
  343. /package/{react-dist/types → types}/Airport.d.ts +0 -0
  344. /package/{react-dist/types → types}/City.d.ts +0 -0
  345. /package/{react-dist/types → types}/CreateOrderPayload.d.ts +0 -0
  346. /package/{react-dist/types → types}/CurrencyConversion.d.ts +0 -0
  347. /package/{react-dist/types → types}/DuffelAncillariesProps.d.ts +0 -0
  348. /package/{react-dist/types → types}/Offer.d.ts +0 -0
  349. /package/{react-dist/types → types}/Order.d.ts +0 -0
  350. /package/{react-dist/types → types}/Place.d.ts +0 -0
  351. /package/{react-dist/types → types}/SeatMap.d.ts +0 -0
  352. /package/{react-dist/types → types}/index.d.ts +0 -0
@@ -1,91 +0,0 @@
1
- import type { Meta, StoryFn, StoryObj } from "@storybook/react";
2
- import React from "react";
3
- import { Button, ButtonProps } from "../components/shared/Button";
4
-
5
- export default {
6
- title: "Button",
7
- component: Button,
8
- } as Meta;
9
-
10
- type ButtonStory = StoryObj<typeof Button>;
11
-
12
- const defaultProps: ButtonProps = {
13
- children: "Click me",
14
- onClick: () => 0,
15
- };
16
-
17
- export const Default: ButtonStory = { args: defaultProps };
18
-
19
- export const Disabled: ButtonStory = {
20
- args: { ...defaultProps, disabled: true },
21
- };
22
-
23
- export const WithIconBefore: ButtonStory = {
24
- args: { ...defaultProps, iconBefore: "autorenew" },
25
- };
26
-
27
- export const WithOutlinedVariant: ButtonStory = {
28
- args: { ...defaultProps, variant: "outlined" },
29
- };
30
-
31
- export const DisabledWithOutlinedVariant: ButtonStory = {
32
- args: { ...defaultProps, variant: "outlined", disabled: true },
33
- };
34
-
35
- export const WithDestructiveVariant: ButtonStory = {
36
- args: {
37
- ...defaultProps,
38
- children: "Click to delete something important",
39
- variant: "destructive",
40
- },
41
- };
42
-
43
- export const WithSize32: ButtonStory = {
44
- args: { ...defaultProps, size: 32, iconBefore: "autorenew" },
45
- };
46
-
47
- export const WithSize48: ButtonStory = {
48
- args: { ...defaultProps, size: 48, iconBefore: "autorenew" },
49
- };
50
-
51
- const AccentColorWrapper: React.FC<{ children: React.ReactNode }> = ({
52
- children,
53
- }) => (
54
- <div
55
- style={
56
- {
57
- "--ACCENT": "29, 78, 216",
58
- } as any
59
- }
60
- >
61
- {children}
62
- </div>
63
- );
64
-
65
- export const WithAccentColorSet: StoryFn<ButtonProps> = () => (
66
- <AccentColorWrapper>
67
- <Button {...defaultProps} />
68
- </AccentColorWrapper>
69
- );
70
-
71
- const WhiteAccentColorWrapper: React.FC<{ children: React.ReactNode }> = ({
72
- children,
73
- }) => (
74
- <div
75
- style={
76
- {
77
- "--ACCENT": "255, 255, 255",
78
- "--SECONDARY": "black",
79
- "--TERTIARY": "grey",
80
- } as any
81
- }
82
- >
83
- {children}
84
- </div>
85
- );
86
-
87
- export const WithWhiteAccentColorSet: StoryFn<ButtonProps> = () => (
88
- <WhiteAccentColorWrapper>
89
- <Button {...defaultProps} />
90
- </WhiteAccentColorWrapper>
91
- );
@@ -1,166 +0,0 @@
1
- import type { Meta, StoryFn, StoryObj } from "@storybook/react";
2
- import { DuffelAncillaries } from "../components/DuffelAncillaries/DuffelAncillaries";
3
- import mockPassengers from "../fixtures/passengers/mock_passengers";
4
- import { DuffelAncillariesPropsWithOffersAndSeatMaps } from "../types/DuffelAncillariesProps";
5
- import { Offer } from "../types/Offer";
6
- import { SeatMap } from "../types/SeatMap";
7
-
8
- // Use a require because the fixture is not a module.
9
- /* eslint-disable @typescript-eslint/no-var-requires */
10
- const offer: Offer = require("../fixtures/offers/off_1.json");
11
- const seat_maps: SeatMap[] = require("../fixtures/seat-maps/off_1.json");
12
- /* eslint-enable @typescript-eslint/no-var-requires */
13
-
14
- export default {
15
- title: "DuffelAncillaries",
16
- component: DuffelAncillaries,
17
- } as Meta;
18
-
19
- type DuffelAncillariesStory = StoryObj<typeof DuffelAncillaries>;
20
-
21
- const defaultProps: Pick<
22
- DuffelAncillariesPropsWithOffersAndSeatMaps,
23
- "onPayloadReady" | "passengers" | "offer" | "seat_maps" | "services" | "debug"
24
- > = {
25
- onPayloadReady: () => {}, // eslint-disable-line @typescript-eslint/no-empty-function
26
- offer,
27
- seat_maps,
28
- passengers: mockPassengers,
29
- services: ["bags", "seats", "cancel_for_any_reason"],
30
- debug: true,
31
- };
32
-
33
- export const AllServices: DuffelAncillariesStory = {
34
- args: defaultProps,
35
- };
36
-
37
- export const JustBags: DuffelAncillariesStory = {
38
- args: {
39
- ...defaultProps,
40
- services: ["bags"],
41
- },
42
- };
43
-
44
- export const JustSeats: DuffelAncillariesStory = {
45
- args: {
46
- ...defaultProps,
47
- services: ["seats"],
48
- },
49
- };
50
-
51
- export const JustCFAR: DuffelAncillariesStory = {
52
- args: {
53
- ...defaultProps,
54
- services: ["cancel_for_any_reason"],
55
- },
56
- };
57
-
58
- export const ExpiredOffer: DuffelAncillariesStory = {
59
- args: {
60
- ...defaultProps,
61
- offer: { ...offer, expires_at: "2023-04-19T00:00:00Z" },
62
- },
63
- };
64
-
65
- export const OneWayOnePassengerOffer: DuffelAncillariesStory = {
66
- args: {
67
- ...defaultProps,
68
- offer: {
69
- ...offer,
70
- slices: [
71
- {
72
- ...offer.slices[0],
73
- segments: [
74
- {
75
- ...offer.slices[0].segments[0],
76
- passengers: [offer.slices[0].segments[0].passengers[0]],
77
- },
78
- ],
79
- },
80
- ],
81
- passengers: [offer.passengers[0]],
82
- available_services: [offer.available_services[0]],
83
- },
84
- },
85
- };
86
-
87
- export const WithCustomStyles: DuffelAncillariesStory = {
88
- args: {
89
- ...defaultProps,
90
- styles: {
91
- accentColor: "29, 78, 216",
92
- fontFamily: "monospace",
93
- buttonCornerRadius: "15px",
94
- },
95
- },
96
- };
97
-
98
- export const Markup: DuffelAncillariesStory = {
99
- args: {
100
- markup: {
101
- bags: {
102
- rate: 0.1,
103
- amount: 1,
104
- },
105
- seats: {
106
- rate: 0.2,
107
- amount: 2,
108
- },
109
- cancel_for_any_reason: {
110
- rate: 0.3,
111
- amount: 3,
112
- },
113
- },
114
- ...defaultProps,
115
- },
116
- };
117
-
118
- const fiftyPercentMarkup = (amount: number) => ({
119
- amount: amount * 1.5,
120
- });
121
-
122
- export const MarkupUsingPriceFormatters: DuffelAncillariesStory = {
123
- args: {
124
- ...defaultProps,
125
- priceFormatters: {
126
- bags: fiftyPercentMarkup,
127
- seats: fiftyPercentMarkup,
128
- cancel_for_any_reason: fiftyPercentMarkup,
129
- },
130
- },
131
- };
132
-
133
- const customCurrencyMarkup = () => ({
134
- amount: 100,
135
- currency: "Duffel points",
136
- });
137
-
138
- export const MarkupUsingPriceFormattersWithCustomCurrency: DuffelAncillariesStory =
139
- {
140
- args: {
141
- ...defaultProps,
142
- priceFormatters: {
143
- bags: customCurrencyMarkup,
144
- seats: customCurrencyMarkup,
145
- cancel_for_any_reason: customCurrencyMarkup,
146
- },
147
- },
148
- };
149
-
150
- export const WithAccentColorSet: StoryFn<
151
- DuffelAncillariesPropsWithOffersAndSeatMaps
152
- > = () => (
153
- <DuffelAncillaries
154
- {...defaultProps}
155
- styles={{ accentColor: "29, 78, 216" }}
156
- />
157
- );
158
-
159
- export const WithWhiteAccentColorSet: StoryFn<
160
- DuffelAncillariesPropsWithOffersAndSeatMaps
161
- > = () => (
162
- <DuffelAncillaries
163
- {...defaultProps}
164
- styles={{ accentColor: "255, 255, 255" }}
165
- />
166
- );
@@ -1,34 +0,0 @@
1
- import type { Meta, StoryObj } from "@storybook/react";
2
- import {
3
- DuffelPayments,
4
- DuffelPaymentsProps,
5
- } from "../components/DuffelPayments/DuffelPayments";
6
-
7
- export default {
8
- title: "DuffelPayments",
9
- component: DuffelPayments,
10
- } as Meta;
11
-
12
- type DuffelPaymentsStory = StoryObj<typeof DuffelPayments>;
13
-
14
- const defaultProps: DuffelPaymentsProps = {
15
- paymentIntentClientToken:
16
- "eyJjbGllbnRfc2VjcmV0IjoicGlfM0psczlVQWcySmhFeTh2WTBSTm1MU0JkX3NlY3JldF9QUW9yZXNuU3laeWJadGRiejZwNzBCbUdPIiwicHVibGlzaGFibGVfa2V5IjoicGtfdGVzdF9EQUJLY0E2Vzh6OTc0cTdPSWY0YmJ2MVQwMEpwRmMyOUpWIn0=",
17
- onSuccessfulPayment: () => {}, // eslint-disable-line @typescript-eslint/no-empty-function
18
- onFailedPayment: () => {}, // eslint-disable-line @typescript-eslint/no-empty-function
19
- };
20
-
21
- export const Default: DuffelPaymentsStory = {
22
- args: defaultProps,
23
- };
24
-
25
- export const WithCustomStyles: DuffelPaymentsStory = {
26
- args: {
27
- ...defaultProps,
28
- styles: {
29
- accentColor: "29, 78, 216",
30
- fontFamily: "monospace",
31
- buttonCornerRadius: "15px",
32
- },
33
- },
34
- };
@@ -1,35 +0,0 @@
1
- import { Meta } from "@storybook/react";
2
- import React from "react";
3
- import { Icon, ICON_MAP, IconName } from "../components/shared/Icon";
4
-
5
- export default {
6
- title: "Icon",
7
- component: Icon,
8
- } as Meta;
9
-
10
- export const FullList: React.FC = () => (
11
- <div
12
- style={{
13
- display: "grid",
14
- gridTemplateColumns: "repeat(4, 1fr)",
15
- gridGap: "32px",
16
- }}
17
- >
18
- {Object.keys(ICON_MAP).map((icon) => (
19
- <div
20
- key={icon}
21
- style={{
22
- padding: "16px",
23
- border: "dashed 1px lightgrey",
24
- borderRadius: "2px",
25
- display: "flex",
26
- alignItems: "center",
27
- columnGap: "8px",
28
- }}
29
- >
30
- <Icon name={icon as IconName} />
31
- <div>{icon}</div>
32
- </div>
33
- ))}
34
- </div>
35
- );
@@ -1,25 +0,0 @@
1
- import type { Meta, StoryObj } from "@storybook/react";
2
- import { IconButton, IconButtonProps } from "../components/shared/IconButton";
3
-
4
- export default {
5
- title: "IconButton",
6
- component: IconButton,
7
- } as Meta;
8
-
9
- type IconButtonStory = StoryObj<typeof IconButton>;
10
-
11
- const defaultProps: IconButtonProps = {
12
- title: "Click me",
13
- icon: "autorenew",
14
- onClick: () => 0,
15
- };
16
-
17
- export const Default: IconButtonStory = { args: defaultProps };
18
-
19
- export const WithOutlinedVariant: IconButtonStory = {
20
- args: { ...defaultProps, variant: "outlined" },
21
- };
22
-
23
- export const DisabledWithOutlinedVariant: IconButtonStory = {
24
- args: { ...defaultProps, variant: "outlined", disabled: true },
25
- };
@@ -1,22 +0,0 @@
1
- import type { Meta } from "@storybook/react";
2
- import React from "react";
3
- import {
4
- PlacesLookup,
5
- PlacesLookupProps,
6
- } from "../components/PlacesLookup/PlacesLookup";
7
-
8
- export default {
9
- title: "PlacesLookup",
10
- component: PlacesLookup,
11
- } as Meta;
12
-
13
- const defaultProps: PlacesLookupProps = {
14
- onPlaceSelected: (selection) =>
15
- alert(`Selected: ${JSON.stringify(selection)}`),
16
- };
17
-
18
- export const Default: React.FC = () => (
19
- <div style={{ width: "350px" }}>
20
- <PlacesLookup {...defaultProps} />
21
- </div>
22
- );
@@ -1,22 +0,0 @@
1
- .duffel-components {
2
- --GREY-100: #f7f5f9;
3
- --GREY-200: #e2e2e8;
4
- --GREY-300: #e2e8f0;
5
- --GREY-400: #ababb4;
6
- --GREY-500: #86868e;
7
- --GREY-600: #696972;
8
- --GREY-700: #4b4b55;
9
- --GREY-900: #29292e;
10
- --RED: #ef4444;
11
- --BLACK: 0, 0, 0;
12
- --WHITE: 255, 255, 255;
13
- --ACCENT: 22, 22, 24;
14
- --ACCENT-LIGHT-100: 0.08;
15
- --ACCENT-LIGHT-200: 0.24;
16
- --ACCENT-LIGHT-300: 0.48;
17
- --ACCENT-LIGHT-800: 0.8;
18
- --ACCENT-LIGHT-1000: 1;
19
- --GREEN-100: #ecfdf5;
20
- --GREEN-200: #10b981;
21
- --GREEN-300: #064e3b;
22
- }
@@ -1,23 +0,0 @@
1
- .map-element--amenity {
2
- width: 100%;
3
- height: var(--SPACING-LG-1);
4
- color: var(--GREY-600);
5
- display: flex;
6
- align-items: center;
7
- justify-content: center;
8
- margin-bottom: var(--SPACING-SM-1);
9
- }
10
-
11
- @media only screen and (min-width: 768px) {
12
- .map-element--amenity {
13
- width: 100%;
14
- height: var(--SPACING-LG-3);
15
- font-size: var(--FONT-SIZES-C2);
16
- }
17
- }
18
-
19
- .map-element--wrapped {
20
- background-color: var(--GREY-100);
21
- border-radius: 8px;
22
- border: 2px solid var(--GREY-200);
23
- }
@@ -1,25 +0,0 @@
1
- .baggage-display {
2
- display: flex;
3
- align-items: center;
4
- }
5
-
6
- .baggage-display__content {
7
- margin-left: var(--SPACING-SM-1);
8
- }
9
-
10
- .baggage-display__label {
11
- color: var(--grey-900);
12
- font-size: var(--FONT-SIZES-C2);
13
- }
14
-
15
- .baggage-display__price {
16
- font-size: var(--FONT-SIZES-C2);
17
- color: var(--GREY-600);
18
- margin-left: var(--SPACING-XS-2);
19
- }
20
-
21
- .baggage-display__specs {
22
- margin-top: var(--SPACING-XS-2);
23
- font-size: var(--FONT-SIZES-C3);
24
- color: var(--GREY-600);
25
- }
@@ -1,169 +0,0 @@
1
- /**
2
- * 1. Change the font styles in all browsers.
3
- * 2. Remove the margin in Firefox and Safari.
4
- */
5
- button {
6
- font-family: inherit; /* 1 */
7
- font-size: 100%; /* 1 */
8
- line-height: 1.15; /* 1 */
9
- margin: 0; /* 2 */
10
- }
11
-
12
- /**
13
- * Show the overflow in IE.
14
- * 1. Show the overflow in Edge.
15
- */
16
- button {
17
- /* 1 */
18
- overflow: visible;
19
- }
20
-
21
- /**
22
- * Remove the inheritance of text transform in Edge, Firefox, and IE.
23
- * 1. Remove the inheritance of text transform in Firefox.
24
- */
25
-
26
- button {
27
- /* 1 */
28
- text-transform: none;
29
- }
30
-
31
- /**
32
- * Correct the inability to style clickable types in iOS and Safari.
33
- */
34
-
35
- button,
36
- [type="button"],
37
- [type="reset"],
38
- [type="submit"] {
39
- appearance: button;
40
- -webkit-appearance: button;
41
- }
42
-
43
- /**
44
- * Remove the inner border and padding in Firefox.
45
- */
46
- button::-moz-focus-inner,
47
- [type="button"]::-moz-focus-inner,
48
- [type="reset"]::-moz-focus-inner,
49
- [type="submit"]::-moz-focus-inner {
50
- border-style: none;
51
- padding: 0;
52
- }
53
-
54
- /**
55
- * Restore the focus styles unset by the previous rule.
56
- */
57
- button:-moz-focusring,
58
- [type="button"]:-moz-focusring,
59
- [type="reset"]:-moz-focusring,
60
- [type="submit"]:-moz-focusring {
61
- outline: 1px dotted ButtonText;
62
- }
63
-
64
- .button {
65
- --button-color: var(--SECONDARY, white);
66
-
67
- box-sizing: border-box;
68
- border-radius: var(--BUTTON-RADIUS, 6px);
69
- cursor: pointer;
70
- border: none;
71
-
72
- display: flex;
73
- align-items: center;
74
- justify-content: center;
75
-
76
- letter-spacing: 0em;
77
-
78
- background-color: rgba(var(--ACCENT), var(--ACCENT-LIGHT-1000));
79
- color: var(--button-color);
80
- box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.25), 0px 0px 0px #e9e9eb;
81
-
82
- border: 1px solid rgba(var(--ACCENT), var(--ACCENT-LIGHT-1000));
83
- /* Will give the button an outline if the accent color has high luminance */
84
- border: 1px solid var(--SECONDARY);
85
- transition: background-color 0.3s var(--TRANSITION-CUBIC-BEZIER),
86
- box-shadow 0.3s var(--TRANSITION-CUBIC-BEZIER),
87
- color 0.3s var(--TRANSITION-CUBIC-BEZIER);
88
- }
89
-
90
- .button--32 {
91
- height: 32px;
92
- font-size: 14px;
93
- font-weight: 600;
94
- line-height: 20px;
95
- padding-inline: 16px;
96
- }
97
-
98
- .button--40 {
99
- height: 40px;
100
- font-size: 14px;
101
- font-weight: 600;
102
- line-height: 20px;
103
- padding-inline: 24px;
104
- }
105
-
106
- .button--48 {
107
- height: 48px;
108
- font-size: 16px;
109
- font-weight: 600;
110
- line-height: 24px;
111
- padding-inline: 32px;
112
- }
113
-
114
- .button svg {
115
- /* Using important to take precedence over inline styles on icon */
116
- display: inline !important;
117
- height: 20px;
118
- margin-right: 4px;
119
- margin-left: -4px;
120
- }
121
-
122
- .button:not(:disabled):hover {
123
- box-shadow: 0px 0px 0px 2px #e9e9eb, 0px 2px 4px 1px #00000026;
124
- }
125
-
126
- .button:disabled {
127
- cursor: not-allowed;
128
- opacity: 0.4;
129
- }
130
-
131
- .button--primary:not(:disabled):hover {
132
- background-color: rgba(var(--ACCENT), var(--ACCENT-LIGHT-800));
133
- border-color: (
134
- var(--SECONDARY),
135
- rgba(var(--ACCENT), var(--ACCENT-LIGHT-800))
136
- );
137
- box-shadow: 0px 2px 4px 1px rgba(0, 0, 0, 0.15), 0px 0px 0px 2px #e9e9eb;
138
- }
139
-
140
- .button--primary:not(:disabled):active {
141
- background-color: rgba(var(--ACCENT), var(--ACCENT-LIGHT-1000));
142
- border-color: (
143
- var(--SECONDARY),
144
- rgba(var(--ACCENT), var(--ACCENT-LIGHT-1000))
145
- );
146
- box-shadow: 0px 1px 2px 1px rgba(0, 0, 0, 0.25), 0px 0px 0px 1px #dcdcde;
147
- }
148
-
149
- .button--destructive,
150
- .button--outlined {
151
- border: 1px solid #ccccd4;
152
- color: var(--GREY-900);
153
- background-color: rgb(var(--WHITE));
154
- }
155
-
156
- .button--outlined:not(:disabled):hover,
157
- .button--destructive:not(:disabled):hover {
158
- border: 1px solid #ababb4;
159
- background-color: #fbfbfd;
160
- }
161
-
162
- .button--outlined:not(:disabled):active,
163
- .button--destructive:not(:disabled):active {
164
- background-color: var(--GREY-100);
165
- }
166
-
167
- .button--destructive {
168
- color: var(--RED);
169
- }
@@ -1,52 +0,0 @@
1
- .ancillary-card:disabled {
2
- color: inherit;
3
- cursor: not-allowed;
4
- background-color: var(--GREY-100);
5
- }
6
-
7
- .ancillary-card--loading:disabled {
8
- cursor: progress;
9
- }
10
-
11
- .ancillary-card__expand-icon {
12
- color: var(--GREY-400);
13
- transition: color 0.3s var(--TRANSITION-CUBIC-BEZIER),
14
- transform 0.5s var(--TRANSITION-CUBIC-BEZIER);
15
- transform: scale(1);
16
- }
17
-
18
- .ancillary-card__children {
19
- text-align: start;
20
- font-weight: 400;
21
- font-size: 16px;
22
- line-height: 24px;
23
- color: var(--GREY-600);
24
- display: flex;
25
- justify-content: space-between;
26
- align-items: center;
27
- }
28
-
29
- .ancillary-card:not(:disabled):not(.ancillary-card--loading):focus {
30
- outline: none;
31
- }
32
-
33
- .ancillary-card:not(:disabled):not(.ancillary-card--loading):hover,
34
- .ancillary-card:not(:disabled):not(.ancillary-card--loading):focus-visible {
35
- /* important is needed here to override the inline border style from Card.tsx */
36
- border-color: var(--SECONDARY, rgb(var(--ACCENT))) !important;
37
- }
38
-
39
- .ancillary-card:not(:disabled):not(.ancillary-card--loading):hover
40
- .ancillary-card__expand-icon,
41
- .ancillary-card:not(:disabled):not(.ancillary-card--loading):focus-visible
42
- .ancillary-card__expand-icon {
43
- color: var(--SECONDARY, rgb(var(--ACCENT)));
44
- }
45
-
46
- .ancillary-card__selected-icon {
47
- background-color: var(--SECONDARY, rgb(var(--ACCENT)));
48
- border-radius: 20px;
49
- color: rgb(var(--WHITE));
50
- height: 24px;
51
- width: 24px;
52
- }
@@ -1,34 +0,0 @@
1
- .cfar-modal-footer {
2
- margin-top: 16px;
3
- padding: 16px 24px 24px;
4
- display: grid;
5
- column-gap: 12px;
6
- row-gap: 12px;
7
- grid-template-columns: 1fr;
8
- grid-template-rows: repeat(2, 1fr);
9
- }
10
-
11
- .cfar-modal-list-item {
12
- margin: 0;
13
- padding: 0;
14
- display: flex;
15
- align-items: center;
16
- column-gap: 8px;
17
- }
18
-
19
- .cfar-modal-list-item > svg {
20
- color: var(--SECONDARY, rgb(var(--ACCENT)));
21
- }
22
-
23
- .cfar-modal-list-item > p {
24
- margin: 0;
25
- padding: 0;
26
- }
27
-
28
- /* tablet or greater */
29
- @media (min-width: 768px) {
30
- .cfar-modal-footer {
31
- grid-template-columns: repeat(2, 1fr);
32
- grid-template-rows: 1fr;
33
- }
34
- }