@skyscanner/backpack-web 25.6.0 → 25.7.0-beta

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