@skyscanner/backpack-web 34.0.0-premajor.2 → 34.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/bpk-component-aria-live/index.d.ts +1 -23
- package/bpk-component-aria-live/src/BpkAriaLive.d.ts +10 -35
- package/bpk-component-badge/index.d.ts +0 -18
- package/bpk-component-badge/src/BpkBadge.d.ts +16 -41
- package/bpk-component-badge/src/themeAttributes.d.ts +2 -0
- package/bpk-component-banner-alert/index.d.ts +2 -27
- package/bpk-component-banner-alert/src/AnimateAndFade.d.ts +23 -52
- package/bpk-component-banner-alert/src/AnimateAndFade.js +0 -2
- package/bpk-component-banner-alert/src/BpkBannerAlert.d.ts +5 -26
- package/bpk-component-banner-alert/src/BpkBannerAlertDismissable.d.ts +3 -25
- package/bpk-component-banner-alert/src/BpkBannerAlertExpandable.d.ts +5 -30
- package/bpk-component-banner-alert/src/BpkBannerAlertInner.d.ts +12 -52
- package/bpk-component-banner-alert/src/BpkBannerAlertInner.js +0 -4
- package/bpk-component-banner-alert/src/common-types.d.ts +15 -37
- package/bpk-component-banner-alert/src/themeAttributes.d.ts +0 -18
- package/bpk-component-banner-alert/src/withBannerAlertState.d.ts +0 -18
- package/bpk-component-barchart/src/BpkBarchart.js +1 -8
- package/bpk-component-boilerplate/index.d.ts +1 -22
- package/bpk-component-boilerplate/src/BpkBoilerplate.d.ts +3 -22
- package/bpk-component-bottom-sheet/index.d.ts +0 -18
- package/bpk-component-bottom-sheet/src/BpkBottomSheet.d.ts +17 -38
- package/bpk-component-bottom-sheet/src/BpkBottomSheet.js +4 -7
- package/bpk-component-bottom-sheet/src/BpkBottomSheet.module.css +1 -1
- package/bpk-component-breakpoint/index.d.ts +0 -18
- package/bpk-component-breakpoint/src/BpkBreakpoint.d.ts +20 -45
- package/bpk-component-breakpoint/src/BpkBreakpoint.js +21 -5
- package/bpk-component-breakpoint/src/useMediaQuery.d.ts +2 -0
- package/bpk-component-breakpoint/src/useMediaQuery.js +10 -7
- package/bpk-component-button/index.d.ts +13 -22
- package/bpk-component-button/index.js +15 -3
- package/bpk-component-button/src/BpkButtonV2/BpkButton.d.ts +0 -18
- package/bpk-component-button/src/BpkButtonV2/common-types.d.ts +27 -46
- package/bpk-component-button/src/themeAttributes.d.ts +8 -0
- package/bpk-component-button/themeAttributes.d.ts +1 -0
- package/bpk-component-button/themeAttributes.js +3 -1
- package/bpk-component-calendar/index.d.ts +4 -22
- package/bpk-component-calendar/src/BpkCalendarContainer.d.ts +3 -20
- package/bpk-component-calendar/src/BpkCalendarDate.d.ts +0 -18
- package/bpk-component-calendar/src/BpkCalendarGrid.d.ts +1 -19
- package/bpk-component-calendar/src/BpkCalendarGrid.js +2 -5
- package/bpk-component-calendar/src/BpkCalendarGrid.module.css +1 -1
- package/bpk-component-calendar/src/BpkCalendarGridHeader.d.ts +0 -18
- package/bpk-component-calendar/src/BpkCalendarGridTransition.d.ts +1 -24
- package/bpk-component-calendar/src/BpkCalendarGridTransition.js +1 -4
- package/bpk-component-calendar/src/BpkCalendarNav.d.ts +0 -18
- package/bpk-component-calendar/src/BpkCalendarNav.js +13 -12
- package/bpk-component-calendar/src/BpkCalendarNav.module.css +1 -1
- package/bpk-component-calendar/src/{Week.d.ts → BpkCalendarWeek.d.ts} +2 -20
- package/bpk-component-calendar/src/{Week.js → BpkCalendarWeek.js} +7 -13
- package/bpk-component-calendar/src/BpkCalendarWeek.module.css +18 -0
- package/bpk-component-calendar/src/composeCalendar.d.ts +0 -18
- package/bpk-component-calendar/src/custom-proptypes.d.ts +0 -18
- package/bpk-component-calendar/src/date-utils.d.ts +14 -32
- package/bpk-component-calendar/src/themeAttributes.d.ts +2 -0
- package/bpk-component-calendar/src/utils.d.ts +0 -18
- package/bpk-component-calendar/src/utils.js +1 -2
- package/bpk-component-card/index.d.ts +0 -19
- package/bpk-component-card/src/BpkCard.d.ts +8 -35
- package/bpk-component-card/src/BpkCardWrapper.d.ts +5 -29
- package/bpk-component-card/src/BpkDividedCard.d.ts +10 -37
- package/bpk-component-card-button/index.d.ts +2 -0
- package/bpk-component-card-button/src/BpkSaveButton.d.ts +12 -36
- package/bpk-component-card-button/src/BpkSaveButton.js +0 -4
- package/bpk-component-chip/index.d.ts +2 -20
- package/bpk-component-chip/src/BpkDismissibleChip.d.ts +0 -18
- package/bpk-component-chip/src/BpkDismissibleChip.js +4 -10
- package/bpk-component-chip/src/BpkDropdownChip.d.ts +1 -26
- package/bpk-component-chip/src/BpkDropdownChip.js +0 -1
- package/bpk-component-chip/src/BpkIconChip.d.ts +1 -19
- package/bpk-component-chip/src/BpkSelectableChip.d.ts +4 -32
- package/bpk-component-chip/src/BpkSelectableChip.js +2 -1
- package/bpk-component-chip/src/commonTypes.d.ts +11 -48
- package/bpk-component-chip/src/themeAttributes.d.ts +2 -0
- package/bpk-component-close-button/src/BpkCloseButton.js +7 -4
- package/bpk-component-close-button/src/BpkCloseButton.module.css +1 -1
- package/bpk-component-datatable/index.d.ts +0 -18
- package/bpk-component-datatable/src/BpkDataTable.d.ts +0 -18
- package/bpk-component-datatable/src/BpkDataTableHeader.d.ts +0 -18
- package/bpk-component-datatable/src/BpkDataTableHeader.js +0 -2
- package/bpk-component-datatable/src/common-types.d.ts +4 -22
- package/bpk-component-datatable/src/utils.d.ts +0 -18
- package/bpk-component-datepicker/index.d.ts +0 -18
- package/bpk-component-datepicker/src/BpkDatepicker.d.ts +1 -24
- package/bpk-component-datepicker/src/BpkDatepicker.js +0 -8
- package/bpk-component-datepicker/src/themeAttributes.d.ts +2 -0
- package/bpk-component-datepicker/src/themeAttributes.js +0 -1
- package/bpk-component-dialog/index.d.ts +1 -20
- package/bpk-component-dialog/src/BpkDialog.d.ts +0 -18
- package/bpk-component-dialog/src/BpkDialogInner.d.ts +20 -206
- package/bpk-component-dialog/src/BpkDialogInner.js +2 -0
- package/bpk-component-dialog/src/common-types.d.ts +1 -18
- package/bpk-component-flare/src/BpkContentBubble.js +21 -9
- package/bpk-component-flare/src/BpkFlareBar.js +4 -22
- package/bpk-component-flare/src/bpk-content-bubble.module.css +1 -1
- package/bpk-component-flare/src/bpk-flare-bar.module.css +1 -1
- package/bpk-component-floating-notification/index.d.ts +3 -0
- package/bpk-component-floating-notification/src/BpkFloatingNotification.d.ts +19 -42
- package/bpk-component-floating-notification/src/BpkFloatingNotification.js +9 -12
- package/bpk-component-floating-notification/src/BpkFloatingNotification.module.css +1 -1
- package/bpk-component-graphic-promotion/index.d.ts +1 -23
- package/bpk-component-graphic-promotion/src/BpkGraphicPromo.d.ts +0 -18
- package/bpk-component-icon/all.d.ts +4 -0
- package/bpk-component-icon/all.js +3 -3
- package/bpk-component-icon/index.d.ts +7 -35
- package/bpk-component-icon/index.js +1 -3
- package/bpk-component-icon/lg/accessibility.js +7 -11
- package/bpk-component-icon/lg/account--add.js +7 -11
- package/bpk-component-icon/lg/account--female.js +7 -11
- package/bpk-component-icon/lg/account--id-card.js +7 -11
- package/bpk-component-icon/lg/account--name.js +7 -11
- package/bpk-component-icon/lg/account--permit.js +7 -11
- package/bpk-component-icon/lg/account-circle.js +7 -11
- package/bpk-component-icon/lg/account.js +7 -11
- package/bpk-component-icon/lg/add-circle.js +7 -11
- package/bpk-component-icon/lg/adult.js +7 -11
- package/bpk-component-icon/lg/ai.js +7 -12
- package/bpk-component-icon/lg/aircon.js +7 -11
- package/bpk-component-icon/lg/aircraft.js +8 -12
- package/bpk-component-icon/lg/airline--multiple.js +7 -11
- package/bpk-component-icon/lg/airline.js +7 -11
- package/bpk-component-icon/lg/airports.js +7 -11
- package/bpk-component-icon/lg/alert--active.js +7 -11
- package/bpk-component-icon/lg/alert--add.js +7 -11
- package/bpk-component-icon/lg/alert--expired.js +7 -11
- package/bpk-component-icon/lg/alert--remove.js +7 -11
- package/bpk-component-icon/lg/arrow-down.js +7 -11
- package/bpk-component-icon/lg/arrow-left.js +7 -11
- package/bpk-component-icon/lg/arrow-right.js +7 -11
- package/bpk-component-icon/lg/arrow-up.js +7 -11
- package/bpk-component-icon/lg/award.js +7 -11
- package/bpk-component-icon/lg/baby-carriage.js +7 -11
- package/bpk-component-icon/lg/baggage--add.js +7 -11
- package/bpk-component-icon/lg/baggage--remove.js +7 -11
- package/bpk-component-icon/lg/baggage-cabin-add.js +7 -11
- package/bpk-component-icon/lg/baggage-cabin-not-included.js +7 -11
- package/bpk-component-icon/lg/baggage-cabin.js +7 -11
- package/bpk-component-icon/lg/baggage-checked-add.js +7 -11
- package/bpk-component-icon/lg/baggage-checked-not-included.js +7 -11
- package/bpk-component-icon/lg/baggage-checked.js +7 -11
- package/bpk-component-icon/lg/baggage-cross.js +7 -11
- package/bpk-component-icon/lg/baggage-generic.js +7 -11
- package/bpk-component-icon/lg/baggage-tick.js +7 -11
- package/bpk-component-icon/lg/baggage.js +7 -11
- package/bpk-component-icon/lg/bar.js +7 -11
- package/bpk-component-icon/lg/beach.js +8 -12
- package/bpk-component-icon/lg/beer.js +7 -11
- package/bpk-component-icon/lg/breakfast-cross.js +7 -11
- package/bpk-component-icon/lg/breakfast-tick.js +7 -11
- package/bpk-component-icon/lg/bus.js +7 -11
- package/bpk-component-icon/lg/business.js +7 -11
- package/bpk-component-icon/lg/cafe.js +7 -11
- package/bpk-component-icon/lg/calendar.js +7 -11
- package/bpk-component-icon/lg/call-back.js +8 -12
- package/bpk-component-icon/lg/camera.js +7 -11
- package/bpk-component-icon/lg/camper-van.js +8 -12
- package/bpk-component-icon/lg/car-door.js +7 -11
- package/bpk-component-icon/lg/car-wash.js +8 -12
- package/bpk-component-icon/lg/cars-flexible.js +7 -11
- package/bpk-component-icon/lg/cars.js +8 -12
- package/bpk-component-icon/lg/center-location.js +7 -11
- package/bpk-component-icon/lg/chart.js +7 -11
- package/bpk-component-icon/lg/chauffeur.js +7 -11
- package/bpk-component-icon/lg/chevron-down.js +7 -11
- package/bpk-component-icon/lg/chevron-left.js +7 -11
- package/bpk-component-icon/lg/chevron-right.js +7 -11
- package/bpk-component-icon/lg/chevron-up.js +7 -11
- package/bpk-component-icon/lg/child-seat.js +7 -11
- package/bpk-component-icon/lg/child.js +7 -11
- package/bpk-component-icon/lg/city-center.js +7 -11
- package/bpk-component-icon/lg/city.js +7 -11
- package/bpk-component-icon/lg/clean-policy.js +7 -11
- package/bpk-component-icon/lg/clean.js +9 -13
- package/bpk-component-icon/lg/cleaning-medical.js +7 -11
- package/bpk-component-icon/lg/cloakroom.js +9 -13
- package/bpk-component-icon/lg/close-circle.js +7 -11
- package/bpk-component-icon/lg/close.js +7 -11
- package/bpk-component-icon/lg/collapse.js +7 -11
- package/bpk-component-icon/lg/content--copy.js +8 -12
- package/bpk-component-icon/lg/content--event.js +7 -11
- package/bpk-component-icon/lg/content--guides.js +7 -11
- package/bpk-component-icon/lg/currency.js +7 -11
- package/bpk-component-icon/lg/data.js +8 -12
- package/bpk-component-icon/lg/deals.js +7 -11
- package/bpk-component-icon/lg/depart.js +8 -12
- package/bpk-component-icon/lg/device-mid.js +7 -11
- package/bpk-component-icon/lg/device-wide.js +7 -11
- package/bpk-component-icon/lg/direct.js +7 -11
- package/bpk-component-icon/lg/document-csv.js +7 -11
- package/bpk-component-icon/lg/document-pdf.js +7 -11
- package/bpk-component-icon/lg/dot.js +16 -0
- package/bpk-component-icon/lg/download.js +8 -12
- package/bpk-component-icon/lg/duration.js +7 -11
- package/bpk-component-icon/lg/eco-leaf.js +7 -11
- package/bpk-component-icon/lg/edit.js +7 -11
- package/bpk-component-icon/lg/education.js +8 -12
- package/bpk-component-icon/lg/electric.js +7 -11
- package/bpk-component-icon/lg/end-call.js +7 -11
- package/bpk-component-icon/lg/estimated.js +7 -11
- package/bpk-component-icon/lg/exclamation-circle.js +7 -11
- package/bpk-component-icon/lg/exclamation.js +7 -11
- package/bpk-component-icon/lg/expand.js +7 -11
- package/bpk-component-icon/lg/explore.js +9 -13
- package/bpk-component-icon/lg/face--blank.js +7 -11
- package/bpk-component-icon/lg/face--happy.js +7 -11
- package/bpk-component-icon/lg/face--sad.js +7 -11
- package/bpk-component-icon/lg/face-id.js +7 -11
- package/bpk-component-icon/lg/face-mask.js +7 -11
- package/bpk-component-icon/lg/family.js +7 -11
- package/bpk-component-icon/lg/fast-track.js +8 -12
- package/bpk-component-icon/lg/fast-train.js +8 -12
- package/bpk-component-icon/lg/filter.js +7 -11
- package/bpk-component-icon/lg/fingerprint.js +7 -11
- package/bpk-component-icon/lg/flag.js +7 -11
- package/bpk-component-icon/lg/flask.js +7 -11
- package/bpk-component-icon/lg/flight-flexible.js +7 -11
- package/bpk-component-icon/lg/flight-landing.js +9 -13
- package/bpk-component-icon/lg/flight-takeoff.js +8 -12
- package/bpk-component-icon/lg/flight.js +8 -12
- package/bpk-component-icon/lg/food.js +7 -11
- package/bpk-component-icon/lg/gears-automatic-circle.js +7 -11
- package/bpk-component-icon/lg/gears-automatic.js +7 -11
- package/bpk-component-icon/lg/gears-manual-circle.js +7 -11
- package/bpk-component-icon/lg/gears-manual.js +7 -11
- package/bpk-component-icon/lg/globe.js +7 -11
- package/bpk-component-icon/lg/grid-layout.js +7 -11
- package/bpk-component-icon/lg/headset.js +7 -11
- package/bpk-component-icon/lg/health-fitness.js +7 -11
- package/bpk-component-icon/lg/heart--outline.js +7 -11
- package/bpk-component-icon/lg/heart.js +7 -11
- package/bpk-component-icon/lg/help-circle.js +7 -11
- package/bpk-component-icon/lg/help.js +7 -11
- package/bpk-component-icon/lg/hide.js +7 -11
- package/bpk-component-icon/lg/hotel-flexible.js +7 -11
- package/bpk-component-icon/lg/hotels--disabled-facilities.js +7 -11
- package/bpk-component-icon/lg/hotels--jacuzzi.js +7 -11
- package/bpk-component-icon/lg/hotels--pets-allowed.js +7 -11
- package/bpk-component-icon/lg/hotels--smoking.js +7 -11
- package/bpk-component-icon/lg/hotels.js +7 -11
- package/bpk-component-icon/lg/infant.js +7 -11
- package/bpk-component-icon/lg/information--language-alert.js +7 -11
- package/bpk-component-icon/lg/information--language-question.js +7 -11
- package/bpk-component-icon/lg/information--language.js +7 -11
- package/bpk-component-icon/lg/information-circle.js +7 -11
- package/bpk-component-icon/lg/information.js +7 -11
- package/bpk-component-icon/lg/insurance.js +7 -11
- package/bpk-component-icon/lg/key.js +7 -11
- package/bpk-component-icon/lg/keypad.js +7 -11
- package/bpk-component-icon/lg/landmark.js +7 -11
- package/bpk-component-icon/lg/language.js +7 -11
- package/bpk-component-icon/lg/legroom--extra.js +8 -12
- package/bpk-component-icon/lg/legroom--normal.js +8 -12
- package/bpk-component-icon/lg/legroom--reduced.js +8 -12
- package/bpk-component-icon/lg/leisure.js +7 -11
- package/bpk-component-icon/lg/lightning.js +7 -11
- package/bpk-component-icon/lg/list.js +7 -11
- package/bpk-component-icon/lg/location.js +7 -11
- package/bpk-component-icon/lg/lock.js +7 -11
- package/bpk-component-icon/lg/logout.js +8 -12
- package/bpk-component-icon/lg/long-arrow-down.js +7 -11
- package/bpk-component-icon/lg/long-arrow-left.js +7 -11
- package/bpk-component-icon/lg/long-arrow-right.js +7 -11
- package/bpk-component-icon/lg/long-arrow-up.js +7 -11
- package/bpk-component-icon/lg/lounge.js +8 -12
- package/bpk-component-icon/lg/luggageall.js +7 -11
- package/bpk-component-icon/lg/mail.js +8 -12
- package/bpk-component-icon/lg/map.js +7 -11
- package/bpk-component-icon/lg/meal.js +7 -11
- package/bpk-component-icon/lg/media.js +7 -11
- package/bpk-component-icon/lg/menu--horizontal.js +7 -11
- package/bpk-component-icon/lg/menu--vertical.js +7 -11
- package/bpk-component-icon/lg/menu.js +7 -11
- package/bpk-component-icon/lg/mileage.js +8 -12
- package/bpk-component-icon/lg/minus.js +7 -11
- package/bpk-component-icon/lg/mobile.js +7 -11
- package/bpk-component-icon/lg/money.js +7 -11
- package/bpk-component-icon/lg/multiple-bookings.js +7 -11
- package/bpk-component-icon/lg/music.js +7 -11
- package/bpk-component-icon/lg/mute.js +7 -11
- package/bpk-component-icon/lg/native-android--back.js +7 -11
- package/bpk-component-icon/lg/native-android--close.js +7 -11
- package/bpk-component-icon/lg/native-android--forward.js +7 -11
- package/bpk-component-icon/lg/native-ios-close.js +7 -11
- package/bpk-component-icon/lg/navigation.js +7 -11
- package/bpk-component-icon/lg/new-window.js +8 -12
- package/bpk-component-icon/lg/news.js +7 -11
- package/bpk-component-icon/lg/night.js +7 -11
- package/bpk-component-icon/lg/not-allowed.js +7 -11
- package/bpk-component-icon/lg/onsen.js +7 -11
- package/bpk-component-icon/lg/origin.js +7 -11
- package/bpk-component-icon/lg/paid.js +7 -11
- package/bpk-component-icon/lg/paperclip.js +7 -11
- package/bpk-component-icon/lg/parking.js +7 -11
- package/bpk-component-icon/lg/passport.js +7 -11
- package/bpk-component-icon/lg/pause.js +7 -11
- package/bpk-component-icon/lg/payment-card.js +7 -11
- package/bpk-component-icon/lg/petrol.js +7 -11
- package/bpk-component-icon/lg/phone-call.js +7 -11
- package/bpk-component-icon/lg/picture.js +7 -11
- package/bpk-component-icon/lg/pin.js +7 -11
- package/bpk-component-icon/lg/plane-seat.js +8 -12
- package/bpk-component-icon/lg/play.js +7 -11
- package/bpk-component-icon/lg/plus.js +7 -11
- package/bpk-component-icon/lg/policy.js +7 -11
- package/bpk-component-icon/lg/powerplug.js +7 -11
- package/bpk-component-icon/lg/ppe.js +7 -11
- package/bpk-component-icon/lg/price-alerts.js +7 -11
- package/bpk-component-icon/lg/price-tag.js +7 -11
- package/bpk-component-icon/lg/print.js +7 -11
- package/bpk-component-icon/lg/recent-searches.js +7 -11
- package/bpk-component-icon/lg/redo.js +7 -11
- package/bpk-component-icon/lg/refresh.js +7 -11
- package/bpk-component-icon/lg/return.js +8 -12
- package/bpk-component-icon/lg/room.js +7 -11
- package/bpk-component-icon/lg/scales.js +8 -12
- package/bpk-component-icon/lg/search.js +7 -11
- package/bpk-component-icon/lg/self-service.js +7 -11
- package/bpk-component-icon/lg/send-message.js +7 -11
- package/bpk-component-icon/lg/services.js +7 -11
- package/bpk-component-icon/lg/settings.js +7 -11
- package/bpk-component-icon/lg/share--android.js +7 -11
- package/bpk-component-icon/lg/share--ios.js +8 -12
- package/bpk-component-icon/lg/share.js +7 -11
- package/bpk-component-icon/lg/single-booking.js +7 -11
- package/bpk-component-icon/lg/social-distancing.js +8 -12
- package/bpk-component-icon/lg/social-like.js +7 -11
- package/bpk-component-icon/lg/sort-down.js +7 -11
- package/bpk-component-icon/lg/sort-up.js +7 -11
- package/bpk-component-icon/lg/sort.js +7 -11
- package/bpk-component-icon/lg/speaker.js +8 -12
- package/bpk-component-icon/lg/star-half.js +7 -11
- package/bpk-component-icon/lg/star-outline.js +7 -11
- package/bpk-component-icon/lg/star.js +7 -11
- package/bpk-component-icon/lg/stops.js +7 -11
- package/bpk-component-icon/lg/swap--horizontal.js +7 -11
- package/bpk-component-icon/lg/swap--vertical.js +7 -11
- package/bpk-component-icon/lg/swap.js +7 -11
- package/bpk-component-icon/lg/taxi.js +8 -12
- package/bpk-component-icon/lg/thumbs-down.js +7 -11
- package/bpk-component-icon/lg/thumbs-up.js +7 -11
- package/bpk-component-icon/lg/tick-circle.js +7 -11
- package/bpk-component-icon/lg/tick.js +7 -11
- package/bpk-component-icon/lg/ticket-flexible.js +7 -11
- package/bpk-component-icon/lg/ticket.js +7 -11
- package/bpk-component-icon/lg/time.js +7 -11
- package/bpk-component-icon/lg/toilets.js +7 -11
- package/bpk-component-icon/lg/train.js +7 -11
- package/bpk-component-icon/lg/transmission-automatic.js +7 -11
- package/bpk-component-icon/lg/transmission-manual.js +7 -11
- package/bpk-component-icon/lg/trash.js +7 -11
- package/bpk-component-icon/lg/trend--down.js +7 -11
- package/bpk-component-icon/lg/trend--steady.js +7 -11
- package/bpk-component-icon/lg/trend--will-rise.js +7 -11
- package/bpk-component-icon/lg/trend.js +7 -11
- package/bpk-component-icon/lg/trips.js +7 -11
- package/bpk-component-icon/lg/undo.js +7 -11
- package/bpk-component-icon/lg/unlock.js +7 -11
- package/bpk-component-icon/lg/unmute.js +8 -12
- package/bpk-component-icon/lg/upgrade.js +7 -11
- package/bpk-component-icon/lg/upload.js +7 -11
- package/bpk-component-icon/lg/use-location.js +7 -11
- package/bpk-component-icon/lg/view.js +7 -11
- package/bpk-component-icon/lg/virus.js +7 -11
- package/bpk-component-icon/lg/wallet.js +8 -12
- package/bpk-component-icon/lg/weather--clear.js +7 -11
- package/bpk-component-icon/lg/weather--cloudy.js +8 -12
- package/bpk-component-icon/lg/weather--fog.js +7 -11
- package/bpk-component-icon/lg/weather--partly-cloudy.js +8 -12
- package/bpk-component-icon/lg/weather--rain.js +9 -13
- package/bpk-component-icon/lg/weather--snow.js +7 -11
- package/bpk-component-icon/lg/weather--thunderstorm.js +9 -13
- package/bpk-component-icon/lg/weather--tornado.js +7 -11
- package/bpk-component-icon/lg/weather--wind.js +7 -11
- package/bpk-component-icon/lg/weather.js +7 -11
- package/bpk-component-icon/lg/wifi.js +7 -11
- package/bpk-component-icon/lg/window--reduce.js +8 -12
- package/bpk-component-icon/lg/window.js +7 -11
- package/bpk-component-icon/lg/world--amer.js +7 -11
- package/bpk-component-icon/lg/world--apac.js +7 -11
- package/bpk-component-icon/lg/world--emea.js +8 -12
- package/bpk-component-icon/sm/accessibility.js +7 -11
- package/bpk-component-icon/sm/account--add.js +7 -11
- package/bpk-component-icon/sm/account--female.js +7 -11
- package/bpk-component-icon/sm/account--id-card.js +7 -11
- package/bpk-component-icon/sm/account--name.js +7 -11
- package/bpk-component-icon/sm/account--permit.js +7 -11
- package/bpk-component-icon/sm/account-circle.js +7 -11
- package/bpk-component-icon/sm/account.js +7 -11
- package/bpk-component-icon/sm/add-circle.js +7 -11
- package/bpk-component-icon/sm/adult.js +7 -11
- package/bpk-component-icon/sm/ai.js +7 -12
- package/bpk-component-icon/sm/aircon.js +7 -11
- package/bpk-component-icon/sm/aircraft.js +8 -12
- package/bpk-component-icon/sm/airline--multiple.js +7 -11
- package/bpk-component-icon/sm/airline.js +7 -11
- package/bpk-component-icon/sm/airports.js +7 -11
- package/bpk-component-icon/sm/alert--active.js +7 -11
- package/bpk-component-icon/sm/alert--add.js +7 -11
- package/bpk-component-icon/sm/alert--expired.js +7 -11
- package/bpk-component-icon/sm/alert--remove.js +7 -11
- package/bpk-component-icon/sm/arrow-down.js +7 -11
- package/bpk-component-icon/sm/arrow-left.js +7 -11
- package/bpk-component-icon/sm/arrow-right.js +7 -11
- package/bpk-component-icon/sm/arrow-up.js +7 -11
- package/bpk-component-icon/sm/award.js +7 -11
- package/bpk-component-icon/sm/baby-carriage.js +7 -11
- package/bpk-component-icon/sm/baggage--add.js +7 -11
- package/bpk-component-icon/sm/baggage--remove.js +7 -11
- package/bpk-component-icon/sm/baggage-cabin-add.js +7 -11
- package/bpk-component-icon/sm/baggage-cabin-not-included.js +7 -11
- package/bpk-component-icon/sm/baggage-cabin.js +7 -11
- package/bpk-component-icon/sm/baggage-checked-add.js +7 -11
- package/bpk-component-icon/sm/baggage-checked-not-included.js +7 -11
- package/bpk-component-icon/sm/baggage-checked.js +7 -11
- package/bpk-component-icon/sm/baggage-cross.js +7 -11
- package/bpk-component-icon/sm/baggage-generic.js +7 -11
- package/bpk-component-icon/sm/baggage-tick.js +7 -11
- package/bpk-component-icon/sm/baggage.js +7 -11
- package/bpk-component-icon/sm/bar.js +7 -11
- package/bpk-component-icon/sm/beach.js +8 -12
- package/bpk-component-icon/sm/beer.js +7 -11
- package/bpk-component-icon/sm/breakfast-cross.js +7 -11
- package/bpk-component-icon/sm/breakfast-tick.js +7 -11
- package/bpk-component-icon/sm/bus.js +8 -12
- package/bpk-component-icon/sm/business.js +7 -11
- package/bpk-component-icon/sm/cafe.js +7 -11
- package/bpk-component-icon/sm/calendar.js +7 -11
- package/bpk-component-icon/sm/call-back.js +8 -12
- package/bpk-component-icon/sm/camera.js +7 -11
- package/bpk-component-icon/sm/camper-van.js +8 -12
- package/bpk-component-icon/sm/car-door.js +7 -11
- package/bpk-component-icon/sm/car-wash.js +8 -12
- package/bpk-component-icon/sm/cars-flexible.js +7 -11
- package/bpk-component-icon/sm/cars.js +8 -12
- package/bpk-component-icon/sm/center-location.js +7 -11
- package/bpk-component-icon/sm/chart.js +7 -11
- package/bpk-component-icon/sm/chauffeur.js +8 -12
- package/bpk-component-icon/sm/chevron-down.js +7 -11
- package/bpk-component-icon/sm/chevron-left.js +7 -11
- package/bpk-component-icon/sm/chevron-right.js +7 -11
- package/bpk-component-icon/sm/chevron-up.js +7 -11
- package/bpk-component-icon/sm/child-seat.js +7 -11
- package/bpk-component-icon/sm/child.js +7 -11
- package/bpk-component-icon/sm/city-center.js +7 -11
- package/bpk-component-icon/sm/city.js +7 -11
- package/bpk-component-icon/sm/clean-policy.js +7 -11
- package/bpk-component-icon/sm/clean.js +8 -12
- package/bpk-component-icon/sm/cleaning-medical.js +7 -11
- package/bpk-component-icon/sm/cloakroom.js +7 -11
- package/bpk-component-icon/sm/close-circle.js +7 -11
- package/bpk-component-icon/sm/close.js +7 -11
- package/bpk-component-icon/sm/collapse.js +7 -11
- package/bpk-component-icon/sm/content--copy.js +8 -12
- package/bpk-component-icon/sm/content--event.js +7 -11
- package/bpk-component-icon/sm/content--guides.js +7 -11
- package/bpk-component-icon/sm/currency.js +7 -11
- package/bpk-component-icon/sm/data.js +8 -12
- package/bpk-component-icon/sm/deals.js +7 -11
- package/bpk-component-icon/sm/depart.js +9 -13
- package/bpk-component-icon/sm/device-mid.js +7 -11
- package/bpk-component-icon/sm/device-wide.js +7 -11
- package/bpk-component-icon/sm/direct.js +8 -12
- package/bpk-component-icon/sm/document-csv.js +7 -11
- package/bpk-component-icon/sm/document-pdf.js +7 -11
- package/bpk-component-icon/sm/dot.js +16 -0
- package/bpk-component-icon/sm/download.js +8 -12
- package/bpk-component-icon/sm/duration.js +7 -11
- package/bpk-component-icon/sm/eco-leaf.js +7 -11
- package/bpk-component-icon/sm/edit.js +7 -11
- package/bpk-component-icon/sm/education.js +8 -12
- package/bpk-component-icon/sm/electric.js +7 -11
- package/bpk-component-icon/sm/end-call.js +7 -11
- package/bpk-component-icon/sm/estimated.js +7 -11
- package/bpk-component-icon/sm/exclamation-circle.js +7 -11
- package/bpk-component-icon/sm/exclamation.js +7 -11
- package/bpk-component-icon/sm/expand.js +7 -11
- package/bpk-component-icon/sm/explore.js +9 -13
- package/bpk-component-icon/sm/face--blank.js +7 -11
- package/bpk-component-icon/sm/face--happy.js +7 -11
- package/bpk-component-icon/sm/face--sad.js +7 -11
- package/bpk-component-icon/sm/face-id.js +7 -11
- package/bpk-component-icon/sm/face-mask.js +7 -11
- package/bpk-component-icon/sm/family.js +7 -11
- package/bpk-component-icon/sm/fast-track.js +8 -12
- package/bpk-component-icon/sm/fast-train.js +8 -12
- package/bpk-component-icon/sm/filter.js +7 -11
- package/bpk-component-icon/sm/fingerprint.js +7 -11
- package/bpk-component-icon/sm/flag.js +7 -11
- package/bpk-component-icon/sm/flask.js +7 -11
- package/bpk-component-icon/sm/flight-flexible.js +7 -11
- package/bpk-component-icon/sm/flight-landing.js +9 -13
- package/bpk-component-icon/sm/flight-takeoff.js +8 -12
- package/bpk-component-icon/sm/flight.js +8 -12
- package/bpk-component-icon/sm/food.js +7 -11
- package/bpk-component-icon/sm/gears-automatic-circle.js +7 -11
- package/bpk-component-icon/sm/gears-automatic.js +7 -11
- package/bpk-component-icon/sm/gears-manual-circle.js +7 -11
- package/bpk-component-icon/sm/gears-manual.js +7 -11
- package/bpk-component-icon/sm/globe.js +7 -11
- package/bpk-component-icon/sm/grid-layout.js +7 -11
- package/bpk-component-icon/sm/headset.js +7 -11
- package/bpk-component-icon/sm/health-fitness.js +7 -11
- package/bpk-component-icon/sm/heart--outline.js +7 -11
- package/bpk-component-icon/sm/heart.js +7 -11
- package/bpk-component-icon/sm/help-circle.js +7 -11
- package/bpk-component-icon/sm/help.js +7 -11
- package/bpk-component-icon/sm/hide.js +7 -11
- package/bpk-component-icon/sm/hotel-flexible.js +7 -11
- package/bpk-component-icon/sm/hotels--disabled-facilities.js +7 -11
- package/bpk-component-icon/sm/hotels--jacuzzi.js +8 -12
- package/bpk-component-icon/sm/hotels--pets-allowed.js +7 -11
- package/bpk-component-icon/sm/hotels--smoking.js +7 -11
- package/bpk-component-icon/sm/hotels.js +7 -11
- package/bpk-component-icon/sm/infant.js +8 -12
- package/bpk-component-icon/sm/information--language-alert.js +7 -11
- package/bpk-component-icon/sm/information--language-question.js +7 -11
- package/bpk-component-icon/sm/information--language.js +7 -11
- package/bpk-component-icon/sm/information-circle.js +7 -11
- package/bpk-component-icon/sm/information.js +7 -11
- package/bpk-component-icon/sm/insurance.js +7 -11
- package/bpk-component-icon/sm/key.js +7 -11
- package/bpk-component-icon/sm/keypad.js +7 -11
- package/bpk-component-icon/sm/landmark.js +7 -11
- package/bpk-component-icon/sm/language.js +7 -11
- package/bpk-component-icon/sm/legroom--extra.js +8 -12
- package/bpk-component-icon/sm/legroom--normal.js +8 -12
- package/bpk-component-icon/sm/legroom--reduced.js +8 -12
- package/bpk-component-icon/sm/leisure.js +7 -11
- package/bpk-component-icon/sm/lightning.js +7 -11
- package/bpk-component-icon/sm/list.js +7 -11
- package/bpk-component-icon/sm/location.js +7 -11
- package/bpk-component-icon/sm/lock.js +7 -11
- package/bpk-component-icon/sm/logout.js +8 -12
- package/bpk-component-icon/sm/long-arrow-down.js +7 -11
- package/bpk-component-icon/sm/long-arrow-left.js +7 -11
- package/bpk-component-icon/sm/long-arrow-right.js +7 -11
- package/bpk-component-icon/sm/long-arrow-up.js +7 -11
- package/bpk-component-icon/sm/lounge.js +7 -11
- package/bpk-component-icon/sm/luggageall.js +7 -11
- package/bpk-component-icon/sm/mail.js +8 -12
- package/bpk-component-icon/sm/map.js +7 -11
- package/bpk-component-icon/sm/meal.js +7 -11
- package/bpk-component-icon/sm/media.js +7 -11
- package/bpk-component-icon/sm/menu--horizontal.js +7 -11
- package/bpk-component-icon/sm/menu--vertical.js +7 -11
- package/bpk-component-icon/sm/menu.js +7 -11
- package/bpk-component-icon/sm/mileage.js +8 -12
- package/bpk-component-icon/sm/minus.js +7 -11
- package/bpk-component-icon/sm/mobile.js +7 -11
- package/bpk-component-icon/sm/money.js +7 -11
- package/bpk-component-icon/sm/multiple-bookings.js +7 -11
- package/bpk-component-icon/sm/music.js +7 -11
- package/bpk-component-icon/sm/mute.js +7 -11
- package/bpk-component-icon/sm/native-android--back.js +7 -11
- package/bpk-component-icon/sm/native-android--close.js +7 -11
- package/bpk-component-icon/sm/native-android--forward.js +7 -11
- package/bpk-component-icon/sm/native-ios-close.js +7 -11
- package/bpk-component-icon/sm/navigation.js +7 -11
- package/bpk-component-icon/sm/new-window.js +10 -14
- package/bpk-component-icon/sm/news.js +7 -11
- package/bpk-component-icon/sm/night.js +7 -11
- package/bpk-component-icon/sm/not-allowed.js +7 -11
- package/bpk-component-icon/sm/onsen.js +8 -12
- package/bpk-component-icon/sm/origin.js +7 -11
- package/bpk-component-icon/sm/paid.js +7 -11
- package/bpk-component-icon/sm/paperclip.js +7 -11
- package/bpk-component-icon/sm/parking.js +7 -11
- package/bpk-component-icon/sm/passport.js +7 -11
- package/bpk-component-icon/sm/pause.js +7 -11
- package/bpk-component-icon/sm/payment-card.js +7 -11
- package/bpk-component-icon/sm/petrol.js +7 -11
- package/bpk-component-icon/sm/phone-call.js +7 -11
- package/bpk-component-icon/sm/picture.js +7 -11
- package/bpk-component-icon/sm/pin.js +7 -11
- package/bpk-component-icon/sm/plane-seat.js +8 -12
- package/bpk-component-icon/sm/play.js +7 -11
- package/bpk-component-icon/sm/plus.js +7 -11
- package/bpk-component-icon/sm/policy.js +7 -11
- package/bpk-component-icon/sm/powerplug.js +7 -11
- package/bpk-component-icon/sm/ppe.js +7 -11
- package/bpk-component-icon/sm/price-alerts.js +7 -11
- package/bpk-component-icon/sm/price-tag.js +7 -11
- package/bpk-component-icon/sm/print.js +7 -11
- package/bpk-component-icon/sm/recent-searches.js +7 -11
- package/bpk-component-icon/sm/redo.js +7 -11
- package/bpk-component-icon/sm/refresh.js +7 -11
- package/bpk-component-icon/sm/return.js +9 -13
- package/bpk-component-icon/sm/room.js +7 -11
- package/bpk-component-icon/sm/scales.js +7 -11
- package/bpk-component-icon/sm/search.js +7 -11
- package/bpk-component-icon/sm/self-service.js +7 -11
- package/bpk-component-icon/sm/send-message.js +7 -11
- package/bpk-component-icon/sm/services.js +7 -11
- package/bpk-component-icon/sm/settings.js +7 -11
- package/bpk-component-icon/sm/share--android.js +7 -11
- package/bpk-component-icon/sm/share--ios.js +8 -12
- package/bpk-component-icon/sm/share.js +7 -11
- package/bpk-component-icon/sm/single-booking.js +7 -11
- package/bpk-component-icon/sm/social-distancing.js +8 -12
- package/bpk-component-icon/sm/social-like.js +7 -11
- package/bpk-component-icon/sm/sort-down.js +7 -11
- package/bpk-component-icon/sm/sort-up.js +7 -11
- package/bpk-component-icon/sm/sort.js +7 -11
- package/bpk-component-icon/sm/speaker.js +7 -11
- package/bpk-component-icon/sm/star-half.js +7 -11
- package/bpk-component-icon/sm/star-outline.js +7 -11
- package/bpk-component-icon/sm/star.js +7 -11
- package/bpk-component-icon/sm/stops.js +7 -11
- package/bpk-component-icon/sm/swap--horizontal.js +7 -11
- package/bpk-component-icon/sm/swap--vertical.js +7 -11
- package/bpk-component-icon/sm/swap.js +7 -11
- package/bpk-component-icon/sm/taxi.js +8 -12
- package/bpk-component-icon/sm/thumbs-down.js +7 -11
- package/bpk-component-icon/sm/thumbs-up.js +7 -11
- package/bpk-component-icon/sm/tick-circle.js +7 -11
- package/bpk-component-icon/sm/tick.js +7 -11
- package/bpk-component-icon/sm/ticket-flexible.js +7 -11
- package/bpk-component-icon/sm/ticket.js +7 -11
- package/bpk-component-icon/sm/time.js +7 -11
- package/bpk-component-icon/sm/toilets.js +7 -11
- package/bpk-component-icon/sm/train.js +7 -11
- package/bpk-component-icon/sm/transmission-automatic.js +7 -11
- package/bpk-component-icon/sm/transmission-manual.js +7 -11
- package/bpk-component-icon/sm/trash.js +7 -11
- package/bpk-component-icon/sm/trend--down.js +7 -11
- package/bpk-component-icon/sm/trend--steady.js +7 -11
- package/bpk-component-icon/sm/trend--will-rise.js +7 -11
- package/bpk-component-icon/sm/trend.js +7 -11
- package/bpk-component-icon/sm/trips.js +7 -11
- package/bpk-component-icon/sm/undo.js +7 -11
- package/bpk-component-icon/sm/unlock.js +7 -11
- package/bpk-component-icon/sm/unmute.js +8 -12
- package/bpk-component-icon/sm/upgrade.js +7 -11
- package/bpk-component-icon/sm/upload.js +7 -11
- package/bpk-component-icon/sm/use-location.js +7 -11
- package/bpk-component-icon/sm/view.js +7 -11
- package/bpk-component-icon/sm/virus.js +7 -11
- package/bpk-component-icon/sm/wallet.js +7 -11
- package/bpk-component-icon/sm/weather--clear.js +7 -11
- package/bpk-component-icon/sm/weather--cloudy.js +8 -12
- package/bpk-component-icon/sm/weather--fog.js +7 -11
- package/bpk-component-icon/sm/weather--partly-cloudy.js +7 -11
- package/bpk-component-icon/sm/weather--rain.js +8 -12
- package/bpk-component-icon/sm/weather--snow.js +7 -11
- package/bpk-component-icon/sm/weather--thunderstorm.js +9 -13
- package/bpk-component-icon/sm/weather--tornado.js +7 -11
- package/bpk-component-icon/sm/weather--wind.js +8 -12
- package/bpk-component-icon/sm/weather.js +7 -11
- package/bpk-component-icon/sm/wifi.js +7 -11
- package/bpk-component-icon/sm/window--reduce.js +8 -12
- package/bpk-component-icon/sm/window.js +7 -11
- package/bpk-component-icon/sm/world--amer.js +7 -11
- package/bpk-component-icon/sm/world--apac.js +7 -11
- package/bpk-component-icon/sm/world--emea.js +7 -11
- package/bpk-component-icon/src/classNameModifierHOCFactory.d.ts +6 -29
- package/bpk-component-icon/src/withAlignment.d.ts +3 -26
- package/bpk-component-icon/src/withDescription.d.ts +1 -23
- package/bpk-component-icon/src/withRtlSupport.d.ts +7 -27
- package/bpk-component-image/index.d.ts +3 -21
- package/bpk-component-image/src/BpkBackgroundImage.d.ts +2 -20
- package/bpk-component-image/src/BpkBackgroundImage.js +0 -4
- package/bpk-component-image/src/BpkImage.d.ts +0 -18
- package/bpk-component-image/src/BpkImage.js +0 -4
- package/bpk-component-image/src/BpkImageBorderRadiusStyles.d.ts +0 -18
- package/bpk-component-image/src/withLazyLoading.d.ts +0 -18
- package/bpk-component-image/src/withLoadingBehavior.d.ts +0 -18
- package/bpk-component-info-banner/index.d.ts +1 -26
- package/bpk-component-info-banner/src/AnimateAndFade.d.ts +23 -52
- package/bpk-component-info-banner/src/AnimateAndFade.js +0 -2
- package/bpk-component-info-banner/src/BpkInfoBanner.d.ts +1 -26
- package/bpk-component-info-banner/src/BpkInfoBannerDismissable.d.ts +3 -25
- package/bpk-component-info-banner/src/BpkInfoBannerExpandable.d.ts +7 -33
- package/bpk-component-info-banner/src/BpkInfoBannerInner.d.ts +13 -52
- package/bpk-component-info-banner/src/BpkInfoBannerInner.js +0 -5
- package/bpk-component-info-banner/src/common-types.d.ts +20 -39
- package/bpk-component-info-banner/src/withBannerAlertState.d.ts +86 -159
- package/bpk-component-input/index.d.ts +1 -19
- package/bpk-component-input/src/BpkInput.d.ts +0 -18
- package/bpk-component-input/src/BpkInput.js +14 -8
- package/bpk-component-input/src/BpkInput.module.css +1 -1
- package/bpk-component-input/src/common-types.d.ts +0 -18
- package/bpk-component-input/src/themeAttributes.d.ts +2 -0
- package/bpk-component-input/src/withOpenEvents.d.ts +2 -20
- package/bpk-component-input/src/withOpenEvents.js +7 -15
- package/bpk-component-list/src/BpkList.js +3 -6
- package/bpk-component-loading-button/src/BpkLoadingButton.d.ts +60 -0
- package/bpk-component-loading-button/src/BpkLoadingButton.js +43 -23
- package/bpk-component-loading-button/src/BpkLoadingButton.module.css +1 -1
- package/bpk-component-map/src/BpkBasicMapMarker.d.ts +12 -25
- package/bpk-component-map/src/BpkBasicMapMarker.js +11 -11
- package/bpk-component-map/src/BpkMap.js +2 -1
- package/bpk-component-map/src/BpkPriceMarkerV2/BpkPriceMarker.d.ts +0 -18
- package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.js +1 -12
- package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.module.css +1 -1
- package/bpk-component-modal/index.d.ts +4 -21
- package/bpk-component-modal/src/BpkModal.d.ts +2 -20
- package/bpk-component-modal/src/BpkModal.js +1 -4
- package/bpk-component-modal/src/BpkModalInner.d.ts +6 -20
- package/bpk-component-modal/src/BpkModalV2/BpkModal.d.ts +14 -34
- package/bpk-component-modal/src/themeAttributes.d.ts +2 -0
- package/bpk-component-navigation-bar/index.d.ts +7 -0
- package/bpk-component-navigation-bar/src/BpkNavigationBar.d.ts +21 -0
- package/bpk-component-navigation-bar/src/BpkNavigationBar.js +8 -2
- package/bpk-component-navigation-bar/src/BpkNavigationBar.module.css +1 -1
- package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.d.ts +12 -0
- package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.js +7 -10
- package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.d.ts +13 -0
- package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.js +8 -11
- package/bpk-component-navigation-bar/src/themeAttributes.d.ts +2 -0
- package/bpk-component-nudger/index.d.ts +1 -19
- package/bpk-component-nudger/src/BpkConfigurableNudger.d.ts +0 -18
- package/bpk-component-nudger/src/BpkConfigurableNudger.js +4 -26
- package/bpk-component-nudger/src/BpkNudger.d.ts +0 -18
- package/bpk-component-nudger/src/BpkNudger.js +9 -13
- package/bpk-component-nudger/src/BpkNudger.module.css +1 -1
- package/bpk-component-nudger/src/common-types.d.ts +0 -18
- package/bpk-component-nudger/src/themeAttributes.d.ts +2 -0
- package/bpk-component-nudger/src/themeAttributes.js +0 -1
- package/bpk-component-overlay/index.d.ts +1 -23
- package/bpk-component-overlay/src/BpkOverlay.d.ts +0 -18
- package/bpk-component-pagination/src/BpkPaginationNudger.js +14 -25
- package/bpk-component-pagination/src/BpkPaginationNudger.module.css +1 -1
- package/bpk-component-phone-input/src/BpkPhoneInput.js +12 -14
- package/bpk-component-popover/index.d.ts +5 -0
- package/bpk-component-popover/src/BpkPopover.d.ts +26 -0
- package/bpk-component-popover/src/BpkPopover.js +140 -74
- package/bpk-component-popover/src/BpkPopover.module.css +1 -1
- package/bpk-component-popover/src/constants.d.ts +5 -0
- package/bpk-component-popover/src/constants.js +3 -1
- package/bpk-component-popover/src/themeAttributes.d.ts +2 -0
- package/bpk-component-price/src/BpkPrice.js +24 -28
- package/bpk-component-price/src/BpkPrice.module.css +1 -1
- package/bpk-component-rtl-toggle/index.d.ts +0 -19
- package/bpk-component-rtl-toggle/src/BpkRtlToggle.d.ts +8 -34
- package/bpk-component-rtl-toggle/src/BpkRtlToggle.js +1 -8
- package/bpk-component-rtl-toggle/src/updateOnDirectionChange.d.ts +53 -146
- package/bpk-component-rtl-toggle/src/utils.d.ts +3 -21
- package/bpk-component-scrollable-calendar/index.d.ts +0 -18
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendar.d.ts +10 -478
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarDate.d.ts +0 -18
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.d.ts +0 -18
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.js +6 -7
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.module.css +1 -1
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.d.ts +3 -18
- package/bpk-component-scrollable-calendar/src/utils.d.ts +0 -18
- package/bpk-component-section-header/index.d.ts +0 -19
- package/bpk-component-section-header/src/BpkSectionHeader.d.ts +7 -25
- package/bpk-component-section-header/src/BpkSectionHeader.js +5 -10
- package/bpk-component-section-header/src/BpkSectionHeader.module.css +1 -1
- package/bpk-component-section-list/src/BpkSectionListItem.js +6 -10
- package/bpk-component-section-list/src/BpkSectionListItem.module.css +1 -1
- package/bpk-component-skeleton/index.d.ts +3 -0
- package/{bpk-component-datepicker/src/BpkDatepicker.module.css → bpk-component-skeleton/index.js} +8 -5
- package/bpk-component-skeleton/src/BpkBaseSkeleton.d.d.ts +10 -0
- package/bpk-component-skeleton/src/BpkBaseSkeleton.d.ts +8 -0
- package/{bpk-component-input/src/BpkClearButton.module.css → bpk-component-skeleton/src/BpkBaseSkeleton.js} +17 -5
- package/bpk-component-skeleton/src/BpkBaseSkeleton.module.css +18 -0
- package/bpk-component-skeleton/src/BpkSkeleton.d.d.ts +4 -0
- package/bpk-component-skeleton/src/BpkSkeleton.d.ts +4 -0
- package/bpk-component-skeleton/src/BpkSkeleton.js +38 -0
- package/bpk-component-skeleton/src/BpkSkeleton.module.css +18 -0
- package/bpk-component-skeleton/src/common-types.d.d.ts +37 -0
- package/bpk-component-skeleton/src/common-types.d.ts +37 -0
- package/{bpk-component-input/src/BpkClearButton.d.ts → bpk-component-skeleton/src/common-types.js} +15 -6
- package/bpk-component-slider/index.d.ts +4 -0
- package/bpk-component-slider/src/BpkSlider.d.ts +15 -0
- package/bpk-component-slider/src/BpkSlider.js +48 -37
- package/bpk-component-slider/src/BpkSlider.module.css +1 -1
- package/bpk-component-slider/src/themeAttributes.d.ts +2 -0
- package/bpk-component-spinner/index.d.ts +6 -0
- package/bpk-component-spinner/index.js +3 -1
- package/bpk-component-spinner/src/BpkExtraLargeSpinner.d.ts +19 -0
- package/bpk-component-spinner/src/BpkExtraLargeSpinner.js +8 -9
- package/bpk-component-spinner/src/BpkLargeSpinner.d.ts +22 -0
- package/bpk-component-spinner/src/BpkLargeSpinner.js +8 -9
- package/bpk-component-spinner/src/BpkSpinner.d.ts +22 -0
- package/bpk-component-spinner/src/BpkSpinner.js +8 -9
- package/bpk-component-spinner/src/BpkSpinner.module.css +1 -1
- package/bpk-component-spinner/src/spinnerTypes.d.ts +6 -0
- package/bpk-component-spinner/src/themeAttributes.d.ts +2 -0
- package/bpk-component-star-rating/src/BpkInteractiveStar.js +6 -7
- package/bpk-component-star-rating/src/BpkStar.js +14 -21
- package/bpk-component-star-rating/src/BpkStar.module.css +1 -1
- package/bpk-component-swap-button/index.d.ts +0 -18
- package/bpk-component-swap-button/src/BpkSwapButton.d.ts +2 -23
- package/bpk-component-swap-button/src/BpkSwapButton.js +0 -2
- package/bpk-component-text/index.d.ts +0 -18
- package/bpk-component-text/src/BpkText.d.ts +2 -20
- package/bpk-component-theme-toggle/src/BpkThemeToggle.js +5 -6
- package/bpk-component-tooltip/index.d.ts +1 -19
- package/bpk-component-tooltip/src/BpkTooltip.d.ts +1 -19
- package/bpk-component-tooltip/src/BpkTooltipPortal.d.ts +1 -19
- package/bpk-component-tooltip/src/constants.d.ts +0 -18
- package/bpk-mixins/_forms.scss +16 -0
- package/bpk-react-utils/index.d.ts +4 -55
- package/bpk-react-utils/src/BpkDialogWrapper/BpkDialogWrapper.d.ts +23 -44
- package/bpk-react-utils/src/Portal.d.ts +1 -19
- package/bpk-react-utils/src/TransitionInitialMount.d.ts +0 -18
- package/bpk-react-utils/src/cssModules.d.ts +0 -18
- package/bpk-react-utils/src/deviceDetection.d.ts +0 -18
- package/bpk-react-utils/src/isRTL.d.ts +0 -18
- package/bpk-react-utils/src/withDefaultProps.d.ts +0 -18
- package/bpk-react-utils/src/wrapDisplayName.d.ts +0 -18
- package/bpk-scrim-utils/index.d.ts +0 -18
- package/bpk-scrim-utils/src/BpkScrim.d.ts +0 -18
- package/bpk-scrim-utils/src/scroll-utils.d.ts +0 -18
- package/bpk-scrim-utils/src/withScrim.d.ts +13 -19
- package/bpk-scrim-utils/src/withScrimmedPortal.d.ts +2 -20
- package/package.json +4 -4
- package/unstable__bpk-mixins/_forms.scss +16 -0
- package/bpk-component-calendar/test-utils.d.ts +0 -56
- package/bpk-component-flare/src/__generated__/corner-radius.d.ts +0 -6
- package/bpk-component-flare/src/__generated__/pointer.d.ts +0 -6
- package/bpk-component-input/src/BpkClearButton.js +0 -53
- package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.module.css +0 -18
- package/bpk-component-popover/src/PopperUtils.js +0 -224
- package/bpk-component-scrollable-calendar/test-utils.d.ts +0 -52
|
@@ -1,21 +1,3 @@
|
|
|
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
1
|
import type { ComponentType, ReactElement, UIEvent, ComponentProps } from 'react';
|
|
20
2
|
export type WithOpenEventsProps = {
|
|
21
3
|
/**
|
|
@@ -45,8 +27,8 @@ type EventHandlers = {
|
|
|
45
27
|
'aria-readonly'?: boolean;
|
|
46
28
|
};
|
|
47
29
|
type InputProps = ComponentProps<'input'> & Omit<EventHandlers, 'readOnly' | 'aria-readonly'>;
|
|
48
|
-
declare const withOpenEvents: <P extends object>(
|
|
49
|
-
new (props: P & WithOpenEventsProps &
|
|
30
|
+
declare const withOpenEvents: <P extends object>(WithOpenEventsInputComponent: ComponentType<P>) => {
|
|
31
|
+
new (props: P & WithOpenEventsProps & InputProps): {
|
|
50
32
|
focusCanOpen: boolean;
|
|
51
33
|
handleTouchEnd: (event: UIEvent) => void;
|
|
52
34
|
handleFocus: () => void;
|
|
@@ -17,10 +17,8 @@
|
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
import { Component } from 'react';
|
|
20
|
-
import {
|
|
21
|
-
import STYLES from "./BpkInput.module.css";
|
|
20
|
+
import { wrapDisplayName } from "../../bpk-react-utils";
|
|
22
21
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
23
|
-
const getClassName = cssModules(STYLES);
|
|
24
22
|
const KEYCODES = {
|
|
25
23
|
ENTER: 'Enter',
|
|
26
24
|
SPACEBAR: 'Space'
|
|
@@ -41,7 +39,7 @@ const withEventHandler = (fn, eventHandler) => e => {
|
|
|
41
39
|
eventHandler(e);
|
|
42
40
|
}
|
|
43
41
|
};
|
|
44
|
-
const withOpenEvents =
|
|
42
|
+
const withOpenEvents = WithOpenEventsInputComponent => {
|
|
45
43
|
class WithOpenEvents extends Component {
|
|
46
44
|
static defaultProps = {
|
|
47
45
|
// Custom props
|
|
@@ -101,10 +99,6 @@ const withOpenEvents = InputComponent => {
|
|
|
101
99
|
onTouchEnd,
|
|
102
100
|
...rest
|
|
103
101
|
} = this.props;
|
|
104
|
-
const classNames = [getClassName('bpk-input--with-open-events')];
|
|
105
|
-
if (className) {
|
|
106
|
-
classNames.push(className);
|
|
107
|
-
}
|
|
108
102
|
const eventHandlers = {
|
|
109
103
|
onClick: withEventHandler(onOpen, onClick),
|
|
110
104
|
// @ts-expect-error for some reason the type KeyboardEvent was not being recognized as
|
|
@@ -122,17 +116,15 @@ const withOpenEvents = InputComponent => {
|
|
|
122
116
|
// Needed on mobile as some Android devices do not trigger onClick or onTouch when TalkBack is active but do trigger onFocus
|
|
123
117
|
eventHandlers.onFocus = withEventHandler(this.handleFocus, onFocus);
|
|
124
118
|
eventHandlers.onBlur = withEventHandler(this.handleBlur, onBlur);
|
|
125
|
-
return /*#__PURE__*/_jsx(
|
|
126
|
-
|
|
127
|
-
// eslint-disable-next-line @skyscanner/rules/forbid-component-props
|
|
128
|
-
, {
|
|
129
|
-
className: classNames.join(' '),
|
|
119
|
+
return /*#__PURE__*/_jsx(WithOpenEventsInputComponent, {
|
|
120
|
+
className: className,
|
|
130
121
|
...eventHandlers,
|
|
131
|
-
...rest
|
|
122
|
+
...rest,
|
|
123
|
+
"data-openable": true // This allows for conditional styling within BpkInput
|
|
132
124
|
});
|
|
133
125
|
}
|
|
134
126
|
}
|
|
135
|
-
WithOpenEvents.displayName = wrapDisplayName(
|
|
127
|
+
WithOpenEvents.displayName = wrapDisplayName(WithOpenEventsInputComponent, 'withOpenEvents');
|
|
136
128
|
return WithOpenEvents;
|
|
137
129
|
};
|
|
138
130
|
export default withOpenEvents;
|
|
@@ -28,15 +28,12 @@ const BpkList = props => {
|
|
|
28
28
|
ordered,
|
|
29
29
|
title
|
|
30
30
|
} = props;
|
|
31
|
-
const
|
|
31
|
+
const ListElements = ordered ? 'ol' : 'ul';
|
|
32
32
|
const classNames = getClassName('bpk-list', className);
|
|
33
|
-
return /*#__PURE__*/_jsx(
|
|
33
|
+
return /*#__PURE__*/_jsx(ListElements, {
|
|
34
34
|
"aria-label": ariaLabel,
|
|
35
35
|
"aria-labelledby": ariaLabelledby,
|
|
36
|
-
title: title
|
|
37
|
-
// TODO: className to be removed
|
|
38
|
-
// eslint-disable-next-line @skyscanner/rules/forbid-component-props
|
|
39
|
-
,
|
|
36
|
+
title: title,
|
|
40
37
|
className: classNames,
|
|
41
38
|
children: children
|
|
42
39
|
});
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import type { ReactElement, ReactNode } from 'react';
|
|
3
|
+
export declare const ICON_POSITION: {
|
|
4
|
+
LEADING: string;
|
|
5
|
+
TRAILING: string;
|
|
6
|
+
};
|
|
7
|
+
type LoadingProps = {
|
|
8
|
+
featured?: boolean;
|
|
9
|
+
secondaryOnDark?: boolean;
|
|
10
|
+
primaryOnLight?: boolean;
|
|
11
|
+
primaryOnDark?: boolean;
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
className?: string;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
secondary?: boolean;
|
|
16
|
+
destructive?: boolean;
|
|
17
|
+
large?: boolean;
|
|
18
|
+
link?: boolean;
|
|
19
|
+
linkOnDark?: boolean;
|
|
20
|
+
loading: boolean;
|
|
21
|
+
iconOnly: boolean;
|
|
22
|
+
icon?: ReactElement<any>;
|
|
23
|
+
iconPosition: string;
|
|
24
|
+
iconDisabled?: ReactElement<any>;
|
|
25
|
+
iconLoading?: ReactElement<any>;
|
|
26
|
+
};
|
|
27
|
+
declare const BpkLoadingButton: {
|
|
28
|
+
(props: LoadingProps): JSX.Element;
|
|
29
|
+
propTypes: {
|
|
30
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
31
|
+
className: PropTypes.Requireable<string>;
|
|
32
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
33
|
+
secondary: PropTypes.Requireable<boolean>;
|
|
34
|
+
destructive: PropTypes.Requireable<boolean>;
|
|
35
|
+
link: PropTypes.Requireable<boolean>;
|
|
36
|
+
linkOnDark: PropTypes.Requireable<boolean>;
|
|
37
|
+
loading: PropTypes.Requireable<boolean>;
|
|
38
|
+
iconOnly: PropTypes.Requireable<boolean>;
|
|
39
|
+
icon: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
40
|
+
iconPosition: PropTypes.Requireable<string>;
|
|
41
|
+
iconDisabled: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
42
|
+
iconLoading: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
43
|
+
};
|
|
44
|
+
defaultProps: {
|
|
45
|
+
className: null;
|
|
46
|
+
disabled: boolean;
|
|
47
|
+
secondary: boolean;
|
|
48
|
+
destructive: boolean;
|
|
49
|
+
large: boolean;
|
|
50
|
+
link: boolean;
|
|
51
|
+
linkOnDark: boolean;
|
|
52
|
+
loading: boolean;
|
|
53
|
+
iconOnly: boolean;
|
|
54
|
+
icon: null;
|
|
55
|
+
iconPosition: string;
|
|
56
|
+
iconDisabled: null;
|
|
57
|
+
iconLoading: null;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
export default BpkLoadingButton;
|
|
@@ -14,8 +14,10 @@
|
|
|
14
14
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
15
|
* See the License for the specific language governing permissions and
|
|
16
16
|
* limitations under the License.
|
|
17
|
-
*/
|
|
18
|
-
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
import PropTypes from 'prop-types';
|
|
20
|
+
import { BUTTON_TYPES, BpkButtonV2, SIZE_TYPES } from "../../bpk-component-button";
|
|
19
21
|
import { withButtonAlignment, withLargeButtonAlignment, withRtlSupport } from "../../bpk-component-icon";
|
|
20
22
|
import ArrowIconLg from "../../bpk-component-icon/lg/long-arrow-right";
|
|
21
23
|
import ArrowIconSm from "../../bpk-component-icon/sm/long-arrow-right";
|
|
@@ -58,7 +60,6 @@ const getLoadingIcon = props => {
|
|
|
58
60
|
const BpkLoadingButton = props => {
|
|
59
61
|
const {
|
|
60
62
|
children,
|
|
61
|
-
className,
|
|
62
63
|
disabled,
|
|
63
64
|
icon,
|
|
64
65
|
iconDisabled,
|
|
@@ -66,8 +67,6 @@ const BpkLoadingButton = props => {
|
|
|
66
67
|
iconOnly,
|
|
67
68
|
iconPosition,
|
|
68
69
|
large,
|
|
69
|
-
link,
|
|
70
|
-
linkOnDark,
|
|
71
70
|
loading,
|
|
72
71
|
...rest
|
|
73
72
|
} = props;
|
|
@@ -76,28 +75,49 @@ const BpkLoadingButton = props => {
|
|
|
76
75
|
const buttonIcon = getPropsIcon(props) || getEnabledIcon(large);
|
|
77
76
|
const [child0, child1, child2] = iconPosition === ICON_POSITION.LEADING ? [buttonIcon, spacer, children] : [children, spacer, buttonIcon];
|
|
78
77
|
const loadingIcon = getLoadingIcon(props);
|
|
79
|
-
const
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
78
|
+
const iconClassNames = getClassName('bpk-loading-button__icon');
|
|
79
|
+
let type = BUTTON_TYPES.primary;
|
|
80
|
+
if (props.link) {
|
|
81
|
+
type = BUTTON_TYPES.link;
|
|
82
|
+
}
|
|
83
|
+
if (props.linkOnDark) {
|
|
84
|
+
type = BUTTON_TYPES.linkOnDark;
|
|
85
|
+
}
|
|
86
|
+
if (props.featured) {
|
|
87
|
+
type = BUTTON_TYPES.featured;
|
|
88
|
+
}
|
|
89
|
+
if (props.destructive) {
|
|
90
|
+
type = BUTTON_TYPES.destructive;
|
|
91
|
+
}
|
|
92
|
+
if (props.secondaryOnDark) {
|
|
93
|
+
type = BUTTON_TYPES.secondaryOnDark;
|
|
94
|
+
}
|
|
95
|
+
if (props.secondary) {
|
|
96
|
+
type = BUTTON_TYPES.secondary;
|
|
97
|
+
}
|
|
98
|
+
if (props.primaryOnLight) {
|
|
99
|
+
type = BUTTON_TYPES.primaryOnLight;
|
|
100
|
+
}
|
|
101
|
+
if (props.primaryOnDark) {
|
|
102
|
+
type = BUTTON_TYPES.primaryOnDark;
|
|
103
|
+
}
|
|
104
|
+
return /*#__PURE__*/_jsx(BpkButtonV2, {
|
|
105
|
+
iconOnly: iconOnly,
|
|
106
|
+
disabled: showBtnDisabled,
|
|
107
|
+
size: large ? SIZE_TYPES.large : SIZE_TYPES.small,
|
|
108
|
+
type: type,
|
|
109
|
+
...rest,
|
|
110
|
+
children: /*#__PURE__*/_jsxs("div", {
|
|
111
|
+
className: getClassName('bpk-loading-button__container'),
|
|
95
112
|
children: [loading && /*#__PURE__*/_jsx("span", {
|
|
96
113
|
className: iconClassNames,
|
|
97
114
|
children: loadingIcon
|
|
98
|
-
}),
|
|
115
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
116
|
+
className: getClassName(loading ? "bpk-loading-button--hidden" : "bpk-loading-button--visible"),
|
|
117
|
+
children: [child0, child1, child2]
|
|
118
|
+
})]
|
|
99
119
|
})
|
|
100
|
-
);
|
|
120
|
+
});
|
|
101
121
|
};
|
|
102
122
|
BpkLoadingButton.propTypes = {
|
|
103
123
|
children: PropTypes.node.isRequired,
|
|
@@ -15,4 +15,4 @@
|
|
|
15
15
|
* See the License for the specific language governing permissions and
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
|
-
.bpk-loading-
|
|
18
|
+
.bpk-loading-button__container{display:inline-flex;justify-content:center;align-items:center}.bpk-loading-button__icon{position:absolute;display:inline-flex}.bpk-loading-button--hidden{visibility:hidden}.bpk-loading-button--visible{visibility:visible}
|
|
@@ -1,28 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
import type { Node } from 'react';
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
19
3
|
import { type LatLong } from './common-types';
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
4
|
+
type Props = {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
position: LatLong;
|
|
7
|
+
};
|
|
8
|
+
declare const BpkBasicMapMarker: {
|
|
9
|
+
(props: Props): JSX.Element;
|
|
10
|
+
propTypes: {
|
|
11
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
12
|
+
position: any;
|
|
13
|
+
};
|
|
24
14
|
};
|
|
25
|
-
|
|
26
|
-
declare const BpkBasicMapMarker: ({ children, position }: Props) => JSX.Element;
|
|
27
|
-
|
|
28
15
|
export default BpkBasicMapMarker;
|
|
@@ -14,8 +14,12 @@
|
|
|
14
14
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
15
|
* See the License for the specific language governing permissions and
|
|
16
16
|
* limitations under the License.
|
|
17
|
-
*/
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
import PropTypes from 'prop-types';
|
|
20
|
+
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
18
21
|
import BpkOverlayView from "./BpkOverlayView";
|
|
22
|
+
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
19
23
|
import { LatLongPropType } from "./common-types";
|
|
20
24
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
21
25
|
const getPixelPositionOffset = (width, height) => ({
|
|
@@ -28,16 +32,12 @@ const BpkBasicMapMarker = props => {
|
|
|
28
32
|
position,
|
|
29
33
|
...rest
|
|
30
34
|
} = props;
|
|
31
|
-
return (
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
...rest,
|
|
38
|
-
children: children
|
|
39
|
-
})
|
|
40
|
-
);
|
|
35
|
+
return /*#__PURE__*/_jsx(BpkOverlayView, {
|
|
36
|
+
position: position,
|
|
37
|
+
getPixelPositionOffset: getPixelPositionOffset,
|
|
38
|
+
...rest,
|
|
39
|
+
children: children
|
|
40
|
+
});
|
|
41
41
|
};
|
|
42
42
|
BpkBasicMapMarker.propTypes = {
|
|
43
43
|
children: PropTypes.node.isRequired,
|
|
@@ -84,7 +84,8 @@ const BpkMap = props => {
|
|
|
84
84
|
rotateControl: false,
|
|
85
85
|
clickableIcons: false,
|
|
86
86
|
// https://developers.google.com/maps/documentation/javascript/reference/map#MapTypeStyle
|
|
87
|
-
styles: mapOptionStyles
|
|
87
|
+
styles: mapOptionStyles,
|
|
88
|
+
scaleControl: true
|
|
88
89
|
},
|
|
89
90
|
onDragEnd: () => {
|
|
90
91
|
if (ref && ref.current && onRegionChange) {
|
|
@@ -1,21 +1,3 @@
|
|
|
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
1
|
import type { MouseEvent, ReactNode } from 'react';
|
|
20
2
|
export declare const MARKER_STATUSES: {
|
|
21
3
|
readonly unselected: "unselected";
|
|
@@ -42,14 +42,6 @@ const computeScrollIndicatorClassName = (scrollerEl, leadingIndicatorClassName =
|
|
|
42
42
|
const scrollValue = rtl ? -Math.floor(scrollLeft) : Math.ceil(scrollLeft);
|
|
43
43
|
const showLeadingIndicator = scrollValue > 0;
|
|
44
44
|
const showTrailingIndicator = scrollValue < scrollWidth - offsetWidth;
|
|
45
|
-
const showLeftIndicator = rtl ? showTrailingIndicator : showLeadingIndicator;
|
|
46
|
-
const showRightIndicator = rtl ? showLeadingIndicator : showTrailingIndicator;
|
|
47
|
-
if (showLeftIndicator) {
|
|
48
|
-
classNames.push(getClassName('bpk-mobile-scroll-container--left-indicator'));
|
|
49
|
-
}
|
|
50
|
-
if (showRightIndicator) {
|
|
51
|
-
classNames.push(getClassName('bpk-mobile-scroll-container--right-indicator'));
|
|
52
|
-
}
|
|
53
45
|
if (showLeadingIndicator && leadingIndicatorClassName) {
|
|
54
46
|
classNames.push(leadingIndicatorClassName);
|
|
55
47
|
}
|
|
@@ -162,10 +154,7 @@ class BpkMobileScrollContainer extends Component {
|
|
|
162
154
|
"aria-label": ariaLabel,
|
|
163
155
|
ref: el => {
|
|
164
156
|
this.innerEl = el;
|
|
165
|
-
}
|
|
166
|
-
// TODO: className to be removed
|
|
167
|
-
// eslint-disable-next-line @skyscanner/rules/forbid-component-props
|
|
168
|
-
,
|
|
157
|
+
},
|
|
169
158
|
className: getClassName('bpk-mobile-scroll-container__inner'),
|
|
170
159
|
children: children
|
|
171
160
|
})
|
|
@@ -15,4 +15,4 @@
|
|
|
15
15
|
* See the License for the specific language governing permissions and
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
|
-
.bpk-mobile-scroll-container{position:relative;overflow:hidden}.bpk-mobile-scroll-
|
|
18
|
+
.bpk-mobile-scroll-container{position:relative;overflow:hidden}.bpk-mobile-scroll-container__scroller{white-space:nowrap;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar}.bpk-mobile-scroll-container__scroller:not(.bpk-mobile-scroll-container__showScrollbar){scrollbar-width:none}.bpk-mobile-scroll-container__scroller:not(.bpk-mobile-scroll-container__showScrollbar)::-webkit-scrollbar{display:none}.bpk-mobile-scroll-container__inner{width:100%}
|
|
@@ -1,26 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
|
|
1
|
+
import BpkModal from './src/BpkModal';
|
|
2
|
+
import { MODAL_STYLING } from './src/BpkModalInner';
|
|
19
3
|
import { BpkModalV2 } from './src/BpkModalV2/BpkModal';
|
|
4
|
+
import { propTypes, defaultProps } from './src/legacy-prop-types';
|
|
20
5
|
import themeAttributes from './src/themeAttributes';
|
|
21
|
-
import BpkModal from './src/BpkModal';
|
|
22
6
|
import type { Props } from './src/BpkModal';
|
|
23
|
-
import { propTypes, defaultProps } from './src/legacy-prop-types';
|
|
24
7
|
export type BpkModalProps = Props;
|
|
25
8
|
export default BpkModal;
|
|
26
|
-
export { propTypes, defaultProps, themeAttributes, BpkModalV2 };
|
|
9
|
+
export { propTypes, defaultProps, themeAttributes, BpkModalV2, MODAL_STYLING };
|
|
@@ -1,21 +1,3 @@
|
|
|
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
1
|
import type { ReactNode } from 'react';
|
|
20
2
|
import type { Props as ModalDialogProps, ModalStyle } from './BpkModalInner';
|
|
21
3
|
export type Props = Partial<ModalDialogProps> & {
|
|
@@ -25,8 +7,8 @@ export type Props = Partial<ModalDialogProps> & {
|
|
|
25
7
|
isOpen: boolean;
|
|
26
8
|
closeOnScrimClick?: boolean;
|
|
27
9
|
closeOnEscPressed?: boolean;
|
|
28
|
-
modalStyle?: ModalStyle;
|
|
29
10
|
renderTarget?: null | HTMLElement | (() => null | HTMLElement);
|
|
11
|
+
modalStyle?: ModalStyle;
|
|
30
12
|
onClose?: (arg0?: TouchEvent | MouseEvent | KeyboardEvent, arg1?: {
|
|
31
13
|
source: 'ESCAPE' | 'DOCUMENT_CLICK';
|
|
32
14
|
}) => void;
|
|
@@ -38,5 +20,5 @@ export type Props = Partial<ModalDialogProps> & {
|
|
|
38
20
|
*/
|
|
39
21
|
getApplicationElement: () => HTMLElement | null;
|
|
40
22
|
};
|
|
41
|
-
declare const BpkModal: ({ accessoryView, className, closeLabel, closeOnEscPressed, closeOnScrimClick, closeText, contentClassName, dialogRef, fullScreen, fullScreenOnMobile, isIphone, isOpen, onClose, padded, renderTarget, showHeader, title, wide, ...rest }: Props) => JSX.Element;
|
|
23
|
+
declare const BpkModal: ({ accessoryView, className, closeLabel, closeOnEscPressed, closeOnScrimClick, closeText, contentClassName, dialogRef, fullScreen, fullScreenOnMobile, isIphone, isOpen, modalStyle, onClose, padded, renderTarget, showHeader, title, wide, ...rest }: Props) => JSX.Element;
|
|
42
24
|
export default BpkModal;
|
|
@@ -63,10 +63,7 @@ const BpkModal = ({
|
|
|
63
63
|
closeOnScrimClick: closeOnScrimClick,
|
|
64
64
|
containerClassName: containerClass.join(' '),
|
|
65
65
|
isIphone: isIphone,
|
|
66
|
-
title: title
|
|
67
|
-
// TODO: className to be removed
|
|
68
|
-
// eslint-disable-next-line @skyscanner/rules/forbid-component-props
|
|
69
|
-
,
|
|
66
|
+
title: title,
|
|
70
67
|
className: className,
|
|
71
68
|
contentClassName: contentClassName,
|
|
72
69
|
closeLabel: closeLabel,
|
|
@@ -1,23 +1,4 @@
|
|
|
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
1
|
import type { ReactNode } from 'react';
|
|
20
|
-
import { ModalStyle } from './BpkModalInner';
|
|
21
2
|
export type Props = {
|
|
22
3
|
id: string;
|
|
23
4
|
children: ReactNode;
|
|
@@ -40,5 +21,10 @@ export type Props = {
|
|
|
40
21
|
*/
|
|
41
22
|
accessoryView?: ReactNode;
|
|
42
23
|
};
|
|
43
|
-
declare const
|
|
24
|
+
export declare const MODAL_STYLING: {
|
|
25
|
+
default: string;
|
|
26
|
+
surfaceContrast: string;
|
|
27
|
+
};
|
|
28
|
+
export type ModalStyle = (typeof MODAL_STYLING)[keyof typeof MODAL_STYLING];
|
|
29
|
+
declare const BpkModalInner: ({ accessoryView, children, className, closeLabel, closeText, contentClassName, dialogRef, fullScreen, fullScreenOnMobile, id, isIphone, modalStyle, onClose, padded, showHeader, title, wide, }: Props) => JSX.Element;
|
|
44
30
|
export default BpkModalInner;
|
|
@@ -1,38 +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
|
-
|
|
19
|
-
/// <reference types="react" />
|
|
20
1
|
import type { ReactNode } from 'react';
|
|
21
|
-
import { ModalStyle } from '../BpkModalInner';
|
|
22
|
-
|
|
2
|
+
import type { ModalStyle } from '../BpkModalInner';
|
|
23
3
|
export type Props = {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
4
|
+
id: string | undefined;
|
|
5
|
+
ariaLabelledby: string;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
closeLabel: string;
|
|
8
|
+
fullScreenOnDesktop?: boolean;
|
|
9
|
+
isOpen: boolean;
|
|
10
|
+
noFullScreenOnMobile?: boolean;
|
|
11
|
+
onClose: () => void | null;
|
|
12
|
+
padded?: boolean;
|
|
13
|
+
showHeader?: boolean;
|
|
14
|
+
title?: string | null;
|
|
15
|
+
wide?: boolean;
|
|
16
|
+
modalStyle?: ModalStyle;
|
|
37
17
|
};
|
|
38
18
|
export declare const BpkModalV2: (props: Props) => JSX.Element | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import BpkNavigationBar, { type Props as BpkNavigationBarProps, BAR_STYLES } from './src/BpkNavigationBar';
|
|
2
|
+
import BpkNavigationBarButtonLink, { type Props as BpkNavigationBarButtonLinkProps } from './src/BpkNavigationBarButtonLink';
|
|
3
|
+
import BpkNavigationBarIconButton, { type Props as BpkNavigationBarIconButtonProps } from './src/BpkNavigationBarIconButton';
|
|
4
|
+
import themeAttributes from './src/themeAttributes';
|
|
5
|
+
export type { BpkNavigationBarProps, BpkNavigationBarIconButtonProps, BpkNavigationBarButtonLinkProps, };
|
|
6
|
+
export { BpkNavigationBarIconButton, BpkNavigationBarButtonLink, themeAttributes, BAR_STYLES, };
|
|
7
|
+
export default BpkNavigationBar;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import type { Tag, TextStyle } from '../../bpk-component-text/src/BpkText';
|
|
3
|
+
export declare const BAR_STYLES: {
|
|
4
|
+
default: string;
|
|
5
|
+
onDark: string;
|
|
6
|
+
};
|
|
7
|
+
export type BarStyle = (typeof BAR_STYLES)[keyof typeof BAR_STYLES];
|
|
8
|
+
export type Props = {
|
|
9
|
+
id: string;
|
|
10
|
+
title: ReactNode;
|
|
11
|
+
titleTextStyle?: TextStyle;
|
|
12
|
+
titleTagName?: Tag;
|
|
13
|
+
className?: string;
|
|
14
|
+
leadingButton?: ReactElement | null;
|
|
15
|
+
trailingButton?: ReactElement | null;
|
|
16
|
+
sticky?: boolean;
|
|
17
|
+
barStyle?: BarStyle;
|
|
18
|
+
[rest: string]: any;
|
|
19
|
+
};
|
|
20
|
+
declare const BpkNavigationBar: (props: Props) => JSX.Element;
|
|
21
|
+
export default BpkNavigationBar;
|
|
@@ -33,6 +33,8 @@ const BpkNavigationBar = props => {
|
|
|
33
33
|
leadingButton,
|
|
34
34
|
sticky = false,
|
|
35
35
|
title,
|
|
36
|
+
titleTagName = "span",
|
|
37
|
+
titleTextStyle = TEXT_STYLES.heading5,
|
|
36
38
|
trailingButton,
|
|
37
39
|
...rest
|
|
38
40
|
} = props;
|
|
@@ -51,10 +53,14 @@ const BpkNavigationBar = props => {
|
|
|
51
53
|
className: getClassNames('bpk-navigation-bar__title', `bpk-navigation-bar__title--${barStyle}`),
|
|
52
54
|
children: /*#__PURE__*/_jsx(BpkText, {
|
|
53
55
|
id: titleId,
|
|
54
|
-
textStyle:
|
|
56
|
+
textStyle: titleTextStyle,
|
|
57
|
+
tagName: titleTagName,
|
|
55
58
|
children: title
|
|
56
59
|
})
|
|
57
|
-
}) :
|
|
60
|
+
}) : /*#__PURE__*/_jsx("div", {
|
|
61
|
+
className: getClassNames('bpk-navigation-bar__title-container'),
|
|
62
|
+
children: title
|
|
63
|
+
}), trailingButton && /*#__PURE__*/_jsx("div", {
|
|
58
64
|
className: getClassNames('bpk-navigation-bar__trailing-item', `bpk-navigation-bar__trailing-item-${barStyle}`),
|
|
59
65
|
children: trailingButton
|
|
60
66
|
})]
|