@skyscanner/backpack-web 6.1.0 → 7.0.0-alpha.1

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