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

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