@skyscanner/backpack-web 0.0.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 (1342) hide show
  1. package/bpk-animate-height/README.md +55 -0
  2. package/bpk-animate-height/examples.js +67 -0
  3. package/bpk-animate-height/index.js +21 -0
  4. package/bpk-animate-height/package.json +26 -0
  5. package/bpk-animate-height/src/AnimateHeight.js +184 -0
  6. package/bpk-component-accordion/README.md +129 -0
  7. package/bpk-component-accordion/examples.js +316 -0
  8. package/bpk-component-accordion/index.js +34 -0
  9. package/bpk-component-accordion/package.json +31 -0
  10. package/bpk-component-accordion/src/BpkAccordion.js +53 -0
  11. package/bpk-component-accordion/src/BpkAccordion.module.css +18 -0
  12. package/bpk-component-accordion/src/BpkAccordion.module.scss +23 -0
  13. package/bpk-component-accordion/src/BpkAccordionItem.js +150 -0
  14. package/bpk-component-accordion/src/BpkAccordionItem.module.css +18 -0
  15. package/bpk-component-accordion/src/BpkAccordionItem.module.scss +117 -0
  16. package/bpk-component-accordion/src/themeAttributes.js +25 -0
  17. package/bpk-component-accordion/src/withAccordionItemState.js +88 -0
  18. package/bpk-component-accordion/src/withSingleItemAccordionState.js +95 -0
  19. package/bpk-component-aria-live/README.md +42 -0
  20. package/bpk-component-aria-live/examples.js +248 -0
  21. package/bpk-component-aria-live/examples.module.css +18 -0
  22. package/bpk-component-aria-live/examples.module.scss +65 -0
  23. package/bpk-component-aria-live/index.js +27 -0
  24. package/bpk-component-aria-live/package.json +31 -0
  25. package/bpk-component-aria-live/src/BpkAriaLive.js +66 -0
  26. package/bpk-component-aria-live/src/BpkAriaLive.module.css +18 -0
  27. package/bpk-component-aria-live/src/BpkAriaLive.module.scss +25 -0
  28. package/bpk-component-autosuggest/README.md +126 -0
  29. package/bpk-component-autosuggest/examples.js +201 -0
  30. package/bpk-component-autosuggest/index.js +25 -0
  31. package/bpk-component-autosuggest/package.json +29 -0
  32. package/bpk-component-autosuggest/src/BpkAutosuggest.js +78 -0
  33. package/bpk-component-autosuggest/src/BpkAutosuggest.module.css +18 -0
  34. package/bpk-component-autosuggest/src/BpkAutosuggest.module.scss +156 -0
  35. package/bpk-component-autosuggest/src/BpkAutosuggestSuggestion.js +106 -0
  36. package/bpk-component-badge/BadgeLayout.js +54 -0
  37. package/bpk-component-badge/BpkBadgeLayout.module.css +18 -0
  38. package/bpk-component-badge/BpkBadgeLayout.module.scss +36 -0
  39. package/bpk-component-badge/README.md +39 -0
  40. package/bpk-component-badge/examples.js +207 -0
  41. package/bpk-component-badge/index.js +26 -0
  42. package/bpk-component-badge/package.json +29 -0
  43. package/bpk-component-badge/src/BpkBadge.js +91 -0
  44. package/bpk-component-badge/src/BpkBadge.module.css +18 -0
  45. package/bpk-component-badge/src/BpkBadge.module.scss +55 -0
  46. package/bpk-component-badge/src/themeAttributes.js +23 -0
  47. package/bpk-component-banner-alert/README.md +153 -0
  48. package/bpk-component-banner-alert/examples.js +253 -0
  49. package/bpk-component-banner-alert/examples.module.css +18 -0
  50. package/bpk-component-banner-alert/examples.module.scss +27 -0
  51. package/bpk-component-banner-alert/index.js +34 -0
  52. package/bpk-component-banner-alert/package.json +34 -0
  53. package/bpk-component-banner-alert/src/AnimateAndFade.js +184 -0
  54. package/bpk-component-banner-alert/src/BpkAnimateAndFade.module.css +18 -0
  55. package/bpk-component-banner-alert/src/BpkAnimateAndFade.module.scss +53 -0
  56. package/bpk-component-banner-alert/src/BpkBannerAlert.js +37 -0
  57. package/bpk-component-banner-alert/src/BpkBannerAlert.module.css +18 -0
  58. package/bpk-component-banner-alert/src/BpkBannerAlert.module.scss +163 -0
  59. package/bpk-component-banner-alert/src/BpkBannerAlertDismissable.js +52 -0
  60. package/bpk-component-banner-alert/src/BpkBannerAlertExpandable.js +63 -0
  61. package/bpk-component-banner-alert/src/BpkBannerAlertInner.js +261 -0
  62. package/bpk-component-banner-alert/src/common-types.js +70 -0
  63. package/bpk-component-banner-alert/src/themeAttributes.js +24 -0
  64. package/bpk-component-banner-alert/src/withBannerAlertState.js +184 -0
  65. package/bpk-component-barchart/README.md +189 -0
  66. package/bpk-component-barchart/data.json +102 -0
  67. package/bpk-component-barchart/examples.js +334 -0
  68. package/bpk-component-barchart/hocs.js +67 -0
  69. package/bpk-component-barchart/index.js +38 -0
  70. package/bpk-component-barchart/package.json +35 -0
  71. package/bpk-component-barchart/src/BpkBarchart.js +336 -0
  72. package/bpk-component-barchart/src/BpkBarchart.module.css +18 -0
  73. package/bpk-component-barchart/src/BpkBarchart.module.scss +21 -0
  74. package/bpk-component-barchart/src/BpkBarchartBar.js +152 -0
  75. package/bpk-component-barchart/src/BpkBarchartBar.module.css +18 -0
  76. package/bpk-component-barchart/src/BpkBarchartBar.module.scss +68 -0
  77. package/bpk-component-barchart/src/BpkBarchartBars.js +165 -0
  78. package/bpk-component-barchart/src/BpkBarchartDefs.js +48 -0
  79. package/bpk-component-barchart/src/BpkChartAxis.js +185 -0
  80. package/bpk-component-barchart/src/BpkChartAxis.module.css +18 -0
  81. package/bpk-component-barchart/src/BpkChartAxis.module.scss +37 -0
  82. package/bpk-component-barchart/src/BpkChartDataTable.js +76 -0
  83. package/bpk-component-barchart/src/BpkChartDataTable.module.css +18 -0
  84. package/bpk-component-barchart/src/BpkChartDataTable.module.scss +28 -0
  85. package/bpk-component-barchart/src/BpkChartGridLines.js +118 -0
  86. package/bpk-component-barchart/src/BpkChartGridLines.module.css +18 -0
  87. package/bpk-component-barchart/src/BpkChartGridLines.module.scss +26 -0
  88. package/bpk-component-barchart/src/BpkChartMargin.js +55 -0
  89. package/bpk-component-barchart/src/RTLtransforms.js +55 -0
  90. package/bpk-component-barchart/src/customPropTypes.js +51 -0
  91. package/bpk-component-barchart/src/orientation.js +22 -0
  92. package/bpk-component-barchart/src/themeAttributes.js +26 -0
  93. package/bpk-component-barchart/src/utils.js +43 -0
  94. package/bpk-component-barchart/stories.module.css +18 -0
  95. package/bpk-component-barchart/stories.module.scss +37 -0
  96. package/bpk-component-blockquote/README.md +35 -0
  97. package/bpk-component-blockquote/examples.js +33 -0
  98. package/bpk-component-blockquote/index.js +23 -0
  99. package/bpk-component-blockquote/package.json +24 -0
  100. package/bpk-component-blockquote/src/BpkBlockquote.js +50 -0
  101. package/bpk-component-blockquote/src/BpkBlockquote.module.css +18 -0
  102. package/bpk-component-blockquote/src/BpkBlockquote.module.scss +29 -0
  103. package/bpk-component-blockquote/src/themeAttributes.js +19 -0
  104. package/bpk-component-breadcrumb/README.md +58 -0
  105. package/bpk-component-breadcrumb/examples.js +57 -0
  106. package/bpk-component-breadcrumb/index.js +31 -0
  107. package/bpk-component-breadcrumb/package.json +27 -0
  108. package/bpk-component-breadcrumb/src/BpkBreadcrumb.js +111 -0
  109. package/bpk-component-breadcrumb/src/BpkBreadcrumb.module.css +18 -0
  110. package/bpk-component-breadcrumb/src/BpkBreadcrumb.module.scss +27 -0
  111. package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.js +92 -0
  112. package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.module.css +18 -0
  113. package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.module.scss +40 -0
  114. package/bpk-component-breakpoint/README.md +34 -0
  115. package/bpk-component-breakpoint/examples.js +72 -0
  116. package/bpk-component-breakpoint/examples.module.css +18 -0
  117. package/bpk-component-breakpoint/examples.module.scss +36 -0
  118. package/bpk-component-breakpoint/index.js +24 -0
  119. package/bpk-component-breakpoint/package.json +28 -0
  120. package/bpk-component-breakpoint/src/BpkBreakpoint.js +65 -0
  121. package/bpk-component-button/BpkButtonDestructive.js +21 -0
  122. package/bpk-component-button/BpkButtonFeatured.js +21 -0
  123. package/bpk-component-button/BpkButtonLink.js +21 -0
  124. package/bpk-component-button/BpkButtonOutline.js +21 -0
  125. package/bpk-component-button/BpkButtonPrimary.js +21 -0
  126. package/bpk-component-button/BpkButtonSecondary.js +21 -0
  127. package/bpk-component-button/BpkButtonStory.module.css +18 -0
  128. package/bpk-component-button/BpkButtonStory.module.scss +23 -0
  129. package/bpk-component-button/README.md +108 -0
  130. package/bpk-component-button/examples.js +213 -0
  131. package/bpk-component-button/index.js +46 -0
  132. package/bpk-component-button/package.json +26 -0
  133. package/bpk-component-button/src/BpkButton.js +93 -0
  134. package/bpk-component-button/src/BpkButtonBase.js +122 -0
  135. package/bpk-component-button/src/BpkButtonBase.module.css +18 -0
  136. package/bpk-component-button/src/BpkButtonBase.module.scss +50 -0
  137. package/bpk-component-button/src/BpkButtonDestructive.js +48 -0
  138. package/bpk-component-button/src/BpkButtonDestructive.module.css +18 -0
  139. package/bpk-component-button/src/BpkButtonDestructive.module.scss +24 -0
  140. package/bpk-component-button/src/BpkButtonFeatured.js +48 -0
  141. package/bpk-component-button/src/BpkButtonFeatured.module.css +18 -0
  142. package/bpk-component-button/src/BpkButtonFeatured.module.scss +23 -0
  143. package/bpk-component-button/src/BpkButtonLink.js +61 -0
  144. package/bpk-component-button/src/BpkButtonLink.module.css +18 -0
  145. package/bpk-component-button/src/BpkButtonLink.module.scss +29 -0
  146. package/bpk-component-button/src/BpkButtonOutline.js +48 -0
  147. package/bpk-component-button/src/BpkButtonOutline.module.css +18 -0
  148. package/bpk-component-button/src/BpkButtonOutline.module.scss +23 -0
  149. package/bpk-component-button/src/BpkButtonPrimary.js +33 -0
  150. package/bpk-component-button/src/BpkButtonSecondary.js +48 -0
  151. package/bpk-component-button/src/BpkButtonSecondary.module.css +18 -0
  152. package/bpk-component-button/src/BpkButtonSecondary.module.scss +23 -0
  153. package/bpk-component-button/src/common-types.js +62 -0
  154. package/bpk-component-button/src/commonButtonTests.js +116 -0
  155. package/bpk-component-button/src/themeAttributes.js +65 -0
  156. package/bpk-component-button/themeAttributes.js +27 -0
  157. package/bpk-component-calendar/DOCS.md +29 -0
  158. package/bpk-component-calendar/README.md +406 -0
  159. package/bpk-component-calendar/coloured-calendar-example.js +106 -0
  160. package/bpk-component-calendar/examples-components.js +299 -0
  161. package/bpk-component-calendar/examples.js +369 -0
  162. package/bpk-component-calendar/index.js +60 -0
  163. package/bpk-component-calendar/package.json +34 -0
  164. package/bpk-component-calendar/src/BpkCalendar.module.css +18 -0
  165. package/bpk-component-calendar/src/BpkCalendar.module.scss +42 -0
  166. package/bpk-component-calendar/src/BpkCalendarContainer.js +371 -0
  167. package/bpk-component-calendar/src/BpkCalendarDate.js +227 -0
  168. package/bpk-component-calendar/src/BpkCalendarDate.module.css +18 -0
  169. package/bpk-component-calendar/src/BpkCalendarDate.module.scss +164 -0
  170. package/bpk-component-calendar/src/BpkCalendarGrid.js +221 -0
  171. package/bpk-component-calendar/src/BpkCalendarGrid.module.css +18 -0
  172. package/bpk-component-calendar/src/BpkCalendarGrid.module.scss +70 -0
  173. package/bpk-component-calendar/src/BpkCalendarGridHeader.js +109 -0
  174. package/bpk-component-calendar/src/BpkCalendarGridHeader.module.css +18 -0
  175. package/bpk-component-calendar/src/BpkCalendarGridHeader.module.scss +53 -0
  176. package/bpk-component-calendar/src/BpkCalendarGridTransition.js +219 -0
  177. package/bpk-component-calendar/src/BpkCalendarGridTransition.module.css +18 -0
  178. package/bpk-component-calendar/src/BpkCalendarGridTransition.module.scss +47 -0
  179. package/bpk-component-calendar/src/BpkCalendarNav.js +175 -0
  180. package/bpk-component-calendar/src/BpkCalendarNav.module.css +18 -0
  181. package/bpk-component-calendar/src/BpkCalendarNav.module.scss +89 -0
  182. package/bpk-component-calendar/src/Week.js +452 -0
  183. package/bpk-component-calendar/src/_variables.scss +24 -0
  184. package/bpk-component-calendar/src/composeCalendar.js +211 -0
  185. package/bpk-component-calendar/src/custom-proptypes.js +94 -0
  186. package/bpk-component-calendar/src/date-utils.js +222 -0
  187. package/bpk-component-calendar/src/themeAttributes.js +30 -0
  188. package/bpk-component-calendar/src/utils.js +61 -0
  189. package/bpk-component-calendar/test-utils.js +302 -0
  190. package/bpk-component-card/README.md +34 -0
  191. package/bpk-component-card/examples.js +91 -0
  192. package/bpk-component-card/index.js +22 -0
  193. package/bpk-component-card/package.json +28 -0
  194. package/bpk-component-card/src/BpkCard.js +111 -0
  195. package/bpk-component-card/src/BpkCard.module.css +18 -0
  196. package/bpk-component-card/src/BpkCard.module.scss +27 -0
  197. package/bpk-component-checkbox/README.md +47 -0
  198. package/bpk-component-checkbox/examples.js +197 -0
  199. package/bpk-component-checkbox/index.js +25 -0
  200. package/bpk-component-checkbox/package.json +29 -0
  201. package/bpk-component-checkbox/src/BpkCheckbox.js +132 -0
  202. package/bpk-component-checkbox/src/BpkCheckbox.module.css +18 -0
  203. package/bpk-component-checkbox/src/BpkCheckbox.module.scss +70 -0
  204. package/bpk-component-checkbox/src/themeAttributes.js +21 -0
  205. package/bpk-component-chip/README.md +111 -0
  206. package/bpk-component-chip/examples.js +340 -0
  207. package/bpk-component-chip/examples.module.css +18 -0
  208. package/bpk-component-chip/examples.module.scss +33 -0
  209. package/bpk-component-chip/index.js +34 -0
  210. package/bpk-component-chip/package.json +29 -0
  211. package/bpk-component-chip/src/BpkDismissibleChip.js +55 -0
  212. package/bpk-component-chip/src/BpkSelectableChip.js +104 -0
  213. package/bpk-component-chip/src/BpkSelectableChip.module.css +18 -0
  214. package/bpk-component-chip/src/BpkSelectableChip.module.scss +23 -0
  215. package/bpk-component-chip/src/commonTypes.js +60 -0
  216. package/bpk-component-chip/src/themeAttributes.js +34 -0
  217. package/bpk-component-close-button/README.md +27 -0
  218. package/bpk-component-close-button/examples.js +30 -0
  219. package/bpk-component-close-button/index.js +23 -0
  220. package/bpk-component-close-button/package.json +28 -0
  221. package/bpk-component-close-button/src/BpkCloseButton.js +73 -0
  222. package/bpk-component-close-button/src/BpkCloseButton.module.css +18 -0
  223. package/bpk-component-close-button/src/BpkCloseButton.module.scss +51 -0
  224. package/bpk-component-code/README.md +43 -0
  225. package/bpk-component-code/examples.js +56 -0
  226. package/bpk-component-code/index.js +23 -0
  227. package/bpk-component-code/package.json +24 -0
  228. package/bpk-component-code/src/BpkCode.js +64 -0
  229. package/bpk-component-code/src/BpkCode.module.css +18 -0
  230. package/bpk-component-code/src/BpkCode.module.scss +27 -0
  231. package/bpk-component-code/src/BpkCodeBlock.js +62 -0
  232. package/bpk-component-code/src/BpkCodeBlock.module.css +18 -0
  233. package/bpk-component-code/src/BpkCodeBlock.module.scss +33 -0
  234. package/bpk-component-content-container/README.md +33 -0
  235. package/bpk-component-content-container/examples.js +307 -0
  236. package/bpk-component-content-container/index.js +21 -0
  237. package/bpk-component-content-container/package.json +24 -0
  238. package/bpk-component-content-container/src/BpkContentContainer.js +84 -0
  239. package/bpk-component-content-container/src/BpkContentContainer.module.css +18 -0
  240. package/bpk-component-content-container/src/BpkContentContainer.module.scss +41 -0
  241. package/bpk-component-datatable/README.md +141 -0
  242. package/bpk-component-datatable/examples.js +138 -0
  243. package/bpk-component-datatable/index.js +21 -0
  244. package/bpk-component-datatable/package.json +30 -0
  245. package/bpk-component-datatable/src/BpkDataTable.js +196 -0
  246. package/bpk-component-datatable/src/BpkDataTable.module.css +18 -0
  247. package/bpk-component-datatable/src/BpkDataTable.module.scss +92 -0
  248. package/bpk-component-datatable/src/BpkDataTableColumn.js +63 -0
  249. package/bpk-component-datatable/src/BpkDataTableColumn.module.css +18 -0
  250. package/bpk-component-datatable/src/BpkDataTableColumn.module.scss +65 -0
  251. package/bpk-component-datatable/src/bpkHeaderRenderer.js +109 -0
  252. package/bpk-component-datatable/src/common-types.js +50 -0
  253. package/bpk-component-datatable/src/hasChildrenOfType.js +59 -0
  254. package/bpk-component-datatable/src/sort-types.js +29 -0
  255. package/bpk-component-datatable/src/sorter.js +166 -0
  256. package/bpk-component-datatable/src/utils.js +30 -0
  257. package/bpk-component-datepicker/README.md +177 -0
  258. package/bpk-component-datepicker/examples.js +660 -0
  259. package/bpk-component-datepicker/index.js +25 -0
  260. package/bpk-component-datepicker/package.json +33 -0
  261. package/bpk-component-datepicker/src/BpkDatepicker.js +366 -0
  262. package/bpk-component-datepicker/src/BpkDatepicker.module.css +18 -0
  263. package/bpk-component-datepicker/src/BpkDatepicker.module.scss +25 -0
  264. package/bpk-component-datepicker/src/themeAttributes.js +29 -0
  265. package/bpk-component-description-list/README.md +46 -0
  266. package/bpk-component-description-list/examples.js +49 -0
  267. package/bpk-component-description-list/index.js +23 -0
  268. package/bpk-component-description-list/package.json +24 -0
  269. package/bpk-component-description-list/src/BpkDescriptionDetails.js +21 -0
  270. package/bpk-component-description-list/src/BpkDescriptionList.js +21 -0
  271. package/bpk-component-description-list/src/BpkDescriptionList.module.css +18 -0
  272. package/bpk-component-description-list/src/BpkDescriptionList.module.scss +37 -0
  273. package/bpk-component-description-list/src/BpkDescriptionTerm.js +21 -0
  274. package/bpk-component-description-list/src/ComponentFactory.js +54 -0
  275. package/bpk-component-dialog/README.md +105 -0
  276. package/bpk-component-dialog/examples.js +182 -0
  277. package/bpk-component-dialog/examples.module.css +18 -0
  278. package/bpk-component-dialog/examples.module.scss +25 -0
  279. package/bpk-component-dialog/index.js +26 -0
  280. package/bpk-component-dialog/package.json +32 -0
  281. package/bpk-component-dialog/src/BpkDialog.js +89 -0
  282. package/bpk-component-dialog/src/BpkDialog.module.css +18 -0
  283. package/bpk-component-dialog/src/BpkDialog.module.scss +80 -0
  284. package/bpk-component-dialog/src/BpkDialogInner.js +89 -0
  285. package/bpk-component-dialog/src/BpkDialogInner.module.css +18 -0
  286. package/bpk-component-dialog/src/BpkDialogInner.module.scss +62 -0
  287. package/bpk-component-dialog/src/common-types.js +99 -0
  288. package/bpk-component-dialog/stories.css +1 -0
  289. package/bpk-component-drawer/README.md +90 -0
  290. package/bpk-component-drawer/examples.js +271 -0
  291. package/bpk-component-drawer/examples.module.css +18 -0
  292. package/bpk-component-drawer/examples.module.scss +34 -0
  293. package/bpk-component-drawer/index.js +25 -0
  294. package/bpk-component-drawer/package.json +34 -0
  295. package/bpk-component-drawer/src/BpkDrawer.js +104 -0
  296. package/bpk-component-drawer/src/BpkDrawer.module.css +18 -0
  297. package/bpk-component-drawer/src/BpkDrawer.module.scss +23 -0
  298. package/bpk-component-drawer/src/BpkDrawerContent.js +168 -0
  299. package/bpk-component-drawer/src/BpkDrawerContent.module.css +18 -0
  300. package/bpk-component-drawer/src/BpkDrawerContent.module.scss +107 -0
  301. package/bpk-component-drawer/src/themeAttributes.js +23 -0
  302. package/bpk-component-fieldset/README.md +73 -0
  303. package/bpk-component-fieldset/examples.js +527 -0
  304. package/bpk-component-fieldset/examples.module.css +18 -0
  305. package/bpk-component-fieldset/examples.module.scss +46 -0
  306. package/bpk-component-fieldset/index.js +30 -0
  307. package/bpk-component-fieldset/package.json +36 -0
  308. package/bpk-component-fieldset/src/BpkFieldset.js +193 -0
  309. package/bpk-component-fieldset/src/BpkFieldset.module.css +18 -0
  310. package/bpk-component-fieldset/src/BpkFieldset.module.scss +39 -0
  311. package/bpk-component-fieldset/src/themeAttributes.js +19 -0
  312. package/bpk-component-flare/README.md +52 -0
  313. package/bpk-component-flare/examples.js +158 -0
  314. package/bpk-component-flare/examples.module.css +18 -0
  315. package/bpk-component-flare/examples.module.scss +66 -0
  316. package/bpk-component-flare/index.js +25 -0
  317. package/bpk-component-flare/package.json +29 -0
  318. package/bpk-component-flare/src/BpkContentBubble.js +102 -0
  319. package/bpk-component-flare/src/BpkFlareBar.js +76 -0
  320. package/bpk-component-flare/src/__generated__/js/corner-radius.js +5 -0
  321. package/bpk-component-flare/src/__generated__/js/pointer.js +5 -0
  322. package/bpk-component-flare/src/bpk-content-bubble.module.css +18 -0
  323. package/bpk-component-flare/src/bpk-content-bubble.module.scss +60 -0
  324. package/bpk-component-flare/src/bpk-flare-bar.module.css +18 -0
  325. package/bpk-component-flare/src/bpk-flare-bar.module.scss +74 -0
  326. package/bpk-component-flare/src/svgs/corner-radius.svg +1 -0
  327. package/bpk-component-flare/src/svgs/pointer.svg +1 -0
  328. package/bpk-component-form-validation/README.md +33 -0
  329. package/bpk-component-form-validation/examples.js +171 -0
  330. package/bpk-component-form-validation/examples.module.css +18 -0
  331. package/bpk-component-form-validation/examples.module.scss +39 -0
  332. package/bpk-component-form-validation/index.js +23 -0
  333. package/bpk-component-form-validation/package.json +34 -0
  334. package/bpk-component-form-validation/src/BpkFormValidation.js +84 -0
  335. package/bpk-component-form-validation/src/BpkFormValidation.module.css +18 -0
  336. package/bpk-component-form-validation/src/BpkFormValidation.module.scss +44 -0
  337. package/bpk-component-form-validation/src/themeAttributes.js +19 -0
  338. package/bpk-component-grid/README.md +90 -0
  339. package/bpk-component-grid/examples.js +796 -0
  340. package/bpk-component-grid/index.js +25 -0
  341. package/bpk-component-grid/package.json +24 -0
  342. package/bpk-component-grid/src/BpkGridColumn.js +117 -0
  343. package/bpk-component-grid/src/BpkGridColumn.module.css +18 -0
  344. package/bpk-component-grid/src/BpkGridColumn.module.scss +73 -0
  345. package/bpk-component-grid/src/BpkGridContainer.js +61 -0
  346. package/bpk-component-grid/src/BpkGridContainer.module.css +18 -0
  347. package/bpk-component-grid/src/BpkGridContainer.module.scss +33 -0
  348. package/bpk-component-grid/src/BpkGridRow.js +56 -0
  349. package/bpk-component-grid/src/BpkGridRow.module.css +18 -0
  350. package/bpk-component-grid/src/BpkGridRow.module.scss +29 -0
  351. package/bpk-component-grid-toggle/README.md +27 -0
  352. package/bpk-component-grid-toggle/examples.js +25 -0
  353. package/bpk-component-grid-toggle/index.js +21 -0
  354. package/bpk-component-grid-toggle/package.json +25 -0
  355. package/bpk-component-grid-toggle/src/BpkGridToggle.js +95 -0
  356. package/bpk-component-grid-toggle/src/BpkGridToggle.module.css +18 -0
  357. package/bpk-component-grid-toggle/src/BpkGridToggle.module.scss +52 -0
  358. package/bpk-component-heading/README.md +31 -0
  359. package/bpk-component-heading/examples.js +36 -0
  360. package/bpk-component-heading/index.js +23 -0
  361. package/bpk-component-heading/package.json +25 -0
  362. package/bpk-component-heading/src/BpkHeading.js +70 -0
  363. package/bpk-component-heading/src/BpkHeading.module.css +18 -0
  364. package/bpk-component-heading/src/BpkHeading.module.scss +49 -0
  365. package/bpk-component-horizontal-nav/README.md +103 -0
  366. package/bpk-component-horizontal-nav/examples.js +189 -0
  367. package/bpk-component-horizontal-nav/examples.module.css +18 -0
  368. package/bpk-component-horizontal-nav/examples.module.scss +48 -0
  369. package/bpk-component-horizontal-nav/index.js +32 -0
  370. package/bpk-component-horizontal-nav/package.json +30 -0
  371. package/bpk-component-horizontal-nav/src/BpkHorizontalNav.js +211 -0
  372. package/bpk-component-horizontal-nav/src/BpkHorizontalNav.module.css +18 -0
  373. package/bpk-component-horizontal-nav/src/BpkHorizontalNav.module.scss +37 -0
  374. package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.js +126 -0
  375. package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.module.css +18 -0
  376. package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.module.scss +152 -0
  377. package/bpk-component-icon/README.md +79 -0
  378. package/bpk-component-icon/all.js +33 -0
  379. package/bpk-component-icon/examples.js +152 -0
  380. package/bpk-component-icon/index.js +49 -0
  381. package/bpk-component-icon/lg/accessibility.js +8 -0
  382. package/bpk-component-icon/lg/account--add.js +8 -0
  383. package/bpk-component-icon/lg/account--female.js +8 -0
  384. package/bpk-component-icon/lg/account--id-card.js +8 -0
  385. package/bpk-component-icon/lg/account--name.js +8 -0
  386. package/bpk-component-icon/lg/account--permit.js +8 -0
  387. package/bpk-component-icon/lg/account-circle.js +8 -0
  388. package/bpk-component-icon/lg/account.js +8 -0
  389. package/bpk-component-icon/lg/add-circle.js +8 -0
  390. package/bpk-component-icon/lg/adult.js +8 -0
  391. package/bpk-component-icon/lg/aircon.js +8 -0
  392. package/bpk-component-icon/lg/aircraft.js +8 -0
  393. package/bpk-component-icon/lg/airline--multiple.js +8 -0
  394. package/bpk-component-icon/lg/airline.js +8 -0
  395. package/bpk-component-icon/lg/airports.js +8 -0
  396. package/bpk-component-icon/lg/alert--active.js +8 -0
  397. package/bpk-component-icon/lg/alert--add.js +8 -0
  398. package/bpk-component-icon/lg/alert--expired.js +8 -0
  399. package/bpk-component-icon/lg/alert--remove.js +8 -0
  400. package/bpk-component-icon/lg/arrow-down.js +8 -0
  401. package/bpk-component-icon/lg/arrow-left.js +8 -0
  402. package/bpk-component-icon/lg/arrow-right.js +8 -0
  403. package/bpk-component-icon/lg/arrow-up.js +8 -0
  404. package/bpk-component-icon/lg/award.js +8 -0
  405. package/bpk-component-icon/lg/baby-carriage.js +8 -0
  406. package/bpk-component-icon/lg/baggage--add.js +8 -0
  407. package/bpk-component-icon/lg/baggage--remove.js +8 -0
  408. package/bpk-component-icon/lg/baggage-cross.js +8 -0
  409. package/bpk-component-icon/lg/baggage-tick.js +8 -0
  410. package/bpk-component-icon/lg/baggage.js +8 -0
  411. package/bpk-component-icon/lg/bar.js +8 -0
  412. package/bpk-component-icon/lg/beach.js +8 -0
  413. package/bpk-component-icon/lg/beer.js +8 -0
  414. package/bpk-component-icon/lg/breakfast-cross.js +8 -0
  415. package/bpk-component-icon/lg/breakfast-tick.js +8 -0
  416. package/bpk-component-icon/lg/bus.js +8 -0
  417. package/bpk-component-icon/lg/business.js +8 -0
  418. package/bpk-component-icon/lg/cafe.js +8 -0
  419. package/bpk-component-icon/lg/calendar.js +8 -0
  420. package/bpk-component-icon/lg/call-back.js +8 -0
  421. package/bpk-component-icon/lg/camera.js +8 -0
  422. package/bpk-component-icon/lg/camper-van.js +8 -0
  423. package/bpk-component-icon/lg/car-door.js +8 -0
  424. package/bpk-component-icon/lg/car-wash.js +8 -0
  425. package/bpk-component-icon/lg/cars-flexible.js +8 -0
  426. package/bpk-component-icon/lg/cars.js +8 -0
  427. package/bpk-component-icon/lg/center-location.js +8 -0
  428. package/bpk-component-icon/lg/chart.js +8 -0
  429. package/bpk-component-icon/lg/chauffeur.js +8 -0
  430. package/bpk-component-icon/lg/chevron-down.js +8 -0
  431. package/bpk-component-icon/lg/chevron-left.js +8 -0
  432. package/bpk-component-icon/lg/chevron-right.js +8 -0
  433. package/bpk-component-icon/lg/chevron-up.js +8 -0
  434. package/bpk-component-icon/lg/child-seat.js +8 -0
  435. package/bpk-component-icon/lg/child.js +8 -0
  436. package/bpk-component-icon/lg/city-center.js +8 -0
  437. package/bpk-component-icon/lg/city.js +8 -0
  438. package/bpk-component-icon/lg/clean-policy.js +8 -0
  439. package/bpk-component-icon/lg/clean.js +8 -0
  440. package/bpk-component-icon/lg/cleaning-medical.js +8 -0
  441. package/bpk-component-icon/lg/cloakroom.js +8 -0
  442. package/bpk-component-icon/lg/close-circle.js +8 -0
  443. package/bpk-component-icon/lg/close.js +8 -0
  444. package/bpk-component-icon/lg/collapse.js +8 -0
  445. package/bpk-component-icon/lg/content--copy.js +8 -0
  446. package/bpk-component-icon/lg/content--event.js +8 -0
  447. package/bpk-component-icon/lg/content--guides.js +8 -0
  448. package/bpk-component-icon/lg/currency.js +8 -0
  449. package/bpk-component-icon/lg/data.js +8 -0
  450. package/bpk-component-icon/lg/deals.js +8 -0
  451. package/bpk-component-icon/lg/depart.js +8 -0
  452. package/bpk-component-icon/lg/device-mid.js +8 -0
  453. package/bpk-component-icon/lg/device-wide.js +8 -0
  454. package/bpk-component-icon/lg/direct.js +8 -0
  455. package/bpk-component-icon/lg/document-csv.js +8 -0
  456. package/bpk-component-icon/lg/document-pdf.js +8 -0
  457. package/bpk-component-icon/lg/download.js +8 -0
  458. package/bpk-component-icon/lg/duration.js +8 -0
  459. package/bpk-component-icon/lg/eco-leaf.js +8 -0
  460. package/bpk-component-icon/lg/edit.js +8 -0
  461. package/bpk-component-icon/lg/education.js +8 -0
  462. package/bpk-component-icon/lg/electric.js +8 -0
  463. package/bpk-component-icon/lg/end-call.js +8 -0
  464. package/bpk-component-icon/lg/estimated.js +8 -0
  465. package/bpk-component-icon/lg/exclamation-circle.js +8 -0
  466. package/bpk-component-icon/lg/exclamation.js +8 -0
  467. package/bpk-component-icon/lg/expand.js +8 -0
  468. package/bpk-component-icon/lg/explore.js +8 -0
  469. package/bpk-component-icon/lg/face--blank.js +8 -0
  470. package/bpk-component-icon/lg/face--happy.js +8 -0
  471. package/bpk-component-icon/lg/face--sad.js +8 -0
  472. package/bpk-component-icon/lg/face-id.js +8 -0
  473. package/bpk-component-icon/lg/face-mask.js +8 -0
  474. package/bpk-component-icon/lg/family.js +8 -0
  475. package/bpk-component-icon/lg/fast-track.js +8 -0
  476. package/bpk-component-icon/lg/fast-train.js +8 -0
  477. package/bpk-component-icon/lg/filter.js +8 -0
  478. package/bpk-component-icon/lg/fingerprint.js +8 -0
  479. package/bpk-component-icon/lg/flag.js +8 -0
  480. package/bpk-component-icon/lg/flask.js +8 -0
  481. package/bpk-component-icon/lg/flight-flexible.js +8 -0
  482. package/bpk-component-icon/lg/flight-landing.js +8 -0
  483. package/bpk-component-icon/lg/flight-takeoff.js +8 -0
  484. package/bpk-component-icon/lg/flight.js +8 -0
  485. package/bpk-component-icon/lg/food.js +8 -0
  486. package/bpk-component-icon/lg/gears-automatic-circle.js +8 -0
  487. package/bpk-component-icon/lg/gears-automatic.js +8 -0
  488. package/bpk-component-icon/lg/gears-manual-circle.js +8 -0
  489. package/bpk-component-icon/lg/gears-manual.js +8 -0
  490. package/bpk-component-icon/lg/globe.js +8 -0
  491. package/bpk-component-icon/lg/grid-layout.js +8 -0
  492. package/bpk-component-icon/lg/headset.js +8 -0
  493. package/bpk-component-icon/lg/health-fitness.js +8 -0
  494. package/bpk-component-icon/lg/heart--outline.js +8 -0
  495. package/bpk-component-icon/lg/heart.js +8 -0
  496. package/bpk-component-icon/lg/help-circle.js +8 -0
  497. package/bpk-component-icon/lg/help.js +8 -0
  498. package/bpk-component-icon/lg/hide.js +8 -0
  499. package/bpk-component-icon/lg/hotel-flexible.js +8 -0
  500. package/bpk-component-icon/lg/hotels--disabled-facilities.js +8 -0
  501. package/bpk-component-icon/lg/hotels--jacuzzi.js +8 -0
  502. package/bpk-component-icon/lg/hotels--pets-allowed.js +8 -0
  503. package/bpk-component-icon/lg/hotels--smoking.js +8 -0
  504. package/bpk-component-icon/lg/hotels.js +8 -0
  505. package/bpk-component-icon/lg/infant.js +8 -0
  506. package/bpk-component-icon/lg/information--language-alert.js +8 -0
  507. package/bpk-component-icon/lg/information--language-question.js +8 -0
  508. package/bpk-component-icon/lg/information--language.js +8 -0
  509. package/bpk-component-icon/lg/information-circle.js +8 -0
  510. package/bpk-component-icon/lg/information.js +8 -0
  511. package/bpk-component-icon/lg/insurance.js +8 -0
  512. package/bpk-component-icon/lg/key.js +8 -0
  513. package/bpk-component-icon/lg/keypad.js +8 -0
  514. package/bpk-component-icon/lg/landmark.js +8 -0
  515. package/bpk-component-icon/lg/language.js +8 -0
  516. package/bpk-component-icon/lg/legroom--extra.js +8 -0
  517. package/bpk-component-icon/lg/legroom--normal.js +8 -0
  518. package/bpk-component-icon/lg/legroom--reduced.js +8 -0
  519. package/bpk-component-icon/lg/leisure.js +8 -0
  520. package/bpk-component-icon/lg/lightning.js +8 -0
  521. package/bpk-component-icon/lg/list.js +8 -0
  522. package/bpk-component-icon/lg/location.js +8 -0
  523. package/bpk-component-icon/lg/lock.js +8 -0
  524. package/bpk-component-icon/lg/logout.js +8 -0
  525. package/bpk-component-icon/lg/long-arrow-down.js +8 -0
  526. package/bpk-component-icon/lg/long-arrow-left.js +8 -0
  527. package/bpk-component-icon/lg/long-arrow-right.js +8 -0
  528. package/bpk-component-icon/lg/long-arrow-up.js +8 -0
  529. package/bpk-component-icon/lg/lounge.js +8 -0
  530. package/bpk-component-icon/lg/luggageall.js +8 -0
  531. package/bpk-component-icon/lg/mail.js +8 -0
  532. package/bpk-component-icon/lg/map.js +8 -0
  533. package/bpk-component-icon/lg/meal.js +8 -0
  534. package/bpk-component-icon/lg/media.js +8 -0
  535. package/bpk-component-icon/lg/menu--horizontal.js +8 -0
  536. package/bpk-component-icon/lg/menu--vertical.js +8 -0
  537. package/bpk-component-icon/lg/menu.js +8 -0
  538. package/bpk-component-icon/lg/mileage.js +8 -0
  539. package/bpk-component-icon/lg/minus.js +8 -0
  540. package/bpk-component-icon/lg/mobile.js +8 -0
  541. package/bpk-component-icon/lg/money.js +8 -0
  542. package/bpk-component-icon/lg/multiple-bookings.js +8 -0
  543. package/bpk-component-icon/lg/music.js +8 -0
  544. package/bpk-component-icon/lg/mute.js +8 -0
  545. package/bpk-component-icon/lg/native-android--back.js +8 -0
  546. package/bpk-component-icon/lg/native-android--close.js +8 -0
  547. package/bpk-component-icon/lg/native-android--forward.js +8 -0
  548. package/bpk-component-icon/lg/native-ios-close.js +8 -0
  549. package/bpk-component-icon/lg/navigation.js +8 -0
  550. package/bpk-component-icon/lg/new-window.js +8 -0
  551. package/bpk-component-icon/lg/news.js +8 -0
  552. package/bpk-component-icon/lg/night.js +8 -0
  553. package/bpk-component-icon/lg/not-allowed.js +8 -0
  554. package/bpk-component-icon/lg/onsen.js +8 -0
  555. package/bpk-component-icon/lg/paid.js +8 -0
  556. package/bpk-component-icon/lg/paperclip.js +8 -0
  557. package/bpk-component-icon/lg/parking.js +8 -0
  558. package/bpk-component-icon/lg/passport.js +8 -0
  559. package/bpk-component-icon/lg/pause.js +8 -0
  560. package/bpk-component-icon/lg/payment-card.js +8 -0
  561. package/bpk-component-icon/lg/petrol.js +8 -0
  562. package/bpk-component-icon/lg/phone-call.js +8 -0
  563. package/bpk-component-icon/lg/picture.js +8 -0
  564. package/bpk-component-icon/lg/pin.js +8 -0
  565. package/bpk-component-icon/lg/plane-seat.js +8 -0
  566. package/bpk-component-icon/lg/play.js +8 -0
  567. package/bpk-component-icon/lg/plus.js +8 -0
  568. package/bpk-component-icon/lg/policy.js +8 -0
  569. package/bpk-component-icon/lg/powerplug.js +8 -0
  570. package/bpk-component-icon/lg/ppe.js +8 -0
  571. package/bpk-component-icon/lg/price-alerts.js +8 -0
  572. package/bpk-component-icon/lg/price-tag.js +8 -0
  573. package/bpk-component-icon/lg/print.js +8 -0
  574. package/bpk-component-icon/lg/recent-searches.js +8 -0
  575. package/bpk-component-icon/lg/redo.js +8 -0
  576. package/bpk-component-icon/lg/refresh.js +8 -0
  577. package/bpk-component-icon/lg/return.js +8 -0
  578. package/bpk-component-icon/lg/room.js +8 -0
  579. package/bpk-component-icon/lg/scales.js +8 -0
  580. package/bpk-component-icon/lg/search.js +8 -0
  581. package/bpk-component-icon/lg/self-service.js +8 -0
  582. package/bpk-component-icon/lg/send-message.js +8 -0
  583. package/bpk-component-icon/lg/services.js +8 -0
  584. package/bpk-component-icon/lg/settings.js +8 -0
  585. package/bpk-component-icon/lg/share--android.js +8 -0
  586. package/bpk-component-icon/lg/share--ios.js +8 -0
  587. package/bpk-component-icon/lg/share.js +8 -0
  588. package/bpk-component-icon/lg/single-booking.js +8 -0
  589. package/bpk-component-icon/lg/social-distancing.js +8 -0
  590. package/bpk-component-icon/lg/social-like.js +8 -0
  591. package/bpk-component-icon/lg/sort-down.js +8 -0
  592. package/bpk-component-icon/lg/sort-up.js +8 -0
  593. package/bpk-component-icon/lg/sort.js +8 -0
  594. package/bpk-component-icon/lg/speaker.js +8 -0
  595. package/bpk-component-icon/lg/star-half.js +8 -0
  596. package/bpk-component-icon/lg/star-outline.js +8 -0
  597. package/bpk-component-icon/lg/star.js +8 -0
  598. package/bpk-component-icon/lg/stops.js +8 -0
  599. package/bpk-component-icon/lg/swap--horizontal.js +8 -0
  600. package/bpk-component-icon/lg/swap--vertical.js +8 -0
  601. package/bpk-component-icon/lg/swap.js +8 -0
  602. package/bpk-component-icon/lg/taxi.js +8 -0
  603. package/bpk-component-icon/lg/thumbs-down.js +8 -0
  604. package/bpk-component-icon/lg/thumbs-up.js +8 -0
  605. package/bpk-component-icon/lg/tick-circle.js +8 -0
  606. package/bpk-component-icon/lg/tick.js +8 -0
  607. package/bpk-component-icon/lg/ticket-flexible.js +8 -0
  608. package/bpk-component-icon/lg/ticket.js +8 -0
  609. package/bpk-component-icon/lg/time.js +8 -0
  610. package/bpk-component-icon/lg/toilets.js +8 -0
  611. package/bpk-component-icon/lg/train.js +8 -0
  612. package/bpk-component-icon/lg/transmission-automatic.js +8 -0
  613. package/bpk-component-icon/lg/transmission-manual.js +8 -0
  614. package/bpk-component-icon/lg/trash.js +8 -0
  615. package/bpk-component-icon/lg/trend--down.js +8 -0
  616. package/bpk-component-icon/lg/trend--steady.js +8 -0
  617. package/bpk-component-icon/lg/trend--will-rise.js +8 -0
  618. package/bpk-component-icon/lg/trend.js +8 -0
  619. package/bpk-component-icon/lg/trips.js +8 -0
  620. package/bpk-component-icon/lg/undo.js +8 -0
  621. package/bpk-component-icon/lg/unlock.js +8 -0
  622. package/bpk-component-icon/lg/unmute.js +8 -0
  623. package/bpk-component-icon/lg/upgrade.js +8 -0
  624. package/bpk-component-icon/lg/use-location.js +8 -0
  625. package/bpk-component-icon/lg/view.js +8 -0
  626. package/bpk-component-icon/lg/virus.js +8 -0
  627. package/bpk-component-icon/lg/wallet.js +8 -0
  628. package/bpk-component-icon/lg/weather--clear.js +8 -0
  629. package/bpk-component-icon/lg/weather--cloudy.js +8 -0
  630. package/bpk-component-icon/lg/weather--fog.js +8 -0
  631. package/bpk-component-icon/lg/weather--partly-cloudy.js +8 -0
  632. package/bpk-component-icon/lg/weather--rain.js +8 -0
  633. package/bpk-component-icon/lg/weather--snow.js +8 -0
  634. package/bpk-component-icon/lg/weather--thunderstorm.js +8 -0
  635. package/bpk-component-icon/lg/weather--tornado.js +8 -0
  636. package/bpk-component-icon/lg/weather--wind.js +8 -0
  637. package/bpk-component-icon/lg/weather.js +8 -0
  638. package/bpk-component-icon/lg/wifi.js +8 -0
  639. package/bpk-component-icon/lg/window--reduce.js +8 -0
  640. package/bpk-component-icon/lg/window.js +8 -0
  641. package/bpk-component-icon/lg/world--amer.js +8 -0
  642. package/bpk-component-icon/lg/world--apac.js +8 -0
  643. package/bpk-component-icon/lg/world--emea.js +8 -0
  644. package/bpk-component-icon/package.json +34 -0
  645. package/bpk-component-icon/sm/accessibility.js +8 -0
  646. package/bpk-component-icon/sm/account--add.js +8 -0
  647. package/bpk-component-icon/sm/account--female.js +8 -0
  648. package/bpk-component-icon/sm/account--id-card.js +8 -0
  649. package/bpk-component-icon/sm/account--name.js +8 -0
  650. package/bpk-component-icon/sm/account--permit.js +8 -0
  651. package/bpk-component-icon/sm/account-circle.js +8 -0
  652. package/bpk-component-icon/sm/account.js +8 -0
  653. package/bpk-component-icon/sm/add-circle.js +8 -0
  654. package/bpk-component-icon/sm/adult.js +8 -0
  655. package/bpk-component-icon/sm/aircon.js +8 -0
  656. package/bpk-component-icon/sm/aircraft.js +8 -0
  657. package/bpk-component-icon/sm/airline--multiple.js +8 -0
  658. package/bpk-component-icon/sm/airline.js +8 -0
  659. package/bpk-component-icon/sm/airports.js +8 -0
  660. package/bpk-component-icon/sm/alert--active.js +8 -0
  661. package/bpk-component-icon/sm/alert--add.js +8 -0
  662. package/bpk-component-icon/sm/alert--expired.js +8 -0
  663. package/bpk-component-icon/sm/alert--remove.js +8 -0
  664. package/bpk-component-icon/sm/arrow-down.js +8 -0
  665. package/bpk-component-icon/sm/arrow-left.js +8 -0
  666. package/bpk-component-icon/sm/arrow-right.js +8 -0
  667. package/bpk-component-icon/sm/arrow-up.js +8 -0
  668. package/bpk-component-icon/sm/award.js +8 -0
  669. package/bpk-component-icon/sm/baby-carriage.js +8 -0
  670. package/bpk-component-icon/sm/baggage--add.js +8 -0
  671. package/bpk-component-icon/sm/baggage--remove.js +8 -0
  672. package/bpk-component-icon/sm/baggage-cross.js +8 -0
  673. package/bpk-component-icon/sm/baggage-tick.js +8 -0
  674. package/bpk-component-icon/sm/baggage.js +8 -0
  675. package/bpk-component-icon/sm/bar.js +8 -0
  676. package/bpk-component-icon/sm/beach.js +8 -0
  677. package/bpk-component-icon/sm/beer.js +8 -0
  678. package/bpk-component-icon/sm/breakfast-cross.js +8 -0
  679. package/bpk-component-icon/sm/breakfast-tick.js +8 -0
  680. package/bpk-component-icon/sm/bus.js +8 -0
  681. package/bpk-component-icon/sm/business.js +8 -0
  682. package/bpk-component-icon/sm/cafe.js +8 -0
  683. package/bpk-component-icon/sm/calendar.js +8 -0
  684. package/bpk-component-icon/sm/call-back.js +8 -0
  685. package/bpk-component-icon/sm/camera.js +8 -0
  686. package/bpk-component-icon/sm/camper-van.js +8 -0
  687. package/bpk-component-icon/sm/car-door.js +8 -0
  688. package/bpk-component-icon/sm/car-wash.js +8 -0
  689. package/bpk-component-icon/sm/cars-flexible.js +8 -0
  690. package/bpk-component-icon/sm/cars.js +8 -0
  691. package/bpk-component-icon/sm/chart.js +8 -0
  692. package/bpk-component-icon/sm/chauffeur.js +8 -0
  693. package/bpk-component-icon/sm/chevron-down.js +8 -0
  694. package/bpk-component-icon/sm/chevron-left.js +8 -0
  695. package/bpk-component-icon/sm/chevron-right.js +8 -0
  696. package/bpk-component-icon/sm/chevron-up.js +8 -0
  697. package/bpk-component-icon/sm/child-seat.js +8 -0
  698. package/bpk-component-icon/sm/child.js +8 -0
  699. package/bpk-component-icon/sm/city-center.js +8 -0
  700. package/bpk-component-icon/sm/city.js +8 -0
  701. package/bpk-component-icon/sm/clean-policy.js +8 -0
  702. package/bpk-component-icon/sm/clean.js +8 -0
  703. package/bpk-component-icon/sm/cleaning-medical.js +8 -0
  704. package/bpk-component-icon/sm/cloakroom.js +8 -0
  705. package/bpk-component-icon/sm/close-circle.js +8 -0
  706. package/bpk-component-icon/sm/close.js +8 -0
  707. package/bpk-component-icon/sm/collapse.js +8 -0
  708. package/bpk-component-icon/sm/content--copy.js +8 -0
  709. package/bpk-component-icon/sm/content--event.js +8 -0
  710. package/bpk-component-icon/sm/content--guides.js +8 -0
  711. package/bpk-component-icon/sm/currency.js +8 -0
  712. package/bpk-component-icon/sm/data.js +8 -0
  713. package/bpk-component-icon/sm/deals.js +8 -0
  714. package/bpk-component-icon/sm/depart.js +8 -0
  715. package/bpk-component-icon/sm/device-mid.js +8 -0
  716. package/bpk-component-icon/sm/device-wide.js +8 -0
  717. package/bpk-component-icon/sm/direct.js +8 -0
  718. package/bpk-component-icon/sm/document-csv.js +8 -0
  719. package/bpk-component-icon/sm/document-pdf.js +8 -0
  720. package/bpk-component-icon/sm/download.js +8 -0
  721. package/bpk-component-icon/sm/duration.js +8 -0
  722. package/bpk-component-icon/sm/eco-leaf.js +8 -0
  723. package/bpk-component-icon/sm/edit.js +8 -0
  724. package/bpk-component-icon/sm/education.js +8 -0
  725. package/bpk-component-icon/sm/electric.js +8 -0
  726. package/bpk-component-icon/sm/end-call.js +8 -0
  727. package/bpk-component-icon/sm/estimated.js +8 -0
  728. package/bpk-component-icon/sm/exclamation-circle.js +8 -0
  729. package/bpk-component-icon/sm/exclamation.js +8 -0
  730. package/bpk-component-icon/sm/expand.js +8 -0
  731. package/bpk-component-icon/sm/explore.js +8 -0
  732. package/bpk-component-icon/sm/face--blank.js +8 -0
  733. package/bpk-component-icon/sm/face--happy.js +8 -0
  734. package/bpk-component-icon/sm/face--sad.js +8 -0
  735. package/bpk-component-icon/sm/face-mask.js +8 -0
  736. package/bpk-component-icon/sm/family.js +8 -0
  737. package/bpk-component-icon/sm/fast-track.js +8 -0
  738. package/bpk-component-icon/sm/fast-train.js +8 -0
  739. package/bpk-component-icon/sm/filter.js +8 -0
  740. package/bpk-component-icon/sm/flag.js +8 -0
  741. package/bpk-component-icon/sm/flask.js +8 -0
  742. package/bpk-component-icon/sm/flight-flexible.js +8 -0
  743. package/bpk-component-icon/sm/flight-landing.js +8 -0
  744. package/bpk-component-icon/sm/flight-takeoff.js +8 -0
  745. package/bpk-component-icon/sm/flight.js +8 -0
  746. package/bpk-component-icon/sm/food.js +8 -0
  747. package/bpk-component-icon/sm/gears-automatic-circle.js +8 -0
  748. package/bpk-component-icon/sm/gears-automatic.js +8 -0
  749. package/bpk-component-icon/sm/gears-manual-circle.js +8 -0
  750. package/bpk-component-icon/sm/gears-manual.js +8 -0
  751. package/bpk-component-icon/sm/globe.js +8 -0
  752. package/bpk-component-icon/sm/grid-layout.js +8 -0
  753. package/bpk-component-icon/sm/headset.js +8 -0
  754. package/bpk-component-icon/sm/health-fitness.js +8 -0
  755. package/bpk-component-icon/sm/heart--outline.js +8 -0
  756. package/bpk-component-icon/sm/heart.js +8 -0
  757. package/bpk-component-icon/sm/help-circle.js +8 -0
  758. package/bpk-component-icon/sm/help.js +8 -0
  759. package/bpk-component-icon/sm/hide.js +8 -0
  760. package/bpk-component-icon/sm/hotel-flexible.js +8 -0
  761. package/bpk-component-icon/sm/hotels--disabled-facilities.js +8 -0
  762. package/bpk-component-icon/sm/hotels--jacuzzi.js +8 -0
  763. package/bpk-component-icon/sm/hotels--pets-allowed.js +8 -0
  764. package/bpk-component-icon/sm/hotels--smoking.js +8 -0
  765. package/bpk-component-icon/sm/hotels.js +8 -0
  766. package/bpk-component-icon/sm/infant.js +8 -0
  767. package/bpk-component-icon/sm/information--language-alert.js +8 -0
  768. package/bpk-component-icon/sm/information--language-question.js +8 -0
  769. package/bpk-component-icon/sm/information--language.js +8 -0
  770. package/bpk-component-icon/sm/information-circle.js +8 -0
  771. package/bpk-component-icon/sm/information.js +8 -0
  772. package/bpk-component-icon/sm/insurance.js +8 -0
  773. package/bpk-component-icon/sm/key.js +8 -0
  774. package/bpk-component-icon/sm/keypad.js +8 -0
  775. package/bpk-component-icon/sm/landmark.js +8 -0
  776. package/bpk-component-icon/sm/language.js +8 -0
  777. package/bpk-component-icon/sm/legroom--extra.js +8 -0
  778. package/bpk-component-icon/sm/legroom--normal.js +8 -0
  779. package/bpk-component-icon/sm/legroom--reduced.js +8 -0
  780. package/bpk-component-icon/sm/leisure.js +8 -0
  781. package/bpk-component-icon/sm/lightning.js +8 -0
  782. package/bpk-component-icon/sm/list.js +8 -0
  783. package/bpk-component-icon/sm/location.js +8 -0
  784. package/bpk-component-icon/sm/lock.js +8 -0
  785. package/bpk-component-icon/sm/logout.js +8 -0
  786. package/bpk-component-icon/sm/long-arrow-down.js +8 -0
  787. package/bpk-component-icon/sm/long-arrow-left.js +8 -0
  788. package/bpk-component-icon/sm/long-arrow-right.js +8 -0
  789. package/bpk-component-icon/sm/long-arrow-up.js +8 -0
  790. package/bpk-component-icon/sm/lounge.js +8 -0
  791. package/bpk-component-icon/sm/luggageall.js +8 -0
  792. package/bpk-component-icon/sm/mail.js +8 -0
  793. package/bpk-component-icon/sm/map.js +8 -0
  794. package/bpk-component-icon/sm/meal.js +8 -0
  795. package/bpk-component-icon/sm/media.js +8 -0
  796. package/bpk-component-icon/sm/menu--horizontal.js +8 -0
  797. package/bpk-component-icon/sm/menu--vertical.js +8 -0
  798. package/bpk-component-icon/sm/menu.js +8 -0
  799. package/bpk-component-icon/sm/mileage.js +8 -0
  800. package/bpk-component-icon/sm/minus.js +8 -0
  801. package/bpk-component-icon/sm/mobile.js +8 -0
  802. package/bpk-component-icon/sm/money.js +8 -0
  803. package/bpk-component-icon/sm/multiple-bookings.js +8 -0
  804. package/bpk-component-icon/sm/music.js +8 -0
  805. package/bpk-component-icon/sm/mute.js +8 -0
  806. package/bpk-component-icon/sm/native-android--back.js +8 -0
  807. package/bpk-component-icon/sm/native-android--close.js +8 -0
  808. package/bpk-component-icon/sm/native-android--forward.js +8 -0
  809. package/bpk-component-icon/sm/native-ios-close.js +8 -0
  810. package/bpk-component-icon/sm/navigation.js +8 -0
  811. package/bpk-component-icon/sm/new-window.js +8 -0
  812. package/bpk-component-icon/sm/news.js +8 -0
  813. package/bpk-component-icon/sm/night.js +8 -0
  814. package/bpk-component-icon/sm/not-allowed.js +8 -0
  815. package/bpk-component-icon/sm/onsen.js +8 -0
  816. package/bpk-component-icon/sm/paid.js +8 -0
  817. package/bpk-component-icon/sm/paperclip.js +8 -0
  818. package/bpk-component-icon/sm/parking.js +8 -0
  819. package/bpk-component-icon/sm/passport.js +8 -0
  820. package/bpk-component-icon/sm/pause.js +8 -0
  821. package/bpk-component-icon/sm/payment-card.js +8 -0
  822. package/bpk-component-icon/sm/petrol.js +8 -0
  823. package/bpk-component-icon/sm/phone-call.js +8 -0
  824. package/bpk-component-icon/sm/picture.js +8 -0
  825. package/bpk-component-icon/sm/pin.js +8 -0
  826. package/bpk-component-icon/sm/plane-seat.js +8 -0
  827. package/bpk-component-icon/sm/play.js +8 -0
  828. package/bpk-component-icon/sm/plus.js +8 -0
  829. package/bpk-component-icon/sm/policy.js +8 -0
  830. package/bpk-component-icon/sm/powerplug.js +8 -0
  831. package/bpk-component-icon/sm/ppe.js +8 -0
  832. package/bpk-component-icon/sm/price-alerts.js +8 -0
  833. package/bpk-component-icon/sm/price-tag.js +8 -0
  834. package/bpk-component-icon/sm/print.js +8 -0
  835. package/bpk-component-icon/sm/recent-searches.js +8 -0
  836. package/bpk-component-icon/sm/redo.js +8 -0
  837. package/bpk-component-icon/sm/refresh.js +8 -0
  838. package/bpk-component-icon/sm/return.js +8 -0
  839. package/bpk-component-icon/sm/room.js +8 -0
  840. package/bpk-component-icon/sm/scales.js +8 -0
  841. package/bpk-component-icon/sm/search.js +8 -0
  842. package/bpk-component-icon/sm/self-service.js +8 -0
  843. package/bpk-component-icon/sm/send-message.js +8 -0
  844. package/bpk-component-icon/sm/services.js +8 -0
  845. package/bpk-component-icon/sm/settings.js +8 -0
  846. package/bpk-component-icon/sm/share--android.js +8 -0
  847. package/bpk-component-icon/sm/share--ios.js +8 -0
  848. package/bpk-component-icon/sm/share.js +8 -0
  849. package/bpk-component-icon/sm/single-booking.js +8 -0
  850. package/bpk-component-icon/sm/social-distancing.js +8 -0
  851. package/bpk-component-icon/sm/social-like.js +8 -0
  852. package/bpk-component-icon/sm/sort-down.js +8 -0
  853. package/bpk-component-icon/sm/sort-up.js +8 -0
  854. package/bpk-component-icon/sm/sort.js +8 -0
  855. package/bpk-component-icon/sm/speaker.js +8 -0
  856. package/bpk-component-icon/sm/star-half.js +8 -0
  857. package/bpk-component-icon/sm/star-outline.js +8 -0
  858. package/bpk-component-icon/sm/star.js +8 -0
  859. package/bpk-component-icon/sm/stops.js +8 -0
  860. package/bpk-component-icon/sm/swap--horizontal.js +8 -0
  861. package/bpk-component-icon/sm/swap--vertical.js +8 -0
  862. package/bpk-component-icon/sm/swap.js +8 -0
  863. package/bpk-component-icon/sm/taxi.js +8 -0
  864. package/bpk-component-icon/sm/thumbs-down.js +8 -0
  865. package/bpk-component-icon/sm/thumbs-up.js +8 -0
  866. package/bpk-component-icon/sm/tick-circle.js +8 -0
  867. package/bpk-component-icon/sm/tick.js +8 -0
  868. package/bpk-component-icon/sm/ticket-flexible.js +8 -0
  869. package/bpk-component-icon/sm/ticket.js +8 -0
  870. package/bpk-component-icon/sm/time.js +8 -0
  871. package/bpk-component-icon/sm/toilets.js +8 -0
  872. package/bpk-component-icon/sm/train.js +8 -0
  873. package/bpk-component-icon/sm/transmission-automatic.js +8 -0
  874. package/bpk-component-icon/sm/transmission-manual.js +8 -0
  875. package/bpk-component-icon/sm/trash.js +8 -0
  876. package/bpk-component-icon/sm/trend--down.js +8 -0
  877. package/bpk-component-icon/sm/trend--steady.js +8 -0
  878. package/bpk-component-icon/sm/trend--will-rise.js +8 -0
  879. package/bpk-component-icon/sm/trend.js +8 -0
  880. package/bpk-component-icon/sm/trips.js +8 -0
  881. package/bpk-component-icon/sm/undo.js +8 -0
  882. package/bpk-component-icon/sm/unlock.js +8 -0
  883. package/bpk-component-icon/sm/unmute.js +8 -0
  884. package/bpk-component-icon/sm/upgrade.js +8 -0
  885. package/bpk-component-icon/sm/use-location.js +8 -0
  886. package/bpk-component-icon/sm/view.js +8 -0
  887. package/bpk-component-icon/sm/virus.js +8 -0
  888. package/bpk-component-icon/sm/wallet.js +8 -0
  889. package/bpk-component-icon/sm/weather--clear.js +8 -0
  890. package/bpk-component-icon/sm/weather--cloudy.js +8 -0
  891. package/bpk-component-icon/sm/weather--fog.js +8 -0
  892. package/bpk-component-icon/sm/weather--partly-cloudy.js +8 -0
  893. package/bpk-component-icon/sm/weather--rain.js +8 -0
  894. package/bpk-component-icon/sm/weather--snow.js +8 -0
  895. package/bpk-component-icon/sm/weather--thunderstorm.js +8 -0
  896. package/bpk-component-icon/sm/weather--tornado.js +8 -0
  897. package/bpk-component-icon/sm/weather--wind.js +8 -0
  898. package/bpk-component-icon/sm/weather.js +8 -0
  899. package/bpk-component-icon/sm/wifi.js +8 -0
  900. package/bpk-component-icon/sm/window--reduce.js +8 -0
  901. package/bpk-component-icon/sm/window.js +8 -0
  902. package/bpk-component-icon/sm/world--amer.js +8 -0
  903. package/bpk-component-icon/sm/world--apac.js +8 -0
  904. package/bpk-component-icon/sm/world--emea.js +8 -0
  905. package/bpk-component-icon/src/BpkIcon.module.css +18 -0
  906. package/bpk-component-icon/src/BpkIcon.module.scss +33 -0
  907. package/bpk-component-icon/src/classNameModifierHOCFactory.js +53 -0
  908. package/bpk-component-icon/src/withAlignment.js +47 -0
  909. package/bpk-component-icon/src/withDescription.js +44 -0
  910. package/bpk-component-icon/src/withDescription.module.css +18 -0
  911. package/bpk-component-icon/src/withDescription.module.scss +22 -0
  912. package/bpk-component-icon/src/withRtlSupport.js +28 -0
  913. package/bpk-component-image/README.md +142 -0
  914. package/bpk-component-image/examples.js +216 -0
  915. package/bpk-component-image/index.js +37 -0
  916. package/bpk-component-image/package.json +31 -0
  917. package/bpk-component-image/src/BpkBackgroundImage.js +192 -0
  918. package/bpk-component-image/src/BpkBackgroundImage.module.css +18 -0
  919. package/bpk-component-image/src/BpkBackgroundImage.module.scss +46 -0
  920. package/bpk-component-image/src/BpkImage.js +252 -0
  921. package/bpk-component-image/src/BpkImage.module.css +18 -0
  922. package/bpk-component-image/src/BpkImage.module.scss +89 -0
  923. package/bpk-component-image/src/BpkImageBorderRadiusStyles.js +23 -0
  924. package/bpk-component-image/src/customPropTypes.js +37 -0
  925. package/bpk-component-image/src/withLazyLoading.js +181 -0
  926. package/bpk-component-image/src/withLoadingBehavior.js +65 -0
  927. package/bpk-component-infinite-scroll/README.md +187 -0
  928. package/bpk-component-infinite-scroll/examples.js +279 -0
  929. package/bpk-component-infinite-scroll/examples.module.css +18 -0
  930. package/bpk-component-infinite-scroll/examples.module.scss +46 -0
  931. package/bpk-component-infinite-scroll/index.js +29 -0
  932. package/bpk-component-infinite-scroll/package.json +31 -0
  933. package/bpk-component-infinite-scroll/src/DataSource.js +85 -0
  934. package/bpk-component-infinite-scroll/src/intersection-observer.js +27 -0
  935. package/bpk-component-infinite-scroll/src/withInfiniteScroll-test.flow.js +102 -0
  936. package/bpk-component-infinite-scroll/src/withInfiniteScroll.js +297 -0
  937. package/bpk-component-infinite-scroll/src/withInfiniteScroll.module.css +18 -0
  938. package/bpk-component-infinite-scroll/src/withInfiniteScroll.module.scss +25 -0
  939. package/bpk-component-input/README.md +121 -0
  940. package/bpk-component-input/examples.js +490 -0
  941. package/bpk-component-input/examples.module.css +18 -0
  942. package/bpk-component-input/examples.module.scss +57 -0
  943. package/bpk-component-input/index.js +50 -0
  944. package/bpk-component-input/package.json +30 -0
  945. package/bpk-component-input/src/BpkClearButton.js +74 -0
  946. package/bpk-component-input/src/BpkClearButton.module.css +18 -0
  947. package/bpk-component-input/src/BpkClearButton.module.scss +40 -0
  948. package/bpk-component-input/src/BpkInput.js +178 -0
  949. package/bpk-component-input/src/BpkInput.module.css +18 -0
  950. package/bpk-component-input/src/BpkInput.module.scss +86 -0
  951. package/bpk-component-input/src/common-types.js +129 -0
  952. package/bpk-component-input/src/themeAttributes.js +19 -0
  953. package/bpk-component-input/src/withOpenEvents.js +186 -0
  954. package/bpk-component-label/README.md +30 -0
  955. package/bpk-component-label/examples.js +67 -0
  956. package/bpk-component-label/index.js +24 -0
  957. package/bpk-component-label/package.json +24 -0
  958. package/bpk-component-label/src/BpkLabel.js +84 -0
  959. package/bpk-component-label/src/BpkLabel.module.css +18 -0
  960. package/bpk-component-label/src/BpkLabel.module.scss +43 -0
  961. package/bpk-component-link/README.md +68 -0
  962. package/bpk-component-link/examples.js +110 -0
  963. package/bpk-component-link/index.js +28 -0
  964. package/bpk-component-link/package.json +28 -0
  965. package/bpk-component-link/src/BpkButtonLink.js +79 -0
  966. package/bpk-component-link/src/BpkLink.js +109 -0
  967. package/bpk-component-link/src/BpkLink.module.css +18 -0
  968. package/bpk-component-link/src/BpkLink.module.scss +31 -0
  969. package/bpk-component-link/src/themeAttributes.js +35 -0
  970. package/bpk-component-list/README.md +48 -0
  971. package/bpk-component-list/examples.js +56 -0
  972. package/bpk-component-list/index.js +24 -0
  973. package/bpk-component-list/package.json +24 -0
  974. package/bpk-component-list/src/BpkList.js +58 -0
  975. package/bpk-component-list/src/BpkList.module.css +18 -0
  976. package/bpk-component-list/src/BpkList.module.scss +31 -0
  977. package/bpk-component-list/src/BpkListItem.js +54 -0
  978. package/bpk-component-loading-button/README.md +48 -0
  979. package/bpk-component-loading-button/examples.js +660 -0
  980. package/bpk-component-loading-button/index.js +24 -0
  981. package/bpk-component-loading-button/package.json +30 -0
  982. package/bpk-component-loading-button/src/BpkLoadingButton.js +153 -0
  983. package/bpk-component-map/README.md +213 -0
  984. package/bpk-component-map/examples.js +305 -0
  985. package/bpk-component-map/index.js +45 -0
  986. package/bpk-component-map/package.json +32 -0
  987. package/bpk-component-map/src/BpkBasicMapMarker.js +57 -0
  988. package/bpk-component-map/src/BpkIconMarker.js +107 -0
  989. package/bpk-component-map/src/BpkIconMarker.module.css +18 -0
  990. package/bpk-component-map/src/BpkIconMarker.module.scss +74 -0
  991. package/bpk-component-map/src/BpkIconMarkerBackground.js +80 -0
  992. package/bpk-component-map/src/BpkIconMarkerBackground.module.css +18 -0
  993. package/bpk-component-map/src/BpkIconMarkerBackground.module.scss +53 -0
  994. package/bpk-component-map/src/BpkMap.js +174 -0
  995. package/bpk-component-map/src/BpkOverlayView.js +50 -0
  996. package/bpk-component-map/src/BpkPriceMarker.js +130 -0
  997. package/bpk-component-map/src/BpkPriceMarker.module.css +18 -0
  998. package/bpk-component-map/src/BpkPriceMarker.module.scss +146 -0
  999. package/bpk-component-map/src/DefaultLoadingElement.js +34 -0
  1000. package/bpk-component-map/src/DefaultLoadingElement.module.css +18 -0
  1001. package/bpk-component-map/src/DefaultLoadingElement.module.scss +28 -0
  1002. package/bpk-component-map/src/common-types.js +31 -0
  1003. package/bpk-component-map/src/themeAttributes.js +38 -0
  1004. package/bpk-component-map/src/withGoogleMapsScript.js +44 -0
  1005. package/bpk-component-mobile-scroll-container/README.md +74 -0
  1006. package/bpk-component-mobile-scroll-container/examples.js +76 -0
  1007. package/bpk-component-mobile-scroll-container/examples.module.css +18 -0
  1008. package/bpk-component-mobile-scroll-container/examples.module.scss +46 -0
  1009. package/bpk-component-mobile-scroll-container/index.js +23 -0
  1010. package/bpk-component-mobile-scroll-container/package.json +28 -0
  1011. package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.js +238 -0
  1012. package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.module.css +18 -0
  1013. package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.module.scss +50 -0
  1014. package/bpk-component-modal/README.md +114 -0
  1015. package/bpk-component-modal/examples.js +304 -0
  1016. package/bpk-component-modal/examples.module.css +18 -0
  1017. package/bpk-component-modal/examples.module.scss +35 -0
  1018. package/bpk-component-modal/index.js +27 -0
  1019. package/bpk-component-modal/package.json +33 -0
  1020. package/bpk-component-modal/src/BpkModal.js +128 -0
  1021. package/bpk-component-modal/src/BpkModal.module.css +18 -0
  1022. package/bpk-component-modal/src/BpkModal.module.scss +46 -0
  1023. package/bpk-component-modal/src/BpkModalInner.js +177 -0
  1024. package/bpk-component-modal/src/BpkModalInner.module.css +18 -0
  1025. package/bpk-component-modal/src/BpkModalInner.module.scss +123 -0
  1026. package/bpk-component-modal/src/customPropTypes.js +54 -0
  1027. package/bpk-component-modal/src/themeAttributes.js +23 -0
  1028. package/bpk-component-navigation-bar/AirlineLogo.js +42 -0
  1029. package/bpk-component-navigation-bar/AirlineLogo.module.css +18 -0
  1030. package/bpk-component-navigation-bar/AirlineLogo.module.scss +27 -0
  1031. package/bpk-component-navigation-bar/README.md +114 -0
  1032. package/bpk-component-navigation-bar/examples.js +193 -0
  1033. package/bpk-component-navigation-bar/examples.module.css +18 -0
  1034. package/bpk-component-navigation-bar/examples.module.scss +32 -0
  1035. package/bpk-component-navigation-bar/index.js +42 -0
  1036. package/bpk-component-navigation-bar/package.json +32 -0
  1037. package/bpk-component-navigation-bar/src/BpkNavigationBar.js +105 -0
  1038. package/bpk-component-navigation-bar/src/BpkNavigationBar.module.css +18 -0
  1039. package/bpk-component-navigation-bar/src/BpkNavigationBar.module.scss +75 -0
  1040. package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.js +61 -0
  1041. package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.module.css +18 -0
  1042. package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.module.scss +51 -0
  1043. package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.js +58 -0
  1044. package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.module.css +18 -0
  1045. package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.module.scss +43 -0
  1046. package/bpk-component-navigation-bar/src/themeAttributes.js +33 -0
  1047. package/bpk-component-navigation-stack/README.md +48 -0
  1048. package/bpk-component-navigation-stack/examples.js +73 -0
  1049. package/bpk-component-navigation-stack/examples.module.css +18 -0
  1050. package/bpk-component-navigation-stack/examples.module.scss +43 -0
  1051. package/bpk-component-navigation-stack/index.js +30 -0
  1052. package/bpk-component-navigation-stack/package.json +32 -0
  1053. package/bpk-component-navigation-stack/src/BpkNavigationStack.js +127 -0
  1054. package/bpk-component-navigation-stack/src/BpkNavigationStack.module.css +18 -0
  1055. package/bpk-component-navigation-stack/src/BpkNavigationStack.module.scss +51 -0
  1056. package/bpk-component-navigation-stack/src/withNavigationStackState.js +104 -0
  1057. package/bpk-component-navigation-stack/stories-components.js +202 -0
  1058. package/bpk-component-nudger/BpkNudgerStory.module.css +18 -0
  1059. package/bpk-component-nudger/BpkNudgerStory.module.scss +27 -0
  1060. package/bpk-component-nudger/README.md +170 -0
  1061. package/bpk-component-nudger/examples.js +204 -0
  1062. package/bpk-component-nudger/index.js +26 -0
  1063. package/bpk-component-nudger/package.json +32 -0
  1064. package/bpk-component-nudger/src/BpkConfigurableNudger.js +151 -0
  1065. package/bpk-component-nudger/src/BpkNudger.js +68 -0
  1066. package/bpk-component-nudger/src/BpkNudger.module.css +18 -0
  1067. package/bpk-component-nudger/src/BpkNudger.module.scss +49 -0
  1068. package/bpk-component-nudger/src/common-types.js +45 -0
  1069. package/bpk-component-nudger/src/themeAttributes.js +23 -0
  1070. package/bpk-component-overlay/README.md +51 -0
  1071. package/bpk-component-overlay/examples.js +163 -0
  1072. package/bpk-component-overlay/examples.module.css +18 -0
  1073. package/bpk-component-overlay/examples.module.scss +38 -0
  1074. package/bpk-component-overlay/index.js +28 -0
  1075. package/bpk-component-overlay/package.json +28 -0
  1076. package/bpk-component-overlay/src/BpkOverlay.js +88 -0
  1077. package/bpk-component-overlay/src/BpkOverlay.module.css +18 -0
  1078. package/bpk-component-overlay/src/BpkOverlay.module.scss +41 -0
  1079. package/bpk-component-pagination/README.md +59 -0
  1080. package/bpk-component-pagination/examples.js +93 -0
  1081. package/bpk-component-pagination/index.js +23 -0
  1082. package/bpk-component-pagination/package.json +28 -0
  1083. package/bpk-component-pagination/src/BpkPagination.js +101 -0
  1084. package/bpk-component-pagination/src/BpkPagination.module.css +18 -0
  1085. package/bpk-component-pagination/src/BpkPagination.module.scss +22 -0
  1086. package/bpk-component-pagination/src/BpkPaginationBreak.js +35 -0
  1087. package/bpk-component-pagination/src/BpkPaginationList.js +100 -0
  1088. package/bpk-component-pagination/src/BpkPaginationList.module.css +18 -0
  1089. package/bpk-component-pagination/src/BpkPaginationList.module.scss +45 -0
  1090. package/bpk-component-pagination/src/BpkPaginationNudger.js +77 -0
  1091. package/bpk-component-pagination/src/BpkPaginationNudger.module.css +18 -0
  1092. package/bpk-component-pagination/src/BpkPaginationNudger.module.scss +74 -0
  1093. package/bpk-component-pagination/src/BpkPaginationPage.js +60 -0
  1094. package/bpk-component-pagination/src/BpkPaginationPage.module.css +18 -0
  1095. package/bpk-component-pagination/src/BpkPaginationPage.module.scss +90 -0
  1096. package/bpk-component-pagination/src/themeAttributes.js +26 -0
  1097. package/bpk-component-panel/README.md +33 -0
  1098. package/bpk-component-panel/examples.js +63 -0
  1099. package/bpk-component-panel/index.js +21 -0
  1100. package/bpk-component-panel/package.json +24 -0
  1101. package/bpk-component-panel/src/BpkPanel.js +61 -0
  1102. package/bpk-component-panel/src/BpkPanel.module.css +18 -0
  1103. package/bpk-component-panel/src/BpkPanel.module.scss +31 -0
  1104. package/bpk-component-paragraph/README.md +28 -0
  1105. package/bpk-component-paragraph/examples.js +46 -0
  1106. package/bpk-component-paragraph/index.js +23 -0
  1107. package/bpk-component-paragraph/package.json +25 -0
  1108. package/bpk-component-paragraph/src/BpkParagraph.js +55 -0
  1109. package/bpk-component-paragraph/src/BpkParagraph.module.css +18 -0
  1110. package/bpk-component-paragraph/src/BpkParagraph.module.scss +25 -0
  1111. package/bpk-component-phone-input/README.md +100 -0
  1112. package/bpk-component-phone-input/examples.js +181 -0
  1113. package/bpk-component-phone-input/index.js +26 -0
  1114. package/bpk-component-phone-input/package.json +33 -0
  1115. package/bpk-component-phone-input/src/BpkPhoneInput.js +225 -0
  1116. package/bpk-component-phone-input/src/BpkPhoneInput.module.css +18 -0
  1117. package/bpk-component-phone-input/src/BpkPhoneInput.module.scss +42 -0
  1118. package/bpk-component-popover/README.md +128 -0
  1119. package/bpk-component-popover/examples.js +267 -0
  1120. package/bpk-component-popover/examples.module.css +18 -0
  1121. package/bpk-component-popover/examples.module.scss +33 -0
  1122. package/bpk-component-popover/index.js +34 -0
  1123. package/bpk-component-popover/package.json +35 -0
  1124. package/bpk-component-popover/src/BpkPopover.js +185 -0
  1125. package/bpk-component-popover/src/BpkPopover.module.css +18 -0
  1126. package/bpk-component-popover/src/BpkPopover.module.scss +126 -0
  1127. package/bpk-component-popover/src/BpkPopoverPortal.js +210 -0
  1128. package/bpk-component-popover/src/constants.js +23 -0
  1129. package/bpk-component-popover/src/keyboardFocusScope.js +86 -0
  1130. package/bpk-component-popover/src/themeAttributes.js +23 -0
  1131. package/bpk-component-progress/README.md +56 -0
  1132. package/bpk-component-progress/examples.js +130 -0
  1133. package/bpk-component-progress/examples.module.css +18 -0
  1134. package/bpk-component-progress/examples.module.scss +29 -0
  1135. package/bpk-component-progress/index.js +25 -0
  1136. package/bpk-component-progress/package.json +30 -0
  1137. package/bpk-component-progress/src/BpkProgress.js +164 -0
  1138. package/bpk-component-progress/src/BpkProgress.module.css +18 -0
  1139. package/bpk-component-progress/src/BpkProgress.module.scss +64 -0
  1140. package/bpk-component-progress/src/themeAttributes.js +21 -0
  1141. package/bpk-component-radio/README.md +43 -0
  1142. package/bpk-component-radio/examples.js +126 -0
  1143. package/bpk-component-radio/index.js +25 -0
  1144. package/bpk-component-radio/package.json +28 -0
  1145. package/bpk-component-radio/src/BpkRadio.js +97 -0
  1146. package/bpk-component-radio/src/BpkRadio.module.css +18 -0
  1147. package/bpk-component-radio/src/BpkRadio.module.scss +78 -0
  1148. package/bpk-component-radio/src/themeAttributes.js +21 -0
  1149. package/bpk-component-rating/README.md +73 -0
  1150. package/bpk-component-rating/examples.js +373 -0
  1151. package/bpk-component-rating/examples.module.css +18 -0
  1152. package/bpk-component-rating/examples.module.scss +23 -0
  1153. package/bpk-component-rating/index.js +25 -0
  1154. package/bpk-component-rating/package.json +29 -0
  1155. package/bpk-component-rating/src/BpkRating.js +188 -0
  1156. package/bpk-component-rating/src/BpkRating.module.css +18 -0
  1157. package/bpk-component-rating/src/BpkRating.module.scss +148 -0
  1158. package/bpk-component-rating/src/common-types.js +31 -0
  1159. package/bpk-component-rating/src/themeAttributes.js +25 -0
  1160. package/bpk-component-rtl-toggle/README.md +26 -0
  1161. package/bpk-component-rtl-toggle/index.js +23 -0
  1162. package/bpk-component-rtl-toggle/package.json +24 -0
  1163. package/bpk-component-rtl-toggle/src/BpkRtlToggle.js +92 -0
  1164. package/bpk-component-rtl-toggle/src/updateOnDirectionChange.js +59 -0
  1165. package/bpk-component-rtl-toggle/src/utils.js +29 -0
  1166. package/bpk-component-scrollable-calendar/README.md +102 -0
  1167. package/bpk-component-scrollable-calendar/examples.js +383 -0
  1168. package/bpk-component-scrollable-calendar/index.js +34 -0
  1169. package/bpk-component-scrollable-calendar/package.json +32 -0
  1170. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendar.js +36 -0
  1171. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarDate.js +44 -0
  1172. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.js +55 -0
  1173. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.module.css +18 -0
  1174. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.module.scss +31 -0
  1175. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.js +156 -0
  1176. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.module.css +18 -0
  1177. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.module.scss +37 -0
  1178. package/bpk-component-scrollable-calendar/src/utils.js +30 -0
  1179. package/bpk-component-scrollable-calendar/test-utils.js +274 -0
  1180. package/bpk-component-section-list/README.md +52 -0
  1181. package/bpk-component-section-list/examples.js +55 -0
  1182. package/bpk-component-section-list/index.js +26 -0
  1183. package/bpk-component-section-list/package.json +30 -0
  1184. package/bpk-component-section-list/src/BpkSectionList.js +38 -0
  1185. package/bpk-component-section-list/src/BpkSectionListItem.js +112 -0
  1186. package/bpk-component-section-list/src/BpkSectionListItem.module.css +18 -0
  1187. package/bpk-component-section-list/src/BpkSectionListItem.module.scss +54 -0
  1188. package/bpk-component-section-list/src/BpkSectionListSection.js +65 -0
  1189. package/bpk-component-section-list/src/BpkSectionListSection.module.css +18 -0
  1190. package/bpk-component-section-list/src/BpkSectionListSection.module.scss +35 -0
  1191. package/bpk-component-select/README.md +47 -0
  1192. package/bpk-component-select/examples.js +274 -0
  1193. package/bpk-component-select/index.js +26 -0
  1194. package/bpk-component-select/package.json +27 -0
  1195. package/bpk-component-select/src/BpkSelect.js +132 -0
  1196. package/bpk-component-select/src/BpkSelect.module.css +18 -0
  1197. package/bpk-component-select/src/BpkSelect.module.scss +126 -0
  1198. package/bpk-component-select/src/themeAttributes.js +19 -0
  1199. package/bpk-component-skip-link/README.md +30 -0
  1200. package/bpk-component-skip-link/examples.js +40 -0
  1201. package/bpk-component-skip-link/index.js +25 -0
  1202. package/bpk-component-skip-link/package.json +24 -0
  1203. package/bpk-component-skip-link/src/BpkSkipLink.js +59 -0
  1204. package/bpk-component-skip-link/src/BpkSkipLink.module.css +18 -0
  1205. package/bpk-component-skip-link/src/BpkSkipLink.module.scss +50 -0
  1206. package/bpk-component-skip-link/src/themeAttributes.js +19 -0
  1207. package/bpk-component-slider/README.md +43 -0
  1208. package/bpk-component-slider/examples.js +122 -0
  1209. package/bpk-component-slider/index.js +23 -0
  1210. package/bpk-component-slider/package.json +29 -0
  1211. package/bpk-component-slider/src/BpkSlider.js +71 -0
  1212. package/bpk-component-slider/src/BpkSlider.module.css +18 -0
  1213. package/bpk-component-slider/src/BpkSlider.module.scss +103 -0
  1214. package/bpk-component-slider/src/themeAttributes.js +19 -0
  1215. package/bpk-component-spinner/README.md +40 -0
  1216. package/bpk-component-spinner/SpinnerLayout.js +56 -0
  1217. package/bpk-component-spinner/SpinnerLayout.module.css +18 -0
  1218. package/bpk-component-spinner/SpinnerLayout.module.scss +36 -0
  1219. package/bpk-component-spinner/changelog.yml +55 -0
  1220. package/bpk-component-spinner/examples.js +56 -0
  1221. package/bpk-component-spinner/index.js +33 -0
  1222. package/bpk-component-spinner/package.json +25 -0
  1223. package/bpk-component-spinner/src/BpkExtraLargeSpinner.js +59 -0
  1224. package/bpk-component-spinner/src/BpkLargeSpinner.js +64 -0
  1225. package/bpk-component-spinner/src/BpkSpinner.js +63 -0
  1226. package/bpk-component-spinner/src/BpkSpinner.module.css +18 -0
  1227. package/bpk-component-spinner/src/BpkSpinner.module.scss +57 -0
  1228. package/bpk-component-spinner/src/spinnerTypes.js +25 -0
  1229. package/bpk-component-spinner/src/themeAttributes.js +21 -0
  1230. package/bpk-component-star-rating/README.md +99 -0
  1231. package/bpk-component-star-rating/examples.js +195 -0
  1232. package/bpk-component-star-rating/index.js +38 -0
  1233. package/bpk-component-star-rating/package.json +29 -0
  1234. package/bpk-component-star-rating/src/BpkInteractiveStar.js +86 -0
  1235. package/bpk-component-star-rating/src/BpkInteractiveStar.module.css +18 -0
  1236. package/bpk-component-star-rating/src/BpkInteractiveStar.module.scss +66 -0
  1237. package/bpk-component-star-rating/src/BpkInteractiveStarRating.js +126 -0
  1238. package/bpk-component-star-rating/src/BpkStar.js +111 -0
  1239. package/bpk-component-star-rating/src/BpkStar.module.css +18 -0
  1240. package/bpk-component-star-rating/src/BpkStar.module.scss +63 -0
  1241. package/bpk-component-star-rating/src/BpkStarRating.js +123 -0
  1242. package/bpk-component-star-rating/src/BpkStarRating.module.css +18 -0
  1243. package/bpk-component-star-rating/src/BpkStarRating.module.scss +21 -0
  1244. package/bpk-component-star-rating/src/themeAttributes.js +21 -0
  1245. package/bpk-component-star-rating/src/withInteractiveStarRatingState.js +99 -0
  1246. package/bpk-component-switch/README.md +37 -0
  1247. package/bpk-component-switch/examples.js +40 -0
  1248. package/bpk-component-switch/index.js +28 -0
  1249. package/bpk-component-switch/package.json +24 -0
  1250. package/bpk-component-switch/src/BpkSwitch.js +82 -0
  1251. package/bpk-component-switch/src/BpkSwitch.module.css +18 -0
  1252. package/bpk-component-switch/src/BpkSwitch.module.scss +93 -0
  1253. package/bpk-component-switch/src/themeAttributes.js +19 -0
  1254. package/bpk-component-table/README.md +66 -0
  1255. package/bpk-component-table/examples.js +97 -0
  1256. package/bpk-component-table/index.js +35 -0
  1257. package/bpk-component-table/package.json +24 -0
  1258. package/bpk-component-table/src/BpkTable.js +63 -0
  1259. package/bpk-component-table/src/BpkTable.module.css +18 -0
  1260. package/bpk-component-table/src/BpkTable.module.scss +39 -0
  1261. package/bpk-component-table/src/BpkTableBody.js +32 -0
  1262. package/bpk-component-table/src/BpkTableCell.js +56 -0
  1263. package/bpk-component-table/src/BpkTableHead.js +32 -0
  1264. package/bpk-component-table/src/BpkTableHeadCell.js +54 -0
  1265. package/bpk-component-table/src/BpkTableRow.js +32 -0
  1266. package/bpk-component-text/README.md +76 -0
  1267. package/bpk-component-text/examples.js +135 -0
  1268. package/bpk-component-text/examples.module.css +18 -0
  1269. package/bpk-component-text/examples.module.scss +25 -0
  1270. package/bpk-component-text/index.js +24 -0
  1271. package/bpk-component-text/package.json +24 -0
  1272. package/bpk-component-text/src/BpkText.js +150 -0
  1273. package/bpk-component-text/src/BpkText.module.css +18 -0
  1274. package/bpk-component-text/src/BpkText.module.scss +135 -0
  1275. package/bpk-component-textarea/README.md +34 -0
  1276. package/bpk-component-textarea/examples.js +116 -0
  1277. package/bpk-component-textarea/index.js +25 -0
  1278. package/bpk-component-textarea/package.json +28 -0
  1279. package/bpk-component-textarea/src/BpkTextarea.js +75 -0
  1280. package/bpk-component-textarea/src/BpkTextarea.module.css +18 -0
  1281. package/bpk-component-textarea/src/BpkTextarea.module.scss +33 -0
  1282. package/bpk-component-textarea/src/themeAttributes.js +21 -0
  1283. package/bpk-component-theme-toggle/README.md +30 -0
  1284. package/bpk-component-theme-toggle/index.js +23 -0
  1285. package/bpk-component-theme-toggle/package.json +28 -0
  1286. package/bpk-component-theme-toggle/src/BpkThemeToggle.js +120 -0
  1287. package/bpk-component-theme-toggle/src/BpkThemeToggle.module.css +18 -0
  1288. package/bpk-component-theme-toggle/src/BpkThemeToggle.module.scss +25 -0
  1289. package/bpk-component-theme-toggle/src/theming.js +274 -0
  1290. package/bpk-component-theme-toggle/src/updateOnThemeChange.js +73 -0
  1291. package/bpk-component-theme-toggle/src/utils.js +23 -0
  1292. package/bpk-component-ticket/README.md +38 -0
  1293. package/bpk-component-ticket/examples.js +203 -0
  1294. package/bpk-component-ticket/examples.module.css +18 -0
  1295. package/bpk-component-ticket/examples.module.scss +79 -0
  1296. package/bpk-component-ticket/index.js +23 -0
  1297. package/bpk-component-ticket/package.json +28 -0
  1298. package/bpk-component-ticket/src/BpkTicket.js +187 -0
  1299. package/bpk-component-ticket/src/BpkTicket.module.css +18 -0
  1300. package/bpk-component-ticket/src/BpkTicket.module.scss +297 -0
  1301. package/bpk-component-tooltip/README.md +56 -0
  1302. package/bpk-component-tooltip/examples.js +181 -0
  1303. package/bpk-component-tooltip/index.js +27 -0
  1304. package/bpk-component-tooltip/package.json +29 -0
  1305. package/bpk-component-tooltip/src/BpkTooltip.js +98 -0
  1306. package/bpk-component-tooltip/src/BpkTooltip.module.css +18 -0
  1307. package/bpk-component-tooltip/src/BpkTooltip.module.scss +153 -0
  1308. package/bpk-component-tooltip/src/BpkTooltipPortal.js +212 -0
  1309. package/bpk-component-tooltip/src/constants.js +27 -0
  1310. package/bpk-react-utils/README.md +251 -0
  1311. package/bpk-react-utils/index.js +58 -0
  1312. package/bpk-react-utils/package.json +26 -0
  1313. package/bpk-react-utils/src/Portal.js +310 -0
  1314. package/bpk-react-utils/src/TransitionInitialMount.js +63 -0
  1315. package/bpk-react-utils/src/cssModules.js +29 -0
  1316. package/bpk-react-utils/src/deprecated.js +40 -0
  1317. package/bpk-react-utils/src/deviceDetection.js +31 -0
  1318. package/bpk-react-utils/src/isRTL.js +36 -0
  1319. package/bpk-react-utils/src/withDefaultProps.js +77 -0
  1320. package/bpk-scrim-utils/README.md +50 -0
  1321. package/bpk-scrim-utils/index.js +24 -0
  1322. package/bpk-scrim-utils/package.json +25 -0
  1323. package/bpk-scrim-utils/src/BpkScrim.js +52 -0
  1324. package/bpk-scrim-utils/src/bpk-scrim-content.module.css +18 -0
  1325. package/bpk-scrim-utils/src/bpk-scrim-content.module.scss +32 -0
  1326. package/bpk-scrim-utils/src/bpk-scrim.module.css +18 -0
  1327. package/bpk-scrim-utils/src/bpk-scrim.module.scss +51 -0
  1328. package/bpk-scrim-utils/src/customPropTypes.js +39 -0
  1329. package/bpk-scrim-utils/src/scroll-utils.js +115 -0
  1330. package/bpk-scrim-utils/src/withScrim.js +161 -0
  1331. package/bpk-tether/.eslintrc +6 -0
  1332. package/bpk-tether/README.md +52 -0
  1333. package/bpk-tether/index.js +24 -0
  1334. package/bpk-tether/package.json +19 -0
  1335. package/bpk-tether/src/TetherWrapper.js +30 -0
  1336. package/bpk-tether/src/applyRTLTransforms.js +49 -0
  1337. package/bpk-tether/src/getArrowPositionCallback.js +65 -0
  1338. package/bpk-theming/README.md +43 -0
  1339. package/bpk-theming/index.js +21 -0
  1340. package/bpk-theming/package.json +23 -0
  1341. package/bpk-theming/src/BpkThemeProvider.js +149 -0
  1342. package/package.json +50 -0
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "bpk-component-section-list",
3
+ "version": "3.2.0",
4
+ "description": "Backpack section list component.",
5
+ "license": "Apache-2.0",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git@github.com:Skyscanner/backpack.git"
9
+ },
10
+ "author": "Backpack Design System <backpack@skyscanner.net>",
11
+ "main": "index.js",
12
+ "publishConfig": {
13
+ "registry": "https://registry.npmjs.org/"
14
+ },
15
+ "gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
16
+ "dependencies": {
17
+ "@skyscanner/bpk-foundations-web": "^5.0.0",
18
+ "bpk-component-icon": "^9.2.0",
19
+ "bpk-component-text": "^6.1.0",
20
+ "bpk-mixins": "^26.1.0",
21
+ "bpk-react-utils": "^4.1.0",
22
+ "prop-types": "^15.7.2"
23
+ },
24
+ "devDependencies": {
25
+ "bpk-storybook-utils": "^1.1.0"
26
+ },
27
+ "peerDependencies": {
28
+ "react": "^16.3.0 || ^17.0.0"
29
+ }
30
+ }
@@ -0,0 +1,38 @@
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 PropTypes from 'prop-types';
22
+ import React, { type Node } from 'react';
23
+
24
+ type Props = {
25
+ children: Node,
26
+ };
27
+
28
+ const BpkSectionList = (props: Props) => {
29
+ const { children, ...rest } = props;
30
+
31
+ return <section {...rest}>{children}</section>;
32
+ };
33
+
34
+ BpkSectionList.propTypes = {
35
+ children: PropTypes.node.isRequired,
36
+ };
37
+
38
+ export default BpkSectionList;
@@ -0,0 +1,112 @@
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 PropTypes from 'prop-types';
22
+ import React, { type Node } from 'react';
23
+ import { cssModules } from 'bpk-react-utils';
24
+ import BpkLargeChevronRightIcon from 'bpk-component-icon/lg/chevron-right';
25
+ import { withRtlSupport } from 'bpk-component-icon';
26
+
27
+ import STYLES from './BpkSectionListItem.module.scss';
28
+
29
+ const BpkLargeChevronRightIconWithRtlSupport = withRtlSupport(
30
+ BpkLargeChevronRightIcon,
31
+ );
32
+
33
+ const getClassName = cssModules(STYLES);
34
+
35
+ type Props = {
36
+ blank: boolean,
37
+ children: Node,
38
+ className: ?string,
39
+ href: ?string,
40
+ onClick: ?(event: SyntheticEvent<>) => void,
41
+ };
42
+
43
+ const BpkSectionListItem = (props: Props) => {
44
+ const { blank, children, className, href, onClick, ...rest } = props;
45
+ const classNames = [
46
+ getClassName(
47
+ 'bpk-section-list-item',
48
+ (href || onClick) && 'bpk-section-list-item--interactive',
49
+ className,
50
+ ),
51
+ ];
52
+
53
+ if (href) {
54
+ const target = blank ? '_blank' : null;
55
+ return (
56
+ // $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
57
+ <a
58
+ href={href}
59
+ target={target}
60
+ onClick={onClick}
61
+ className={classNames.join(' ')}
62
+ {...rest}
63
+ >
64
+ {children}
65
+ <BpkLargeChevronRightIconWithRtlSupport
66
+ className={getClassName('bpk-section-list-item__chevron')}
67
+ />
68
+ </a>
69
+ );
70
+ }
71
+
72
+ if (onClick) {
73
+ return (
74
+ // $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
75
+ <button
76
+ type="button"
77
+ onClick={onClick}
78
+ className={classNames.join(' ')}
79
+ {...rest}
80
+ >
81
+ {children}
82
+ <BpkLargeChevronRightIconWithRtlSupport
83
+ className={getClassName('bpk-section-list-item__chevron')}
84
+ />
85
+ </button>
86
+ );
87
+ }
88
+
89
+ return (
90
+ // $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
91
+ <div className={classNames.join(' ')} {...rest}>
92
+ {children}
93
+ </div>
94
+ );
95
+ };
96
+
97
+ BpkSectionListItem.propTypes = {
98
+ children: PropTypes.node.isRequired,
99
+ blank: PropTypes.bool,
100
+ className: PropTypes.string,
101
+ href: PropTypes.string,
102
+ onClick: PropTypes.func,
103
+ };
104
+
105
+ BpkSectionListItem.defaultProps = {
106
+ blank: false,
107
+ className: null,
108
+ href: null,
109
+ onClick: null,
110
+ };
111
+
112
+ export default BpkSectionListItem;
@@ -0,0 +1,18 @@
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
+ @keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-section-list-item{display:flex;width:100%;min-height:4rem;padding:0.5rem 1rem;justify-content:space-between;align-items:center;border:none;background-color:#fff;color:#444560;text-decoration:none;box-shadow:0 -1px 0 0 #dddde5 inset}.bpk-section-list-item--interactive{cursor:pointer}.bpk-section-list-item__chevron{fill:#68697f}.bpk-section-list-item:hover .bpk-section-list-item__chevron{fill:#444560}.bpk-section-list-item:active .bpk-section-list-item__chevron{fill:#111236}
@@ -0,0 +1,54 @@
1
+ /*
2
+ * Backpack - Skyscanner's Design System
3
+ *
4
+ * Copyright 2016 Skyscanner Ltd
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+
19
+ @import '~bpk-mixins/index';
20
+
21
+ $bpk-spacing-v2: true;
22
+
23
+ .bpk-section-list-item {
24
+ $root: &;
25
+
26
+ display: flex;
27
+ width: 100%;
28
+ min-height: bpk-spacing-xl() * 2;
29
+ padding: bpk-spacing-md() bpk-spacing-base();
30
+ justify-content: space-between;
31
+ align-items: center;
32
+ border: none;
33
+ background-color: $bpk-color-white;
34
+ color: $bpk-color-sky-gray-tint-01;
35
+ text-decoration: none;
36
+
37
+ @include bpk-border-bottom-sm($bpk-color-sky-gray-tint-06);
38
+
39
+ &--interactive {
40
+ cursor: pointer;
41
+ }
42
+
43
+ &__chevron {
44
+ fill: $bpk-color-sky-gray-tint-02;
45
+
46
+ #{$root}:hover & {
47
+ fill: $bpk-color-sky-gray-tint-01;
48
+ }
49
+
50
+ #{$root}:active & {
51
+ fill: $bpk-color-sky-gray;
52
+ }
53
+ }
54
+ }
@@ -0,0 +1,65 @@
1
+ /*
2
+ * Backpack - Skyscanner's Design System
3
+ *
4
+ * Copyright 2016 Skyscanner Ltd
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+
19
+ /* @flow strict */
20
+
21
+ import PropTypes from 'prop-types';
22
+ import React, { type Node } from 'react';
23
+ import { cssModules } from 'bpk-react-utils';
24
+ import BpkText, { WEIGHT_STYLES } from 'bpk-component-text';
25
+
26
+ import STYLES from './BpkSectionListSection.module.scss';
27
+
28
+ const getClassName = cssModules(STYLES);
29
+
30
+ type Props = {
31
+ children: Node,
32
+ headerText: ?string,
33
+ };
34
+
35
+ const BpkSectionListSection = (props: Props) => {
36
+ const { children, headerText, ...rest } = props;
37
+
38
+ return (
39
+ <section {...rest}>
40
+ {headerText && (
41
+ <header className={getClassName('bpk-section-list-section__header')}>
42
+ <BpkText weight={WEIGHT_STYLES.bold} textStyle="base">
43
+ {headerText}
44
+ </BpkText>
45
+ </header>
46
+ )}
47
+ <ul className={getClassName('bpk-section-list-section')}>
48
+ {React.Children.map(children, (child) => (
49
+ <li>{child}</li>
50
+ ))}
51
+ </ul>
52
+ </section>
53
+ );
54
+ };
55
+
56
+ BpkSectionListSection.propTypes = {
57
+ children: PropTypes.node.isRequired,
58
+ headerText: PropTypes.string,
59
+ };
60
+
61
+ BpkSectionListSection.defaultProps = {
62
+ headerText: null,
63
+ };
64
+
65
+ export default BpkSectionListSection;
@@ -0,0 +1,18 @@
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
+ @keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-section-list-section{margin:0;padding:0;list-style:none}.bpk-section-list-section__header{display:flex;min-height:2rem;padding:0.5rem 1rem;align-items:center;background-color:#dddde5}
@@ -0,0 +1,35 @@
1
+ /*
2
+ * Backpack - Skyscanner's Design System
3
+ *
4
+ * Copyright 2016 Skyscanner Ltd
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+
19
+ @import '~bpk-mixins/index';
20
+
21
+ $bpk-spacing-v2: true;
22
+
23
+ .bpk-section-list-section {
24
+ margin: 0;
25
+ padding: 0;
26
+ list-style: none;
27
+
28
+ &__header {
29
+ display: flex;
30
+ min-height: bpk-spacing-xl();
31
+ padding: bpk-spacing-md() bpk-spacing-base();
32
+ align-items: center;
33
+ background-color: $bpk-color-sky-gray-tint-06;
34
+ }
35
+ }
@@ -0,0 +1,47 @@
1
+ # bpk-component-select
2
+
3
+ > Backpack select component.
4
+
5
+ ## Installation
6
+
7
+ ```sh
8
+ npm install bpk-component-select --save-dev
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```js
14
+ import React from 'react';
15
+ import BpkSelect from 'bpk-component-select';
16
+
17
+ export default () => (
18
+ <BpkSelect
19
+ id="fruits"
20
+ name="fruits"
21
+ value="oranges"
22
+ onChange={(e) => console.log(`select changed to ${e.target.value}`)}
23
+ >
24
+ <option value="apples">Apples</option>
25
+ <option value="oranges">Oranges</option>
26
+ <option value="pears">Pears</option>
27
+ </BpkSelect>
28
+ );
29
+ ```
30
+
31
+ ## Props
32
+
33
+ | Property | PropType | Required | Default Value |
34
+ | ------------ | -------- | -------- | ------------- |
35
+ | id | string | true | - |
36
+ | name | string | true | - |
37
+ | value | string | true | - |
38
+ | onChange | func | true | - |
39
+ | valid | bool | false | null |
40
+ | large | bool | false | false |
41
+ | disabled | bool | false | false |
42
+ | docked | bool | false | false |
43
+ | dockedFirst | bool | false | false |
44
+ | dockedMiddle | bool | false | false |
45
+ | dockedLast | bool | false | false |
46
+ | image | node | false | null |
47
+ | wrapperClassName | string | false | null |
@@ -0,0 +1,274 @@
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 React from 'react';
20
+ import PropTypes from 'prop-types';
21
+ import { action } from 'bpk-storybook-utils';
22
+
23
+ import BpkSelect from './index';
24
+
25
+ class StatefulBpkSelect extends React.Component {
26
+ constructor() {
27
+ super();
28
+ this.state = { value: 'oranges' };
29
+ }
30
+
31
+ onChange = (value) => {
32
+ action(`BpkSelect changed. New value: ${value}`);
33
+ this.setState({ value });
34
+ };
35
+
36
+ render() {
37
+ return (
38
+ <BpkSelect
39
+ id="destination"
40
+ name="destination"
41
+ value={this.state.value}
42
+ onChange={(event) => {
43
+ this.onChange(event.target.value);
44
+ }}
45
+ {...this.props}
46
+ >
47
+ <option value="Karachi">Karachi</option>
48
+ <option value="Lahore">Lahore</option>
49
+ <option value="Faisalabad">Faisalabad</option>
50
+ <option value="Islamabad" disabled>
51
+ Islamabad
52
+ </option>
53
+ </BpkSelect>
54
+ );
55
+ }
56
+ }
57
+
58
+ const getFlagUriFromCountryCode = (countryCode) =>
59
+ `https://images.skyscnr.com/images/country/flag/header/${countryCode.toLowerCase()}.png`;
60
+
61
+ const countries = [
62
+ { key: 0, id: 'AT', name: 'Austria', disabled: false },
63
+ { key: 1, id: 'BR', name: 'Brazil', disabled: false },
64
+ { key: 2, id: 'CN', name: 'China', disabled: false },
65
+ { key: 3, id: 'DJ', name: 'Djibouti', disabled: false },
66
+ { key: 4, id: 'EC', name: 'Ecuador', disabled: false },
67
+ { key: 5, id: 'GD', name: 'Grenada', disabled: false },
68
+ { key: 6, id: 'HT', name: 'Haiti', disabled: false },
69
+ { key: 7, id: 'IT', name: 'Italy', disabled: false },
70
+ { key: 8, id: 'US', name: 'USA', disabled: true },
71
+ ];
72
+ class SelectWithImage extends React.Component {
73
+ constructor(props) {
74
+ super(props);
75
+ this.state = {
76
+ selected: 'IT',
77
+ };
78
+ }
79
+
80
+ getItemByValue = () => {
81
+ const { options } = this.props;
82
+ return (val) => {
83
+ const items = options.filter((o) => o.id === val);
84
+ if (!items.length) throw new Error('Item does not exists');
85
+ return items[0];
86
+ };
87
+ };
88
+
89
+ getItem = this.getItemByValue();
90
+
91
+ handleChange = (e) => {
92
+ const item = this.getItem(e.target.value);
93
+
94
+ this.setState({
95
+ selected: item.id,
96
+ });
97
+ };
98
+
99
+ image = (id) => <img alt="Flag" src={getFlagUriFromCountryCode(id)} />;
100
+
101
+ render() {
102
+ const { options, ...rest } = this.props;
103
+ return (
104
+ <BpkSelect
105
+ value={this.getItem(this.state.selected).id}
106
+ {...rest}
107
+ image={this.image(this.getItem(this.state.selected).id)}
108
+ onChange={this.handleChange}
109
+ >
110
+ {options.map((o) => (
111
+ <option key={o.id} disabled={o.disabled && 'disabled'} value={o.id}>
112
+ {o.name}
113
+ </option>
114
+ ))}
115
+ </BpkSelect>
116
+ );
117
+ }
118
+ }
119
+
120
+ SelectWithImage.propTypes = {
121
+ options: PropTypes.arrayOf(PropTypes.object).isRequired,
122
+ };
123
+
124
+ const Example = () => <StatefulBpkSelect />;
125
+
126
+ const Invalid = () => <StatefulBpkSelect valid={false} />;
127
+
128
+ const InvalidWithImage = () => (
129
+ <SelectWithImage
130
+ valid={false}
131
+ id="countries"
132
+ name="countries"
133
+ options={countries}
134
+ />
135
+ );
136
+
137
+ const Disabled = () => <StatefulBpkSelect disabled />;
138
+
139
+ const Large = () => <StatefulBpkSelect large />;
140
+
141
+ const Docked = () => (
142
+ <div style={{ display: 'flex' }}>
143
+ <StatefulBpkSelect large docked />
144
+ <StatefulBpkSelect large docked />
145
+ <StatefulBpkSelect large docked />
146
+ <StatefulBpkSelect large docked />
147
+ </div>
148
+ );
149
+
150
+ const DockedWithImages = () => (
151
+ <div style={{ display: 'flex' }}>
152
+ <SelectWithImage
153
+ large
154
+ dockedFirst
155
+ id="countries"
156
+ name="countries"
157
+ options={countries}
158
+ />
159
+ <SelectWithImage
160
+ large
161
+ dockedMiddle
162
+ id="countries"
163
+ name="countries"
164
+ options={countries}
165
+ />
166
+ <SelectWithImage
167
+ large
168
+ dockedMiddle
169
+ id="countries"
170
+ name="countries"
171
+ options={countries}
172
+ />
173
+ <SelectWithImage
174
+ large
175
+ dockedLast
176
+ id="countries"
177
+ name="countries"
178
+ options={countries}
179
+ />
180
+ </div>
181
+ );
182
+
183
+ const ManuallyDocked = () => (
184
+ <div style={{ display: 'flex' }}>
185
+ <div style={{ width: '100%' }}>
186
+ <StatefulBpkSelect large dockedFirst />
187
+ </div>
188
+ <div style={{ width: '100%' }}>
189
+ <StatefulBpkSelect large dockedMiddle />
190
+ </div>
191
+ <div style={{ width: '100%' }}>
192
+ <StatefulBpkSelect large dockedMiddle />
193
+ </div>
194
+ <div style={{ width: '100%' }}>
195
+ <StatefulBpkSelect large dockedLast />
196
+ </div>
197
+ </div>
198
+ );
199
+
200
+ const ManuallyDockedWithImages = () => (
201
+ <div style={{ display: 'flex' }}>
202
+ <div style={{ width: '100%' }}>
203
+ <SelectWithImage
204
+ large
205
+ dockedFirst
206
+ id="countries"
207
+ name="countries"
208
+ options={countries}
209
+ />
210
+ </div>
211
+ <div style={{ width: '100%' }}>
212
+ <SelectWithImage
213
+ large
214
+ dockedMiddle
215
+ id="countries"
216
+ name="countries"
217
+ options={countries}
218
+ />
219
+ </div>
220
+ <div style={{ width: '100%' }}>
221
+ <SelectWithImage
222
+ large
223
+ dockedMiddle
224
+ id="countries"
225
+ name="countries"
226
+ options={countries}
227
+ />
228
+ </div>
229
+ <div style={{ width: '100%' }}>
230
+ <SelectWithImage
231
+ large
232
+ dockedLast
233
+ id="countries"
234
+ name="countries"
235
+ options={countries}
236
+ />
237
+ </div>
238
+ </div>
239
+ );
240
+
241
+ const WithImage = () => (
242
+ <SelectWithImage id="countries" name="countries" options={countries} />
243
+ );
244
+
245
+ const WithImageLarge = () => (
246
+ <SelectWithImage large id="countries" name="countries" options={countries} />
247
+ );
248
+
249
+ const MixedExample = () => (
250
+ <div>
251
+ <Example />
252
+ <Invalid />
253
+ <InvalidWithImage />
254
+ <Disabled />
255
+ <Large />
256
+ <Docked />
257
+ <ManuallyDocked />
258
+ </div>
259
+ );
260
+
261
+ export {
262
+ Example,
263
+ Invalid,
264
+ InvalidWithImage,
265
+ Disabled,
266
+ Large,
267
+ Docked,
268
+ DockedWithImages,
269
+ ManuallyDocked,
270
+ ManuallyDockedWithImages,
271
+ WithImage,
272
+ WithImageLarge,
273
+ MixedExample,
274
+ };