@skyscanner/backpack-web 5.0.0 → 6.0.0-alpha.2

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 (1537) hide show
  1. package/README.md +65 -64
  2. package/bpk-animate-height/index.js +13 -4
  3. package/bpk-animate-height/src/AnimateHeight-test.js +75 -0
  4. package/bpk-animate-height/src/AnimateHeight.js +86 -76
  5. package/bpk-animate-height/src/accessibility-test.js +41 -0
  6. package/bpk-component-accordion/index.js +44 -30
  7. package/bpk-component-accordion/src/BpkAccordion-test.js +43 -0
  8. package/bpk-component-accordion/src/{BpkAccordion.module.css → BpkAccordion.css} +0 -0
  9. package/bpk-component-accordion/src/BpkAccordion.js +35 -36
  10. package/bpk-component-accordion/src/BpkAccordionItem-test.js +100 -0
  11. package/bpk-component-accordion/src/{BpkAccordionItem.module.css → BpkAccordionItem.css} +0 -0
  12. package/bpk-component-accordion/src/BpkAccordionItem.js +91 -106
  13. package/bpk-component-accordion/src/accessibility-test.js +43 -0
  14. package/bpk-component-accordion/src/themeAttributes-test.js +28 -0
  15. package/bpk-component-accordion/src/themeAttributes.js +9 -8
  16. package/bpk-component-accordion/src/withAccordionItemState-test.js +77 -0
  17. package/bpk-component-accordion/src/withAccordionItemState.js +64 -69
  18. package/bpk-component-accordion/src/withSingleItemAccordionState-test.js +67 -0
  19. package/bpk-component-accordion/src/withSingleItemAccordionState.js +62 -76
  20. package/bpk-component-aria-live/index.js +21 -10
  21. package/bpk-component-aria-live/src/BpkAriaLive-test.js +73 -0
  22. package/bpk-component-aria-live/src/{BpkAriaLive.module.css → BpkAriaLive.css} +0 -0
  23. package/bpk-component-aria-live/src/BpkAriaLive.js +42 -45
  24. package/bpk-component-aria-live/src/accessibility-test.js +38 -0
  25. package/bpk-component-autosuggest/check-autosuggest-version-test.js +28 -0
  26. package/bpk-component-autosuggest/index.js +21 -8
  27. package/bpk-component-autosuggest/src/BpkAutosuggest-test.js +115 -0
  28. package/bpk-component-autosuggest/src/{BpkAutosuggest.module.css → BpkAutosuggest.css} +0 -0
  29. package/bpk-component-autosuggest/src/BpkAutosuggest.js +41 -46
  30. package/bpk-component-autosuggest/src/BpkAutosuggestSuggestion-test.js +132 -0
  31. package/bpk-component-autosuggest/src/BpkAutosuggestSuggestion.js +64 -83
  32. package/bpk-component-autosuggest/src/accessibility-test.js +66 -0
  33. package/bpk-component-badge/index.js +31 -9
  34. package/bpk-component-badge/src/BpkBadge-test.js +81 -0
  35. package/bpk-component-badge/src/{BpkBadge.module.css → BpkBadge.css} +0 -0
  36. package/bpk-component-badge/src/BpkBadge.js +52 -50
  37. package/bpk-component-badge/src/accessibility-test.js +38 -0
  38. package/{bpk-component-barchart/src/BpkChartDataTable.module.scss → bpk-component-badge/src/themeAttributes-test.js} +9 -11
  39. package/bpk-component-badge/src/themeAttributes.js +9 -6
  40. package/bpk-component-banner-alert/index.js +53 -17
  41. package/bpk-component-banner-alert/src/AnimateAndFade-test.js +74 -0
  42. package/bpk-component-banner-alert/src/AnimateAndFade.js +126 -143
  43. package/bpk-component-banner-alert/src/{BpkAnimateAndFade.module.css → BpkAnimateAndFade.css} +0 -0
  44. package/bpk-component-banner-alert/src/BpkBannerAlert-test.js +61 -0
  45. package/bpk-component-banner-alert/src/{BpkBannerAlert.module.css → BpkBannerAlert.css} +0 -0
  46. package/bpk-component-banner-alert/src/BpkBannerAlert.js +20 -19
  47. package/bpk-component-banner-alert/src/BpkBannerAlertDismissable-test.js +43 -0
  48. package/bpk-component-banner-alert/src/BpkBannerAlertDismissable.js +45 -52
  49. package/bpk-component-banner-alert/src/BpkBannerAlertExpandable-test.js +54 -0
  50. package/bpk-component-banner-alert/src/BpkBannerAlertExpandable.js +55 -56
  51. package/bpk-component-banner-alert/src/BpkBannerAlertInner-test.js +206 -0
  52. package/bpk-component-banner-alert/src/BpkBannerAlertInner.js +141 -186
  53. package/bpk-component-banner-alert/src/accessibility-test.js +44 -0
  54. package/bpk-component-banner-alert/src/common-types.js +26 -41
  55. package/{bpk-component-barchart/src/BpkChartAxis.module.scss → bpk-component-banner-alert/src/themeAttributes-test.js} +9 -20
  56. package/bpk-component-banner-alert/src/themeAttributes.js +9 -7
  57. package/bpk-component-banner-alert/src/withBannerAlertState-test.js +127 -0
  58. package/bpk-component-banner-alert/src/withBannerAlertState.js +118 -143
  59. package/bpk-component-barchart/index.js +61 -21
  60. package/bpk-component-barchart/src/BpkBarchart-test.js +192 -0
  61. package/bpk-component-barchart/src/{BpkBarchart.module.css → BpkBarchart.css} +0 -0
  62. package/bpk-component-barchart/src/BpkBarchart.js +222 -269
  63. package/bpk-component-barchart/src/BpkBarchartBar-test.js +120 -0
  64. package/bpk-component-barchart/src/{BpkBarchartBar.module.css → BpkBarchartBar.css} +0 -0
  65. package/bpk-component-barchart/src/BpkBarchartBar.js +81 -114
  66. package/bpk-component-barchart/src/BpkBarchartBars-test.js +175 -0
  67. package/bpk-component-barchart/src/BpkBarchartBars.js +117 -129
  68. package/{bpk-component-button/src/BpkButtonBase.module.scss → bpk-component-barchart/src/BpkBarchartDefs-test.js} +18 -33
  69. package/bpk-component-barchart/src/BpkBarchartDefs.js +32 -38
  70. package/bpk-component-barchart/src/BpkChartAxis-test.js +204 -0
  71. package/bpk-component-barchart/src/{BpkChartAxis.module.css → BpkChartAxis.css} +0 -0
  72. package/bpk-component-barchart/src/BpkChartAxis.js +100 -136
  73. package/bpk-component-barchart/src/BpkChartDataTable-test.js +46 -0
  74. package/bpk-component-barchart/src/{BpkChartDataTable.module.css → BpkChartDataTable.css} +0 -0
  75. package/bpk-component-barchart/src/BpkChartDataTable.js +43 -50
  76. package/bpk-component-barchart/src/BpkChartGridLines-test.js +178 -0
  77. package/bpk-component-barchart/src/{BpkChartGridLines.module.css → BpkChartGridLines.css} +0 -0
  78. package/bpk-component-barchart/src/BpkChartGridLines.js +72 -96
  79. package/bpk-component-barchart/src/BpkChartMargin-test.js +45 -0
  80. package/bpk-component-barchart/src/BpkChartMargin.js +39 -46
  81. package/bpk-component-barchart/src/RTLtransforms.js +50 -49
  82. package/bpk-component-barchart/src/accessibility-test.js +52 -0
  83. package/bpk-component-barchart/src/customPropTypes-test.js +59 -0
  84. package/bpk-component-barchart/src/customPropTypes.js +19 -22
  85. package/bpk-component-barchart/src/orientation.js +11 -5
  86. package/bpk-component-barchart/src/themeAttributes-test.js +28 -0
  87. package/bpk-component-barchart/src/themeAttributes.js +9 -9
  88. package/bpk-component-barchart/src/utils-test.js +68 -0
  89. package/bpk-component-barchart/src/utils.js +20 -10
  90. package/bpk-component-blockquote/index.js +21 -6
  91. package/bpk-component-blockquote/src/BpkBlockquote-test.js +43 -0
  92. package/bpk-component-blockquote/src/{BpkBlockquote.module.css → BpkBlockquote.css} +0 -0
  93. package/bpk-component-blockquote/src/BpkBlockquote.js +28 -22
  94. package/bpk-component-blockquote/src/accessibility-test.js +38 -0
  95. package/bpk-component-blockquote/src/themeAttributes-test.js +28 -0
  96. package/bpk-component-blockquote/src/themeAttributes.js +9 -2
  97. package/bpk-component-boilerplate/index.js +30 -0
  98. package/bpk-component-boilerplate/src/BpkBoilerplate-test.js +51 -0
  99. package/{bpk-component-split-input/src/BpkSplitInput.module.css → bpk-component-boilerplate/src/BpkBoilerplate.css} +1 -1
  100. package/bpk-component-boilerplate/src/BpkBoilerplate.js +51 -0
  101. package/bpk-component-boilerplate/src/accessibility-test.js +38 -0
  102. package/bpk-component-breadcrumb/index.js +21 -14
  103. package/bpk-component-breadcrumb/src/BpkBreadcrumb-test.js +72 -0
  104. package/bpk-component-breadcrumb/src/{BpkBreadcrumb.module.css → BpkBreadcrumb.css} +0 -0
  105. package/bpk-component-breadcrumb/src/BpkBreadcrumb.js +68 -80
  106. package/bpk-component-breadcrumb/src/BpkBreadcrumbItem-test.js +76 -0
  107. package/bpk-component-breadcrumb/src/{BpkBreadcrumbItem.module.css → BpkBreadcrumbItem.css} +0 -0
  108. package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.js +70 -78
  109. package/bpk-component-breadcrumb/src/accessibility-test.js +44 -0
  110. package/bpk-component-breakpoint/index.js +21 -7
  111. package/bpk-component-breakpoint/src/BpkBreakpoint-test.js +100 -0
  112. package/bpk-component-breakpoint/src/BpkBreakpoint.js +46 -38
  113. package/bpk-component-breakpoint/src/accessibility-test.js +44 -0
  114. package/bpk-component-button/BpkButtonDestructive.js +13 -19
  115. package/bpk-component-button/BpkButtonFeatured.js +13 -19
  116. package/bpk-component-button/BpkButtonLink.js +13 -19
  117. package/bpk-component-button/BpkButtonLinkOnDark.js +13 -19
  118. package/bpk-component-button/BpkButtonOutline.js +13 -19
  119. package/bpk-component-button/BpkButtonPrimary.js +13 -19
  120. package/bpk-component-button/BpkButtonPrimaryOnDark.js +13 -19
  121. package/bpk-component-button/BpkButtonPrimaryOnLight.js +13 -19
  122. package/bpk-component-button/BpkButtonSecondary.js +13 -19
  123. package/bpk-component-button/BpkButtonSecondaryOnDark.js +13 -19
  124. package/bpk-component-button/index.js +144 -40
  125. package/bpk-component-button/src/BpkButton-test.js +165 -0
  126. package/bpk-component-button/src/BpkButton.js +64 -87
  127. package/bpk-component-button/src/BpkButtonBase.css +18 -0
  128. package/bpk-component-button/src/BpkButtonBase.js +64 -74
  129. package/bpk-component-button/src/BpkButtonDestructive-test.js +26 -0
  130. package/bpk-component-button/src/BpkButtonDestructive.css +18 -0
  131. package/bpk-component-button/src/BpkButtonDestructive.js +51 -36
  132. package/{bpk-component-calendar/src/BpkCalendar.module.scss → bpk-component-button/src/BpkButtonFeatured-test.js} +9 -25
  133. package/bpk-component-button/src/{BpkButtonFeatured.module.css → BpkButtonFeatured.css} +1 -1
  134. package/bpk-component-button/src/BpkButtonFeatured.js +51 -36
  135. package/{bpk-component-code/src/BpkCodeBlock.module.scss → bpk-component-button/src/BpkButtonLink-test.js} +9 -16
  136. package/bpk-component-button/src/BpkButtonLink.css +18 -0
  137. package/bpk-component-button/src/BpkButtonLink.js +53 -43
  138. package/bpk-component-button/src/BpkButtonLinkOnDark-test.js +26 -0
  139. package/bpk-component-button/src/BpkButtonLinkOnDark.css +18 -0
  140. package/bpk-component-button/src/BpkButtonLinkOnDark.js +53 -43
  141. package/{bpk-component-breadcrumb/src/BpkBreadcrumbItem.module.scss → bpk-component-button/src/BpkButtonOutline-test.js} +9 -23
  142. package/bpk-component-button/src/{BpkButtonOutline.module.css → BpkButtonOutline.css} +0 -0
  143. package/bpk-component-button/src/BpkButtonOutline.js +51 -36
  144. package/bpk-component-button/src/BpkButtonPrimary-test.js +26 -0
  145. package/bpk-component-button/src/BpkButtonPrimary.js +25 -29
  146. package/bpk-component-button/src/BpkButtonPrimaryOnDark-test.js +26 -0
  147. package/bpk-component-button/src/BpkButtonPrimaryOnDark.css +18 -0
  148. package/bpk-component-button/src/BpkButtonPrimaryOnDark.js +51 -36
  149. package/bpk-component-button/src/BpkButtonPrimaryOnLight-test.js +26 -0
  150. package/bpk-component-button/src/BpkButtonPrimaryOnLight.css +18 -0
  151. package/bpk-component-button/src/BpkButtonPrimaryOnLight.js +51 -36
  152. package/bpk-component-button/src/BpkButtonSecondary-test.js +26 -0
  153. package/bpk-component-button/src/BpkButtonSecondary.css +18 -0
  154. package/bpk-component-button/src/BpkButtonSecondary.js +51 -36
  155. package/bpk-component-button/src/BpkButtonSecondaryOnDark-test.js +26 -0
  156. package/bpk-component-button/src/BpkButtonSecondaryOnDark.css +18 -0
  157. package/bpk-component-button/src/BpkButtonSecondaryOnDark.js +51 -36
  158. package/bpk-component-button/src/accessibility-test.js +47 -0
  159. package/bpk-component-button/src/common-types.js +24 -33
  160. package/bpk-component-button/src/commonButtonTests.js +79 -63
  161. package/bpk-component-button/src/themeAttributes-test.js +38 -0
  162. package/bpk-component-button/src/themeAttributes.js +23 -75
  163. package/bpk-component-button/themeAttributes.js +53 -28
  164. package/bpk-component-calendar/index.js +126 -43
  165. package/bpk-component-calendar/src/{BpkCalendar.module.css → BpkCalendar.css} +0 -0
  166. package/bpk-component-calendar/src/BpkCalendarContainer-test.js +356 -0
  167. package/bpk-component-calendar/src/BpkCalendarContainer.js +237 -272
  168. package/bpk-component-calendar/src/BpkCalendarDate-test.js +164 -0
  169. package/bpk-component-calendar/src/{BpkCalendarDate.module.css → BpkCalendarDate.css} +0 -0
  170. package/bpk-component-calendar/src/BpkCalendarDate.js +119 -122
  171. package/bpk-component-calendar/src/BpkCalendarGrid-test.js +140 -0
  172. package/bpk-component-calendar/src/{BpkCalendarGrid.module.css → BpkCalendarGrid.css} +0 -0
  173. package/bpk-component-calendar/src/BpkCalendarGrid.js +127 -153
  174. package/bpk-component-calendar/src/{BpkCalendarGridHeader.module.css → BpkCalendarGridHeader.css} +0 -0
  175. package/bpk-component-calendar/src/BpkCalendarGridHeader.js +72 -61
  176. package/bpk-component-calendar/src/BpkCalendarGridTransition-test.js +94 -0
  177. package/bpk-component-calendar/src/{BpkCalendarGridTransition.module.css → BpkCalendarGridTransition.css} +0 -0
  178. package/bpk-component-calendar/src/BpkCalendarGridTransition.js +103 -144
  179. package/bpk-component-calendar/src/BpkCalendarNav-test.js +116 -0
  180. package/bpk-component-calendar/src/{BpkCalendarNav.module.css → BpkCalendarNav.css} +0 -0
  181. package/bpk-component-calendar/src/BpkCalendarNav.js +140 -137
  182. package/bpk-component-calendar/src/Week-test.js +154 -0
  183. package/bpk-component-calendar/src/Week.js +216 -286
  184. package/bpk-component-calendar/src/accessibility-test.js +88 -0
  185. package/bpk-component-calendar/src/composeCalendar-test.js +173 -0
  186. package/bpk-component-calendar/src/composeCalendar.js +108 -124
  187. package/bpk-component-calendar/src/custom-proptypes.js +50 -41
  188. package/bpk-component-calendar/src/date-utils.js +223 -93
  189. package/bpk-component-calendar/src/themeAttributes-test.js +28 -0
  190. package/bpk-component-calendar/src/themeAttributes.js +9 -13
  191. package/bpk-component-calendar/src/utils.js +28 -20
  192. package/bpk-component-calendar/test-utils.js +239 -272
  193. package/bpk-component-card/index.js +13 -5
  194. package/bpk-component-card/src/BpkCard-test.js +85 -0
  195. package/bpk-component-card/src/{BpkCard.module.css → BpkCard.css} +0 -0
  196. package/bpk-component-card/src/BpkCard.js +65 -68
  197. package/bpk-component-card/src/accessibility-test.js +47 -0
  198. package/bpk-component-checkbox/index.js +21 -8
  199. package/bpk-component-checkbox/src/BpkCheckbox-test.js +152 -0
  200. package/bpk-component-checkbox/src/{BpkCheckbox.module.css → BpkCheckbox.css} +0 -0
  201. package/bpk-component-checkbox/src/BpkCheckbox.js +63 -100
  202. package/bpk-component-checkbox/src/accessibility-test.js +41 -0
  203. package/bpk-component-checkbox/src/themeAttributes-test.js +28 -0
  204. package/bpk-component-checkbox/src/themeAttributes.js +9 -4
  205. package/bpk-component-chip/index.js +37 -17
  206. package/bpk-component-chip/src/BpkDismissibleChip-test.js +85 -0
  207. package/bpk-component-chip/src/BpkDismissibleChip.js +32 -54
  208. package/bpk-component-chip/src/BpkSelectableChip-test.js +107 -0
  209. package/bpk-component-chip/src/{BpkSelectableChip.module.css → BpkSelectableChip.css} +0 -0
  210. package/bpk-component-chip/src/BpkSelectableChip.js +70 -87
  211. package/bpk-component-chip/src/accessibility-test.js +55 -0
  212. package/bpk-component-chip/src/commonTypes.js +28 -33
  213. package/bpk-component-chip/src/themeAttributes-test.js +28 -0
  214. package/bpk-component-chip/src/themeAttributes.js +9 -17
  215. package/bpk-component-close-button/index.js +13 -6
  216. package/bpk-component-close-button/src/BpkCloseButton-test.js +60 -0
  217. package/bpk-component-close-button/src/{BpkCloseButton.module.css → BpkCloseButton.css} +0 -0
  218. package/bpk-component-close-button/src/BpkCloseButton.js +56 -57
  219. package/bpk-component-close-button/src/accessibility-test.js +41 -0
  220. package/bpk-component-code/index.js +21 -21
  221. package/bpk-component-code/src/BpkCode-test.js +51 -0
  222. package/bpk-component-code/src/{BpkCode.module.css → BpkCode.css} +0 -0
  223. package/bpk-component-code/src/BpkCode.js +45 -45
  224. package/bpk-component-code/src/BpkCodeBlock-test.js +51 -0
  225. package/bpk-component-code/src/{BpkCodeBlock.module.css → BpkCodeBlock.css} +0 -0
  226. package/bpk-component-code/src/BpkCodeBlock.js +47 -51
  227. package/bpk-component-code/src/accessibility-test.js +47 -0
  228. package/bpk-component-content-container/index.js +13 -4
  229. package/bpk-component-content-container/src/BpkContentContainer-test.js +60 -0
  230. package/bpk-component-content-container/src/BpkContentContainer.css +18 -0
  231. package/bpk-component-content-container/src/BpkContentContainer.js +47 -54
  232. package/bpk-component-content-container/src/accessibility-test.js +38 -0
  233. package/bpk-component-datatable/index.js +22 -20
  234. package/bpk-component-datatable/src/BpkDataTable-test.js +517 -0
  235. package/bpk-component-datatable/src/{BpkDataTable.module.css → BpkDataTable.css} +0 -0
  236. package/bpk-component-datatable/src/BpkDataTable.js +177 -156
  237. package/bpk-component-datatable/src/BpkDataTableColumn-test.js +71 -0
  238. package/bpk-component-datatable/src/{BpkDataTableColumn.module.css → BpkDataTableColumn.css} +0 -0
  239. package/bpk-component-datatable/src/BpkDataTableColumn.js +52 -51
  240. package/bpk-component-datatable/src/accessibility-test.js +70 -0
  241. package/bpk-component-datatable/src/bpkHeaderRenderer-test.js +110 -0
  242. package/bpk-component-datatable/src/bpkHeaderRenderer.js +60 -73
  243. package/bpk-component-datatable/src/common-types.js +3 -48
  244. package/bpk-component-datatable/src/hasChildrenOfType-test.js +60 -0
  245. package/bpk-component-datatable/src/hasChildrenOfType.js +29 -36
  246. package/bpk-component-datatable/src/sort-types.js +1 -29
  247. package/bpk-component-datatable/src/sorter.js +62 -89
  248. package/bpk-component-datatable/src/utils.js +11 -6
  249. package/bpk-component-datepicker/index.js +29 -8
  250. package/bpk-component-datepicker/src/BpkDatepicker-test.js +377 -0
  251. package/bpk-component-datepicker/src/{BpkDatepicker.module.css → BpkDatepicker.css} +0 -0
  252. package/bpk-component-datepicker/src/BpkDatepicker.js +219 -268
  253. package/bpk-component-datepicker/src/accessibility-test.js +94 -0
  254. package/bpk-component-datepicker/src/themeAttibutes-test.js +28 -0
  255. package/bpk-component-datepicker/src/themeAttributes.js +15 -11
  256. package/bpk-component-description-list/index.js +29 -21
  257. package/bpk-component-description-list/src/BpkDescriptionDetails-test.js +51 -0
  258. package/bpk-component-description-list/src/BpkDescriptionDetails.js +13 -3
  259. package/bpk-component-description-list/src/BpkDescriptionList-test.js +51 -0
  260. package/bpk-component-description-list/src/{BpkDescriptionList.module.css → BpkDescriptionList.css} +0 -0
  261. package/bpk-component-description-list/src/BpkDescriptionList.js +13 -3
  262. package/bpk-component-description-list/src/BpkDescriptionTerm-test.js +51 -0
  263. package/bpk-component-description-list/src/BpkDescriptionTerm.js +13 -3
  264. package/bpk-component-description-list/src/ComponentFactory.js +41 -38
  265. package/bpk-component-description-list/src/accessibility-test.js +38 -0
  266. package/bpk-component-dialog/index.js +21 -9
  267. package/bpk-component-dialog/src/BpkDialog-test.js +162 -0
  268. package/bpk-component-dialog/src/{BpkDialog.module.css → BpkDialog.css} +0 -0
  269. package/bpk-component-dialog/src/BpkDialog.js +64 -79
  270. package/bpk-component-dialog/src/BpkDialogInner.css +18 -0
  271. package/bpk-component-dialog/src/BpkDialogInner.js +59 -75
  272. package/bpk-component-dialog/src/accessibility-test.js +48 -0
  273. package/bpk-component-dialog/src/common-types.js +56 -80
  274. package/bpk-component-drawer/index.js +21 -8
  275. package/bpk-component-drawer/src/BpkDrawer-test.js +47 -0
  276. package/bpk-component-drawer/src/{BpkDrawer.module.css → BpkDrawer.css} +0 -0
  277. package/bpk-component-drawer/src/BpkDrawer.js +82 -85
  278. package/bpk-component-drawer/src/BpkDrawerContent-test.js +101 -0
  279. package/bpk-component-drawer/src/{BpkDrawerContent.module.css → BpkDrawerContent.css} +1 -1
  280. package/bpk-component-drawer/src/BpkDrawerContent.js +97 -124
  281. package/bpk-component-drawer/src/accessibility-test.js +49 -0
  282. package/bpk-component-drawer/src/themeAttributes-test.js +28 -0
  283. package/bpk-component-drawer/src/themeAttributes.js +11 -6
  284. package/bpk-component-fieldset/index.js +37 -13
  285. package/bpk-component-fieldset/src/BpkFieldset-test.js +313 -0
  286. package/bpk-component-fieldset/src/{BpkFieldset.module.css → BpkFieldset.css} +0 -0
  287. package/bpk-component-fieldset/src/BpkFieldset.js +104 -131
  288. package/bpk-component-fieldset/src/accessibility-test.js +53 -0
  289. package/bpk-component-fieldset/src/themeAttributes.js +9 -2
  290. package/bpk-component-flare/gulpfile.js +59 -0
  291. package/bpk-component-flare/index.js +27 -8
  292. package/bpk-component-flare/src/BpkContentBubble-test.js +82 -0
  293. package/bpk-component-flare/src/BpkContentBubble.js +59 -68
  294. package/bpk-component-flare/src/BpkFlareBar-test.js +59 -0
  295. package/bpk-component-flare/src/BpkFlareBar.js +57 -56
  296. package/bpk-component-flare/src/__generated__/js/corner-radius.js +33 -5
  297. package/bpk-component-flare/src/__generated__/js/pointer.js +33 -5
  298. package/bpk-component-flare/src/accessibility-test.js +54 -0
  299. package/bpk-component-flare/src/{bpk-content-bubble.module.css → bpk-content-bubble.css} +0 -0
  300. package/bpk-component-flare/src/{bpk-flare-bar.module.css → bpk-flare-bar.css} +1 -1
  301. package/bpk-component-flare/tasks/svg2react.js +73 -0
  302. package/bpk-component-floating-notification/index.js +21 -10
  303. package/bpk-component-floating-notification/src/BpkFloatingNotification-test.js +113 -0
  304. package/bpk-component-floating-notification/src/BpkFloatingNotification.css +18 -0
  305. package/bpk-component-floating-notification/src/BpkFloatingNotification.js +93 -118
  306. package/bpk-component-floating-notification/src/accessibility-test.js +78 -0
  307. package/bpk-component-form-validation/index.js +21 -6
  308. package/bpk-component-form-validation/src/BpkFormValidation-test.js +47 -0
  309. package/bpk-component-form-validation/src/{BpkFormValidation.module.css → BpkFormValidation.css} +0 -0
  310. package/bpk-component-form-validation/src/BpkFormValidation.js +67 -76
  311. package/bpk-component-form-validation/src/accessibility-test.js +41 -0
  312. package/bpk-component-form-validation/src/themeAttributes-test.js +28 -0
  313. package/bpk-component-form-validation/src/themeAttributes.js +9 -2
  314. package/bpk-component-graphic-promotion/index.js +21 -10
  315. package/bpk-component-graphic-promotion/src/BpkGraphicPromo-test.js +132 -0
  316. package/bpk-component-graphic-promotion/src/BpkGraphicPromo.css +18 -0
  317. package/bpk-component-graphic-promotion/src/BpkGraphicPromo.js +103 -133
  318. package/bpk-component-graphic-promotion/src/accessibility-test.js +139 -0
  319. package/{bpk-component-map/src/BpkMap.module.scss → bpk-component-graphic-promotion/src/custom-breakpoints.css} +5 -9
  320. package/bpk-component-grid/index.js +21 -8
  321. package/bpk-component-grid/src/BpkGridColumn-test.js +168 -0
  322. package/bpk-component-grid/src/BpkGridColumn.css +18 -0
  323. package/bpk-component-grid/src/BpkGridColumn.js +60 -67
  324. package/bpk-component-grid/src/BpkGridContainer-test.js +68 -0
  325. package/bpk-component-grid/src/BpkGridContainer.css +18 -0
  326. package/bpk-component-grid/src/BpkGridContainer.js +48 -42
  327. package/bpk-component-grid/src/BpkGridRow-test.js +52 -0
  328. package/bpk-component-grid/src/{BpkGridRow.module.css → BpkGridRow.css} +1 -1
  329. package/bpk-component-grid/src/BpkGridRow.js +45 -41
  330. package/bpk-component-grid/src/accessibility-test.js +48 -0
  331. package/bpk-component-grid-toggle/index.js +13 -4
  332. package/bpk-component-grid-toggle/src/BpkGridToggle-test.js +43 -0
  333. package/bpk-component-grid-toggle/src/{BpkGridToggle.module.css → BpkGridToggle.css} +0 -0
  334. package/bpk-component-grid-toggle/src/BpkGridToggle.js +55 -68
  335. package/bpk-component-grid-toggle/src/accessibility-test.js +38 -0
  336. package/bpk-component-horizontal-nav/index.js +35 -15
  337. package/bpk-component-horizontal-nav/src/BpkHorizontalNav-test.js +84 -0
  338. package/bpk-component-horizontal-nav/src/{BpkHorizontalNav.module.css → BpkHorizontalNav.css} +0 -0
  339. package/bpk-component-horizontal-nav/src/BpkHorizontalNav.js +133 -153
  340. package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem-test.js +101 -0
  341. package/bpk-component-horizontal-nav/src/{BpkHorizontalNavItem.module.css → BpkHorizontalNavItem.css} +0 -0
  342. package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.js +87 -111
  343. package/bpk-component-horizontal-nav/src/accessibility-test.js +40 -0
  344. package/bpk-component-icon/all.js +5 -6
  345. package/bpk-component-icon/gulpfile.babel.js +38 -0
  346. package/bpk-component-icon/gulpfile.js +33 -0
  347. package/bpk-component-icon/index.js +40 -27
  348. package/bpk-component-icon/lg/accessibility.js +39 -8
  349. package/bpk-component-icon/lg/account--add.js +39 -8
  350. package/bpk-component-icon/lg/account--female.js +39 -8
  351. package/bpk-component-icon/lg/account--id-card.js +39 -8
  352. package/bpk-component-icon/lg/account--name.js +39 -8
  353. package/bpk-component-icon/lg/account--permit.js +39 -8
  354. package/bpk-component-icon/lg/account-circle.js +39 -8
  355. package/bpk-component-icon/lg/account.js +39 -8
  356. package/bpk-component-icon/lg/add-circle.js +39 -8
  357. package/bpk-component-icon/lg/adult.js +39 -8
  358. package/bpk-component-icon/lg/aircon.js +39 -8
  359. package/bpk-component-icon/lg/aircraft.js +41 -8
  360. package/bpk-component-icon/lg/airline--multiple.js +39 -8
  361. package/bpk-component-icon/lg/airline.js +39 -8
  362. package/bpk-component-icon/lg/airports.js +39 -8
  363. package/bpk-component-icon/lg/alert--active.js +39 -8
  364. package/bpk-component-icon/lg/alert--add.js +39 -8
  365. package/bpk-component-icon/lg/alert--expired.js +39 -8
  366. package/bpk-component-icon/lg/alert--remove.js +39 -8
  367. package/bpk-component-icon/lg/arrow-down.js +39 -8
  368. package/bpk-component-icon/lg/arrow-left.js +39 -8
  369. package/bpk-component-icon/lg/arrow-right.js +39 -8
  370. package/bpk-component-icon/lg/arrow-up.js +39 -8
  371. package/bpk-component-icon/lg/award.js +39 -8
  372. package/bpk-component-icon/lg/baby-carriage.js +39 -8
  373. package/bpk-component-icon/lg/baggage--add.js +39 -8
  374. package/bpk-component-icon/lg/baggage--remove.js +39 -8
  375. package/bpk-component-icon/lg/baggage-cross.js +39 -8
  376. package/bpk-component-icon/lg/baggage-tick.js +39 -8
  377. package/bpk-component-icon/lg/baggage.js +39 -8
  378. package/bpk-component-icon/lg/bar.js +39 -8
  379. package/bpk-component-icon/lg/beach.js +41 -8
  380. package/bpk-component-icon/lg/beer.js +39 -8
  381. package/bpk-component-icon/lg/breakfast-cross.js +39 -8
  382. package/bpk-component-icon/lg/breakfast-tick.js +39 -8
  383. package/bpk-component-icon/lg/bus.js +39 -8
  384. package/bpk-component-icon/lg/business.js +39 -8
  385. package/bpk-component-icon/lg/cafe.js +39 -8
  386. package/bpk-component-icon/lg/calendar.js +39 -8
  387. package/bpk-component-icon/lg/call-back.js +41 -8
  388. package/bpk-component-icon/lg/camera.js +39 -8
  389. package/bpk-component-icon/lg/camper-van.js +41 -8
  390. package/bpk-component-icon/lg/car-door.js +39 -8
  391. package/bpk-component-icon/lg/car-wash.js +41 -8
  392. package/bpk-component-icon/lg/cars-flexible.js +39 -8
  393. package/bpk-component-icon/lg/cars.js +41 -8
  394. package/bpk-component-icon/lg/center-location.js +39 -8
  395. package/bpk-component-icon/lg/chart.js +39 -8
  396. package/bpk-component-icon/lg/chauffeur.js +39 -8
  397. package/bpk-component-icon/lg/chevron-down.js +39 -8
  398. package/bpk-component-icon/lg/chevron-left.js +39 -8
  399. package/bpk-component-icon/lg/chevron-right.js +39 -8
  400. package/bpk-component-icon/lg/chevron-up.js +39 -8
  401. package/bpk-component-icon/lg/child-seat.js +39 -8
  402. package/bpk-component-icon/lg/child.js +39 -8
  403. package/bpk-component-icon/lg/city-center.js +39 -8
  404. package/bpk-component-icon/lg/city.js +39 -8
  405. package/bpk-component-icon/lg/clean-policy.js +39 -8
  406. package/bpk-component-icon/lg/clean.js +43 -8
  407. package/bpk-component-icon/lg/cleaning-medical.js +39 -8
  408. package/bpk-component-icon/lg/cloakroom.js +43 -8
  409. package/bpk-component-icon/lg/close-circle.js +39 -8
  410. package/bpk-component-icon/lg/close.js +39 -8
  411. package/bpk-component-icon/lg/collapse.js +39 -8
  412. package/bpk-component-icon/lg/content--copy.js +41 -8
  413. package/bpk-component-icon/lg/content--event.js +39 -8
  414. package/bpk-component-icon/lg/content--guides.js +39 -8
  415. package/bpk-component-icon/lg/currency.js +39 -8
  416. package/bpk-component-icon/lg/data.js +41 -8
  417. package/bpk-component-icon/lg/deals.js +39 -8
  418. package/bpk-component-icon/lg/depart.js +41 -8
  419. package/bpk-component-icon/lg/device-mid.js +39 -8
  420. package/bpk-component-icon/lg/device-wide.js +39 -8
  421. package/bpk-component-icon/lg/direct.js +39 -8
  422. package/bpk-component-icon/lg/document-csv.js +39 -8
  423. package/bpk-component-icon/lg/document-pdf.js +39 -8
  424. package/bpk-component-icon/lg/download.js +41 -8
  425. package/bpk-component-icon/lg/duration.js +39 -8
  426. package/bpk-component-icon/lg/eco-leaf.js +39 -8
  427. package/bpk-component-icon/lg/edit.js +39 -8
  428. package/bpk-component-icon/lg/education.js +41 -8
  429. package/bpk-component-icon/lg/electric.js +39 -8
  430. package/bpk-component-icon/lg/end-call.js +39 -8
  431. package/bpk-component-icon/lg/estimated.js +39 -8
  432. package/bpk-component-icon/lg/exclamation-circle.js +39 -8
  433. package/bpk-component-icon/lg/exclamation.js +39 -8
  434. package/bpk-component-icon/lg/expand.js +39 -8
  435. package/bpk-component-icon/lg/explore.js +39 -8
  436. package/bpk-component-icon/lg/face--blank.js +39 -8
  437. package/bpk-component-icon/lg/face--happy.js +39 -8
  438. package/bpk-component-icon/lg/face--sad.js +39 -8
  439. package/bpk-component-icon/lg/face-id.js +39 -8
  440. package/bpk-component-icon/lg/face-mask.js +39 -8
  441. package/bpk-component-icon/lg/family.js +39 -8
  442. package/bpk-component-icon/lg/fast-track.js +41 -8
  443. package/bpk-component-icon/lg/fast-train.js +41 -8
  444. package/bpk-component-icon/lg/filter.js +40 -8
  445. package/bpk-component-icon/lg/fingerprint.js +39 -8
  446. package/bpk-component-icon/lg/flag.js +39 -8
  447. package/bpk-component-icon/lg/flask.js +39 -8
  448. package/bpk-component-icon/lg/flight-flexible.js +39 -8
  449. package/bpk-component-icon/lg/flight-landing.js +43 -8
  450. package/bpk-component-icon/lg/flight-takeoff.js +41 -8
  451. package/bpk-component-icon/lg/flight.js +41 -8
  452. package/bpk-component-icon/lg/food.js +39 -8
  453. package/bpk-component-icon/lg/gears-automatic-circle.js +39 -8
  454. package/bpk-component-icon/lg/gears-automatic.js +39 -8
  455. package/bpk-component-icon/lg/gears-manual-circle.js +39 -8
  456. package/bpk-component-icon/lg/gears-manual.js +39 -8
  457. package/bpk-component-icon/lg/globe.js +39 -8
  458. package/bpk-component-icon/lg/grid-layout.js +39 -8
  459. package/bpk-component-icon/lg/headset.js +39 -8
  460. package/bpk-component-icon/lg/health-fitness.js +39 -8
  461. package/bpk-component-icon/lg/heart--outline.js +39 -8
  462. package/bpk-component-icon/lg/heart.js +39 -8
  463. package/bpk-component-icon/lg/help-circle.js +39 -8
  464. package/bpk-component-icon/lg/help.js +39 -8
  465. package/bpk-component-icon/lg/hide.js +39 -8
  466. package/bpk-component-icon/lg/hotel-flexible.js +39 -8
  467. package/bpk-component-icon/lg/hotels--disabled-facilities.js +39 -8
  468. package/bpk-component-icon/lg/hotels--jacuzzi.js +39 -8
  469. package/bpk-component-icon/lg/hotels--pets-allowed.js +39 -8
  470. package/bpk-component-icon/lg/hotels--smoking.js +39 -8
  471. package/bpk-component-icon/lg/hotels.js +39 -8
  472. package/bpk-component-icon/lg/infant.js +39 -8
  473. package/bpk-component-icon/lg/information--language-alert.js +39 -8
  474. package/bpk-component-icon/lg/information--language-question.js +39 -8
  475. package/bpk-component-icon/lg/information--language.js +39 -8
  476. package/bpk-component-icon/lg/information-circle.js +39 -8
  477. package/bpk-component-icon/lg/information.js +39 -8
  478. package/bpk-component-icon/lg/insurance.js +39 -8
  479. package/bpk-component-icon/lg/key.js +39 -8
  480. package/bpk-component-icon/lg/keypad.js +39 -8
  481. package/bpk-component-icon/lg/landmark.js +39 -8
  482. package/bpk-component-icon/lg/language.js +39 -8
  483. package/bpk-component-icon/lg/legroom--extra.js +41 -8
  484. package/bpk-component-icon/lg/legroom--normal.js +41 -8
  485. package/bpk-component-icon/lg/legroom--reduced.js +41 -8
  486. package/bpk-component-icon/lg/leisure.js +39 -8
  487. package/bpk-component-icon/lg/lightning.js +39 -8
  488. package/bpk-component-icon/lg/list.js +39 -8
  489. package/bpk-component-icon/lg/location.js +39 -8
  490. package/bpk-component-icon/lg/lock.js +39 -8
  491. package/bpk-component-icon/lg/logout.js +41 -8
  492. package/bpk-component-icon/lg/long-arrow-down.js +39 -8
  493. package/bpk-component-icon/lg/long-arrow-left.js +39 -8
  494. package/bpk-component-icon/lg/long-arrow-right.js +39 -8
  495. package/bpk-component-icon/lg/long-arrow-up.js +39 -8
  496. package/bpk-component-icon/lg/lounge.js +41 -8
  497. package/bpk-component-icon/lg/luggageall.js +39 -8
  498. package/bpk-component-icon/lg/mail.js +41 -8
  499. package/bpk-component-icon/lg/map.js +39 -8
  500. package/bpk-component-icon/lg/meal.js +39 -8
  501. package/bpk-component-icon/lg/media.js +39 -8
  502. package/bpk-component-icon/lg/menu--horizontal.js +39 -8
  503. package/bpk-component-icon/lg/menu--vertical.js +39 -8
  504. package/bpk-component-icon/lg/menu.js +39 -8
  505. package/bpk-component-icon/lg/mileage.js +41 -8
  506. package/bpk-component-icon/lg/minus.js +39 -8
  507. package/bpk-component-icon/lg/mobile.js +39 -8
  508. package/bpk-component-icon/lg/money.js +39 -8
  509. package/bpk-component-icon/lg/multiple-bookings.js +39 -8
  510. package/bpk-component-icon/lg/music.js +39 -8
  511. package/bpk-component-icon/lg/mute.js +39 -8
  512. package/bpk-component-icon/lg/native-android--back.js +39 -8
  513. package/bpk-component-icon/lg/native-android--close.js +39 -8
  514. package/bpk-component-icon/lg/native-android--forward.js +39 -8
  515. package/bpk-component-icon/lg/native-ios-close.js +39 -8
  516. package/bpk-component-icon/lg/navigation.js +39 -8
  517. package/bpk-component-icon/lg/new-window.js +41 -8
  518. package/bpk-component-icon/lg/news.js +39 -8
  519. package/bpk-component-icon/lg/night.js +39 -8
  520. package/bpk-component-icon/lg/not-allowed.js +39 -8
  521. package/bpk-component-icon/lg/onsen.js +39 -8
  522. package/bpk-component-icon/lg/paid.js +39 -8
  523. package/bpk-component-icon/lg/paperclip.js +39 -8
  524. package/bpk-component-icon/lg/parking.js +39 -8
  525. package/bpk-component-icon/lg/passport.js +39 -8
  526. package/bpk-component-icon/lg/pause.js +39 -8
  527. package/bpk-component-icon/lg/payment-card.js +39 -8
  528. package/bpk-component-icon/lg/petrol.js +39 -8
  529. package/bpk-component-icon/lg/phone-call.js +39 -8
  530. package/bpk-component-icon/lg/picture.js +39 -8
  531. package/bpk-component-icon/lg/pin.js +39 -8
  532. package/bpk-component-icon/lg/plane-seat.js +41 -8
  533. package/bpk-component-icon/lg/play.js +39 -8
  534. package/bpk-component-icon/lg/plus.js +39 -8
  535. package/bpk-component-icon/lg/policy.js +39 -8
  536. package/bpk-component-icon/lg/powerplug.js +39 -8
  537. package/bpk-component-icon/lg/ppe.js +39 -8
  538. package/bpk-component-icon/lg/price-alerts.js +39 -8
  539. package/bpk-component-icon/lg/price-tag.js +39 -8
  540. package/bpk-component-icon/lg/print.js +39 -8
  541. package/bpk-component-icon/lg/recent-searches.js +39 -8
  542. package/bpk-component-icon/lg/redo.js +39 -8
  543. package/bpk-component-icon/lg/refresh.js +39 -8
  544. package/bpk-component-icon/lg/return.js +41 -8
  545. package/bpk-component-icon/lg/room.js +39 -8
  546. package/bpk-component-icon/lg/scales.js +41 -8
  547. package/bpk-component-icon/lg/search.js +39 -8
  548. package/bpk-component-icon/lg/self-service.js +39 -8
  549. package/bpk-component-icon/lg/send-message.js +39 -8
  550. package/bpk-component-icon/lg/services.js +39 -8
  551. package/bpk-component-icon/lg/settings.js +39 -8
  552. package/bpk-component-icon/lg/share--android.js +39 -8
  553. package/bpk-component-icon/lg/share--ios.js +41 -8
  554. package/bpk-component-icon/lg/share.js +39 -8
  555. package/bpk-component-icon/lg/single-booking.js +39 -8
  556. package/bpk-component-icon/lg/social-distancing.js +41 -8
  557. package/bpk-component-icon/lg/social-like.js +39 -8
  558. package/bpk-component-icon/lg/sort-down.js +39 -8
  559. package/bpk-component-icon/lg/sort-up.js +39 -8
  560. package/bpk-component-icon/lg/sort.js +39 -8
  561. package/bpk-component-icon/lg/speaker.js +41 -8
  562. package/bpk-component-icon/lg/star-half.js +39 -8
  563. package/bpk-component-icon/lg/star-outline.js +39 -8
  564. package/bpk-component-icon/lg/star.js +39 -8
  565. package/bpk-component-icon/lg/stops.js +39 -8
  566. package/bpk-component-icon/lg/swap--horizontal.js +39 -8
  567. package/bpk-component-icon/lg/swap--vertical.js +39 -8
  568. package/bpk-component-icon/lg/swap.js +39 -8
  569. package/bpk-component-icon/lg/taxi.js +41 -8
  570. package/bpk-component-icon/lg/thumbs-down.js +39 -8
  571. package/bpk-component-icon/lg/thumbs-up.js +39 -8
  572. package/bpk-component-icon/lg/tick-circle.js +39 -8
  573. package/bpk-component-icon/lg/tick.js +39 -8
  574. package/bpk-component-icon/lg/ticket-flexible.js +39 -8
  575. package/bpk-component-icon/lg/ticket.js +39 -8
  576. package/bpk-component-icon/lg/time.js +39 -8
  577. package/bpk-component-icon/lg/toilets.js +39 -8
  578. package/bpk-component-icon/lg/train.js +39 -8
  579. package/bpk-component-icon/lg/transmission-automatic.js +39 -8
  580. package/bpk-component-icon/lg/transmission-manual.js +39 -8
  581. package/bpk-component-icon/lg/trash.js +39 -8
  582. package/bpk-component-icon/lg/trend--down.js +39 -8
  583. package/bpk-component-icon/lg/trend--steady.js +39 -8
  584. package/bpk-component-icon/lg/trend--will-rise.js +39 -8
  585. package/bpk-component-icon/lg/trend.js +39 -8
  586. package/bpk-component-icon/lg/trips.js +39 -8
  587. package/bpk-component-icon/lg/undo.js +39 -8
  588. package/bpk-component-icon/lg/unlock.js +39 -8
  589. package/bpk-component-icon/lg/unmute.js +41 -8
  590. package/bpk-component-icon/lg/upgrade.js +39 -8
  591. package/bpk-component-icon/lg/use-location.js +39 -8
  592. package/bpk-component-icon/lg/view.js +39 -8
  593. package/bpk-component-icon/lg/virus.js +39 -8
  594. package/bpk-component-icon/lg/wallet.js +41 -8
  595. package/bpk-component-icon/lg/weather--clear.js +39 -8
  596. package/bpk-component-icon/lg/weather--cloudy.js +41 -8
  597. package/bpk-component-icon/lg/weather--fog.js +39 -8
  598. package/bpk-component-icon/lg/weather--partly-cloudy.js +41 -8
  599. package/bpk-component-icon/lg/weather--rain.js +43 -8
  600. package/bpk-component-icon/lg/weather--snow.js +39 -8
  601. package/bpk-component-icon/lg/weather--thunderstorm.js +43 -8
  602. package/bpk-component-icon/lg/weather--tornado.js +39 -8
  603. package/bpk-component-icon/lg/weather--wind.js +39 -8
  604. package/bpk-component-icon/lg/weather.js +39 -8
  605. package/bpk-component-icon/lg/wifi.js +39 -8
  606. package/bpk-component-icon/lg/window--reduce.js +41 -8
  607. package/bpk-component-icon/lg/window.js +39 -8
  608. package/bpk-component-icon/lg/world--amer.js +39 -8
  609. package/bpk-component-icon/lg/world--apac.js +39 -8
  610. package/bpk-component-icon/lg/world--emea.js +41 -8
  611. package/bpk-component-icon/sm/accessibility.js +40 -8
  612. package/bpk-component-icon/sm/account--add.js +40 -8
  613. package/bpk-component-icon/sm/account--female.js +40 -8
  614. package/bpk-component-icon/sm/account--id-card.js +40 -8
  615. package/bpk-component-icon/sm/account--name.js +40 -8
  616. package/bpk-component-icon/sm/account--permit.js +40 -8
  617. package/bpk-component-icon/sm/account-circle.js +40 -8
  618. package/bpk-component-icon/sm/account.js +40 -8
  619. package/bpk-component-icon/sm/add-circle.js +40 -8
  620. package/bpk-component-icon/sm/adult.js +40 -8
  621. package/bpk-component-icon/sm/aircon.js +40 -8
  622. package/bpk-component-icon/sm/aircraft.js +42 -8
  623. package/bpk-component-icon/sm/airline--multiple.js +40 -8
  624. package/bpk-component-icon/sm/airline.js +40 -8
  625. package/bpk-component-icon/sm/airports.js +40 -8
  626. package/bpk-component-icon/sm/alert--active.js +40 -8
  627. package/bpk-component-icon/sm/alert--add.js +40 -8
  628. package/bpk-component-icon/sm/alert--expired.js +40 -8
  629. package/bpk-component-icon/sm/alert--remove.js +40 -8
  630. package/bpk-component-icon/sm/arrow-down.js +40 -8
  631. package/bpk-component-icon/sm/arrow-left.js +40 -8
  632. package/bpk-component-icon/sm/arrow-right.js +40 -8
  633. package/bpk-component-icon/sm/arrow-up.js +40 -8
  634. package/bpk-component-icon/sm/award.js +40 -8
  635. package/bpk-component-icon/sm/baby-carriage.js +40 -8
  636. package/bpk-component-icon/sm/baggage--add.js +40 -8
  637. package/bpk-component-icon/sm/baggage--remove.js +40 -8
  638. package/bpk-component-icon/sm/baggage-cross.js +40 -8
  639. package/bpk-component-icon/sm/baggage-tick.js +40 -8
  640. package/bpk-component-icon/sm/baggage.js +40 -8
  641. package/bpk-component-icon/sm/bar.js +40 -8
  642. package/bpk-component-icon/sm/beach.js +42 -8
  643. package/bpk-component-icon/sm/beer.js +40 -8
  644. package/bpk-component-icon/sm/breakfast-cross.js +40 -8
  645. package/bpk-component-icon/sm/breakfast-tick.js +40 -8
  646. package/bpk-component-icon/sm/bus.js +42 -8
  647. package/bpk-component-icon/sm/business.js +40 -8
  648. package/bpk-component-icon/sm/cafe.js +40 -8
  649. package/bpk-component-icon/sm/calendar.js +40 -8
  650. package/bpk-component-icon/sm/call-back.js +42 -8
  651. package/bpk-component-icon/sm/camera.js +40 -8
  652. package/bpk-component-icon/sm/camper-van.js +42 -8
  653. package/bpk-component-icon/sm/car-door.js +40 -8
  654. package/bpk-component-icon/sm/car-wash.js +42 -8
  655. package/bpk-component-icon/sm/cars-flexible.js +40 -8
  656. package/bpk-component-icon/sm/cars.js +42 -8
  657. package/bpk-component-icon/sm/chart.js +40 -8
  658. package/bpk-component-icon/sm/chauffeur.js +42 -8
  659. package/bpk-component-icon/sm/chevron-down.js +40 -8
  660. package/bpk-component-icon/sm/chevron-left.js +40 -8
  661. package/bpk-component-icon/sm/chevron-right.js +40 -8
  662. package/bpk-component-icon/sm/chevron-up.js +40 -8
  663. package/bpk-component-icon/sm/child-seat.js +40 -8
  664. package/bpk-component-icon/sm/child.js +40 -8
  665. package/bpk-component-icon/sm/city-center.js +40 -8
  666. package/bpk-component-icon/sm/city.js +40 -8
  667. package/bpk-component-icon/sm/clean-policy.js +40 -8
  668. package/bpk-component-icon/sm/clean.js +42 -8
  669. package/bpk-component-icon/sm/cleaning-medical.js +40 -8
  670. package/bpk-component-icon/sm/cloakroom.js +40 -8
  671. package/bpk-component-icon/sm/close-circle.js +40 -8
  672. package/bpk-component-icon/sm/close.js +40 -8
  673. package/bpk-component-icon/sm/collapse.js +40 -8
  674. package/bpk-component-icon/sm/content--copy.js +42 -8
  675. package/bpk-component-icon/sm/content--event.js +40 -8
  676. package/bpk-component-icon/sm/content--guides.js +40 -8
  677. package/bpk-component-icon/sm/currency.js +40 -8
  678. package/bpk-component-icon/sm/data.js +42 -8
  679. package/bpk-component-icon/sm/deals.js +40 -8
  680. package/bpk-component-icon/sm/depart.js +44 -8
  681. package/bpk-component-icon/sm/device-mid.js +40 -8
  682. package/bpk-component-icon/sm/device-wide.js +40 -8
  683. package/bpk-component-icon/sm/direct.js +42 -8
  684. package/bpk-component-icon/sm/document-csv.js +40 -8
  685. package/bpk-component-icon/sm/document-pdf.js +40 -8
  686. package/bpk-component-icon/sm/download.js +42 -8
  687. package/bpk-component-icon/sm/duration.js +40 -8
  688. package/bpk-component-icon/sm/eco-leaf.js +40 -8
  689. package/bpk-component-icon/sm/edit.js +40 -8
  690. package/bpk-component-icon/sm/education.js +42 -8
  691. package/bpk-component-icon/sm/electric.js +40 -8
  692. package/bpk-component-icon/sm/end-call.js +40 -8
  693. package/bpk-component-icon/sm/estimated.js +40 -8
  694. package/bpk-component-icon/sm/exclamation-circle.js +40 -8
  695. package/bpk-component-icon/sm/exclamation.js +40 -8
  696. package/bpk-component-icon/sm/expand.js +40 -8
  697. package/bpk-component-icon/sm/explore.js +40 -8
  698. package/bpk-component-icon/sm/face--blank.js +40 -8
  699. package/bpk-component-icon/sm/face--happy.js +40 -8
  700. package/bpk-component-icon/sm/face--sad.js +40 -8
  701. package/bpk-component-icon/sm/face-mask.js +40 -8
  702. package/bpk-component-icon/sm/family.js +40 -8
  703. package/bpk-component-icon/sm/fast-track.js +42 -8
  704. package/bpk-component-icon/sm/fast-train.js +42 -8
  705. package/bpk-component-icon/sm/filter.js +41 -8
  706. package/bpk-component-icon/sm/flag.js +40 -8
  707. package/bpk-component-icon/sm/flask.js +40 -8
  708. package/bpk-component-icon/sm/flight-flexible.js +40 -8
  709. package/bpk-component-icon/sm/flight-landing.js +44 -8
  710. package/bpk-component-icon/sm/flight-takeoff.js +42 -8
  711. package/bpk-component-icon/sm/flight.js +42 -8
  712. package/bpk-component-icon/sm/food.js +40 -8
  713. package/bpk-component-icon/sm/gears-automatic-circle.js +40 -8
  714. package/bpk-component-icon/sm/gears-automatic.js +40 -8
  715. package/bpk-component-icon/sm/gears-manual-circle.js +40 -8
  716. package/bpk-component-icon/sm/gears-manual.js +40 -8
  717. package/bpk-component-icon/sm/globe.js +40 -8
  718. package/bpk-component-icon/sm/grid-layout.js +40 -8
  719. package/bpk-component-icon/sm/headset.js +40 -8
  720. package/bpk-component-icon/sm/health-fitness.js +40 -8
  721. package/bpk-component-icon/sm/heart--outline.js +40 -8
  722. package/bpk-component-icon/sm/heart.js +40 -8
  723. package/bpk-component-icon/sm/help-circle.js +40 -8
  724. package/bpk-component-icon/sm/help.js +40 -8
  725. package/bpk-component-icon/sm/hide.js +40 -8
  726. package/bpk-component-icon/sm/hotel-flexible.js +40 -8
  727. package/bpk-component-icon/sm/hotels--disabled-facilities.js +40 -8
  728. package/bpk-component-icon/sm/hotels--jacuzzi.js +42 -8
  729. package/bpk-component-icon/sm/hotels--pets-allowed.js +40 -8
  730. package/bpk-component-icon/sm/hotels--smoking.js +40 -8
  731. package/bpk-component-icon/sm/hotels.js +40 -8
  732. package/bpk-component-icon/sm/infant.js +42 -8
  733. package/bpk-component-icon/sm/information--language-alert.js +40 -8
  734. package/bpk-component-icon/sm/information--language-question.js +40 -8
  735. package/bpk-component-icon/sm/information--language.js +40 -8
  736. package/bpk-component-icon/sm/information-circle.js +40 -8
  737. package/bpk-component-icon/sm/information.js +40 -8
  738. package/bpk-component-icon/sm/insurance.js +40 -8
  739. package/bpk-component-icon/sm/key.js +40 -8
  740. package/bpk-component-icon/sm/keypad.js +40 -8
  741. package/bpk-component-icon/sm/landmark.js +40 -8
  742. package/bpk-component-icon/sm/language.js +40 -8
  743. package/bpk-component-icon/sm/legroom--extra.js +42 -8
  744. package/bpk-component-icon/sm/legroom--normal.js +42 -8
  745. package/bpk-component-icon/sm/legroom--reduced.js +42 -8
  746. package/bpk-component-icon/sm/leisure.js +40 -8
  747. package/bpk-component-icon/sm/lightning.js +40 -8
  748. package/bpk-component-icon/sm/list.js +40 -8
  749. package/bpk-component-icon/sm/location.js +40 -8
  750. package/bpk-component-icon/sm/lock.js +40 -8
  751. package/bpk-component-icon/sm/logout.js +42 -8
  752. package/bpk-component-icon/sm/long-arrow-down.js +41 -8
  753. package/bpk-component-icon/sm/long-arrow-left.js +41 -8
  754. package/bpk-component-icon/sm/long-arrow-right.js +41 -8
  755. package/bpk-component-icon/sm/long-arrow-up.js +41 -8
  756. package/bpk-component-icon/sm/lounge.js +40 -8
  757. package/bpk-component-icon/sm/luggageall.js +40 -8
  758. package/bpk-component-icon/sm/mail.js +42 -8
  759. package/bpk-component-icon/sm/map.js +40 -8
  760. package/bpk-component-icon/sm/meal.js +40 -8
  761. package/bpk-component-icon/sm/media.js +40 -8
  762. package/bpk-component-icon/sm/menu--horizontal.js +40 -8
  763. package/bpk-component-icon/sm/menu--vertical.js +40 -8
  764. package/bpk-component-icon/sm/menu.js +40 -8
  765. package/bpk-component-icon/sm/mileage.js +42 -8
  766. package/bpk-component-icon/sm/minus.js +40 -8
  767. package/bpk-component-icon/sm/mobile.js +40 -8
  768. package/bpk-component-icon/sm/money.js +40 -8
  769. package/bpk-component-icon/sm/multiple-bookings.js +40 -8
  770. package/bpk-component-icon/sm/music.js +40 -8
  771. package/bpk-component-icon/sm/mute.js +40 -8
  772. package/bpk-component-icon/sm/native-android--back.js +40 -8
  773. package/bpk-component-icon/sm/native-android--close.js +40 -8
  774. package/bpk-component-icon/sm/native-android--forward.js +40 -8
  775. package/bpk-component-icon/sm/native-ios-close.js +40 -8
  776. package/bpk-component-icon/sm/navigation.js +40 -8
  777. package/bpk-component-icon/sm/new-window.js +46 -8
  778. package/bpk-component-icon/sm/news.js +40 -8
  779. package/bpk-component-icon/sm/night.js +40 -8
  780. package/bpk-component-icon/sm/not-allowed.js +40 -8
  781. package/bpk-component-icon/sm/onsen.js +42 -8
  782. package/bpk-component-icon/sm/paid.js +40 -8
  783. package/bpk-component-icon/sm/paperclip.js +40 -8
  784. package/bpk-component-icon/sm/parking.js +40 -8
  785. package/bpk-component-icon/sm/passport.js +40 -8
  786. package/bpk-component-icon/sm/pause.js +40 -8
  787. package/bpk-component-icon/sm/payment-card.js +40 -8
  788. package/bpk-component-icon/sm/petrol.js +40 -8
  789. package/bpk-component-icon/sm/phone-call.js +40 -8
  790. package/bpk-component-icon/sm/picture.js +40 -8
  791. package/bpk-component-icon/sm/pin.js +40 -8
  792. package/bpk-component-icon/sm/plane-seat.js +42 -8
  793. package/bpk-component-icon/sm/play.js +40 -8
  794. package/bpk-component-icon/sm/plus.js +40 -8
  795. package/bpk-component-icon/sm/policy.js +40 -8
  796. package/bpk-component-icon/sm/powerplug.js +40 -8
  797. package/bpk-component-icon/sm/ppe.js +40 -8
  798. package/bpk-component-icon/sm/price-alerts.js +40 -8
  799. package/bpk-component-icon/sm/price-tag.js +40 -8
  800. package/bpk-component-icon/sm/print.js +40 -8
  801. package/bpk-component-icon/sm/recent-searches.js +40 -8
  802. package/bpk-component-icon/sm/redo.js +40 -8
  803. package/bpk-component-icon/sm/refresh.js +40 -8
  804. package/bpk-component-icon/sm/return.js +44 -8
  805. package/bpk-component-icon/sm/room.js +40 -8
  806. package/bpk-component-icon/sm/scales.js +40 -8
  807. package/bpk-component-icon/sm/search.js +40 -8
  808. package/bpk-component-icon/sm/self-service.js +40 -8
  809. package/bpk-component-icon/sm/send-message.js +40 -8
  810. package/bpk-component-icon/sm/services.js +40 -8
  811. package/bpk-component-icon/sm/settings.js +40 -8
  812. package/bpk-component-icon/sm/share--android.js +40 -8
  813. package/bpk-component-icon/sm/share--ios.js +44 -8
  814. package/bpk-component-icon/sm/share.js +40 -8
  815. package/bpk-component-icon/sm/single-booking.js +40 -8
  816. package/bpk-component-icon/sm/social-distancing.js +42 -8
  817. package/bpk-component-icon/sm/social-like.js +40 -8
  818. package/bpk-component-icon/sm/sort-down.js +40 -8
  819. package/bpk-component-icon/sm/sort-up.js +40 -8
  820. package/bpk-component-icon/sm/sort.js +40 -8
  821. package/bpk-component-icon/sm/speaker.js +40 -8
  822. package/bpk-component-icon/sm/star-half.js +40 -8
  823. package/bpk-component-icon/sm/star-outline.js +40 -8
  824. package/bpk-component-icon/sm/star.js +40 -8
  825. package/bpk-component-icon/sm/stops.js +40 -8
  826. package/bpk-component-icon/sm/swap--horizontal.js +41 -8
  827. package/bpk-component-icon/sm/swap--vertical.js +40 -8
  828. package/bpk-component-icon/sm/swap.js +41 -8
  829. package/bpk-component-icon/sm/taxi.js +42 -8
  830. package/bpk-component-icon/sm/thumbs-down.js +40 -8
  831. package/bpk-component-icon/sm/thumbs-up.js +40 -8
  832. package/bpk-component-icon/sm/tick-circle.js +40 -8
  833. package/bpk-component-icon/sm/tick.js +40 -8
  834. package/bpk-component-icon/sm/ticket-flexible.js +40 -8
  835. package/bpk-component-icon/sm/ticket.js +40 -8
  836. package/bpk-component-icon/sm/time.js +40 -8
  837. package/bpk-component-icon/sm/toilets.js +40 -8
  838. package/bpk-component-icon/sm/train.js +40 -8
  839. package/bpk-component-icon/sm/transmission-automatic.js +40 -8
  840. package/bpk-component-icon/sm/transmission-manual.js +40 -8
  841. package/bpk-component-icon/sm/trash.js +40 -8
  842. package/bpk-component-icon/sm/trend--down.js +40 -8
  843. package/bpk-component-icon/sm/trend--steady.js +41 -8
  844. package/bpk-component-icon/sm/trend--will-rise.js +40 -8
  845. package/bpk-component-icon/sm/trend.js +40 -8
  846. package/bpk-component-icon/sm/trips.js +40 -8
  847. package/bpk-component-icon/sm/undo.js +40 -8
  848. package/bpk-component-icon/sm/unlock.js +40 -8
  849. package/bpk-component-icon/sm/unmute.js +42 -8
  850. package/bpk-component-icon/sm/upgrade.js +40 -8
  851. package/bpk-component-icon/sm/use-location.js +40 -8
  852. package/bpk-component-icon/sm/view.js +40 -8
  853. package/bpk-component-icon/sm/virus.js +40 -8
  854. package/bpk-component-icon/sm/wallet.js +40 -8
  855. package/bpk-component-icon/sm/weather--clear.js +40 -8
  856. package/bpk-component-icon/sm/weather--cloudy.js +42 -8
  857. package/bpk-component-icon/sm/weather--fog.js +40 -8
  858. package/bpk-component-icon/sm/weather--partly-cloudy.js +40 -8
  859. package/bpk-component-icon/sm/weather--rain.js +42 -8
  860. package/bpk-component-icon/sm/weather--snow.js +40 -8
  861. package/bpk-component-icon/sm/weather--thunderstorm.js +44 -8
  862. package/bpk-component-icon/sm/weather--tornado.js +40 -8
  863. package/bpk-component-icon/sm/weather--wind.js +42 -8
  864. package/bpk-component-icon/sm/weather.js +40 -8
  865. package/bpk-component-icon/sm/wifi.js +40 -8
  866. package/bpk-component-icon/sm/window--reduce.js +42 -8
  867. package/bpk-component-icon/sm/window.js +40 -8
  868. package/bpk-component-icon/sm/world--amer.js +40 -8
  869. package/bpk-component-icon/sm/world--apac.js +40 -8
  870. package/bpk-component-icon/sm/world--emea.js +40 -8
  871. package/bpk-component-icon/src/{BpkIcon.module.css → BpkIcon.css} +1 -1
  872. package/bpk-component-icon/src/classNameModifierHOCFactory-test.js +88 -0
  873. package/bpk-component-icon/src/classNameModifierHOCFactory.js +52 -53
  874. package/bpk-component-icon/src/withAlignment-test.js +69 -0
  875. package/bpk-component-icon/src/withAlignment.js +26 -26
  876. package/bpk-component-icon/src/withDescription-test.js +39 -0
  877. package/bpk-component-icon/src/{withDescription.module.css → withDescription.css} +0 -0
  878. package/bpk-component-icon/src/withDescription.js +22 -25
  879. package/bpk-component-icon/src/withRtlSupport.js +18 -9
  880. package/bpk-component-image/index.js +45 -20
  881. package/bpk-component-image/src/BpkBackgroundImage-test.js +148 -0
  882. package/bpk-component-image/src/{BpkBackgroundImage.module.css → BpkBackgroundImage.css} +0 -0
  883. package/bpk-component-image/src/BpkBackgroundImage.js +143 -165
  884. package/bpk-component-image/src/BpkImage-test.js +167 -0
  885. package/bpk-component-image/src/{BpkImage.module.css → BpkImage.css} +0 -0
  886. package/bpk-component-image/src/BpkImage.js +176 -201
  887. package/bpk-component-image/src/BpkImageBorderRadiusStyles.js +13 -6
  888. package/bpk-component-image/src/accessibility-test.js +68 -0
  889. package/bpk-component-image/src/customPropTypes-test.js +54 -0
  890. package/bpk-component-image/src/customPropTypes.js +11 -11
  891. package/bpk-component-image/src/withLazyLoading-test.js +92 -0
  892. package/bpk-component-image/src/withLazyLoading.js +143 -161
  893. package/bpk-component-image/src/withLoadingBehavior.js +29 -50
  894. package/bpk-component-infinite-scroll/index.js +31 -12
  895. package/bpk-component-infinite-scroll/src/DataSource-test.js +93 -0
  896. package/bpk-component-infinite-scroll/src/DataSource.js +41 -22
  897. package/bpk-component-infinite-scroll/src/accessibility-test.js +60 -0
  898. package/bpk-component-infinite-scroll/src/intersection-observer.js +9 -3
  899. package/bpk-component-infinite-scroll/src/withInfiniteScroll-test.flow.js +71 -81
  900. package/bpk-component-infinite-scroll/src/withInfiniteScroll-test.js +373 -0
  901. package/bpk-component-infinite-scroll/src/{withInfiniteScroll.module.css → withInfiniteScroll.css} +0 -0
  902. package/bpk-component-infinite-scroll/src/withInfiniteScroll.js +176 -203
  903. package/bpk-component-input/index.js +60 -43
  904. package/bpk-component-input/src/BpkClearButton-test.js +48 -0
  905. package/bpk-component-input/src/{BpkClearButton.module.css → BpkClearButton.css} +0 -0
  906. package/bpk-component-input/src/BpkClearButton.js +57 -59
  907. package/bpk-component-input/src/BpkInput-test.js +270 -0
  908. package/bpk-component-input/src/{BpkInput.module.css → BpkInput.css} +0 -0
  909. package/bpk-component-input/src/BpkInput.js +107 -112
  910. package/bpk-component-input/src/accessibility-test.js +45 -0
  911. package/bpk-component-input/src/common-types-test.js +100 -0
  912. package/bpk-component-input/src/common-types.js +47 -74
  913. package/bpk-component-input/src/themeAttributes-test.js +28 -0
  914. package/bpk-component-input/src/themeAttributes.js +9 -2
  915. package/bpk-component-input/src/withOpenEvents-test.js +161 -0
  916. package/bpk-component-input/src/withOpenEvents.js +93 -112
  917. package/bpk-component-label/index.js +13 -7
  918. package/bpk-component-label/src/BpkLabel-test.js +85 -0
  919. package/bpk-component-label/src/{BpkLabel.module.css → BpkLabel.css} +0 -0
  920. package/bpk-component-label/src/BpkLabel.js +55 -55
  921. package/bpk-component-label/src/accessibility-test.js +38 -0
  922. package/bpk-component-link/index.js +39 -11
  923. package/bpk-component-link/src/BpkButtonLink-test.js +82 -0
  924. package/bpk-component-link/src/BpkButtonLink.js +59 -57
  925. package/bpk-component-link/src/BpkLink-test.js +111 -0
  926. package/bpk-component-link/src/{BpkLink.module.css → BpkLink.css} +0 -0
  927. package/bpk-component-link/src/BpkLink.js +68 -73
  928. package/bpk-component-link/src/accessibility-test.js +53 -0
  929. package/bpk-component-link/src/themeAttributes.js +11 -18
  930. package/bpk-component-list/index.js +20 -21
  931. package/bpk-component-list/src/BpkList-test.js +51 -0
  932. package/bpk-component-list/src/BpkList.css +18 -0
  933. package/bpk-component-list/src/BpkList.js +36 -35
  934. package/bpk-component-list/src/BpkListItem-test.js +43 -0
  935. package/bpk-component-list/src/BpkListItem.js +31 -30
  936. package/bpk-component-list/src/accessibility-test.js +40 -0
  937. package/bpk-component-loading-button/index.js +21 -7
  938. package/bpk-component-loading-button/src/BpkLoadingButton-test.js +317 -0
  939. package/bpk-component-loading-button/src/BpkLoadingButton.css +18 -0
  940. package/bpk-component-loading-button/src/BpkLoadingButton.js +93 -131
  941. package/bpk-component-loading-button/src/accessibility-test.js +38 -0
  942. package/bpk-component-map/index.js +69 -28
  943. package/bpk-component-map/src/BpkBasicMapMarker-test.js +46 -0
  944. package/bpk-component-map/src/BpkBasicMapMarker.js +41 -45
  945. package/bpk-component-map/src/BpkIconMarker-test.js +103 -0
  946. package/bpk-component-map/src/{BpkIconMarker.module.css → BpkIconMarker.css} +0 -0
  947. package/bpk-component-map/src/BpkIconMarker.js +64 -86
  948. package/bpk-component-map/src/BpkIconMarkerBackground-test.js +59 -0
  949. package/bpk-component-map/src/{BpkIconMarkerBackground.module.css → BpkIconMarkerBackground.css} +0 -0
  950. package/bpk-component-map/src/BpkIconMarkerBackground.js +50 -58
  951. package/{bpk-component-barchart/src/BpkBarchart.module.scss → bpk-component-map/src/BpkMap.css} +6 -9
  952. package/bpk-component-map/src/BpkMap.js +103 -141
  953. package/bpk-component-map/src/BpkOverlayView.js +44 -43
  954. package/bpk-component-map/src/BpkPriceMarker-test.js +125 -0
  955. package/bpk-component-map/src/{BpkPriceMarker.module.css → BpkPriceMarker.css} +0 -0
  956. package/bpk-component-map/src/BpkPriceMarker.js +71 -99
  957. package/bpk-component-map/src/{DefaultLoadingElement.module.css → DefaultLoadingElement.css} +0 -0
  958. package/bpk-component-map/src/DefaultLoadingElement.js +25 -16
  959. package/bpk-component-map/src/common-types.js +16 -13
  960. package/bpk-component-map/src/themeAttributes-test.js +29 -0
  961. package/bpk-component-map/src/themeAttributes.js +14 -19
  962. package/bpk-component-map/src/withGoogleMapsScript.js +50 -56
  963. package/bpk-component-mobile-scroll-container/index.js +13 -6
  964. package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer-test.js +133 -0
  965. package/bpk-component-mobile-scroll-container/src/{BpkMobileScrollContainer.module.css → BpkMobileScrollContainer.css} +0 -0
  966. package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.js +148 -166
  967. package/bpk-component-mobile-scroll-container/src/accessibility-test.js +38 -0
  968. package/bpk-component-modal/index.js +37 -10
  969. package/bpk-component-modal/src/BpkModal-test.js +47 -0
  970. package/bpk-component-modal/src/{BpkModal.module.css → BpkModal.css} +1 -1
  971. package/bpk-component-modal/src/BpkModal.js +83 -105
  972. package/bpk-component-modal/src/BpkModalInner-test.js +173 -0
  973. package/bpk-component-modal/src/BpkModalInner.css +18 -0
  974. package/bpk-component-modal/src/BpkModalInner.js +94 -136
  975. package/bpk-component-modal/src/accessibility-test.js +49 -0
  976. package/bpk-component-modal/src/customPropTypes-test.js +63 -0
  977. package/bpk-component-modal/src/customPropTypes.js +16 -23
  978. package/bpk-component-modal/src/themeAttributes-test.js +28 -0
  979. package/bpk-component-modal/src/themeAttributes.js +11 -6
  980. package/bpk-component-navigation-bar/index.js +37 -25
  981. package/bpk-component-navigation-bar/src/BpkNavigationBar-test.js +112 -0
  982. package/bpk-component-navigation-bar/src/{BpkNavigationBar.module.css → BpkNavigationBar.css} +1 -1
  983. package/bpk-component-navigation-bar/src/BpkNavigationBar.js +65 -82
  984. package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink-test.js +38 -0
  985. package/bpk-component-navigation-bar/src/{BpkNavigationBarButtonLink.module.css → BpkNavigationBarButtonLink.css} +0 -0
  986. package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.js +49 -56
  987. package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton-test.js +42 -0
  988. package/bpk-component-navigation-bar/src/{BpkNavigationBarIconButton.module.css → BpkNavigationBarIconButton.css} +0 -0
  989. package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.js +51 -53
  990. package/bpk-component-navigation-bar/src/accessibility-test.js +41 -0
  991. package/bpk-component-navigation-bar/src/themeAttributes.js +9 -16
  992. package/bpk-component-navigation-stack/index.js +21 -13
  993. package/bpk-component-navigation-stack/src/BpkNavigationStack-test.js +66 -0
  994. package/bpk-component-navigation-stack/src/{BpkNavigationStack.module.css → BpkNavigationStack.css} +0 -0
  995. package/bpk-component-navigation-stack/src/BpkNavigationStack.js +104 -114
  996. package/bpk-component-navigation-stack/src/accessibility-test.js +40 -0
  997. package/bpk-component-navigation-stack/src/withNavigationStackState-test.js +109 -0
  998. package/bpk-component-navigation-stack/src/withNavigationStackState.js +68 -81
  999. package/bpk-component-nudger/index.js +29 -9
  1000. package/bpk-component-nudger/src/BpkConfigurableNudger.js +97 -126
  1001. package/bpk-component-nudger/src/BpkNudger-test.js +197 -0
  1002. package/bpk-component-nudger/src/{BpkNudger.module.css → BpkNudger.css} +1 -1
  1003. package/bpk-component-nudger/src/BpkNudger.js +55 -61
  1004. package/bpk-component-nudger/src/accessibility-test.js +55 -0
  1005. package/bpk-component-nudger/src/common-types.js +22 -25
  1006. package/bpk-component-nudger/src/themeAttributes-test.js +28 -0
  1007. package/bpk-component-nudger/src/themeAttributes.js +11 -6
  1008. package/bpk-component-overlay/index.js +27 -11
  1009. package/bpk-component-overlay/src/BpkOverlay-test.js +79 -0
  1010. package/bpk-component-overlay/src/{BpkOverlay.module.css → BpkOverlay.css} +0 -0
  1011. package/bpk-component-overlay/src/BpkOverlay.js +46 -60
  1012. package/bpk-component-overlay/src/accessibility-test.js +38 -0
  1013. package/bpk-component-pagination/index.js +21 -6
  1014. package/bpk-component-pagination/src/BpkPagination-test.js +139 -0
  1015. package/bpk-component-pagination/src/{BpkPagination.module.css → BpkPagination.css} +0 -0
  1016. package/bpk-component-pagination/src/BpkPagination.js +68 -71
  1017. package/bpk-component-pagination/src/BpkPaginationBreak-test.js +43 -0
  1018. package/bpk-component-pagination/src/BpkPaginationBreak.js +22 -12
  1019. package/bpk-component-pagination/src/BpkPaginationList-test.js +68 -0
  1020. package/bpk-component-pagination/src/{BpkPaginationList.module.css → BpkPaginationList.css} +0 -0
  1021. package/bpk-component-pagination/src/BpkPaginationList.js +61 -67
  1022. package/bpk-component-pagination/src/BpkPaginationNudger-test.js +49 -0
  1023. package/bpk-component-pagination/src/{BpkPaginationNudger.module.css → BpkPaginationNudger.css} +0 -0
  1024. package/bpk-component-pagination/src/BpkPaginationNudger.js +55 -52
  1025. package/bpk-component-pagination/src/BpkPaginationPage.css +18 -0
  1026. package/bpk-component-pagination/src/BpkPaginationPage.js +41 -31
  1027. package/bpk-component-pagination/src/accessibility-test.js +45 -0
  1028. package/bpk-component-pagination/src/themeAttributes-test.js +28 -0
  1029. package/bpk-component-pagination/src/themeAttributes.js +11 -9
  1030. package/bpk-component-panel/index.js +13 -4
  1031. package/bpk-component-panel/src/BpkPanel-test.js +59 -0
  1032. package/bpk-component-panel/src/{BpkPanel.module.css → BpkPanel.css} +0 -0
  1033. package/bpk-component-panel/src/BpkPanel.js +48 -42
  1034. package/bpk-component-panel/src/accessibility-test.js +38 -0
  1035. package/bpk-component-phone-input/index.js +13 -9
  1036. package/bpk-component-phone-input/src/BpkPhoneInput-test.js +148 -0
  1037. package/bpk-component-phone-input/src/{BpkPhoneInput.module.css → BpkPhoneInput.css} +1 -1
  1038. package/bpk-component-phone-input/src/BpkPhoneInput.js +119 -158
  1039. package/bpk-component-phone-input/src/accessibility-test.js +66 -0
  1040. package/bpk-component-popover/index.js +37 -17
  1041. package/bpk-component-popover/src/BpkPopover-test.js +150 -0
  1042. package/bpk-component-popover/src/BpkPopover.css +18 -0
  1043. package/bpk-component-popover/src/BpkPopover.js +111 -147
  1044. package/bpk-component-popover/src/BpkPopoverPortal-test.js +224 -0
  1045. package/bpk-component-popover/src/BpkPopoverPortal.js +162 -163
  1046. package/bpk-component-popover/src/accessibility-test.js +61 -0
  1047. package/bpk-component-popover/src/constants.js +13 -6
  1048. package/bpk-component-popover/src/keyboardFocusScope.js +26 -15
  1049. package/bpk-component-popover/src/themeAttributes-test.js +28 -0
  1050. package/bpk-component-popover/src/themeAttributes.js +11 -6
  1051. package/bpk-component-price/index.js +27 -7
  1052. package/bpk-component-price/src/BpkPrice-test.js +65 -0
  1053. package/bpk-component-price/src/BpkPrice.css +18 -0
  1054. package/bpk-component-price/src/BpkPrice.js +76 -101
  1055. package/bpk-component-price/src/accessibility-test.js +42 -0
  1056. package/bpk-component-price/src/common-types.js +13 -8
  1057. package/bpk-component-progress/index.js +21 -8
  1058. package/bpk-component-progress/src/BpkProgress-test.js +139 -0
  1059. package/bpk-component-progress/src/{BpkProgress.module.css → BpkProgress.css} +0 -0
  1060. package/bpk-component-progress/src/BpkProgress.js +123 -115
  1061. package/bpk-component-progress/src/accessibility-test.js +47 -0
  1062. package/bpk-component-progress/src/themeAttributes-test.js +28 -0
  1063. package/bpk-component-progress/src/themeAttributes.js +9 -4
  1064. package/bpk-component-radio/index.js +21 -8
  1065. package/bpk-component-radio/src/BpkRadio-test.js +120 -0
  1066. package/bpk-component-radio/src/{BpkRadio.module.css → BpkRadio.css} +0 -0
  1067. package/bpk-component-radio/src/BpkRadio.js +56 -77
  1068. package/bpk-component-radio/src/accessibility-test.js +41 -0
  1069. package/bpk-component-radio/src/themeAttributes-test.js +28 -0
  1070. package/bpk-component-radio/src/themeAttributes.js +9 -4
  1071. package/bpk-component-rating/index.js +27 -7
  1072. package/bpk-component-rating/src/BpkRating-test.js +219 -0
  1073. package/bpk-component-rating/src/BpkRating.css +18 -0
  1074. package/bpk-component-rating/src/BpkRating.js +100 -129
  1075. package/bpk-component-rating/src/accessibility-test.js +43 -0
  1076. package/bpk-component-rating/src/common-types.js +15 -7
  1077. package/bpk-component-rtl-toggle/index.js +21 -6
  1078. package/bpk-component-rtl-toggle/src/BpkRtlToggle-test.js +43 -0
  1079. package/bpk-component-rtl-toggle/src/BpkRtlToggle.js +54 -66
  1080. package/bpk-component-rtl-toggle/src/accessibility-test.js +38 -0
  1081. package/bpk-component-rtl-toggle/src/updateOnDirectionChange-test.js +48 -0
  1082. package/bpk-component-rtl-toggle/src/updateOnDirectionChange.js +36 -47
  1083. package/bpk-component-rtl-toggle/src/utils.js +12 -6
  1084. package/bpk-component-scrollable-calendar/index.js +45 -17
  1085. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendar-test.js +106 -0
  1086. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendar.js +17 -18
  1087. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarDate-test.js +95 -0
  1088. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarDate.js +46 -38
  1089. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid-test.js +147 -0
  1090. package/bpk-component-scrollable-calendar/src/{BpkScrollableCalendarGrid.module.css → BpkScrollableCalendarGrid.css} +0 -0
  1091. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.js +57 -50
  1092. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList-test.js +127 -0
  1093. package/bpk-component-scrollable-calendar/src/{BpkScrollableCalendarGridList.module.css → BpkScrollableCalendarGridList.css} +0 -0
  1094. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.js +112 -132
  1095. package/bpk-component-scrollable-calendar/src/accessibility-test.js +76 -0
  1096. package/bpk-component-scrollable-calendar/src/utils.js +13 -5
  1097. package/bpk-component-scrollable-calendar/test-utils.js +211 -244
  1098. package/bpk-component-section-list/index.js +29 -9
  1099. package/bpk-component-section-list/src/BpkSectionList-test.js +51 -0
  1100. package/bpk-component-section-list/src/BpkSectionList.js +27 -32
  1101. package/bpk-component-section-list/src/BpkSectionListItem-test.js +67 -0
  1102. package/bpk-component-section-list/src/{BpkSectionListItem.module.css → BpkSectionListItem.css} +0 -0
  1103. package/bpk-component-section-list/src/BpkSectionListItem.js +71 -86
  1104. package/bpk-component-section-list/src/BpkSectionListSection-test.js +51 -0
  1105. package/bpk-component-section-list/src/{BpkSectionListSection.module.css → BpkSectionListSection.css} +0 -0
  1106. package/bpk-component-section-list/src/BpkSectionListSection.js +49 -57
  1107. package/bpk-component-section-list/src/accessibility-test.js +42 -0
  1108. package/bpk-component-select/index.js +21 -9
  1109. package/bpk-component-select/src/BpkSelect-test.js +270 -0
  1110. package/bpk-component-select/src/{BpkSelect.module.css → BpkSelect.css} +0 -0
  1111. package/bpk-component-select/src/BpkSelect.js +63 -100
  1112. package/bpk-component-select/src/accessibility-test.js +54 -0
  1113. package/bpk-component-select/src/themeAttributes-test.js +28 -0
  1114. package/bpk-component-select/src/themeAttributes.js +9 -2
  1115. package/bpk-component-skip-link/index.js +21 -8
  1116. package/bpk-component-skip-link/src/BpkSkipLink-test.js +58 -0
  1117. package/bpk-component-skip-link/src/{BpkSkipLink.module.css → BpkSkipLink.css} +0 -0
  1118. package/bpk-component-skip-link/src/BpkSkipLink.js +44 -49
  1119. package/bpk-component-skip-link/src/accessibility-test.js +41 -0
  1120. package/bpk-component-skip-link/src/themeAttributes-test.js +28 -0
  1121. package/bpk-component-skip-link/src/themeAttributes.js +9 -2
  1122. package/bpk-component-slider/index.js +21 -6
  1123. package/bpk-component-slider/src/BpkSlider-test.js +107 -0
  1124. package/bpk-component-slider/src/{BpkSlider.module.css → BpkSlider.css} +0 -0
  1125. package/bpk-component-slider/src/BpkSlider.js +52 -49
  1126. package/bpk-component-slider/src/accessibility-test.js +67 -0
  1127. package/bpk-component-slider/src/themeAttributes-test.js +28 -0
  1128. package/bpk-component-slider/src/themeAttributes.js +9 -2
  1129. package/bpk-component-spinner/index.js +44 -30
  1130. package/bpk-component-spinner/src/BpkExtraLargeSpinner-test.js +61 -0
  1131. package/bpk-component-spinner/src/BpkExtraLargeSpinner.js +46 -51
  1132. package/bpk-component-spinner/src/BpkLargeSpinner-test.js +69 -0
  1133. package/bpk-component-spinner/src/BpkLargeSpinner.js +47 -54
  1134. package/bpk-component-spinner/src/BpkSpinner-test.js +69 -0
  1135. package/bpk-component-spinner/src/{BpkSpinner.module.css → BpkSpinner.css} +1 -1
  1136. package/bpk-component-spinner/src/BpkSpinner.js +47 -53
  1137. package/bpk-component-spinner/src/accessibility-test.js +60 -0
  1138. package/bpk-component-spinner/src/spinnerTypes.js +10 -5
  1139. package/bpk-component-spinner/src/themeAttributes-test.js +28 -0
  1140. package/bpk-component-spinner/src/themeAttributes.js +9 -4
  1141. package/bpk-component-split-input/index.js +21 -10
  1142. package/bpk-component-split-input/src/BpkInputField.css +18 -0
  1143. package/bpk-component-split-input/src/BpkInputField.js +70 -56
  1144. package/bpk-component-split-input/src/BpkSplitInput-test.js +51 -0
  1145. package/bpk-component-split-input/src/BpkSplitInput.css +18 -0
  1146. package/bpk-component-split-input/src/BpkSplitInput.js +243 -218
  1147. package/bpk-component-split-input/src/accessibility-test.js +38 -0
  1148. package/bpk-component-star-rating/index.js +75 -21
  1149. package/bpk-component-star-rating/src/BpkInteractiveStar-test.js +71 -0
  1150. package/bpk-component-star-rating/src/{BpkInteractiveStar.module.css → BpkInteractiveStar.css} +0 -0
  1151. package/bpk-component-star-rating/src/BpkInteractiveStar.js +60 -75
  1152. package/bpk-component-star-rating/src/BpkInteractiveStarRating-test.js +153 -0
  1153. package/bpk-component-star-rating/src/BpkInteractiveStarRating.js +67 -84
  1154. package/bpk-component-star-rating/src/BpkStar-test.js +93 -0
  1155. package/bpk-component-star-rating/src/{BpkStar.module.css → BpkStar.css} +0 -0
  1156. package/bpk-component-star-rating/src/BpkStar.js +85 -89
  1157. package/bpk-component-star-rating/src/BpkStarRating-test.js +131 -0
  1158. package/bpk-component-star-rating/src/{BpkStarRating.module.css → BpkStarRating.css} +0 -0
  1159. package/bpk-component-star-rating/src/BpkStarRating.js +68 -89
  1160. package/bpk-component-star-rating/src/accessibility-test.js +56 -0
  1161. package/bpk-component-star-rating/src/themeAttributes-test.js +28 -0
  1162. package/bpk-component-star-rating/src/themeAttributes.js +9 -4
  1163. package/bpk-component-star-rating/src/withInteractiveStarRatingState-test.js +79 -0
  1164. package/bpk-component-star-rating/src/withInteractiveStarRatingState.js +71 -83
  1165. package/bpk-component-switch/index.js +31 -11
  1166. package/bpk-component-switch/src/BpkSwitch-test.js +78 -0
  1167. package/bpk-component-switch/src/{BpkSwitch.module.css → BpkSwitch.css} +0 -0
  1168. package/bpk-component-switch/src/BpkSwitch.js +52 -64
  1169. package/bpk-component-switch/src/accessibility-test.js +40 -0
  1170. package/bpk-component-switch/src/themeAttributes-test.js +28 -0
  1171. package/bpk-component-switch/src/themeAttributes.js +9 -2
  1172. package/bpk-component-table/index.js +55 -35
  1173. package/bpk-component-table/src/BpkTable-test.js +51 -0
  1174. package/bpk-component-table/src/{BpkTable.module.css → BpkTable.css} +0 -0
  1175. package/bpk-component-table/src/BpkTable.js +37 -45
  1176. package/bpk-component-table/src/BpkTableBody-test.js +52 -0
  1177. package/bpk-component-table/src/BpkTableBody.js +17 -12
  1178. package/bpk-component-table/src/BpkTableCell-test.js +48 -0
  1179. package/bpk-component-table/src/BpkTableCell.js +40 -45
  1180. package/bpk-component-table/src/BpkTableHead-test.js +52 -0
  1181. package/bpk-component-table/src/BpkTableHead.js +17 -12
  1182. package/bpk-component-table/src/BpkTableHeadCell-test.js +60 -0
  1183. package/bpk-component-table/src/BpkTableHeadCell.js +44 -48
  1184. package/bpk-component-table/src/BpkTableRow-test.js +52 -0
  1185. package/bpk-component-table/src/BpkTableRow.js +17 -12
  1186. package/bpk-component-table/src/accessibility-test.js +48 -0
  1187. package/bpk-component-text/index.js +27 -7
  1188. package/bpk-component-text/src/BpkText-test.js +137 -0
  1189. package/bpk-component-text/src/{BpkText.module.css → BpkText.css} +1 -1
  1190. package/bpk-component-text/src/BpkText.js +52 -89
  1191. package/bpk-component-text/src/accessibility-test.js +38 -0
  1192. package/bpk-component-textarea/index.js +21 -8
  1193. package/bpk-component-textarea/src/BpkTextarea-test.js +50 -0
  1194. package/bpk-component-textarea/src/{BpkTextarea.module.css → BpkTextarea.css} +0 -0
  1195. package/bpk-component-textarea/src/BpkTextarea.js +42 -55
  1196. package/bpk-component-textarea/src/accessibility-test.js +44 -0
  1197. package/bpk-component-textarea/src/themeAttributes-test.js +28 -0
  1198. package/bpk-component-textarea/src/themeAttributes.js +9 -4
  1199. package/bpk-component-theme-toggle/index.js +21 -6
  1200. package/{bpk-component-badge/src/BpkBadge.module.scss → bpk-component-theme-toggle/src/BpkThemeToggle-test.js} +18 -38
  1201. package/bpk-component-theme-toggle/src/{BpkThemeToggle.module.css → BpkThemeToggle.css} +0 -0
  1202. package/bpk-component-theme-toggle/src/BpkThemeToggle.js +94 -91
  1203. package/bpk-component-theme-toggle/src/accessibility-test.js +38 -0
  1204. package/bpk-component-theme-toggle/src/theming.js +57 -99
  1205. package/bpk-component-theme-toggle/src/updateOnThemeChange-test.js +61 -0
  1206. package/bpk-component-theme-toggle/src/updateOnThemeChange.js +49 -53
  1207. package/bpk-component-theme-toggle/src/utils.js +10 -3
  1208. package/bpk-component-ticket/index.js +13 -6
  1209. package/bpk-component-ticket/src/BpkTicket-test.js +105 -0
  1210. package/bpk-component-ticket/src/BpkTicket.css +18 -0
  1211. package/bpk-component-ticket/src/BpkTicket.js +74 -118
  1212. package/bpk-component-ticket/src/accessibility-test.js +40 -0
  1213. package/bpk-component-tooltip/index.js +21 -10
  1214. package/bpk-component-tooltip/src/BpkTooltip-test.js +66 -0
  1215. package/bpk-component-tooltip/src/BpkTooltip.css +18 -0
  1216. package/bpk-component-tooltip/src/BpkTooltip.js +76 -95
  1217. package/bpk-component-tooltip/src/BpkTooltipPortal-test.js +72 -0
  1218. package/bpk-component-tooltip/src/BpkTooltipPortal.js +138 -168
  1219. package/bpk-component-tooltip/src/accessibility-test.js +41 -0
  1220. package/bpk-component-tooltip/src/constants.js +17 -8
  1221. package/bpk-react-utils/index.js +106 -42
  1222. package/bpk-react-utils/src/Portal-test.js +630 -0
  1223. package/bpk-react-utils/src/Portal-v1-test.js +367 -0
  1224. package/bpk-react-utils/src/Portal-v1.js +81 -101
  1225. package/bpk-react-utils/src/Portal.js +88 -98
  1226. package/bpk-react-utils/src/TransitionInitialMount-test.js +39 -0
  1227. package/bpk-react-utils/src/TransitionInitialMount.js +38 -36
  1228. package/bpk-react-utils/src/accessibility-test.js +75 -0
  1229. package/bpk-react-utils/src/cssModules-test.js +58 -0
  1230. package/bpk-react-utils/src/cssModules.js +15 -10
  1231. package/bpk-react-utils/src/deprecated.js +19 -19
  1232. package/bpk-react-utils/src/deviceDetection-test.js +81 -0
  1233. package/bpk-react-utils/src/deviceDetection.js +12 -8
  1234. package/bpk-react-utils/src/isRTL-test.js +59 -0
  1235. package/bpk-react-utils/src/isRTL.js +11 -12
  1236. package/bpk-react-utils/src/withDefaultProps-test.js +60 -0
  1237. package/bpk-react-utils/src/withDefaultProps.js +45 -53
  1238. package/bpk-react-utils/src/wrapDisplayName-test.js +36 -0
  1239. package/bpk-react-utils/src/wrapDisplayName.js +9 -2
  1240. package/bpk-scrim-utils/index.js +20 -6
  1241. package/bpk-scrim-utils/src/BpkScrim-test.js +43 -0
  1242. package/bpk-scrim-utils/src/BpkScrim.js +34 -30
  1243. package/bpk-scrim-utils/src/accessibility-test.js +56 -0
  1244. package/bpk-scrim-utils/src/{bpk-scrim-content.module.css → bpk-scrim-content.css} +0 -0
  1245. package/bpk-scrim-utils/src/{bpk-scrim.module.css → bpk-scrim.css} +1 -1
  1246. package/bpk-scrim-utils/src/customPropTypes-test.js +42 -0
  1247. package/bpk-scrim-utils/src/customPropTypes.js +12 -15
  1248. package/bpk-scrim-utils/src/scroll-utils.js +27 -16
  1249. package/bpk-scrim-utils/src/withScrim-test.js +172 -0
  1250. package/bpk-scrim-utils/src/withScrim.js +119 -104
  1251. package/bpk-storybook-utils/index.js +47 -0
  1252. package/bpk-storybook-utils/src/BpkDarkExampleWrapper-test.js +43 -0
  1253. package/bpk-storybook-utils/src/BpkDarkExampleWrapper.css +18 -0
  1254. package/bpk-storybook-utils/src/BpkDarkExampleWrapper.js +46 -0
  1255. package/bpk-storybook-utils/src/BpkStorybookUtils-test.js +36 -0
  1256. package/{bpk-component-image/src/BpkBackgroundImage.module.scss → bpk-storybook-utils/src/BpkStorybookUtils.js} +21 -23
  1257. package/bpk-storybook-utils/src/accessibility-test.js +38 -0
  1258. package/bpk-theming/index.js +13 -4
  1259. package/bpk-theming/src/BpkThemeProvider-test.js +177 -0
  1260. package/bpk-theming/src/BpkThemeProvider.js +82 -63
  1261. package/bpk-theming/src/accessibility-test.js +45 -0
  1262. package/package.json +1 -1
  1263. package/{bpk-component-blockquote/src/BpkBlockquote.module.scss → react-version-test.js} +9 -12
  1264. package/bpk-animate-height/README.md +0 -55
  1265. package/bpk-animate-height/package.json +0 -26
  1266. package/bpk-component-accordion/README.md +0 -124
  1267. package/bpk-component-accordion/package.json +0 -31
  1268. package/bpk-component-accordion/src/BpkAccordion.module.scss +0 -23
  1269. package/bpk-component-accordion/src/BpkAccordionItem.module.scss +0 -117
  1270. package/bpk-component-aria-live/README.md +0 -42
  1271. package/bpk-component-aria-live/package.json +0 -31
  1272. package/bpk-component-aria-live/src/BpkAriaLive.module.scss +0 -25
  1273. package/bpk-component-autosuggest/README.md +0 -126
  1274. package/bpk-component-autosuggest/package.json +0 -29
  1275. package/bpk-component-autosuggest/src/BpkAutosuggest.module.scss +0 -156
  1276. package/bpk-component-badge/README.md +0 -39
  1277. package/bpk-component-badge/package.json +0 -29
  1278. package/bpk-component-banner-alert/README.md +0 -153
  1279. package/bpk-component-banner-alert/package.json +0 -34
  1280. package/bpk-component-banner-alert/src/BpkAnimateAndFade.module.scss +0 -53
  1281. package/bpk-component-banner-alert/src/BpkBannerAlert.module.scss +0 -163
  1282. package/bpk-component-barchart/README.md +0 -189
  1283. package/bpk-component-barchart/data.json +0 -102
  1284. package/bpk-component-barchart/package.json +0 -35
  1285. package/bpk-component-barchart/src/BpkBarchartBar.module.scss +0 -68
  1286. package/bpk-component-barchart/src/BpkChartGridLines.module.scss +0 -26
  1287. package/bpk-component-blockquote/README.md +0 -35
  1288. package/bpk-component-blockquote/package.json +0 -24
  1289. package/bpk-component-breadcrumb/README.md +0 -58
  1290. package/bpk-component-breadcrumb/package.json +0 -27
  1291. package/bpk-component-breadcrumb/src/BpkBreadcrumb.module.scss +0 -27
  1292. package/bpk-component-breakpoint/README.md +0 -34
  1293. package/bpk-component-breakpoint/package.json +0 -28
  1294. package/bpk-component-button/README.md +0 -140
  1295. package/bpk-component-button/package.json +0 -26
  1296. package/bpk-component-button/src/BpkButtonBase.module.css +0 -18
  1297. package/bpk-component-button/src/BpkButtonDestructive.module.css +0 -18
  1298. package/bpk-component-button/src/BpkButtonDestructive.module.scss +0 -24
  1299. package/bpk-component-button/src/BpkButtonFeatured.module.scss +0 -23
  1300. package/bpk-component-button/src/BpkButtonLink.module.css +0 -18
  1301. package/bpk-component-button/src/BpkButtonLink.module.scss +0 -25
  1302. package/bpk-component-button/src/BpkButtonLinkOnDark.module.scss +0 -23
  1303. package/bpk-component-button/src/BpkButtonOutline.module.scss +0 -23
  1304. package/bpk-component-button/src/BpkButtonPrimaryOnDark.module.scss +0 -23
  1305. package/bpk-component-button/src/BpkButtonPrimaryOnLight.module.scss +0 -23
  1306. package/bpk-component-button/src/BpkButtonSecondary.module.css +0 -18
  1307. package/bpk-component-button/src/BpkButtonSecondary.module.scss +0 -23
  1308. package/bpk-component-button/src/BpkButtonSecondaryOnDark.module.scss +0 -23
  1309. package/bpk-component-calendar/DOCS.md +0 -29
  1310. package/bpk-component-calendar/README.md +0 -406
  1311. package/bpk-component-calendar/package.json +0 -34
  1312. package/bpk-component-calendar/src/BpkCalendarDate.module.scss +0 -164
  1313. package/bpk-component-calendar/src/BpkCalendarGrid.module.scss +0 -64
  1314. package/bpk-component-calendar/src/BpkCalendarGridHeader.module.scss +0 -53
  1315. package/bpk-component-calendar/src/BpkCalendarGridTransition.module.scss +0 -47
  1316. package/bpk-component-calendar/src/BpkCalendarNav.module.scss +0 -89
  1317. package/bpk-component-calendar/src/_variables.scss +0 -24
  1318. package/bpk-component-card/README.md +0 -34
  1319. package/bpk-component-card/package.json +0 -28
  1320. package/bpk-component-card/src/BpkCard.module.scss +0 -27
  1321. package/bpk-component-checkbox/README.md +0 -47
  1322. package/bpk-component-checkbox/package.json +0 -29
  1323. package/bpk-component-checkbox/src/BpkCheckbox.module.scss +0 -70
  1324. package/bpk-component-chip/README.md +0 -111
  1325. package/bpk-component-chip/package.json +0 -29
  1326. package/bpk-component-chip/src/BpkSelectableChip.module.scss +0 -23
  1327. package/bpk-component-close-button/README.md +0 -27
  1328. package/bpk-component-close-button/package.json +0 -28
  1329. package/bpk-component-close-button/src/BpkCloseButton.module.scss +0 -51
  1330. package/bpk-component-code/README.md +0 -43
  1331. package/bpk-component-code/package.json +0 -24
  1332. package/bpk-component-code/src/BpkCode.module.scss +0 -27
  1333. package/bpk-component-content-container/README.md +0 -33
  1334. package/bpk-component-content-container/package.json +0 -24
  1335. package/bpk-component-content-container/src/BpkContentContainer.module.css +0 -18
  1336. package/bpk-component-content-container/src/BpkContentContainer.module.scss +0 -41
  1337. package/bpk-component-datatable/README.md +0 -141
  1338. package/bpk-component-datatable/package.json +0 -30
  1339. package/bpk-component-datatable/src/BpkDataTable.module.scss +0 -92
  1340. package/bpk-component-datatable/src/BpkDataTableColumn.module.scss +0 -65
  1341. package/bpk-component-datepicker/README.md +0 -177
  1342. package/bpk-component-datepicker/package.json +0 -33
  1343. package/bpk-component-datepicker/src/BpkDatepicker.module.scss +0 -25
  1344. package/bpk-component-description-list/README.md +0 -46
  1345. package/bpk-component-description-list/package.json +0 -24
  1346. package/bpk-component-description-list/src/BpkDescriptionList.module.scss +0 -37
  1347. package/bpk-component-dialog/README.md +0 -105
  1348. package/bpk-component-dialog/package.json +0 -32
  1349. package/bpk-component-dialog/src/BpkDialog.module.scss +0 -80
  1350. package/bpk-component-dialog/src/BpkDialogInner.module.css +0 -18
  1351. package/bpk-component-dialog/src/BpkDialogInner.module.scss +0 -62
  1352. package/bpk-component-drawer/README.md +0 -90
  1353. package/bpk-component-drawer/package.json +0 -34
  1354. package/bpk-component-drawer/src/BpkDrawer.module.scss +0 -23
  1355. package/bpk-component-drawer/src/BpkDrawerContent.module.scss +0 -107
  1356. package/bpk-component-fieldset/README.md +0 -73
  1357. package/bpk-component-fieldset/package.json +0 -36
  1358. package/bpk-component-fieldset/src/BpkFieldset.module.scss +0 -39
  1359. package/bpk-component-flare/README.md +0 -52
  1360. package/bpk-component-flare/package.json +0 -29
  1361. package/bpk-component-flare/src/bpk-content-bubble.module.scss +0 -60
  1362. package/bpk-component-flare/src/bpk-flare-bar.module.scss +0 -74
  1363. package/bpk-component-flare/src/svgs/corner-radius.svg +0 -1
  1364. package/bpk-component-flare/src/svgs/pointer.svg +0 -1
  1365. package/bpk-component-floating-notification/README.md +0 -53
  1366. package/bpk-component-floating-notification/package.json +0 -25
  1367. package/bpk-component-floating-notification/src/BpkFloatingNotification.module.css +0 -18
  1368. package/bpk-component-floating-notification/src/BpkFloatingNotification.module.scss +0 -96
  1369. package/bpk-component-form-validation/README.md +0 -33
  1370. package/bpk-component-form-validation/package.json +0 -34
  1371. package/bpk-component-form-validation/src/BpkFormValidation.module.scss +0 -44
  1372. package/bpk-component-graphic-promotion/README.md +0 -68
  1373. package/bpk-component-graphic-promotion/package.json +0 -25
  1374. package/bpk-component-graphic-promotion/src/BpkGraphicPromo.module.scss +0 -260
  1375. package/bpk-component-graphic-promotion/src/custom-breakpoints.module.scss +0 -70
  1376. package/bpk-component-grid/README.md +0 -90
  1377. package/bpk-component-grid/package.json +0 -24
  1378. package/bpk-component-grid/src/BpkGridColumn.module.css +0 -18
  1379. package/bpk-component-grid/src/BpkGridColumn.module.scss +0 -73
  1380. package/bpk-component-grid/src/BpkGridContainer.module.css +0 -18
  1381. package/bpk-component-grid/src/BpkGridContainer.module.scss +0 -33
  1382. package/bpk-component-grid/src/BpkGridRow.module.scss +0 -29
  1383. package/bpk-component-grid-toggle/README.md +0 -27
  1384. package/bpk-component-grid-toggle/package.json +0 -25
  1385. package/bpk-component-grid-toggle/src/BpkGridToggle.module.scss +0 -52
  1386. package/bpk-component-horizontal-nav/README.md +0 -103
  1387. package/bpk-component-horizontal-nav/package.json +0 -30
  1388. package/bpk-component-horizontal-nav/src/BpkHorizontalNav.module.scss +0 -37
  1389. package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.module.scss +0 -152
  1390. package/bpk-component-icon/README.md +0 -79
  1391. package/bpk-component-icon/package.json +0 -34
  1392. package/bpk-component-icon/src/BpkIcon.module.scss +0 -33
  1393. package/bpk-component-icon/src/withDescription.module.scss +0 -22
  1394. package/bpk-component-image/README.md +0 -142
  1395. package/bpk-component-image/package.json +0 -31
  1396. package/bpk-component-image/src/BpkImage.module.scss +0 -89
  1397. package/bpk-component-infinite-scroll/README.md +0 -187
  1398. package/bpk-component-infinite-scroll/package.json +0 -31
  1399. package/bpk-component-infinite-scroll/src/withInfiniteScroll.module.scss +0 -25
  1400. package/bpk-component-input/README.md +0 -121
  1401. package/bpk-component-input/package.json +0 -30
  1402. package/bpk-component-input/src/BpkClearButton.module.scss +0 -40
  1403. package/bpk-component-input/src/BpkInput.module.scss +0 -86
  1404. package/bpk-component-label/README.md +0 -30
  1405. package/bpk-component-label/package.json +0 -24
  1406. package/bpk-component-label/src/BpkLabel.module.scss +0 -43
  1407. package/bpk-component-link/README.md +0 -68
  1408. package/bpk-component-link/package.json +0 -28
  1409. package/bpk-component-link/src/BpkLink.module.scss +0 -31
  1410. package/bpk-component-list/README.md +0 -48
  1411. package/bpk-component-list/package.json +0 -24
  1412. package/bpk-component-list/src/BpkList.module.css +0 -18
  1413. package/bpk-component-list/src/BpkList.module.scss +0 -37
  1414. package/bpk-component-loading-button/README.md +0 -48
  1415. package/bpk-component-loading-button/package.json +0 -30
  1416. package/bpk-component-loading-button/src/BpkLoadingButton.module.scss +0 -65
  1417. package/bpk-component-map/README.md +0 -213
  1418. package/bpk-component-map/package.json +0 -32
  1419. package/bpk-component-map/src/BpkIconMarker.module.scss +0 -74
  1420. package/bpk-component-map/src/BpkIconMarkerBackground.module.scss +0 -53
  1421. package/bpk-component-map/src/BpkPriceMarker.module.scss +0 -146
  1422. package/bpk-component-map/src/DefaultLoadingElement.module.scss +0 -28
  1423. package/bpk-component-mobile-scroll-container/README.md +0 -74
  1424. package/bpk-component-mobile-scroll-container/package.json +0 -28
  1425. package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.module.scss +0 -50
  1426. package/bpk-component-modal/README.md +0 -114
  1427. package/bpk-component-modal/package.json +0 -33
  1428. package/bpk-component-modal/src/BpkModal.module.scss +0 -46
  1429. package/bpk-component-modal/src/BpkModalInner.module.css +0 -18
  1430. package/bpk-component-modal/src/BpkModalInner.module.scss +0 -123
  1431. package/bpk-component-navigation-bar/README.md +0 -114
  1432. package/bpk-component-navigation-bar/package.json +0 -32
  1433. package/bpk-component-navigation-bar/src/BpkNavigationBar.module.scss +0 -77
  1434. package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.module.scss +0 -51
  1435. package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.module.scss +0 -43
  1436. package/bpk-component-navigation-stack/README.md +0 -48
  1437. package/bpk-component-navigation-stack/package.json +0 -32
  1438. package/bpk-component-navigation-stack/src/BpkNavigationStack.module.scss +0 -51
  1439. package/bpk-component-nudger/README.md +0 -170
  1440. package/bpk-component-nudger/package.json +0 -32
  1441. package/bpk-component-nudger/src/BpkNudger.module.scss +0 -49
  1442. package/bpk-component-overlay/README.md +0 -51
  1443. package/bpk-component-overlay/package.json +0 -28
  1444. package/bpk-component-overlay/src/BpkOverlay.module.scss +0 -41
  1445. package/bpk-component-pagination/README.md +0 -59
  1446. package/bpk-component-pagination/package.json +0 -28
  1447. package/bpk-component-pagination/src/BpkPagination.module.scss +0 -22
  1448. package/bpk-component-pagination/src/BpkPaginationList.module.scss +0 -45
  1449. package/bpk-component-pagination/src/BpkPaginationNudger.module.scss +0 -74
  1450. package/bpk-component-pagination/src/BpkPaginationPage.module.css +0 -18
  1451. package/bpk-component-pagination/src/BpkPaginationPage.module.scss +0 -92
  1452. package/bpk-component-panel/README.md +0 -33
  1453. package/bpk-component-panel/package.json +0 -24
  1454. package/bpk-component-panel/src/BpkPanel.module.scss +0 -31
  1455. package/bpk-component-phone-input/README.md +0 -100
  1456. package/bpk-component-phone-input/package.json +0 -33
  1457. package/bpk-component-phone-input/src/BpkPhoneInput.module.scss +0 -42
  1458. package/bpk-component-popover/README.md +0 -128
  1459. package/bpk-component-popover/package.json +0 -35
  1460. package/bpk-component-popover/src/BpkPopover.module.css +0 -18
  1461. package/bpk-component-popover/src/BpkPopover.module.scss +0 -128
  1462. package/bpk-component-price/README.md +0 -37
  1463. package/bpk-component-price/package.json +0 -24
  1464. package/bpk-component-price/src/BpkPrice.module.scss +0 -61
  1465. package/bpk-component-progress/README.md +0 -56
  1466. package/bpk-component-progress/package.json +0 -30
  1467. package/bpk-component-progress/src/BpkProgress.module.scss +0 -64
  1468. package/bpk-component-radio/README.md +0 -43
  1469. package/bpk-component-radio/package.json +0 -28
  1470. package/bpk-component-radio/src/BpkRadio.module.scss +0 -78
  1471. package/bpk-component-rating/README.md +0 -80
  1472. package/bpk-component-rating/package.json +0 -29
  1473. package/bpk-component-rating/src/BpkRating.module.css +0 -18
  1474. package/bpk-component-rating/src/BpkRating.module.scss +0 -86
  1475. package/bpk-component-rtl-toggle/README.md +0 -26
  1476. package/bpk-component-rtl-toggle/package.json +0 -24
  1477. package/bpk-component-scrollable-calendar/README.md +0 -102
  1478. package/bpk-component-scrollable-calendar/package.json +0 -32
  1479. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.module.scss +0 -31
  1480. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.module.scss +0 -37
  1481. package/bpk-component-section-list/README.md +0 -52
  1482. package/bpk-component-section-list/package.json +0 -30
  1483. package/bpk-component-section-list/src/BpkSectionListItem.module.scss +0 -54
  1484. package/bpk-component-section-list/src/BpkSectionListSection.module.scss +0 -35
  1485. package/bpk-component-select/README.md +0 -47
  1486. package/bpk-component-select/package.json +0 -27
  1487. package/bpk-component-select/src/BpkSelect.module.scss +0 -126
  1488. package/bpk-component-skip-link/README.md +0 -30
  1489. package/bpk-component-skip-link/package.json +0 -24
  1490. package/bpk-component-skip-link/src/BpkSkipLink.module.scss +0 -50
  1491. package/bpk-component-slider/README.md +0 -43
  1492. package/bpk-component-slider/package.json +0 -29
  1493. package/bpk-component-slider/src/BpkSlider.module.scss +0 -103
  1494. package/bpk-component-spinner/README.md +0 -40
  1495. package/bpk-component-spinner/changelog.yml +0 -55
  1496. package/bpk-component-spinner/package.json +0 -25
  1497. package/bpk-component-spinner/src/BpkSpinner.module.scss +0 -57
  1498. package/bpk-component-split-input/README.md +0 -42
  1499. package/bpk-component-split-input/package.json +0 -24
  1500. package/bpk-component-split-input/src/BpkInputField.module.scss +0 -34
  1501. package/bpk-component-split-input/src/BpkSplitInput.module.scss +0 -36
  1502. package/bpk-component-star-rating/README.md +0 -99
  1503. package/bpk-component-star-rating/package.json +0 -29
  1504. package/bpk-component-star-rating/src/BpkInteractiveStar.module.scss +0 -66
  1505. package/bpk-component-star-rating/src/BpkStar.module.scss +0 -63
  1506. package/bpk-component-star-rating/src/BpkStarRating.module.scss +0 -21
  1507. package/bpk-component-switch/README.md +0 -37
  1508. package/bpk-component-switch/package.json +0 -24
  1509. package/bpk-component-switch/src/BpkSwitch.module.scss +0 -93
  1510. package/bpk-component-table/README.md +0 -66
  1511. package/bpk-component-table/package.json +0 -24
  1512. package/bpk-component-table/src/BpkTable.module.scss +0 -39
  1513. package/bpk-component-text/README.md +0 -76
  1514. package/bpk-component-text/package.json +0 -24
  1515. package/bpk-component-text/src/BpkText.module.scss +0 -139
  1516. package/bpk-component-textarea/README.md +0 -34
  1517. package/bpk-component-textarea/package.json +0 -28
  1518. package/bpk-component-textarea/src/BpkTextarea.module.scss +0 -33
  1519. package/bpk-component-theme-toggle/README.md +0 -30
  1520. package/bpk-component-theme-toggle/package.json +0 -27
  1521. package/bpk-component-theme-toggle/src/BpkThemeToggle.module.scss +0 -25
  1522. package/bpk-component-ticket/README.md +0 -37
  1523. package/bpk-component-ticket/package.json +0 -28
  1524. package/bpk-component-ticket/src/BpkTicket.module.css +0 -18
  1525. package/bpk-component-ticket/src/BpkTicket.module.scss +0 -145
  1526. package/bpk-component-tooltip/README.md +0 -56
  1527. package/bpk-component-tooltip/package.json +0 -29
  1528. package/bpk-component-tooltip/src/BpkTooltip.module.css +0 -18
  1529. package/bpk-component-tooltip/src/BpkTooltip.module.scss +0 -144
  1530. package/bpk-react-utils/README.md +0 -251
  1531. package/bpk-react-utils/package.json +0 -25
  1532. package/bpk-scrim-utils/README.md +0 -50
  1533. package/bpk-scrim-utils/package.json +0 -25
  1534. package/bpk-scrim-utils/src/bpk-scrim-content.module.scss +0 -32
  1535. package/bpk-scrim-utils/src/bpk-scrim.module.scss +0 -51
  1536. package/bpk-theming/README.md +0 -43
  1537. package/bpk-theming/package.json +0 -23
@@ -1,86 +1,74 @@
1
- /*
2
- * Backpack - Skyscanner's Design System
3
- *
4
- * Copyright 2016 Skyscanner Ltd
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _propTypes = _interopRequireDefault(require("prop-types"));
9
+
10
+ var _react = _interopRequireWildcard(require("react"));
11
+
12
+ var _bpkReactUtils = require("../../bpk-react-utils");
13
+
14
+ var _dateUtils = require("./date-utils");
15
+
16
+ var _customProptypes = _interopRequireWildcard(require("./custom-proptypes"));
18
17
 
19
- import PropTypes from 'prop-types';
20
- import React, { Component } from 'react';
21
-
22
- import { cssModules, deprecated } from '../../bpk-react-utils';
23
-
24
- import {
25
- isSameDay,
26
- isSameWeek,
27
- isSameMonth,
28
- isToday,
29
- isWithinRange,
30
- startOfMonth,
31
- endOfMonth,
32
- } from './date-utils';
33
- import CustomPropTypes, { CALENDAR_SELECTION_TYPE } from './custom-proptypes';
34
- // TODO: Move this to `Week.scss`
35
- // This should be using its own css file as `BpkCalendarGrid` is also importing `BpkCalendarGrid.module.scss`
36
- // and the order of css imports can break the component.
37
- import STYLES from './BpkCalendarGrid.module.scss';
38
- import { SELECTION_TYPES } from './BpkCalendarDate';
39
-
40
- const getClassName = cssModules(STYLES);
18
+ var _BpkCalendarGridModule = _interopRequireDefault(require("./BpkCalendarGrid.css"));
19
+
20
+ var _BpkCalendarDate = require("./BpkCalendarDate");
21
+
22
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
23
+
24
+ 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; }
25
+
26
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
27
+
28
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
29
+
30
+ const getClassName = (0, _bpkReactUtils.cssModules)(_BpkCalendarGridModule.default);
41
31
 
42
32
  const shallowEqualProps = (props1, props2, propList) => {
43
33
  let i = 0;
34
+
44
35
  for (; i < propList.length; i += 1) {
45
36
  if (props1[propList[i]] !== props2[propList[i]]) {
46
37
  return false;
47
38
  }
48
39
  }
40
+
49
41
  return true;
50
42
  };
51
43
 
52
44
  function or(total, bool) {
53
45
  return total || bool;
54
46
  }
55
-
56
47
  /**
57
48
  * Determines if the current date is selected
58
49
  * @param {Date} date the current date from the calendar
59
50
  * @param {Object} selectionConfiguration the current selection configuration
60
51
  * @returns {Boolean} true is selected and false if not
61
52
  */
53
+
54
+
62
55
  function getSelectedDate(date, selectionConfiguration) {
63
- const startDate =
64
- selectionConfiguration.date || selectionConfiguration.startDate;
65
- const { endDate } = selectionConfiguration;
66
- const sameStartDay = isSameDay(date, startDate);
67
- const sameEndDay = isSameDay(date, endDate);
68
-
69
- if (
70
- (startDate &&
71
- endDate &&
72
- (sameStartDay ||
73
- sameEndDay ||
74
- isWithinRange(date, { start: startDate, end: endDate }))) ||
75
- (startDate && !endDate && sameStartDay) ||
76
- sameStartDay
77
- ) {
56
+ const startDate = selectionConfiguration.date || selectionConfiguration.startDate;
57
+ const {
58
+ endDate
59
+ } = selectionConfiguration;
60
+ const sameStartDay = (0, _dateUtils.isSameDay)(date, startDate);
61
+ const sameEndDay = (0, _dateUtils.isSameDay)(date, endDate);
62
+
63
+ if (startDate && endDate && (sameStartDay || sameEndDay || (0, _dateUtils.isWithinRange)(date, {
64
+ start: startDate,
65
+ end: endDate
66
+ })) || startDate && !endDate && sameStartDay || sameStartDay) {
78
67
  return true;
79
68
  }
80
69
 
81
70
  return false;
82
71
  }
83
-
84
72
  /**
85
73
  * Gets the correct selection type for the current date
86
74
  * @param {Date} date the current date of the calendar
@@ -91,114 +79,102 @@ function getSelectedDate(date, selectionConfiguration) {
91
79
  * @param {Boolean} ignoreOutsideDate ignore date outside current month
92
80
  * @returns {String} selection type to be passed to the date
93
81
  */
94
- function getSelectionType(
95
- date,
96
- selectionConfiguration,
97
- formatDateFull,
98
- month,
99
- weekStartsOn,
100
- ignoreOutsideDate,
101
- ) {
102
- const { endDate, startDate } = selectionConfiguration;
103
- const sameStartDay = isSameDay(date, startDate);
104
- const sameEndDay = isSameDay(date, endDate);
82
+
83
+
84
+ function getSelectionType(date, selectionConfiguration, formatDateFull, month, weekStartsOn, ignoreOutsideDate) {
85
+ const {
86
+ endDate,
87
+ startDate
88
+ } = selectionConfiguration;
89
+ const sameStartDay = (0, _dateUtils.isSameDay)(date, startDate);
90
+ const sameEndDay = (0, _dateUtils.isSameDay)(date, endDate);
105
91
  const rangeDates = startDate && endDate;
106
- const isEmptyCell = !isSameMonth(date, month) && ignoreOutsideDate;
107
-
108
- if (
109
- selectionConfiguration.type === CALENDAR_SELECTION_TYPE.single &&
110
- selectionConfiguration.date &&
111
- (selectionConfiguration.date === formatDateFull(date) ||
112
- formatDateFull(selectionConfiguration.date) === formatDateFull(date))
113
- ) {
114
- return SELECTION_TYPES.single;
92
+ const isEmptyCell = !(0, _dateUtils.isSameMonth)(date, month) && ignoreOutsideDate;
93
+
94
+ if (selectionConfiguration.type === _customProptypes.CALENDAR_SELECTION_TYPE.single && selectionConfiguration.date && (selectionConfiguration.date === formatDateFull(date) || formatDateFull(selectionConfiguration.date) === formatDateFull(date))) {
95
+ return _BpkCalendarDate.SELECTION_TYPES.single;
115
96
  }
116
- if (selectionConfiguration.type === CALENDAR_SELECTION_TYPE.range) {
117
- if (
118
- (startDate && !endDate && sameStartDay) ||
119
- (rangeDates && sameStartDay && sameEndDay)
120
- ) {
121
- return SELECTION_TYPES.single;
97
+
98
+ if (selectionConfiguration.type === _customProptypes.CALENDAR_SELECTION_TYPE.range) {
99
+ if (startDate && !endDate && sameStartDay || rangeDates && sameStartDay && sameEndDay) {
100
+ return _BpkCalendarDate.SELECTION_TYPES.single;
122
101
  }
123
- if (
124
- isEmptyCell &&
125
- rangeDates &&
126
- ((isSameWeek(startDate, startOfMonth(startDate), { weekStartsOn }) &&
127
- isSameWeek(date, startDate, { weekStartsOn })) ||
128
- (isSameWeek(endDate, endOfMonth(endDate), { weekStartsOn }) &&
129
- isSameWeek(date, endDate, { weekStartsOn })))
130
- ) {
131
- return SELECTION_TYPES.none;
102
+
103
+ if (isEmptyCell && rangeDates && ((0, _dateUtils.isSameWeek)(startDate, (0, _dateUtils.startOfMonth)(startDate), {
104
+ weekStartsOn
105
+ }) && (0, _dateUtils.isSameWeek)(date, startDate, {
106
+ weekStartsOn
107
+ }) || (0, _dateUtils.isSameWeek)(endDate, (0, _dateUtils.endOfMonth)(endDate), {
108
+ weekStartsOn
109
+ }) && (0, _dateUtils.isSameWeek)(date, endDate, {
110
+ weekStartsOn
111
+ }))) {
112
+ return _BpkCalendarDate.SELECTION_TYPES.none;
132
113
  }
133
- if (
134
- isEmptyCell &&
135
- rangeDates &&
136
- !isSameMonth(startDate, endDate) &&
137
- ((isSameWeek(startDate, endOfMonth(startDate), { weekStartsOn }) &&
138
- isSameWeek(date, startDate, { weekStartsOn })) ||
139
- (isSameWeek(endDate, startOfMonth(endDate), { weekStartsOn }) &&
140
- isSameWeek(date, endDate, { weekStartsOn })))
141
- ) {
142
- return SELECTION_TYPES.middle;
114
+
115
+ if (isEmptyCell && rangeDates && !(0, _dateUtils.isSameMonth)(startDate, endDate) && ((0, _dateUtils.isSameWeek)(startDate, (0, _dateUtils.endOfMonth)(startDate), {
116
+ weekStartsOn
117
+ }) && (0, _dateUtils.isSameWeek)(date, startDate, {
118
+ weekStartsOn
119
+ }) || (0, _dateUtils.isSameWeek)(endDate, (0, _dateUtils.startOfMonth)(endDate), {
120
+ weekStartsOn
121
+ }) && (0, _dateUtils.isSameWeek)(date, endDate, {
122
+ weekStartsOn
123
+ }))) {
124
+ return _BpkCalendarDate.SELECTION_TYPES.middle;
143
125
  }
144
- if (
145
- rangeDates &&
146
- isWithinRange(date, { start: startDate, end: endDate }) &&
147
- !sameStartDay &&
148
- !sameEndDay
149
- ) {
150
- return SELECTION_TYPES.middle;
126
+
127
+ if (rangeDates && (0, _dateUtils.isWithinRange)(date, {
128
+ start: startDate,
129
+ end: endDate
130
+ }) && !sameStartDay && !sameEndDay) {
131
+ return _BpkCalendarDate.SELECTION_TYPES.middle;
151
132
  }
133
+
152
134
  if (startDate && formatDateFull(startDate) === formatDateFull(date)) {
153
- return SELECTION_TYPES.start;
135
+ return _BpkCalendarDate.SELECTION_TYPES.start;
154
136
  }
137
+
155
138
  if (endDate && formatDateFull(endDate) === formatDateFull(date)) {
156
- return SELECTION_TYPES.end;
139
+ return _BpkCalendarDate.SELECTION_TYPES.end;
157
140
  }
158
141
  }
159
142
 
160
- return SELECTION_TYPES.none;
143
+ return _BpkCalendarDate.SELECTION_TYPES.none;
161
144
  }
162
-
163
145
  /**
164
146
  * Handles changing selected date when in single mode
165
147
  * @param {Object} props current props
166
148
  * @param {Object} nextProps next props as the component is updating
167
149
  * @returns {Boolean} based on if the date has changed
168
150
  */
151
+
152
+
169
153
  const singleDateHandler = (props, nextProps) => {
170
154
  const currentSelectConfig = props.selectionConfiguration;
171
155
  const nextSelectConfig = nextProps.selectionConfiguration;
172
156
 
173
- if (
174
- (isSameWeek(nextSelectConfig.date, nextProps.dates[0], {
175
- weekStartsOn: nextProps.weekStartsOn,
176
- }) ||
177
- isSameWeek(currentSelectConfig.date, props.dates[0], {
178
- weekStartsOn: props.weekStartsOn,
179
- })) &&
180
- currentSelectConfig.date !== nextSelectConfig.date
181
- ) {
157
+ if (((0, _dateUtils.isSameWeek)(nextSelectConfig.date, nextProps.dates[0], {
158
+ weekStartsOn: nextProps.weekStartsOn
159
+ }) || (0, _dateUtils.isSameWeek)(currentSelectConfig.date, props.dates[0], {
160
+ weekStartsOn: props.weekStartsOn
161
+ })) && currentSelectConfig.date !== nextSelectConfig.date) {
182
162
  return true;
183
163
  }
164
+
184
165
  return false;
185
166
  };
186
-
187
167
  /**
188
168
  * Handles changing selected date when in range mode
189
169
  * @param {Object} props current props
190
170
  * @param {Object} nextProps next props as the component is updating
191
171
  * @returns {Boolean} based on if the date has changed
192
172
  */
173
+
174
+
193
175
  const rangeDateHandler = (props, nextProps) => {
194
- const startDateChanged = !isSameDay(
195
- props.selectionConfiguration.startDate,
196
- nextProps.selectionConfiguration.startDate,
197
- );
198
- const endDateChanged = !isSameDay(
199
- props.selectionConfiguration.endDate,
200
- nextProps.selectionConfiguration.endDate,
201
- );
176
+ const startDateChanged = !(0, _dateUtils.isSameDay)(props.selectionConfiguration.startDate, nextProps.selectionConfiguration.startDate);
177
+ const endDateChanged = !(0, _dateUtils.isSameDay)(props.selectionConfiguration.endDate, nextProps.selectionConfiguration.endDate);
202
178
 
203
179
  if (startDateChanged || endDateChanged) {
204
180
  return true;
@@ -206,79 +182,59 @@ const rangeDateHandler = (props, nextProps) => {
206
182
 
207
183
  return false;
208
184
  };
209
-
210
185
  /*
211
186
  Week - table row containing a week full of DateContainer components
212
187
  */
213
- class Week extends Component {
188
+
189
+
190
+ class Week extends _react.Component {
214
191
  shouldComponentUpdate(nextProps) {
215
- const shallowProps = [
216
- 'DateComponent',
217
- 'dateModifiers',
218
- 'formatDateFull',
219
- 'isKeyboardFocusable',
220
- 'markOutsideDays',
221
- 'markToday',
222
- 'onDateClick',
223
- 'onDateKeyDown',
224
- 'preventKeyboardFocus',
225
- 'weekStartsOn',
226
- 'dates',
227
- 'cellClassName',
228
- ];
229
-
230
- // If any of the props have changed, component should update.
192
+ const shallowProps = ['DateComponent', 'dateModifiers', 'formatDateFull', 'isKeyboardFocusable', 'markOutsideDays', 'markToday', 'onDateClick', 'onDateKeyDown', 'preventKeyboardFocus', 'weekStartsOn', 'dates', 'cellClassName']; // If any of the props have changed, component should update.
193
+
231
194
  if (!shallowEqualProps(this.props, nextProps, shallowProps)) {
232
195
  return true;
233
- }
234
-
235
- // If focusedDate is changing, and it'll be included as part
196
+ } // If focusedDate is changing, and it'll be included as part
236
197
  // of either the week we're rendering now or the next week
237
198
  // we'll render, component should update.
238
- if (
239
- (isSameWeek(nextProps.focusedDate, nextProps.dates[0], {
240
- weekStartsOn: nextProps.weekStartsOn,
241
- }) ||
242
- isSameWeek(this.props.focusedDate, this.props.dates[0], {
243
- weekStartsOn: this.props.weekStartsOn,
244
- })) &&
245
- this.props.focusedDate !== nextProps.focusedDate
246
- ) {
247
- return true;
248
- }
249
199
 
250
- // If selected date is changing, and it'll be included as part
200
+
201
+ if (((0, _dateUtils.isSameWeek)(nextProps.focusedDate, nextProps.dates[0], {
202
+ weekStartsOn: nextProps.weekStartsOn
203
+ }) || (0, _dateUtils.isSameWeek)(this.props.focusedDate, this.props.dates[0], {
204
+ weekStartsOn: this.props.weekStartsOn
205
+ })) && this.props.focusedDate !== nextProps.focusedDate) {
206
+ return true;
207
+ } // If selected date is changing, and it'll be included as part
251
208
  // of either the week we're rendering now or the next week we'll
252
209
  // render, component should update.
253
- if (
254
- this.props.selectionConfiguration.type ===
255
- CALENDAR_SELECTION_TYPE.single &&
256
- this.props.selectionConfiguration.date
257
- ) {
210
+
211
+
212
+ if (this.props.selectionConfiguration.type === _customProptypes.CALENDAR_SELECTION_TYPE.single && this.props.selectionConfiguration.date) {
258
213
  return singleDateHandler(this.props, nextProps);
259
214
  }
260
- if (
261
- this.props.selectionConfiguration.type === CALENDAR_SELECTION_TYPE.range
262
- ) {
215
+
216
+ if (this.props.selectionConfiguration.type === _customProptypes.CALENDAR_SELECTION_TYPE.range) {
263
217
  return rangeDateHandler(this.props, nextProps);
264
- }
218
+ } // If min date is changing, component should update.
219
+
265
220
 
266
- // If min date is changing, component should update.
267
221
  if (nextProps.minDate) {
268
222
  if (nextProps.minDate !== this.props.minDate) {
269
223
  return true;
270
224
  }
271
- if (!isSameDay(nextProps.minDate, this.props.minDate)) {
225
+
226
+ if (!(0, _dateUtils.isSameDay)(nextProps.minDate, this.props.minDate)) {
272
227
  return true;
273
228
  }
274
- }
229
+ } // If max date is changing, component should update.
230
+
275
231
 
276
- // If max date is changing, component should update.
277
232
  if (nextProps.maxDate) {
278
233
  if (nextProps.maxDate !== this.props.maxDate) {
279
234
  return true;
280
235
  }
281
- if (!isSameDay(nextProps.maxDate, this.props.maxDate)) {
236
+
237
+ if (!(0, _dateUtils.isSameDay)(nextProps.maxDate, this.props.maxDate)) {
282
238
  return true;
283
239
  }
284
240
  }
@@ -304,14 +260,11 @@ class Week extends Component {
304
260
  onDateKeyDown,
305
261
  preventKeyboardFocus,
306
262
  selectionConfiguration,
307
- weekStartsOn,
263
+ weekStartsOn
308
264
  } = this.props;
309
265
 
310
266
  if (ignoreOutsideDate) {
311
- const daysOutside = this.props.dates.map((date) =>
312
- isSameMonth(date, month),
313
- );
314
-
267
+ const daysOutside = this.props.dates.map(date => (0, _dateUtils.isSameMonth)(date, month));
315
268
  const shouldRender = daysOutside.reduce(or);
316
269
 
317
270
  if (!shouldRender) {
@@ -319,92 +272,68 @@ class Week extends Component {
319
272
  }
320
273
  }
321
274
 
322
- return (
323
- <div className={getClassName('bpk-calendar-grid__week')}>
324
- {this.props.dates.map((date) => {
325
- const isBlocked =
326
- minDate && maxDate
327
- ? !isWithinRange(date, { start: minDate, end: maxDate })
328
- : false;
329
-
330
- const dateSelectionType = getSelectionType(
331
- date,
332
- selectionConfiguration,
333
- formatDateFull,
334
- month,
335
- weekStartsOn,
336
- ignoreOutsideDate,
337
- );
338
-
339
- return (
340
- <DateContainer
341
- className={this.props.cellClassName}
342
- isEmptyCell={!isSameMonth(date, month) && ignoreOutsideDate}
343
- isBlocked={isBlocked}
344
- key={date.getDate()}
345
- selectionType={dateSelectionType}
346
- >
347
- <DateComponent
348
- date={date}
349
- modifiers={dateModifiers}
350
- aria-label={formatDateFull(date)}
351
- onClick={onDateClick}
352
- onDateKeyDown={onDateKeyDown}
353
- preventKeyboardFocus={preventKeyboardFocus}
354
- isKeyboardFocusable={isKeyboardFocusable}
355
- isFocused={isSameDay(date, focusedDate)}
356
- isSelected={getSelectedDate(date, selectionConfiguration)}
357
- isBlocked={isBlocked}
358
- isOutside={markOutsideDays && !isSameMonth(date, month)}
359
- isToday={markToday && isToday(date)}
360
- selectionType={dateSelectionType}
361
- {...dateProps}
362
- />
363
- </DateContainer>
364
- );
365
- })}
366
- </div>
367
- );
275
+ return /*#__PURE__*/_react.default.createElement("div", {
276
+ className: getClassName('bpk-calendar-grid__week')
277
+ }, this.props.dates.map(date => {
278
+ const isBlocked = minDate && maxDate ? !(0, _dateUtils.isWithinRange)(date, {
279
+ start: minDate,
280
+ end: maxDate
281
+ }) : false;
282
+ const dateSelectionType = getSelectionType(date, selectionConfiguration, formatDateFull, month, weekStartsOn, ignoreOutsideDate);
283
+ return /*#__PURE__*/_react.default.createElement(DateContainer, {
284
+ className: this.props.cellClassName,
285
+ isEmptyCell: !(0, _dateUtils.isSameMonth)(date, month) && ignoreOutsideDate,
286
+ isBlocked: isBlocked,
287
+ key: date.getDate(),
288
+ selectionType: dateSelectionType
289
+ }, /*#__PURE__*/_react.default.createElement(DateComponent, _extends({
290
+ date: date,
291
+ modifiers: dateModifiers,
292
+ "aria-label": formatDateFull(date),
293
+ onClick: onDateClick,
294
+ onDateKeyDown: onDateKeyDown,
295
+ preventKeyboardFocus: preventKeyboardFocus,
296
+ isKeyboardFocusable: isKeyboardFocusable,
297
+ isFocused: (0, _dateUtils.isSameDay)(date, focusedDate),
298
+ isSelected: getSelectedDate(date, selectionConfiguration),
299
+ isBlocked: isBlocked,
300
+ isOutside: markOutsideDays && !(0, _dateUtils.isSameMonth)(date, month),
301
+ isToday: markToday && (0, _dateUtils.isToday)(date),
302
+ selectionType: dateSelectionType
303
+ }, dateProps)));
304
+ }));
368
305
  }
306
+
369
307
  }
370
308
 
371
309
  Week.propTypes = {
372
- DateComponent: PropTypes.elementType.isRequired,
373
- dateModifiers: CustomPropTypes.DateModifiers.isRequired,
374
- dates: PropTypes.arrayOf(Date).isRequired,
375
- formatDateFull: PropTypes.func.isRequired,
376
- preventKeyboardFocus: PropTypes.bool.isRequired,
377
- markToday: PropTypes.bool.isRequired,
378
- markOutsideDays: PropTypes.bool.isRequired,
379
- isKeyboardFocusable: PropTypes.bool.isRequired,
380
- month: PropTypes.instanceOf(Date).isRequired,
381
- weekStartsOn: PropTypes.number.isRequired,
382
- daysOfWeek: deprecated(
383
- CustomPropTypes.DaysOfWeek,
384
- 'daysOfWeek property in Week is now deprecated as no longer part of the calendar, so is no longer required',
385
- ),
386
- focusedDate: PropTypes.instanceOf(Date),
387
- maxDate: PropTypes.instanceOf(Date),
388
- minDate: PropTypes.instanceOf(Date),
389
- cellClassName: PropTypes.string,
390
- onDateClick: PropTypes.func,
391
- onDateKeyDown: PropTypes.func,
392
- selectionConfiguration: CustomPropTypes.SelectionConfiguration,
393
- selectedDate: deprecated(
394
- PropTypes.instanceOf(Date),
395
- 'Use selectionConfiguration to set selectedDate',
396
- ),
397
- selectionEnd: PropTypes.instanceOf(Date),
398
- selectionStart: PropTypes.instanceOf(Date),
310
+ DateComponent: _propTypes.default.elementType.isRequired,
311
+ dateModifiers: _customProptypes.default.DateModifiers.isRequired,
312
+ dates: _propTypes.default.arrayOf(Date).isRequired,
313
+ formatDateFull: _propTypes.default.func.isRequired,
314
+ preventKeyboardFocus: _propTypes.default.bool.isRequired,
315
+ markToday: _propTypes.default.bool.isRequired,
316
+ markOutsideDays: _propTypes.default.bool.isRequired,
317
+ isKeyboardFocusable: _propTypes.default.bool.isRequired,
318
+ month: _propTypes.default.instanceOf(Date).isRequired,
319
+ weekStartsOn: _propTypes.default.number.isRequired,
320
+ daysOfWeek: (0, _bpkReactUtils.deprecated)(_customProptypes.default.DaysOfWeek, 'daysOfWeek property in Week is now deprecated as no longer part of the calendar, so is no longer required'),
321
+ focusedDate: _propTypes.default.instanceOf(Date),
322
+ maxDate: _propTypes.default.instanceOf(Date),
323
+ minDate: _propTypes.default.instanceOf(Date),
324
+ cellClassName: _propTypes.default.string,
325
+ onDateClick: _propTypes.default.func,
326
+ onDateKeyDown: _propTypes.default.func,
327
+ selectionConfiguration: _customProptypes.default.SelectionConfiguration,
328
+ selectedDate: (0, _bpkReactUtils.deprecated)(_propTypes.default.instanceOf(Date), 'Use selectionConfiguration to set selectedDate'),
329
+ selectionEnd: _propTypes.default.instanceOf(Date),
330
+ selectionStart: _propTypes.default.instanceOf(Date),
399
331
  // eslint-disable-next-line react/require-default-props
400
- showWeekendSeparator: deprecated(
401
- PropTypes.bool,
402
- 'The showWeekendSeparator prop in Week is now deprecated as no longer part of the calendar, so is no longer required',
403
- ),
404
- ignoreOutsideDate: PropTypes.bool,
405
- dateProps: PropTypes.object, // eslint-disable-line react/forbid-prop-types
406
- };
332
+ showWeekendSeparator: (0, _bpkReactUtils.deprecated)(_propTypes.default.bool, 'The showWeekendSeparator prop in Week is now deprecated as no longer part of the calendar, so is no longer required'),
333
+ ignoreOutsideDate: _propTypes.default.bool,
334
+ dateProps: _propTypes.default.object // eslint-disable-line react/forbid-prop-types
407
335
 
336
+ };
408
337
  Week.defaultProps = {
409
338
  cellClassName: null,
410
339
  daysOfWeek: null,
@@ -413,43 +342,44 @@ Week.defaultProps = {
413
342
  minDate: null,
414
343
  onDateClick: null,
415
344
  onDateKeyDown: null,
416
- selectionConfiguration: { type: CALENDAR_SELECTION_TYPE.single, date: null },
345
+ selectionConfiguration: {
346
+ type: _customProptypes.CALENDAR_SELECTION_TYPE.single,
347
+ date: null
348
+ },
417
349
  selectedDate: null,
418
350
  selectionEnd: null,
419
351
  selectionStart: null,
420
352
  ignoreOutsideDate: false,
421
- dateProps: null,
353
+ dateProps: null
422
354
  };
423
-
424
355
  /*
425
356
  DateContainer - one for each date in the grid; wraps the actual BpkCalendarDate (or custom) component
426
357
  */
427
- const DateContainer = (props) => {
428
- const { children, className, isBlocked, isEmptyCell, selectionType } = props;
429
358
 
430
- const classNames = getClassName(
431
- 'bpk-calendar-grid__date',
432
- `bpk-calendar-grid__date--${selectionType}`,
359
+ const DateContainer = props => {
360
+ const {
361
+ children,
433
362
  className,
434
- );
435
-
436
- return (
437
- <div aria-hidden={isEmptyCell || isBlocked} className={classNames}>
438
- {children}
439
- </div>
440
- );
363
+ isBlocked,
364
+ isEmptyCell,
365
+ selectionType
366
+ } = props;
367
+ const classNames = getClassName('bpk-calendar-grid__date', `bpk-calendar-grid__date--${selectionType}`, className);
368
+ return /*#__PURE__*/_react.default.createElement("div", {
369
+ "aria-hidden": isEmptyCell || isBlocked,
370
+ className: classNames
371
+ }, children);
441
372
  };
442
373
 
443
374
  DateContainer.propTypes = {
444
- children: PropTypes.element.isRequired,
445
- selectionType: PropTypes.string.isRequired,
446
- isEmptyCell: PropTypes.bool.isRequired,
447
- isBlocked: PropTypes.bool.isRequired,
448
- className: PropTypes.string,
375
+ children: _propTypes.default.element.isRequired,
376
+ selectionType: _propTypes.default.string.isRequired,
377
+ isEmptyCell: _propTypes.default.bool.isRequired,
378
+ isBlocked: _propTypes.default.bool.isRequired,
379
+ className: _propTypes.default.string
449
380
  };
450
-
451
381
  DateContainer.defaultProps = {
452
- className: null,
382
+ className: null
453
383
  };
454
-
455
- export default Week;
384
+ var _default = Week;
385
+ exports.default = _default;