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