@skyscanner/backpack-web 25.7.0-beta → 25.7.0-beta.2

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