@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.
- package/README.md +2 -2
- package/bpk-component-close-button/src/BpkCloseButton.module.css +1 -1
- package/bpk-component-code/src/BpkCode.module.css +1 -1
- package/bpk-component-code/src/BpkCodeBlock.module.css +1 -1
- package/bpk-component-form-validation/src/BpkFormValidation.module.css +1 -1
- package/bpk-component-grid-toggle/src/BpkGridToggle.module.css +1 -1
- package/bpk-component-icon/lg/accessibility.js +1 -2
- package/bpk-component-icon/lg/account--add.js +1 -2
- package/bpk-component-icon/lg/account--female.js +1 -2
- package/bpk-component-icon/lg/account--id-card.js +1 -2
- package/bpk-component-icon/lg/account--name.js +1 -2
- package/bpk-component-icon/lg/account--permit.js +1 -2
- package/bpk-component-icon/lg/account-circle.js +1 -2
- package/bpk-component-icon/lg/account.js +1 -2
- package/bpk-component-icon/lg/add-circle.js +1 -2
- package/bpk-component-icon/lg/adult.js +1 -2
- package/bpk-component-icon/lg/ai.js +1 -2
- package/bpk-component-icon/lg/aircon.js +1 -2
- package/bpk-component-icon/lg/aircraft.js +1 -2
- package/bpk-component-icon/lg/airline--multiple.js +1 -2
- package/bpk-component-icon/lg/airline.js +1 -2
- package/bpk-component-icon/lg/airports.js +1 -2
- package/bpk-component-icon/lg/alert--active.js +1 -2
- package/bpk-component-icon/lg/alert--add.js +1 -2
- package/bpk-component-icon/lg/alert--expired.js +1 -2
- package/bpk-component-icon/lg/alert--remove.js +1 -2
- package/bpk-component-icon/lg/arrow-down.js +1 -2
- package/bpk-component-icon/lg/arrow-left.js +1 -2
- package/bpk-component-icon/lg/arrow-right.js +1 -2
- package/bpk-component-icon/lg/arrow-up.js +1 -2
- package/bpk-component-icon/lg/award.js +1 -2
- package/bpk-component-icon/lg/baby-carriage.js +1 -2
- package/bpk-component-icon/lg/baggage--add.js +1 -2
- package/bpk-component-icon/lg/baggage--remove.js +1 -2
- package/bpk-component-icon/lg/baggage-cabin-add.js +1 -2
- package/bpk-component-icon/lg/baggage-cabin-not-included.js +1 -2
- package/bpk-component-icon/lg/baggage-cabin.js +1 -2
- package/bpk-component-icon/lg/baggage-checked-add.js +1 -2
- package/bpk-component-icon/lg/baggage-checked-not-included.js +1 -2
- package/bpk-component-icon/lg/baggage-checked.js +1 -2
- package/bpk-component-icon/lg/baggage-cross.js +1 -2
- package/bpk-component-icon/lg/baggage-generic.js +1 -2
- package/bpk-component-icon/lg/baggage-tick.js +1 -2
- package/bpk-component-icon/lg/baggage.js +1 -2
- package/bpk-component-icon/lg/bar.js +1 -2
- package/bpk-component-icon/lg/beach.js +1 -2
- package/bpk-component-icon/lg/beer.js +1 -2
- package/bpk-component-icon/lg/breakfast-cross.js +1 -2
- package/bpk-component-icon/lg/breakfast-tick.js +1 -2
- package/bpk-component-icon/lg/bus.js +1 -2
- package/bpk-component-icon/lg/business.js +1 -2
- package/bpk-component-icon/lg/cafe.js +1 -2
- package/bpk-component-icon/lg/calendar.js +1 -2
- package/bpk-component-icon/lg/call-back.js +1 -2
- package/bpk-component-icon/lg/camera.js +1 -2
- package/bpk-component-icon/lg/camper-van.js +1 -2
- package/bpk-component-icon/lg/car-door.js +1 -2
- package/bpk-component-icon/lg/car-wash.js +1 -2
- package/bpk-component-icon/lg/cars-flexible.js +1 -2
- package/bpk-component-icon/lg/cars.js +1 -2
- package/bpk-component-icon/lg/center-location.js +1 -2
- package/bpk-component-icon/lg/chart.js +1 -2
- package/bpk-component-icon/lg/chauffeur.js +1 -2
- package/bpk-component-icon/lg/chevron-down.js +1 -2
- package/bpk-component-icon/lg/chevron-left.js +1 -2
- package/bpk-component-icon/lg/chevron-right.js +1 -2
- package/bpk-component-icon/lg/chevron-up.js +1 -2
- package/bpk-component-icon/lg/child-seat.js +1 -2
- package/bpk-component-icon/lg/child.js +1 -2
- package/bpk-component-icon/lg/city-center.js +1 -2
- package/bpk-component-icon/lg/city.js +1 -2
- package/bpk-component-icon/lg/clean-policy.js +1 -2
- package/bpk-component-icon/lg/clean.js +1 -2
- package/bpk-component-icon/lg/cleaning-medical.js +1 -2
- package/bpk-component-icon/lg/cloakroom.js +1 -2
- package/bpk-component-icon/lg/close-circle.js +1 -2
- package/bpk-component-icon/lg/close.js +1 -2
- package/bpk-component-icon/lg/collapse.js +1 -2
- package/bpk-component-icon/lg/content--copy.js +1 -2
- package/bpk-component-icon/lg/content--event.js +1 -2
- package/bpk-component-icon/lg/content--guides.js +1 -2
- package/bpk-component-icon/lg/currency.js +1 -2
- package/bpk-component-icon/lg/data.js +1 -2
- package/bpk-component-icon/lg/deals.js +1 -2
- package/bpk-component-icon/lg/depart.js +1 -2
- package/bpk-component-icon/lg/device-mid.js +1 -2
- package/bpk-component-icon/lg/device-wide.js +1 -2
- package/bpk-component-icon/lg/direct.js +1 -2
- package/bpk-component-icon/lg/document-csv.js +1 -2
- package/bpk-component-icon/lg/document-pdf.js +1 -2
- package/bpk-component-icon/lg/download.js +1 -2
- package/bpk-component-icon/lg/duration.js +1 -2
- package/bpk-component-icon/lg/eco-leaf.js +1 -2
- package/bpk-component-icon/lg/edit.js +1 -2
- package/bpk-component-icon/lg/education.js +1 -2
- package/bpk-component-icon/lg/electric.js +1 -2
- package/bpk-component-icon/lg/end-call.js +1 -2
- package/bpk-component-icon/lg/estimated.js +1 -2
- package/bpk-component-icon/lg/exclamation-circle.js +1 -2
- package/bpk-component-icon/lg/exclamation.js +1 -2
- package/bpk-component-icon/lg/expand.js +1 -2
- package/bpk-component-icon/lg/explore.js +1 -2
- package/bpk-component-icon/lg/face--blank.js +1 -2
- package/bpk-component-icon/lg/face--happy.js +1 -2
- package/bpk-component-icon/lg/face--sad.js +1 -2
- package/bpk-component-icon/lg/face-id.js +1 -2
- package/bpk-component-icon/lg/face-mask.js +1 -2
- package/bpk-component-icon/lg/family.js +1 -2
- package/bpk-component-icon/lg/fast-track.js +1 -2
- package/bpk-component-icon/lg/fast-train.js +1 -2
- package/bpk-component-icon/lg/filter.js +1 -2
- package/bpk-component-icon/lg/fingerprint.js +1 -2
- package/bpk-component-icon/lg/flag.js +1 -2
- package/bpk-component-icon/lg/flask.js +1 -2
- package/bpk-component-icon/lg/flight-flexible.js +1 -2
- package/bpk-component-icon/lg/flight-landing.js +1 -2
- package/bpk-component-icon/lg/flight-takeoff.js +1 -2
- package/bpk-component-icon/lg/flight.js +1 -2
- package/bpk-component-icon/lg/food.js +1 -2
- package/bpk-component-icon/lg/gears-automatic-circle.js +1 -2
- package/bpk-component-icon/lg/gears-automatic.js +1 -2
- package/bpk-component-icon/lg/gears-manual-circle.js +1 -2
- package/bpk-component-icon/lg/gears-manual.js +1 -2
- package/bpk-component-icon/lg/globe.js +1 -2
- package/bpk-component-icon/lg/grid-layout.js +1 -2
- package/bpk-component-icon/lg/headset.js +1 -2
- package/bpk-component-icon/lg/health-fitness.js +1 -2
- package/bpk-component-icon/lg/heart--outline.js +1 -2
- package/bpk-component-icon/lg/heart.js +1 -2
- package/bpk-component-icon/lg/help-circle.js +1 -2
- package/bpk-component-icon/lg/help.js +1 -2
- package/bpk-component-icon/lg/hide.js +1 -2
- package/bpk-component-icon/lg/hotel-flexible.js +1 -2
- package/bpk-component-icon/lg/hotels--disabled-facilities.js +1 -2
- package/bpk-component-icon/lg/hotels--jacuzzi.js +1 -2
- package/bpk-component-icon/lg/hotels--pets-allowed.js +1 -2
- package/bpk-component-icon/lg/hotels--smoking.js +1 -2
- package/bpk-component-icon/lg/hotels.js +1 -2
- package/bpk-component-icon/lg/infant.js +1 -2
- package/bpk-component-icon/lg/information--language-alert.js +1 -2
- package/bpk-component-icon/lg/information--language-question.js +1 -2
- package/bpk-component-icon/lg/information--language.js +1 -2
- package/bpk-component-icon/lg/information-circle.js +1 -2
- package/bpk-component-icon/lg/information.js +1 -2
- package/bpk-component-icon/lg/insurance.js +1 -2
- package/bpk-component-icon/lg/key.js +1 -2
- package/bpk-component-icon/lg/keypad.js +1 -2
- package/bpk-component-icon/lg/landmark.js +1 -2
- package/bpk-component-icon/lg/language.js +1 -2
- package/bpk-component-icon/lg/legroom--extra.js +1 -2
- package/bpk-component-icon/lg/legroom--normal.js +1 -2
- package/bpk-component-icon/lg/legroom--reduced.js +1 -2
- package/bpk-component-icon/lg/leisure.js +1 -2
- package/bpk-component-icon/lg/lightning.js +1 -2
- package/bpk-component-icon/lg/list.js +1 -2
- package/bpk-component-icon/lg/location.js +1 -2
- package/bpk-component-icon/lg/lock.js +1 -2
- package/bpk-component-icon/lg/logout.js +1 -2
- package/bpk-component-icon/lg/long-arrow-down.js +1 -2
- package/bpk-component-icon/lg/long-arrow-left.js +1 -2
- package/bpk-component-icon/lg/long-arrow-right.js +1 -2
- package/bpk-component-icon/lg/long-arrow-up.js +1 -2
- package/bpk-component-icon/lg/lounge.js +1 -2
- package/bpk-component-icon/lg/luggageall.js +1 -2
- package/bpk-component-icon/lg/mail.js +1 -2
- package/bpk-component-icon/lg/map.js +1 -2
- package/bpk-component-icon/lg/meal.js +1 -2
- package/bpk-component-icon/lg/media.js +1 -2
- package/bpk-component-icon/lg/menu--horizontal.js +1 -2
- package/bpk-component-icon/lg/menu--vertical.js +1 -2
- package/bpk-component-icon/lg/menu.js +1 -2
- package/bpk-component-icon/lg/mileage.js +1 -2
- package/bpk-component-icon/lg/minus.js +1 -2
- package/bpk-component-icon/lg/mobile.js +1 -2
- package/bpk-component-icon/lg/money.js +1 -2
- package/bpk-component-icon/lg/multiple-bookings.js +1 -2
- package/bpk-component-icon/lg/music.js +1 -2
- package/bpk-component-icon/lg/mute.js +1 -2
- package/bpk-component-icon/lg/native-android--back.js +1 -2
- package/bpk-component-icon/lg/native-android--close.js +1 -2
- package/bpk-component-icon/lg/native-android--forward.js +1 -2
- package/bpk-component-icon/lg/native-ios-close.js +1 -2
- package/bpk-component-icon/lg/navigation.js +1 -2
- package/bpk-component-icon/lg/new-window.js +1 -2
- package/bpk-component-icon/lg/news.js +1 -2
- package/bpk-component-icon/lg/night.js +1 -2
- package/bpk-component-icon/lg/not-allowed.js +1 -2
- package/bpk-component-icon/lg/onsen.js +1 -2
- package/bpk-component-icon/lg/origin.js +1 -2
- package/bpk-component-icon/lg/paid.js +1 -2
- package/bpk-component-icon/lg/paperclip.js +1 -2
- package/bpk-component-icon/lg/parking.js +1 -2
- package/bpk-component-icon/lg/passport.js +1 -2
- package/bpk-component-icon/lg/pause.js +1 -2
- package/bpk-component-icon/lg/payment-card.js +1 -2
- package/bpk-component-icon/lg/petrol.js +1 -2
- package/bpk-component-icon/lg/phone-call.js +1 -2
- package/bpk-component-icon/lg/picture.js +1 -2
- package/bpk-component-icon/lg/pin.js +1 -2
- package/bpk-component-icon/lg/plane-seat.js +1 -2
- package/bpk-component-icon/lg/play.js +1 -2
- package/bpk-component-icon/lg/plus.js +1 -2
- package/bpk-component-icon/lg/policy.js +1 -2
- package/bpk-component-icon/lg/powerplug.js +1 -2
- package/bpk-component-icon/lg/ppe.js +1 -2
- package/bpk-component-icon/lg/price-alerts.js +1 -2
- package/bpk-component-icon/lg/price-tag.js +1 -2
- package/bpk-component-icon/lg/print.js +1 -2
- package/bpk-component-icon/lg/recent-searches.js +1 -2
- package/bpk-component-icon/lg/redo.js +1 -2
- package/bpk-component-icon/lg/refresh.js +1 -2
- package/bpk-component-icon/lg/return.js +1 -2
- package/bpk-component-icon/lg/room.js +1 -2
- package/bpk-component-icon/lg/scales.js +1 -2
- package/bpk-component-icon/lg/search.js +1 -2
- package/bpk-component-icon/lg/self-service.js +1 -2
- package/bpk-component-icon/lg/send-message.js +1 -2
- package/bpk-component-icon/lg/services.js +1 -2
- package/bpk-component-icon/lg/settings.js +1 -2
- package/bpk-component-icon/lg/share--android.js +1 -2
- package/bpk-component-icon/lg/share--ios.js +1 -2
- package/bpk-component-icon/lg/share.js +1 -2
- package/bpk-component-icon/lg/single-booking.js +1 -2
- package/bpk-component-icon/lg/social-distancing.js +1 -2
- package/bpk-component-icon/lg/social-like.js +1 -2
- package/bpk-component-icon/lg/sort-down.js +1 -2
- package/bpk-component-icon/lg/sort-up.js +1 -2
- package/bpk-component-icon/lg/sort.js +1 -2
- package/bpk-component-icon/lg/speaker.js +1 -2
- package/bpk-component-icon/lg/star-half.js +1 -2
- package/bpk-component-icon/lg/star-outline.js +1 -2
- package/bpk-component-icon/lg/star.js +1 -2
- package/bpk-component-icon/lg/stops.js +1 -2
- package/bpk-component-icon/lg/swap--horizontal.js +1 -2
- package/bpk-component-icon/lg/swap--vertical.js +1 -2
- package/bpk-component-icon/lg/swap.js +1 -2
- package/bpk-component-icon/lg/taxi.js +1 -2
- package/bpk-component-icon/lg/thumbs-down.js +1 -2
- package/bpk-component-icon/lg/thumbs-up.js +1 -2
- package/bpk-component-icon/lg/tick-circle.js +1 -2
- package/bpk-component-icon/lg/tick.js +1 -2
- package/bpk-component-icon/lg/ticket-flexible.js +1 -2
- package/bpk-component-icon/lg/ticket.js +1 -2
- package/bpk-component-icon/lg/time.js +1 -2
- package/bpk-component-icon/lg/toilets.js +1 -2
- package/bpk-component-icon/lg/train.js +1 -2
- package/bpk-component-icon/lg/transmission-automatic.js +1 -2
- package/bpk-component-icon/lg/transmission-manual.js +1 -2
- package/bpk-component-icon/lg/trash.js +1 -2
- package/bpk-component-icon/lg/trend--down.js +1 -2
- package/bpk-component-icon/lg/trend--steady.js +1 -2
- package/bpk-component-icon/lg/trend--will-rise.js +1 -2
- package/bpk-component-icon/lg/trend.js +1 -2
- package/bpk-component-icon/lg/trips.js +1 -2
- package/bpk-component-icon/lg/undo.js +1 -2
- package/bpk-component-icon/lg/unlock.js +1 -2
- package/bpk-component-icon/lg/unmute.js +1 -2
- package/bpk-component-icon/lg/upgrade.js +1 -2
- package/bpk-component-icon/lg/upload.js +1 -2
- package/bpk-component-icon/lg/use-location.js +1 -2
- package/bpk-component-icon/lg/view.js +1 -2
- package/bpk-component-icon/lg/virus.js +1 -2
- package/bpk-component-icon/lg/wallet.js +1 -2
- package/bpk-component-icon/lg/weather--clear.js +1 -2
- package/bpk-component-icon/lg/weather--cloudy.js +1 -2
- package/bpk-component-icon/lg/weather--fog.js +1 -2
- package/bpk-component-icon/lg/weather--partly-cloudy.js +1 -2
- package/bpk-component-icon/lg/weather--rain.js +1 -2
- package/bpk-component-icon/lg/weather--snow.js +1 -2
- package/bpk-component-icon/lg/weather--thunderstorm.js +1 -2
- package/bpk-component-icon/lg/weather--tornado.js +1 -2
- package/bpk-component-icon/lg/weather--wind.js +1 -2
- package/bpk-component-icon/lg/weather.js +1 -2
- package/bpk-component-icon/lg/wifi.js +1 -2
- package/bpk-component-icon/lg/window--reduce.js +1 -2
- package/bpk-component-icon/lg/window.js +1 -2
- package/bpk-component-icon/lg/world--amer.js +1 -2
- package/bpk-component-icon/lg/world--apac.js +1 -2
- package/bpk-component-icon/lg/world--emea.js +1 -2
- package/bpk-component-icon/sm/accessibility.js +0 -2
- package/bpk-component-icon/sm/account--add.js +0 -2
- package/bpk-component-icon/sm/account--female.js +0 -2
- package/bpk-component-icon/sm/account--id-card.js +0 -2
- package/bpk-component-icon/sm/account--name.js +0 -2
- package/bpk-component-icon/sm/account--permit.js +0 -2
- package/bpk-component-icon/sm/account-circle.js +0 -2
- package/bpk-component-icon/sm/account.js +0 -2
- package/bpk-component-icon/sm/add-circle.js +0 -2
- package/bpk-component-icon/sm/adult.js +0 -2
- package/bpk-component-icon/sm/ai.js +0 -2
- package/bpk-component-icon/sm/aircon.js +0 -2
- package/bpk-component-icon/sm/aircraft.js +0 -2
- package/bpk-component-icon/sm/airline--multiple.js +0 -2
- package/bpk-component-icon/sm/airline.js +0 -2
- package/bpk-component-icon/sm/airports.js +0 -2
- package/bpk-component-icon/sm/alert--active.js +0 -2
- package/bpk-component-icon/sm/alert--add.js +0 -2
- package/bpk-component-icon/sm/alert--expired.js +0 -2
- package/bpk-component-icon/sm/alert--remove.js +0 -2
- package/bpk-component-icon/sm/arrow-down.js +0 -2
- package/bpk-component-icon/sm/arrow-left.js +0 -2
- package/bpk-component-icon/sm/arrow-right.js +0 -2
- package/bpk-component-icon/sm/arrow-up.js +0 -2
- package/bpk-component-icon/sm/award.js +0 -2
- package/bpk-component-icon/sm/baby-carriage.js +0 -2
- package/bpk-component-icon/sm/baggage--add.js +0 -2
- package/bpk-component-icon/sm/baggage--remove.js +0 -2
- package/bpk-component-icon/sm/baggage-cabin-add.js +0 -2
- package/bpk-component-icon/sm/baggage-cabin-not-included.js +0 -2
- package/bpk-component-icon/sm/baggage-cabin.js +0 -2
- package/bpk-component-icon/sm/baggage-checked-add.js +0 -2
- package/bpk-component-icon/sm/baggage-checked-not-included.js +0 -2
- package/bpk-component-icon/sm/baggage-checked.js +0 -2
- package/bpk-component-icon/sm/baggage-cross.js +0 -2
- package/bpk-component-icon/sm/baggage-generic.js +0 -2
- package/bpk-component-icon/sm/baggage-tick.js +0 -2
- package/bpk-component-icon/sm/baggage.js +0 -2
- package/bpk-component-icon/sm/bar.js +0 -2
- package/bpk-component-icon/sm/beach.js +0 -2
- package/bpk-component-icon/sm/beer.js +0 -2
- package/bpk-component-icon/sm/breakfast-cross.js +0 -2
- package/bpk-component-icon/sm/breakfast-tick.js +0 -2
- package/bpk-component-icon/sm/bus.js +0 -2
- package/bpk-component-icon/sm/business.js +0 -2
- package/bpk-component-icon/sm/cafe.js +0 -2
- package/bpk-component-icon/sm/calendar.js +0 -2
- package/bpk-component-icon/sm/call-back.js +0 -2
- package/bpk-component-icon/sm/camera.js +0 -2
- package/bpk-component-icon/sm/camper-van.js +0 -2
- package/bpk-component-icon/sm/car-door.js +0 -2
- package/bpk-component-icon/sm/car-wash.js +0 -2
- package/bpk-component-icon/sm/cars-flexible.js +0 -2
- package/bpk-component-icon/sm/cars.js +0 -2
- package/bpk-component-icon/sm/center-location.js +0 -2
- package/bpk-component-icon/sm/chart.js +0 -2
- package/bpk-component-icon/sm/chauffeur.js +0 -2
- package/bpk-component-icon/sm/chevron-down.js +0 -2
- package/bpk-component-icon/sm/chevron-left.js +0 -2
- package/bpk-component-icon/sm/chevron-right.js +0 -2
- package/bpk-component-icon/sm/chevron-up.js +0 -2
- package/bpk-component-icon/sm/child-seat.js +0 -2
- package/bpk-component-icon/sm/child.js +0 -2
- package/bpk-component-icon/sm/city-center.js +0 -2
- package/bpk-component-icon/sm/city.js +0 -2
- package/bpk-component-icon/sm/clean-policy.js +0 -2
- package/bpk-component-icon/sm/clean.js +0 -2
- package/bpk-component-icon/sm/cleaning-medical.js +0 -2
- package/bpk-component-icon/sm/cloakroom.js +0 -2
- package/bpk-component-icon/sm/close-circle.js +0 -2
- package/bpk-component-icon/sm/close.js +0 -2
- package/bpk-component-icon/sm/collapse.js +0 -2
- package/bpk-component-icon/sm/content--copy.js +0 -2
- package/bpk-component-icon/sm/content--event.js +0 -2
- package/bpk-component-icon/sm/content--guides.js +0 -2
- package/bpk-component-icon/sm/currency.js +0 -2
- package/bpk-component-icon/sm/data.js +0 -2
- package/bpk-component-icon/sm/deals.js +0 -2
- package/bpk-component-icon/sm/depart.js +0 -2
- package/bpk-component-icon/sm/device-mid.js +0 -2
- package/bpk-component-icon/sm/device-wide.js +0 -2
- package/bpk-component-icon/sm/direct.js +0 -2
- package/bpk-component-icon/sm/document-csv.js +0 -2
- package/bpk-component-icon/sm/document-pdf.js +0 -2
- package/bpk-component-icon/sm/download.js +0 -2
- package/bpk-component-icon/sm/duration.js +0 -2
- package/bpk-component-icon/sm/eco-leaf.js +0 -2
- package/bpk-component-icon/sm/edit.js +0 -2
- package/bpk-component-icon/sm/education.js +0 -2
- package/bpk-component-icon/sm/electric.js +0 -2
- package/bpk-component-icon/sm/end-call.js +0 -2
- package/bpk-component-icon/sm/estimated.js +0 -2
- package/bpk-component-icon/sm/exclamation-circle.js +0 -2
- package/bpk-component-icon/sm/exclamation.js +0 -2
- package/bpk-component-icon/sm/expand.js +0 -2
- package/bpk-component-icon/sm/explore.js +0 -2
- package/bpk-component-icon/sm/face--blank.js +0 -2
- package/bpk-component-icon/sm/face--happy.js +0 -2
- package/bpk-component-icon/sm/face--sad.js +0 -2
- package/bpk-component-icon/sm/face-id.js +0 -2
- package/bpk-component-icon/sm/face-mask.js +0 -2
- package/bpk-component-icon/sm/family.js +0 -2
- package/bpk-component-icon/sm/fast-track.js +0 -2
- package/bpk-component-icon/sm/fast-train.js +0 -2
- package/bpk-component-icon/sm/filter.js +0 -2
- package/bpk-component-icon/sm/fingerprint.js +0 -2
- package/bpk-component-icon/sm/flag.js +0 -2
- package/bpk-component-icon/sm/flask.js +0 -2
- package/bpk-component-icon/sm/flight-flexible.js +0 -2
- package/bpk-component-icon/sm/flight-landing.js +0 -2
- package/bpk-component-icon/sm/flight-takeoff.js +0 -2
- package/bpk-component-icon/sm/flight.js +0 -2
- package/bpk-component-icon/sm/food.js +0 -2
- package/bpk-component-icon/sm/gears-automatic-circle.js +0 -2
- package/bpk-component-icon/sm/gears-automatic.js +0 -2
- package/bpk-component-icon/sm/gears-manual-circle.js +0 -2
- package/bpk-component-icon/sm/gears-manual.js +0 -2
- package/bpk-component-icon/sm/globe.js +0 -2
- package/bpk-component-icon/sm/grid-layout.js +0 -2
- package/bpk-component-icon/sm/headset.js +0 -2
- package/bpk-component-icon/sm/health-fitness.js +0 -2
- package/bpk-component-icon/sm/heart--outline.js +0 -2
- package/bpk-component-icon/sm/heart.js +0 -2
- package/bpk-component-icon/sm/help-circle.js +0 -2
- package/bpk-component-icon/sm/help.js +0 -2
- package/bpk-component-icon/sm/hide.js +0 -2
- package/bpk-component-icon/sm/hotel-flexible.js +0 -2
- package/bpk-component-icon/sm/hotels--disabled-facilities.js +0 -2
- package/bpk-component-icon/sm/hotels--jacuzzi.js +0 -2
- package/bpk-component-icon/sm/hotels--pets-allowed.js +0 -2
- package/bpk-component-icon/sm/hotels--smoking.js +0 -2
- package/bpk-component-icon/sm/hotels.js +0 -2
- package/bpk-component-icon/sm/infant.js +0 -2
- package/bpk-component-icon/sm/information--language-alert.js +0 -2
- package/bpk-component-icon/sm/information--language-question.js +0 -2
- package/bpk-component-icon/sm/information--language.js +0 -2
- package/bpk-component-icon/sm/information-circle.js +0 -2
- package/bpk-component-icon/sm/information.js +0 -2
- package/bpk-component-icon/sm/insurance.js +0 -2
- package/bpk-component-icon/sm/key.js +0 -2
- package/bpk-component-icon/sm/keypad.js +0 -2
- package/bpk-component-icon/sm/landmark.js +0 -2
- package/bpk-component-icon/sm/language.js +0 -2
- package/bpk-component-icon/sm/legroom--extra.js +0 -2
- package/bpk-component-icon/sm/legroom--normal.js +0 -2
- package/bpk-component-icon/sm/legroom--reduced.js +0 -2
- package/bpk-component-icon/sm/leisure.js +0 -2
- package/bpk-component-icon/sm/lightning.js +0 -2
- package/bpk-component-icon/sm/list.js +0 -2
- package/bpk-component-icon/sm/location.js +0 -2
- package/bpk-component-icon/sm/lock.js +0 -2
- package/bpk-component-icon/sm/logout.js +0 -2
- package/bpk-component-icon/sm/long-arrow-down.js +0 -2
- package/bpk-component-icon/sm/long-arrow-left.js +0 -2
- package/bpk-component-icon/sm/long-arrow-right.js +0 -2
- package/bpk-component-icon/sm/long-arrow-up.js +0 -2
- package/bpk-component-icon/sm/lounge.js +0 -2
- package/bpk-component-icon/sm/luggageall.js +0 -2
- package/bpk-component-icon/sm/mail.js +0 -2
- package/bpk-component-icon/sm/map.js +0 -2
- package/bpk-component-icon/sm/meal.js +0 -2
- package/bpk-component-icon/sm/media.js +0 -2
- package/bpk-component-icon/sm/menu--horizontal.js +0 -2
- package/bpk-component-icon/sm/menu--vertical.js +0 -2
- package/bpk-component-icon/sm/menu.js +0 -2
- package/bpk-component-icon/sm/mileage.js +0 -2
- package/bpk-component-icon/sm/minus.js +0 -2
- package/bpk-component-icon/sm/mobile.js +0 -2
- package/bpk-component-icon/sm/money.js +0 -2
- package/bpk-component-icon/sm/multiple-bookings.js +0 -2
- package/bpk-component-icon/sm/music.js +0 -2
- package/bpk-component-icon/sm/mute.js +0 -2
- package/bpk-component-icon/sm/native-android--back.js +0 -2
- package/bpk-component-icon/sm/native-android--close.js +0 -2
- package/bpk-component-icon/sm/native-android--forward.js +0 -2
- package/bpk-component-icon/sm/native-ios-close.js +0 -2
- package/bpk-component-icon/sm/navigation.js +0 -2
- package/bpk-component-icon/sm/new-window.js +0 -2
- package/bpk-component-icon/sm/news.js +0 -2
- package/bpk-component-icon/sm/night.js +0 -2
- package/bpk-component-icon/sm/not-allowed.js +0 -2
- package/bpk-component-icon/sm/onsen.js +0 -2
- package/bpk-component-icon/sm/origin.js +0 -2
- package/bpk-component-icon/sm/paid.js +0 -2
- package/bpk-component-icon/sm/paperclip.js +0 -2
- package/bpk-component-icon/sm/parking.js +0 -2
- package/bpk-component-icon/sm/passport.js +0 -2
- package/bpk-component-icon/sm/pause.js +0 -2
- package/bpk-component-icon/sm/payment-card.js +0 -2
- package/bpk-component-icon/sm/petrol.js +0 -2
- package/bpk-component-icon/sm/phone-call.js +0 -2
- package/bpk-component-icon/sm/picture.js +0 -2
- package/bpk-component-icon/sm/pin.js +0 -2
- package/bpk-component-icon/sm/plane-seat.js +0 -2
- package/bpk-component-icon/sm/play.js +0 -2
- package/bpk-component-icon/sm/plus.js +0 -2
- package/bpk-component-icon/sm/policy.js +0 -2
- package/bpk-component-icon/sm/powerplug.js +0 -2
- package/bpk-component-icon/sm/ppe.js +0 -2
- package/bpk-component-icon/sm/price-alerts.js +0 -2
- package/bpk-component-icon/sm/price-tag.js +0 -2
- package/bpk-component-icon/sm/print.js +0 -2
- package/bpk-component-icon/sm/recent-searches.js +0 -2
- package/bpk-component-icon/sm/redo.js +0 -2
- package/bpk-component-icon/sm/refresh.js +0 -2
- package/bpk-component-icon/sm/return.js +0 -2
- package/bpk-component-icon/sm/room.js +0 -2
- package/bpk-component-icon/sm/scales.js +0 -2
- package/bpk-component-icon/sm/search.js +0 -2
- package/bpk-component-icon/sm/self-service.js +0 -2
- package/bpk-component-icon/sm/send-message.js +0 -2
- package/bpk-component-icon/sm/services.js +0 -2
- package/bpk-component-icon/sm/settings.js +0 -2
- package/bpk-component-icon/sm/share--android.js +0 -2
- package/bpk-component-icon/sm/share--ios.js +0 -2
- package/bpk-component-icon/sm/share.js +0 -2
- package/bpk-component-icon/sm/single-booking.js +0 -2
- package/bpk-component-icon/sm/social-distancing.js +0 -2
- package/bpk-component-icon/sm/social-like.js +0 -2
- package/bpk-component-icon/sm/sort-down.js +0 -2
- package/bpk-component-icon/sm/sort-up.js +0 -2
- package/bpk-component-icon/sm/sort.js +0 -2
- package/bpk-component-icon/sm/speaker.js +0 -2
- package/bpk-component-icon/sm/star-half.js +0 -2
- package/bpk-component-icon/sm/star-outline.js +0 -2
- package/bpk-component-icon/sm/star.js +0 -2
- package/bpk-component-icon/sm/stops.js +0 -2
- package/bpk-component-icon/sm/swap--horizontal.js +0 -2
- package/bpk-component-icon/sm/swap--vertical.js +0 -2
- package/bpk-component-icon/sm/swap.js +0 -2
- package/bpk-component-icon/sm/taxi.js +0 -2
- package/bpk-component-icon/sm/thumbs-down.js +0 -2
- package/bpk-component-icon/sm/thumbs-up.js +0 -2
- package/bpk-component-icon/sm/tick-circle.js +0 -2
- package/bpk-component-icon/sm/tick.js +0 -2
- package/bpk-component-icon/sm/ticket-flexible.js +0 -2
- package/bpk-component-icon/sm/ticket.js +0 -2
- package/bpk-component-icon/sm/time.js +0 -2
- package/bpk-component-icon/sm/toilets.js +0 -2
- package/bpk-component-icon/sm/train.js +0 -2
- package/bpk-component-icon/sm/transmission-automatic.js +0 -2
- package/bpk-component-icon/sm/transmission-manual.js +0 -2
- package/bpk-component-icon/sm/trash.js +0 -2
- package/bpk-component-icon/sm/trend--down.js +0 -2
- package/bpk-component-icon/sm/trend--steady.js +0 -2
- package/bpk-component-icon/sm/trend--will-rise.js +0 -2
- package/bpk-component-icon/sm/trend.js +0 -2
- package/bpk-component-icon/sm/trips.js +0 -2
- package/bpk-component-icon/sm/undo.js +0 -2
- package/bpk-component-icon/sm/unlock.js +0 -2
- package/bpk-component-icon/sm/unmute.js +0 -2
- package/bpk-component-icon/sm/upgrade.js +0 -2
- package/bpk-component-icon/sm/upload.js +0 -2
- package/bpk-component-icon/sm/use-location.js +0 -2
- package/bpk-component-icon/sm/view.js +0 -2
- package/bpk-component-icon/sm/virus.js +0 -2
- package/bpk-component-icon/sm/wallet.js +0 -2
- package/bpk-component-icon/sm/weather--clear.js +0 -2
- package/bpk-component-icon/sm/weather--cloudy.js +0 -2
- package/bpk-component-icon/sm/weather--fog.js +0 -2
- package/bpk-component-icon/sm/weather--partly-cloudy.js +0 -2
- package/bpk-component-icon/sm/weather--rain.js +0 -2
- package/bpk-component-icon/sm/weather--snow.js +0 -2
- package/bpk-component-icon/sm/weather--thunderstorm.js +0 -2
- package/bpk-component-icon/sm/weather--tornado.js +0 -2
- package/bpk-component-icon/sm/weather--wind.js +0 -2
- package/bpk-component-icon/sm/weather.js +0 -2
- package/bpk-component-icon/sm/wifi.js +0 -2
- package/bpk-component-icon/sm/window--reduce.js +0 -2
- package/bpk-component-icon/sm/window.js +0 -2
- package/bpk-component-icon/sm/world--amer.js +0 -2
- package/bpk-component-icon/sm/world--apac.js +0 -2
- package/bpk-component-icon/sm/world--emea.js +0 -2
- package/bpk-component-infinite-scroll/src/intersection-observer.js +2 -3
- package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.module.css +1 -1
- package/bpk-component-nudger/src/BpkNudger.d.ts +1 -1
- package/bpk-component-nudger/src/BpkNudger.js +41 -10
- package/bpk-component-nudger/src/BpkNudger.module.css +1 -1
- package/bpk-component-nudger/src/common-types.d.ts +5 -1
- package/bpk-component-skip-link/src/BpkSkipLink.module.css +1 -1
- package/bpk-component-slider/src/BpkSlider.js +2 -0
- package/bpk-component-spinner/src/BpkExtraLargeSpinner.js +1 -2
- package/bpk-component-spinner/src/BpkLargeSpinner.js +1 -2
- package/bpk-component-spinner/src/BpkSpinner.js +36 -94
- package/bpk-mixins/_index.scss +35 -0
- package/{bpk-storybook-utils/index.js → bpk-mixins/sass-functions.js} +12 -6
- package/{bpk-component-nudger-row/index.js → bpk-mixins/src/_bonds.scss} +1 -2
- package/bpk-mixins/src/mixins/_badges.scss +236 -0
- package/bpk-mixins/src/mixins/_borders.scss +266 -0
- package/bpk-mixins/src/mixins/_breakpoints.scss +219 -0
- package/bpk-mixins/src/mixins/_buttons.scss +566 -0
- package/bpk-mixins/src/mixins/_cards.scss +89 -0
- package/bpk-mixins/src/mixins/_chips.scss +232 -0
- package/bpk-mixins/src/mixins/_forms.scss +1043 -0
- package/bpk-mixins/src/mixins/_layers.scss +196 -0
- package/bpk-mixins/src/mixins/_margins.scss +71 -0
- package/bpk-mixins/src/mixins/_panels.scss +67 -0
- package/bpk-mixins/src/mixins/_radii.scss +78 -0
- package/bpk-mixins/src/mixins/_scroll-indicators.scss +77 -0
- package/{bpk-component-nudger-row/src/BpkNudgerRow.d.ts → bpk-mixins/src/mixins/_shadows.scss} +38 -15
- package/bpk-mixins/src/mixins/_svgs.scss +265 -0
- package/bpk-mixins/src/mixins/_typography.scss +1035 -0
- package/bpk-mixins/src/mixins/_utils.scss +249 -0
- package/bpk-react-utils/src/Portal.js +1 -1
- package/bpk-react-utils/src/deprecated.js +1 -3
- package/bpk-stylesheets/base.css +20 -0
- package/bpk-stylesheets/base.js +1 -0
- package/bpk-stylesheets/font.css +18 -0
- package/{bpk-component-nudger-row/index.d.ts → bpk-stylesheets/font.js} +1 -3
- package/bpk-stylesheets/font.scss +107 -0
- package/{bpk-storybook-utils/src/BpkStorybookUtils.js → bpk-stylesheets/index.js} +24 -13
- package/bpk-stylesheets/index.scss +76 -0
- package/package.json +5 -4
- package/bpk-component-nudger-row/src/BpkNudgerRow.js +0 -69
- package/bpk-component-nudger-row/src/BpkNudgerRow.module.css +0 -18
- package/bpk-storybook-utils/src/BpkDarkExampleWrapper.js +0 -38
- package/bpk-storybook-utils/src/BpkDarkExampleWrapper.module.css +0 -18
|
@@ -0,0 +1,249 @@
|
|
|
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
|
+
////
|
|
20
|
+
/// @group utils
|
|
21
|
+
////
|
|
22
|
+
|
|
23
|
+
/// Hide visually and from screen readers.
|
|
24
|
+
///
|
|
25
|
+
/// @example scss
|
|
26
|
+
/// .selector {
|
|
27
|
+
/// @include bpk-hidden();
|
|
28
|
+
/// }
|
|
29
|
+
|
|
30
|
+
@mixin bpk-hidden {
|
|
31
|
+
display: none !important; /* stylelint-disable-line declaration-no-important */
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/// Hide only visually, but have it available for screen readers:
|
|
35
|
+
///
|
|
36
|
+
/// http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
|
|
37
|
+
///
|
|
38
|
+
/// @example scss
|
|
39
|
+
/// .selector {
|
|
40
|
+
/// @include bpk-visually-hidden();
|
|
41
|
+
/// }
|
|
42
|
+
|
|
43
|
+
@mixin bpk-visually-hidden {
|
|
44
|
+
position: absolute;
|
|
45
|
+
width: 1px; /* stylelint-disable-line unit-disallowed-list */
|
|
46
|
+
height: 1px; /* stylelint-disable-line unit-disallowed-list */
|
|
47
|
+
margin: -1px; /* stylelint-disable-line unit-disallowed-list */
|
|
48
|
+
padding: 0;
|
|
49
|
+
border: 0;
|
|
50
|
+
overflow: hidden;
|
|
51
|
+
clip: rect(0 0 0 0);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/// Modifies the bpk-visually-hidden mixin to allow the element to be focusable when navigated to via the keyboard:
|
|
55
|
+
///
|
|
56
|
+
/// https://www.drupal.org/node/897638
|
|
57
|
+
///
|
|
58
|
+
/// @require {mixin} bpk-visually-hidden
|
|
59
|
+
///
|
|
60
|
+
/// @example scss
|
|
61
|
+
/// .selector {
|
|
62
|
+
/// @include bpk-visually-hidden();
|
|
63
|
+
/// @include bpk-visually-hidden--focusable();
|
|
64
|
+
/// }
|
|
65
|
+
|
|
66
|
+
@mixin bpk-visually-hidden--focusable {
|
|
67
|
+
&:active,
|
|
68
|
+
&:focus {
|
|
69
|
+
position: static;
|
|
70
|
+
width: auto;
|
|
71
|
+
height: auto;
|
|
72
|
+
margin: 0;
|
|
73
|
+
overflow: visible;
|
|
74
|
+
clip: auto;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/// Hide visually and from screen readers, but maintain layout.
|
|
79
|
+
///
|
|
80
|
+
/// @example scss
|
|
81
|
+
/// .selector {
|
|
82
|
+
/// @include bpk-invisible();
|
|
83
|
+
/// }
|
|
84
|
+
|
|
85
|
+
@mixin bpk-invisible {
|
|
86
|
+
visibility: hidden;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/// Clearfix: contain floats.
|
|
90
|
+
///
|
|
91
|
+
/// @example scss
|
|
92
|
+
/// .selector {
|
|
93
|
+
/// @include bpk-clearfix();
|
|
94
|
+
/// }
|
|
95
|
+
|
|
96
|
+
@mixin bpk-clearfix {
|
|
97
|
+
&::before,
|
|
98
|
+
&::after {
|
|
99
|
+
content: '';
|
|
100
|
+
display: table;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&::after {
|
|
104
|
+
clear: both;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/// Target RTL specific styles.
|
|
109
|
+
///
|
|
110
|
+
/// @content
|
|
111
|
+
///
|
|
112
|
+
/// @example scss
|
|
113
|
+
/// .selector {
|
|
114
|
+
/// @include bpk-rtl() {
|
|
115
|
+
/// /* RTL scss goes here */
|
|
116
|
+
/// }
|
|
117
|
+
/// }
|
|
118
|
+
|
|
119
|
+
@mixin bpk-rtl {
|
|
120
|
+
html[dir='rtl'] & {
|
|
121
|
+
@content;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/// :hover pseudo selector wrapper which prevents styles displaying on touch devices
|
|
126
|
+
///
|
|
127
|
+
/// @content
|
|
128
|
+
///
|
|
129
|
+
/// @example scss
|
|
130
|
+
/// .selector {
|
|
131
|
+
/// @include bpk-hover() {
|
|
132
|
+
/// /* Non-touch specific hover scss goes here */
|
|
133
|
+
/// }
|
|
134
|
+
/// }
|
|
135
|
+
|
|
136
|
+
@mixin bpk-hover {
|
|
137
|
+
.bpk-no-touch-support &:hover:not(:active):not(:disabled) {
|
|
138
|
+
@content;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
// Duplicating the above rule with `:global(...)` pseudo selector around the
|
|
142
|
+
// global `.bpk-no-touch-support` class to provide support for CSS modules.
|
|
143
|
+
// - when processed through css-loader, the `:global(...)` pseudo selector will be dropped
|
|
144
|
+
// leaving a duplicate rule which in turn will be 'uglified' out - so no worries there
|
|
145
|
+
// - when processed through node-sass only, the `:global(...)` pseudo selector will be left
|
|
146
|
+
// intact and ignored by all browsers
|
|
147
|
+
// stylelint-disable-next-line selector-pseudo-class-no-unknown
|
|
148
|
+
:global(.bpk-no-touch-support) &:hover:not(:active):not(:disabled) {
|
|
149
|
+
@content;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/// Target locale specific styles.
|
|
154
|
+
///
|
|
155
|
+
/// @content
|
|
156
|
+
///
|
|
157
|
+
/// @example scss
|
|
158
|
+
/// .selector {
|
|
159
|
+
/// @include bpk-locale('ja-JP') {
|
|
160
|
+
/// /* ja-JP scss goes here */
|
|
161
|
+
/// }
|
|
162
|
+
/// }
|
|
163
|
+
|
|
164
|
+
@mixin bpk-locale($locale) {
|
|
165
|
+
html[lang='#{$locale}'] &,
|
|
166
|
+
html[lang='#{to_lower_case($locale)}'] & {
|
|
167
|
+
@content;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/// Create a Backpack themeable property with
|
|
172
|
+
/// fallback support for old browsers and when
|
|
173
|
+
/// the CSS variable is not defined.
|
|
174
|
+
///
|
|
175
|
+
/// @content
|
|
176
|
+
///
|
|
177
|
+
/// @example scss
|
|
178
|
+
/// .selector {
|
|
179
|
+
/// @include bpk-themeable-property(color, --bpk-link-text-color, $fallback-text-color);
|
|
180
|
+
/// }
|
|
181
|
+
|
|
182
|
+
@mixin bpk-themeable-property($property, $variableName, $fallback) {
|
|
183
|
+
#{$property}: $fallback;
|
|
184
|
+
#{$property}: var($variableName, $fallback);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/// Create a property that uses the Backpack primary color blue-500.
|
|
188
|
+
///
|
|
189
|
+
/// @content
|
|
190
|
+
///
|
|
191
|
+
/// @example scss
|
|
192
|
+
/// .selector {
|
|
193
|
+
/// @include bpk-apply-primary-color-to(color);
|
|
194
|
+
/// }
|
|
195
|
+
@mixin bpk-apply-primary-color-to($property) {
|
|
196
|
+
@include bpk-themeable-property(
|
|
197
|
+
$property,
|
|
198
|
+
--bpk-primary-color,
|
|
199
|
+
$bpk-color-sky-blue
|
|
200
|
+
);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/// Replace part of a string with another string.
|
|
204
|
+
///
|
|
205
|
+
/// @param {string} $string - The string inside which the replacement should take place.
|
|
206
|
+
/// @param {string} $search - The substring to be replaced.
|
|
207
|
+
/// @param {string} $replace [''] - The string to replace $search.
|
|
208
|
+
|
|
209
|
+
@function str-replace($string, $search, $replace: '') {
|
|
210
|
+
/* Disabling rule here as the recommendation method is for newer sass versions that we don't yet support */
|
|
211
|
+
/* stylelint-disable-next-line scss/no-global-function-names */
|
|
212
|
+
$index: str-index($string, $search);
|
|
213
|
+
|
|
214
|
+
@if $index {
|
|
215
|
+
@return str-slice($string, 1, $index - 1) + $replace +
|
|
216
|
+
str-replace(
|
|
217
|
+
str-slice($string, $index + str-length($search)),
|
|
218
|
+
$search,
|
|
219
|
+
$replace
|
|
220
|
+
);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
@return $string;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/// Increases the tappable area of the element to the
|
|
227
|
+
/// minimum required for touch devices.
|
|
228
|
+
///
|
|
229
|
+
/// @content
|
|
230
|
+
///
|
|
231
|
+
/// @example scss
|
|
232
|
+
/// .selector {
|
|
233
|
+
/// @include bpk-touch-area;
|
|
234
|
+
/// }
|
|
235
|
+
|
|
236
|
+
@mixin bpk-touch-tappable {
|
|
237
|
+
position: relative;
|
|
238
|
+
|
|
239
|
+
&::before {
|
|
240
|
+
position: absolute;
|
|
241
|
+
/* stylelint-disable-next-line function-calc-no-invalid */
|
|
242
|
+
top: calc((-#{bpk-spacing-xxl() + bpk-spacing-sm()} / 2) + 50%);
|
|
243
|
+
/* stylelint-disable-next-line function-calc-no-invalid */
|
|
244
|
+
left: calc((-#{bpk-spacing-xxl() + bpk-spacing-sm()} / 2) + 50%);
|
|
245
|
+
content: '';
|
|
246
|
+
width: bpk-spacing-xxl() + bpk-spacing-sm();
|
|
247
|
+
height: bpk-spacing-xxl() + bpk-spacing-sm();
|
|
248
|
+
}
|
|
249
|
+
}
|
|
@@ -192,7 +192,7 @@ class Portal extends Component {
|
|
|
192
192
|
|
|
193
193
|
// This function is taken from modernizr
|
|
194
194
|
// See https://github.com/modernizr/modernizr
|
|
195
|
-
|
|
195
|
+
|
|
196
196
|
supportsPassiveEvents() {
|
|
197
197
|
let supportsPassiveOption = false;
|
|
198
198
|
try {
|
|
@@ -18,9 +18,7 @@
|
|
|
18
18
|
// We disable eslint on the below line because it breaks the flow type definitions and the FlowIssue comment below
|
|
19
19
|
// We can remove this when we migrate this file to TypeScript.
|
|
20
20
|
// $FlowIssue[value-as-type] - PropType is imported as a type so is incorrectly reporting the PropType is not a valid type
|
|
21
|
-
const deprecated = (propType, alternativeSuggestion) =>
|
|
22
|
-
// eslint-disable-line
|
|
23
|
-
(props, propName, componentName, ...rest) => {
|
|
21
|
+
const deprecated = (propType, alternativeSuggestion) => (props, propName, componentName, ...rest) => {
|
|
24
22
|
if (props[propName] != null) {
|
|
25
23
|
const message = `Warning: "${propName}" property of "${componentName}" has been deprecated. ${alternativeSuggestion}`;
|
|
26
24
|
// eslint-disable-next-line no-console
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
*
|
|
3
|
+
* Backpack - Skyscanner's Design System
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2016 Skyscanner Ltd
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*
|
|
19
|
+
*//*! normalize.css v4.1.1 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block}audio:not([controls]){display:none;height:0}progress{vertical-align:baseline}template,[hidden]{display:none}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}dfn{font-style:italic}h1{font-size:2em;margin:0.67em 0}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}svg:not(:root){overflow:hidden}code,kbd,pre,samp{font-family:monospace, monospace;font-size:1em}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}button,input,optgroup,select,textarea{font:inherit;margin:0}optgroup{font-weight:bold}button,input{overflow:visible}button,select{text-transform:none}button,html [type="button"],[type="reset"],[type="submit"]{-webkit-appearance:button}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type="button"]:-moz-focusring,[type="reset"]:-moz-focusring,[type="submit"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}textarea{overflow:auto}[type="checkbox"],[type="radio"]{box-sizing:border-box;padding:0}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{height:auto}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px}[type="search"]::-webkit-search-cancel-button,[type="search"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-input-placeholder{color:inherit;opacity:0.54}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}html{font-size:100%;box-sizing:border-box}*{box-sizing:inherit}*::before,*::after{box-sizing:inherit}body{color:#161616;font-family:"Skyscanner Relative",-apple-system,BlinkMacSystemFont,"Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:1rem;line-height:1.3rem}:global(body.scaffold-font-size){font-size:13px}:global(body.enable-font-smoothing){-webkit-font-smoothing:antialiased}:global(.hidden),:global(.hide){display:none !important}:global(.visuallyhidden),:global(.visually-hidden){position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0)}:global(.visuallyhidden.focusable):active,:global(.visuallyhidden.focusable):focus,:global(.visually-hidden.focusable):active,:global(.visually-hidden.focusable):focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}:global(.invisible){visibility:hidden}:global(.clearfix)::before,:global(.clearfix)::after{content:'';display:table}:global(.clearfix)::after{clear:both}
|
|
20
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";(()=>{if("undefined"==typeof document)return;const o=[];o.push("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch?"touch-support":"no-touch-support"),document.documentElement.className+=` ${o.map((o=>`bpk-${o}`)).join(" ")}`})()})();
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
@font-face{font-family:'Skyscanner Relative';font-style:normal;font-weight:400;src:url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Book-f9356ad6.woff2") format("woff2"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Book-46f9f429.woff") format("woff"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Book-ab1dbcbe.ttf") format("ttf")}@font-face{font-family:'Skyscanner Relative';font-style:italic;font-weight:400;src:url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Italic-10532ac3.woff2") format("woff2"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Italic-db5d0ac5.woff") format("woff"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Italic-8eec3f3a.ttf") format("ttf")}@font-face{font-family:'Skyscanner Relative';font-style:normal;font-weight:500;src:url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Medium-c08dc28b.woff2") format("woff2"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Medium-865e167a.woff") format("woff"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Medium-d0ae478a.ttf") format("ttf")}@font-face{font-family:'Skyscanner Relative';font-style:italic;font-weight:500;src:url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-MediumItalic-81517f37.woff2") format("woff2"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-MediumItalic-bbdb6b0c.woff") format("woff"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-MediumItalic-226fe64c.ttf") format("ttf")}@font-face{font-family:'Skyscanner Relative';font-style:normal;font-weight:700;src:url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Bold-8545937e.woff2") format("woff2"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Bold-a099c9f7.woff") format("woff"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Bold-ec4cc5a7.ttf") format("ttf")}@font-face{font-family:'Skyscanner Relative';font-style:italic;font-weight:700;src:url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-BoldItalic-01b5d138.woff2") format("woff2"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-BoldItalic-4d6d36e3.woff") format("woff"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-BoldItalic-dc9284dc.ttf") format("ttf")}@font-face{font-family:'Skyscanner Relative';font-style:normal;font-weight:900;src:url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Black-bb3c9434.woff2") format("woff2"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Black-bba2eb55.woff") format("woff"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Black-314703cc.ttf") format("ttf")}@font-face{font-family:'Skyscanner Relative';font-style:italic;font-weight:900;src:url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-BlackItalic-c2149c91.woff2") format("woff2"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-BlackItalic-a34cd594.woff") format("woff"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-BlackItalic-7e516ee5.ttf") format("ttf")}
|
|
@@ -0,0 +1,107 @@
|
|
|
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
|
+
$base-url: 'https://js.skyscnr.com/sttc/bpk-fonts';
|
|
20
|
+
|
|
21
|
+
@font-face {
|
|
22
|
+
font-family: 'Skyscanner Relative';
|
|
23
|
+
font-style: normal;
|
|
24
|
+
font-weight: 400;
|
|
25
|
+
src:
|
|
26
|
+
url('#{$base-url}/SkyscannerRelative-Book-f9356ad6.woff2') format('woff2'),
|
|
27
|
+
url('#{$base-url}/SkyscannerRelative-Book-46f9f429.woff') format('woff'),
|
|
28
|
+
url('#{$base-url}/SkyscannerRelative-Book-ab1dbcbe.ttf') format('ttf');
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@font-face {
|
|
32
|
+
font-family: 'Skyscanner Relative';
|
|
33
|
+
font-style: italic;
|
|
34
|
+
font-weight: 400;
|
|
35
|
+
src:
|
|
36
|
+
url('#{$base-url}/SkyscannerRelative-Italic-10532ac3.woff2') format('woff2'),
|
|
37
|
+
url('#{$base-url}/SkyscannerRelative-Italic-db5d0ac5.woff') format('woff'),
|
|
38
|
+
url('#{$base-url}/SkyscannerRelative-Italic-8eec3f3a.ttf') format('ttf');
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@font-face {
|
|
42
|
+
font-family: 'Skyscanner Relative';
|
|
43
|
+
font-style: normal;
|
|
44
|
+
font-weight: 500;
|
|
45
|
+
src:
|
|
46
|
+
url('#{$base-url}/SkyscannerRelative-Medium-c08dc28b.woff2') format('woff2'),
|
|
47
|
+
url('#{$base-url}/SkyscannerRelative-Medium-865e167a.woff') format('woff'),
|
|
48
|
+
url('#{$base-url}/SkyscannerRelative-Medium-d0ae478a.ttf') format('ttf');
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@font-face {
|
|
52
|
+
font-family: 'Skyscanner Relative';
|
|
53
|
+
font-style: italic;
|
|
54
|
+
font-weight: 500;
|
|
55
|
+
src:
|
|
56
|
+
url('#{$base-url}/SkyscannerRelative-MediumItalic-81517f37.woff2')
|
|
57
|
+
format('woff2'),
|
|
58
|
+
url('#{$base-url}/SkyscannerRelative-MediumItalic-bbdb6b0c.woff')
|
|
59
|
+
format('woff'),
|
|
60
|
+
url('#{$base-url}/SkyscannerRelative-MediumItalic-226fe64c.ttf')
|
|
61
|
+
format('ttf');
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@font-face {
|
|
65
|
+
font-family: 'Skyscanner Relative';
|
|
66
|
+
font-style: normal;
|
|
67
|
+
font-weight: 700;
|
|
68
|
+
src:
|
|
69
|
+
url('#{$base-url}/SkyscannerRelative-Bold-8545937e.woff2') format('woff2'),
|
|
70
|
+
url('#{$base-url}/SkyscannerRelative-Bold-a099c9f7.woff') format('woff'),
|
|
71
|
+
url('#{$base-url}/SkyscannerRelative-Bold-ec4cc5a7.ttf') format('ttf');
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@font-face {
|
|
75
|
+
font-family: 'Skyscanner Relative';
|
|
76
|
+
font-style: italic;
|
|
77
|
+
font-weight: 700;
|
|
78
|
+
src:
|
|
79
|
+
url('#{$base-url}/SkyscannerRelative-BoldItalic-01b5d138.woff2')
|
|
80
|
+
format('woff2'),
|
|
81
|
+
url('#{$base-url}/SkyscannerRelative-BoldItalic-4d6d36e3.woff')
|
|
82
|
+
format('woff'),
|
|
83
|
+
url('#{$base-url}/SkyscannerRelative-BoldItalic-dc9284dc.ttf') format('ttf');
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@font-face {
|
|
87
|
+
font-family: 'Skyscanner Relative';
|
|
88
|
+
font-style: normal;
|
|
89
|
+
font-weight: 900;
|
|
90
|
+
src:
|
|
91
|
+
url('#{$base-url}/SkyscannerRelative-Black-bb3c9434.woff2') format('woff2'),
|
|
92
|
+
url('#{$base-url}/SkyscannerRelative-Black-bba2eb55.woff') format('woff'),
|
|
93
|
+
url('#{$base-url}/SkyscannerRelative-Black-314703cc.ttf') format('ttf');
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@font-face {
|
|
97
|
+
font-family: 'Skyscanner Relative';
|
|
98
|
+
font-style: italic;
|
|
99
|
+
font-weight: 900;
|
|
100
|
+
src:
|
|
101
|
+
url('#{$base-url}/SkyscannerRelative-BlackItalic-c2149c91.woff2')
|
|
102
|
+
format('woff2'),
|
|
103
|
+
url('#{$base-url}/SkyscannerRelative-BlackItalic-a34cd594.woff')
|
|
104
|
+
format('woff'),
|
|
105
|
+
url('#{$base-url}/SkyscannerRelative-BlackItalic-7e516ee5.ttf')
|
|
106
|
+
format('ttf');
|
|
107
|
+
}
|
|
@@ -15,17 +15,28 @@
|
|
|
15
15
|
* See the License for the specific language governing permissions and
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
if (
|
|
23
|
-
|
|
18
|
+
|
|
19
|
+
import './index.scss';
|
|
20
|
+
|
|
21
|
+
(() => {
|
|
22
|
+
if (typeof document === 'undefined') {
|
|
23
|
+
return;
|
|
24
24
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
|
|
26
|
+
const classNames = [];
|
|
27
|
+
|
|
28
|
+
// touch support
|
|
29
|
+
classNames.push(
|
|
30
|
+
'ontouchstart' in window ||
|
|
31
|
+
(window.DocumentTouch && document instanceof DocumentTouch) // eslint-disable-line no-undef
|
|
32
|
+
? 'touch-support'
|
|
33
|
+
: 'no-touch-support',
|
|
34
|
+
);
|
|
35
|
+
|
|
36
|
+
// add more feature tests here...
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
document.documentElement.className += ` ${classNames
|
|
40
|
+
.map((className) => `bpk-${className}`)
|
|
41
|
+
.join(' ')}`;
|
|
42
|
+
})();
|
|
@@ -0,0 +1,76 @@
|
|
|
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 '~normalize.css';
|
|
20
|
+
@import '../bpk-mixins/index.scss';
|
|
21
|
+
|
|
22
|
+
// stylelint-disable-next-line selector-max-type
|
|
23
|
+
html {
|
|
24
|
+
font-size: $bpk-font-size-root;
|
|
25
|
+
box-sizing: border-box;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
* {
|
|
29
|
+
box-sizing: inherit;
|
|
30
|
+
|
|
31
|
+
&::before,
|
|
32
|
+
&::after {
|
|
33
|
+
box-sizing: inherit;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* stylelint-disable selector-class-pattern */
|
|
38
|
+
body {
|
|
39
|
+
color: $bpk-font-color-base;
|
|
40
|
+
font-family: $bpk-font-family-base;
|
|
41
|
+
font-size: $bpk-font-size-base;
|
|
42
|
+
line-height: 1.3rem; /* stylelint-disable-line scale-unlimited/declaration-strict-value */
|
|
43
|
+
|
|
44
|
+
:global(&.scaffold-font-size) {
|
|
45
|
+
font-size: 13px; /* stylelint-disable-line unit-disallowed-list, scale-unlimited/declaration-strict-value */
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:global(&.enable-font-smoothing) {
|
|
49
|
+
-webkit-font-smoothing: antialiased;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:global(.hidden),
|
|
54
|
+
:global(.hide) {
|
|
55
|
+
@include bpk-hidden;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
:global(.visuallyhidden),
|
|
59
|
+
:global(.visually-hidden) {
|
|
60
|
+
@include bpk-visually-hidden;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
:global(.visuallyhidden.focusable),
|
|
64
|
+
:global(.visually-hidden.focusable) {
|
|
65
|
+
@include bpk-visually-hidden--focusable;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
:global(.invisible) {
|
|
69
|
+
@include bpk-invisible;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:global(.clearfix) {
|
|
73
|
+
@include bpk-clearfix;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/* stylelint-enable */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyscanner/backpack-web",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "28.0.0",
|
|
4
4
|
"description": "Backpack Design System web library",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,11 +24,10 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@popperjs/core": "^2.11.5",
|
|
26
26
|
"@react-google-maps/api": "^2.12.0",
|
|
27
|
-
"@skyscanner/bpk-foundations-web": "^
|
|
28
|
-
"@skyscanner/bpk-svgs": "^
|
|
27
|
+
"@skyscanner/bpk-foundations-web": "^17.0.0",
|
|
28
|
+
"@skyscanner/bpk-svgs": "^18.0.0",
|
|
29
29
|
"a11y-focus-scope": "^1.1.3",
|
|
30
30
|
"a11y-focus-store": "^1.0.0",
|
|
31
|
-
"bpk-mixins": "^41.2.1",
|
|
32
31
|
"d3-path": "^2.0.0",
|
|
33
32
|
"d3-scale": "^4.0.2",
|
|
34
33
|
"date-fns": "^2.21.1",
|
|
@@ -36,6 +35,7 @@
|
|
|
36
35
|
"lodash": "^4.17.20",
|
|
37
36
|
"lodash.clamp": "^4.0.3",
|
|
38
37
|
"lodash.debounce": "^4.0.8",
|
|
38
|
+
"normalize.css": "4.2.0",
|
|
39
39
|
"object-assign": "^4.1.1",
|
|
40
40
|
"prop-types": "^15.7.2",
|
|
41
41
|
"react-autosuggest": "^9.4.3",
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
"react-window": "^1.8.7"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
+
"node-sass": ">=4.12.0",
|
|
49
50
|
"react": "^17.0.2",
|
|
50
51
|
"react-dom": "^17.0.2"
|
|
51
52
|
}
|
|
@@ -1,69 +0,0 @@
|
|
|
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 { cssModules } from "../../bpk-react-utils";
|
|
20
|
-
import BpkText, { TEXT_STYLES } from "../../bpk-component-text";
|
|
21
|
-
import BpkNudger from "../../bpk-component-nudger";
|
|
22
|
-
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
23
|
-
import BpkLabel from "../../bpk-component-label";
|
|
24
|
-
import STYLES from "./BpkNudgerRow.module.css";
|
|
25
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
26
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
27
|
-
const getClassName = cssModules(STYLES);
|
|
28
|
-
const BpkNudgerRow = ({
|
|
29
|
-
className = null,
|
|
30
|
-
decreaseButtonLabel,
|
|
31
|
-
increaseButtonLabel,
|
|
32
|
-
max,
|
|
33
|
-
min,
|
|
34
|
-
nudgerId,
|
|
35
|
-
onChange,
|
|
36
|
-
subtitle,
|
|
37
|
-
title,
|
|
38
|
-
value
|
|
39
|
-
}) => {
|
|
40
|
-
const classNames = getClassName('bpk-nudger-row', className);
|
|
41
|
-
return /*#__PURE__*/_jsxs("div", {
|
|
42
|
-
className: classNames,
|
|
43
|
-
children: [/*#__PURE__*/_jsx(BpkLabel, {
|
|
44
|
-
htmlFor: nudgerId,
|
|
45
|
-
children: /*#__PURE__*/_jsxs("span", {
|
|
46
|
-
// For a11y on IOS, role='text' forces label to be read in full. More info: https://axesslab.com/text-splitting/
|
|
47
|
-
// eslint-disable-next-line jsx-a11y/aria-role
|
|
48
|
-
role: "text",
|
|
49
|
-
className: getClassName('bpk-nudger-row__title-subtitle'),
|
|
50
|
-
children: [/*#__PURE__*/_jsx(BpkText, {
|
|
51
|
-
textStyle: TEXT_STYLES.heading5,
|
|
52
|
-
children: title
|
|
53
|
-
}), subtitle && /*#__PURE__*/_jsx(BpkText, {
|
|
54
|
-
className: getClassName('bpk-nudger-row__subtitle'),
|
|
55
|
-
children: subtitle
|
|
56
|
-
})]
|
|
57
|
-
})
|
|
58
|
-
}), /*#__PURE__*/_jsx(BpkNudger, {
|
|
59
|
-
id: nudgerId,
|
|
60
|
-
decreaseButtonLabel: decreaseButtonLabel,
|
|
61
|
-
increaseButtonLabel: increaseButtonLabel,
|
|
62
|
-
min: min,
|
|
63
|
-
max: max,
|
|
64
|
-
onChange: onChange,
|
|
65
|
-
value: value
|
|
66
|
-
})]
|
|
67
|
-
});
|
|
68
|
-
};
|
|
69
|
-
export default BpkNudgerRow;
|