@skyscanner/backpack-web 25.8.4 → 26.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/bpk-component-flare/src/corner-radius.d.ts +6 -0
- package/bpk-component-flare/src/pointer.d.ts +6 -0
- package/bpk-component-icon/lg/accessibility.js +1 -0
- package/bpk-component-icon/lg/account--add.js +1 -0
- package/bpk-component-icon/lg/account--female.js +1 -0
- package/bpk-component-icon/lg/account--id-card.js +1 -0
- package/bpk-component-icon/lg/account--name.js +1 -0
- package/bpk-component-icon/lg/account--permit.js +1 -0
- package/bpk-component-icon/lg/account-circle.js +1 -0
- package/bpk-component-icon/lg/account.js +1 -0
- package/bpk-component-icon/lg/add-circle.js +1 -0
- package/bpk-component-icon/lg/adult.js +1 -0
- package/bpk-component-icon/lg/ai.js +1 -0
- package/bpk-component-icon/lg/aircon.js +1 -0
- package/bpk-component-icon/lg/aircraft.js +1 -0
- package/bpk-component-icon/lg/airline--multiple.js +1 -0
- package/bpk-component-icon/lg/airline.js +1 -0
- package/bpk-component-icon/lg/airports.js +1 -0
- package/bpk-component-icon/lg/alert--active.js +1 -0
- package/bpk-component-icon/lg/alert--add.js +1 -0
- package/bpk-component-icon/lg/alert--expired.js +1 -0
- package/bpk-component-icon/lg/alert--remove.js +1 -0
- package/bpk-component-icon/lg/arrow-down.js +1 -0
- package/bpk-component-icon/lg/arrow-left.js +1 -0
- package/bpk-component-icon/lg/arrow-right.js +1 -0
- package/bpk-component-icon/lg/arrow-up.js +1 -0
- package/bpk-component-icon/lg/award.js +1 -0
- package/bpk-component-icon/lg/baby-carriage.js +1 -0
- package/bpk-component-icon/lg/baggage--add.js +1 -0
- package/bpk-component-icon/lg/baggage--remove.js +1 -0
- package/bpk-component-icon/lg/baggage-cabin-add.js +1 -0
- package/bpk-component-icon/lg/baggage-cabin-not-included.js +1 -0
- package/bpk-component-icon/lg/baggage-cabin.js +1 -0
- package/bpk-component-icon/lg/baggage-checked-add.js +1 -0
- package/bpk-component-icon/lg/baggage-checked-not-included.js +1 -0
- package/bpk-component-icon/lg/baggage-checked.js +1 -0
- package/bpk-component-icon/lg/baggage-cross.js +1 -0
- package/bpk-component-icon/lg/baggage-generic.js +1 -0
- package/bpk-component-icon/lg/baggage-tick.js +1 -0
- package/bpk-component-icon/lg/baggage.js +1 -0
- package/bpk-component-icon/lg/bar.js +1 -0
- package/bpk-component-icon/lg/beach.js +1 -0
- package/bpk-component-icon/lg/beer.js +1 -0
- package/bpk-component-icon/lg/breakfast-cross.js +1 -0
- package/bpk-component-icon/lg/breakfast-tick.js +1 -0
- package/bpk-component-icon/lg/bus.js +1 -0
- package/bpk-component-icon/lg/business.js +1 -0
- package/bpk-component-icon/lg/cafe.js +1 -0
- package/bpk-component-icon/lg/calendar.js +1 -0
- package/bpk-component-icon/lg/call-back.js +1 -0
- package/bpk-component-icon/lg/camera.js +1 -0
- package/bpk-component-icon/lg/camper-van.js +1 -0
- package/bpk-component-icon/lg/car-door.js +1 -0
- package/bpk-component-icon/lg/car-wash.js +1 -0
- package/bpk-component-icon/lg/cars-flexible.js +1 -0
- package/bpk-component-icon/lg/cars.js +1 -0
- package/bpk-component-icon/lg/center-location.js +1 -0
- package/bpk-component-icon/lg/chart.js +1 -0
- package/bpk-component-icon/lg/chauffeur.js +1 -0
- package/bpk-component-icon/lg/chevron-down.js +1 -0
- package/bpk-component-icon/lg/chevron-left.js +1 -0
- package/bpk-component-icon/lg/chevron-right.js +1 -0
- package/bpk-component-icon/lg/chevron-up.js +1 -0
- package/bpk-component-icon/lg/child-seat.js +1 -0
- package/bpk-component-icon/lg/child.js +1 -0
- package/bpk-component-icon/lg/city-center.js +1 -0
- package/bpk-component-icon/lg/city.js +1 -0
- package/bpk-component-icon/lg/clean-policy.js +1 -0
- package/bpk-component-icon/lg/clean.js +1 -0
- package/bpk-component-icon/lg/cleaning-medical.js +1 -0
- package/bpk-component-icon/lg/cloakroom.js +1 -0
- package/bpk-component-icon/lg/close-circle.js +1 -0
- package/bpk-component-icon/lg/close.js +1 -0
- package/bpk-component-icon/lg/collapse.js +1 -0
- package/bpk-component-icon/lg/content--copy.js +1 -0
- package/bpk-component-icon/lg/content--event.js +1 -0
- package/bpk-component-icon/lg/content--guides.js +1 -0
- package/bpk-component-icon/lg/currency.js +1 -0
- package/bpk-component-icon/lg/data.js +1 -0
- package/bpk-component-icon/lg/deals.js +1 -0
- package/bpk-component-icon/lg/depart.js +1 -0
- package/bpk-component-icon/lg/device-mid.js +1 -0
- package/bpk-component-icon/lg/device-wide.js +1 -0
- package/bpk-component-icon/lg/direct.js +1 -0
- package/bpk-component-icon/lg/document-csv.js +1 -0
- package/bpk-component-icon/lg/document-pdf.js +1 -0
- package/bpk-component-icon/lg/download.js +1 -0
- package/bpk-component-icon/lg/duration.js +1 -0
- package/bpk-component-icon/lg/eco-leaf.js +1 -0
- package/bpk-component-icon/lg/edit.js +1 -0
- package/bpk-component-icon/lg/education.js +1 -0
- package/bpk-component-icon/lg/electric.js +1 -0
- package/bpk-component-icon/lg/end-call.js +1 -0
- package/bpk-component-icon/lg/estimated.js +1 -0
- package/bpk-component-icon/lg/exclamation-circle.js +1 -0
- package/bpk-component-icon/lg/exclamation.js +1 -0
- package/bpk-component-icon/lg/expand.js +1 -0
- package/bpk-component-icon/lg/explore.js +1 -0
- package/bpk-component-icon/lg/face--blank.js +1 -0
- package/bpk-component-icon/lg/face--happy.js +1 -0
- package/bpk-component-icon/lg/face--sad.js +1 -0
- package/bpk-component-icon/lg/face-id.js +1 -0
- package/bpk-component-icon/lg/face-mask.js +1 -0
- package/bpk-component-icon/lg/family.js +1 -0
- package/bpk-component-icon/lg/fast-track.js +1 -0
- package/bpk-component-icon/lg/fast-train.js +1 -0
- package/bpk-component-icon/lg/filter.js +1 -0
- package/bpk-component-icon/lg/fingerprint.js +1 -0
- package/bpk-component-icon/lg/flag.js +1 -0
- package/bpk-component-icon/lg/flask.js +1 -0
- package/bpk-component-icon/lg/flight-flexible.js +1 -0
- package/bpk-component-icon/lg/flight-landing.js +1 -0
- package/bpk-component-icon/lg/flight-takeoff.js +1 -0
- package/bpk-component-icon/lg/flight.js +1 -0
- package/bpk-component-icon/lg/food.js +1 -0
- package/bpk-component-icon/lg/gears-automatic-circle.js +1 -0
- package/bpk-component-icon/lg/gears-automatic.js +1 -0
- package/bpk-component-icon/lg/gears-manual-circle.js +1 -0
- package/bpk-component-icon/lg/gears-manual.js +1 -0
- package/bpk-component-icon/lg/globe.js +1 -0
- package/bpk-component-icon/lg/grid-layout.js +1 -0
- package/bpk-component-icon/lg/headset.js +1 -0
- package/bpk-component-icon/lg/health-fitness.js +1 -0
- package/bpk-component-icon/lg/heart--outline.js +1 -0
- package/bpk-component-icon/lg/heart.js +1 -0
- package/bpk-component-icon/lg/help-circle.js +1 -0
- package/bpk-component-icon/lg/help.js +1 -0
- package/bpk-component-icon/lg/hide.js +1 -0
- package/bpk-component-icon/lg/hotel-flexible.js +1 -0
- package/bpk-component-icon/lg/hotels--disabled-facilities.js +1 -0
- package/bpk-component-icon/lg/hotels--jacuzzi.js +1 -0
- package/bpk-component-icon/lg/hotels--pets-allowed.js +1 -0
- package/bpk-component-icon/lg/hotels--smoking.js +1 -0
- package/bpk-component-icon/lg/hotels.js +1 -0
- package/bpk-component-icon/lg/infant.js +1 -0
- package/bpk-component-icon/lg/information--language-alert.js +1 -0
- package/bpk-component-icon/lg/information--language-question.js +1 -0
- package/bpk-component-icon/lg/information--language.js +1 -0
- package/bpk-component-icon/lg/information-circle.js +1 -0
- package/bpk-component-icon/lg/information.js +1 -0
- package/bpk-component-icon/lg/insurance.js +1 -0
- package/bpk-component-icon/lg/key.js +1 -0
- package/bpk-component-icon/lg/keypad.js +1 -0
- package/bpk-component-icon/lg/landmark.js +1 -0
- package/bpk-component-icon/lg/language.js +1 -0
- package/bpk-component-icon/lg/legroom--extra.js +1 -0
- package/bpk-component-icon/lg/legroom--normal.js +1 -0
- package/bpk-component-icon/lg/legroom--reduced.js +1 -0
- package/bpk-component-icon/lg/leisure.js +1 -0
- package/bpk-component-icon/lg/lightning.js +1 -0
- package/bpk-component-icon/lg/list.js +1 -0
- package/bpk-component-icon/lg/location.js +1 -0
- package/bpk-component-icon/lg/lock.js +1 -0
- package/bpk-component-icon/lg/logout.js +1 -0
- package/bpk-component-icon/lg/long-arrow-down.js +1 -0
- package/bpk-component-icon/lg/long-arrow-left.js +1 -0
- package/bpk-component-icon/lg/long-arrow-right.js +1 -0
- package/bpk-component-icon/lg/long-arrow-up.js +1 -0
- package/bpk-component-icon/lg/lounge.js +1 -0
- package/bpk-component-icon/lg/luggageall.js +1 -0
- package/bpk-component-icon/lg/mail.js +1 -0
- package/bpk-component-icon/lg/map.js +1 -0
- package/bpk-component-icon/lg/meal.js +1 -0
- package/bpk-component-icon/lg/media.js +1 -0
- package/bpk-component-icon/lg/menu--horizontal.js +1 -0
- package/bpk-component-icon/lg/menu--vertical.js +1 -0
- package/bpk-component-icon/lg/menu.js +1 -0
- package/bpk-component-icon/lg/mileage.js +1 -0
- package/bpk-component-icon/lg/minus.js +1 -0
- package/bpk-component-icon/lg/mobile.js +1 -0
- package/bpk-component-icon/lg/money.js +1 -0
- package/bpk-component-icon/lg/multiple-bookings.js +1 -0
- package/bpk-component-icon/lg/music.js +1 -0
- package/bpk-component-icon/lg/mute.js +1 -0
- package/bpk-component-icon/lg/native-android--back.js +1 -0
- package/bpk-component-icon/lg/native-android--close.js +1 -0
- package/bpk-component-icon/lg/native-android--forward.js +1 -0
- package/bpk-component-icon/lg/native-ios-close.js +1 -0
- package/bpk-component-icon/lg/navigation.js +1 -0
- package/bpk-component-icon/lg/new-window.js +1 -0
- package/bpk-component-icon/lg/news.js +1 -0
- package/bpk-component-icon/lg/night.js +1 -0
- package/bpk-component-icon/lg/not-allowed.js +1 -0
- package/bpk-component-icon/lg/onsen.js +1 -0
- package/bpk-component-icon/lg/origin.js +1 -0
- package/bpk-component-icon/lg/paid.js +1 -0
- package/bpk-component-icon/lg/paperclip.js +1 -0
- package/bpk-component-icon/lg/parking.js +1 -0
- package/bpk-component-icon/lg/passport.js +1 -0
- package/bpk-component-icon/lg/pause.js +1 -0
- package/bpk-component-icon/lg/payment-card.js +1 -0
- package/bpk-component-icon/lg/petrol.js +1 -0
- package/bpk-component-icon/lg/phone-call.js +1 -0
- package/bpk-component-icon/lg/picture.js +1 -0
- package/bpk-component-icon/lg/pin.js +1 -0
- package/bpk-component-icon/lg/plane-seat.js +1 -0
- package/bpk-component-icon/lg/play.js +1 -0
- package/bpk-component-icon/lg/plus.js +1 -0
- package/bpk-component-icon/lg/policy.js +1 -0
- package/bpk-component-icon/lg/powerplug.js +1 -0
- package/bpk-component-icon/lg/ppe.js +1 -0
- package/bpk-component-icon/lg/price-alerts.js +1 -0
- package/bpk-component-icon/lg/price-tag.js +1 -0
- package/bpk-component-icon/lg/print.js +1 -0
- package/bpk-component-icon/lg/recent-searches.js +1 -0
- package/bpk-component-icon/lg/redo.js +1 -0
- package/bpk-component-icon/lg/refresh.js +1 -0
- package/bpk-component-icon/lg/return.js +1 -0
- package/bpk-component-icon/lg/room.js +1 -0
- package/bpk-component-icon/lg/scales.js +1 -0
- package/bpk-component-icon/lg/search.js +1 -0
- package/bpk-component-icon/lg/self-service.js +1 -0
- package/bpk-component-icon/lg/send-message.js +1 -0
- package/bpk-component-icon/lg/services.js +1 -0
- package/bpk-component-icon/lg/settings.js +1 -0
- package/bpk-component-icon/lg/share--android.js +1 -0
- package/bpk-component-icon/lg/share--ios.js +1 -0
- package/bpk-component-icon/lg/share.js +1 -0
- package/bpk-component-icon/lg/single-booking.js +1 -0
- package/bpk-component-icon/lg/social-distancing.js +1 -0
- package/bpk-component-icon/lg/social-like.js +1 -0
- package/bpk-component-icon/lg/sort-down.js +1 -0
- package/bpk-component-icon/lg/sort-up.js +1 -0
- package/bpk-component-icon/lg/sort.js +1 -0
- package/bpk-component-icon/lg/speaker.js +1 -0
- package/bpk-component-icon/lg/star-half.js +1 -0
- package/bpk-component-icon/lg/star-outline.js +1 -0
- package/bpk-component-icon/lg/star.js +1 -0
- package/bpk-component-icon/lg/stops.js +1 -0
- package/bpk-component-icon/lg/swap--horizontal.js +1 -0
- package/bpk-component-icon/lg/swap--vertical.js +1 -0
- package/bpk-component-icon/lg/swap.js +1 -0
- package/bpk-component-icon/lg/taxi.js +1 -0
- package/bpk-component-icon/lg/thumbs-down.js +1 -0
- package/bpk-component-icon/lg/thumbs-up.js +1 -0
- package/bpk-component-icon/lg/tick-circle.js +1 -0
- package/bpk-component-icon/lg/tick.js +1 -0
- package/bpk-component-icon/lg/ticket-flexible.js +1 -0
- package/bpk-component-icon/lg/ticket.js +1 -0
- package/bpk-component-icon/lg/time.js +1 -0
- package/bpk-component-icon/lg/toilets.js +1 -0
- package/bpk-component-icon/lg/train.js +1 -0
- package/bpk-component-icon/lg/transmission-automatic.js +1 -0
- package/bpk-component-icon/lg/transmission-manual.js +1 -0
- package/bpk-component-icon/lg/trash.js +1 -0
- package/bpk-component-icon/lg/trend--down.js +1 -0
- package/bpk-component-icon/lg/trend--steady.js +1 -0
- package/bpk-component-icon/lg/trend--will-rise.js +1 -0
- package/bpk-component-icon/lg/trend.js +1 -0
- package/bpk-component-icon/lg/trips.js +1 -0
- package/bpk-component-icon/lg/undo.js +1 -0
- package/bpk-component-icon/lg/unlock.js +1 -0
- package/bpk-component-icon/lg/unmute.js +1 -0
- package/bpk-component-icon/lg/upgrade.js +1 -0
- package/bpk-component-icon/lg/upload.js +1 -0
- package/bpk-component-icon/lg/use-location.js +1 -0
- package/bpk-component-icon/lg/view.js +1 -0
- package/bpk-component-icon/lg/virus.js +1 -0
- package/bpk-component-icon/lg/wallet.js +1 -0
- package/bpk-component-icon/lg/weather--clear.js +1 -0
- package/bpk-component-icon/lg/weather--cloudy.js +1 -0
- package/bpk-component-icon/lg/weather--fog.js +1 -0
- package/bpk-component-icon/lg/weather--partly-cloudy.js +1 -0
- package/bpk-component-icon/lg/weather--rain.js +1 -0
- package/bpk-component-icon/lg/weather--snow.js +1 -0
- package/bpk-component-icon/lg/weather--thunderstorm.js +1 -0
- package/bpk-component-icon/lg/weather--tornado.js +1 -0
- package/bpk-component-icon/lg/weather--wind.js +1 -0
- package/bpk-component-icon/lg/weather.js +1 -0
- package/bpk-component-icon/lg/wifi.js +1 -0
- package/bpk-component-icon/lg/window--reduce.js +1 -0
- package/bpk-component-icon/lg/window.js +1 -0
- package/bpk-component-icon/lg/world--amer.js +1 -0
- package/bpk-component-icon/lg/world--apac.js +1 -0
- package/bpk-component-icon/lg/world--emea.js +1 -0
- package/bpk-component-icon/sm/accessibility.js +1 -0
- package/bpk-component-icon/sm/account--add.js +1 -0
- package/bpk-component-icon/sm/account--female.js +1 -0
- package/bpk-component-icon/sm/account--id-card.js +1 -0
- package/bpk-component-icon/sm/account--name.js +1 -0
- package/bpk-component-icon/sm/account--permit.js +1 -0
- package/bpk-component-icon/sm/account-circle.js +1 -0
- package/bpk-component-icon/sm/account.js +1 -0
- package/bpk-component-icon/sm/add-circle.js +1 -0
- package/bpk-component-icon/sm/adult.js +1 -0
- package/bpk-component-icon/sm/ai.js +1 -0
- package/bpk-component-icon/sm/aircon.js +1 -0
- package/bpk-component-icon/sm/aircraft.js +1 -0
- package/bpk-component-icon/sm/airline--multiple.js +1 -0
- package/bpk-component-icon/sm/airline.js +1 -0
- package/bpk-component-icon/sm/airports.js +1 -0
- package/bpk-component-icon/sm/alert--active.js +1 -0
- package/bpk-component-icon/sm/alert--add.js +1 -0
- package/bpk-component-icon/sm/alert--expired.js +1 -0
- package/bpk-component-icon/sm/alert--remove.js +1 -0
- package/bpk-component-icon/sm/arrow-down.js +1 -0
- package/bpk-component-icon/sm/arrow-left.js +1 -0
- package/bpk-component-icon/sm/arrow-right.js +1 -0
- package/bpk-component-icon/sm/arrow-up.js +1 -0
- package/bpk-component-icon/sm/award.js +1 -0
- package/bpk-component-icon/sm/baby-carriage.js +1 -0
- package/bpk-component-icon/sm/baggage--add.js +1 -0
- package/bpk-component-icon/sm/baggage--remove.js +1 -0
- package/bpk-component-icon/sm/baggage-cabin-add.js +1 -0
- package/bpk-component-icon/sm/baggage-cabin-not-included.js +1 -0
- package/bpk-component-icon/sm/baggage-cabin.js +1 -0
- package/bpk-component-icon/sm/baggage-checked-add.js +1 -0
- package/bpk-component-icon/sm/baggage-checked-not-included.js +1 -0
- package/bpk-component-icon/sm/baggage-checked.js +1 -0
- package/bpk-component-icon/sm/baggage-cross.js +1 -0
- package/bpk-component-icon/sm/baggage-generic.js +1 -0
- package/bpk-component-icon/sm/baggage-tick.js +1 -0
- package/bpk-component-icon/sm/baggage.js +1 -0
- package/bpk-component-icon/sm/bar.js +1 -0
- package/bpk-component-icon/sm/beach.js +1 -0
- package/bpk-component-icon/sm/beer.js +1 -0
- package/bpk-component-icon/sm/breakfast-cross.js +1 -0
- package/bpk-component-icon/sm/breakfast-tick.js +1 -0
- package/bpk-component-icon/sm/bus.js +1 -0
- package/bpk-component-icon/sm/business.js +1 -0
- package/bpk-component-icon/sm/cafe.js +1 -0
- package/bpk-component-icon/sm/calendar.js +1 -0
- package/bpk-component-icon/sm/call-back.js +1 -0
- package/bpk-component-icon/sm/camera.js +1 -0
- package/bpk-component-icon/sm/camper-van.js +1 -0
- package/bpk-component-icon/sm/car-door.js +1 -0
- package/bpk-component-icon/sm/car-wash.js +1 -0
- package/bpk-component-icon/sm/cars-flexible.js +1 -0
- package/bpk-component-icon/sm/cars.js +1 -0
- package/bpk-component-icon/sm/center-location.js +1 -0
- package/bpk-component-icon/sm/chart.js +1 -0
- package/bpk-component-icon/sm/chauffeur.js +1 -0
- package/bpk-component-icon/sm/chevron-down.js +1 -0
- package/bpk-component-icon/sm/chevron-left.js +1 -0
- package/bpk-component-icon/sm/chevron-right.js +1 -0
- package/bpk-component-icon/sm/chevron-up.js +1 -0
- package/bpk-component-icon/sm/child-seat.js +1 -0
- package/bpk-component-icon/sm/child.js +1 -0
- package/bpk-component-icon/sm/city-center.js +1 -0
- package/bpk-component-icon/sm/city.js +1 -0
- package/bpk-component-icon/sm/clean-policy.js +1 -0
- package/bpk-component-icon/sm/clean.js +1 -0
- package/bpk-component-icon/sm/cleaning-medical.js +1 -0
- package/bpk-component-icon/sm/cloakroom.js +1 -0
- package/bpk-component-icon/sm/close-circle.js +1 -0
- package/bpk-component-icon/sm/close.js +1 -0
- package/bpk-component-icon/sm/collapse.js +1 -0
- package/bpk-component-icon/sm/content--copy.js +1 -0
- package/bpk-component-icon/sm/content--event.js +1 -0
- package/bpk-component-icon/sm/content--guides.js +1 -0
- package/bpk-component-icon/sm/currency.js +1 -0
- package/bpk-component-icon/sm/data.js +1 -0
- package/bpk-component-icon/sm/deals.js +1 -0
- package/bpk-component-icon/sm/depart.js +1 -0
- package/bpk-component-icon/sm/device-mid.js +1 -0
- package/bpk-component-icon/sm/device-wide.js +1 -0
- package/bpk-component-icon/sm/direct.js +1 -0
- package/bpk-component-icon/sm/document-csv.js +1 -0
- package/bpk-component-icon/sm/document-pdf.js +1 -0
- package/bpk-component-icon/sm/download.js +1 -0
- package/bpk-component-icon/sm/duration.js +1 -0
- package/bpk-component-icon/sm/eco-leaf.js +1 -0
- package/bpk-component-icon/sm/edit.js +1 -0
- package/bpk-component-icon/sm/education.js +1 -0
- package/bpk-component-icon/sm/electric.js +1 -0
- package/bpk-component-icon/sm/end-call.js +1 -0
- package/bpk-component-icon/sm/estimated.js +1 -0
- package/bpk-component-icon/sm/exclamation-circle.js +1 -0
- package/bpk-component-icon/sm/exclamation.js +1 -0
- package/bpk-component-icon/sm/expand.js +1 -0
- package/bpk-component-icon/sm/explore.js +1 -0
- package/bpk-component-icon/sm/face--blank.js +1 -0
- package/bpk-component-icon/sm/face--happy.js +1 -0
- package/bpk-component-icon/sm/face--sad.js +1 -0
- package/bpk-component-icon/sm/face-id.js +1 -0
- package/bpk-component-icon/sm/face-mask.js +1 -0
- package/bpk-component-icon/sm/family.js +1 -0
- package/bpk-component-icon/sm/fast-track.js +1 -0
- package/bpk-component-icon/sm/fast-train.js +1 -0
- package/bpk-component-icon/sm/filter.js +1 -0
- package/bpk-component-icon/sm/fingerprint.js +1 -0
- package/bpk-component-icon/sm/flag.js +1 -0
- package/bpk-component-icon/sm/flask.js +1 -0
- package/bpk-component-icon/sm/flight-flexible.js +1 -0
- package/bpk-component-icon/sm/flight-landing.js +1 -0
- package/bpk-component-icon/sm/flight-takeoff.js +1 -0
- package/bpk-component-icon/sm/flight.js +1 -0
- package/bpk-component-icon/sm/food.js +1 -0
- package/bpk-component-icon/sm/gears-automatic-circle.js +1 -0
- package/bpk-component-icon/sm/gears-automatic.js +1 -0
- package/bpk-component-icon/sm/gears-manual-circle.js +1 -0
- package/bpk-component-icon/sm/gears-manual.js +1 -0
- package/bpk-component-icon/sm/globe.js +1 -0
- package/bpk-component-icon/sm/grid-layout.js +1 -0
- package/bpk-component-icon/sm/headset.js +1 -0
- package/bpk-component-icon/sm/health-fitness.js +1 -0
- package/bpk-component-icon/sm/heart--outline.js +1 -0
- package/bpk-component-icon/sm/heart.js +1 -0
- package/bpk-component-icon/sm/help-circle.js +1 -0
- package/bpk-component-icon/sm/help.js +1 -0
- package/bpk-component-icon/sm/hide.js +1 -0
- package/bpk-component-icon/sm/hotel-flexible.js +1 -0
- package/bpk-component-icon/sm/hotels--disabled-facilities.js +1 -0
- package/bpk-component-icon/sm/hotels--jacuzzi.js +1 -0
- package/bpk-component-icon/sm/hotels--pets-allowed.js +1 -0
- package/bpk-component-icon/sm/hotels--smoking.js +1 -0
- package/bpk-component-icon/sm/hotels.js +1 -0
- package/bpk-component-icon/sm/infant.js +1 -0
- package/bpk-component-icon/sm/information--language-alert.js +1 -0
- package/bpk-component-icon/sm/information--language-question.js +1 -0
- package/bpk-component-icon/sm/information--language.js +1 -0
- package/bpk-component-icon/sm/information-circle.js +1 -0
- package/bpk-component-icon/sm/information.js +1 -0
- package/bpk-component-icon/sm/insurance.js +1 -0
- package/bpk-component-icon/sm/key.js +1 -0
- package/bpk-component-icon/sm/keypad.js +1 -0
- package/bpk-component-icon/sm/landmark.js +1 -0
- package/bpk-component-icon/sm/language.js +1 -0
- package/bpk-component-icon/sm/legroom--extra.js +1 -0
- package/bpk-component-icon/sm/legroom--normal.js +1 -0
- package/bpk-component-icon/sm/legroom--reduced.js +1 -0
- package/bpk-component-icon/sm/leisure.js +1 -0
- package/bpk-component-icon/sm/lightning.js +1 -0
- package/bpk-component-icon/sm/list.js +1 -0
- package/bpk-component-icon/sm/location.js +1 -0
- package/bpk-component-icon/sm/lock.js +1 -0
- package/bpk-component-icon/sm/logout.js +1 -0
- package/bpk-component-icon/sm/long-arrow-down.js +1 -0
- package/bpk-component-icon/sm/long-arrow-left.js +1 -0
- package/bpk-component-icon/sm/long-arrow-right.js +1 -0
- package/bpk-component-icon/sm/long-arrow-up.js +1 -0
- package/bpk-component-icon/sm/lounge.js +1 -0
- package/bpk-component-icon/sm/luggageall.js +1 -0
- package/bpk-component-icon/sm/mail.js +1 -0
- package/bpk-component-icon/sm/map.js +1 -0
- package/bpk-component-icon/sm/meal.js +1 -0
- package/bpk-component-icon/sm/media.js +1 -0
- package/bpk-component-icon/sm/menu--horizontal.js +1 -0
- package/bpk-component-icon/sm/menu--vertical.js +1 -0
- package/bpk-component-icon/sm/menu.js +1 -0
- package/bpk-component-icon/sm/mileage.js +1 -0
- package/bpk-component-icon/sm/minus.js +1 -0
- package/bpk-component-icon/sm/mobile.js +1 -0
- package/bpk-component-icon/sm/money.js +1 -0
- package/bpk-component-icon/sm/multiple-bookings.js +1 -0
- package/bpk-component-icon/sm/music.js +1 -0
- package/bpk-component-icon/sm/mute.js +1 -0
- package/bpk-component-icon/sm/native-android--back.js +1 -0
- package/bpk-component-icon/sm/native-android--close.js +1 -0
- package/bpk-component-icon/sm/native-android--forward.js +1 -0
- package/bpk-component-icon/sm/native-ios-close.js +1 -0
- package/bpk-component-icon/sm/navigation.js +1 -0
- package/bpk-component-icon/sm/new-window.js +1 -0
- package/bpk-component-icon/sm/news.js +1 -0
- package/bpk-component-icon/sm/night.js +1 -0
- package/bpk-component-icon/sm/not-allowed.js +1 -0
- package/bpk-component-icon/sm/onsen.js +1 -0
- package/bpk-component-icon/sm/origin.js +1 -0
- package/bpk-component-icon/sm/paid.js +1 -0
- package/bpk-component-icon/sm/paperclip.js +1 -0
- package/bpk-component-icon/sm/parking.js +1 -0
- package/bpk-component-icon/sm/passport.js +1 -0
- package/bpk-component-icon/sm/pause.js +1 -0
- package/bpk-component-icon/sm/payment-card.js +1 -0
- package/bpk-component-icon/sm/petrol.js +1 -0
- package/bpk-component-icon/sm/phone-call.js +1 -0
- package/bpk-component-icon/sm/picture.js +1 -0
- package/bpk-component-icon/sm/pin.js +1 -0
- package/bpk-component-icon/sm/plane-seat.js +1 -0
- package/bpk-component-icon/sm/play.js +1 -0
- package/bpk-component-icon/sm/plus.js +1 -0
- package/bpk-component-icon/sm/policy.js +1 -0
- package/bpk-component-icon/sm/powerplug.js +1 -0
- package/bpk-component-icon/sm/ppe.js +1 -0
- package/bpk-component-icon/sm/price-alerts.js +1 -0
- package/bpk-component-icon/sm/price-tag.js +1 -0
- package/bpk-component-icon/sm/print.js +1 -0
- package/bpk-component-icon/sm/recent-searches.js +1 -0
- package/bpk-component-icon/sm/redo.js +1 -0
- package/bpk-component-icon/sm/refresh.js +1 -0
- package/bpk-component-icon/sm/return.js +1 -0
- package/bpk-component-icon/sm/room.js +1 -0
- package/bpk-component-icon/sm/scales.js +1 -0
- package/bpk-component-icon/sm/search.js +1 -0
- package/bpk-component-icon/sm/self-service.js +1 -0
- package/bpk-component-icon/sm/send-message.js +1 -0
- package/bpk-component-icon/sm/services.js +1 -0
- package/bpk-component-icon/sm/settings.js +1 -0
- package/bpk-component-icon/sm/share--android.js +1 -0
- package/bpk-component-icon/sm/share--ios.js +1 -0
- package/bpk-component-icon/sm/share.js +1 -0
- package/bpk-component-icon/sm/single-booking.js +1 -0
- package/bpk-component-icon/sm/social-distancing.js +1 -0
- package/bpk-component-icon/sm/social-like.js +1 -0
- package/bpk-component-icon/sm/sort-down.js +1 -0
- package/bpk-component-icon/sm/sort-up.js +1 -0
- package/bpk-component-icon/sm/sort.js +1 -0
- package/bpk-component-icon/sm/speaker.js +1 -0
- package/bpk-component-icon/sm/star-half.js +1 -0
- package/bpk-component-icon/sm/star-outline.js +1 -0
- package/bpk-component-icon/sm/star.js +1 -0
- package/bpk-component-icon/sm/stops.js +1 -0
- package/bpk-component-icon/sm/swap--horizontal.js +1 -0
- package/bpk-component-icon/sm/swap--vertical.js +1 -0
- package/bpk-component-icon/sm/swap.js +1 -0
- package/bpk-component-icon/sm/taxi.js +1 -0
- package/bpk-component-icon/sm/thumbs-down.js +1 -0
- package/bpk-component-icon/sm/thumbs-up.js +1 -0
- package/bpk-component-icon/sm/tick-circle.js +1 -0
- package/bpk-component-icon/sm/tick.js +1 -0
- package/bpk-component-icon/sm/ticket-flexible.js +1 -0
- package/bpk-component-icon/sm/ticket.js +1 -0
- package/bpk-component-icon/sm/time.js +1 -0
- package/bpk-component-icon/sm/toilets.js +1 -0
- package/bpk-component-icon/sm/train.js +1 -0
- package/bpk-component-icon/sm/transmission-automatic.js +1 -0
- package/bpk-component-icon/sm/transmission-manual.js +1 -0
- package/bpk-component-icon/sm/trash.js +1 -0
- package/bpk-component-icon/sm/trend--down.js +1 -0
- package/bpk-component-icon/sm/trend--steady.js +1 -0
- package/bpk-component-icon/sm/trend--will-rise.js +1 -0
- package/bpk-component-icon/sm/trend.js +1 -0
- package/bpk-component-icon/sm/trips.js +1 -0
- package/bpk-component-icon/sm/undo.js +1 -0
- package/bpk-component-icon/sm/unlock.js +1 -0
- package/bpk-component-icon/sm/unmute.js +1 -0
- package/bpk-component-icon/sm/upgrade.js +1 -0
- package/bpk-component-icon/sm/upload.js +1 -0
- package/bpk-component-icon/sm/use-location.js +1 -0
- package/bpk-component-icon/sm/view.js +1 -0
- package/bpk-component-icon/sm/virus.js +1 -0
- package/bpk-component-icon/sm/wallet.js +1 -0
- package/bpk-component-icon/sm/weather--clear.js +1 -0
- package/bpk-component-icon/sm/weather--cloudy.js +1 -0
- package/bpk-component-icon/sm/weather--fog.js +1 -0
- package/bpk-component-icon/sm/weather--partly-cloudy.js +1 -0
- package/bpk-component-icon/sm/weather--rain.js +1 -0
- package/bpk-component-icon/sm/weather--snow.js +1 -0
- package/bpk-component-icon/sm/weather--thunderstorm.js +1 -0
- package/bpk-component-icon/sm/weather--tornado.js +1 -0
- package/bpk-component-icon/sm/weather--wind.js +1 -0
- package/bpk-component-icon/sm/weather.js +1 -0
- package/bpk-component-icon/sm/wifi.js +1 -0
- package/bpk-component-icon/sm/window--reduce.js +1 -0
- package/bpk-component-icon/sm/window.js +1 -0
- package/bpk-component-icon/sm/world--amer.js +1 -0
- package/bpk-component-icon/sm/world--apac.js +1 -0
- package/bpk-component-icon/sm/world--emea.js +1 -0
- package/bpk-mixins/_index.scss +35 -0
- package/{bpk-storybook-utils/src/BpkStorybookUtils.js → bpk-mixins/sass-functions.js} +11 -13
- package/{bpk-storybook-utils/index.js → bpk-mixins/src/_bonds.scss} +3 -7
- package/bpk-mixins/src/mixins/_badges.scss +238 -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 +568 -0
- package/bpk-mixins/src/mixins/_cards.scss +89 -0
- package/bpk-mixins/src/mixins/_chips.scss +234 -0
- package/bpk-mixins/src/mixins/_forms.scss +1045 -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-mixins/src/mixins/_shadows.scss +56 -0
- package/bpk-mixins/src/mixins/_svgs.scss +265 -0
- package/bpk-mixins/src/mixins/_typography.scss +1037 -0
- package/bpk-mixins/src/mixins/_utils.scss +249 -0
- package/bpk-stylesheets/base.css +20 -0
- package/bpk-stylesheets/base.js +1 -0
- package/bpk-stylesheets/font.css +18 -0
- package/{bpk-storybook-utils/src/BpkDarkExampleWrapper.module.css → bpk-stylesheets/font.js} +7 -6
- package/bpk-stylesheets/font.scss +107 -0
- package/bpk-stylesheets/index.js +42 -0
- package/bpk-stylesheets/index.scss +76 -0
- package/package.json +4 -3
- package/bpk-storybook-utils/src/BpkDarkExampleWrapper.js +0 -38
|
@@ -0,0 +1,568 @@
|
|
|
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
|
+
@import 'typography.scss';
|
|
21
|
+
|
|
22
|
+
////
|
|
23
|
+
/// @group buttons
|
|
24
|
+
////
|
|
25
|
+
|
|
26
|
+
/// Standard button.
|
|
27
|
+
///
|
|
28
|
+
/// @example scss
|
|
29
|
+
/// .selector {
|
|
30
|
+
/// @include bpk-button();
|
|
31
|
+
/// }
|
|
32
|
+
|
|
33
|
+
$bpk-spacing-v2: true;
|
|
34
|
+
|
|
35
|
+
@mixin bpk-button {
|
|
36
|
+
display: inline-block;
|
|
37
|
+
min-height: $bpk-button-height;
|
|
38
|
+
margin: 0;
|
|
39
|
+
padding: (6 * $bpk-one-pixel-rem) bpk-spacing-base();
|
|
40
|
+
border: 0;
|
|
41
|
+
border-radius: $bpk-button-border-radius;
|
|
42
|
+
text-align: center;
|
|
43
|
+
text-decoration: none;
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
vertical-align: middle;
|
|
46
|
+
user-select: none;
|
|
47
|
+
|
|
48
|
+
@include bpk-label-1;
|
|
49
|
+
@include bpk-themeable-property(
|
|
50
|
+
color,
|
|
51
|
+
--bpk-button-primary-text-color,
|
|
52
|
+
$bpk-text-on-dark-day
|
|
53
|
+
);
|
|
54
|
+
@include bpk-themeable-property(
|
|
55
|
+
background-color,
|
|
56
|
+
--bpk-button-primary-background-color,
|
|
57
|
+
$bpk-private-button-primary-normal-background-day
|
|
58
|
+
);
|
|
59
|
+
|
|
60
|
+
@include bpk-hover {
|
|
61
|
+
@include bpk-themeable-property(
|
|
62
|
+
color,
|
|
63
|
+
--bpk-button-primary-hover-text-color,
|
|
64
|
+
$bpk-text-on-dark-day
|
|
65
|
+
);
|
|
66
|
+
@include bpk-themeable-property(
|
|
67
|
+
background-color,
|
|
68
|
+
--bpk-button-primary-hover-background-color,
|
|
69
|
+
$bpk-private-button-primary-pressed-background-day
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&:active {
|
|
74
|
+
@include bpk-themeable-property(
|
|
75
|
+
color,
|
|
76
|
+
--bpk-button-primary-active-text-color,
|
|
77
|
+
$bpk-text-on-dark-day
|
|
78
|
+
);
|
|
79
|
+
@include bpk-themeable-property(
|
|
80
|
+
background-color,
|
|
81
|
+
--bpk-button-primary-active-background-color,
|
|
82
|
+
$bpk-private-button-primary-pressed-background-day
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&:disabled {
|
|
87
|
+
background-color: $bpk-private-button-disabled-background-day;
|
|
88
|
+
color: $bpk-text-disabled-day;
|
|
89
|
+
cursor: not-allowed;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/// Large button. Modifies the bpk-button mixin.
|
|
94
|
+
///
|
|
95
|
+
/// @require {mixin} bpk-button
|
|
96
|
+
///
|
|
97
|
+
/// @example scss
|
|
98
|
+
/// .selector {
|
|
99
|
+
/// @include bpk-button();
|
|
100
|
+
/// @include bpk-button--large();
|
|
101
|
+
/// }
|
|
102
|
+
|
|
103
|
+
@mixin bpk-button--large {
|
|
104
|
+
min-height: $bpk-button-large-height;
|
|
105
|
+
padding: (12 * $bpk-one-pixel-rem) bpk-spacing-base();
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/// PrimaryOnDark button. Modifies the bpk-button mixin.
|
|
109
|
+
///
|
|
110
|
+
/// @require {mixin} bpk-button
|
|
111
|
+
///
|
|
112
|
+
/// @example scss
|
|
113
|
+
/// .selector {
|
|
114
|
+
/// @include bpk-button();
|
|
115
|
+
/// @include bpk-button--primary-on-dark();
|
|
116
|
+
/// }
|
|
117
|
+
|
|
118
|
+
@mixin bpk-button--primary-on-dark {
|
|
119
|
+
@include bpk-themeable-property(
|
|
120
|
+
color,
|
|
121
|
+
--bpk-button-primary-on-dark-text-color,
|
|
122
|
+
$bpk-text-on-light-day
|
|
123
|
+
);
|
|
124
|
+
@include bpk-themeable-property(
|
|
125
|
+
background-color,
|
|
126
|
+
--bpk-button-primary-on-dark-background-color,
|
|
127
|
+
$bpk-private-button-primary-on-dark-normal-background-day
|
|
128
|
+
);
|
|
129
|
+
|
|
130
|
+
@include bpk-hover {
|
|
131
|
+
@include bpk-themeable-property(
|
|
132
|
+
color,
|
|
133
|
+
--bpk-button-primary-on-dark-hover-text-color,
|
|
134
|
+
$bpk-text-on-light-day
|
|
135
|
+
);
|
|
136
|
+
@include bpk-themeable-property(
|
|
137
|
+
background-color,
|
|
138
|
+
--bpk-button-primary-on-dark-hover-background-color,
|
|
139
|
+
$bpk-private-button-primary-on-dark-pressed-background-day
|
|
140
|
+
);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&:active {
|
|
144
|
+
@include bpk-themeable-property(
|
|
145
|
+
color,
|
|
146
|
+
--bpk-button-primary-on-dark-active-text-color,
|
|
147
|
+
$bpk-text-on-light-day
|
|
148
|
+
);
|
|
149
|
+
@include bpk-themeable-property(
|
|
150
|
+
background-color,
|
|
151
|
+
--bpk-button-primary-on-dark-active-background-color,
|
|
152
|
+
$bpk-private-button-primary-on-dark-pressed-background-day
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
&:disabled {
|
|
157
|
+
background-color: $bpk-private-button-primary-on-dark-disabled-background-day;
|
|
158
|
+
color: $bpk-private-button-primary-on-dark-disabled-foreground-day;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/// PrimaryOnLight button. Modifies the bpk-button mixin.
|
|
163
|
+
///
|
|
164
|
+
/// @require {mixin} bpk-button
|
|
165
|
+
///
|
|
166
|
+
/// @example scss
|
|
167
|
+
/// .selector {
|
|
168
|
+
/// @include bpk-button();
|
|
169
|
+
/// @include bpk-button--primary-on-light();
|
|
170
|
+
/// }
|
|
171
|
+
|
|
172
|
+
@mixin bpk-button--primary-on-light {
|
|
173
|
+
@include bpk-themeable-property(
|
|
174
|
+
color,
|
|
175
|
+
--bpk-button-primary-on-light-text-color,
|
|
176
|
+
$bpk-text-on-dark-night
|
|
177
|
+
);
|
|
178
|
+
@include bpk-themeable-property(
|
|
179
|
+
background-color,
|
|
180
|
+
--bpk-button-primary-on-light-background-color,
|
|
181
|
+
$bpk-private-button-primary-on-light-normal-background-day
|
|
182
|
+
);
|
|
183
|
+
|
|
184
|
+
@include bpk-hover {
|
|
185
|
+
@include bpk-themeable-property(
|
|
186
|
+
color,
|
|
187
|
+
--bpk-button-primary-on-light-hover-text-color,
|
|
188
|
+
$bpk-text-on-dark-night
|
|
189
|
+
);
|
|
190
|
+
@include bpk-themeable-property(
|
|
191
|
+
background-color,
|
|
192
|
+
--bpk-button-primary-on-light-hover-background-color,
|
|
193
|
+
$bpk-private-button-primary-on-light-pressed-background-day
|
|
194
|
+
);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
&:active {
|
|
198
|
+
@include bpk-themeable-property(
|
|
199
|
+
color,
|
|
200
|
+
--bpk-button-primary-on-light-active-text-color,
|
|
201
|
+
$bpk-text-on-dark-night
|
|
202
|
+
);
|
|
203
|
+
@include bpk-themeable-property(
|
|
204
|
+
background-color,
|
|
205
|
+
--bpk-button-primary-on-light-active-background-color,
|
|
206
|
+
$bpk-private-button-primary-on-light-pressed-background-day
|
|
207
|
+
);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
&:disabled {
|
|
211
|
+
background-color: $bpk-private-button-primary-on-light-disabled-background-day;
|
|
212
|
+
color: $bpk-private-button-primary-on-light-disabled-foreground-day;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/// Secondary button. Modifies the bpk-button mixin.
|
|
217
|
+
///
|
|
218
|
+
/// @require {mixin} bpk-button
|
|
219
|
+
///
|
|
220
|
+
/// @example scss
|
|
221
|
+
/// .selector {
|
|
222
|
+
/// @include bpk-button();
|
|
223
|
+
/// @include bpk-button--secondary();
|
|
224
|
+
/// }
|
|
225
|
+
|
|
226
|
+
@mixin bpk-button--secondary {
|
|
227
|
+
@include bpk-themeable-property(
|
|
228
|
+
color,
|
|
229
|
+
--bpk-button-secondary-text-color,
|
|
230
|
+
$bpk-text-primary-day
|
|
231
|
+
);
|
|
232
|
+
@include bpk-themeable-property(
|
|
233
|
+
background-color,
|
|
234
|
+
--bpk-button-secondary-background-color,
|
|
235
|
+
$bpk-private-button-secondary-normal-background-day
|
|
236
|
+
);
|
|
237
|
+
|
|
238
|
+
@include bpk-hover {
|
|
239
|
+
@include bpk-themeable-property(
|
|
240
|
+
color,
|
|
241
|
+
--bpk-button-secondary-hover-text-color,
|
|
242
|
+
$bpk-text-primary-day
|
|
243
|
+
);
|
|
244
|
+
@include bpk-themeable-property(
|
|
245
|
+
background-color,
|
|
246
|
+
--bpk-button-secondary-hover-background-color,
|
|
247
|
+
$bpk-private-button-secondary-pressed-background-day
|
|
248
|
+
);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
&:active {
|
|
252
|
+
@include bpk-themeable-property(
|
|
253
|
+
color,
|
|
254
|
+
--bpk-button-secondary-active-text-color,
|
|
255
|
+
$bpk-text-primary-day
|
|
256
|
+
);
|
|
257
|
+
@include bpk-themeable-property(
|
|
258
|
+
background-color,
|
|
259
|
+
--bpk-button-secondary-active-background-color,
|
|
260
|
+
$bpk-private-button-secondary-pressed-background-day
|
|
261
|
+
);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
&:disabled {
|
|
265
|
+
background-color: $bpk-private-button-disabled-background-day;
|
|
266
|
+
color: $bpk-text-disabled-day;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/// Secondary on dark button. Modifies the bpk-button mixin.
|
|
271
|
+
///
|
|
272
|
+
/// @require {mixin} bpk-button
|
|
273
|
+
///
|
|
274
|
+
/// @example scss
|
|
275
|
+
/// .selector {
|
|
276
|
+
/// @include bpk-button();
|
|
277
|
+
/// @include bpk-button--secondary-on-dark();
|
|
278
|
+
/// }
|
|
279
|
+
|
|
280
|
+
@mixin bpk-button--secondary-on-dark {
|
|
281
|
+
@include bpk-themeable-property(
|
|
282
|
+
color,
|
|
283
|
+
--bpk-button-secondary-on-dark-text-color,
|
|
284
|
+
$bpk-text-on-dark-day
|
|
285
|
+
);
|
|
286
|
+
@include bpk-themeable-property(
|
|
287
|
+
background-color,
|
|
288
|
+
--bpk-button-secondary-on-dark-background-color,
|
|
289
|
+
$bpk-private-button-secondary-on-dark-normal-background-day
|
|
290
|
+
);
|
|
291
|
+
|
|
292
|
+
@include bpk-hover {
|
|
293
|
+
@include bpk-themeable-property(
|
|
294
|
+
color,
|
|
295
|
+
--bpk-button-secondary-on-dark-hover-text-color,
|
|
296
|
+
$bpk-text-on-dark-day
|
|
297
|
+
);
|
|
298
|
+
@include bpk-themeable-property(
|
|
299
|
+
background-color,
|
|
300
|
+
--bpk-button-secondary-on-dark-hover-background-color,
|
|
301
|
+
$bpk-private-button-secondary-on-dark-pressed-background-day
|
|
302
|
+
);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
&:active {
|
|
306
|
+
@include bpk-themeable-property(
|
|
307
|
+
color,
|
|
308
|
+
--bpk-button-secondary-on-dark-active-text-color,
|
|
309
|
+
$bpk-text-on-dark-day
|
|
310
|
+
);
|
|
311
|
+
@include bpk-themeable-property(
|
|
312
|
+
background-color,
|
|
313
|
+
--bpk-button-secondary-on-dark-active-background-color,
|
|
314
|
+
$bpk-private-button-secondary-on-dark-pressed-background-day
|
|
315
|
+
);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
&:disabled {
|
|
319
|
+
background-color: $bpk-private-button-secondary-on-dark-disabled-background-day;
|
|
320
|
+
color: $bpk-private-button-secondary-on-dark-disabled-foreground-day;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/// Destructive button. Modifies the bpk-button & bpk-button--secondary mixins.
|
|
325
|
+
///
|
|
326
|
+
/// @require {mixin} bpk-button
|
|
327
|
+
/// @require {mixin} bpk-button--secondary
|
|
328
|
+
///
|
|
329
|
+
/// @example scss
|
|
330
|
+
/// .selector {
|
|
331
|
+
/// @include bpk-button();
|
|
332
|
+
/// @include bpk-button--secondary();
|
|
333
|
+
/// @include bpk-button--destructive();
|
|
334
|
+
/// }
|
|
335
|
+
|
|
336
|
+
@mixin bpk-button--destructive {
|
|
337
|
+
@include bpk-themeable-property(
|
|
338
|
+
color,
|
|
339
|
+
--bpk-button-destructive-text-color,
|
|
340
|
+
$bpk-private-button-destructive-normal-foreground-day
|
|
341
|
+
);
|
|
342
|
+
@include bpk-themeable-property(
|
|
343
|
+
background-color,
|
|
344
|
+
--bpk-button-destructive-background-color,
|
|
345
|
+
$bpk-private-button-destructive-normal-background-day
|
|
346
|
+
);
|
|
347
|
+
|
|
348
|
+
@include bpk-hover {
|
|
349
|
+
@include bpk-themeable-property(
|
|
350
|
+
color,
|
|
351
|
+
--bpk-button-destructive-hover-text-color,
|
|
352
|
+
$bpk-text-primary-inverse-day
|
|
353
|
+
);
|
|
354
|
+
@include bpk-themeable-property(
|
|
355
|
+
background-color,
|
|
356
|
+
--bpk-button-destructive-hover-background-color,
|
|
357
|
+
$bpk-private-button-destructive-pressed-background-day
|
|
358
|
+
);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
&:active {
|
|
362
|
+
@include bpk-themeable-property(
|
|
363
|
+
color,
|
|
364
|
+
--bpk-button-destructive-active-text-color,
|
|
365
|
+
$bpk-text-primary-inverse-day
|
|
366
|
+
);
|
|
367
|
+
@include bpk-themeable-property(
|
|
368
|
+
background-color,
|
|
369
|
+
--bpk-button-destructive-active-background-color,
|
|
370
|
+
$bpk-private-button-destructive-pressed-background-day
|
|
371
|
+
);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
&:disabled {
|
|
375
|
+
background-color: $bpk-private-button-disabled-background-day;
|
|
376
|
+
color: $bpk-text-disabled-day;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
/// Link-style button. Modifies the bpk-button mixin.
|
|
381
|
+
///
|
|
382
|
+
/// @require {mixin} bpk-button
|
|
383
|
+
///
|
|
384
|
+
/// @example scss
|
|
385
|
+
/// .selector {
|
|
386
|
+
/// @include bpk-button();
|
|
387
|
+
/// @include bpk-button--link();
|
|
388
|
+
/// }
|
|
389
|
+
|
|
390
|
+
@mixin bpk-button--link {
|
|
391
|
+
$vertical-padding: $bpk-one-pixel-rem * 6;
|
|
392
|
+
$vertical-padding-large: $bpk-one-pixel-rem * 12;
|
|
393
|
+
|
|
394
|
+
border-radius: 0;
|
|
395
|
+
background: none; /* stylelint-disable-line order/order, order/properties-order */
|
|
396
|
+
box-shadow: none;
|
|
397
|
+
|
|
398
|
+
@include bpk-link;
|
|
399
|
+
|
|
400
|
+
padding: $vertical-padding 0; /* stylelint-disable-line order/order, order/properties-order */
|
|
401
|
+
color: $bpk-private-button-link-normal-foreground-day;
|
|
402
|
+
|
|
403
|
+
@include bpk-hover {
|
|
404
|
+
background: none;
|
|
405
|
+
color: $bpk-private-button-link-pressed-foreground-day;
|
|
406
|
+
text-decoration: none;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
&:active {
|
|
410
|
+
background: none;
|
|
411
|
+
color: $bpk-private-button-link-pressed-foreground-day;
|
|
412
|
+
text-decoration: none;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
&:disabled {
|
|
416
|
+
background: none;
|
|
417
|
+
color: $bpk-text-disabled-day;
|
|
418
|
+
text-decoration: none;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
&-large {
|
|
422
|
+
padding: $vertical-padding-large 0;
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
/// Link on dark button. Modifies the bpk-button & bpk-button--link mixins.
|
|
427
|
+
///
|
|
428
|
+
/// @require {mixin} bpk-button
|
|
429
|
+
|
|
430
|
+
/// @example scss
|
|
431
|
+
/// .selector {
|
|
432
|
+
/// @include bpk-button();
|
|
433
|
+
/// @include bpk-button--link-on-dark();
|
|
434
|
+
/// }
|
|
435
|
+
|
|
436
|
+
@mixin bpk-button--link-on-dark {
|
|
437
|
+
@include bpk-button--link;
|
|
438
|
+
@include bpk-themeable-property(
|
|
439
|
+
color,
|
|
440
|
+
--bpk-button-link-on-dark-text-color,
|
|
441
|
+
$bpk-private-button-link-on-dark-normal-foreground-day
|
|
442
|
+
);
|
|
443
|
+
|
|
444
|
+
@include bpk-hover {
|
|
445
|
+
@include bpk-themeable-property(
|
|
446
|
+
color,
|
|
447
|
+
--bpk-button-link-on-dark-hover-text-color,
|
|
448
|
+
$bpk-private-button-link-on-dark-pressed-foreground-day
|
|
449
|
+
);
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
&:active {
|
|
453
|
+
@include bpk-themeable-property(
|
|
454
|
+
color,
|
|
455
|
+
--bpk-button-link-on-dark-active-text-color,
|
|
456
|
+
$bpk-private-button-link-on-dark-pressed-foreground-day
|
|
457
|
+
);
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
&:visited {
|
|
461
|
+
@include bpk-themeable-property(
|
|
462
|
+
color,
|
|
463
|
+
--bpk-button-link-on-dark-text-color,
|
|
464
|
+
$bpk-private-button-link-on-dark-normal-foreground-day
|
|
465
|
+
);
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
&:disabled {
|
|
469
|
+
@include bpk-themeable-property(
|
|
470
|
+
color,
|
|
471
|
+
--bpk-button-link-on-dark-disabled-color,
|
|
472
|
+
$bpk-private-button-link-on-dark-disabled-foreground-day
|
|
473
|
+
);
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
/// Icon-only button. Modifies the bpk-button mixin.
|
|
478
|
+
///
|
|
479
|
+
/// @require {mixin} bpk-button
|
|
480
|
+
///
|
|
481
|
+
/// @example scss
|
|
482
|
+
/// .selector {
|
|
483
|
+
/// @include bpk-button();
|
|
484
|
+
/// @include bpk-button--icon-only();
|
|
485
|
+
/// }
|
|
486
|
+
|
|
487
|
+
@mixin bpk-button--icon-only {
|
|
488
|
+
$horizontal-padding: ($bpk-button-height - $bpk-icon-size-sm) / 2; // extra padding so that the width will be the same size as the size using sm icons
|
|
489
|
+
|
|
490
|
+
padding-right: $horizontal-padding;
|
|
491
|
+
padding-left: $horizontal-padding;
|
|
492
|
+
border-radius: $bpk-button-border-radius;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
/// Large icon-only button. Modifies the bpk-button & bpk-button--large mixins.
|
|
496
|
+
///
|
|
497
|
+
/// @require {mixin} bpk-button
|
|
498
|
+
/// @require {mixin} bpk-button--large
|
|
499
|
+
///
|
|
500
|
+
/// @example scss
|
|
501
|
+
/// .selector {
|
|
502
|
+
/// @include bpk-button();
|
|
503
|
+
/// @include bpk-button--large();
|
|
504
|
+
/// @include bpk-button--large-icon-only();
|
|
505
|
+
/// }
|
|
506
|
+
|
|
507
|
+
@mixin bpk-button--large-icon-only {
|
|
508
|
+
$horizontal-padding: ($bpk-button-large-height - $bpk-icon-size-lg) / 2; // extra padding so that the width will be the same size as the size using lg icons
|
|
509
|
+
|
|
510
|
+
padding-right: $horizontal-padding;
|
|
511
|
+
padding-left: $horizontal-padding;
|
|
512
|
+
border-radius: $bpk-button-border-radius;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
/// Featured button. Modifies the bpk-button
|
|
516
|
+
///
|
|
517
|
+
/// @require {mixin} bpk-button
|
|
518
|
+
/// @require {mixin} bpk-button--large
|
|
519
|
+
///
|
|
520
|
+
/// @example scss
|
|
521
|
+
/// .selector {
|
|
522
|
+
/// @include bpk-button();
|
|
523
|
+
/// @include bpk-button--featured();
|
|
524
|
+
/// }
|
|
525
|
+
|
|
526
|
+
@mixin bpk-button--featured {
|
|
527
|
+
@include bpk-themeable-property(
|
|
528
|
+
color,
|
|
529
|
+
--bpk-button-featured-text-color,
|
|
530
|
+
$bpk-text-primary-inverse-day
|
|
531
|
+
);
|
|
532
|
+
@include bpk-themeable-property(
|
|
533
|
+
background-color,
|
|
534
|
+
--bpk-button-featured-background-color,
|
|
535
|
+
$bpk-private-button-featured-normal-background-day
|
|
536
|
+
);
|
|
537
|
+
|
|
538
|
+
@include bpk-hover {
|
|
539
|
+
@include bpk-themeable-property(
|
|
540
|
+
color,
|
|
541
|
+
--bpk-button-featured-hover-text-color,
|
|
542
|
+
$bpk-text-primary-inverse-day
|
|
543
|
+
);
|
|
544
|
+
@include bpk-themeable-property(
|
|
545
|
+
background-color,
|
|
546
|
+
--bpk-button-featured-hover-background-color,
|
|
547
|
+
$bpk-private-button-featured-pressed-background-day
|
|
548
|
+
);
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
&:active {
|
|
552
|
+
@include bpk-themeable-property(
|
|
553
|
+
color,
|
|
554
|
+
--bpk-button-featured-active-text-color,
|
|
555
|
+
$bpk-text-primary-inverse-day
|
|
556
|
+
);
|
|
557
|
+
@include bpk-themeable-property(
|
|
558
|
+
background-color,
|
|
559
|
+
--bpk-button-featured-active-background-color,
|
|
560
|
+
$bpk-private-button-featured-pressed-background-day
|
|
561
|
+
);
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
&:disabled {
|
|
565
|
+
background-color: $bpk-private-button-disabled-background-day;
|
|
566
|
+
color: $bpk-text-disabled-day;
|
|
567
|
+
}
|
|
568
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
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 cards
|
|
23
|
+
////
|
|
24
|
+
|
|
25
|
+
/// Basic card.
|
|
26
|
+
///
|
|
27
|
+
/// @example scss
|
|
28
|
+
/// .selector {
|
|
29
|
+
/// @include bpk-card();
|
|
30
|
+
/// }
|
|
31
|
+
|
|
32
|
+
@mixin bpk-card {
|
|
33
|
+
position: relative;
|
|
34
|
+
display: block;
|
|
35
|
+
background-color: $bpk-card-background-color;
|
|
36
|
+
color: $bpk-text-primary-day;
|
|
37
|
+
text-decoration: none;
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
|
|
40
|
+
@include bpk-box-shadow-sm;
|
|
41
|
+
@include bpk-border-radius-md;
|
|
42
|
+
|
|
43
|
+
@include bpk-hover {
|
|
44
|
+
&::after {
|
|
45
|
+
opacity: 1;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// Keep transitions and animations to only transform and opacity.
|
|
50
|
+
// This pseudo element solution allows us to animate box-shadow in a performant manner.
|
|
51
|
+
// http://tobiasahlin.com/blog/how-to-animate-box-shadow/
|
|
52
|
+
&::after {
|
|
53
|
+
position: absolute;
|
|
54
|
+
top: 0;
|
|
55
|
+
right: 0;
|
|
56
|
+
bottom: 0;
|
|
57
|
+
left: 0;
|
|
58
|
+
content: '';
|
|
59
|
+
transition: opacity $bpk-duration-sm ease-in-out;
|
|
60
|
+
opacity: 0;
|
|
61
|
+
pointer-events: none; // To prevent the pseudo element absorbing click events
|
|
62
|
+
|
|
63
|
+
@include bpk-box-shadow-lg;
|
|
64
|
+
@include bpk-border-radius-md;
|
|
65
|
+
|
|
66
|
+
// pointer-events doesn't work on ie
|
|
67
|
+
@media screen\0 {
|
|
68
|
+
z-index: -1;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&:active::after {
|
|
73
|
+
box-shadow: none;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/// Adds padding to cards. Modifies the bpk-card mixin.
|
|
78
|
+
///
|
|
79
|
+
/// @require {mixin} bpk-card
|
|
80
|
+
///
|
|
81
|
+
/// @example scss
|
|
82
|
+
/// .selector {
|
|
83
|
+
/// @include bpk-card();
|
|
84
|
+
/// @include bpk-card--padded();
|
|
85
|
+
/// }
|
|
86
|
+
|
|
87
|
+
@mixin bpk-card--padded {
|
|
88
|
+
padding: $bpk-card-padding;
|
|
89
|
+
}
|