@skyscanner/backpack-web 21.0.1 → 22.0.0-beta.1

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 (1162) hide show
  1. package/README.md +1 -1
  2. package/bpk-animate-height/index.js +10 -4
  3. package/bpk-animate-height/src/AnimateHeight.js +72 -92
  4. package/bpk-component-accordion/index.js +33 -30
  5. package/bpk-component-accordion/src/BpkAccordion.js +54 -48
  6. package/bpk-component-accordion/src/BpkAccordion.module.css +1 -1
  7. package/bpk-component-accordion/src/BpkAccordionItem.js +120 -115
  8. package/bpk-component-accordion/src/BpkAccordionItem.module.css +1 -1
  9. package/bpk-component-accordion/src/withAccordionItemState.js +52 -77
  10. package/bpk-component-accordion/src/withSingleItemAccordionState.js +51 -77
  11. package/bpk-component-aria-live/index.js +17 -9
  12. package/bpk-component-aria-live/src/BpkAriaLive.js +37 -55
  13. package/bpk-component-autosuggest/index.js +17 -8
  14. package/bpk-component-autosuggest/src/BpkAutosuggest.js +39 -53
  15. package/bpk-component-autosuggest/src/BpkAutosuggest.module.css +1 -1
  16. package/bpk-component-autosuggest/src/BpkAutosuggestSuggestion.js +63 -86
  17. package/bpk-component-badge/index.js +25 -9
  18. package/bpk-component-badge/src/BpkBadge.js +43 -60
  19. package/bpk-component-badge/src/BpkBadge.module.css +1 -1
  20. package/bpk-component-badge/src/themeAttributes.js +8 -6
  21. package/bpk-component-banner-alert/index.js +45 -17
  22. package/bpk-component-banner-alert/src/AnimateAndFade.js +108 -149
  23. package/bpk-component-banner-alert/src/BpkBannerAlert.js +19 -34
  24. package/bpk-component-banner-alert/src/BpkBannerAlert.module.css +1 -1
  25. package/bpk-component-banner-alert/src/BpkBannerAlertDismissable.js +32 -50
  26. package/bpk-component-banner-alert/src/BpkBannerAlertExpandable.js +42 -57
  27. package/bpk-component-banner-alert/src/BpkBannerAlertInner.js +137 -203
  28. package/bpk-component-banner-alert/src/common-types.js +23 -35
  29. package/bpk-component-banner-alert/src/themeAttributes.js +8 -7
  30. package/bpk-component-banner-alert/src/withBannerAlertState.js +106 -161
  31. package/bpk-component-barchart/index.js +52 -21
  32. package/bpk-component-barchart/src/BpkBarchart.js +217 -304
  33. package/bpk-component-barchart/src/BpkBarchartBar.js +86 -130
  34. package/bpk-component-barchart/src/BpkBarchartBar.module.css +1 -1
  35. package/bpk-component-barchart/src/BpkBarchartBars.js +121 -145
  36. package/bpk-component-barchart/src/BpkBarchartDefs.js +40 -26
  37. package/bpk-component-barchart/src/BpkChartAxis.js +103 -149
  38. package/bpk-component-barchart/src/BpkChartAxis.module.css +1 -1
  39. package/bpk-component-barchart/src/BpkChartDataTable.js +51 -52
  40. package/bpk-component-barchart/src/BpkChartGridLines.js +69 -106
  41. package/bpk-component-barchart/src/BpkChartGridLines.module.css +1 -1
  42. package/bpk-component-barchart/src/BpkChartMargin.js +37 -48
  43. package/bpk-component-barchart/src/RTLtransforms.js +36 -47
  44. package/bpk-component-barchart/src/customPropTypes.js +15 -24
  45. package/bpk-component-barchart/src/orientation.js +10 -6
  46. package/bpk-component-barchart/src/themeAttributes.js +8 -9
  47. package/bpk-component-barchart/src/utils.js +14 -14
  48. package/bpk-component-blockquote/index.js +17 -6
  49. package/bpk-component-blockquote/src/BpkBlockquote.js +22 -23
  50. package/bpk-component-blockquote/src/BpkBlockquote.module.css +1 -1
  51. package/bpk-component-blockquote/src/themeAttributes.js +8 -2
  52. package/{bpk-component-accordion/src/BpkAccordion.module.scss → bpk-component-boilerplate/index.js} +10 -6
  53. package/bpk-component-boilerplate/src/BpkBoilerplate.js +44 -0
  54. package/{bpk-component-chip/src/BpkSelectableChip.module.scss → bpk-component-boilerplate/src/BpkBoilerplate.module.css} +6 -11
  55. package/bpk-component-breadcrumb/index.js +17 -14
  56. package/bpk-component-breadcrumb/src/BpkBreadcrumb.js +64 -87
  57. package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.js +65 -80
  58. package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.module.css +1 -1
  59. package/bpk-component-breakpoint/index.js +17 -7
  60. package/bpk-component-breakpoint/src/BpkBreakpoint.js +40 -42
  61. package/bpk-component-button/BpkButtonDestructive.js +12 -20
  62. package/bpk-component-button/BpkButtonFeatured.js +12 -20
  63. package/bpk-component-button/BpkButtonLink.js +12 -20
  64. package/bpk-component-button/BpkButtonLinkOnDark.js +12 -20
  65. package/bpk-component-button/BpkButtonPrimary.js +12 -20
  66. package/bpk-component-button/BpkButtonPrimaryOnDark.js +12 -20
  67. package/bpk-component-button/BpkButtonPrimaryOnLight.js +12 -20
  68. package/bpk-component-button/BpkButtonSecondary.js +12 -20
  69. package/bpk-component-button/BpkButtonSecondaryOnDark.js +12 -20
  70. package/bpk-component-button/index.js +123 -38
  71. package/bpk-component-button/src/BpkButton.js +53 -94
  72. package/bpk-component-button/src/BpkButtonBase.js +57 -78
  73. package/bpk-component-button/src/BpkButtonBase.module.css +1 -1
  74. package/bpk-component-button/src/BpkButtonDestructive.js +35 -37
  75. package/bpk-component-button/src/BpkButtonDestructive.module.css +1 -1
  76. package/bpk-component-button/src/BpkButtonFeatured.js +35 -37
  77. package/bpk-component-button/src/BpkButtonFeatured.module.css +1 -1
  78. package/bpk-component-button/src/BpkButtonLink.js +37 -41
  79. package/bpk-component-button/src/BpkButtonLink.module.css +1 -1
  80. package/bpk-component-button/src/BpkButtonLinkOnDark.js +37 -41
  81. package/bpk-component-button/src/BpkButtonLinkOnDark.module.css +18 -0
  82. package/bpk-component-button/src/BpkButtonPrimary.js +19 -28
  83. package/bpk-component-button/src/BpkButtonPrimaryOnDark.js +35 -37
  84. package/bpk-component-button/src/BpkButtonPrimaryOnDark.module.css +18 -0
  85. package/bpk-component-button/src/BpkButtonPrimaryOnLight.js +35 -37
  86. package/bpk-component-button/src/BpkButtonPrimaryOnLight.module.css +18 -0
  87. package/bpk-component-button/src/BpkButtonSecondary.js +35 -37
  88. package/bpk-component-button/src/BpkButtonSecondary.module.css +1 -1
  89. package/bpk-component-button/src/BpkButtonSecondaryOnDark.js +35 -37
  90. package/bpk-component-button/src/BpkButtonSecondaryOnDark.module.css +18 -0
  91. package/bpk-component-button/src/common-types.js +22 -35
  92. package/bpk-component-button/src/commonButtonTests.js +83 -58
  93. package/bpk-component-button/src/themeAttributes.js +22 -74
  94. package/bpk-component-button/themeAttributes.js +53 -29
  95. package/bpk-component-calendar/index.js +106 -41
  96. package/bpk-component-calendar/src/BpkCalendar.module.css +1 -1
  97. package/bpk-component-calendar/src/BpkCalendarContainer.js +202 -280
  98. package/bpk-component-calendar/src/BpkCalendarDate.js +103 -136
  99. package/bpk-component-calendar/src/BpkCalendarDate.module.css +1 -1
  100. package/bpk-component-calendar/src/BpkCalendarGrid.js +94 -120
  101. package/bpk-component-calendar/src/BpkCalendarGrid.module.css +1 -1
  102. package/bpk-component-calendar/src/BpkCalendarGridHeader.js +58 -57
  103. package/bpk-component-calendar/src/BpkCalendarGridHeader.module.css +1 -1
  104. package/bpk-component-calendar/src/BpkCalendarGridTransition.js +91 -159
  105. package/bpk-component-calendar/src/BpkCalendarNav.js +142 -138
  106. package/bpk-component-calendar/src/BpkCalendarNav.module.css +1 -1
  107. package/bpk-component-calendar/src/Week.js +170 -269
  108. package/bpk-component-calendar/src/composeCalendar.js +92 -116
  109. package/bpk-component-calendar/src/custom-proptypes.js +37 -41
  110. package/bpk-component-calendar/src/date-utils.js +175 -96
  111. package/bpk-component-calendar/src/themeAttributes.js +8 -13
  112. package/bpk-component-calendar/src/utils.js +19 -24
  113. package/bpk-component-calendar/test-utils.js +228 -274
  114. package/bpk-component-card/index.js +32 -9
  115. package/bpk-component-card/src/BpkCard.js +64 -83
  116. package/bpk-component-card/src/BpkCard.module.css +1 -1
  117. package/bpk-component-card/src/BpkCardWrapper.js +39 -44
  118. package/bpk-component-card/src/BpkCardWrapper.module.css +18 -0
  119. package/bpk-component-card/src/BpkDividedCard.js +56 -83
  120. package/bpk-component-card/src/BpkDividedCard.module.css +1 -1
  121. package/bpk-component-checkbox/index.js +17 -8
  122. package/bpk-component-checkbox/src/BpkCheckbox.js +73 -116
  123. package/bpk-component-checkbox/src/BpkCheckbox.module.css +1 -1
  124. package/bpk-component-checkbox/src/themeAttributes.js +8 -4
  125. package/bpk-component-chip/index.js +38 -21
  126. package/bpk-component-chip/src/BpkDismissibleChip.js +44 -63
  127. package/bpk-component-chip/src/BpkDropdownChip.js +26 -50
  128. package/bpk-component-chip/src/BpkSelectableChip.js +66 -98
  129. package/bpk-component-chip/src/BpkSelectableChip.module.css +1 -1
  130. package/bpk-component-chip/src/commonTypes.js +25 -34
  131. package/bpk-component-chip/src/themeAttributes.js +8 -13
  132. package/bpk-component-close-button/index.js +10 -6
  133. package/bpk-component-close-button/src/BpkCloseButton.js +49 -61
  134. package/bpk-component-close-button/src/BpkCloseButton.module.css +1 -1
  135. package/bpk-component-code/index.js +19 -22
  136. package/bpk-component-code/src/BpkCode.js +39 -49
  137. package/bpk-component-code/src/BpkCode.module.css +1 -1
  138. package/bpk-component-code/src/BpkCodeBlock.js +43 -53
  139. package/bpk-component-code/src/BpkCodeBlock.module.css +1 -1
  140. package/bpk-component-content-cards/index.js +10 -4
  141. package/bpk-component-content-cards/src/BpkContentCard.js +43 -60
  142. package/bpk-component-content-cards/src/BpkContentCard.module.css +18 -0
  143. package/bpk-component-content-cards/src/BpkContentCards.js +37 -44
  144. package/bpk-component-content-cards/src/BpkContentCards.module.css +1 -1
  145. package/bpk-component-datatable/index.js +19 -20
  146. package/bpk-component-datatable/src/BpkDataTable.js +145 -205
  147. package/bpk-component-datatable/src/BpkDataTable.module.css +1 -1
  148. package/bpk-component-datatable/src/BpkDataTableColumn.js +32 -43
  149. package/bpk-component-datatable/src/BpkDataTableHeader.js +63 -108
  150. package/bpk-component-datatable/src/BpkDataTableHeader.module.css +18 -0
  151. package/bpk-component-datatable/src/common-types.js +1 -72
  152. package/bpk-component-datatable/src/hasChildrenOfType.js +25 -41
  153. package/bpk-component-datatable/src/sort-types.js +10 -16
  154. package/bpk-component-datatable/src/utils.js +93 -65
  155. package/bpk-component-datepicker/index.js +24 -8
  156. package/bpk-component-datepicker/src/BpkDatepicker.js +218 -296
  157. package/bpk-component-datepicker/src/BpkDatepicker.module.css +1 -1
  158. package/bpk-component-datepicker/src/themeAttributes.js +11 -12
  159. package/bpk-component-description-list/index.js +26 -22
  160. package/bpk-component-description-list/src/BpkDescriptionDetails.js +10 -4
  161. package/bpk-component-description-list/src/BpkDescriptionList.js +10 -4
  162. package/bpk-component-description-list/src/BpkDescriptionTerm.js +10 -4
  163. package/bpk-component-description-list/src/ComponentFactory.js +36 -42
  164. package/bpk-component-dialog/index.js +17 -9
  165. package/bpk-component-dialog/src/BpkDialog.js +59 -85
  166. package/bpk-component-dialog/src/BpkDialog.module.css +1 -1
  167. package/bpk-component-dialog/src/BpkDialogInner.js +50 -77
  168. package/bpk-component-dialog/src/BpkDialogInner.module.css +1 -1
  169. package/bpk-component-dialog/src/common-types.js +49 -83
  170. package/bpk-component-drawer/index.js +17 -8
  171. package/bpk-component-drawer/src/BpkDrawer.js +67 -84
  172. package/bpk-component-drawer/src/BpkDrawerContent.js +104 -142
  173. package/bpk-component-drawer/src/BpkDrawerContent.module.css +1 -1
  174. package/bpk-component-drawer/src/themeAttributes.js +9 -6
  175. package/bpk-component-fieldset/index.js +31 -13
  176. package/bpk-component-fieldset/src/BpkFieldset.js +96 -145
  177. package/bpk-component-fieldset/src/BpkFieldset.module.css +1 -1
  178. package/bpk-component-fieldset/src/themeAttributes.js +8 -2
  179. package/bpk-component-flare/index.js +23 -8
  180. package/bpk-component-flare/src/BpkContentBubble.js +57 -77
  181. package/bpk-component-flare/src/BpkFlareBar.js +47 -58
  182. package/bpk-component-flare/src/__generated__/js/corner-radius.js +31 -5
  183. package/bpk-component-flare/src/__generated__/js/pointer.js +31 -5
  184. package/bpk-component-flare/src/bpk-flare-bar.module.css +1 -1
  185. package/bpk-component-floating-notification/index.js +10 -8
  186. package/bpk-component-floating-notification/src/BpkFloatingNotification.js +90 -117
  187. package/bpk-component-floating-notification/src/BpkFloatingNotification.module.css +1 -1
  188. package/bpk-component-form-validation/index.js +17 -6
  189. package/bpk-component-form-validation/src/BpkFormValidation.js +59 -75
  190. package/bpk-component-form-validation/src/BpkFormValidation.module.css +1 -1
  191. package/bpk-component-form-validation/src/themeAttributes.js +8 -2
  192. package/bpk-component-graphic-promotion/index.js +17 -9
  193. package/bpk-component-graphic-promotion/src/BpkGraphicPromo.js +86 -133
  194. package/bpk-component-graphic-promotion/src/BpkGraphicPromo.module.css +18 -0
  195. package/bpk-component-grid-toggle/index.js +10 -4
  196. package/bpk-component-grid-toggle/src/BpkGridToggle.js +49 -75
  197. package/bpk-component-grid-toggle/src/BpkGridToggle.module.css +1 -1
  198. package/bpk-component-horizontal-nav/index.js +30 -15
  199. package/bpk-component-horizontal-nav/src/BpkHorizontalNav.js +116 -170
  200. package/bpk-component-horizontal-nav/src/BpkHorizontalNav.module.css +1 -1
  201. package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.js +83 -121
  202. package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.module.css +1 -1
  203. package/bpk-component-icon/all.js +5 -6
  204. package/bpk-component-icon/index.js +33 -27
  205. package/bpk-component-icon/lg/accessibility.js +37 -8
  206. package/bpk-component-icon/lg/account--add.js +37 -8
  207. package/bpk-component-icon/lg/account--female.js +37 -8
  208. package/bpk-component-icon/lg/account--id-card.js +37 -8
  209. package/bpk-component-icon/lg/account--name.js +37 -8
  210. package/bpk-component-icon/lg/account--permit.js +37 -8
  211. package/bpk-component-icon/lg/account-circle.js +37 -8
  212. package/bpk-component-icon/lg/account.js +37 -8
  213. package/bpk-component-icon/lg/add-circle.js +37 -8
  214. package/bpk-component-icon/lg/adult.js +37 -8
  215. package/bpk-component-icon/lg/aircon.js +37 -8
  216. package/bpk-component-icon/lg/aircraft.js +39 -8
  217. package/bpk-component-icon/lg/airline--multiple.js +37 -8
  218. package/bpk-component-icon/lg/airline.js +37 -8
  219. package/bpk-component-icon/lg/airports.js +37 -8
  220. package/bpk-component-icon/lg/alert--active.js +37 -8
  221. package/bpk-component-icon/lg/alert--add.js +37 -8
  222. package/bpk-component-icon/lg/alert--expired.js +37 -8
  223. package/bpk-component-icon/lg/alert--remove.js +37 -8
  224. package/bpk-component-icon/lg/arrow-down.js +37 -8
  225. package/bpk-component-icon/lg/arrow-left.js +37 -8
  226. package/bpk-component-icon/lg/arrow-right.js +37 -8
  227. package/bpk-component-icon/lg/arrow-up.js +37 -8
  228. package/bpk-component-icon/lg/award.js +37 -8
  229. package/bpk-component-icon/lg/baby-carriage.js +37 -8
  230. package/bpk-component-icon/lg/baggage--add.js +37 -8
  231. package/bpk-component-icon/lg/baggage--remove.js +37 -8
  232. package/bpk-component-icon/lg/baggage-cabin-add.js +37 -8
  233. package/bpk-component-icon/lg/baggage-cabin-not-included.js +37 -8
  234. package/bpk-component-icon/lg/baggage-cabin.js +37 -8
  235. package/bpk-component-icon/lg/baggage-checked-add.js +37 -8
  236. package/bpk-component-icon/lg/baggage-checked-not-included.js +37 -8
  237. package/bpk-component-icon/lg/baggage-checked.js +37 -8
  238. package/bpk-component-icon/lg/baggage-cross.js +37 -8
  239. package/bpk-component-icon/lg/baggage-generic.js +37 -8
  240. package/bpk-component-icon/lg/baggage-tick.js +37 -8
  241. package/bpk-component-icon/lg/baggage.js +37 -8
  242. package/bpk-component-icon/lg/bar.js +37 -8
  243. package/bpk-component-icon/lg/beach.js +39 -8
  244. package/bpk-component-icon/lg/beer.js +37 -8
  245. package/bpk-component-icon/lg/breakfast-cross.js +37 -8
  246. package/bpk-component-icon/lg/breakfast-tick.js +37 -8
  247. package/bpk-component-icon/lg/bus.js +37 -8
  248. package/bpk-component-icon/lg/business.js +37 -8
  249. package/bpk-component-icon/lg/cafe.js +37 -8
  250. package/bpk-component-icon/lg/calendar.js +37 -8
  251. package/bpk-component-icon/lg/call-back.js +39 -8
  252. package/bpk-component-icon/lg/camera.js +37 -8
  253. package/bpk-component-icon/lg/camper-van.js +39 -8
  254. package/bpk-component-icon/lg/car-door.js +37 -8
  255. package/bpk-component-icon/lg/car-wash.js +39 -8
  256. package/bpk-component-icon/lg/cars-flexible.js +37 -8
  257. package/bpk-component-icon/lg/cars.js +39 -8
  258. package/bpk-component-icon/lg/center-location.js +37 -8
  259. package/bpk-component-icon/lg/chart.js +37 -8
  260. package/bpk-component-icon/lg/chauffeur.js +37 -8
  261. package/bpk-component-icon/lg/chevron-down.js +37 -8
  262. package/bpk-component-icon/lg/chevron-left.js +37 -8
  263. package/bpk-component-icon/lg/chevron-right.js +37 -8
  264. package/bpk-component-icon/lg/chevron-up.js +37 -8
  265. package/bpk-component-icon/lg/child-seat.js +37 -8
  266. package/bpk-component-icon/lg/child.js +37 -8
  267. package/bpk-component-icon/lg/city-center.js +37 -8
  268. package/bpk-component-icon/lg/city.js +37 -8
  269. package/bpk-component-icon/lg/clean-policy.js +37 -8
  270. package/bpk-component-icon/lg/clean.js +41 -8
  271. package/bpk-component-icon/lg/cleaning-medical.js +37 -8
  272. package/bpk-component-icon/lg/cloakroom.js +41 -8
  273. package/bpk-component-icon/lg/close-circle.js +37 -8
  274. package/bpk-component-icon/lg/close.js +37 -8
  275. package/bpk-component-icon/lg/collapse.js +37 -8
  276. package/bpk-component-icon/lg/content--copy.js +39 -8
  277. package/bpk-component-icon/lg/content--event.js +37 -8
  278. package/bpk-component-icon/lg/content--guides.js +37 -8
  279. package/bpk-component-icon/lg/currency.js +37 -8
  280. package/bpk-component-icon/lg/data.js +39 -8
  281. package/bpk-component-icon/lg/deals.js +37 -8
  282. package/bpk-component-icon/lg/depart.js +39 -8
  283. package/bpk-component-icon/lg/device-mid.js +37 -8
  284. package/bpk-component-icon/lg/device-wide.js +37 -8
  285. package/bpk-component-icon/lg/direct.js +37 -8
  286. package/bpk-component-icon/lg/document-csv.js +37 -8
  287. package/bpk-component-icon/lg/document-pdf.js +37 -8
  288. package/bpk-component-icon/lg/download.js +39 -8
  289. package/bpk-component-icon/lg/duration.js +37 -8
  290. package/bpk-component-icon/lg/eco-leaf.js +37 -8
  291. package/bpk-component-icon/lg/edit.js +37 -8
  292. package/bpk-component-icon/lg/education.js +39 -8
  293. package/bpk-component-icon/lg/electric.js +37 -8
  294. package/bpk-component-icon/lg/end-call.js +37 -8
  295. package/bpk-component-icon/lg/estimated.js +37 -8
  296. package/bpk-component-icon/lg/exclamation-circle.js +37 -8
  297. package/bpk-component-icon/lg/exclamation.js +37 -8
  298. package/bpk-component-icon/lg/expand.js +37 -8
  299. package/bpk-component-icon/lg/explore.js +37 -8
  300. package/bpk-component-icon/lg/face--blank.js +37 -8
  301. package/bpk-component-icon/lg/face--happy.js +37 -8
  302. package/bpk-component-icon/lg/face--sad.js +37 -8
  303. package/bpk-component-icon/lg/face-id.js +37 -8
  304. package/bpk-component-icon/lg/face-mask.js +37 -8
  305. package/bpk-component-icon/lg/family.js +37 -8
  306. package/bpk-component-icon/lg/fast-track.js +39 -8
  307. package/bpk-component-icon/lg/fast-train.js +39 -8
  308. package/bpk-component-icon/lg/filter.js +38 -8
  309. package/bpk-component-icon/lg/fingerprint.js +37 -8
  310. package/bpk-component-icon/lg/flag.js +37 -8
  311. package/bpk-component-icon/lg/flask.js +37 -8
  312. package/bpk-component-icon/lg/flight-flexible.js +37 -8
  313. package/bpk-component-icon/lg/flight-landing.js +41 -8
  314. package/bpk-component-icon/lg/flight-takeoff.js +39 -8
  315. package/bpk-component-icon/lg/flight.js +39 -8
  316. package/bpk-component-icon/lg/food.js +37 -8
  317. package/bpk-component-icon/lg/gears-automatic-circle.js +37 -8
  318. package/bpk-component-icon/lg/gears-automatic.js +37 -8
  319. package/bpk-component-icon/lg/gears-manual-circle.js +37 -8
  320. package/bpk-component-icon/lg/gears-manual.js +37 -8
  321. package/bpk-component-icon/lg/globe.js +37 -8
  322. package/bpk-component-icon/lg/grid-layout.js +37 -8
  323. package/bpk-component-icon/lg/headset.js +37 -8
  324. package/bpk-component-icon/lg/health-fitness.js +37 -8
  325. package/bpk-component-icon/lg/heart--outline.js +37 -8
  326. package/bpk-component-icon/lg/heart.js +37 -8
  327. package/bpk-component-icon/lg/help-circle.js +37 -8
  328. package/bpk-component-icon/lg/help.js +37 -8
  329. package/bpk-component-icon/lg/hide.js +37 -8
  330. package/bpk-component-icon/lg/hotel-flexible.js +37 -8
  331. package/bpk-component-icon/lg/hotels--disabled-facilities.js +37 -8
  332. package/bpk-component-icon/lg/hotels--jacuzzi.js +37 -8
  333. package/bpk-component-icon/lg/hotels--pets-allowed.js +37 -8
  334. package/bpk-component-icon/lg/hotels--smoking.js +37 -8
  335. package/bpk-component-icon/lg/hotels.js +37 -8
  336. package/bpk-component-icon/lg/infant.js +37 -8
  337. package/bpk-component-icon/lg/information--language-alert.js +37 -8
  338. package/bpk-component-icon/lg/information--language-question.js +37 -8
  339. package/bpk-component-icon/lg/information--language.js +37 -8
  340. package/bpk-component-icon/lg/information-circle.js +37 -8
  341. package/bpk-component-icon/lg/information.js +37 -8
  342. package/bpk-component-icon/lg/insurance.js +37 -8
  343. package/bpk-component-icon/lg/key.js +37 -8
  344. package/bpk-component-icon/lg/keypad.js +37 -8
  345. package/bpk-component-icon/lg/landmark.js +37 -8
  346. package/bpk-component-icon/lg/language.js +37 -8
  347. package/bpk-component-icon/lg/legroom--extra.js +39 -8
  348. package/bpk-component-icon/lg/legroom--normal.js +39 -8
  349. package/bpk-component-icon/lg/legroom--reduced.js +39 -8
  350. package/bpk-component-icon/lg/leisure.js +37 -8
  351. package/bpk-component-icon/lg/lightning.js +37 -8
  352. package/bpk-component-icon/lg/list.js +37 -8
  353. package/bpk-component-icon/lg/location.js +37 -8
  354. package/bpk-component-icon/lg/lock.js +37 -8
  355. package/bpk-component-icon/lg/logout.js +39 -8
  356. package/bpk-component-icon/lg/long-arrow-down.js +37 -8
  357. package/bpk-component-icon/lg/long-arrow-left.js +37 -8
  358. package/bpk-component-icon/lg/long-arrow-right.js +37 -8
  359. package/bpk-component-icon/lg/long-arrow-up.js +37 -8
  360. package/bpk-component-icon/lg/lounge.js +39 -8
  361. package/bpk-component-icon/lg/luggageall.js +37 -8
  362. package/bpk-component-icon/lg/mail.js +39 -8
  363. package/bpk-component-icon/lg/map.js +37 -8
  364. package/bpk-component-icon/lg/meal.js +37 -8
  365. package/bpk-component-icon/lg/media.js +37 -8
  366. package/bpk-component-icon/lg/menu--horizontal.js +37 -8
  367. package/bpk-component-icon/lg/menu--vertical.js +37 -8
  368. package/bpk-component-icon/lg/menu.js +37 -8
  369. package/bpk-component-icon/lg/mileage.js +39 -8
  370. package/bpk-component-icon/lg/minus.js +37 -8
  371. package/bpk-component-icon/lg/mobile.js +37 -8
  372. package/bpk-component-icon/lg/money.js +37 -8
  373. package/bpk-component-icon/lg/multiple-bookings.js +37 -8
  374. package/bpk-component-icon/lg/music.js +37 -8
  375. package/bpk-component-icon/lg/mute.js +37 -8
  376. package/bpk-component-icon/lg/native-android--back.js +37 -8
  377. package/bpk-component-icon/lg/native-android--close.js +37 -8
  378. package/bpk-component-icon/lg/native-android--forward.js +37 -8
  379. package/bpk-component-icon/lg/native-ios-close.js +37 -8
  380. package/bpk-component-icon/lg/navigation.js +37 -8
  381. package/bpk-component-icon/lg/new-window.js +39 -8
  382. package/bpk-component-icon/lg/news.js +37 -8
  383. package/bpk-component-icon/lg/night.js +37 -8
  384. package/bpk-component-icon/lg/not-allowed.js +37 -8
  385. package/bpk-component-icon/lg/onsen.js +37 -8
  386. package/bpk-component-icon/lg/paid.js +37 -8
  387. package/bpk-component-icon/lg/paperclip.js +37 -8
  388. package/bpk-component-icon/lg/parking.js +37 -8
  389. package/bpk-component-icon/lg/passport.js +37 -8
  390. package/bpk-component-icon/lg/pause.js +37 -8
  391. package/bpk-component-icon/lg/payment-card.js +37 -8
  392. package/bpk-component-icon/lg/petrol.js +37 -8
  393. package/bpk-component-icon/lg/phone-call.js +37 -8
  394. package/bpk-component-icon/lg/picture.js +37 -8
  395. package/bpk-component-icon/lg/pin.js +37 -8
  396. package/bpk-component-icon/lg/plane-seat.js +39 -8
  397. package/bpk-component-icon/lg/play.js +37 -8
  398. package/bpk-component-icon/lg/plus.js +37 -8
  399. package/bpk-component-icon/lg/policy.js +37 -8
  400. package/bpk-component-icon/lg/powerplug.js +37 -8
  401. package/bpk-component-icon/lg/ppe.js +37 -8
  402. package/bpk-component-icon/lg/price-alerts.js +37 -8
  403. package/bpk-component-icon/lg/price-tag.js +37 -8
  404. package/bpk-component-icon/lg/print.js +37 -8
  405. package/bpk-component-icon/lg/recent-searches.js +37 -8
  406. package/bpk-component-icon/lg/redo.js +37 -8
  407. package/bpk-component-icon/lg/refresh.js +37 -8
  408. package/bpk-component-icon/lg/return.js +39 -8
  409. package/bpk-component-icon/lg/room.js +37 -8
  410. package/bpk-component-icon/lg/scales.js +39 -8
  411. package/bpk-component-icon/lg/search.js +37 -8
  412. package/bpk-component-icon/lg/self-service.js +37 -8
  413. package/bpk-component-icon/lg/send-message.js +37 -8
  414. package/bpk-component-icon/lg/services.js +37 -8
  415. package/bpk-component-icon/lg/settings.js +37 -8
  416. package/bpk-component-icon/lg/share--android.js +37 -8
  417. package/bpk-component-icon/lg/share--ios.js +39 -8
  418. package/bpk-component-icon/lg/share.js +37 -8
  419. package/bpk-component-icon/lg/single-booking.js +37 -8
  420. package/bpk-component-icon/lg/social-like.js +37 -8
  421. package/bpk-component-icon/lg/sort-down.js +37 -8
  422. package/bpk-component-icon/lg/sort-up.js +37 -8
  423. package/bpk-component-icon/lg/sort.js +37 -8
  424. package/bpk-component-icon/lg/speaker.js +39 -8
  425. package/bpk-component-icon/lg/star-half.js +37 -8
  426. package/bpk-component-icon/lg/star-outline.js +37 -8
  427. package/bpk-component-icon/lg/star.js +37 -8
  428. package/bpk-component-icon/lg/stops.js +37 -8
  429. package/bpk-component-icon/lg/swap--horizontal.js +37 -8
  430. package/bpk-component-icon/lg/swap--vertical.js +37 -8
  431. package/bpk-component-icon/lg/swap.js +37 -8
  432. package/bpk-component-icon/lg/taxi.js +39 -8
  433. package/bpk-component-icon/lg/thumbs-down.js +37 -8
  434. package/bpk-component-icon/lg/thumbs-up.js +37 -8
  435. package/bpk-component-icon/lg/tick-circle.js +37 -8
  436. package/bpk-component-icon/lg/tick.js +37 -8
  437. package/bpk-component-icon/lg/ticket-flexible.js +37 -8
  438. package/bpk-component-icon/lg/ticket.js +37 -8
  439. package/bpk-component-icon/lg/time.js +37 -8
  440. package/bpk-component-icon/lg/toilets.js +37 -8
  441. package/bpk-component-icon/lg/train.js +37 -8
  442. package/bpk-component-icon/lg/transmission-automatic.js +37 -8
  443. package/bpk-component-icon/lg/transmission-manual.js +37 -8
  444. package/bpk-component-icon/lg/trash.js +37 -8
  445. package/bpk-component-icon/lg/trend--down.js +37 -8
  446. package/bpk-component-icon/lg/trend--steady.js +37 -8
  447. package/bpk-component-icon/lg/trend--will-rise.js +37 -8
  448. package/bpk-component-icon/lg/trend.js +37 -8
  449. package/bpk-component-icon/lg/trips.js +37 -8
  450. package/bpk-component-icon/lg/undo.js +37 -8
  451. package/bpk-component-icon/lg/unlock.js +37 -8
  452. package/bpk-component-icon/lg/unmute.js +39 -8
  453. package/bpk-component-icon/lg/upgrade.js +37 -8
  454. package/bpk-component-icon/lg/use-location.js +37 -8
  455. package/bpk-component-icon/lg/view.js +37 -8
  456. package/bpk-component-icon/lg/virus.js +37 -8
  457. package/bpk-component-icon/lg/wallet.js +39 -8
  458. package/bpk-component-icon/lg/weather--clear.js +37 -8
  459. package/bpk-component-icon/lg/weather--cloudy.js +39 -8
  460. package/bpk-component-icon/lg/weather--fog.js +37 -8
  461. package/bpk-component-icon/lg/weather--partly-cloudy.js +39 -8
  462. package/bpk-component-icon/lg/weather--rain.js +41 -8
  463. package/bpk-component-icon/lg/weather--snow.js +37 -8
  464. package/bpk-component-icon/lg/weather--thunderstorm.js +41 -8
  465. package/bpk-component-icon/lg/weather--tornado.js +37 -8
  466. package/bpk-component-icon/lg/weather--wind.js +37 -8
  467. package/bpk-component-icon/lg/weather.js +37 -8
  468. package/bpk-component-icon/lg/wifi.js +37 -8
  469. package/bpk-component-icon/lg/window--reduce.js +39 -8
  470. package/bpk-component-icon/lg/window.js +37 -8
  471. package/bpk-component-icon/lg/world--amer.js +37 -8
  472. package/bpk-component-icon/lg/world--apac.js +37 -8
  473. package/bpk-component-icon/lg/world--emea.js +39 -8
  474. package/bpk-component-icon/sm/accessibility.js +38 -8
  475. package/bpk-component-icon/sm/account--add.js +38 -8
  476. package/bpk-component-icon/sm/account--female.js +38 -8
  477. package/bpk-component-icon/sm/account--id-card.js +38 -8
  478. package/bpk-component-icon/sm/account--name.js +38 -8
  479. package/bpk-component-icon/sm/account--permit.js +38 -8
  480. package/bpk-component-icon/sm/account-circle.js +38 -8
  481. package/bpk-component-icon/sm/account.js +38 -8
  482. package/bpk-component-icon/sm/add-circle.js +38 -8
  483. package/bpk-component-icon/sm/adult.js +38 -8
  484. package/bpk-component-icon/sm/aircon.js +38 -8
  485. package/bpk-component-icon/sm/aircraft.js +40 -8
  486. package/bpk-component-icon/sm/airline--multiple.js +38 -8
  487. package/bpk-component-icon/sm/airline.js +38 -8
  488. package/bpk-component-icon/sm/airports.js +38 -8
  489. package/bpk-component-icon/sm/alert--active.js +38 -8
  490. package/bpk-component-icon/sm/alert--add.js +38 -8
  491. package/bpk-component-icon/sm/alert--expired.js +38 -8
  492. package/bpk-component-icon/sm/alert--remove.js +38 -8
  493. package/bpk-component-icon/sm/arrow-down.js +38 -8
  494. package/bpk-component-icon/sm/arrow-left.js +38 -8
  495. package/bpk-component-icon/sm/arrow-right.js +38 -8
  496. package/bpk-component-icon/sm/arrow-up.js +38 -8
  497. package/bpk-component-icon/sm/award.js +38 -8
  498. package/bpk-component-icon/sm/baby-carriage.js +38 -8
  499. package/bpk-component-icon/sm/baggage--add.js +38 -8
  500. package/bpk-component-icon/sm/baggage--remove.js +38 -8
  501. package/bpk-component-icon/sm/baggage-cabin-add.js +38 -8
  502. package/bpk-component-icon/sm/baggage-cabin-not-included.js +41 -8
  503. package/bpk-component-icon/sm/baggage-cabin.js +38 -8
  504. package/bpk-component-icon/sm/baggage-checked-add.js +38 -8
  505. package/bpk-component-icon/sm/baggage-checked-not-included.js +41 -8
  506. package/bpk-component-icon/sm/baggage-checked.js +38 -8
  507. package/bpk-component-icon/sm/baggage-cross.js +38 -8
  508. package/bpk-component-icon/sm/baggage-generic.js +38 -8
  509. package/bpk-component-icon/sm/baggage-tick.js +38 -8
  510. package/bpk-component-icon/sm/baggage.js +38 -8
  511. package/bpk-component-icon/sm/bar.js +38 -8
  512. package/bpk-component-icon/sm/beach.js +40 -8
  513. package/bpk-component-icon/sm/beer.js +38 -8
  514. package/bpk-component-icon/sm/breakfast-cross.js +38 -8
  515. package/bpk-component-icon/sm/breakfast-tick.js +38 -8
  516. package/bpk-component-icon/sm/bus.js +40 -8
  517. package/bpk-component-icon/sm/business.js +38 -8
  518. package/bpk-component-icon/sm/cafe.js +38 -8
  519. package/bpk-component-icon/sm/calendar.js +38 -8
  520. package/bpk-component-icon/sm/call-back.js +40 -8
  521. package/bpk-component-icon/sm/camera.js +38 -8
  522. package/bpk-component-icon/sm/camper-van.js +40 -8
  523. package/bpk-component-icon/sm/car-door.js +38 -8
  524. package/bpk-component-icon/sm/car-wash.js +40 -8
  525. package/bpk-component-icon/sm/cars-flexible.js +38 -8
  526. package/bpk-component-icon/sm/cars.js +40 -8
  527. package/bpk-component-icon/sm/center-location.js +38 -8
  528. package/bpk-component-icon/sm/chart.js +38 -8
  529. package/bpk-component-icon/sm/chauffeur.js +40 -8
  530. package/bpk-component-icon/sm/chevron-down.js +38 -8
  531. package/bpk-component-icon/sm/chevron-left.js +38 -8
  532. package/bpk-component-icon/sm/chevron-right.js +38 -8
  533. package/bpk-component-icon/sm/chevron-up.js +38 -8
  534. package/bpk-component-icon/sm/child-seat.js +38 -8
  535. package/bpk-component-icon/sm/child.js +38 -8
  536. package/bpk-component-icon/sm/city-center.js +38 -8
  537. package/bpk-component-icon/sm/city.js +38 -8
  538. package/bpk-component-icon/sm/clean-policy.js +38 -8
  539. package/bpk-component-icon/sm/clean.js +40 -8
  540. package/bpk-component-icon/sm/cleaning-medical.js +38 -8
  541. package/bpk-component-icon/sm/cloakroom.js +38 -8
  542. package/bpk-component-icon/sm/close-circle.js +38 -8
  543. package/bpk-component-icon/sm/close.js +38 -8
  544. package/bpk-component-icon/sm/collapse.js +38 -8
  545. package/bpk-component-icon/sm/content--copy.js +40 -8
  546. package/bpk-component-icon/sm/content--event.js +38 -8
  547. package/bpk-component-icon/sm/content--guides.js +38 -8
  548. package/bpk-component-icon/sm/currency.js +38 -8
  549. package/bpk-component-icon/sm/data.js +40 -8
  550. package/bpk-component-icon/sm/deals.js +38 -8
  551. package/bpk-component-icon/sm/depart.js +42 -8
  552. package/bpk-component-icon/sm/device-mid.js +38 -8
  553. package/bpk-component-icon/sm/device-wide.js +38 -8
  554. package/bpk-component-icon/sm/direct.js +40 -8
  555. package/bpk-component-icon/sm/document-csv.js +38 -8
  556. package/bpk-component-icon/sm/document-pdf.js +38 -8
  557. package/bpk-component-icon/sm/download.js +40 -8
  558. package/bpk-component-icon/sm/duration.js +38 -8
  559. package/bpk-component-icon/sm/eco-leaf.js +38 -8
  560. package/bpk-component-icon/sm/edit.js +38 -8
  561. package/bpk-component-icon/sm/education.js +40 -8
  562. package/bpk-component-icon/sm/electric.js +38 -8
  563. package/bpk-component-icon/sm/end-call.js +38 -8
  564. package/bpk-component-icon/sm/estimated.js +38 -8
  565. package/bpk-component-icon/sm/exclamation-circle.js +38 -8
  566. package/bpk-component-icon/sm/exclamation.js +38 -8
  567. package/bpk-component-icon/sm/expand.js +38 -8
  568. package/bpk-component-icon/sm/explore.js +38 -8
  569. package/bpk-component-icon/sm/face--blank.js +38 -8
  570. package/bpk-component-icon/sm/face--happy.js +38 -8
  571. package/bpk-component-icon/sm/face--sad.js +38 -8
  572. package/bpk-component-icon/sm/face-id.js +38 -8
  573. package/bpk-component-icon/sm/face-mask.js +38 -8
  574. package/bpk-component-icon/sm/family.js +38 -8
  575. package/bpk-component-icon/sm/fast-track.js +40 -8
  576. package/bpk-component-icon/sm/fast-train.js +40 -8
  577. package/bpk-component-icon/sm/filter.js +39 -8
  578. package/bpk-component-icon/sm/fingerprint.js +38 -8
  579. package/bpk-component-icon/sm/flag.js +38 -8
  580. package/bpk-component-icon/sm/flask.js +38 -8
  581. package/bpk-component-icon/sm/flight-flexible.js +38 -8
  582. package/bpk-component-icon/sm/flight-landing.js +42 -8
  583. package/bpk-component-icon/sm/flight-takeoff.js +40 -8
  584. package/bpk-component-icon/sm/flight.js +40 -8
  585. package/bpk-component-icon/sm/food.js +38 -8
  586. package/bpk-component-icon/sm/gears-automatic-circle.js +38 -8
  587. package/bpk-component-icon/sm/gears-automatic.js +38 -8
  588. package/bpk-component-icon/sm/gears-manual-circle.js +38 -8
  589. package/bpk-component-icon/sm/gears-manual.js +38 -8
  590. package/bpk-component-icon/sm/globe.js +38 -8
  591. package/bpk-component-icon/sm/grid-layout.js +38 -8
  592. package/bpk-component-icon/sm/headset.js +38 -8
  593. package/bpk-component-icon/sm/health-fitness.js +38 -8
  594. package/bpk-component-icon/sm/heart--outline.js +38 -8
  595. package/bpk-component-icon/sm/heart.js +38 -8
  596. package/bpk-component-icon/sm/help-circle.js +38 -8
  597. package/bpk-component-icon/sm/help.js +38 -8
  598. package/bpk-component-icon/sm/hide.js +38 -8
  599. package/bpk-component-icon/sm/hotel-flexible.js +38 -8
  600. package/bpk-component-icon/sm/hotels--disabled-facilities.js +38 -8
  601. package/bpk-component-icon/sm/hotels--jacuzzi.js +40 -8
  602. package/bpk-component-icon/sm/hotels--pets-allowed.js +38 -8
  603. package/bpk-component-icon/sm/hotels--smoking.js +38 -8
  604. package/bpk-component-icon/sm/hotels.js +38 -8
  605. package/bpk-component-icon/sm/infant.js +40 -8
  606. package/bpk-component-icon/sm/information--language-alert.js +38 -8
  607. package/bpk-component-icon/sm/information--language-question.js +38 -8
  608. package/bpk-component-icon/sm/information--language.js +38 -8
  609. package/bpk-component-icon/sm/information-circle.js +38 -8
  610. package/bpk-component-icon/sm/information.js +38 -8
  611. package/bpk-component-icon/sm/insurance.js +38 -8
  612. package/bpk-component-icon/sm/key.js +38 -8
  613. package/bpk-component-icon/sm/keypad.js +38 -8
  614. package/bpk-component-icon/sm/landmark.js +38 -8
  615. package/bpk-component-icon/sm/language.js +38 -8
  616. package/bpk-component-icon/sm/legroom--extra.js +40 -8
  617. package/bpk-component-icon/sm/legroom--normal.js +40 -8
  618. package/bpk-component-icon/sm/legroom--reduced.js +40 -8
  619. package/bpk-component-icon/sm/leisure.js +38 -8
  620. package/bpk-component-icon/sm/lightning.js +38 -8
  621. package/bpk-component-icon/sm/list.js +38 -8
  622. package/bpk-component-icon/sm/location.js +38 -8
  623. package/bpk-component-icon/sm/lock.js +38 -8
  624. package/bpk-component-icon/sm/logout.js +40 -8
  625. package/bpk-component-icon/sm/long-arrow-down.js +39 -8
  626. package/bpk-component-icon/sm/long-arrow-left.js +39 -8
  627. package/bpk-component-icon/sm/long-arrow-right.js +39 -8
  628. package/bpk-component-icon/sm/long-arrow-up.js +39 -8
  629. package/bpk-component-icon/sm/lounge.js +38 -8
  630. package/bpk-component-icon/sm/luggageall.js +38 -8
  631. package/bpk-component-icon/sm/mail.js +40 -8
  632. package/bpk-component-icon/sm/map.js +38 -8
  633. package/bpk-component-icon/sm/meal.js +38 -8
  634. package/bpk-component-icon/sm/media.js +38 -8
  635. package/bpk-component-icon/sm/menu--horizontal.js +38 -8
  636. package/bpk-component-icon/sm/menu--vertical.js +38 -8
  637. package/bpk-component-icon/sm/menu.js +38 -8
  638. package/bpk-component-icon/sm/mileage.js +40 -8
  639. package/bpk-component-icon/sm/minus.js +38 -8
  640. package/bpk-component-icon/sm/mobile.js +38 -8
  641. package/bpk-component-icon/sm/money.js +38 -8
  642. package/bpk-component-icon/sm/multiple-bookings.js +38 -8
  643. package/bpk-component-icon/sm/music.js +38 -8
  644. package/bpk-component-icon/sm/mute.js +38 -8
  645. package/bpk-component-icon/sm/native-android--back.js +38 -8
  646. package/bpk-component-icon/sm/native-android--close.js +38 -8
  647. package/bpk-component-icon/sm/native-android--forward.js +38 -8
  648. package/bpk-component-icon/sm/native-ios-close.js +38 -8
  649. package/bpk-component-icon/sm/navigation.js +38 -8
  650. package/bpk-component-icon/sm/new-window.js +44 -8
  651. package/bpk-component-icon/sm/news.js +38 -8
  652. package/bpk-component-icon/sm/night.js +38 -8
  653. package/bpk-component-icon/sm/not-allowed.js +38 -8
  654. package/bpk-component-icon/sm/onsen.js +40 -8
  655. package/bpk-component-icon/sm/paid.js +38 -8
  656. package/bpk-component-icon/sm/paperclip.js +38 -8
  657. package/bpk-component-icon/sm/parking.js +38 -8
  658. package/bpk-component-icon/sm/passport.js +38 -8
  659. package/bpk-component-icon/sm/pause.js +38 -8
  660. package/bpk-component-icon/sm/payment-card.js +38 -8
  661. package/bpk-component-icon/sm/petrol.js +38 -8
  662. package/bpk-component-icon/sm/phone-call.js +38 -8
  663. package/bpk-component-icon/sm/picture.js +38 -8
  664. package/bpk-component-icon/sm/pin.js +38 -8
  665. package/bpk-component-icon/sm/plane-seat.js +40 -8
  666. package/bpk-component-icon/sm/play.js +38 -8
  667. package/bpk-component-icon/sm/plus.js +38 -8
  668. package/bpk-component-icon/sm/policy.js +38 -8
  669. package/bpk-component-icon/sm/powerplug.js +38 -8
  670. package/bpk-component-icon/sm/ppe.js +38 -8
  671. package/bpk-component-icon/sm/price-alerts.js +38 -8
  672. package/bpk-component-icon/sm/price-tag.js +38 -8
  673. package/bpk-component-icon/sm/print.js +38 -8
  674. package/bpk-component-icon/sm/recent-searches.js +38 -8
  675. package/bpk-component-icon/sm/redo.js +38 -8
  676. package/bpk-component-icon/sm/refresh.js +38 -8
  677. package/bpk-component-icon/sm/return.js +42 -8
  678. package/bpk-component-icon/sm/room.js +38 -8
  679. package/bpk-component-icon/sm/scales.js +38 -8
  680. package/bpk-component-icon/sm/search.js +38 -8
  681. package/bpk-component-icon/sm/self-service.js +38 -8
  682. package/bpk-component-icon/sm/send-message.js +38 -8
  683. package/bpk-component-icon/sm/services.js +38 -8
  684. package/bpk-component-icon/sm/settings.js +38 -8
  685. package/bpk-component-icon/sm/share--android.js +38 -8
  686. package/bpk-component-icon/sm/share--ios.js +42 -8
  687. package/bpk-component-icon/sm/share.js +38 -8
  688. package/bpk-component-icon/sm/single-booking.js +38 -8
  689. package/bpk-component-icon/sm/social-like.js +38 -8
  690. package/bpk-component-icon/sm/sort-down.js +38 -8
  691. package/bpk-component-icon/sm/sort-up.js +38 -8
  692. package/bpk-component-icon/sm/sort.js +38 -8
  693. package/bpk-component-icon/sm/speaker.js +38 -8
  694. package/bpk-component-icon/sm/star-half.js +38 -8
  695. package/bpk-component-icon/sm/star-outline.js +38 -8
  696. package/bpk-component-icon/sm/star.js +38 -8
  697. package/bpk-component-icon/sm/stops.js +38 -8
  698. package/bpk-component-icon/sm/swap--horizontal.js +39 -8
  699. package/bpk-component-icon/sm/swap--vertical.js +38 -8
  700. package/bpk-component-icon/sm/swap.js +39 -8
  701. package/bpk-component-icon/sm/taxi.js +40 -8
  702. package/bpk-component-icon/sm/thumbs-down.js +38 -8
  703. package/bpk-component-icon/sm/thumbs-up.js +38 -8
  704. package/bpk-component-icon/sm/tick-circle.js +38 -8
  705. package/bpk-component-icon/sm/tick.js +38 -8
  706. package/bpk-component-icon/sm/ticket-flexible.js +38 -8
  707. package/bpk-component-icon/sm/ticket.js +38 -8
  708. package/bpk-component-icon/sm/time.js +38 -8
  709. package/bpk-component-icon/sm/toilets.js +38 -8
  710. package/bpk-component-icon/sm/train.js +38 -8
  711. package/bpk-component-icon/sm/transmission-automatic.js +38 -8
  712. package/bpk-component-icon/sm/transmission-manual.js +38 -8
  713. package/bpk-component-icon/sm/trash.js +38 -8
  714. package/bpk-component-icon/sm/trend--down.js +38 -8
  715. package/bpk-component-icon/sm/trend--steady.js +39 -8
  716. package/bpk-component-icon/sm/trend--will-rise.js +38 -8
  717. package/bpk-component-icon/sm/trend.js +38 -8
  718. package/bpk-component-icon/sm/trips.js +38 -8
  719. package/bpk-component-icon/sm/undo.js +38 -8
  720. package/bpk-component-icon/sm/unlock.js +38 -8
  721. package/bpk-component-icon/sm/unmute.js +40 -8
  722. package/bpk-component-icon/sm/upgrade.js +38 -8
  723. package/bpk-component-icon/sm/use-location.js +38 -8
  724. package/bpk-component-icon/sm/view.js +38 -8
  725. package/bpk-component-icon/sm/virus.js +38 -8
  726. package/bpk-component-icon/sm/wallet.js +38 -8
  727. package/bpk-component-icon/sm/weather--clear.js +38 -8
  728. package/bpk-component-icon/sm/weather--cloudy.js +40 -8
  729. package/bpk-component-icon/sm/weather--fog.js +38 -8
  730. package/bpk-component-icon/sm/weather--partly-cloudy.js +38 -8
  731. package/bpk-component-icon/sm/weather--rain.js +40 -8
  732. package/bpk-component-icon/sm/weather--snow.js +38 -8
  733. package/bpk-component-icon/sm/weather--thunderstorm.js +42 -8
  734. package/bpk-component-icon/sm/weather--tornado.js +38 -8
  735. package/bpk-component-icon/sm/weather--wind.js +40 -8
  736. package/bpk-component-icon/sm/weather.js +38 -8
  737. package/bpk-component-icon/sm/wifi.js +38 -8
  738. package/bpk-component-icon/sm/window--reduce.js +40 -8
  739. package/bpk-component-icon/sm/window.js +38 -8
  740. package/bpk-component-icon/sm/world--amer.js +38 -8
  741. package/bpk-component-icon/sm/world--apac.js +38 -8
  742. package/bpk-component-icon/sm/world--emea.js +38 -8
  743. package/bpk-component-icon/src/BpkIcon.module.css +1 -1
  744. package/bpk-component-icon/src/classNameModifierHOCFactory.js +42 -52
  745. package/bpk-component-icon/src/withAlignment.js +26 -41
  746. package/bpk-component-icon/src/withDescription.js +24 -41
  747. package/bpk-component-icon/src/withRtlSupport.js +13 -10
  748. package/bpk-component-image/index.js +38 -20
  749. package/bpk-component-image/src/BpkBackgroundImage.js +112 -155
  750. package/bpk-component-image/src/BpkBackgroundImage.module.css +1 -1
  751. package/bpk-component-image/src/BpkImage.js +147 -202
  752. package/bpk-component-image/src/BpkImage.module.css +1 -1
  753. package/bpk-component-image/src/BpkImageBorderRadiusStyles.js +12 -7
  754. package/bpk-component-image/src/withLazyLoading.js +110 -168
  755. package/bpk-component-image/src/withLoadingBehavior.js +28 -58
  756. package/bpk-component-infinite-scroll/index.js +25 -12
  757. package/bpk-component-infinite-scroll/src/DataSource.js +30 -31
  758. package/bpk-component-infinite-scroll/src/intersection-observer.js +3 -1
  759. package/bpk-component-infinite-scroll/src/withInfiniteScroll.js +158 -224
  760. package/bpk-component-input/index.js +49 -24
  761. package/bpk-component-input/src/BpkClearButton.js +50 -62
  762. package/bpk-component-input/src/BpkClearButton.module.css +1 -1
  763. package/bpk-component-input/src/BpkInput.js +91 -126
  764. package/bpk-component-input/src/BpkInput.module.css +1 -1
  765. package/bpk-component-input/src/common-types.js +40 -79
  766. package/bpk-component-input/src/themeAttributes.js +8 -2
  767. package/bpk-component-input/src/withOpenEvents.js +89 -131
  768. package/bpk-component-label/index.js +10 -7
  769. package/bpk-component-label/src/BpkLabel.js +49 -67
  770. package/bpk-component-label/src/BpkLabel.module.css +1 -1
  771. package/bpk-component-link/index.js +32 -11
  772. package/bpk-component-link/src/BpkButtonLink.js +49 -58
  773. package/bpk-component-link/src/BpkLink.js +64 -81
  774. package/bpk-component-link/src/BpkLink.module.css +1 -1
  775. package/bpk-component-link/src/themeAttributes.js +10 -18
  776. package/bpk-component-list/index.js +19 -23
  777. package/bpk-component-list/src/BpkList.js +36 -50
  778. package/bpk-component-list/src/BpkList.module.css +1 -1
  779. package/bpk-component-list/src/BpkListItem.js +26 -33
  780. package/bpk-component-loading-button/index.js +17 -7
  781. package/bpk-component-loading-button/src/BpkLoadingButton.js +95 -150
  782. package/bpk-component-loading-button/src/BpkLoadingButton.module.css +18 -0
  783. package/bpk-component-map/index.js +59 -28
  784. package/bpk-component-map/src/BpkBasicMapMarker.js +37 -48
  785. package/bpk-component-map/src/BpkIconMarker.js +64 -93
  786. package/bpk-component-map/src/BpkIconMarker.module.css +1 -1
  787. package/bpk-component-map/src/BpkIconMarkerBackground.js +53 -65
  788. package/bpk-component-map/src/BpkIconMarkerBackground.module.css +1 -1
  789. package/bpk-component-map/src/BpkMap.js +89 -146
  790. package/bpk-component-map/src/{BpkMap.module.scss → BpkMap.module.css} +6 -9
  791. package/bpk-component-map/src/BpkOverlayView.js +38 -43
  792. package/bpk-component-map/src/BpkPriceMarker.js +70 -106
  793. package/bpk-component-map/src/BpkPriceMarker.module.css +1 -1
  794. package/bpk-component-map/src/DefaultLoadingElement.js +20 -17
  795. package/bpk-component-map/src/DefaultLoadingElement.module.css +1 -1
  796. package/bpk-component-map/src/common-types.js +12 -14
  797. package/bpk-component-map/src/themeAttributes.js +13 -18
  798. package/bpk-component-map/src/withGoogleMapsScript.js +43 -61
  799. package/bpk-component-mobile-scroll-container/index.js +10 -6
  800. package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.js +121 -188
  801. package/bpk-component-modal/index.js +31 -10
  802. package/bpk-component-modal/src/BpkModal.js +73 -110
  803. package/bpk-component-modal/src/BpkModal.module.css +1 -1
  804. package/bpk-component-modal/src/BpkModalInner.js +89 -143
  805. package/bpk-component-modal/src/BpkModalInner.module.css +1 -1
  806. package/bpk-component-modal/src/customPropTypes.js +13 -29
  807. package/bpk-component-modal/src/themeAttributes.js +9 -6
  808. package/bpk-component-navigation-bar/index.js +31 -25
  809. package/bpk-component-navigation-bar/src/BpkNavigationBar.js +57 -89
  810. package/bpk-component-navigation-bar/src/BpkNavigationBar.module.css +1 -1
  811. package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.js +42 -57
  812. package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.js +42 -54
  813. package/bpk-component-navigation-bar/src/themeAttributes.js +8 -16
  814. package/bpk-component-nudger/index.js +24 -9
  815. package/bpk-component-nudger/src/BpkConfigurableNudger.js +95 -141
  816. package/bpk-component-nudger/src/BpkNudger.js +42 -64
  817. package/bpk-component-nudger/src/BpkNudger.module.css +1 -1
  818. package/bpk-component-nudger/src/common-types.js +19 -26
  819. package/bpk-component-nudger/src/themeAttributes.js +9 -6
  820. package/bpk-component-overlay/index.js +23 -11
  821. package/bpk-component-overlay/src/BpkOverlay.js +51 -72
  822. package/bpk-component-overlay/src/BpkOverlay.module.css +1 -1
  823. package/bpk-component-page-indicator/index.js +24 -11
  824. package/bpk-component-page-indicator/src/BpkPageIndicator.js +71 -110
  825. package/bpk-component-page-indicator/src/BpkPageIndicator.module.css +1 -1
  826. package/bpk-component-page-indicator/src/NavButton.js +48 -59
  827. package/bpk-component-pagination/index.js +17 -6
  828. package/bpk-component-pagination/src/BpkPagination.js +67 -81
  829. package/bpk-component-pagination/src/BpkPaginationBreak.js +20 -11
  830. package/bpk-component-pagination/src/BpkPaginationList.js +54 -70
  831. package/bpk-component-pagination/src/BpkPaginationList.module.css +1 -1
  832. package/bpk-component-pagination/src/BpkPaginationNudger.js +47 -50
  833. package/bpk-component-pagination/src/BpkPaginationNudger.module.css +1 -1
  834. package/bpk-component-pagination/src/BpkPaginationPage.js +37 -33
  835. package/bpk-component-pagination/src/BpkPaginationPage.module.css +1 -1
  836. package/bpk-component-pagination/src/themeAttributes.js +9 -9
  837. package/bpk-component-panel/index.js +10 -4
  838. package/bpk-component-panel/src/BpkPanel.js +40 -44
  839. package/bpk-component-panel/src/BpkPanel.module.css +1 -1
  840. package/bpk-component-phone-input/index.js +10 -9
  841. package/bpk-component-phone-input/src/BpkPhoneInput.js +127 -183
  842. package/bpk-component-phone-input/src/BpkPhoneInput.module.css +1 -1
  843. package/bpk-component-popover/index.js +31 -17
  844. package/bpk-component-popover/src/BpkPopover.js +112 -159
  845. package/bpk-component-popover/src/BpkPopover.module.css +1 -1
  846. package/bpk-component-popover/src/BpkPopoverPortal.js +127 -186
  847. package/bpk-component-popover/src/constants.js +12 -7
  848. package/bpk-component-popover/src/keyboardFocusScope.js +19 -21
  849. package/bpk-component-popover/src/themeAttributes.js +9 -6
  850. package/bpk-component-price/index.js +23 -7
  851. package/bpk-component-price/src/BpkPrice.js +83 -135
  852. package/bpk-component-price/src/BpkPrice.module.css +18 -0
  853. package/bpk-component-price/src/common-types.js +12 -9
  854. package/bpk-component-progress/index.js +17 -8
  855. package/bpk-component-progress/src/BpkProgress.js +103 -136
  856. package/bpk-component-progress/src/BpkProgress.module.css +1 -1
  857. package/bpk-component-progress/src/themeAttributes.js +8 -4
  858. package/bpk-component-radio/index.js +17 -8
  859. package/bpk-component-radio/src/BpkRadio.js +57 -83
  860. package/bpk-component-radio/src/BpkRadio.module.css +1 -1
  861. package/bpk-component-radio/src/themeAttributes.js +8 -4
  862. package/bpk-component-rating/index.js +23 -7
  863. package/bpk-component-rating/src/BpkRating.js +104 -151
  864. package/bpk-component-rating/src/BpkRating.module.css +1 -1
  865. package/bpk-component-rating/src/common-types.js +14 -8
  866. package/bpk-component-rtl-toggle/index.js +17 -6
  867. package/bpk-component-rtl-toggle/src/BpkRtlToggle.js +48 -73
  868. package/bpk-component-rtl-toggle/src/updateOnDirectionChange.js +29 -51
  869. package/bpk-component-rtl-toggle/src/utils.js +11 -7
  870. package/bpk-component-scrollable-calendar/index.js +38 -17
  871. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendar.js +12 -19
  872. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarDate.js +31 -37
  873. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.js +44 -51
  874. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.js +125 -164
  875. package/bpk-component-scrollable-calendar/src/utils.js +13 -19
  876. package/bpk-component-scrollable-calendar/test-utils.js +200 -246
  877. package/bpk-component-section-list/index.js +24 -9
  878. package/bpk-component-section-list/src/BpkSectionList.js +27 -34
  879. package/bpk-component-section-list/src/BpkSectionListItem.js +66 -89
  880. package/bpk-component-section-list/src/BpkSectionListItem.module.css +1 -1
  881. package/bpk-component-section-list/src/BpkSectionListSection.js +49 -60
  882. package/bpk-component-section-list/src/BpkSectionListSection.module.css +1 -1
  883. package/bpk-component-select/index.js +17 -9
  884. package/bpk-component-select/src/BpkSelect.js +64 -111
  885. package/bpk-component-select/src/BpkSelect.module.css +1 -1
  886. package/bpk-component-select/src/themeAttributes.js +8 -2
  887. package/bpk-component-skip-link/index.js +17 -8
  888. package/bpk-component-skip-link/src/BpkSkipLink.js +40 -51
  889. package/bpk-component-skip-link/src/BpkSkipLink.module.css +1 -1
  890. package/bpk-component-skip-link/src/themeAttributes.js +8 -2
  891. package/bpk-component-slider/index.js +17 -6
  892. package/bpk-component-slider/src/BpkSlider.js +39 -56
  893. package/bpk-component-slider/src/BpkSlider.module.css +1 -1
  894. package/bpk-component-slider/src/themeAttributes.js +8 -2
  895. package/bpk-component-spinner/index.js +40 -32
  896. package/bpk-component-spinner/src/BpkExtraLargeSpinner.js +94 -50
  897. package/bpk-component-spinner/src/BpkLargeSpinner.js +96 -54
  898. package/bpk-component-spinner/src/BpkSpinner.js +140 -53
  899. package/bpk-component-spinner/src/BpkSpinner.module.css +1 -1
  900. package/bpk-component-spinner/src/spinnerTypes.js +9 -5
  901. package/bpk-component-spinner/src/themeAttributes.js +8 -4
  902. package/bpk-component-split-input/index.js +17 -10
  903. package/bpk-component-split-input/src/BpkInputField.js +55 -57
  904. package/{bpk-component-barchart/src/BpkBarchart.module.scss → bpk-component-split-input/src/BpkInputField.module.css} +6 -9
  905. package/bpk-component-split-input/src/BpkSplitInput.js +207 -222
  906. package/bpk-component-split-input/src/BpkSplitInput.module.css +1 -1
  907. package/bpk-component-star-rating/index.js +65 -21
  908. package/bpk-component-star-rating/src/BpkInteractiveStar.js +55 -76
  909. package/bpk-component-star-rating/src/BpkInteractiveStar.module.css +1 -1
  910. package/bpk-component-star-rating/src/BpkInteractiveStarRating.js +67 -100
  911. package/bpk-component-star-rating/src/BpkStar.js +73 -95
  912. package/bpk-component-star-rating/src/BpkStar.module.css +1 -1
  913. package/bpk-component-star-rating/src/BpkStarRating.js +62 -102
  914. package/bpk-component-star-rating/src/themeAttributes.js +8 -4
  915. package/bpk-component-star-rating/src/withInteractiveStarRatingState.js +58 -90
  916. package/bpk-component-switch/index.js +17 -8
  917. package/bpk-component-switch/src/BpkSwitch.js +49 -64
  918. package/bpk-component-switch/src/BpkSwitch.module.css +1 -1
  919. package/bpk-component-switch/src/themeAttributes.js +8 -2
  920. package/bpk-component-table/index.js +47 -34
  921. package/bpk-component-table/src/BpkTable.js +37 -48
  922. package/bpk-component-table/src/BpkTable.module.css +1 -1
  923. package/bpk-component-table/src/BpkTableBody.js +17 -29
  924. package/bpk-component-table/src/BpkTableCell.js +36 -48
  925. package/bpk-component-table/src/BpkTableHead.js +17 -29
  926. package/bpk-component-table/src/BpkTableHeadCell.js +34 -48
  927. package/bpk-component-table/src/BpkTableRow.js +17 -29
  928. package/bpk-component-text/index.js +23 -7
  929. package/bpk-component-text/src/BpkText.js +51 -97
  930. package/bpk-component-text/src/BpkText.module.css +1 -1
  931. package/bpk-component-textarea/index.js +17 -8
  932. package/bpk-component-textarea/src/BpkTextarea.js +41 -61
  933. package/bpk-component-textarea/src/BpkTextarea.module.css +1 -1
  934. package/bpk-component-textarea/src/themeAttributes.js +8 -4
  935. package/bpk-component-theme-toggle/index.js +17 -6
  936. package/bpk-component-theme-toggle/src/BpkThemeToggle.js +85 -96
  937. package/bpk-component-theme-toggle/src/theming.js +52 -92
  938. package/bpk-component-theme-toggle/src/updateOnThemeChange.js +38 -58
  939. package/bpk-component-theme-toggle/src/utils.js +9 -5
  940. package/bpk-component-ticket/index.js +10 -6
  941. package/bpk-component-ticket/src/BpkTicket.js +80 -128
  942. package/bpk-component-ticket/src/BpkTicket.module.css +1 -1
  943. package/bpk-component-tooltip/index.js +17 -10
  944. package/bpk-component-tooltip/src/BpkTooltip.js +67 -98
  945. package/bpk-component-tooltip/src/BpkTooltip.module.css +1 -1
  946. package/bpk-component-tooltip/src/BpkTooltipPortal.js +125 -191
  947. package/bpk-component-tooltip/src/constants.js +16 -9
  948. package/bpk-react-utils/index.js +87 -39
  949. package/bpk-react-utils/src/Portal.js +64 -115
  950. package/bpk-react-utils/src/TransitionInitialMount.js +34 -40
  951. package/bpk-react-utils/src/cssModules.js +14 -12
  952. package/bpk-react-utils/src/deprecated.js +19 -22
  953. package/bpk-react-utils/src/deviceDetection.js +11 -14
  954. package/bpk-react-utils/src/isRTL.js +11 -17
  955. package/bpk-react-utils/src/withDefaultProps.js +42 -60
  956. package/bpk-react-utils/src/wrapDisplayName.js +8 -4
  957. package/bpk-scrim-utils/index.js +17 -6
  958. package/bpk-scrim-utils/src/BpkScrim.js +27 -28
  959. package/bpk-scrim-utils/src/bpk-scrim.module.css +1 -1
  960. package/bpk-scrim-utils/src/customPropTypes.js +11 -19
  961. package/bpk-scrim-utils/src/scroll-utils.js +20 -38
  962. package/bpk-scrim-utils/src/withScrim.js +95 -115
  963. package/bpk-storybook-utils/index.js +43 -0
  964. package/bpk-storybook-utils/src/BpkDarkExampleWrapper.js +37 -0
  965. package/{bpk-component-aria-live/src/BpkAriaLive.module.scss → bpk-storybook-utils/src/BpkDarkExampleWrapper.module.css} +6 -13
  966. package/{bpk-component-barchart/src/BpkChartDataTable.module.scss → bpk-storybook-utils/src/BpkStorybookUtils.js} +19 -9
  967. package/bpk-theming/index.js +10 -4
  968. package/bpk-theming/src/BpkThemeProvider.js +59 -73
  969. package/index.css +0 -0
  970. package/package.json +4 -4
  971. package/bpk-animate-height/README.md +0 -53
  972. package/bpk-component-accordion/README.md +0 -119
  973. package/bpk-component-accordion/src/BpkAccordionItem.module.scss +0 -76
  974. package/bpk-component-aria-live/README.md +0 -39
  975. package/bpk-component-autosuggest/README.md +0 -124
  976. package/bpk-component-autosuggest/src/BpkAutosuggest.module.scss +0 -156
  977. package/bpk-component-badge/README.md +0 -36
  978. package/bpk-component-badge/src/BpkBadge.module.scss +0 -67
  979. package/bpk-component-banner-alert/README.md +0 -151
  980. package/bpk-component-banner-alert/src/BpkAnimateAndFade.module.scss +0 -53
  981. package/bpk-component-banner-alert/src/BpkBannerAlert.module.scss +0 -151
  982. package/bpk-component-barchart/README.md +0 -186
  983. package/bpk-component-barchart/data.json +0 -20
  984. package/bpk-component-barchart/src/BpkBarchartBar.module.scss +0 -70
  985. package/bpk-component-barchart/src/BpkChartAxis.module.scss +0 -37
  986. package/bpk-component-barchart/src/BpkChartGridLines.module.scss +0 -26
  987. package/bpk-component-blockquote/README.md +0 -32
  988. package/bpk-component-blockquote/src/BpkBlockquote.module.scss +0 -29
  989. package/bpk-component-breadcrumb/README.md +0 -56
  990. package/bpk-component-breadcrumb/src/BpkBreadcrumb.module.scss +0 -27
  991. package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.module.scss +0 -40
  992. package/bpk-component-breakpoint/README.md +0 -31
  993. package/bpk-component-button/README.md +0 -135
  994. package/bpk-component-button/src/BpkButtonBase.module.scss +0 -50
  995. package/bpk-component-button/src/BpkButtonDestructive.module.scss +0 -24
  996. package/bpk-component-button/src/BpkButtonFeatured.module.scss +0 -23
  997. package/bpk-component-button/src/BpkButtonLink.module.scss +0 -25
  998. package/bpk-component-button/src/BpkButtonLinkOnDark.module.scss +0 -23
  999. package/bpk-component-button/src/BpkButtonPrimaryOnDark.module.scss +0 -23
  1000. package/bpk-component-button/src/BpkButtonPrimaryOnLight.module.scss +0 -23
  1001. package/bpk-component-button/src/BpkButtonSecondary.module.scss +0 -23
  1002. package/bpk-component-button/src/BpkButtonSecondaryOnDark.module.scss +0 -23
  1003. package/bpk-component-calendar/DOCS.md +0 -23
  1004. package/bpk-component-calendar/README.md +0 -382
  1005. package/bpk-component-calendar/src/BpkCalendar.module.scss +0 -42
  1006. package/bpk-component-calendar/src/BpkCalendarDate.module.scss +0 -122
  1007. package/bpk-component-calendar/src/BpkCalendarGrid.module.scss +0 -65
  1008. package/bpk-component-calendar/src/BpkCalendarGridHeader.module.scss +0 -50
  1009. package/bpk-component-calendar/src/BpkCalendarGridTransition.module.scss +0 -47
  1010. package/bpk-component-calendar/src/BpkCalendarNav.module.scss +0 -89
  1011. package/bpk-component-calendar/src/_variables.scss +0 -22
  1012. package/bpk-component-card/README.md +0 -103
  1013. package/bpk-component-card/src/BpkCard.module.scss +0 -38
  1014. package/bpk-component-card/src/BpkCardWrapper.module.scss +0 -61
  1015. package/bpk-component-card/src/BpkDividedCard.module.scss +0 -71
  1016. package/bpk-component-checkbox/README.md +0 -44
  1017. package/bpk-component-checkbox/src/BpkCheckbox.module.scss +0 -78
  1018. package/bpk-component-chip/README.md +0 -135
  1019. package/bpk-component-close-button/README.md +0 -24
  1020. package/bpk-component-close-button/src/BpkCloseButton.module.scss +0 -52
  1021. package/bpk-component-code/README.md +0 -40
  1022. package/bpk-component-code/src/BpkCode.module.scss +0 -27
  1023. package/bpk-component-code/src/BpkCodeBlock.module.scss +0 -33
  1024. package/bpk-component-content-cards/README.md +0 -37
  1025. package/bpk-component-content-cards/src/BpkContentCard.module.scss +0 -87
  1026. package/bpk-component-content-cards/src/BpkContentCards.module.scss +0 -51
  1027. package/bpk-component-datatable/README.md +0 -196
  1028. package/bpk-component-datatable/src/BpkDataTable.module.scss +0 -90
  1029. package/bpk-component-datatable/src/BpkDataTableHeader.module.scss +0 -65
  1030. package/bpk-component-datepicker/README.md +0 -179
  1031. package/bpk-component-datepicker/src/BpkDatepicker.module.scss +0 -30
  1032. package/bpk-component-description-list/README.md +0 -43
  1033. package/bpk-component-description-list/src/BpkDescriptionList.module.scss +0 -37
  1034. package/bpk-component-dialog/README.md +0 -103
  1035. package/bpk-component-dialog/src/BpkDialog.module.scss +0 -80
  1036. package/bpk-component-dialog/src/BpkDialogInner.module.scss +0 -64
  1037. package/bpk-component-drawer/README.md +0 -88
  1038. package/bpk-component-drawer/src/BpkDrawer.module.scss +0 -23
  1039. package/bpk-component-drawer/src/BpkDrawerContent.module.scss +0 -107
  1040. package/bpk-component-fieldset/README.md +0 -71
  1041. package/bpk-component-fieldset/src/BpkFieldset.module.scss +0 -39
  1042. package/bpk-component-flare/README.md +0 -49
  1043. package/bpk-component-flare/src/bpk-content-bubble.module.scss +0 -61
  1044. package/bpk-component-flare/src/bpk-flare-bar.module.scss +0 -75
  1045. package/bpk-component-flare/src/svgs/corner-radius.svg +0 -1
  1046. package/bpk-component-flare/src/svgs/pointer.svg +0 -1
  1047. package/bpk-component-floating-notification/README.md +0 -47
  1048. package/bpk-component-floating-notification/src/BpkFloatingNotification.module.scss +0 -83
  1049. package/bpk-component-form-validation/README.md +0 -30
  1050. package/bpk-component-form-validation/src/BpkFormValidation.module.scss +0 -44
  1051. package/bpk-component-graphic-promotion/README.md +0 -67
  1052. package/bpk-component-graphic-promotion/src/BpkGraphicPromo.module.scss +0 -270
  1053. package/bpk-component-grid-toggle/README.md +0 -24
  1054. package/bpk-component-grid-toggle/src/BpkGridToggle.module.scss +0 -52
  1055. package/bpk-component-horizontal-nav/README.md +0 -101
  1056. package/bpk-component-horizontal-nav/src/BpkHorizontalNav.module.scss +0 -37
  1057. package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.module.scss +0 -152
  1058. package/bpk-component-icon/README.md +0 -74
  1059. package/bpk-component-icon/lg/origin.js +0 -8
  1060. package/bpk-component-icon/lg/social-distancing.js +0 -8
  1061. package/bpk-component-icon/sm/origin.js +0 -8
  1062. package/bpk-component-icon/sm/social-distancing.js +0 -8
  1063. package/bpk-component-icon/src/BpkIcon.module.scss +0 -33
  1064. package/bpk-component-icon/src/withDescription.module.scss +0 -22
  1065. package/bpk-component-image/README.md +0 -139
  1066. package/bpk-component-image/src/BpkBackgroundImage.module.scss +0 -46
  1067. package/bpk-component-image/src/BpkImage.module.scss +0 -89
  1068. package/bpk-component-infinite-scroll/README.md +0 -183
  1069. package/bpk-component-infinite-scroll/src/withInfiniteScroll-test.flow.js +0 -102
  1070. package/bpk-component-infinite-scroll/src/withInfiniteScroll.module.scss +0 -25
  1071. package/bpk-component-input/README.md +0 -117
  1072. package/bpk-component-input/src/BpkClearButton.module.scss +0 -40
  1073. package/bpk-component-input/src/BpkInput.module.scss +0 -86
  1074. package/bpk-component-label/README.md +0 -27
  1075. package/bpk-component-label/src/BpkLabel.module.scss +0 -47
  1076. package/bpk-component-link/README.md +0 -65
  1077. package/bpk-component-link/src/BpkLink.module.scss +0 -31
  1078. package/bpk-component-list/README.md +0 -48
  1079. package/bpk-component-list/src/BpkList.module.scss +0 -37
  1080. package/bpk-component-loading-button/README.md +0 -45
  1081. package/bpk-component-loading-button/src/BpkLoadingButton.module.scss +0 -67
  1082. package/bpk-component-map/README.md +0 -208
  1083. package/bpk-component-map/src/BpkIconMarker.module.scss +0 -79
  1084. package/bpk-component-map/src/BpkIconMarkerBackground.module.scss +0 -53
  1085. package/bpk-component-map/src/BpkPriceMarker.module.scss +0 -148
  1086. package/bpk-component-map/src/DefaultLoadingElement.module.scss +0 -28
  1087. package/bpk-component-mobile-scroll-container/README.md +0 -71
  1088. package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.module.scss +0 -52
  1089. package/bpk-component-modal/README.md +0 -112
  1090. package/bpk-component-modal/src/BpkModal.module.scss +0 -46
  1091. package/bpk-component-modal/src/BpkModalInner.module.scss +0 -125
  1092. package/bpk-component-navigation-bar/README.md +0 -109
  1093. package/bpk-component-navigation-bar/src/BpkNavigationBar.module.scss +0 -77
  1094. package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.module.scss +0 -51
  1095. package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.module.scss +0 -43
  1096. package/bpk-component-nudger/README.md +0 -168
  1097. package/bpk-component-nudger/src/BpkNudger.module.scss +0 -50
  1098. package/bpk-component-overlay/README.md +0 -49
  1099. package/bpk-component-overlay/src/BpkOverlay.module.scss +0 -163
  1100. package/bpk-component-page-indicator/README.md +0 -41
  1101. package/bpk-component-page-indicator/src/BpkPageIndicator.module.scss +0 -91
  1102. package/bpk-component-pagination/README.md +0 -56
  1103. package/bpk-component-pagination/src/BpkPagination.module.scss +0 -22
  1104. package/bpk-component-pagination/src/BpkPaginationList.module.scss +0 -46
  1105. package/bpk-component-pagination/src/BpkPaginationNudger.module.scss +0 -34
  1106. package/bpk-component-pagination/src/BpkPaginationPage.module.scss +0 -59
  1107. package/bpk-component-panel/README.md +0 -30
  1108. package/bpk-component-panel/src/BpkPanel.module.scss +0 -31
  1109. package/bpk-component-phone-input/README.md +0 -98
  1110. package/bpk-component-phone-input/src/BpkPhoneInput.module.scss +0 -42
  1111. package/bpk-component-popover/README.md +0 -138
  1112. package/bpk-component-popover/src/BpkPopover.module.scss +0 -127
  1113. package/bpk-component-price/README.md +0 -35
  1114. package/bpk-component-price/src/BpkPrice.module.scss +0 -74
  1115. package/bpk-component-progress/README.md +0 -53
  1116. package/bpk-component-progress/src/BpkProgress.module.scss +0 -64
  1117. package/bpk-component-radio/README.md +0 -40
  1118. package/bpk-component-radio/src/BpkRadio.module.scss +0 -85
  1119. package/bpk-component-rating/README.md +0 -77
  1120. package/bpk-component-rating/src/BpkRating.module.scss +0 -86
  1121. package/bpk-component-rtl-toggle/README.md +0 -23
  1122. package/bpk-component-scrollable-calendar/README.md +0 -100
  1123. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.module.scss +0 -31
  1124. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.module.scss +0 -36
  1125. package/bpk-component-section-list/README.md +0 -49
  1126. package/bpk-component-section-list/src/BpkSectionListItem.module.scss +0 -54
  1127. package/bpk-component-section-list/src/BpkSectionListSection.module.scss +0 -35
  1128. package/bpk-component-select/README.md +0 -62
  1129. package/bpk-component-select/src/BpkSelect.module.scss +0 -131
  1130. package/bpk-component-skip-link/README.md +0 -27
  1131. package/bpk-component-skip-link/src/BpkSkipLink.module.scss +0 -50
  1132. package/bpk-component-slider/README.md +0 -41
  1133. package/bpk-component-slider/src/BpkSlider.module.scss +0 -102
  1134. package/bpk-component-spinner/README.md +0 -37
  1135. package/bpk-component-spinner/changelog.yml +0 -55
  1136. package/bpk-component-spinner/src/BpkSpinner.module.scss +0 -58
  1137. package/bpk-component-split-input/README.md +0 -39
  1138. package/bpk-component-split-input/src/BpkInputField.module.scss +0 -34
  1139. package/bpk-component-split-input/src/BpkSplitInput.module.scss +0 -36
  1140. package/bpk-component-star-rating/README.md +0 -96
  1141. package/bpk-component-star-rating/src/BpkInteractiveStar.module.scss +0 -66
  1142. package/bpk-component-star-rating/src/BpkStar.module.scss +0 -63
  1143. package/bpk-component-star-rating/src/BpkStarRating.module.scss +0 -21
  1144. package/bpk-component-switch/README.md +0 -34
  1145. package/bpk-component-switch/src/BpkSwitch.module.scss +0 -92
  1146. package/bpk-component-table/README.md +0 -62
  1147. package/bpk-component-table/src/BpkTable.module.scss +0 -31
  1148. package/bpk-component-text/README.md +0 -71
  1149. package/bpk-component-text/src/BpkText.module.scss +0 -139
  1150. package/bpk-component-textarea/README.md +0 -31
  1151. package/bpk-component-textarea/src/BpkTextarea.module.scss +0 -33
  1152. package/bpk-component-theme-toggle/README.md +0 -26
  1153. package/bpk-component-theme-toggle/src/BpkThemeToggle.module.scss +0 -25
  1154. package/bpk-component-ticket/README.md +0 -34
  1155. package/bpk-component-ticket/src/BpkTicket.module.scss +0 -144
  1156. package/bpk-component-tooltip/README.md +0 -65
  1157. package/bpk-component-tooltip/src/BpkTooltip.module.scss +0 -149
  1158. package/bpk-react-utils/README.md +0 -243
  1159. package/bpk-scrim-utils/README.md +0 -47
  1160. package/bpk-scrim-utils/src/bpk-scrim-content.module.scss +0 -32
  1161. package/bpk-scrim-utils/src/bpk-scrim.module.scss +0 -45
  1162. package/bpk-theming/README.md +0 -41
@@ -1,67 +1,49 @@
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
- */
18
-
19
- import type { ReactElement } from 'react';
20
-
21
- // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
22
- import { cssModules } from '../../bpk-react-utils';
23
-
24
- import STYLES from './BpkAriaLive.module.scss';
25
-
26
- const getClassName = cssModules(STYLES);
27
-
28
- export const POLITENESS_SETTINGS = {
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.POLITENESS_SETTINGS = void 0;
7
+ var _bpkReactUtils = require("../../bpk-react-utils");
8
+ var _BpkAriaLiveModule = _interopRequireDefault(require("./BpkAriaLive.module.css"));
9
+ var _jsxRuntime = require("react/jsx-runtime");
10
+ const _excluded = ["className", "politenessSetting", "visible"];
11
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
+ 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; }
13
+ 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; }
14
+ 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; }
15
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
16
+ 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); }
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
+ const getClassName = (0, _bpkReactUtils.cssModules)(_BpkAriaLiveModule.default);
20
+ const POLITENESS_SETTINGS = {
29
21
  off: 'off',
30
22
  polite: 'polite',
31
- assertive: 'assertive',
23
+ assertive: 'assertive'
32
24
  }; // as const; // Temp disabling TS types due to non TS projects compatibility.
33
25
 
34
26
  // Temp disabling TS types due to non TS projects compatibility.
35
27
  // export type PolitenessSetting =
36
28
  // typeof POLITENESS_SETTINGS[keyof typeof POLITENESS_SETTINGS];
37
-
38
- export type Props = {
39
- children: ReactElement | string,
40
- politenessSetting?: $Keys<typeof POLITENESS_SETTINGS>, // PolitenessSetting,
41
- visible?: boolean,
42
- className?: string | null,
43
- [rest: string]: any, // Inexact rest. See decisions/inexact-rest.md
29
+ exports.POLITENESS_SETTINGS = POLITENESS_SETTINGS;
30
+ const BpkAriaLive = _ref => {
31
+ let {
32
+ className = null,
33
+ politenessSetting = POLITENESS_SETTINGS.polite,
34
+ visible = false
35
+ } = _ref,
36
+ rest = _objectWithoutProperties(_ref, _excluded);
37
+ const classNames = getClassName('bpk-aria-live', !visible && 'bpk-aria-live--invisible', className);
38
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", _objectSpread({
39
+ "aria-live": politenessSetting,
40
+ className: classNames
41
+ }, rest));
44
42
  };
45
-
46
- const BpkAriaLive = ({
47
- className = null,
48
- politenessSetting = POLITENESS_SETTINGS.polite,
49
- visible = false,
50
- ...rest
51
- }: Props) => {
52
- const classNames = getClassName(
53
- 'bpk-aria-live',
54
- !visible && 'bpk-aria-live--invisible',
55
- className,
56
- );
57
-
58
- return <div aria-live={politenessSetting} className={classNames} {...rest} />;
59
- };
60
-
61
43
  BpkAriaLive.defaultProps = {
62
44
  className: null,
63
45
  politenessSetting: POLITENESS_SETTINGS.polite,
64
- visible: false,
46
+ visible: false
65
47
  };
66
-
67
- export default BpkAriaLive;
48
+ var _default = BpkAriaLive;
49
+ exports.default = _default;
@@ -1,3 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "BpkAutosuggestSuggestion", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _BpkAutosuggestSuggestion.default;
10
+ }
11
+ });
12
+ exports.default = void 0;
13
+ var _BpkAutosuggest = _interopRequireDefault(require("./src/BpkAutosuggest"));
14
+ var _BpkAutosuggestSuggestion = _interopRequireDefault(require("./src/BpkAutosuggestSuggestion"));
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
1
16
  /*
2
17
  * Backpack - Skyscanner's Design System
3
18
  *
@@ -15,11 +30,5 @@
15
30
  * See the License for the specific language governing permissions and
16
31
  * limitations under the License.
17
32
  */
18
-
19
- /* @flow strict */
20
-
21
- import BpkAutosuggest from './src/BpkAutosuggest';
22
- import BpkAutosuggestSuggestion from './src/BpkAutosuggestSuggestion';
23
-
24
- export default BpkAutosuggest;
25
- export { BpkAutosuggestSuggestion };
33
+ var _default = _BpkAutosuggest.default;
34
+ exports.default = _default;
@@ -1,31 +1,24 @@
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
- */
18
-
19
- /* @flow strict */
20
-
21
- import Autosuggest from 'react-autosuggest';
22
-
23
- import BpkInput from '../../bpk-component-input';
24
- import { cssModules } from '../../bpk-react-utils';
25
-
26
- import STYLES from './BpkAutosuggest.module.scss';
1
+ "use strict";
27
2
 
28
- const getClassName = cssModules(STYLES);
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _reactAutosuggest = _interopRequireDefault(require("react-autosuggest"));
8
+ var _bpkComponentInput = _interopRequireDefault(require("../../bpk-component-input"));
9
+ var _bpkReactUtils = require("../../bpk-react-utils");
10
+ var _BpkAutosuggestModule = _interopRequireDefault(require("./BpkAutosuggest.module.css"));
11
+ var _jsxRuntime = require("react/jsx-runtime");
12
+ const _excluded = ["autoComplete", "inputRef", "ref"];
13
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
+ 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; }
15
+ 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; }
16
+ 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; }
17
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
18
+ 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); }
19
+ 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; }
20
+ 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; }
21
+ const getClassName = (0, _bpkReactUtils.cssModules)(_BpkAutosuggestModule.default);
29
22
 
30
23
  /*
31
24
  `react-autosuggest` is not wrapped in a functional component because the `ref` attribute won't work on it.
@@ -35,44 +28,37 @@ const getClassName = cssModules(STYLES);
35
28
  Further reading about Refs: https://facebook.github.io/react/docs/refs-and-the-dom.html
36
29
  */
37
30
 
38
- Autosuggest.defaultProps.theme = {
31
+ _reactAutosuggest.default.defaultProps.theme = {
39
32
  container: getClassName('bpk-autosuggest__container'),
40
33
  containerOpen: getClassName('bpk-autosuggest__container--open'),
41
34
  suggestionsContainer: getClassName('bpk-autosuggest__suggestions-container'),
42
- suggestionsContainerOpen: getClassName(
43
- 'bpk-autosuggest__suggestions-container--open',
44
- ),
35
+ suggestionsContainerOpen: getClassName('bpk-autosuggest__suggestions-container--open'),
45
36
  suggestionsList: getClassName('bpk-autosuggest__suggestions-list'),
46
37
  suggestion: getClassName('bpk-autosuggest__suggestion-item'),
47
- suggestionHighlighted: getClassName(
48
- 'bpk-autosuggest__suggestion-item--highlighted',
49
- ),
38
+ suggestionHighlighted: getClassName('bpk-autosuggest__suggestion-item--highlighted'),
50
39
  sectionContainer: getClassName('bpk-autosuggest__section-container'),
51
- sectionTitle: getClassName('bpk-autosuggest__section-title'),
40
+ sectionTitle: getClassName('bpk-autosuggest__section-title')
52
41
  };
53
-
54
- type Props = {
55
- ref: (?HTMLInputElement) => mixed,
56
- inputRef: (?HTMLInputElement) => mixed,
57
- autoComplete: string,
58
- };
59
- Autosuggest.defaultProps.renderInputComponent = (inputProps: Props) => {
60
- const { autoComplete = 'off', inputRef, ref, ...rest } = inputProps;
61
-
42
+ _reactAutosuggest.default.defaultProps.renderInputComponent = inputProps => {
43
+ const {
44
+ autoComplete = 'off',
45
+ inputRef,
46
+ ref
47
+ } = inputProps,
48
+ rest = _objectWithoutProperties(inputProps, _excluded);
62
49
  return (
50
+ /*#__PURE__*/
63
51
  // $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
64
- <BpkInput
65
- inputRef={(element) => {
52
+ (0, _jsxRuntime.jsx)(_bpkComponentInput.default, _objectSpread({
53
+ inputRef: element => {
66
54
  ref(element);
67
-
68
55
  if (typeof inputRef === 'function') {
69
56
  inputRef(element);
70
57
  }
71
- }}
72
- autoComplete={autoComplete}
73
- {...rest}
74
- />
58
+ },
59
+ autoComplete: autoComplete
60
+ }, rest))
75
61
  );
76
62
  };
77
-
78
- export default Autosuggest;
63
+ var _default = _reactAutosuggest.default;
64
+ exports.default = _default;
@@ -15,4 +15,4 @@
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
17
  */
18
- @keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-autosuggest__container--open{position:relative}.bpk-autosuggest__suggestions-container{display:none}.bpk-autosuggest__suggestions-container--open{position:absolute;top:100%;display:block;z-index:900;width:100%;margin-top:0.75rem}.bpk-autosuggest__suggestions-container--open::before{position:absolute;bottom:100%;left:50%;content:' ';display:block;margin-bottom:-.0625rem;margin-left:-0.8125rem;border:.8125rem solid transparent;border-bottom-color:#dddde5;pointer-events:none}.bpk-autosuggest__suggestions-container--open::after{position:absolute;bottom:100%;left:50%;content:' ';display:block;margin-bottom:-.0625rem;margin-left:-0.75rem;border:.75rem solid transparent;border-bottom-color:#fff;pointer-events:none}.bpk-autosuggest__suggestions-list{min-width:fit-content;margin:0;padding:0;list-style:none;overflow:hidden;border:.0625rem solid #dddde5;background-color:#fff;border-radius:.375rem;box-shadow:0px 4px 14px 0px rgba(37,32,31,0.25)}.bpk-autosuggest__suggestion-item{cursor:pointer;margin:0;font-size:1rem;line-height:1.5rem;font-weight:400}.bpk-autosuggest__suggestion-item:not(:last-child){box-shadow:0 -1px 0 0 #dddde5 inset}.bpk-autosuggest__suggestion-item:active{background-color:#dddde5}.bpk-autosuggest__suggestion-item--highlighted{background-color:#f1f2f8}.bpk-autosuggest__suggestion{display:table;width:100%;padding:1rem}.bpk-autosuggest__suggestion--indent{padding-left:2rem}.bpk-autosuggest__suggestion-icon{display:table-cell;margin-right:0.5rem;vertical-align:top;fill:#68697f}html[dir='rtl'] .bpk-autosuggest__suggestion-icon{margin-right:0;margin-left:0.5rem}.bpk-autosuggest__suggestion-content{display:table-cell;width:100%;vertical-align:top}.bpk-autosuggest__suggestion-inner{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}.bpk-autosuggest__suggestion-value{display:block}.bpk-autosuggest__suggestion-sub-heading{display:table-cell;width:100%;vertical-align:top;margin:0;font-size:.75rem;line-height:1rem;font-weight:400}.bpk-autosuggest__suggestion-tertiary-label{display:table-cell;align-self:center;color:#68697f;vertical-align:top;word-break:keep-all;margin:0;font-size:.75rem;line-height:1rem;font-weight:400}
18
+ @keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-autosuggest__container--open{position:relative}.bpk-autosuggest__suggestions-container{display:none}.bpk-autosuggest__suggestions-container--open{position:absolute;top:100%;display:block;z-index:900;width:100%;margin-top:0.75rem}.bpk-autosuggest__suggestions-container--open::before{position:absolute;bottom:100%;left:50%;content:' ';display:block;margin-bottom:-.0625rem;margin-left:-0.8125rem;border:.8125rem solid transparent;border-bottom-color:#e0e3e5;pointer-events:none}.bpk-autosuggest__suggestions-container--open::after{position:absolute;bottom:100%;left:50%;content:' ';display:block;margin-bottom:-.0625rem;margin-left:-0.75rem;border:.75rem solid transparent;border-bottom-color:#fff;pointer-events:none}.bpk-autosuggest__suggestions-list{min-width:fit-content;margin:0;padding:0;list-style:none;overflow:hidden;border:.0625rem solid #e0e3e5;background-color:#fff;border-radius:.5rem;box-shadow:0px 4px 14px 0px rgba(37,32,31,0.25)}.bpk-autosuggest__suggestion-item{cursor:pointer;margin:0;font-size:1rem;line-height:1.5rem;font-weight:400}.bpk-autosuggest__suggestion-item:not(:last-child){box-shadow:0 -1px 0 0 #c2c9cd inset}.bpk-autosuggest__suggestion-item:active{background-color:#eff1f2}.bpk-autosuggest__suggestion-item--highlighted{background-color:#eff1f2}.bpk-autosuggest__suggestion{display:table;width:100%;padding:1rem}.bpk-autosuggest__suggestion--indent{padding-left:2rem}.bpk-autosuggest__suggestion-icon{display:table-cell;margin-right:0.5rem;vertical-align:top;fill:#545860}html[dir='rtl'] .bpk-autosuggest__suggestion-icon{margin-right:0;margin-left:0.5rem}.bpk-autosuggest__suggestion-content{display:table-cell;width:100%;vertical-align:top}.bpk-autosuggest__suggestion-inner{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}.bpk-autosuggest__suggestion-value{display:block}.bpk-autosuggest__suggestion-sub-heading{display:table-cell;width:100%;vertical-align:top;margin:0;font-size:.75rem;line-height:1rem;font-weight:400}.bpk-autosuggest__suggestion-tertiary-label{display:table-cell;align-self:center;color:#545860;vertical-align:top;word-break:keep-all;margin:0;font-size:.75rem;line-height:1rem;font-weight:400}
@@ -1,107 +1,84 @@
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
- */
1
+ "use strict";
18
2
 
19
- /* @flow strict */
20
-
21
- import PropTypes from 'prop-types';
22
- import type { Node } from 'react';
23
-
24
- import { cssModules } from '../../bpk-react-utils';
25
-
26
- import STYLES from './BpkAutosuggest.module.scss';
27
-
28
- const getClassName = cssModules(STYLES);
29
-
30
- type Props = {
31
- value: Node,
32
- indent: boolean,
33
- className: ?string,
34
- icon: Function,
35
- subHeading: ?Node,
36
- tertiaryLabel: ?string,
37
- };
38
-
39
- const BpkSuggestion = (props: Props) => {
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 _BpkAutosuggestModule = _interopRequireDefault(require("./BpkAutosuggest.module.css"));
10
+ var _jsxRuntime = require("react/jsx-runtime");
11
+ const _excluded = ["className", "icon", "indent", "subHeading", "tertiaryLabel", "value"];
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+ 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; }
14
+ 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; }
15
+ 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; }
16
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
17
+ 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); }
18
+ 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; }
19
+ 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; }
20
+ const getClassName = (0, _bpkReactUtils.cssModules)(_BpkAutosuggestModule.default);
21
+ const BpkSuggestion = props => {
40
22
  const classNames = [getClassName('bpk-autosuggest__suggestion')];
41
- const { className, icon, indent, subHeading, tertiaryLabel, value, ...rest } =
42
- props;
23
+ const {
24
+ className,
25
+ icon,
26
+ indent,
27
+ subHeading,
28
+ tertiaryLabel,
29
+ value
30
+ } = props,
31
+ rest = _objectWithoutProperties(props, _excluded);
43
32
  const Icon = icon;
44
-
45
33
  if (indent) {
46
34
  classNames.push(getClassName('bpk-autosuggest__suggestion--indent'));
47
35
  }
48
36
  if (className) {
49
37
  classNames.push(className);
50
38
  }
51
-
52
39
  return (
40
+ /*#__PURE__*/
53
41
  // $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
54
- <section className={classNames.join(' ')} {...rest}>
55
- {icon ? (
56
- <Icon className={getClassName('bpk-autosuggest__suggestion-icon')} />
57
- ) : null}
58
- <div className={getClassName('bpk-autosuggest__suggestion-content')}>
59
- <div className={getClassName('bpk-autosuggest__suggestion-inner')}>
60
- <div>
61
- <span className={getClassName('bpk-autosuggest__suggestion-value')}>
62
- {value}
63
- </span>
64
- {subHeading || tertiaryLabel ? (
65
- <small
66
- className={getClassName(
67
- 'bpk-autosuggest__suggestion-sub-heading',
68
- )}
69
- >
70
- {subHeading}
71
- </small>
72
- ) : null}
73
- </div>
74
-
75
- {tertiaryLabel ? (
76
- <aside
77
- className={getClassName(
78
- 'bpk-autosuggest__suggestion-tertiary-label',
79
- )}
80
- >
81
- {tertiaryLabel}
82
- </aside>
83
- ) : null}
84
- </div>
85
- </div>
86
- </section>
42
+ (0, _jsxRuntime.jsxs)("section", _objectSpread(_objectSpread({
43
+ className: classNames.join(' ')
44
+ }, rest), {}, {
45
+ children: [icon ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, {
46
+ className: getClassName('bpk-autosuggest__suggestion-icon')
47
+ }) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
48
+ className: getClassName('bpk-autosuggest__suggestion-content'),
49
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
50
+ className: getClassName('bpk-autosuggest__suggestion-inner'),
51
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
52
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
53
+ className: getClassName('bpk-autosuggest__suggestion-value'),
54
+ children: value
55
+ }), subHeading || tertiaryLabel ? /*#__PURE__*/(0, _jsxRuntime.jsx)("small", {
56
+ className: getClassName('bpk-autosuggest__suggestion-sub-heading'),
57
+ children: subHeading
58
+ }) : null]
59
+ }), tertiaryLabel ? /*#__PURE__*/(0, _jsxRuntime.jsx)("aside", {
60
+ className: getClassName('bpk-autosuggest__suggestion-tertiary-label'),
61
+ children: tertiaryLabel
62
+ }) : null]
63
+ })
64
+ })]
65
+ }))
87
66
  );
88
67
  };
89
-
90
68
  BpkSuggestion.propTypes = {
91
- value: PropTypes.node.isRequired,
92
- subHeading: PropTypes.node,
93
- tertiaryLabel: PropTypes.string,
94
- icon: PropTypes.func,
95
- indent: PropTypes.bool,
96
- className: PropTypes.string,
69
+ value: _propTypes.default.node.isRequired,
70
+ subHeading: _propTypes.default.node,
71
+ tertiaryLabel: _propTypes.default.string,
72
+ icon: _propTypes.default.func,
73
+ indent: _propTypes.default.bool,
74
+ className: _propTypes.default.string
97
75
  };
98
-
99
76
  BpkSuggestion.defaultProps = {
100
77
  subHeading: null,
101
78
  tertiaryLabel: null,
102
79
  icon: null,
103
80
  indent: false,
104
- className: null,
81
+ className: null
105
82
  };
106
-
107
- export default BpkSuggestion;
83
+ var _default = BpkSuggestion;
84
+ exports.default = _default;
@@ -1,3 +1,26 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "BADGE_TYPES", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _BpkBadge.BADGE_TYPES;
10
+ }
11
+ });
12
+ exports.default = void 0;
13
+ Object.defineProperty(exports, "themeAttributes", {
14
+ enumerable: true,
15
+ get: function () {
16
+ return _themeAttributes.default;
17
+ }
18
+ });
19
+ var _BpkBadge = _interopRequireWildcard(require("./src/BpkBadge"));
20
+ var _themeAttributes = _interopRequireDefault(require("./src/themeAttributes"));
21
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
22
+ 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); }
23
+ 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; }
1
24
  /*
2
25
  * Backpack - Skyscanner's Design System
3
26
  *
@@ -15,12 +38,5 @@
15
38
  * See the License for the specific language governing permissions and
16
39
  * limitations under the License.
17
40
  */
18
-
19
- /* @flow strict */
20
-
21
- import component, { BADGE_TYPES, type Props } from './src/BpkBadge';
22
- import themeAttributes from './src/themeAttributes';
23
-
24
- export type BpkBadgeProps = Props;
25
- export default component;
26
- export { BADGE_TYPES, themeAttributes };
41
+ var _default = _BpkBadge.default;
42
+ exports.default = _default;
@@ -1,30 +1,23 @@
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
- */
1
+ "use strict";
18
2
 
19
- /* @flow strict */
20
-
21
- import PropTypes from 'prop-types';
22
-
23
- import { cssModules } from '../../bpk-react-utils';
24
-
25
- import STYLES from './BpkBadge.module.scss';
26
-
27
- export const BADGE_TYPES = {
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.BADGE_TYPES = void 0;
7
+ var _propTypes = _interopRequireDefault(require("prop-types"));
8
+ var _bpkReactUtils = require("../../bpk-react-utils");
9
+ var _BpkBadgeModule = _interopRequireDefault(require("./BpkBadge.module.css"));
10
+ var _jsxRuntime = require("react/jsx-runtime");
11
+ const _excluded = ["centered", "className", "docked", "type"];
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+ 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; }
14
+ 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; }
15
+ 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; }
16
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
17
+ 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); }
18
+ 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; }
19
+ 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; }
20
+ const BADGE_TYPES = {
28
21
  warning: 'warning',
29
22
  success: 'success',
30
23
  critical: 'critical',
@@ -32,11 +25,10 @@ export const BADGE_TYPES = {
32
25
  inverse: 'inverse',
33
26
  outline: 'outline',
34
27
  strong: 'strong',
35
- brand: 'brand',
28
+ brand: 'brand'
36
29
  };
37
-
38
- const getClassName = cssModules(STYLES);
39
-
30
+ exports.BADGE_TYPES = BADGE_TYPES;
31
+ const getClassName = (0, _bpkReactUtils.cssModules)(_BpkBadgeModule.default);
40
32
  const badgeTypeClassNames = {
41
33
  [BADGE_TYPES.warning]: getClassName('bpk-badge--warning'),
42
34
  [BADGE_TYPES.success]: getClassName('bpk-badge--success'),
@@ -45,45 +37,36 @@ const badgeTypeClassNames = {
45
37
  [BADGE_TYPES.inverse]: getClassName('bpk-badge--inverse'),
46
38
  [BADGE_TYPES.outline]: getClassName('bpk-badge--outline'),
47
39
  [BADGE_TYPES.strong]: getClassName('bpk-badge--strong'),
48
- [BADGE_TYPES.brand]: getClassName('bpk-badge--brand'),
49
- };
50
-
51
- export type Props = {
52
- type: $Keys<typeof BADGE_TYPES>,
53
- docked: ?string,
54
- centered: boolean,
55
- className: ?string,
40
+ [BADGE_TYPES.brand]: getClassName('bpk-badge--brand')
56
41
  };
57
-
58
- const BpkBadge = (props: Props) => {
59
- const { centered, className, docked, type, ...rest } = props;
60
- const classNames = getClassName(
61
- 'bpk-badge',
62
- badgeTypeClassNames[type],
63
- docked === 'right' && 'bpk-badge--docked-right',
64
- docked === 'left' && 'bpk-badge--docked-left',
65
- centered && 'bpk-badge--centered',
66
- className,
67
- );
68
-
42
+ const BpkBadge = props => {
43
+ const {
44
+ centered,
45
+ className,
46
+ docked,
47
+ type
48
+ } = props,
49
+ rest = _objectWithoutProperties(props, _excluded);
50
+ const classNames = getClassName('bpk-badge', badgeTypeClassNames[type], docked === 'right' && 'bpk-badge--docked-right', docked === 'left' && 'bpk-badge--docked-left', centered && 'bpk-badge--centered', className);
69
51
  return (
52
+ /*#__PURE__*/
70
53
  // $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
71
- <span className={classNames} {...rest} />
54
+ (0, _jsxRuntime.jsx)("span", _objectSpread({
55
+ className: classNames
56
+ }, rest))
72
57
  );
73
58
  };
74
-
75
59
  BpkBadge.propTypes = {
76
- type: PropTypes.oneOf(Object.keys(BADGE_TYPES)),
77
- docked: PropTypes.oneOf(['right', 'left', null]),
78
- centered: PropTypes.bool,
79
- className: PropTypes.string,
60
+ type: _propTypes.default.oneOf(Object.keys(BADGE_TYPES)),
61
+ docked: _propTypes.default.oneOf(['right', 'left', null]),
62
+ centered: _propTypes.default.bool,
63
+ className: _propTypes.default.string
80
64
  };
81
-
82
65
  BpkBadge.defaultProps = {
83
66
  type: BADGE_TYPES.normal,
84
67
  docked: null,
85
68
  centered: false,
86
- className: null,
69
+ className: null
87
70
  };
88
-
89
- export default BpkBadge;
71
+ var _default = BpkBadge;
72
+ exports.default = _default;
@@ -15,4 +15,4 @@
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
17
  */
18
- @keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-badge{display:inline-flex;padding:.25rem .5rem;align-items:center;color:#111236;background-color:#ffb54d;background-color:var(--bpk-badge-background-color, #ffb54d);border-radius:.25rem;margin:0;font-size:.75rem;line-height:1rem;font-weight:400;font-weight:700}.bpk-badge>svg{width:1rem !important;height:1rem !important}.bpk-badge--centered{vertical-align:text-bottom}.bpk-badge--docked-right{position:absolute;top:0;right:0;border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0}html[dir='rtl'] .bpk-badge--docked-right{right:inherit;left:0;border-bottom-left-radius:0;border-bottom-right-radius:.25rem}.bpk-badge--docked-left{position:absolute;top:0;left:0;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0}html[dir='rtl'] .bpk-badge--docked-left{right:0;left:inherit;border-bottom-left-radius:.25rem;border-bottom-right-radius:0}.bpk-badge--success{background-color:#73cec6;background-color:var(--bpk-badge-success-background-color, #73cec6)}.bpk-badge--destructive{color:#fff;fill:#fff;background-color:#d1435b;background-color:var(--bpk-badge-destructive-background-color, #d1435b)}.bpk-badge--light{background-color:#f1f2f8;fill:#111236}.bpk-badge--inverse{background-color:#fff;fill:#111236}.bpk-badge--outline{background-color:transparent;color:#fff;box-shadow:inset 0 0 0 1px #fff;fill:#fff}
18
+ @keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-badge{display:inline-flex;padding:0.25rem 0.5rem;align-items:center;border-radius:.25rem;margin:0;font-size:.75rem;line-height:1rem;font-weight:400}.bpk-badge--centered{vertical-align:text-bottom}.bpk-badge--docked-right{position:absolute;top:0;right:0;border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0}html[dir='rtl'] .bpk-badge--docked-right{right:inherit;left:0;border-bottom-left-radius:0;border-bottom-right-radius:.25rem}.bpk-badge--docked-left{position:absolute;top:0;left:0;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0}html[dir='rtl'] .bpk-badge--docked-left{right:0;left:inherit;border-bottom-left-radius:.25rem;border-bottom-right-radius:0}.bpk-badge--warning{background-color:#fff7cf;color:#161616;fill:#161616}.bpk-badge--success{background-color:#d4fff2;color:#161616;fill:#161616}.bpk-badge--critical{background-color:#ffe9f9;color:#161616;fill:#161616}.bpk-badge--normal{background-color:#e0e3e5;color:#161616;fill:#161616}.bpk-badge--inverse{background-color:#fff;color:#161616;fill:#161616}.bpk-badge--outline{background-color:transparent;color:#fff;box-shadow:inset 0 0 0 1px #fff;fill:#fff}.bpk-badge--strong{background-color:#05203c;color:#fff;fill:#fff}.bpk-badge--brand{background-color:#0062e3;color:#fff;fill:#fff}