@skyscanner/backpack-web 14.2.0-beta.1 → 15.1.0

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