@skyscanner/backpack-web 26.0.0 → 28.0.0

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 (596) hide show
  1. package/README.md +2 -2
  2. package/bpk-component-close-button/src/BpkCloseButton.module.css +1 -1
  3. package/bpk-component-code/src/BpkCode.module.css +1 -1
  4. package/bpk-component-code/src/BpkCodeBlock.module.css +1 -1
  5. package/bpk-component-form-validation/src/BpkFormValidation.module.css +1 -1
  6. package/bpk-component-grid-toggle/src/BpkGridToggle.module.css +1 -1
  7. package/bpk-component-icon/lg/accessibility.js +1 -2
  8. package/bpk-component-icon/lg/account--add.js +1 -2
  9. package/bpk-component-icon/lg/account--female.js +1 -2
  10. package/bpk-component-icon/lg/account--id-card.js +1 -2
  11. package/bpk-component-icon/lg/account--name.js +1 -2
  12. package/bpk-component-icon/lg/account--permit.js +1 -2
  13. package/bpk-component-icon/lg/account-circle.js +1 -2
  14. package/bpk-component-icon/lg/account.js +1 -2
  15. package/bpk-component-icon/lg/add-circle.js +1 -2
  16. package/bpk-component-icon/lg/adult.js +1 -2
  17. package/bpk-component-icon/lg/ai.js +1 -2
  18. package/bpk-component-icon/lg/aircon.js +1 -2
  19. package/bpk-component-icon/lg/aircraft.js +1 -2
  20. package/bpk-component-icon/lg/airline--multiple.js +1 -2
  21. package/bpk-component-icon/lg/airline.js +1 -2
  22. package/bpk-component-icon/lg/airports.js +1 -2
  23. package/bpk-component-icon/lg/alert--active.js +1 -2
  24. package/bpk-component-icon/lg/alert--add.js +1 -2
  25. package/bpk-component-icon/lg/alert--expired.js +1 -2
  26. package/bpk-component-icon/lg/alert--remove.js +1 -2
  27. package/bpk-component-icon/lg/arrow-down.js +1 -2
  28. package/bpk-component-icon/lg/arrow-left.js +1 -2
  29. package/bpk-component-icon/lg/arrow-right.js +1 -2
  30. package/bpk-component-icon/lg/arrow-up.js +1 -2
  31. package/bpk-component-icon/lg/award.js +1 -2
  32. package/bpk-component-icon/lg/baby-carriage.js +1 -2
  33. package/bpk-component-icon/lg/baggage--add.js +1 -2
  34. package/bpk-component-icon/lg/baggage--remove.js +1 -2
  35. package/bpk-component-icon/lg/baggage-cabin-add.js +1 -2
  36. package/bpk-component-icon/lg/baggage-cabin-not-included.js +1 -2
  37. package/bpk-component-icon/lg/baggage-cabin.js +1 -2
  38. package/bpk-component-icon/lg/baggage-checked-add.js +1 -2
  39. package/bpk-component-icon/lg/baggage-checked-not-included.js +1 -2
  40. package/bpk-component-icon/lg/baggage-checked.js +1 -2
  41. package/bpk-component-icon/lg/baggage-cross.js +1 -2
  42. package/bpk-component-icon/lg/baggage-generic.js +1 -2
  43. package/bpk-component-icon/lg/baggage-tick.js +1 -2
  44. package/bpk-component-icon/lg/baggage.js +1 -2
  45. package/bpk-component-icon/lg/bar.js +1 -2
  46. package/bpk-component-icon/lg/beach.js +1 -2
  47. package/bpk-component-icon/lg/beer.js +1 -2
  48. package/bpk-component-icon/lg/breakfast-cross.js +1 -2
  49. package/bpk-component-icon/lg/breakfast-tick.js +1 -2
  50. package/bpk-component-icon/lg/bus.js +1 -2
  51. package/bpk-component-icon/lg/business.js +1 -2
  52. package/bpk-component-icon/lg/cafe.js +1 -2
  53. package/bpk-component-icon/lg/calendar.js +1 -2
  54. package/bpk-component-icon/lg/call-back.js +1 -2
  55. package/bpk-component-icon/lg/camera.js +1 -2
  56. package/bpk-component-icon/lg/camper-van.js +1 -2
  57. package/bpk-component-icon/lg/car-door.js +1 -2
  58. package/bpk-component-icon/lg/car-wash.js +1 -2
  59. package/bpk-component-icon/lg/cars-flexible.js +1 -2
  60. package/bpk-component-icon/lg/cars.js +1 -2
  61. package/bpk-component-icon/lg/center-location.js +1 -2
  62. package/bpk-component-icon/lg/chart.js +1 -2
  63. package/bpk-component-icon/lg/chauffeur.js +1 -2
  64. package/bpk-component-icon/lg/chevron-down.js +1 -2
  65. package/bpk-component-icon/lg/chevron-left.js +1 -2
  66. package/bpk-component-icon/lg/chevron-right.js +1 -2
  67. package/bpk-component-icon/lg/chevron-up.js +1 -2
  68. package/bpk-component-icon/lg/child-seat.js +1 -2
  69. package/bpk-component-icon/lg/child.js +1 -2
  70. package/bpk-component-icon/lg/city-center.js +1 -2
  71. package/bpk-component-icon/lg/city.js +1 -2
  72. package/bpk-component-icon/lg/clean-policy.js +1 -2
  73. package/bpk-component-icon/lg/clean.js +1 -2
  74. package/bpk-component-icon/lg/cleaning-medical.js +1 -2
  75. package/bpk-component-icon/lg/cloakroom.js +1 -2
  76. package/bpk-component-icon/lg/close-circle.js +1 -2
  77. package/bpk-component-icon/lg/close.js +1 -2
  78. package/bpk-component-icon/lg/collapse.js +1 -2
  79. package/bpk-component-icon/lg/content--copy.js +1 -2
  80. package/bpk-component-icon/lg/content--event.js +1 -2
  81. package/bpk-component-icon/lg/content--guides.js +1 -2
  82. package/bpk-component-icon/lg/currency.js +1 -2
  83. package/bpk-component-icon/lg/data.js +1 -2
  84. package/bpk-component-icon/lg/deals.js +1 -2
  85. package/bpk-component-icon/lg/depart.js +1 -2
  86. package/bpk-component-icon/lg/device-mid.js +1 -2
  87. package/bpk-component-icon/lg/device-wide.js +1 -2
  88. package/bpk-component-icon/lg/direct.js +1 -2
  89. package/bpk-component-icon/lg/document-csv.js +1 -2
  90. package/bpk-component-icon/lg/document-pdf.js +1 -2
  91. package/bpk-component-icon/lg/download.js +1 -2
  92. package/bpk-component-icon/lg/duration.js +1 -2
  93. package/bpk-component-icon/lg/eco-leaf.js +1 -2
  94. package/bpk-component-icon/lg/edit.js +1 -2
  95. package/bpk-component-icon/lg/education.js +1 -2
  96. package/bpk-component-icon/lg/electric.js +1 -2
  97. package/bpk-component-icon/lg/end-call.js +1 -2
  98. package/bpk-component-icon/lg/estimated.js +1 -2
  99. package/bpk-component-icon/lg/exclamation-circle.js +1 -2
  100. package/bpk-component-icon/lg/exclamation.js +1 -2
  101. package/bpk-component-icon/lg/expand.js +1 -2
  102. package/bpk-component-icon/lg/explore.js +1 -2
  103. package/bpk-component-icon/lg/face--blank.js +1 -2
  104. package/bpk-component-icon/lg/face--happy.js +1 -2
  105. package/bpk-component-icon/lg/face--sad.js +1 -2
  106. package/bpk-component-icon/lg/face-id.js +1 -2
  107. package/bpk-component-icon/lg/face-mask.js +1 -2
  108. package/bpk-component-icon/lg/family.js +1 -2
  109. package/bpk-component-icon/lg/fast-track.js +1 -2
  110. package/bpk-component-icon/lg/fast-train.js +1 -2
  111. package/bpk-component-icon/lg/filter.js +1 -2
  112. package/bpk-component-icon/lg/fingerprint.js +1 -2
  113. package/bpk-component-icon/lg/flag.js +1 -2
  114. package/bpk-component-icon/lg/flask.js +1 -2
  115. package/bpk-component-icon/lg/flight-flexible.js +1 -2
  116. package/bpk-component-icon/lg/flight-landing.js +1 -2
  117. package/bpk-component-icon/lg/flight-takeoff.js +1 -2
  118. package/bpk-component-icon/lg/flight.js +1 -2
  119. package/bpk-component-icon/lg/food.js +1 -2
  120. package/bpk-component-icon/lg/gears-automatic-circle.js +1 -2
  121. package/bpk-component-icon/lg/gears-automatic.js +1 -2
  122. package/bpk-component-icon/lg/gears-manual-circle.js +1 -2
  123. package/bpk-component-icon/lg/gears-manual.js +1 -2
  124. package/bpk-component-icon/lg/globe.js +1 -2
  125. package/bpk-component-icon/lg/grid-layout.js +1 -2
  126. package/bpk-component-icon/lg/headset.js +1 -2
  127. package/bpk-component-icon/lg/health-fitness.js +1 -2
  128. package/bpk-component-icon/lg/heart--outline.js +1 -2
  129. package/bpk-component-icon/lg/heart.js +1 -2
  130. package/bpk-component-icon/lg/help-circle.js +1 -2
  131. package/bpk-component-icon/lg/help.js +1 -2
  132. package/bpk-component-icon/lg/hide.js +1 -2
  133. package/bpk-component-icon/lg/hotel-flexible.js +1 -2
  134. package/bpk-component-icon/lg/hotels--disabled-facilities.js +1 -2
  135. package/bpk-component-icon/lg/hotels--jacuzzi.js +1 -2
  136. package/bpk-component-icon/lg/hotels--pets-allowed.js +1 -2
  137. package/bpk-component-icon/lg/hotels--smoking.js +1 -2
  138. package/bpk-component-icon/lg/hotels.js +1 -2
  139. package/bpk-component-icon/lg/infant.js +1 -2
  140. package/bpk-component-icon/lg/information--language-alert.js +1 -2
  141. package/bpk-component-icon/lg/information--language-question.js +1 -2
  142. package/bpk-component-icon/lg/information--language.js +1 -2
  143. package/bpk-component-icon/lg/information-circle.js +1 -2
  144. package/bpk-component-icon/lg/information.js +1 -2
  145. package/bpk-component-icon/lg/insurance.js +1 -2
  146. package/bpk-component-icon/lg/key.js +1 -2
  147. package/bpk-component-icon/lg/keypad.js +1 -2
  148. package/bpk-component-icon/lg/landmark.js +1 -2
  149. package/bpk-component-icon/lg/language.js +1 -2
  150. package/bpk-component-icon/lg/legroom--extra.js +1 -2
  151. package/bpk-component-icon/lg/legroom--normal.js +1 -2
  152. package/bpk-component-icon/lg/legroom--reduced.js +1 -2
  153. package/bpk-component-icon/lg/leisure.js +1 -2
  154. package/bpk-component-icon/lg/lightning.js +1 -2
  155. package/bpk-component-icon/lg/list.js +1 -2
  156. package/bpk-component-icon/lg/location.js +1 -2
  157. package/bpk-component-icon/lg/lock.js +1 -2
  158. package/bpk-component-icon/lg/logout.js +1 -2
  159. package/bpk-component-icon/lg/long-arrow-down.js +1 -2
  160. package/bpk-component-icon/lg/long-arrow-left.js +1 -2
  161. package/bpk-component-icon/lg/long-arrow-right.js +1 -2
  162. package/bpk-component-icon/lg/long-arrow-up.js +1 -2
  163. package/bpk-component-icon/lg/lounge.js +1 -2
  164. package/bpk-component-icon/lg/luggageall.js +1 -2
  165. package/bpk-component-icon/lg/mail.js +1 -2
  166. package/bpk-component-icon/lg/map.js +1 -2
  167. package/bpk-component-icon/lg/meal.js +1 -2
  168. package/bpk-component-icon/lg/media.js +1 -2
  169. package/bpk-component-icon/lg/menu--horizontal.js +1 -2
  170. package/bpk-component-icon/lg/menu--vertical.js +1 -2
  171. package/bpk-component-icon/lg/menu.js +1 -2
  172. package/bpk-component-icon/lg/mileage.js +1 -2
  173. package/bpk-component-icon/lg/minus.js +1 -2
  174. package/bpk-component-icon/lg/mobile.js +1 -2
  175. package/bpk-component-icon/lg/money.js +1 -2
  176. package/bpk-component-icon/lg/multiple-bookings.js +1 -2
  177. package/bpk-component-icon/lg/music.js +1 -2
  178. package/bpk-component-icon/lg/mute.js +1 -2
  179. package/bpk-component-icon/lg/native-android--back.js +1 -2
  180. package/bpk-component-icon/lg/native-android--close.js +1 -2
  181. package/bpk-component-icon/lg/native-android--forward.js +1 -2
  182. package/bpk-component-icon/lg/native-ios-close.js +1 -2
  183. package/bpk-component-icon/lg/navigation.js +1 -2
  184. package/bpk-component-icon/lg/new-window.js +1 -2
  185. package/bpk-component-icon/lg/news.js +1 -2
  186. package/bpk-component-icon/lg/night.js +1 -2
  187. package/bpk-component-icon/lg/not-allowed.js +1 -2
  188. package/bpk-component-icon/lg/onsen.js +1 -2
  189. package/bpk-component-icon/lg/origin.js +1 -2
  190. package/bpk-component-icon/lg/paid.js +1 -2
  191. package/bpk-component-icon/lg/paperclip.js +1 -2
  192. package/bpk-component-icon/lg/parking.js +1 -2
  193. package/bpk-component-icon/lg/passport.js +1 -2
  194. package/bpk-component-icon/lg/pause.js +1 -2
  195. package/bpk-component-icon/lg/payment-card.js +1 -2
  196. package/bpk-component-icon/lg/petrol.js +1 -2
  197. package/bpk-component-icon/lg/phone-call.js +1 -2
  198. package/bpk-component-icon/lg/picture.js +1 -2
  199. package/bpk-component-icon/lg/pin.js +1 -2
  200. package/bpk-component-icon/lg/plane-seat.js +1 -2
  201. package/bpk-component-icon/lg/play.js +1 -2
  202. package/bpk-component-icon/lg/plus.js +1 -2
  203. package/bpk-component-icon/lg/policy.js +1 -2
  204. package/bpk-component-icon/lg/powerplug.js +1 -2
  205. package/bpk-component-icon/lg/ppe.js +1 -2
  206. package/bpk-component-icon/lg/price-alerts.js +1 -2
  207. package/bpk-component-icon/lg/price-tag.js +1 -2
  208. package/bpk-component-icon/lg/print.js +1 -2
  209. package/bpk-component-icon/lg/recent-searches.js +1 -2
  210. package/bpk-component-icon/lg/redo.js +1 -2
  211. package/bpk-component-icon/lg/refresh.js +1 -2
  212. package/bpk-component-icon/lg/return.js +1 -2
  213. package/bpk-component-icon/lg/room.js +1 -2
  214. package/bpk-component-icon/lg/scales.js +1 -2
  215. package/bpk-component-icon/lg/search.js +1 -2
  216. package/bpk-component-icon/lg/self-service.js +1 -2
  217. package/bpk-component-icon/lg/send-message.js +1 -2
  218. package/bpk-component-icon/lg/services.js +1 -2
  219. package/bpk-component-icon/lg/settings.js +1 -2
  220. package/bpk-component-icon/lg/share--android.js +1 -2
  221. package/bpk-component-icon/lg/share--ios.js +1 -2
  222. package/bpk-component-icon/lg/share.js +1 -2
  223. package/bpk-component-icon/lg/single-booking.js +1 -2
  224. package/bpk-component-icon/lg/social-distancing.js +1 -2
  225. package/bpk-component-icon/lg/social-like.js +1 -2
  226. package/bpk-component-icon/lg/sort-down.js +1 -2
  227. package/bpk-component-icon/lg/sort-up.js +1 -2
  228. package/bpk-component-icon/lg/sort.js +1 -2
  229. package/bpk-component-icon/lg/speaker.js +1 -2
  230. package/bpk-component-icon/lg/star-half.js +1 -2
  231. package/bpk-component-icon/lg/star-outline.js +1 -2
  232. package/bpk-component-icon/lg/star.js +1 -2
  233. package/bpk-component-icon/lg/stops.js +1 -2
  234. package/bpk-component-icon/lg/swap--horizontal.js +1 -2
  235. package/bpk-component-icon/lg/swap--vertical.js +1 -2
  236. package/bpk-component-icon/lg/swap.js +1 -2
  237. package/bpk-component-icon/lg/taxi.js +1 -2
  238. package/bpk-component-icon/lg/thumbs-down.js +1 -2
  239. package/bpk-component-icon/lg/thumbs-up.js +1 -2
  240. package/bpk-component-icon/lg/tick-circle.js +1 -2
  241. package/bpk-component-icon/lg/tick.js +1 -2
  242. package/bpk-component-icon/lg/ticket-flexible.js +1 -2
  243. package/bpk-component-icon/lg/ticket.js +1 -2
  244. package/bpk-component-icon/lg/time.js +1 -2
  245. package/bpk-component-icon/lg/toilets.js +1 -2
  246. package/bpk-component-icon/lg/train.js +1 -2
  247. package/bpk-component-icon/lg/transmission-automatic.js +1 -2
  248. package/bpk-component-icon/lg/transmission-manual.js +1 -2
  249. package/bpk-component-icon/lg/trash.js +1 -2
  250. package/bpk-component-icon/lg/trend--down.js +1 -2
  251. package/bpk-component-icon/lg/trend--steady.js +1 -2
  252. package/bpk-component-icon/lg/trend--will-rise.js +1 -2
  253. package/bpk-component-icon/lg/trend.js +1 -2
  254. package/bpk-component-icon/lg/trips.js +1 -2
  255. package/bpk-component-icon/lg/undo.js +1 -2
  256. package/bpk-component-icon/lg/unlock.js +1 -2
  257. package/bpk-component-icon/lg/unmute.js +1 -2
  258. package/bpk-component-icon/lg/upgrade.js +1 -2
  259. package/bpk-component-icon/lg/upload.js +1 -2
  260. package/bpk-component-icon/lg/use-location.js +1 -2
  261. package/bpk-component-icon/lg/view.js +1 -2
  262. package/bpk-component-icon/lg/virus.js +1 -2
  263. package/bpk-component-icon/lg/wallet.js +1 -2
  264. package/bpk-component-icon/lg/weather--clear.js +1 -2
  265. package/bpk-component-icon/lg/weather--cloudy.js +1 -2
  266. package/bpk-component-icon/lg/weather--fog.js +1 -2
  267. package/bpk-component-icon/lg/weather--partly-cloudy.js +1 -2
  268. package/bpk-component-icon/lg/weather--rain.js +1 -2
  269. package/bpk-component-icon/lg/weather--snow.js +1 -2
  270. package/bpk-component-icon/lg/weather--thunderstorm.js +1 -2
  271. package/bpk-component-icon/lg/weather--tornado.js +1 -2
  272. package/bpk-component-icon/lg/weather--wind.js +1 -2
  273. package/bpk-component-icon/lg/weather.js +1 -2
  274. package/bpk-component-icon/lg/wifi.js +1 -2
  275. package/bpk-component-icon/lg/window--reduce.js +1 -2
  276. package/bpk-component-icon/lg/window.js +1 -2
  277. package/bpk-component-icon/lg/world--amer.js +1 -2
  278. package/bpk-component-icon/lg/world--apac.js +1 -2
  279. package/bpk-component-icon/lg/world--emea.js +1 -2
  280. package/bpk-component-icon/sm/accessibility.js +0 -2
  281. package/bpk-component-icon/sm/account--add.js +0 -2
  282. package/bpk-component-icon/sm/account--female.js +0 -2
  283. package/bpk-component-icon/sm/account--id-card.js +0 -2
  284. package/bpk-component-icon/sm/account--name.js +0 -2
  285. package/bpk-component-icon/sm/account--permit.js +0 -2
  286. package/bpk-component-icon/sm/account-circle.js +0 -2
  287. package/bpk-component-icon/sm/account.js +0 -2
  288. package/bpk-component-icon/sm/add-circle.js +0 -2
  289. package/bpk-component-icon/sm/adult.js +0 -2
  290. package/bpk-component-icon/sm/ai.js +0 -2
  291. package/bpk-component-icon/sm/aircon.js +0 -2
  292. package/bpk-component-icon/sm/aircraft.js +0 -2
  293. package/bpk-component-icon/sm/airline--multiple.js +0 -2
  294. package/bpk-component-icon/sm/airline.js +0 -2
  295. package/bpk-component-icon/sm/airports.js +0 -2
  296. package/bpk-component-icon/sm/alert--active.js +0 -2
  297. package/bpk-component-icon/sm/alert--add.js +0 -2
  298. package/bpk-component-icon/sm/alert--expired.js +0 -2
  299. package/bpk-component-icon/sm/alert--remove.js +0 -2
  300. package/bpk-component-icon/sm/arrow-down.js +0 -2
  301. package/bpk-component-icon/sm/arrow-left.js +0 -2
  302. package/bpk-component-icon/sm/arrow-right.js +0 -2
  303. package/bpk-component-icon/sm/arrow-up.js +0 -2
  304. package/bpk-component-icon/sm/award.js +0 -2
  305. package/bpk-component-icon/sm/baby-carriage.js +0 -2
  306. package/bpk-component-icon/sm/baggage--add.js +0 -2
  307. package/bpk-component-icon/sm/baggage--remove.js +0 -2
  308. package/bpk-component-icon/sm/baggage-cabin-add.js +0 -2
  309. package/bpk-component-icon/sm/baggage-cabin-not-included.js +0 -2
  310. package/bpk-component-icon/sm/baggage-cabin.js +0 -2
  311. package/bpk-component-icon/sm/baggage-checked-add.js +0 -2
  312. package/bpk-component-icon/sm/baggage-checked-not-included.js +0 -2
  313. package/bpk-component-icon/sm/baggage-checked.js +0 -2
  314. package/bpk-component-icon/sm/baggage-cross.js +0 -2
  315. package/bpk-component-icon/sm/baggage-generic.js +0 -2
  316. package/bpk-component-icon/sm/baggage-tick.js +0 -2
  317. package/bpk-component-icon/sm/baggage.js +0 -2
  318. package/bpk-component-icon/sm/bar.js +0 -2
  319. package/bpk-component-icon/sm/beach.js +0 -2
  320. package/bpk-component-icon/sm/beer.js +0 -2
  321. package/bpk-component-icon/sm/breakfast-cross.js +0 -2
  322. package/bpk-component-icon/sm/breakfast-tick.js +0 -2
  323. package/bpk-component-icon/sm/bus.js +0 -2
  324. package/bpk-component-icon/sm/business.js +0 -2
  325. package/bpk-component-icon/sm/cafe.js +0 -2
  326. package/bpk-component-icon/sm/calendar.js +0 -2
  327. package/bpk-component-icon/sm/call-back.js +0 -2
  328. package/bpk-component-icon/sm/camera.js +0 -2
  329. package/bpk-component-icon/sm/camper-van.js +0 -2
  330. package/bpk-component-icon/sm/car-door.js +0 -2
  331. package/bpk-component-icon/sm/car-wash.js +0 -2
  332. package/bpk-component-icon/sm/cars-flexible.js +0 -2
  333. package/bpk-component-icon/sm/cars.js +0 -2
  334. package/bpk-component-icon/sm/center-location.js +0 -2
  335. package/bpk-component-icon/sm/chart.js +0 -2
  336. package/bpk-component-icon/sm/chauffeur.js +0 -2
  337. package/bpk-component-icon/sm/chevron-down.js +0 -2
  338. package/bpk-component-icon/sm/chevron-left.js +0 -2
  339. package/bpk-component-icon/sm/chevron-right.js +0 -2
  340. package/bpk-component-icon/sm/chevron-up.js +0 -2
  341. package/bpk-component-icon/sm/child-seat.js +0 -2
  342. package/bpk-component-icon/sm/child.js +0 -2
  343. package/bpk-component-icon/sm/city-center.js +0 -2
  344. package/bpk-component-icon/sm/city.js +0 -2
  345. package/bpk-component-icon/sm/clean-policy.js +0 -2
  346. package/bpk-component-icon/sm/clean.js +0 -2
  347. package/bpk-component-icon/sm/cleaning-medical.js +0 -2
  348. package/bpk-component-icon/sm/cloakroom.js +0 -2
  349. package/bpk-component-icon/sm/close-circle.js +0 -2
  350. package/bpk-component-icon/sm/close.js +0 -2
  351. package/bpk-component-icon/sm/collapse.js +0 -2
  352. package/bpk-component-icon/sm/content--copy.js +0 -2
  353. package/bpk-component-icon/sm/content--event.js +0 -2
  354. package/bpk-component-icon/sm/content--guides.js +0 -2
  355. package/bpk-component-icon/sm/currency.js +0 -2
  356. package/bpk-component-icon/sm/data.js +0 -2
  357. package/bpk-component-icon/sm/deals.js +0 -2
  358. package/bpk-component-icon/sm/depart.js +0 -2
  359. package/bpk-component-icon/sm/device-mid.js +0 -2
  360. package/bpk-component-icon/sm/device-wide.js +0 -2
  361. package/bpk-component-icon/sm/direct.js +0 -2
  362. package/bpk-component-icon/sm/document-csv.js +0 -2
  363. package/bpk-component-icon/sm/document-pdf.js +0 -2
  364. package/bpk-component-icon/sm/download.js +0 -2
  365. package/bpk-component-icon/sm/duration.js +0 -2
  366. package/bpk-component-icon/sm/eco-leaf.js +0 -2
  367. package/bpk-component-icon/sm/edit.js +0 -2
  368. package/bpk-component-icon/sm/education.js +0 -2
  369. package/bpk-component-icon/sm/electric.js +0 -2
  370. package/bpk-component-icon/sm/end-call.js +0 -2
  371. package/bpk-component-icon/sm/estimated.js +0 -2
  372. package/bpk-component-icon/sm/exclamation-circle.js +0 -2
  373. package/bpk-component-icon/sm/exclamation.js +0 -2
  374. package/bpk-component-icon/sm/expand.js +0 -2
  375. package/bpk-component-icon/sm/explore.js +0 -2
  376. package/bpk-component-icon/sm/face--blank.js +0 -2
  377. package/bpk-component-icon/sm/face--happy.js +0 -2
  378. package/bpk-component-icon/sm/face--sad.js +0 -2
  379. package/bpk-component-icon/sm/face-id.js +0 -2
  380. package/bpk-component-icon/sm/face-mask.js +0 -2
  381. package/bpk-component-icon/sm/family.js +0 -2
  382. package/bpk-component-icon/sm/fast-track.js +0 -2
  383. package/bpk-component-icon/sm/fast-train.js +0 -2
  384. package/bpk-component-icon/sm/filter.js +0 -2
  385. package/bpk-component-icon/sm/fingerprint.js +0 -2
  386. package/bpk-component-icon/sm/flag.js +0 -2
  387. package/bpk-component-icon/sm/flask.js +0 -2
  388. package/bpk-component-icon/sm/flight-flexible.js +0 -2
  389. package/bpk-component-icon/sm/flight-landing.js +0 -2
  390. package/bpk-component-icon/sm/flight-takeoff.js +0 -2
  391. package/bpk-component-icon/sm/flight.js +0 -2
  392. package/bpk-component-icon/sm/food.js +0 -2
  393. package/bpk-component-icon/sm/gears-automatic-circle.js +0 -2
  394. package/bpk-component-icon/sm/gears-automatic.js +0 -2
  395. package/bpk-component-icon/sm/gears-manual-circle.js +0 -2
  396. package/bpk-component-icon/sm/gears-manual.js +0 -2
  397. package/bpk-component-icon/sm/globe.js +0 -2
  398. package/bpk-component-icon/sm/grid-layout.js +0 -2
  399. package/bpk-component-icon/sm/headset.js +0 -2
  400. package/bpk-component-icon/sm/health-fitness.js +0 -2
  401. package/bpk-component-icon/sm/heart--outline.js +0 -2
  402. package/bpk-component-icon/sm/heart.js +0 -2
  403. package/bpk-component-icon/sm/help-circle.js +0 -2
  404. package/bpk-component-icon/sm/help.js +0 -2
  405. package/bpk-component-icon/sm/hide.js +0 -2
  406. package/bpk-component-icon/sm/hotel-flexible.js +0 -2
  407. package/bpk-component-icon/sm/hotels--disabled-facilities.js +0 -2
  408. package/bpk-component-icon/sm/hotels--jacuzzi.js +0 -2
  409. package/bpk-component-icon/sm/hotels--pets-allowed.js +0 -2
  410. package/bpk-component-icon/sm/hotels--smoking.js +0 -2
  411. package/bpk-component-icon/sm/hotels.js +0 -2
  412. package/bpk-component-icon/sm/infant.js +0 -2
  413. package/bpk-component-icon/sm/information--language-alert.js +0 -2
  414. package/bpk-component-icon/sm/information--language-question.js +0 -2
  415. package/bpk-component-icon/sm/information--language.js +0 -2
  416. package/bpk-component-icon/sm/information-circle.js +0 -2
  417. package/bpk-component-icon/sm/information.js +0 -2
  418. package/bpk-component-icon/sm/insurance.js +0 -2
  419. package/bpk-component-icon/sm/key.js +0 -2
  420. package/bpk-component-icon/sm/keypad.js +0 -2
  421. package/bpk-component-icon/sm/landmark.js +0 -2
  422. package/bpk-component-icon/sm/language.js +0 -2
  423. package/bpk-component-icon/sm/legroom--extra.js +0 -2
  424. package/bpk-component-icon/sm/legroom--normal.js +0 -2
  425. package/bpk-component-icon/sm/legroom--reduced.js +0 -2
  426. package/bpk-component-icon/sm/leisure.js +0 -2
  427. package/bpk-component-icon/sm/lightning.js +0 -2
  428. package/bpk-component-icon/sm/list.js +0 -2
  429. package/bpk-component-icon/sm/location.js +0 -2
  430. package/bpk-component-icon/sm/lock.js +0 -2
  431. package/bpk-component-icon/sm/logout.js +0 -2
  432. package/bpk-component-icon/sm/long-arrow-down.js +0 -2
  433. package/bpk-component-icon/sm/long-arrow-left.js +0 -2
  434. package/bpk-component-icon/sm/long-arrow-right.js +0 -2
  435. package/bpk-component-icon/sm/long-arrow-up.js +0 -2
  436. package/bpk-component-icon/sm/lounge.js +0 -2
  437. package/bpk-component-icon/sm/luggageall.js +0 -2
  438. package/bpk-component-icon/sm/mail.js +0 -2
  439. package/bpk-component-icon/sm/map.js +0 -2
  440. package/bpk-component-icon/sm/meal.js +0 -2
  441. package/bpk-component-icon/sm/media.js +0 -2
  442. package/bpk-component-icon/sm/menu--horizontal.js +0 -2
  443. package/bpk-component-icon/sm/menu--vertical.js +0 -2
  444. package/bpk-component-icon/sm/menu.js +0 -2
  445. package/bpk-component-icon/sm/mileage.js +0 -2
  446. package/bpk-component-icon/sm/minus.js +0 -2
  447. package/bpk-component-icon/sm/mobile.js +0 -2
  448. package/bpk-component-icon/sm/money.js +0 -2
  449. package/bpk-component-icon/sm/multiple-bookings.js +0 -2
  450. package/bpk-component-icon/sm/music.js +0 -2
  451. package/bpk-component-icon/sm/mute.js +0 -2
  452. package/bpk-component-icon/sm/native-android--back.js +0 -2
  453. package/bpk-component-icon/sm/native-android--close.js +0 -2
  454. package/bpk-component-icon/sm/native-android--forward.js +0 -2
  455. package/bpk-component-icon/sm/native-ios-close.js +0 -2
  456. package/bpk-component-icon/sm/navigation.js +0 -2
  457. package/bpk-component-icon/sm/new-window.js +0 -2
  458. package/bpk-component-icon/sm/news.js +0 -2
  459. package/bpk-component-icon/sm/night.js +0 -2
  460. package/bpk-component-icon/sm/not-allowed.js +0 -2
  461. package/bpk-component-icon/sm/onsen.js +0 -2
  462. package/bpk-component-icon/sm/origin.js +0 -2
  463. package/bpk-component-icon/sm/paid.js +0 -2
  464. package/bpk-component-icon/sm/paperclip.js +0 -2
  465. package/bpk-component-icon/sm/parking.js +0 -2
  466. package/bpk-component-icon/sm/passport.js +0 -2
  467. package/bpk-component-icon/sm/pause.js +0 -2
  468. package/bpk-component-icon/sm/payment-card.js +0 -2
  469. package/bpk-component-icon/sm/petrol.js +0 -2
  470. package/bpk-component-icon/sm/phone-call.js +0 -2
  471. package/bpk-component-icon/sm/picture.js +0 -2
  472. package/bpk-component-icon/sm/pin.js +0 -2
  473. package/bpk-component-icon/sm/plane-seat.js +0 -2
  474. package/bpk-component-icon/sm/play.js +0 -2
  475. package/bpk-component-icon/sm/plus.js +0 -2
  476. package/bpk-component-icon/sm/policy.js +0 -2
  477. package/bpk-component-icon/sm/powerplug.js +0 -2
  478. package/bpk-component-icon/sm/ppe.js +0 -2
  479. package/bpk-component-icon/sm/price-alerts.js +0 -2
  480. package/bpk-component-icon/sm/price-tag.js +0 -2
  481. package/bpk-component-icon/sm/print.js +0 -2
  482. package/bpk-component-icon/sm/recent-searches.js +0 -2
  483. package/bpk-component-icon/sm/redo.js +0 -2
  484. package/bpk-component-icon/sm/refresh.js +0 -2
  485. package/bpk-component-icon/sm/return.js +0 -2
  486. package/bpk-component-icon/sm/room.js +0 -2
  487. package/bpk-component-icon/sm/scales.js +0 -2
  488. package/bpk-component-icon/sm/search.js +0 -2
  489. package/bpk-component-icon/sm/self-service.js +0 -2
  490. package/bpk-component-icon/sm/send-message.js +0 -2
  491. package/bpk-component-icon/sm/services.js +0 -2
  492. package/bpk-component-icon/sm/settings.js +0 -2
  493. package/bpk-component-icon/sm/share--android.js +0 -2
  494. package/bpk-component-icon/sm/share--ios.js +0 -2
  495. package/bpk-component-icon/sm/share.js +0 -2
  496. package/bpk-component-icon/sm/single-booking.js +0 -2
  497. package/bpk-component-icon/sm/social-distancing.js +0 -2
  498. package/bpk-component-icon/sm/social-like.js +0 -2
  499. package/bpk-component-icon/sm/sort-down.js +0 -2
  500. package/bpk-component-icon/sm/sort-up.js +0 -2
  501. package/bpk-component-icon/sm/sort.js +0 -2
  502. package/bpk-component-icon/sm/speaker.js +0 -2
  503. package/bpk-component-icon/sm/star-half.js +0 -2
  504. package/bpk-component-icon/sm/star-outline.js +0 -2
  505. package/bpk-component-icon/sm/star.js +0 -2
  506. package/bpk-component-icon/sm/stops.js +0 -2
  507. package/bpk-component-icon/sm/swap--horizontal.js +0 -2
  508. package/bpk-component-icon/sm/swap--vertical.js +0 -2
  509. package/bpk-component-icon/sm/swap.js +0 -2
  510. package/bpk-component-icon/sm/taxi.js +0 -2
  511. package/bpk-component-icon/sm/thumbs-down.js +0 -2
  512. package/bpk-component-icon/sm/thumbs-up.js +0 -2
  513. package/bpk-component-icon/sm/tick-circle.js +0 -2
  514. package/bpk-component-icon/sm/tick.js +0 -2
  515. package/bpk-component-icon/sm/ticket-flexible.js +0 -2
  516. package/bpk-component-icon/sm/ticket.js +0 -2
  517. package/bpk-component-icon/sm/time.js +0 -2
  518. package/bpk-component-icon/sm/toilets.js +0 -2
  519. package/bpk-component-icon/sm/train.js +0 -2
  520. package/bpk-component-icon/sm/transmission-automatic.js +0 -2
  521. package/bpk-component-icon/sm/transmission-manual.js +0 -2
  522. package/bpk-component-icon/sm/trash.js +0 -2
  523. package/bpk-component-icon/sm/trend--down.js +0 -2
  524. package/bpk-component-icon/sm/trend--steady.js +0 -2
  525. package/bpk-component-icon/sm/trend--will-rise.js +0 -2
  526. package/bpk-component-icon/sm/trend.js +0 -2
  527. package/bpk-component-icon/sm/trips.js +0 -2
  528. package/bpk-component-icon/sm/undo.js +0 -2
  529. package/bpk-component-icon/sm/unlock.js +0 -2
  530. package/bpk-component-icon/sm/unmute.js +0 -2
  531. package/bpk-component-icon/sm/upgrade.js +0 -2
  532. package/bpk-component-icon/sm/upload.js +0 -2
  533. package/bpk-component-icon/sm/use-location.js +0 -2
  534. package/bpk-component-icon/sm/view.js +0 -2
  535. package/bpk-component-icon/sm/virus.js +0 -2
  536. package/bpk-component-icon/sm/wallet.js +0 -2
  537. package/bpk-component-icon/sm/weather--clear.js +0 -2
  538. package/bpk-component-icon/sm/weather--cloudy.js +0 -2
  539. package/bpk-component-icon/sm/weather--fog.js +0 -2
  540. package/bpk-component-icon/sm/weather--partly-cloudy.js +0 -2
  541. package/bpk-component-icon/sm/weather--rain.js +0 -2
  542. package/bpk-component-icon/sm/weather--snow.js +0 -2
  543. package/bpk-component-icon/sm/weather--thunderstorm.js +0 -2
  544. package/bpk-component-icon/sm/weather--tornado.js +0 -2
  545. package/bpk-component-icon/sm/weather--wind.js +0 -2
  546. package/bpk-component-icon/sm/weather.js +0 -2
  547. package/bpk-component-icon/sm/wifi.js +0 -2
  548. package/bpk-component-icon/sm/window--reduce.js +0 -2
  549. package/bpk-component-icon/sm/window.js +0 -2
  550. package/bpk-component-icon/sm/world--amer.js +0 -2
  551. package/bpk-component-icon/sm/world--apac.js +0 -2
  552. package/bpk-component-icon/sm/world--emea.js +0 -2
  553. package/bpk-component-infinite-scroll/src/intersection-observer.js +2 -3
  554. package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.module.css +1 -1
  555. package/bpk-component-nudger/src/BpkNudger.d.ts +1 -1
  556. package/bpk-component-nudger/src/BpkNudger.js +41 -10
  557. package/bpk-component-nudger/src/BpkNudger.module.css +1 -1
  558. package/bpk-component-nudger/src/common-types.d.ts +5 -1
  559. package/bpk-component-skip-link/src/BpkSkipLink.module.css +1 -1
  560. package/bpk-component-slider/src/BpkSlider.js +2 -0
  561. package/bpk-component-spinner/src/BpkExtraLargeSpinner.js +1 -2
  562. package/bpk-component-spinner/src/BpkLargeSpinner.js +1 -2
  563. package/bpk-component-spinner/src/BpkSpinner.js +36 -94
  564. package/bpk-mixins/_index.scss +35 -0
  565. package/{bpk-storybook-utils/index.js → bpk-mixins/sass-functions.js} +12 -6
  566. package/{bpk-component-nudger-row/index.js → bpk-mixins/src/_bonds.scss} +1 -2
  567. package/bpk-mixins/src/mixins/_badges.scss +236 -0
  568. package/bpk-mixins/src/mixins/_borders.scss +266 -0
  569. package/bpk-mixins/src/mixins/_breakpoints.scss +219 -0
  570. package/bpk-mixins/src/mixins/_buttons.scss +566 -0
  571. package/bpk-mixins/src/mixins/_cards.scss +89 -0
  572. package/bpk-mixins/src/mixins/_chips.scss +232 -0
  573. package/bpk-mixins/src/mixins/_forms.scss +1043 -0
  574. package/bpk-mixins/src/mixins/_layers.scss +196 -0
  575. package/bpk-mixins/src/mixins/_margins.scss +71 -0
  576. package/bpk-mixins/src/mixins/_panels.scss +67 -0
  577. package/bpk-mixins/src/mixins/_radii.scss +78 -0
  578. package/bpk-mixins/src/mixins/_scroll-indicators.scss +77 -0
  579. package/{bpk-component-nudger-row/src/BpkNudgerRow.d.ts → bpk-mixins/src/mixins/_shadows.scss} +38 -15
  580. package/bpk-mixins/src/mixins/_svgs.scss +265 -0
  581. package/bpk-mixins/src/mixins/_typography.scss +1035 -0
  582. package/bpk-mixins/src/mixins/_utils.scss +249 -0
  583. package/bpk-react-utils/src/Portal.js +1 -1
  584. package/bpk-react-utils/src/deprecated.js +1 -3
  585. package/bpk-stylesheets/base.css +20 -0
  586. package/bpk-stylesheets/base.js +1 -0
  587. package/bpk-stylesheets/font.css +18 -0
  588. package/{bpk-component-nudger-row/index.d.ts → bpk-stylesheets/font.js} +1 -3
  589. package/bpk-stylesheets/font.scss +107 -0
  590. package/{bpk-storybook-utils/src/BpkStorybookUtils.js → bpk-stylesheets/index.js} +24 -13
  591. package/bpk-stylesheets/index.scss +76 -0
  592. package/package.json +5 -4
  593. package/bpk-component-nudger-row/src/BpkNudgerRow.js +0 -69
  594. package/bpk-component-nudger-row/src/BpkNudgerRow.module.css +0 -18
  595. package/bpk-storybook-utils/src/BpkDarkExampleWrapper.js +0 -38
  596. package/bpk-storybook-utils/src/BpkDarkExampleWrapper.module.css +0 -18
@@ -0,0 +1,1043 @@
1
+ /*
2
+ * Backpack - Skyscanner's Design System
3
+ *
4
+ * Copyright 2016 Skyscanner Ltd
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+
19
+ @import '../bonds.scss';
20
+
21
+ ////
22
+ /// @group forms
23
+ ////
24
+
25
+ /// Form input. Can be used for text, email, number, password and tel type inputs.
26
+ ///
27
+ /// @example scss
28
+ /// .selector {
29
+ /// @include bpk-input();
30
+ /// }
31
+
32
+ @mixin bpk-input {
33
+ display: inline-block;
34
+ width: 100%;
35
+ height: $bpk-input-height;
36
+ padding: $bpk-input-padding-y $bpk-input-padding-x;
37
+ border: $bpk-input-border;
38
+ border-radius: $bpk-input-border-radius;
39
+ background: $bpk-input-background;
40
+ color: $bpk-text-primary-day;
41
+ appearance: none;
42
+
43
+ &::placeholder {
44
+ color: $bpk-text-secondary-day;
45
+ }
46
+
47
+ &:disabled {
48
+ border-color: $bpk-input-disabled-border-color;
49
+ background: $bpk-input-background;
50
+ color: $bpk-input-disabled-color;
51
+ cursor: not-allowed;
52
+ }
53
+
54
+ &[type='number'] {
55
+ -moz-appearance: textfield; // stylelint-disable property-no-vendor-prefix
56
+
57
+ &::-webkit-inner-spin-button,
58
+ &::-webkit-outer-spin-button {
59
+ appearance: none;
60
+ }
61
+ }
62
+
63
+ &[type='number'],
64
+ &[type='tel'],
65
+ &[type='email'] {
66
+ @include bpk-rtl {
67
+ text-align: right;
68
+ direction: ltr;
69
+ }
70
+ }
71
+
72
+ &::-ms-clear {
73
+ display: none;
74
+ }
75
+ }
76
+
77
+ /// Valid form input. Modifies the bpk-input mixin.
78
+ ///
79
+ /// @require {mixin} bpk-input
80
+ ///
81
+ /// @example scss
82
+ /// .selector {
83
+ /// @include bpk-input();
84
+ /// @include bpk-input--valid();
85
+ /// }
86
+
87
+ @mixin bpk-input--valid {
88
+ padding-right: bpk-spacing-xl();
89
+ background: $bpk-input-background
90
+ url(map-get($bpk-icons-sm, tick-circle-green-spot)) no-repeat right
91
+ bpk-spacing-md() center;
92
+ background-size: $bpk-icon-size-sm $bpk-icon-size-sm;
93
+
94
+ @include bpk-rtl {
95
+ padding-right: $bpk-input-padding-x;
96
+ padding-left: bpk-spacing-xl();
97
+ background-position: left bpk-spacing-md() center;
98
+ }
99
+ }
100
+
101
+ /// Invalid form input. Modifies the bpk-input mixin.
102
+ ///
103
+ /// @require {mixin} bpk-input
104
+ ///
105
+ /// @example scss
106
+ /// .selector {
107
+ /// @include bpk-input();
108
+ /// @include bpk-input--invalid();
109
+ /// }
110
+
111
+ @mixin bpk-input--invalid {
112
+ padding-right: bpk-spacing-xl();
113
+ background: $bpk-input-background
114
+ url(map-get($bpk-icons-sm, exclamation-circle-berry)) no-repeat right
115
+ bpk-spacing-md() center;
116
+ background-size: $bpk-icon-size-sm $bpk-icon-size-sm;
117
+
118
+ @include bpk-themeable-property(
119
+ border-color,
120
+ --bpk-input-invalid-border-color,
121
+ $bpk-form-validation-color
122
+ );
123
+
124
+ @include bpk-rtl {
125
+ padding-right: $bpk-input-padding-x;
126
+ padding-left: bpk-spacing-xl();
127
+ background-position: left bpk-spacing-md() center;
128
+ }
129
+ }
130
+
131
+ /// Clearable form input. Modifies the bpk-input mixin.
132
+ ///
133
+ /// @require {mixin} bpk-input
134
+ ///
135
+ /// @example scss
136
+ /// .selector {
137
+ /// @include bpk-input();
138
+ /// @include bpk-input--clearable();
139
+ /// }
140
+
141
+ @mixin bpk-input--clearable {
142
+ padding-right: bpk-spacing-xl();
143
+
144
+ @include bpk-rtl {
145
+ padding-right: $bpk-input-padding-x;
146
+ padding-left: bpk-spacing-xl();
147
+ }
148
+
149
+ &:focus {
150
+ background: $bpk-input-background;
151
+ }
152
+ }
153
+
154
+ /// Clearable form input container. Modifies the bpk-input mixin.
155
+ ///
156
+ /// @require {mixin} bpk-input
157
+ ///
158
+ /// @example scss
159
+ /// .selector {
160
+ /// @include bpk-input();
161
+ /// @include bpk-input__container();
162
+ /// }
163
+
164
+ @mixin bpk-input__container {
165
+ position: relative;
166
+ display: inline-block;
167
+ width: 100%;
168
+ }
169
+
170
+ /// Clearable (clear button) form input. Modifies the bpk-input mixin.
171
+ ///
172
+ /// @require {mixin} bpk-input
173
+ ///
174
+ /// @example scss
175
+ /// .selector {
176
+ /// @include bpk-input();
177
+ /// @include bpk-input__clear-button();
178
+ /// }
179
+
180
+ @mixin bpk-input__clear-button {
181
+ position: absolute;
182
+ right: bpk-spacing-md();
183
+ height: $bpk-input-height;
184
+
185
+ @include bpk-rtl {
186
+ right: inherit;
187
+ left: bpk-spacing-md();
188
+ }
189
+
190
+ &--large {
191
+ right: bpk-spacing-base();
192
+ height: $bpk-input-large-height;
193
+
194
+ @include bpk-rtl {
195
+ left: bpk-spacing-base();
196
+ }
197
+ }
198
+ }
199
+
200
+ /// Large form input. Modifies the bpk-input mixin.
201
+ ///
202
+ /// @require {mixin} bpk-input
203
+ ///
204
+ /// @example scss
205
+ /// .selector {
206
+ /// @include bpk-input();
207
+ /// @include bpk-input--large();
208
+ /// }
209
+
210
+ @mixin bpk-input--large {
211
+ height: $bpk-input-large-height;
212
+ padding-right: bpk-spacing-base();
213
+ padding-left: bpk-spacing-base();
214
+
215
+ &.bpk-input--valid,
216
+ &.bpk-input--invalid,
217
+ &.bpk-input--clearable {
218
+ padding-right: bpk-spacing-xxl();
219
+ background-position: right bpk-spacing-base() center;
220
+
221
+ @include bpk-rtl {
222
+ padding-right: bpk-spacing-base();
223
+ padding-left: bpk-spacing-xxl();
224
+ background-position: left bpk-spacing-base() center;
225
+ }
226
+ }
227
+ }
228
+
229
+ /// Docked (first-child) form input. Modifies the bpk-input mixin.
230
+ ///
231
+ /// @require {mixin} bpk-input
232
+ ///
233
+ /// @example scss
234
+ /// .selector {
235
+ /// @include bpk-input();
236
+ /// @include bpk-input--docked-first-child();
237
+ /// }
238
+
239
+ @mixin bpk-input--docked-first-child {
240
+ border-right-width: 0;
241
+ border-radius: $bpk-input-border-radius 0 0 $bpk-input-border-radius;
242
+
243
+ @include bpk-rtl {
244
+ border-right-width: $bpk-input-border-width;
245
+ border-left-width: 0;
246
+ border-radius: 0 $bpk-input-border-radius $bpk-input-border-radius 0;
247
+ }
248
+
249
+ &:focus {
250
+ position: relative; // brings outline to the front
251
+ }
252
+ }
253
+
254
+ /// Docked (last-child) form input. Modifies the bpk-input mixin.
255
+ ///
256
+ /// @require {mixin} bpk-input
257
+ ///
258
+ /// @example scss
259
+ /// .selector {
260
+ /// @include bpk-input();
261
+ /// @include bpk-input--docked-last-child();
262
+ /// }
263
+
264
+ @mixin bpk-input--docked-last-child {
265
+ border-radius: 0 $bpk-input-border-radius $bpk-input-border-radius 0;
266
+
267
+ @include bpk-rtl {
268
+ border-radius: $bpk-input-border-radius 0 0 $bpk-input-border-radius;
269
+ }
270
+
271
+ &:focus {
272
+ position: relative; // brings outline to the front
273
+ }
274
+ }
275
+
276
+ /// Docked (middle-child) form input. Modifies the bpk-input mixin.
277
+ ///
278
+ /// @require {mixin} bpk-input
279
+ ///
280
+ /// @example scss
281
+ /// .selector {
282
+ /// @include bpk-input();
283
+ /// @include bpk-input--docked-middle-child();
284
+ /// }
285
+
286
+ @mixin bpk-input--docked-middle-child {
287
+ border-right-width: 0;
288
+ border-radius: 0;
289
+
290
+ @include bpk-rtl {
291
+ border-right-width: $bpk-input-border-width;
292
+ border-left-width: 0;
293
+ }
294
+
295
+ &:focus {
296
+ position: relative; // brings outline to the front
297
+ }
298
+ }
299
+
300
+ /// Docked form input (inputs must sit side-by-side in the DOM). Modifies the bpk-input mixin.
301
+ ///
302
+ /// @require {mixin} bpk-input
303
+ ///
304
+ /// @example scss
305
+ /// .selector {
306
+ /// @include bpk-input();
307
+ /// @include bpk-input--docked();
308
+ /// }
309
+
310
+ @mixin bpk-input--docked {
311
+ &:first-child {
312
+ @include bpk-input--docked-first-child;
313
+ }
314
+
315
+ &:last-child {
316
+ @include bpk-input--docked-last-child;
317
+ }
318
+
319
+ &:not(:first-child):not(:last-child) {
320
+ @include bpk-input--docked-middle-child;
321
+ }
322
+ }
323
+
324
+ /// Form select input.
325
+ ///
326
+ /// @example scss
327
+ /// .selector {
328
+ /// @include bpk-select();
329
+ /// }
330
+
331
+ @mixin bpk-select {
332
+ display: inline-block;
333
+ width: 100%;
334
+ height: $bpk-input-height;
335
+ padding: bpk-spacing-md() - (2 * $bpk-one-pixel-rem) bpk-spacing-md();
336
+ padding-right: bpk-spacing-xl();
337
+ border: solid $bpk-one-pixel-rem $bpk-line-day;
338
+ border-radius: $bpk-select-border-radius;
339
+ background: $bpk-surface-default-day
340
+ url(map-get($bpk-icons-sm, arrow-down-charcoal)) no-repeat right
341
+ bpk-spacing-md() center;
342
+ background-size: $bpk-input-height / 2;
343
+ color: $bpk-text-primary-day;
344
+ line-height: ($bpk-line-height-base - (2 * $bpk-select-border-width));
345
+ appearance: none;
346
+
347
+ @include bpk-rtl {
348
+ padding-right: bpk-spacing-md();
349
+ padding-left: bpk-spacing-xl();
350
+ background-position: left bpk-spacing-md() center;
351
+ }
352
+
353
+ @media screen\0 {
354
+ /* stylelint-disable-next-line declaration-no-important */
355
+ padding: bpk-spacing-md() !important;
356
+ /* stylelint-disable-next-line declaration-no-important */
357
+ background-image: none !important;
358
+ }
359
+
360
+ &:disabled {
361
+ border-color: $bpk-surface-highlight-day;
362
+ background: $bpk-surface-default-day
363
+ url(map-get($bpk-icons-sm, arrow-down-black-alpha-20)) no-repeat right
364
+ bpk-spacing-md() center;
365
+ background-size: $bpk-input-height / 2;
366
+ color: $bpk-text-disabled-day;
367
+ cursor: not-allowed;
368
+ }
369
+ }
370
+
371
+ /// Large form select input. Modifies the bpk-select mixin.
372
+ ///
373
+ /// @require {mixin} bpk-select
374
+ ///
375
+ /// @example scss
376
+ /// .selector {
377
+ /// @include bpk-select();
378
+ /// @include bpk-select--large();
379
+ /// }
380
+
381
+ @mixin bpk-select--large {
382
+ height: $bpk-input-large-height;
383
+ padding: bpk-spacing-md() bpk-spacing-base();
384
+ padding-right: bpk-spacing-xxl();
385
+ background: $bpk-surface-default-day
386
+ url(map-get($bpk-icons-sm, arrow-down-charcoal)) no-repeat right
387
+ bpk-spacing-base() center;
388
+
389
+ @include bpk-rtl {
390
+ padding-right: bpk-spacing-base();
391
+ padding-left: bpk-spacing-xxl();
392
+ background-position: left bpk-spacing-base() center;
393
+ }
394
+ }
395
+
396
+ /// Docked (first-child) form select input. Modifies the bpk-select mixin.
397
+ ///
398
+ /// @require {mixin} bpk-select
399
+ ///
400
+ /// @example scss
401
+ /// .selector {
402
+ /// @include bpk-select();
403
+ /// @include bpk-select--docked-first-child();
404
+ /// }
405
+
406
+ @mixin bpk-select--docked-first-child {
407
+ border-right-width: 0;
408
+ border-radius: $bpk-select-border-radius 0 0 $bpk-select-border-radius;
409
+
410
+ @include bpk-rtl {
411
+ border-right-width: $bpk-select-border-width;
412
+ border-left-width: 0;
413
+ border-radius: 0 $bpk-select-border-radius $bpk-select-border-radius 0;
414
+ }
415
+ }
416
+
417
+ /// Docked (last-child) form select input. Modifies the bpk-select mixin.
418
+ ///
419
+ /// @require {mixin} bpk-select
420
+ ///
421
+ /// @example scss
422
+ /// .selector {
423
+ /// @include bpk-select();
424
+ /// @include bpk-select--docked-last-child();
425
+ /// }
426
+
427
+ @mixin bpk-select--docked-last-child {
428
+ border-radius: 0 $bpk-select-border-radius $bpk-select-border-radius 0;
429
+
430
+ @include bpk-rtl {
431
+ border-radius: $bpk-select-border-radius 0 0 $bpk-select-border-radius;
432
+ }
433
+ }
434
+
435
+ /// Docked (middle-child) form select input. Modifies the bpk-select mixin.
436
+ ///
437
+ /// @require {mixin} bpk-select
438
+ ///
439
+ /// @example scss
440
+ /// .selector {
441
+ /// @include bpk-select();
442
+ /// @include bpk-select--docked-middle-child();
443
+ /// }
444
+
445
+ @mixin bpk-select--docked-middle-child {
446
+ border-right-width: 0;
447
+ border-radius: 0;
448
+
449
+ @include bpk-rtl {
450
+ border-right-width: $bpk-select-border-width;
451
+ border-left-width: 0;
452
+ }
453
+ }
454
+
455
+ /// Docked form select input (selects must sit side-by-side in the DOM). Modifies the bpk-select mixin.
456
+ ///
457
+ /// @require {mixin} bpk-select
458
+ ///
459
+ /// @example scss
460
+ /// .selector {
461
+ /// @include bpk-select();
462
+ /// @include bpk-select--docked();
463
+ /// }
464
+
465
+ @mixin bpk-select--docked {
466
+ &:first-child {
467
+ @include bpk-select--docked-first-child;
468
+ }
469
+
470
+ &:last-child {
471
+ @include bpk-select--docked-last-child;
472
+ }
473
+
474
+ &:not(:first-child):not(:last-child) {
475
+ @include bpk-select--docked-middle-child;
476
+ }
477
+ }
478
+
479
+ /// Invalid form input. Modifies the bpk-selct mixin.
480
+ ///
481
+ /// @require {mixin} bpk-select
482
+ ///
483
+ /// @example scss
484
+ /// .selector {
485
+ /// @include bpk-select();
486
+ /// @include bpk-select--invalid();
487
+ /// }
488
+
489
+ @mixin bpk-select--invalid {
490
+ padding-right: bpk-spacing-xl();
491
+ background: $bpk-surface-default-day
492
+ url(map-get($bpk-icons-sm, arrow-down-charcoal)) no-repeat right
493
+ bpk-spacing-md() center;
494
+ background-size: $bpk-input-height / 2;
495
+
496
+ @include bpk-themeable-property(
497
+ border-color,
498
+ --bpk-select-invalid-border-color,
499
+ $bpk-form-validation-color
500
+ );
501
+
502
+ @include bpk-rtl {
503
+ padding-right: bpk-spacing-md();
504
+ padding-left: bpk-spacing-xl();
505
+ background-position: left bpk-spacing-md() center;
506
+ }
507
+ }
508
+
509
+ /// Form checkbox. Should be applied to containing label element.
510
+ ///
511
+ /// @example scss
512
+ /// .selector {
513
+ /// @include bpk-checkbox();
514
+ /// }
515
+
516
+ @mixin bpk-checkbox {
517
+ position: relative;
518
+ display: inline-block;
519
+ padding-left: bpk-spacing-lg() + bpk-spacing-sm();
520
+
521
+ @include bpk-text;
522
+ @include bpk-body-default;
523
+
524
+ @include bpk-rtl {
525
+ padding-right: bpk-spacing-lg() + bpk-spacing-sm();
526
+ padding-left: 0;
527
+ }
528
+ }
529
+
530
+ /// Label for checkbox. Should be applied to label text element.
531
+ ///
532
+ /// @example scss
533
+ /// .selector {
534
+ /// @include bpk-checkbox__label();
535
+ /// }
536
+
537
+ @mixin bpk-checkbox__label {
538
+ vertical-align: baseline;
539
+ }
540
+
541
+ /// Small label for checkbox. Should be applied to label text element.
542
+ /// Modifies bpk-checkbox__label.
543
+ ///
544
+ /// @example scss
545
+ /// .selector {
546
+ /// @include bpk-checkbox__label();
547
+ /// @include bpk-checkbox__label--small();
548
+ /// }
549
+
550
+ @mixin bpk-checkbox__label--small {
551
+ @include bpk-text;
552
+ @include bpk-caption;
553
+ }
554
+
555
+ /// White label checkbox. Modifies the bpk-checkbox mixin.
556
+ ///
557
+ /// @require {mixin} bpk-checkbox
558
+ ///
559
+ /// @example scss
560
+ /// .selector {
561
+ /// @include bpk-checkbox();
562
+ /// @include bpk-checkbox--white();
563
+ /// }
564
+
565
+ @mixin bpk-checkbox--white {
566
+ color: $bpk-surface-default-day;
567
+ }
568
+
569
+ /// Disabled form checkbox. Modifies the bpk-checkbox mixin.
570
+ ///
571
+ /// @require {mixin} bpk-checkbox
572
+ ///
573
+ /// @example scss
574
+ /// .selector {
575
+ /// @include bpk-checkbox();
576
+ /// @include bpk-checkbox--disabled();
577
+ /// }
578
+
579
+ @mixin bpk-checkbox--disabled {
580
+ color: $bpk-label-disabled-color;
581
+ cursor: not-allowed;
582
+ }
583
+
584
+ /// Invalid form checkbox. Modifies the bpk-checkbox mixin.
585
+ ///
586
+ /// @require {mixin} bpk-checkbox
587
+ ///
588
+ /// @example scss
589
+ /// .selector {
590
+ /// @include bpk-checkbox();
591
+ /// @include bpk-checkbox--invalid();
592
+ /// }
593
+
594
+ @mixin bpk-checkbox--invalid {
595
+ input[type='checkbox'] {
596
+ border: ($bpk-one-pixel-rem * 3) solid $bpk-text-error-day;
597
+ }
598
+ }
599
+
600
+ /// Used to create the check/tick inside
601
+ /// a checked checkbox.
602
+ ///
603
+ /// @example scss
604
+ /// .selector {
605
+ /// @include bpk-checkbox__checkmark();
606
+ /// }
607
+ @mixin bpk-checkbox__checkmark {
608
+ &::before,
609
+ &::after {
610
+ position: absolute;
611
+ content: '';
612
+ transform: rotate(45deg);
613
+ border-radius: $bpk-border-size-lg;
614
+ background-color: $bpk-text-primary-inverse-day;
615
+ }
616
+
617
+ &::before {
618
+ top: bpk-spacing-md() - $bpk-one-pixel-rem;
619
+ left: 0;
620
+ width: bpk-spacing-lg() / 3;
621
+ height: bpk-spacing-sm() - $bpk-one-pixel-rem;
622
+ }
623
+
624
+ &::after {
625
+ top: bpk-spacing-sm() / 2;
626
+ left: bpk-spacing-md() - $bpk-one-pixel-rem;
627
+ width: bpk-spacing-sm() - $bpk-one-pixel-rem;
628
+ height: bpk-spacing-md() + ($bpk-one-pixel-rem * 3);
629
+ }
630
+
631
+ &:disabled {
632
+ &::before,
633
+ &::after {
634
+ background-color: $bpk-text-disabled-day;
635
+ }
636
+ }
637
+ }
638
+
639
+ /// Form checkbox input.
640
+ ///
641
+ /// @example scss
642
+ /// .selector {
643
+ /// @include bpk-checkbox__input();
644
+ /// }
645
+
646
+ @mixin bpk-checkbox__input {
647
+ $checkbox-input-size: bpk-spacing-lg() - ($bpk-one-pixel-rem * 4);
648
+
649
+ position: absolute;
650
+ top: ($bpk-line-height-base - $checkbox-input-size) / 2;
651
+ left: 0;
652
+ width: $checkbox-input-size;
653
+ height: $checkbox-input-size;
654
+ margin: 0;
655
+ padding: 0;
656
+ border: ($bpk-one-pixel-rem * 3) solid $bpk-text-secondary-day;
657
+ border-radius: ($bpk-one-pixel-rem * 4);
658
+ cursor: pointer;
659
+ vertical-align: text-bottom;
660
+ appearance: none;
661
+
662
+ @include bpk-rtl {
663
+ right: 0;
664
+ left: auto;
665
+ }
666
+
667
+ @media screen\0 {
668
+ /* stylelint-disable-next-line declaration-no-important */
669
+ background: none !important;
670
+ }
671
+
672
+ &:checked,
673
+ &:indeterminate {
674
+ @include bpk-themeable-property(
675
+ background-color,
676
+ --bpk-checkbox-checked-color,
677
+ $bpk-core-accent-day
678
+ );
679
+ @include bpk-themeable-property(
680
+ border-color,
681
+ --bpk-checkbox-checked-color,
682
+ $bpk-core-accent-day
683
+ );
684
+
685
+ &:disabled {
686
+ border-color: $bpk-text-disabled-day;
687
+ background: none;
688
+ }
689
+ }
690
+
691
+ &:checked:not(:indeterminate) {
692
+ @include bpk-checkbox__checkmark;
693
+ }
694
+
695
+ &:disabled {
696
+ border-color: $bpk-text-disabled-day;
697
+ }
698
+ }
699
+
700
+ /// Form radio button mixin. This is a reusable mixin to set border styles for the radio button.
701
+ ///
702
+ /// @param {variable} $color
703
+ ///
704
+ /// @access private
705
+ @mixin _bpk-radio-border($color) {
706
+ border: $bpk-border-size-xl solid $color;
707
+ border-radius: $bpk-border-radius-lg;
708
+ }
709
+
710
+ /// Form radio button. Should be applied to containing label element.
711
+ ///
712
+ /// @example scss
713
+ /// .selector {
714
+ /// @include bpk-radio();
715
+ /// }
716
+
717
+ @mixin bpk-radio {
718
+ position: relative;
719
+ display: inline-block;
720
+ padding-left: bpk-spacing-lg() + bpk-spacing-sm();
721
+
722
+ @include bpk-rtl {
723
+ padding-right: bpk-spacing-lg() + bpk-spacing-sm();
724
+ padding-left: 0;
725
+ }
726
+ }
727
+
728
+ /// Disabled form radio button. Modifies the bpk-radio mixin.
729
+ ///
730
+ /// @require {mixin} bpk-radio
731
+ ///
732
+ /// @example scss
733
+ /// .selector {
734
+ /// @include bpk-radio();
735
+ /// @include bpk-radio--disabled();
736
+ /// }
737
+
738
+ @mixin bpk-radio--disabled {
739
+ color: $bpk-label-disabled-color;
740
+ cursor: not-allowed;
741
+ }
742
+
743
+ /// White label radio button. Modifies the bpk-radio mixin.
744
+ ///
745
+ /// @require {mixin} bpk-radio
746
+ ///
747
+ /// @example scss
748
+ /// .selector {
749
+ /// @include bpk-radio();
750
+ /// @include bpk-radio--white();
751
+ /// }
752
+
753
+ @mixin bpk-radio--white {
754
+ color: $bpk-text-primary-inverse-day;
755
+
756
+ input[type='radio'] {
757
+ background: $bpk-text-primary-inverse-day;
758
+ }
759
+ }
760
+
761
+ /// Invalid radio button. Modifies the bpk-radio mixin.
762
+ ///
763
+ /// @require {mixin} bpk-radio
764
+ ///
765
+ /// @example scss
766
+ /// .selector {
767
+ /// @include bpk-radio();
768
+ /// @include bpk-radio--invalid();
769
+ /// }
770
+
771
+ @mixin bpk-radio--invalid {
772
+ input[type='radio'] {
773
+ @include _bpk-radio-border($bpk-text-error-day);
774
+ }
775
+ }
776
+
777
+ /// Form radio input.
778
+ ///
779
+ /// @example scss
780
+ /// .selector {
781
+ /// @include bpk-radio__input();
782
+ /// }
783
+
784
+ @mixin bpk-radio__input {
785
+ $bpk-radio-size: bpk-spacing-lg() - ($bpk-one-pixel-rem * 4);
786
+
787
+ position: absolute;
788
+ top: 0;
789
+ left: 0;
790
+ width: $bpk-radio-size;
791
+ height: $bpk-radio-size;
792
+ margin: 0;
793
+ padding: 0;
794
+ cursor: pointer;
795
+ vertical-align: text-bottom;
796
+ appearance: none;
797
+
798
+ @include _bpk-radio-border($bpk-text-secondary-day);
799
+
800
+ @include bpk-rtl {
801
+ right: 0;
802
+ left: auto;
803
+ }
804
+
805
+ @media screen\0 {
806
+ /* stylelint-disable-next-line declaration-no-important */
807
+ background: none !important;
808
+ }
809
+
810
+ &:checked {
811
+ @include bpk-themeable-property(
812
+ border-color,
813
+ --bpk-radio-checked-color,
814
+ $bpk-core-accent-day
815
+ );
816
+
817
+ &:disabled {
818
+ border-color: $bpk-text-disabled-day;
819
+ }
820
+ }
821
+
822
+ &:disabled {
823
+ border-color: $bpk-text-disabled-day;
824
+ }
825
+ }
826
+
827
+ /// Form label.
828
+ ///
829
+ /// @example scss
830
+ /// .selector {
831
+ /// @include bpk-label();
832
+ /// }
833
+
834
+ @mixin bpk-label {
835
+ display: block;
836
+ color: $bpk-text-primary-day;
837
+ font-size: $bpk-font-size-xs;
838
+ font-weight: $bpk-font-weight-bold;
839
+ line-height: $bpk-line-height-xs;
840
+ }
841
+
842
+ /// Invalid form label. Modifies the bpk-label mixin.
843
+ ///
844
+ /// @require {mixin} bpk-label
845
+ ///
846
+ /// @example scss
847
+ /// .selector {
848
+ /// @include bpk-label();
849
+ /// @include bpk-label--invalid();
850
+ /// }
851
+
852
+ @mixin bpk-label--invalid {
853
+ @include bpk-themeable-property(
854
+ color,
855
+ --bpk-form-validation-text-color,
856
+ $bpk-form-validation-color
857
+ );
858
+ }
859
+
860
+ /// White form label. Modifies the bpk-label mixin.
861
+ ///
862
+ /// @require {mixin} bpk-label
863
+ ///
864
+ /// @example scss
865
+ /// .selector {
866
+ /// @include bpk-label();
867
+ /// @include bpk-label--white();
868
+ /// }
869
+
870
+ @mixin bpk-label--white {
871
+ color: $bpk-color-white;
872
+ }
873
+
874
+ /// Disabled form label. Modifies the bpk-label mixin.
875
+ ///
876
+ /// @require {mixin} bpk-label
877
+ ///
878
+ /// @example scss
879
+ /// .selector {
880
+ /// @include bpk-label();
881
+ /// @include bpk-label--disabled();
882
+ /// }
883
+
884
+ @mixin bpk-label--disabled {
885
+ color: $bpk-label-disabled-color;
886
+ cursor: not-allowed;
887
+ }
888
+
889
+ /// Form validation.
890
+ ///
891
+ /// @example scss
892
+ /// .selector {
893
+ /// @include bpk-form-validation();
894
+ /// }
895
+
896
+ @mixin bpk-form-validation {
897
+ position: relative;
898
+ transform: translateY(-#{bpk-spacing-base()});
899
+ transition:
900
+ opacity $bpk-duration-sm ease-in-out,
901
+ transform $bpk-duration-sm ease-in-out;
902
+ opacity: 0;
903
+
904
+ @include bpk-themeable-property(
905
+ color,
906
+ --bpk-form-validation-text-color,
907
+ $bpk-form-validation-color
908
+ );
909
+ }
910
+
911
+ /// Form validation transition state. Modifies the bpk-form-validation mixin.
912
+ ///
913
+ /// @require {mixin} bpk-form-validation
914
+ ///
915
+ /// @example scss
916
+ /// .selector {
917
+ /// @include bpk-form-validation();
918
+ ///
919
+ /// &--appear {
920
+ /// @include bpk-form-validation--appear();
921
+ /// }
922
+ /// }
923
+
924
+ @mixin bpk-form-validation--appear {
925
+ transform: translateY(0);
926
+ opacity: 1;
927
+ }
928
+
929
+ /// Checkbox form validation. Modifies the bpk-form-validation mixin.
930
+ ///
931
+ /// @require {mixin} bpk-form-validation
932
+ ///
933
+ /// @example scss
934
+ /// .selector {
935
+ /// @include bpk-form-validation();
936
+ ///
937
+ /// &--is-checkbox {
938
+ /// @include bpk-form-validation--is-checkbox();
939
+ /// }
940
+ /// }
941
+
942
+ @mixin bpk-form-validation--is-checkbox {
943
+ display: inline-block;
944
+ }
945
+
946
+ /// Form validation container.
947
+ ///
948
+ /// @example scss
949
+ /// .selector {
950
+ /// @include bpk-form-validation__container();
951
+ /// }
952
+
953
+ @mixin bpk-form-validation__container {
954
+ margin-top: bpk-spacing-md();
955
+ font-size: $bpk-font-size-xs;
956
+ }
957
+
958
+ /// Form textarea.
959
+ ///
960
+ /// @example scss
961
+ /// .selector {
962
+ /// @include bpk-textarea();
963
+ /// }
964
+
965
+ @mixin bpk-textarea {
966
+ display: inline-block;
967
+ width: 100%;
968
+ max-width: 100%;
969
+ min-height: bpk-spacing-md() * 11;
970
+ padding: $bpk-input-padding-y $bpk-input-padding-x;
971
+ border: $bpk-input-border;
972
+ border-radius: $bpk-input-border-radius;
973
+ background: $bpk-input-background;
974
+ color: $bpk-text-primary-day;
975
+ appearance: none;
976
+
977
+ &::placeholder {
978
+ color: $bpk-text-secondary-day;
979
+ }
980
+
981
+ &:disabled {
982
+ border-color: $bpk-input-disabled-border-color;
983
+ background: $bpk-input-background;
984
+ color: $bpk-input-disabled-color;
985
+ cursor: not-allowed;
986
+ }
987
+
988
+ &::-ms-clear {
989
+ display: none;
990
+ }
991
+ }
992
+
993
+ /// Invalid form input. Modifies the bpk-textarea mixin.
994
+ ///
995
+ /// @require {mixin} bpk-textarea
996
+ ///
997
+ /// @example scss
998
+ /// .selector {
999
+ /// @include bpk-textarea();
1000
+ /// @include bpk-textarea--invalid();
1001
+ /// }
1002
+
1003
+ @mixin bpk-textarea--invalid {
1004
+ padding-right: bpk-spacing-xl();
1005
+ background: $bpk-input-background
1006
+ url(map-get($bpk-icons-sm, exclamation-circle-berry)) no-repeat right
1007
+ bpk-spacing-md() center;
1008
+
1009
+ @include bpk-themeable-property(
1010
+ border-color,
1011
+ --bpk-textarea-invalid-border-color,
1012
+ $bpk-form-validation-color
1013
+ );
1014
+
1015
+ @include bpk-rtl {
1016
+ padding-right: $bpk-input-padding-x;
1017
+ padding-left: bpk-spacing-xl();
1018
+ background-position: left bpk-spacing-md() center;
1019
+
1020
+ &.bpk-textarea--large {
1021
+ padding-right: bpk-spacing-base();
1022
+ padding-left: bpk-spacing-xxl();
1023
+ background-position: right bpk-spacing-base() center;
1024
+ }
1025
+ }
1026
+ }
1027
+
1028
+ @mixin bpk-textarea--large {
1029
+ min-height: 6 * bpk-spacing-base();
1030
+ padding-right: bpk-spacing-base();
1031
+ padding-left: bpk-spacing-base();
1032
+
1033
+ &.bpk-textarea--invalid {
1034
+ padding-right: bpk-spacing-xxl();
1035
+ background-position: right bpk-spacing-base() center;
1036
+
1037
+ @include bpk-rtl {
1038
+ padding-right: bpk-spacing-base();
1039
+ padding-left: bpk-spacing-xxl();
1040
+ background-position: left bpk-spacing-base() center;
1041
+ }
1042
+ }
1043
+ }