@skyscanner/backpack-web 9.0.0 → 9.1.0-alpha.1

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