@skyscanner/backpack-web 25.7.0-beta.2 → 25.8.0

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 (900) hide show
  1. package/README.md +2 -2
  2. package/bpk-animate-height/index.js +10 -3
  3. package/bpk-animate-height/src/AnimateHeight.js +67 -55
  4. package/bpk-component-accordion/index.js +34 -21
  5. package/bpk-component-accordion/src/BpkAccordion.js +41 -23
  6. package/bpk-component-accordion/src/BpkAccordionItem.js +65 -47
  7. package/bpk-component-accordion/src/withAccordionItemState.js +64 -48
  8. package/bpk-component-accordion/src/withSingleItemAccordionState.js +62 -46
  9. package/bpk-component-aria-live/index.js +17 -4
  10. package/bpk-component-aria-live/src/BpkAriaLive.js +33 -17
  11. package/bpk-component-autosuggest/index.js +18 -4
  12. package/bpk-component-autosuggest/src/BpkAutosuggest.js +34 -18
  13. package/bpk-component-autosuggest/src/BpkAutosuggestSuggestion.js +48 -32
  14. package/bpk-component-badge/index.js +25 -5
  15. package/bpk-component-badge/src/BpkBadge.js +34 -18
  16. package/bpk-component-badge/src/themeAttributes.js +8 -2
  17. package/bpk-component-banner-alert/index.js +45 -9
  18. package/bpk-component-banner-alert/src/AnimateAndFade.js +76 -68
  19. package/bpk-component-banner-alert/src/BpkBannerAlert.js +34 -17
  20. package/bpk-component-banner-alert/src/BpkBannerAlertDismissable.js +30 -12
  21. package/bpk-component-banner-alert/src/BpkBannerAlertExpandable.js +35 -16
  22. package/bpk-component-banner-alert/src/BpkBannerAlertInner.js +80 -66
  23. package/bpk-component-banner-alert/src/common-types.js +9 -2
  24. package/bpk-component-banner-alert/src/themeAttributes.js +8 -2
  25. package/bpk-component-banner-alert/src/withBannerAlertState.js +94 -77
  26. package/bpk-component-barchart/index.js +53 -9
  27. package/bpk-component-barchart/src/BpkBarchart.js +174 -154
  28. package/bpk-component-barchart/src/BpkBarchartBar.js +56 -41
  29. package/bpk-component-barchart/src/BpkBarchartBars.js +67 -51
  30. package/bpk-component-barchart/src/BpkBarchartDefs.js +22 -11
  31. package/bpk-component-barchart/src/BpkChartAxis.js +74 -59
  32. package/bpk-component-barchart/src/BpkChartDataTable.js +29 -22
  33. package/bpk-component-barchart/src/BpkChartGridLines.js +53 -38
  34. package/bpk-component-barchart/src/BpkChartMargin.js +34 -17
  35. package/bpk-component-barchart/src/RTLtransforms.js +36 -13
  36. package/bpk-component-barchart/src/customPropTypes.js +10 -2
  37. package/bpk-component-barchart/src/orientation.js +10 -2
  38. package/bpk-component-barchart/src/themeAttributes.js +9 -1
  39. package/bpk-component-barchart/src/utils.js +9 -1
  40. package/bpk-component-blockquote/index.js +17 -5
  41. package/bpk-component-blockquote/src/BpkBlockquote.js +17 -9
  42. package/bpk-component-blockquote/src/themeAttributes.js +8 -2
  43. package/bpk-component-boilerplate/index.js +10 -3
  44. package/bpk-component-boilerplate/src/BpkBoilerplate.js +30 -14
  45. package/bpk-component-breadcrumb/index.js +18 -4
  46. package/bpk-component-breadcrumb/src/BpkBreadcrumb.js +63 -46
  47. package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.js +52 -36
  48. package/bpk-component-breakpoint/index.js +17 -4
  49. package/bpk-component-breakpoint/src/BpkBreakpoint.js +25 -16
  50. package/bpk-component-button/BpkButtonDestructive.js +13 -17
  51. package/bpk-component-button/BpkButtonFeatured.js +13 -17
  52. package/bpk-component-button/BpkButtonLink.js +13 -17
  53. package/bpk-component-button/BpkButtonLinkOnDark.js +13 -17
  54. package/bpk-component-button/BpkButtonPrimary.js +13 -17
  55. package/bpk-component-button/BpkButtonPrimaryOnDark.js +13 -17
  56. package/bpk-component-button/BpkButtonPrimaryOnLight.js +13 -17
  57. package/bpk-component-button/BpkButtonSecondary.js +13 -17
  58. package/bpk-component-button/BpkButtonSecondaryOnDark.js +13 -17
  59. package/bpk-component-button/index.js +144 -15
  60. package/bpk-component-button/src/BpkButton.js +53 -57
  61. package/bpk-component-button/src/BpkButtonBase.js +45 -33
  62. package/bpk-component-button/src/BpkButtonDestructive.js +33 -19
  63. package/bpk-component-button/src/BpkButtonFeatured.js +33 -19
  64. package/bpk-component-button/src/BpkButtonLink.js +34 -20
  65. package/bpk-component-button/src/BpkButtonLinkOnDark.js +34 -20
  66. package/bpk-component-button/src/BpkButtonPrimary.js +35 -30
  67. package/bpk-component-button/src/BpkButtonPrimaryOnDark.js +33 -19
  68. package/bpk-component-button/src/BpkButtonPrimaryOnLight.js +33 -19
  69. package/bpk-component-button/src/BpkButtonSecondary.js +33 -19
  70. package/bpk-component-button/src/BpkButtonSecondaryOnDark.js +33 -19
  71. package/bpk-component-button/src/BpkButtonV2/BpkButton.js +46 -29
  72. package/bpk-component-button/src/BpkButtonV2/common-types.js +11 -3
  73. package/bpk-component-button/src/common-types.js +21 -13
  74. package/bpk-component-button/src/commonButtonTests.js +21 -14
  75. package/bpk-component-button/src/themeAttributes.js +22 -8
  76. package/bpk-component-button/themeAttributes.js +54 -17
  77. package/bpk-component-calendar/index.js +107 -14
  78. package/bpk-component-calendar/src/BpkCalendarContainer.js +200 -185
  79. package/bpk-component-calendar/src/BpkCalendarDate.js +83 -63
  80. package/bpk-component-calendar/src/BpkCalendarGrid.js +66 -60
  81. package/bpk-component-calendar/src/BpkCalendarGridHeader.js +44 -35
  82. package/bpk-component-calendar/src/BpkCalendarGridTransition.js +76 -63
  83. package/bpk-component-calendar/src/BpkCalendarNav.js +47 -37
  84. package/bpk-component-calendar/src/Week.js +101 -92
  85. package/bpk-component-calendar/src/composeCalendar.js +43 -36
  86. package/bpk-component-calendar/src/custom-proptypes-legacy.js +63 -52
  87. package/bpk-component-calendar/src/custom-proptypes.js +9 -2
  88. package/bpk-component-calendar/src/date-utils.js +161 -33
  89. package/bpk-component-calendar/src/themeAttributes.js +8 -2
  90. package/bpk-component-calendar/src/utils.js +15 -7
  91. package/bpk-component-calendar/test-utils.js +31 -14
  92. package/bpk-component-card/index.js +32 -6
  93. package/bpk-component-card/src/BpkCard.js +43 -29
  94. package/bpk-component-card/src/BpkCardWrapper.js +16 -9
  95. package/bpk-component-card/src/BpkDividedCard.js +40 -24
  96. package/bpk-component-checkbox/index.js +18 -4
  97. package/bpk-component-checkbox/src/BpkCheckbox.js +50 -35
  98. package/bpk-component-checkbox/src/themeAttributes.js +9 -1
  99. package/bpk-component-chip/index.js +38 -8
  100. package/bpk-component-chip/src/BpkDismissibleChip.js +34 -20
  101. package/bpk-component-chip/src/BpkDropdownChip.js +38 -21
  102. package/bpk-component-chip/src/BpkSelectableChip.js +46 -29
  103. package/bpk-component-chip/src/commonTypes.js +24 -15
  104. package/bpk-component-chip/src/themeAttributes.js +8 -2
  105. package/bpk-component-close-button/index.js +11 -2
  106. package/bpk-component-close-button/src/BpkCloseButton.js +40 -23
  107. package/bpk-component-code/index.js +20 -19
  108. package/bpk-component-code/src/BpkCode.js +35 -18
  109. package/bpk-component-code/src/BpkCodeBlock.js +36 -19
  110. package/bpk-component-content-cards/index.js +10 -3
  111. package/bpk-component-content-cards/src/BpkContentCard.js +22 -13
  112. package/bpk-component-content-cards/src/BpkContentCards.js +22 -13
  113. package/bpk-component-datatable/index.js +20 -20
  114. package/bpk-component-datatable/src/BpkDataTable.js +98 -88
  115. package/bpk-component-datatable/src/BpkDataTableColumn.js +47 -36
  116. package/bpk-component-datatable/src/BpkDataTableHeader.js +55 -45
  117. package/bpk-component-datatable/src/common-types.js +1 -0
  118. package/bpk-component-datatable/src/hasChildrenOfType.js +13 -5
  119. package/bpk-component-datatable/src/sort-types.js +9 -2
  120. package/bpk-component-datatable/src/utils.js +20 -8
  121. package/bpk-component-datepicker/index.js +24 -6
  122. package/bpk-component-datepicker/src/BpkDatepicker.js +200 -190
  123. package/bpk-component-datepicker/src/themeAttributes.js +11 -5
  124. package/bpk-component-description-list/index.js +26 -21
  125. package/bpk-component-description-list/src/BpkDescriptionDetails.js +10 -3
  126. package/bpk-component-description-list/src/BpkDescriptionList.js +10 -3
  127. package/bpk-component-description-list/src/BpkDescriptionTerm.js +10 -3
  128. package/bpk-component-description-list/src/ComponentFactory.js +34 -18
  129. package/bpk-component-dialog/index.js +17 -5
  130. package/bpk-component-dialog/src/BpkDialog.js +43 -28
  131. package/bpk-component-dialog/src/BpkDialogInner.js +20 -12
  132. package/bpk-component-dialog/src/common-types.js +9 -2
  133. package/bpk-component-drawer/index.js +18 -4
  134. package/bpk-component-drawer/src/BpkDrawer.js +68 -52
  135. package/bpk-component-drawer/src/BpkDrawerContent.js +73 -57
  136. package/bpk-component-drawer/src/themeAttributes.js +10 -2
  137. package/bpk-component-fieldset/index.js +32 -4
  138. package/bpk-component-fieldset/src/BpkFieldset.js +64 -50
  139. package/bpk-component-fieldset/src/themeAttributes.js +8 -2
  140. package/bpk-component-flare/index.js +24 -4
  141. package/bpk-component-flare/src/BpkContentBubble.js +46 -33
  142. package/bpk-component-flare/src/BpkFlareBar.js +39 -25
  143. package/bpk-component-flare/src/__generated__/js/corner-radius.js +31 -12
  144. package/bpk-component-flare/src/__generated__/js/pointer.js +31 -12
  145. package/bpk-component-floating-notification/index.js +11 -2
  146. package/bpk-component-floating-notification/src/BpkFloatingNotification.js +63 -45
  147. package/bpk-component-form-validation/index.js +17 -5
  148. package/bpk-component-form-validation/src/BpkFormValidation.js +50 -36
  149. package/bpk-component-form-validation/src/themeAttributes.js +8 -2
  150. package/bpk-component-graphic-promotion/index.js +17 -4
  151. package/bpk-component-graphic-promotion/src/BpkGraphicPromo.js +29 -21
  152. package/bpk-component-grid-toggle/index.js +10 -3
  153. package/bpk-component-grid-toggle/src/BpkGridToggle.js +50 -41
  154. package/bpk-component-horizontal-nav/index.js +31 -4
  155. package/bpk-component-horizontal-nav/src/BpkHorizontalNav.js +115 -96
  156. package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.js +79 -62
  157. package/bpk-component-icon/all.js +10 -2
  158. package/bpk-component-icon/index.js +33 -11
  159. package/bpk-component-icon/lg/accessibility.js +37 -18
  160. package/bpk-component-icon/lg/account--add.js +37 -18
  161. package/bpk-component-icon/lg/account--female.js +37 -18
  162. package/bpk-component-icon/lg/account--id-card.js +37 -18
  163. package/bpk-component-icon/lg/account--name.js +37 -18
  164. package/bpk-component-icon/lg/account--permit.js +37 -18
  165. package/bpk-component-icon/lg/account-circle.js +37 -18
  166. package/bpk-component-icon/lg/account.js +37 -18
  167. package/bpk-component-icon/lg/add-circle.js +37 -18
  168. package/bpk-component-icon/lg/adult.js +37 -18
  169. package/bpk-component-icon/lg/ai.js +38 -19
  170. package/bpk-component-icon/lg/aircon.js +37 -18
  171. package/bpk-component-icon/lg/aircraft.js +39 -21
  172. package/bpk-component-icon/lg/airline--multiple.js +37 -18
  173. package/bpk-component-icon/lg/airline.js +37 -18
  174. package/bpk-component-icon/lg/airports.js +37 -18
  175. package/bpk-component-icon/lg/alert--active.js +37 -18
  176. package/bpk-component-icon/lg/alert--add.js +37 -18
  177. package/bpk-component-icon/lg/alert--expired.js +37 -18
  178. package/bpk-component-icon/lg/alert--remove.js +37 -18
  179. package/bpk-component-icon/lg/arrow-down.js +37 -18
  180. package/bpk-component-icon/lg/arrow-left.js +37 -18
  181. package/bpk-component-icon/lg/arrow-right.js +37 -18
  182. package/bpk-component-icon/lg/arrow-up.js +37 -18
  183. package/bpk-component-icon/lg/award.js +37 -18
  184. package/bpk-component-icon/lg/baby-carriage.js +37 -18
  185. package/bpk-component-icon/lg/baggage--add.js +37 -18
  186. package/bpk-component-icon/lg/baggage--remove.js +37 -18
  187. package/bpk-component-icon/lg/baggage-cabin-add.js +37 -18
  188. package/bpk-component-icon/lg/baggage-cabin-not-included.js +37 -18
  189. package/bpk-component-icon/lg/baggage-cabin.js +37 -18
  190. package/bpk-component-icon/lg/baggage-checked-add.js +37 -18
  191. package/bpk-component-icon/lg/baggage-checked-not-included.js +37 -18
  192. package/bpk-component-icon/lg/baggage-checked.js +37 -18
  193. package/bpk-component-icon/lg/baggage-cross.js +37 -18
  194. package/bpk-component-icon/lg/baggage-generic.js +37 -18
  195. package/bpk-component-icon/lg/baggage-tick.js +37 -18
  196. package/bpk-component-icon/lg/baggage.js +37 -18
  197. package/bpk-component-icon/lg/bar.js +37 -18
  198. package/bpk-component-icon/lg/beach.js +39 -21
  199. package/bpk-component-icon/lg/beer.js +37 -18
  200. package/bpk-component-icon/lg/breakfast-cross.js +37 -18
  201. package/bpk-component-icon/lg/breakfast-tick.js +37 -18
  202. package/bpk-component-icon/lg/bus.js +37 -18
  203. package/bpk-component-icon/lg/business.js +37 -18
  204. package/bpk-component-icon/lg/cafe.js +37 -18
  205. package/bpk-component-icon/lg/calendar.js +37 -18
  206. package/bpk-component-icon/lg/call-back.js +39 -21
  207. package/bpk-component-icon/lg/camera.js +37 -18
  208. package/bpk-component-icon/lg/camper-van.js +39 -21
  209. package/bpk-component-icon/lg/car-door.js +37 -18
  210. package/bpk-component-icon/lg/car-wash.js +39 -21
  211. package/bpk-component-icon/lg/cars-flexible.js +37 -18
  212. package/bpk-component-icon/lg/cars.js +39 -21
  213. package/bpk-component-icon/lg/center-location.js +37 -18
  214. package/bpk-component-icon/lg/chart.js +37 -18
  215. package/bpk-component-icon/lg/chauffeur.js +37 -18
  216. package/bpk-component-icon/lg/chevron-down.js +37 -18
  217. package/bpk-component-icon/lg/chevron-left.js +37 -18
  218. package/bpk-component-icon/lg/chevron-right.js +37 -18
  219. package/bpk-component-icon/lg/chevron-up.js +37 -18
  220. package/bpk-component-icon/lg/child-seat.js +37 -18
  221. package/bpk-component-icon/lg/child.js +37 -18
  222. package/bpk-component-icon/lg/city-center.js +37 -18
  223. package/bpk-component-icon/lg/city.js +37 -18
  224. package/bpk-component-icon/lg/clean-policy.js +37 -18
  225. package/bpk-component-icon/lg/clean.js +41 -23
  226. package/bpk-component-icon/lg/cleaning-medical.js +37 -18
  227. package/bpk-component-icon/lg/cloakroom.js +41 -23
  228. package/bpk-component-icon/lg/close-circle.js +37 -18
  229. package/bpk-component-icon/lg/close.js +37 -18
  230. package/bpk-component-icon/lg/collapse.js +37 -18
  231. package/bpk-component-icon/lg/content--copy.js +39 -21
  232. package/bpk-component-icon/lg/content--event.js +37 -18
  233. package/bpk-component-icon/lg/content--guides.js +37 -18
  234. package/bpk-component-icon/lg/currency.js +37 -18
  235. package/bpk-component-icon/lg/data.js +39 -21
  236. package/bpk-component-icon/lg/deals.js +37 -18
  237. package/bpk-component-icon/lg/depart.js +39 -21
  238. package/bpk-component-icon/lg/device-mid.js +37 -18
  239. package/bpk-component-icon/lg/device-wide.js +37 -18
  240. package/bpk-component-icon/lg/direct.js +37 -18
  241. package/bpk-component-icon/lg/document-csv.js +37 -18
  242. package/bpk-component-icon/lg/document-pdf.js +37 -18
  243. package/bpk-component-icon/lg/download.js +39 -21
  244. package/bpk-component-icon/lg/duration.js +37 -18
  245. package/bpk-component-icon/lg/eco-leaf.js +37 -18
  246. package/bpk-component-icon/lg/edit.js +37 -18
  247. package/bpk-component-icon/lg/education.js +39 -21
  248. package/bpk-component-icon/lg/electric.js +37 -18
  249. package/bpk-component-icon/lg/end-call.js +37 -18
  250. package/bpk-component-icon/lg/estimated.js +37 -18
  251. package/bpk-component-icon/lg/exclamation-circle.js +37 -18
  252. package/bpk-component-icon/lg/exclamation.js +37 -18
  253. package/bpk-component-icon/lg/expand.js +37 -18
  254. package/bpk-component-icon/lg/explore.js +37 -18
  255. package/bpk-component-icon/lg/face--blank.js +37 -18
  256. package/bpk-component-icon/lg/face--happy.js +37 -18
  257. package/bpk-component-icon/lg/face--sad.js +37 -18
  258. package/bpk-component-icon/lg/face-id.js +37 -18
  259. package/bpk-component-icon/lg/face-mask.js +37 -18
  260. package/bpk-component-icon/lg/family.js +37 -18
  261. package/bpk-component-icon/lg/fast-track.js +39 -21
  262. package/bpk-component-icon/lg/fast-train.js +39 -21
  263. package/bpk-component-icon/lg/filter.js +38 -19
  264. package/bpk-component-icon/lg/fingerprint.js +37 -18
  265. package/bpk-component-icon/lg/flag.js +37 -18
  266. package/bpk-component-icon/lg/flask.js +37 -18
  267. package/bpk-component-icon/lg/flight-flexible.js +37 -18
  268. package/bpk-component-icon/lg/flight-landing.js +41 -23
  269. package/bpk-component-icon/lg/flight-takeoff.js +39 -21
  270. package/bpk-component-icon/lg/flight.js +39 -21
  271. package/bpk-component-icon/lg/food.js +37 -18
  272. package/bpk-component-icon/lg/gears-automatic-circle.js +37 -18
  273. package/bpk-component-icon/lg/gears-automatic.js +37 -18
  274. package/bpk-component-icon/lg/gears-manual-circle.js +37 -18
  275. package/bpk-component-icon/lg/gears-manual.js +37 -18
  276. package/bpk-component-icon/lg/globe.js +37 -18
  277. package/bpk-component-icon/lg/grid-layout.js +37 -18
  278. package/bpk-component-icon/lg/headset.js +37 -18
  279. package/bpk-component-icon/lg/health-fitness.js +37 -18
  280. package/bpk-component-icon/lg/heart--outline.js +37 -18
  281. package/bpk-component-icon/lg/heart.js +37 -18
  282. package/bpk-component-icon/lg/help-circle.js +37 -18
  283. package/bpk-component-icon/lg/help.js +37 -18
  284. package/bpk-component-icon/lg/hide.js +37 -18
  285. package/bpk-component-icon/lg/hotel-flexible.js +37 -18
  286. package/bpk-component-icon/lg/hotels--disabled-facilities.js +37 -18
  287. package/bpk-component-icon/lg/hotels--jacuzzi.js +37 -18
  288. package/bpk-component-icon/lg/hotels--pets-allowed.js +37 -18
  289. package/bpk-component-icon/lg/hotels--smoking.js +37 -18
  290. package/bpk-component-icon/lg/hotels.js +37 -18
  291. package/bpk-component-icon/lg/infant.js +37 -18
  292. package/bpk-component-icon/lg/information--language-alert.js +37 -18
  293. package/bpk-component-icon/lg/information--language-question.js +37 -18
  294. package/bpk-component-icon/lg/information--language.js +37 -18
  295. package/bpk-component-icon/lg/information-circle.js +37 -18
  296. package/bpk-component-icon/lg/information.js +37 -18
  297. package/bpk-component-icon/lg/insurance.js +37 -18
  298. package/bpk-component-icon/lg/key.js +37 -18
  299. package/bpk-component-icon/lg/keypad.js +37 -18
  300. package/bpk-component-icon/lg/landmark.js +37 -18
  301. package/bpk-component-icon/lg/language.js +37 -18
  302. package/bpk-component-icon/lg/legroom--extra.js +39 -21
  303. package/bpk-component-icon/lg/legroom--normal.js +39 -21
  304. package/bpk-component-icon/lg/legroom--reduced.js +39 -21
  305. package/bpk-component-icon/lg/leisure.js +37 -18
  306. package/bpk-component-icon/lg/lightning.js +37 -18
  307. package/bpk-component-icon/lg/list.js +37 -18
  308. package/bpk-component-icon/lg/location.js +37 -18
  309. package/bpk-component-icon/lg/lock.js +37 -18
  310. package/bpk-component-icon/lg/logout.js +39 -21
  311. package/bpk-component-icon/lg/long-arrow-down.js +37 -18
  312. package/bpk-component-icon/lg/long-arrow-left.js +37 -18
  313. package/bpk-component-icon/lg/long-arrow-right.js +37 -18
  314. package/bpk-component-icon/lg/long-arrow-up.js +37 -18
  315. package/bpk-component-icon/lg/lounge.js +39 -21
  316. package/bpk-component-icon/lg/luggageall.js +37 -18
  317. package/bpk-component-icon/lg/mail.js +39 -21
  318. package/bpk-component-icon/lg/map.js +37 -18
  319. package/bpk-component-icon/lg/meal.js +37 -18
  320. package/bpk-component-icon/lg/media.js +37 -18
  321. package/bpk-component-icon/lg/menu--horizontal.js +37 -18
  322. package/bpk-component-icon/lg/menu--vertical.js +37 -18
  323. package/bpk-component-icon/lg/menu.js +37 -18
  324. package/bpk-component-icon/lg/mileage.js +39 -21
  325. package/bpk-component-icon/lg/minus.js +37 -18
  326. package/bpk-component-icon/lg/mobile.js +37 -18
  327. package/bpk-component-icon/lg/money.js +37 -18
  328. package/bpk-component-icon/lg/multiple-bookings.js +37 -18
  329. package/bpk-component-icon/lg/music.js +37 -18
  330. package/bpk-component-icon/lg/mute.js +37 -18
  331. package/bpk-component-icon/lg/native-android--back.js +37 -18
  332. package/bpk-component-icon/lg/native-android--close.js +37 -18
  333. package/bpk-component-icon/lg/native-android--forward.js +37 -18
  334. package/bpk-component-icon/lg/native-ios-close.js +37 -18
  335. package/bpk-component-icon/lg/navigation.js +37 -18
  336. package/bpk-component-icon/lg/new-window.js +39 -21
  337. package/bpk-component-icon/lg/news.js +37 -18
  338. package/bpk-component-icon/lg/night.js +37 -18
  339. package/bpk-component-icon/lg/not-allowed.js +37 -18
  340. package/bpk-component-icon/lg/onsen.js +37 -18
  341. package/bpk-component-icon/lg/origin.js +37 -18
  342. package/bpk-component-icon/lg/paid.js +37 -18
  343. package/bpk-component-icon/lg/paperclip.js +37 -18
  344. package/bpk-component-icon/lg/parking.js +37 -18
  345. package/bpk-component-icon/lg/passport.js +37 -18
  346. package/bpk-component-icon/lg/pause.js +37 -18
  347. package/bpk-component-icon/lg/payment-card.js +37 -18
  348. package/bpk-component-icon/lg/petrol.js +37 -18
  349. package/bpk-component-icon/lg/phone-call.js +37 -18
  350. package/bpk-component-icon/lg/picture.js +37 -18
  351. package/bpk-component-icon/lg/pin.js +37 -18
  352. package/bpk-component-icon/lg/plane-seat.js +39 -21
  353. package/bpk-component-icon/lg/play.js +37 -18
  354. package/bpk-component-icon/lg/plus.js +37 -18
  355. package/bpk-component-icon/lg/policy.js +37 -18
  356. package/bpk-component-icon/lg/powerplug.js +37 -18
  357. package/bpk-component-icon/lg/ppe.js +37 -18
  358. package/bpk-component-icon/lg/price-alerts.js +37 -18
  359. package/bpk-component-icon/lg/price-tag.js +37 -18
  360. package/bpk-component-icon/lg/print.js +37 -18
  361. package/bpk-component-icon/lg/recent-searches.js +37 -18
  362. package/bpk-component-icon/lg/redo.js +37 -18
  363. package/bpk-component-icon/lg/refresh.js +37 -18
  364. package/bpk-component-icon/lg/return.js +39 -21
  365. package/bpk-component-icon/lg/room.js +37 -18
  366. package/bpk-component-icon/lg/scales.js +39 -21
  367. package/bpk-component-icon/lg/search.js +37 -18
  368. package/bpk-component-icon/lg/self-service.js +37 -18
  369. package/bpk-component-icon/lg/send-message.js +37 -18
  370. package/bpk-component-icon/lg/services.js +37 -18
  371. package/bpk-component-icon/lg/settings.js +37 -18
  372. package/bpk-component-icon/lg/share--android.js +37 -18
  373. package/bpk-component-icon/lg/share--ios.js +39 -21
  374. package/bpk-component-icon/lg/share.js +37 -18
  375. package/bpk-component-icon/lg/single-booking.js +37 -18
  376. package/bpk-component-icon/lg/social-distancing.js +39 -21
  377. package/bpk-component-icon/lg/social-like.js +37 -18
  378. package/bpk-component-icon/lg/sort-down.js +37 -18
  379. package/bpk-component-icon/lg/sort-up.js +37 -18
  380. package/bpk-component-icon/lg/sort.js +37 -18
  381. package/bpk-component-icon/lg/speaker.js +39 -21
  382. package/bpk-component-icon/lg/star-half.js +37 -18
  383. package/bpk-component-icon/lg/star-outline.js +37 -18
  384. package/bpk-component-icon/lg/star.js +37 -18
  385. package/bpk-component-icon/lg/stops.js +37 -18
  386. package/bpk-component-icon/lg/swap--horizontal.js +37 -18
  387. package/bpk-component-icon/lg/swap--vertical.js +37 -18
  388. package/bpk-component-icon/lg/swap.js +37 -18
  389. package/bpk-component-icon/lg/taxi.js +39 -21
  390. package/bpk-component-icon/lg/thumbs-down.js +37 -18
  391. package/bpk-component-icon/lg/thumbs-up.js +37 -18
  392. package/bpk-component-icon/lg/tick-circle.js +37 -18
  393. package/bpk-component-icon/lg/tick.js +37 -18
  394. package/bpk-component-icon/lg/ticket-flexible.js +37 -18
  395. package/bpk-component-icon/lg/ticket.js +37 -18
  396. package/bpk-component-icon/lg/time.js +37 -18
  397. package/bpk-component-icon/lg/toilets.js +37 -18
  398. package/bpk-component-icon/lg/train.js +37 -18
  399. package/bpk-component-icon/lg/transmission-automatic.js +37 -18
  400. package/bpk-component-icon/lg/transmission-manual.js +37 -18
  401. package/bpk-component-icon/lg/trash.js +37 -18
  402. package/bpk-component-icon/lg/trend--down.js +37 -18
  403. package/bpk-component-icon/lg/trend--steady.js +37 -18
  404. package/bpk-component-icon/lg/trend--will-rise.js +37 -18
  405. package/bpk-component-icon/lg/trend.js +37 -18
  406. package/bpk-component-icon/lg/trips.js +37 -18
  407. package/bpk-component-icon/lg/undo.js +37 -18
  408. package/bpk-component-icon/lg/unlock.js +37 -18
  409. package/bpk-component-icon/lg/unmute.js +39 -21
  410. package/bpk-component-icon/lg/upgrade.js +37 -18
  411. package/bpk-component-icon/lg/upload.js +38 -19
  412. package/bpk-component-icon/lg/use-location.js +37 -18
  413. package/bpk-component-icon/lg/view.js +37 -18
  414. package/bpk-component-icon/lg/virus.js +37 -18
  415. package/bpk-component-icon/lg/wallet.js +39 -21
  416. package/bpk-component-icon/lg/weather--clear.js +37 -18
  417. package/bpk-component-icon/lg/weather--cloudy.js +39 -21
  418. package/bpk-component-icon/lg/weather--fog.js +37 -18
  419. package/bpk-component-icon/lg/weather--partly-cloudy.js +39 -21
  420. package/bpk-component-icon/lg/weather--rain.js +41 -23
  421. package/bpk-component-icon/lg/weather--snow.js +37 -18
  422. package/bpk-component-icon/lg/weather--thunderstorm.js +41 -23
  423. package/bpk-component-icon/lg/weather--tornado.js +37 -18
  424. package/bpk-component-icon/lg/weather--wind.js +37 -18
  425. package/bpk-component-icon/lg/weather.js +37 -18
  426. package/bpk-component-icon/lg/wifi.js +37 -18
  427. package/bpk-component-icon/lg/window--reduce.js +39 -21
  428. package/bpk-component-icon/lg/window.js +37 -18
  429. package/bpk-component-icon/lg/world--amer.js +37 -18
  430. package/bpk-component-icon/lg/world--apac.js +37 -18
  431. package/bpk-component-icon/lg/world--emea.js +39 -21
  432. package/bpk-component-icon/sm/accessibility.js +38 -19
  433. package/bpk-component-icon/sm/account--add.js +38 -19
  434. package/bpk-component-icon/sm/account--female.js +38 -19
  435. package/bpk-component-icon/sm/account--id-card.js +38 -19
  436. package/bpk-component-icon/sm/account--name.js +38 -19
  437. package/bpk-component-icon/sm/account--permit.js +38 -19
  438. package/bpk-component-icon/sm/account-circle.js +38 -19
  439. package/bpk-component-icon/sm/account.js +38 -19
  440. package/bpk-component-icon/sm/add-circle.js +38 -19
  441. package/bpk-component-icon/sm/adult.js +38 -19
  442. package/bpk-component-icon/sm/ai.js +39 -20
  443. package/bpk-component-icon/sm/aircon.js +38 -19
  444. package/bpk-component-icon/sm/aircraft.js +40 -22
  445. package/bpk-component-icon/sm/airline--multiple.js +38 -19
  446. package/bpk-component-icon/sm/airline.js +38 -19
  447. package/bpk-component-icon/sm/airports.js +38 -19
  448. package/bpk-component-icon/sm/alert--active.js +38 -19
  449. package/bpk-component-icon/sm/alert--add.js +38 -19
  450. package/bpk-component-icon/sm/alert--expired.js +38 -19
  451. package/bpk-component-icon/sm/alert--remove.js +38 -19
  452. package/bpk-component-icon/sm/arrow-down.js +38 -19
  453. package/bpk-component-icon/sm/arrow-left.js +38 -19
  454. package/bpk-component-icon/sm/arrow-right.js +38 -19
  455. package/bpk-component-icon/sm/arrow-up.js +38 -19
  456. package/bpk-component-icon/sm/award.js +38 -19
  457. package/bpk-component-icon/sm/baby-carriage.js +38 -19
  458. package/bpk-component-icon/sm/baggage--add.js +38 -19
  459. package/bpk-component-icon/sm/baggage--remove.js +38 -19
  460. package/bpk-component-icon/sm/baggage-cabin-add.js +38 -19
  461. package/bpk-component-icon/sm/baggage-cabin-not-included.js +40 -21
  462. package/bpk-component-icon/sm/baggage-cabin.js +38 -19
  463. package/bpk-component-icon/sm/baggage-checked-add.js +38 -19
  464. package/bpk-component-icon/sm/baggage-checked-not-included.js +40 -21
  465. package/bpk-component-icon/sm/baggage-checked.js +38 -19
  466. package/bpk-component-icon/sm/baggage-cross.js +38 -19
  467. package/bpk-component-icon/sm/baggage-generic.js +40 -21
  468. package/bpk-component-icon/sm/baggage-tick.js +38 -19
  469. package/bpk-component-icon/sm/baggage.js +38 -19
  470. package/bpk-component-icon/sm/bar.js +38 -19
  471. package/bpk-component-icon/sm/beach.js +40 -22
  472. package/bpk-component-icon/sm/beer.js +38 -19
  473. package/bpk-component-icon/sm/breakfast-cross.js +38 -19
  474. package/bpk-component-icon/sm/breakfast-tick.js +38 -19
  475. package/bpk-component-icon/sm/bus.js +40 -22
  476. package/bpk-component-icon/sm/business.js +38 -19
  477. package/bpk-component-icon/sm/cafe.js +38 -19
  478. package/bpk-component-icon/sm/calendar.js +38 -19
  479. package/bpk-component-icon/sm/call-back.js +40 -22
  480. package/bpk-component-icon/sm/camera.js +38 -19
  481. package/bpk-component-icon/sm/camper-van.js +40 -22
  482. package/bpk-component-icon/sm/car-door.js +38 -19
  483. package/bpk-component-icon/sm/car-wash.js +40 -22
  484. package/bpk-component-icon/sm/cars-flexible.js +38 -19
  485. package/bpk-component-icon/sm/cars.js +40 -22
  486. package/bpk-component-icon/sm/center-location.js +38 -19
  487. package/bpk-component-icon/sm/chart.js +38 -19
  488. package/bpk-component-icon/sm/chauffeur.js +40 -22
  489. package/bpk-component-icon/sm/chevron-down.js +38 -19
  490. package/bpk-component-icon/sm/chevron-left.js +38 -19
  491. package/bpk-component-icon/sm/chevron-right.js +38 -19
  492. package/bpk-component-icon/sm/chevron-up.js +38 -19
  493. package/bpk-component-icon/sm/child-seat.js +38 -19
  494. package/bpk-component-icon/sm/child.js +38 -19
  495. package/bpk-component-icon/sm/city-center.js +38 -19
  496. package/bpk-component-icon/sm/city.js +38 -19
  497. package/bpk-component-icon/sm/clean-policy.js +38 -19
  498. package/bpk-component-icon/sm/clean.js +40 -22
  499. package/bpk-component-icon/sm/cleaning-medical.js +38 -19
  500. package/bpk-component-icon/sm/cloakroom.js +38 -19
  501. package/bpk-component-icon/sm/close-circle.js +38 -19
  502. package/bpk-component-icon/sm/close.js +38 -19
  503. package/bpk-component-icon/sm/collapse.js +38 -19
  504. package/bpk-component-icon/sm/content--copy.js +40 -22
  505. package/bpk-component-icon/sm/content--event.js +38 -19
  506. package/bpk-component-icon/sm/content--guides.js +38 -19
  507. package/bpk-component-icon/sm/currency.js +38 -19
  508. package/bpk-component-icon/sm/data.js +40 -22
  509. package/bpk-component-icon/sm/deals.js +38 -19
  510. package/bpk-component-icon/sm/depart.js +42 -24
  511. package/bpk-component-icon/sm/device-mid.js +38 -19
  512. package/bpk-component-icon/sm/device-wide.js +38 -19
  513. package/bpk-component-icon/sm/direct.js +40 -22
  514. package/bpk-component-icon/sm/document-csv.js +38 -19
  515. package/bpk-component-icon/sm/document-pdf.js +38 -19
  516. package/bpk-component-icon/sm/download.js +40 -22
  517. package/bpk-component-icon/sm/duration.js +38 -19
  518. package/bpk-component-icon/sm/eco-leaf.js +38 -19
  519. package/bpk-component-icon/sm/edit.js +38 -19
  520. package/bpk-component-icon/sm/education.js +40 -22
  521. package/bpk-component-icon/sm/electric.js +38 -19
  522. package/bpk-component-icon/sm/end-call.js +38 -19
  523. package/bpk-component-icon/sm/estimated.js +38 -19
  524. package/bpk-component-icon/sm/exclamation-circle.js +38 -19
  525. package/bpk-component-icon/sm/exclamation.js +38 -19
  526. package/bpk-component-icon/sm/expand.js +38 -19
  527. package/bpk-component-icon/sm/explore.js +38 -19
  528. package/bpk-component-icon/sm/face--blank.js +38 -19
  529. package/bpk-component-icon/sm/face--happy.js +38 -19
  530. package/bpk-component-icon/sm/face--sad.js +38 -19
  531. package/bpk-component-icon/sm/face-id.js +38 -19
  532. package/bpk-component-icon/sm/face-mask.js +38 -19
  533. package/bpk-component-icon/sm/family.js +38 -19
  534. package/bpk-component-icon/sm/fast-track.js +40 -22
  535. package/bpk-component-icon/sm/fast-train.js +40 -22
  536. package/bpk-component-icon/sm/filter.js +39 -20
  537. package/bpk-component-icon/sm/fingerprint.js +38 -19
  538. package/bpk-component-icon/sm/flag.js +38 -19
  539. package/bpk-component-icon/sm/flask.js +38 -19
  540. package/bpk-component-icon/sm/flight-flexible.js +38 -19
  541. package/bpk-component-icon/sm/flight-landing.js +42 -24
  542. package/bpk-component-icon/sm/flight-takeoff.js +40 -22
  543. package/bpk-component-icon/sm/flight.js +40 -22
  544. package/bpk-component-icon/sm/food.js +38 -19
  545. package/bpk-component-icon/sm/gears-automatic-circle.js +38 -19
  546. package/bpk-component-icon/sm/gears-automatic.js +38 -19
  547. package/bpk-component-icon/sm/gears-manual-circle.js +38 -19
  548. package/bpk-component-icon/sm/gears-manual.js +38 -19
  549. package/bpk-component-icon/sm/globe.js +38 -19
  550. package/bpk-component-icon/sm/grid-layout.js +38 -19
  551. package/bpk-component-icon/sm/headset.js +38 -19
  552. package/bpk-component-icon/sm/health-fitness.js +38 -19
  553. package/bpk-component-icon/sm/heart--outline.js +38 -19
  554. package/bpk-component-icon/sm/heart.js +38 -19
  555. package/bpk-component-icon/sm/help-circle.js +38 -19
  556. package/bpk-component-icon/sm/help.js +38 -19
  557. package/bpk-component-icon/sm/hide.js +38 -19
  558. package/bpk-component-icon/sm/hotel-flexible.js +38 -19
  559. package/bpk-component-icon/sm/hotels--disabled-facilities.js +38 -19
  560. package/bpk-component-icon/sm/hotels--jacuzzi.js +40 -22
  561. package/bpk-component-icon/sm/hotels--pets-allowed.js +38 -19
  562. package/bpk-component-icon/sm/hotels--smoking.js +38 -19
  563. package/bpk-component-icon/sm/hotels.js +38 -19
  564. package/bpk-component-icon/sm/infant.js +40 -22
  565. package/bpk-component-icon/sm/information--language-alert.js +38 -19
  566. package/bpk-component-icon/sm/information--language-question.js +38 -19
  567. package/bpk-component-icon/sm/information--language.js +38 -19
  568. package/bpk-component-icon/sm/information-circle.js +38 -19
  569. package/bpk-component-icon/sm/information.js +38 -19
  570. package/bpk-component-icon/sm/insurance.js +38 -19
  571. package/bpk-component-icon/sm/key.js +38 -19
  572. package/bpk-component-icon/sm/keypad.js +38 -19
  573. package/bpk-component-icon/sm/landmark.js +38 -19
  574. package/bpk-component-icon/sm/language.js +38 -19
  575. package/bpk-component-icon/sm/legroom--extra.js +40 -22
  576. package/bpk-component-icon/sm/legroom--normal.js +40 -22
  577. package/bpk-component-icon/sm/legroom--reduced.js +40 -22
  578. package/bpk-component-icon/sm/leisure.js +38 -19
  579. package/bpk-component-icon/sm/lightning.js +38 -19
  580. package/bpk-component-icon/sm/list.js +38 -19
  581. package/bpk-component-icon/sm/location.js +38 -19
  582. package/bpk-component-icon/sm/lock.js +38 -19
  583. package/bpk-component-icon/sm/logout.js +40 -22
  584. package/bpk-component-icon/sm/long-arrow-down.js +39 -20
  585. package/bpk-component-icon/sm/long-arrow-left.js +39 -20
  586. package/bpk-component-icon/sm/long-arrow-right.js +39 -20
  587. package/bpk-component-icon/sm/long-arrow-up.js +39 -20
  588. package/bpk-component-icon/sm/lounge.js +38 -19
  589. package/bpk-component-icon/sm/luggageall.js +38 -19
  590. package/bpk-component-icon/sm/mail.js +40 -22
  591. package/bpk-component-icon/sm/map.js +38 -19
  592. package/bpk-component-icon/sm/meal.js +38 -19
  593. package/bpk-component-icon/sm/media.js +38 -19
  594. package/bpk-component-icon/sm/menu--horizontal.js +38 -19
  595. package/bpk-component-icon/sm/menu--vertical.js +38 -19
  596. package/bpk-component-icon/sm/menu.js +38 -19
  597. package/bpk-component-icon/sm/mileage.js +40 -22
  598. package/bpk-component-icon/sm/minus.js +38 -19
  599. package/bpk-component-icon/sm/mobile.js +38 -19
  600. package/bpk-component-icon/sm/money.js +38 -19
  601. package/bpk-component-icon/sm/multiple-bookings.js +38 -19
  602. package/bpk-component-icon/sm/music.js +38 -19
  603. package/bpk-component-icon/sm/mute.js +38 -19
  604. package/bpk-component-icon/sm/native-android--back.js +38 -19
  605. package/bpk-component-icon/sm/native-android--close.js +38 -19
  606. package/bpk-component-icon/sm/native-android--forward.js +38 -19
  607. package/bpk-component-icon/sm/native-ios-close.js +38 -19
  608. package/bpk-component-icon/sm/navigation.js +38 -19
  609. package/bpk-component-icon/sm/new-window.js +44 -26
  610. package/bpk-component-icon/sm/news.js +38 -19
  611. package/bpk-component-icon/sm/night.js +38 -19
  612. package/bpk-component-icon/sm/not-allowed.js +38 -19
  613. package/bpk-component-icon/sm/onsen.js +40 -22
  614. package/bpk-component-icon/sm/origin.js +38 -19
  615. package/bpk-component-icon/sm/paid.js +38 -19
  616. package/bpk-component-icon/sm/paperclip.js +38 -19
  617. package/bpk-component-icon/sm/parking.js +38 -19
  618. package/bpk-component-icon/sm/passport.js +38 -19
  619. package/bpk-component-icon/sm/pause.js +38 -19
  620. package/bpk-component-icon/sm/payment-card.js +38 -19
  621. package/bpk-component-icon/sm/petrol.js +38 -19
  622. package/bpk-component-icon/sm/phone-call.js +38 -19
  623. package/bpk-component-icon/sm/picture.js +38 -19
  624. package/bpk-component-icon/sm/pin.js +38 -19
  625. package/bpk-component-icon/sm/plane-seat.js +40 -22
  626. package/bpk-component-icon/sm/play.js +38 -19
  627. package/bpk-component-icon/sm/plus.js +38 -19
  628. package/bpk-component-icon/sm/policy.js +38 -19
  629. package/bpk-component-icon/sm/powerplug.js +38 -19
  630. package/bpk-component-icon/sm/ppe.js +38 -19
  631. package/bpk-component-icon/sm/price-alerts.js +38 -19
  632. package/bpk-component-icon/sm/price-tag.js +38 -19
  633. package/bpk-component-icon/sm/print.js +38 -19
  634. package/bpk-component-icon/sm/recent-searches.js +38 -19
  635. package/bpk-component-icon/sm/redo.js +38 -19
  636. package/bpk-component-icon/sm/refresh.js +38 -19
  637. package/bpk-component-icon/sm/return.js +42 -24
  638. package/bpk-component-icon/sm/room.js +38 -19
  639. package/bpk-component-icon/sm/scales.js +38 -19
  640. package/bpk-component-icon/sm/search.js +38 -19
  641. package/bpk-component-icon/sm/self-service.js +38 -19
  642. package/bpk-component-icon/sm/send-message.js +38 -19
  643. package/bpk-component-icon/sm/services.js +38 -19
  644. package/bpk-component-icon/sm/settings.js +38 -19
  645. package/bpk-component-icon/sm/share--android.js +38 -19
  646. package/bpk-component-icon/sm/share--ios.js +42 -24
  647. package/bpk-component-icon/sm/share.js +38 -19
  648. package/bpk-component-icon/sm/single-booking.js +38 -19
  649. package/bpk-component-icon/sm/social-distancing.js +40 -22
  650. package/bpk-component-icon/sm/social-like.js +38 -19
  651. package/bpk-component-icon/sm/sort-down.js +38 -19
  652. package/bpk-component-icon/sm/sort-up.js +38 -19
  653. package/bpk-component-icon/sm/sort.js +38 -19
  654. package/bpk-component-icon/sm/speaker.js +38 -19
  655. package/bpk-component-icon/sm/star-half.js +38 -19
  656. package/bpk-component-icon/sm/star-outline.js +38 -19
  657. package/bpk-component-icon/sm/star.js +38 -19
  658. package/bpk-component-icon/sm/stops.js +38 -19
  659. package/bpk-component-icon/sm/swap--horizontal.js +39 -20
  660. package/bpk-component-icon/sm/swap--vertical.js +38 -19
  661. package/bpk-component-icon/sm/swap.js +39 -20
  662. package/bpk-component-icon/sm/taxi.js +40 -22
  663. package/bpk-component-icon/sm/thumbs-down.js +38 -19
  664. package/bpk-component-icon/sm/thumbs-up.js +38 -19
  665. package/bpk-component-icon/sm/tick-circle.js +38 -19
  666. package/bpk-component-icon/sm/tick.js +38 -19
  667. package/bpk-component-icon/sm/ticket-flexible.js +38 -19
  668. package/bpk-component-icon/sm/ticket.js +38 -19
  669. package/bpk-component-icon/sm/time.js +38 -19
  670. package/bpk-component-icon/sm/toilets.js +38 -19
  671. package/bpk-component-icon/sm/train.js +38 -19
  672. package/bpk-component-icon/sm/transmission-automatic.js +38 -19
  673. package/bpk-component-icon/sm/transmission-manual.js +38 -19
  674. package/bpk-component-icon/sm/trash.js +38 -19
  675. package/bpk-component-icon/sm/trend--down.js +38 -19
  676. package/bpk-component-icon/sm/trend--steady.js +39 -20
  677. package/bpk-component-icon/sm/trend--will-rise.js +38 -19
  678. package/bpk-component-icon/sm/trend.js +38 -19
  679. package/bpk-component-icon/sm/trips.js +38 -19
  680. package/bpk-component-icon/sm/undo.js +38 -19
  681. package/bpk-component-icon/sm/unlock.js +38 -19
  682. package/bpk-component-icon/sm/unmute.js +40 -22
  683. package/bpk-component-icon/sm/upgrade.js +38 -19
  684. package/bpk-component-icon/sm/upload.js +39 -20
  685. package/bpk-component-icon/sm/use-location.js +38 -19
  686. package/bpk-component-icon/sm/view.js +38 -19
  687. package/bpk-component-icon/sm/virus.js +38 -19
  688. package/bpk-component-icon/sm/wallet.js +38 -19
  689. package/bpk-component-icon/sm/weather--clear.js +38 -19
  690. package/bpk-component-icon/sm/weather--cloudy.js +40 -22
  691. package/bpk-component-icon/sm/weather--fog.js +38 -19
  692. package/bpk-component-icon/sm/weather--partly-cloudy.js +38 -19
  693. package/bpk-component-icon/sm/weather--rain.js +40 -22
  694. package/bpk-component-icon/sm/weather--snow.js +38 -19
  695. package/bpk-component-icon/sm/weather--thunderstorm.js +42 -24
  696. package/bpk-component-icon/sm/weather--tornado.js +38 -19
  697. package/bpk-component-icon/sm/weather--wind.js +40 -22
  698. package/bpk-component-icon/sm/weather.js +38 -19
  699. package/bpk-component-icon/sm/wifi.js +38 -19
  700. package/bpk-component-icon/sm/window--reduce.js +40 -22
  701. package/bpk-component-icon/sm/window.js +38 -19
  702. package/bpk-component-icon/sm/world--amer.js +38 -19
  703. package/bpk-component-icon/sm/world--apac.js +38 -19
  704. package/bpk-component-icon/sm/world--emea.js +38 -19
  705. package/bpk-component-icon/src/classNameModifierHOCFactory.js +26 -13
  706. package/bpk-component-icon/src/withAlignment.js +32 -25
  707. package/bpk-component-icon/src/withDescription.js +35 -28
  708. package/bpk-component-icon/src/withRtlSupport.js +13 -5
  709. package/bpk-component-image/index.js +38 -8
  710. package/bpk-component-image/src/BpkBackgroundImage.js +80 -72
  711. package/bpk-component-image/src/BpkImage.js +110 -93
  712. package/bpk-component-image/src/BpkImageBorderRadiusStyles.js +8 -1
  713. package/bpk-component-image/src/withLazyLoading.js +98 -87
  714. package/bpk-component-image/src/withLoadingBehavior.js +41 -32
  715. package/bpk-component-infinite-scroll/index.js +26 -3
  716. package/bpk-component-infinite-scroll/src/DataSource.js +19 -5
  717. package/bpk-component-infinite-scroll/src/intersection-observer.js +2 -0
  718. package/bpk-component-infinite-scroll/src/withInfiniteScroll.js +218 -206
  719. package/bpk-component-input/index.js +49 -7
  720. package/bpk-component-input/src/BpkClearButton.js +36 -20
  721. package/bpk-component-input/src/BpkInput.js +65 -52
  722. package/bpk-component-input/src/common-types.js +32 -20
  723. package/bpk-component-input/src/themeAttributes.js +8 -2
  724. package/bpk-component-input/src/withOpenEvents.js +98 -83
  725. package/bpk-component-label/index.js +11 -2
  726. package/bpk-component-label/src/BpkLabel.js +42 -26
  727. package/bpk-component-link/index.js +33 -5
  728. package/bpk-component-link/src/BpkButtonLink.js +44 -22
  729. package/bpk-component-link/src/BpkLink.js +60 -30
  730. package/bpk-component-link/src/themeAttributes.js +10 -2
  731. package/bpk-component-list/index.js +20 -19
  732. package/bpk-component-list/src/BpkList.js +18 -10
  733. package/bpk-component-list/src/BpkListItem.js +17 -9
  734. package/bpk-component-loading-button/index.js +18 -3
  735. package/bpk-component-loading-button/src/BpkLoadingButton.js +66 -49
  736. package/bpk-component-map/index.js +60 -8
  737. package/bpk-component-map/src/BpkBasicMapMarker.js +32 -15
  738. package/bpk-component-map/src/BpkIconMarker.js +52 -36
  739. package/bpk-component-map/src/BpkIconMarkerBackground.js +37 -20
  740. package/bpk-component-map/src/BpkMap.js +41 -33
  741. package/bpk-component-map/src/BpkOverlayView.js +32 -15
  742. package/bpk-component-map/src/BpkPriceMarker.js +59 -40
  743. package/bpk-component-map/src/DefaultLoadingElement.js +17 -9
  744. package/bpk-component-map/src/common-types.js +13 -5
  745. package/bpk-component-map/src/themeAttributes.js +13 -4
  746. package/bpk-component-map/src/withGoogleMapsScript.js +38 -21
  747. package/bpk-component-mobile-scroll-container/index.js +11 -2
  748. package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.js +109 -91
  749. package/bpk-component-modal/index.js +37 -7
  750. package/bpk-component-modal/src/BpkModal.js +50 -35
  751. package/bpk-component-modal/src/BpkModalInner.js +28 -18
  752. package/bpk-component-modal/src/BpkModalV2/BpkModal.js +35 -26
  753. package/bpk-component-modal/src/customPropTypes.js +11 -3
  754. package/bpk-component-modal/src/legacy-prop-types.js +64 -52
  755. package/bpk-component-modal/src/themeAttributes.js +9 -3
  756. package/bpk-component-navigation-bar/index.js +32 -6
  757. package/bpk-component-navigation-bar/src/BpkNavigationBar.js +63 -47
  758. package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.js +43 -23
  759. package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.js +43 -24
  760. package/bpk-component-navigation-bar/src/themeAttributes.js +9 -1
  761. package/bpk-component-nudger/index.js +24 -6
  762. package/bpk-component-nudger/src/BpkConfigurableNudger.js +54 -40
  763. package/bpk-component-nudger/src/BpkNudger.js +38 -21
  764. package/bpk-component-nudger/src/common-types.js +5 -1
  765. package/bpk-component-nudger/src/themeAttributes.js +9 -3
  766. package/bpk-component-nudger-row/index.js +10 -3
  767. package/bpk-component-nudger-row/src/BpkNudgerRow.js +26 -16
  768. package/bpk-component-overlay/index.js +18 -3
  769. package/bpk-component-overlay/src/BpkOverlay.js +34 -19
  770. package/bpk-component-page-indicator/index.js +25 -4
  771. package/bpk-component-page-indicator/src/BpkPageIndicator.js +38 -28
  772. package/bpk-component-page-indicator/src/NavButton.js +26 -17
  773. package/bpk-component-pagination/index.js +17 -5
  774. package/bpk-component-pagination/src/BpkPagination.js +51 -37
  775. package/bpk-component-pagination/src/BpkPaginationBreak.js +13 -5
  776. package/bpk-component-pagination/src/BpkPaginationList.js +25 -17
  777. package/bpk-component-pagination/src/BpkPaginationNudger.js +28 -21
  778. package/bpk-component-pagination/src/BpkPaginationPage.js +21 -13
  779. package/bpk-component-pagination/src/themeAttributes.js +9 -2
  780. package/bpk-component-panel/index.js +10 -3
  781. package/bpk-component-panel/src/BpkPanel.js +36 -21
  782. package/bpk-component-phone-input/index.js +11 -2
  783. package/bpk-component-phone-input/src/BpkPhoneInput.js +95 -77
  784. package/bpk-component-popover/index.js +32 -4
  785. package/bpk-component-popover/src/BpkPopover.js +80 -65
  786. package/bpk-component-popover/src/BpkPopoverPortal.js +119 -104
  787. package/bpk-component-popover/src/constants.js +11 -3
  788. package/bpk-component-popover/src/keyboardFocusScope.js +14 -6
  789. package/bpk-component-popover/src/themeAttributes.js +10 -2
  790. package/bpk-component-price/index.js +24 -4
  791. package/bpk-component-price/src/BpkPrice.js +62 -45
  792. package/bpk-component-price/src/common-types.js +11 -3
  793. package/bpk-component-progress/index.js +18 -4
  794. package/bpk-component-progress/src/BpkProgress.js +91 -72
  795. package/bpk-component-progress/src/themeAttributes.js +9 -1
  796. package/bpk-component-radio/index.js +18 -4
  797. package/bpk-component-radio/src/BpkRadio.js +44 -29
  798. package/bpk-component-radio/src/themeAttributes.js +9 -1
  799. package/bpk-component-rating/index.js +24 -4
  800. package/bpk-component-rating/src/BpkRating.js +72 -54
  801. package/bpk-component-rating/src/common-types.js +11 -3
  802. package/bpk-component-rtl-toggle/index.js +17 -5
  803. package/bpk-component-rtl-toggle/src/BpkRtlToggle.js +50 -44
  804. package/bpk-component-rtl-toggle/src/updateOnDirectionChange.js +46 -34
  805. package/bpk-component-rtl-toggle/src/utils.js +9 -1
  806. package/bpk-component-scrollable-calendar/index.js +38 -8
  807. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendar.js +12 -5
  808. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarDate.js +44 -32
  809. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.js +39 -23
  810. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.js +112 -101
  811. package/bpk-component-scrollable-calendar/src/utils.js +11 -4
  812. package/bpk-component-scrollable-calendar/test-utils.js +31 -14
  813. package/bpk-component-section-header/index.js +17 -4
  814. package/bpk-component-section-header/src/BpkSectionHeader.js +20 -12
  815. package/bpk-component-section-list/index.js +25 -5
  816. package/bpk-component-section-list/src/BpkSectionList.js +26 -10
  817. package/bpk-component-section-list/src/BpkSectionListItem.js +52 -36
  818. package/bpk-component-section-list/src/BpkSectionListSection.js +40 -23
  819. package/bpk-component-select/index.js +18 -4
  820. package/bpk-component-select/src/BpkSelect.js +54 -39
  821. package/bpk-component-select/src/themeAttributes.js +8 -2
  822. package/bpk-component-skip-link/index.js +18 -4
  823. package/bpk-component-skip-link/src/BpkSkipLink.js +35 -18
  824. package/bpk-component-skip-link/src/themeAttributes.js +8 -2
  825. package/bpk-component-slider/index.js +17 -5
  826. package/bpk-component-slider/src/BpkSlider.js +30 -16
  827. package/bpk-component-slider/src/themeAttributes.js +8 -2
  828. package/bpk-component-spinner/index.js +41 -22
  829. package/bpk-component-spinner/src/BpkExtraLargeSpinner.js +49 -35
  830. package/bpk-component-spinner/src/BpkLargeSpinner.js +51 -37
  831. package/bpk-component-spinner/src/BpkSpinner.js +51 -37
  832. package/bpk-component-spinner/src/spinnerTypes.js +10 -2
  833. package/bpk-component-spinner/src/themeAttributes.js +9 -1
  834. package/bpk-component-split-input/index.js +18 -3
  835. package/bpk-component-split-input/src/BpkInputField.js +44 -27
  836. package/bpk-component-split-input/src/BpkSplitInput.js +217 -201
  837. package/bpk-component-star-rating/index.js +66 -8
  838. package/bpk-component-star-rating/src/BpkInteractiveStar.js +44 -28
  839. package/bpk-component-star-rating/src/BpkInteractiveStarRating.js +54 -37
  840. package/bpk-component-star-rating/src/BpkStar.js +59 -42
  841. package/bpk-component-star-rating/src/BpkStarRating.js +50 -30
  842. package/bpk-component-star-rating/src/themeAttributes.js +9 -1
  843. package/bpk-component-star-rating/src/withInteractiveStarRatingState.js +67 -55
  844. package/bpk-component-switch/index.js +18 -4
  845. package/bpk-component-switch/src/BpkSwitch.js +36 -21
  846. package/bpk-component-switch/src/themeAttributes.js +8 -2
  847. package/bpk-component-table/index.js +48 -23
  848. package/bpk-component-table/src/BpkTable.js +33 -16
  849. package/bpk-component-table/src/BpkTableBody.js +33 -22
  850. package/bpk-component-table/src/BpkTableCell.js +32 -15
  851. package/bpk-component-table/src/BpkTableHead.js +33 -22
  852. package/bpk-component-table/src/BpkTableHeadCell.js +30 -14
  853. package/bpk-component-table/src/BpkTableRow.js +33 -22
  854. package/bpk-component-text/index.js +17 -4
  855. package/bpk-component-text/src/BpkText.js +35 -18
  856. package/bpk-component-textarea/index.js +18 -4
  857. package/bpk-component-textarea/src/BpkTextarea.js +37 -21
  858. package/bpk-component-textarea/src/themeAttributes.js +9 -1
  859. package/bpk-component-theme-toggle/index.js +17 -5
  860. package/bpk-component-theme-toggle/src/BpkThemeToggle.js +79 -70
  861. package/bpk-component-theme-toggle/src/theming.js +47 -39
  862. package/bpk-component-theme-toggle/src/updateOnThemeChange.js +51 -41
  863. package/bpk-component-theme-toggle/src/utils.js +8 -1
  864. package/bpk-component-ticket/index.js +11 -2
  865. package/bpk-component-ticket/src/BpkTicket.js +56 -39
  866. package/bpk-component-tooltip/index.js +17 -5
  867. package/bpk-component-tooltip/src/BpkTooltip.js +41 -27
  868. package/bpk-component-tooltip/src/BpkTooltipPortal.js +116 -101
  869. package/bpk-component-tooltip/src/constants.js +13 -4
  870. package/bpk-mixins/sass-functions.js +29 -0
  871. package/bpk-react-utils/index.js +88 -22
  872. package/bpk-react-utils/src/Portal.js +48 -38
  873. package/bpk-react-utils/src/TransitionInitialMount.js +15 -6
  874. package/bpk-react-utils/src/cssModules.js +9 -3
  875. package/bpk-react-utils/src/deprecated.js +8 -1
  876. package/bpk-react-utils/src/deviceDetection.js +9 -1
  877. package/bpk-react-utils/src/isRTL.js +8 -1
  878. package/bpk-react-utils/src/withDefaultProps.js +34 -18
  879. package/bpk-react-utils/src/wrapDisplayName.js +8 -1
  880. package/bpk-scrim-utils/index.js +18 -6
  881. package/bpk-scrim-utils/src/BpkScrim.js +15 -7
  882. package/bpk-scrim-utils/src/scroll-utils.js +19 -7
  883. package/bpk-scrim-utils/src/withScrim.js +82 -65
  884. package/bpk-storybook-utils/index.js +26 -6
  885. package/bpk-storybook-utils/src/BpkDarkExampleWrapper.js +28 -12
  886. package/bpk-storybook-utils/src/BpkStorybookUtils.js +10 -3
  887. package/bpk-stylesheets/base.css +1670 -0
  888. package/bpk-stylesheets/base.js +171 -0
  889. package/bpk-stylesheets/build.js +46 -0
  890. package/bpk-stylesheets/font.css +18 -0
  891. package/bpk-stylesheets/font.js +3 -0
  892. package/bpk-stylesheets/index.css +18 -0
  893. package/bpk-stylesheets/index.js +38 -0
  894. package/bpk-stylesheets/license-header.js +32 -0
  895. package/bpk-stylesheets/webpack.config.babel.js +85 -0
  896. package/bpk-theming/index.js +10 -3
  897. package/bpk-theming/src/BpkThemeProvider.js +40 -29
  898. package/package.json +3 -2
  899. package/bpk-component-flare/src/corner-radius.d.ts +0 -6
  900. package/bpk-component-flare/src/pointer.d.ts +0 -6
@@ -1,33 +1,47 @@
1
- /*
2
- * Backpack - Skyscanner's Design System
3
- *
4
- * Copyright 2016 Skyscanner Ltd
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */import PropTypes from 'prop-types';
18
- import { Component } from 'react';
19
- import clamp from 'lodash.clamp';
20
- import { cssModules } from "../../bpk-react-utils";
21
- import STYLES from "./BpkProgress.module.css";
22
- import { jsx as _jsx } from "react/jsx-runtime";
23
- import { jsxs as _jsxs } from "react/jsx-runtime";
24
- const getClassName = cssModules(STYLES);
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _propTypes = _interopRequireDefault(require("prop-types"));
8
+ var _react = require("react");
9
+ var _lodash = _interopRequireDefault(require("lodash.clamp"));
10
+ var _bpkReactUtils = require("../../bpk-react-utils");
11
+ var _BpkProgressModule = _interopRequireDefault(require("./BpkProgress.module.css"));
12
+ var _jsxRuntime = require("react/jsx-runtime");
13
+ const _excluded = ["className", "getValueText", "max", "min", "small", "stepped", "value"];
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
16
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
17
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
18
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
19
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
20
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
21
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /*
22
+ * Backpack - Skyscanner's Design System
23
+ *
24
+ * Copyright 2016 Skyscanner Ltd
25
+ *
26
+ * Licensed under the Apache License, Version 2.0 (the "License");
27
+ * you may not use this file except in compliance with the License.
28
+ * You may obtain a copy of the License at
29
+ *
30
+ * http://www.apache.org/licenses/LICENSE-2.0
31
+ *
32
+ * Unless required by applicable law or agreed to in writing, software
33
+ * distributed under the License is distributed on an "AS IS" BASIS,
34
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
35
+ * See the License for the specific language governing permissions and
36
+ * limitations under the License.
37
+ */
38
+ const getClassName = (0, _bpkReactUtils.cssModules)(_BpkProgressModule.default);
25
39
  const isTransitionEndSupported = () => !!(typeof window !== 'undefined' && 'TransitionEvent' in window);
26
40
  const renderSteps = numberOfSteps => {
27
41
  const steps = [];
28
42
  for (let i = 1; i <= numberOfSteps; i += 1) {
29
43
  const left = `${100 * (i / (numberOfSteps + 1))}%`;
30
- steps.push( /*#__PURE__*/_jsx("div", {
44
+ steps.push( /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
31
45
  className: getClassName('bpk-progress__step'),
32
46
  style: {
33
47
  left
@@ -36,26 +50,20 @@ const renderSteps = numberOfSteps => {
36
50
  }
37
51
  return steps;
38
52
  };
39
- class BpkProgress extends Component {
40
- static propTypes = {
41
- max: PropTypes.number.isRequired,
42
- min: PropTypes.number.isRequired,
43
- value: PropTypes.number.isRequired,
44
- stepped: PropTypes.bool,
45
- small: PropTypes.bool,
46
- className: PropTypes.string,
47
- onComplete: PropTypes.func,
48
- onCompleteTransitionEnd: PropTypes.func,
49
- getValueText: PropTypes.func
50
- };
51
- static defaultProps = {
52
- className: null,
53
- stepped: false,
54
- small: false,
55
- onComplete: () => null,
56
- onCompleteTransitionEnd: () => null,
57
- getValueText: null
58
- };
53
+ class BpkProgress extends _react.Component {
54
+ constructor(...args) {
55
+ super(...args);
56
+ _defineProperty(this, "handleCompleteTransitionEnd", () => {
57
+ const {
58
+ max,
59
+ onCompleteTransitionEnd,
60
+ value
61
+ } = this.props;
62
+ if (value >= max && onCompleteTransitionEnd) {
63
+ onCompleteTransitionEnd();
64
+ }
65
+ });
66
+ }
59
67
  componentDidUpdate(previousProps) {
60
68
  const {
61
69
  max,
@@ -68,30 +76,21 @@ class BpkProgress extends Component {
68
76
  }
69
77
  }
70
78
  }
71
- handleCompleteTransitionEnd = () => {
72
- const {
73
- max,
74
- onCompleteTransitionEnd,
75
- value
76
- } = this.props;
77
- if (value >= max && onCompleteTransitionEnd) {
78
- onCompleteTransitionEnd();
79
- }
80
- };
81
79
  render() {
82
- const {
83
- className,
84
- getValueText,
85
- max,
86
- min,
87
- small,
88
- stepped,
89
- value,
90
- ...rest
91
- } = this.props;
80
+ const _this$props = this.props,
81
+ {
82
+ className,
83
+ getValueText,
84
+ max,
85
+ min,
86
+ small,
87
+ stepped,
88
+ value
89
+ } = _this$props,
90
+ rest = _objectWithoutProperties(_this$props, _excluded);
92
91
  const classNames = getClassName('bpk-progress', className, small && 'bpk-progress--small');
93
92
  const valueClassName = getClassName('bpk-progress__value', stepped && 'bpk-progress__value--stepped');
94
- const adjustedValue = clamp(value, min, max);
93
+ const adjustedValue = (0, _lodash.default)(value, min, max);
95
94
  const percentage = 100 * (adjustedValue / (max - min));
96
95
  const numberOfSteps = stepped ? max - min - 1 : 0;
97
96
  delete rest.onComplete;
@@ -99,24 +98,44 @@ class BpkProgress extends Component {
99
98
  return (
100
99
  /*#__PURE__*/
101
100
  // $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
102
- _jsxs("div", {
101
+ (0, _jsxRuntime.jsxs)("div", _objectSpread(_objectSpread({
103
102
  className: classNames,
104
103
  role: "progressbar",
105
104
  "aria-valuetext": getValueText ? getValueText(value, min, max) : null,
106
105
  "aria-valuenow": value,
107
106
  "aria-valuemin": min,
108
107
  "aria-valuemax": max,
109
- tabIndex: "0",
110
- ...rest,
111
- children: [/*#__PURE__*/_jsx("div", {
108
+ tabIndex: "0"
109
+ }, rest), {}, {
110
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
112
111
  className: valueClassName,
113
112
  style: {
114
113
  width: `${percentage}%`
115
114
  },
116
115
  onTransitionEnd: this.handleCompleteTransitionEnd
117
116
  }), renderSteps(numberOfSteps)]
118
- })
117
+ }))
119
118
  );
120
119
  }
121
120
  }
122
- export default BpkProgress;
121
+ _defineProperty(BpkProgress, "propTypes", {
122
+ max: _propTypes.default.number.isRequired,
123
+ min: _propTypes.default.number.isRequired,
124
+ value: _propTypes.default.number.isRequired,
125
+ stepped: _propTypes.default.bool,
126
+ small: _propTypes.default.bool,
127
+ className: _propTypes.default.string,
128
+ onComplete: _propTypes.default.func,
129
+ onCompleteTransitionEnd: _propTypes.default.func,
130
+ getValueText: _propTypes.default.func
131
+ });
132
+ _defineProperty(BpkProgress, "defaultProps", {
133
+ className: null,
134
+ stepped: false,
135
+ small: false,
136
+ onComplete: () => null,
137
+ onCompleteTransitionEnd: () => null,
138
+ getValueText: null
139
+ });
140
+ var _default = BpkProgress;
141
+ exports.default = _default;
@@ -1,3 +1,9 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
1
7
  /*
2
8
  * Backpack - Skyscanner's Design System
3
9
  *
@@ -14,4 +20,6 @@
14
20
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
21
  * See the License for the specific language governing permissions and
16
22
  * limitations under the License.
17
- */export default ['progressBarFillColor'];
23
+ */
24
+ var _default = ['progressBarFillColor'];
25
+ exports.default = _default;
@@ -1,3 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ Object.defineProperty(exports, "themeAttributes", {
8
+ enumerable: true,
9
+ get: function () {
10
+ return _themeAttributes.default;
11
+ }
12
+ });
13
+ var _BpkRadio = _interopRequireDefault(require("./src/BpkRadio"));
14
+ var _themeAttributes = _interopRequireDefault(require("./src/themeAttributes"));
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
1
16
  /*
2
17
  * Backpack - Skyscanner's Design System
3
18
  *
@@ -14,7 +29,6 @@
14
29
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
30
  * See the License for the specific language governing permissions and
16
31
  * limitations under the License.
17
- */import BpkRadio from "./src/BpkRadio";
18
- import themeAttributes from "./src/themeAttributes";
19
- export default BpkRadio;
20
- export { themeAttributes };
32
+ */
33
+ var _default = _BpkRadio.default;
34
+ exports.default = _default;
@@ -1,3 +1,14 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _propTypes = _interopRequireDefault(require("prop-types"));
8
+ var _bpkReactUtils = require("../../bpk-react-utils");
9
+ var _BpkRadioModule = _interopRequireDefault(require("./BpkRadio.module.css"));
10
+ var _jsxRuntime = require("react/jsx-runtime");
11
+ const _excluded = ["ariaLabel", "className", "disabled", "label", "name", "valid", "white"];
1
12
  /*
2
13
  * Backpack - Skyscanner's Design System
3
14
  *
@@ -14,54 +25,57 @@
14
25
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
26
  * See the License for the specific language governing permissions and
16
27
  * limitations under the License.
17
- */import PropTypes from 'prop-types';
18
- import { cssModules } from "../../bpk-react-utils";
19
- import STYLES from "./BpkRadio.module.css";
20
- import { jsx as _jsx } from "react/jsx-runtime";
21
- import { jsxs as _jsxs } from "react/jsx-runtime";
22
- const getClassName = cssModules(STYLES);
28
+ */
29
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
30
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
31
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
32
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
33
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
34
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
35
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
36
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
37
+ const getClassName = (0, _bpkReactUtils.cssModules)(_BpkRadioModule.default);
23
38
  const BpkRadio = props => {
24
39
  const {
25
- ariaLabel,
26
- className,
27
- disabled,
28
- label,
29
- name,
30
- valid,
31
- white,
32
- ...rest
33
- } = props;
40
+ ariaLabel,
41
+ className,
42
+ disabled,
43
+ label,
44
+ name,
45
+ valid,
46
+ white
47
+ } = props,
48
+ rest = _objectWithoutProperties(props, _excluded);
34
49
 
35
50
  // Explicit check for false primitive value as undefined is
36
51
  // treated as neither valid nor invalid
37
52
  const isInvalid = valid === false;
38
53
  const classNames = getClassName('bpk-radio', white && 'bpk-radio--white', disabled && 'bpk-radio--disabled', white && disabled && 'bpk-radio--disabled--white', isInvalid && 'bpk-radio--invalid', className);
39
- return /*#__PURE__*/_jsxs("label", {
54
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("label", {
40
55
  className: classNames,
41
- children: [/*#__PURE__*/_jsx("input", {
56
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", _objectSpread({
42
57
  type: "radio",
43
58
  className: getClassName('bpk-radio__input'),
44
59
  name: name,
45
60
  disabled: disabled,
46
61
  "aria-label": ariaLabel || label,
47
- "aria-invalid": isInvalid,
48
- ...rest
49
- }), /*#__PURE__*/_jsx("div", {
62
+ "aria-invalid": isInvalid
63
+ }, rest)), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
50
64
  className: getClassName('bpk-radio__circle')
51
- }), /*#__PURE__*/_jsx("span", {
65
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
52
66
  "aria-hidden": "true",
53
67
  children: label
54
68
  })]
55
69
  });
56
70
  };
57
71
  BpkRadio.propTypes = {
58
- name: PropTypes.string.isRequired,
59
- label: PropTypes.node.isRequired,
60
- ariaLabel: PropTypes.string,
61
- disabled: PropTypes.bool,
62
- white: PropTypes.bool,
63
- className: PropTypes.string,
64
- valid: PropTypes.bool
72
+ name: _propTypes.default.string.isRequired,
73
+ label: _propTypes.default.node.isRequired,
74
+ ariaLabel: _propTypes.default.string,
75
+ disabled: _propTypes.default.bool,
76
+ white: _propTypes.default.bool,
77
+ className: _propTypes.default.string,
78
+ valid: _propTypes.default.bool
65
79
  };
66
80
  BpkRadio.defaultProps = {
67
81
  ariaLabel: null,
@@ -70,4 +84,5 @@ BpkRadio.defaultProps = {
70
84
  className: null,
71
85
  valid: null
72
86
  };
73
- export default BpkRadio;
87
+ var _default = BpkRadio;
88
+ exports.default = _default;
@@ -1,3 +1,9 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
1
7
  /*
2
8
  * Backpack - Skyscanner's Design System
3
9
  *
@@ -14,4 +20,6 @@
14
20
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
21
  * See the License for the specific language governing permissions and
16
22
  * limitations under the License.
17
- */export default ['radioCheckedColor'];
23
+ */
24
+ var _default = ['radioCheckedColor'];
25
+ exports.default = _default;
@@ -1,3 +1,24 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "RATING_SCALES", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _commonTypes.RATING_SCALES;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "RATING_SIZES", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _commonTypes.RATING_SIZES;
16
+ }
17
+ });
18
+ exports.default = void 0;
19
+ var _BpkRating = _interopRequireDefault(require("./src/BpkRating"));
20
+ var _commonTypes = require("./src/common-types");
21
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
1
22
  /*
2
23
  * Backpack - Skyscanner's Design System
3
24
  *
@@ -14,7 +35,6 @@
14
35
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
36
  * See the License for the specific language governing permissions and
16
37
  * limitations under the License.
17
- */import BpkRating from "./src/BpkRating";
18
- import { RATING_SIZES, RATING_SCALES } from "./src/common-types";
19
- export default BpkRating;
20
- export { RATING_SIZES, RATING_SCALES };
38
+ */
39
+ var _default = _BpkRating.default;
40
+ exports.default = _default;
@@ -1,3 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _propTypes = _interopRequireDefault(require("prop-types"));
8
+ var _lodash = _interopRequireDefault(require("lodash.clamp"));
9
+ var _bpkReactUtils = require("../../bpk-react-utils");
10
+ var _bpkComponentText = _interopRequireWildcard(require("../../bpk-component-text"));
11
+ var _BpkRatingModule = _interopRequireDefault(require("./BpkRating.module.css"));
12
+ var _commonTypes = require("./common-types");
13
+ var _jsxRuntime = require("react/jsx-runtime");
14
+ const _excluded = ["ariaLabel", "className", "ratingScale", "showScale", "size", "subtitle", "title", "value"];
1
15
  /*
2
16
  * Backpack - Skyscanner's Design System
3
17
  *
@@ -14,15 +28,18 @@
14
28
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
29
  * See the License for the specific language governing permissions and
16
30
  * limitations under the License.
17
- */import PropTypes from 'prop-types';
18
- import clamp from 'lodash.clamp';
19
- import { cssModules } from "../../bpk-react-utils";
20
- import BpkText, { TEXT_STYLES } from "../../bpk-component-text";
21
- import STYLES from "./BpkRating.module.css";
22
- import { RATING_SIZES, RATING_SCALES } from "./common-types";
23
- import { jsxs as _jsxs } from "react/jsx-runtime";
24
- import { jsx as _jsx } from "react/jsx-runtime";
25
- const getClassName = cssModules(STYLES);
31
+ */
32
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
33
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
34
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
35
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
36
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
37
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
38
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
39
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
40
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
41
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
42
+ const getClassName = (0, _bpkReactUtils.cssModules)(_BpkRatingModule.default);
26
43
  const getMinValue = () =>
27
44
  // Currently the min value is zero no matter what scale is used.
28
45
  // If this ever changes, this function should be changed to return
@@ -30,7 +47,7 @@ const getMinValue = () =>
30
47
  0;
31
48
  const getMaxValue = ratingScale => {
32
49
  switch (ratingScale) {
33
- case RATING_SCALES.zeroToFive:
50
+ case _commonTypes.RATING_SCALES.zeroToFive:
34
51
  return 5;
35
52
  default:
36
53
  return 10;
@@ -38,67 +55,67 @@ const getMaxValue = ratingScale => {
38
55
  };
39
56
  const BpkRating = props => {
40
57
  const {
41
- ariaLabel,
42
- className,
43
- ratingScale,
44
- showScale,
45
- size,
46
- subtitle,
47
- title,
48
- value,
49
- ...rest
50
- } = props;
51
- const classNames = getClassName('bpk-rating', className, size === RATING_SIZES.large && title && subtitle && 'bpk-rating--large');
58
+ ariaLabel,
59
+ className,
60
+ ratingScale,
61
+ showScale,
62
+ size,
63
+ subtitle,
64
+ title,
65
+ value
66
+ } = props,
67
+ rest = _objectWithoutProperties(props, _excluded);
68
+ const classNames = getClassName('bpk-rating', className, size === _commonTypes.RATING_SIZES.large && title && subtitle && 'bpk-rating--large');
52
69
  const valueStyles = getClassName('bpk-rating__value');
53
70
  const scaleStyles = getClassName('bpk-rating__scale');
54
- const textWrapperStyles = getClassName('bpk-rating__text-wrapper', size === RATING_SIZES.large && 'bpk-rating__text-wrapper--large');
55
- const titleStyles = getClassName(subtitle && 'bpk-rating__title--with-subtitle', size === RATING_SIZES.large && 'bpk-rating__title--large');
56
- const subtitleStyles = getClassName('bpk-rating__subtitle', size === RATING_SIZES.large && 'bpk-rating__subtitle--large');
57
- let valueTextSize = TEXT_STYLES.label1;
58
- let scaleTextSize = TEXT_STYLES.caption;
59
- let titleTextSize = TEXT_STYLES.label1;
60
- let subtitleTextSize = TEXT_STYLES.caption;
61
- if (size === RATING_SIZES.large) {
62
- valueTextSize = TEXT_STYLES.hero5;
63
- scaleTextSize = TEXT_STYLES.bodyDefault;
64
- titleTextSize = TEXT_STYLES.heading5;
65
- subtitleTextSize = TEXT_STYLES.bodyDefault;
71
+ const textWrapperStyles = getClassName('bpk-rating__text-wrapper', size === _commonTypes.RATING_SIZES.large && 'bpk-rating__text-wrapper--large');
72
+ const titleStyles = getClassName(subtitle && 'bpk-rating__title--with-subtitle', size === _commonTypes.RATING_SIZES.large && 'bpk-rating__title--large');
73
+ const subtitleStyles = getClassName('bpk-rating__subtitle', size === _commonTypes.RATING_SIZES.large && 'bpk-rating__subtitle--large');
74
+ let valueTextSize = _bpkComponentText.TEXT_STYLES.label1;
75
+ let scaleTextSize = _bpkComponentText.TEXT_STYLES.caption;
76
+ let titleTextSize = _bpkComponentText.TEXT_STYLES.label1;
77
+ let subtitleTextSize = _bpkComponentText.TEXT_STYLES.caption;
78
+ if (size === _commonTypes.RATING_SIZES.large) {
79
+ valueTextSize = _bpkComponentText.TEXT_STYLES.hero5;
80
+ scaleTextSize = _bpkComponentText.TEXT_STYLES.bodyDefault;
81
+ titleTextSize = _bpkComponentText.TEXT_STYLES.heading5;
82
+ subtitleTextSize = _bpkComponentText.TEXT_STYLES.bodyDefault;
66
83
  }
67
84
  const minValue = getMinValue();
68
85
  const maxValue = getMaxValue(ratingScale);
69
86
  let adjustedValue = value;
70
87
  if (adjustedValue >= maxValue || adjustedValue <= minValue) {
71
- adjustedValue = clamp(adjustedValue, minValue, maxValue);
88
+ adjustedValue = (0, _lodash.default)(adjustedValue, minValue, maxValue);
72
89
  }
73
90
  return (
74
91
  /*#__PURE__*/
75
92
  // $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
76
- _jsxs("div", {
93
+ (0, _jsxRuntime.jsxs)("div", _objectSpread(_objectSpread({
77
94
  className: classNames,
78
95
  "aria-label": ariaLabel,
79
- role: "figure",
80
- ...rest,
81
- children: [/*#__PURE__*/_jsxs(BpkText, {
96
+ role: "figure"
97
+ }, rest), {}, {
98
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_bpkComponentText.default, {
82
99
  textStyle: valueTextSize,
83
100
  tagName: "span",
84
101
  className: valueStyles,
85
102
  "aria-hidden": "true",
86
- children: [adjustedValue, showScale && /*#__PURE__*/_jsxs(BpkText, {
103
+ children: [adjustedValue, showScale && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_bpkComponentText.default, {
87
104
  textStyle: scaleTextSize,
88
105
  className: scaleStyles,
89
106
  tagName: "span",
90
107
  "aria-hidden": "true",
91
108
  children: ["/", maxValue]
92
109
  })]
93
- }), /*#__PURE__*/_jsxs("div", {
110
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
94
111
  className: textWrapperStyles,
95
- children: [title && /*#__PURE__*/_jsx(BpkText, {
112
+ children: [title && /*#__PURE__*/(0, _jsxRuntime.jsx)(_bpkComponentText.default, {
96
113
  textStyle: titleTextSize,
97
114
  className: titleStyles,
98
115
  tagName: "span",
99
116
  "aria-hidden": "true",
100
117
  children: title
101
- }), subtitle && /*#__PURE__*/_jsx(BpkText, {
118
+ }), subtitle && /*#__PURE__*/(0, _jsxRuntime.jsx)(_bpkComponentText.default, {
102
119
  className: subtitleStyles,
103
120
  textStyle: subtitleTextSize,
104
121
  tagName: "span",
@@ -106,25 +123,26 @@ const BpkRating = props => {
106
123
  children: subtitle
107
124
  })]
108
125
  })]
109
- })
126
+ }))
110
127
  );
111
128
  };
112
129
  BpkRating.propTypes = {
113
- ariaLabel: PropTypes.string.isRequired,
114
- value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
115
- className: PropTypes.string,
116
- ratingScale: PropTypes.oneOf(Object.keys(RATING_SCALES)),
117
- size: PropTypes.oneOf(Object.keys(RATING_SIZES)),
118
- subtitle: PropTypes.string,
119
- showScale: PropTypes.bool,
120
- title: PropTypes.oneOfType([PropTypes.string, PropTypes.node])
130
+ ariaLabel: _propTypes.default.string.isRequired,
131
+ value: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]).isRequired,
132
+ className: _propTypes.default.string,
133
+ ratingScale: _propTypes.default.oneOf(Object.keys(_commonTypes.RATING_SCALES)),
134
+ size: _propTypes.default.oneOf(Object.keys(_commonTypes.RATING_SIZES)),
135
+ subtitle: _propTypes.default.string,
136
+ showScale: _propTypes.default.bool,
137
+ title: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.node])
121
138
  };
122
139
  BpkRating.defaultProps = {
123
140
  className: null,
124
- ratingScale: RATING_SCALES.zeroToFive,
125
- size: RATING_SIZES.base,
141
+ ratingScale: _commonTypes.RATING_SCALES.zeroToFive,
142
+ size: _commonTypes.RATING_SIZES.base,
126
143
  subtitle: null,
127
144
  showScale: true,
128
145
  title: null
129
146
  };
130
- export default BpkRating;
147
+ var _default = BpkRating;
148
+ exports.default = _default;