@skyscanner/backpack-web 34.0.0-premajor.1 → 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 +23 -19
- 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-scrollable-calendar/test-utils.d.ts +0 -52
|
@@ -1,30 +1,8 @@
|
|
|
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
|
/// <reference types="react" />
|
|
20
2
|
import type { CommonProps, OnDismissHandler } from './common-types';
|
|
21
|
-
|
|
22
3
|
export type Props = CommonProps & {
|
|
23
|
-
|
|
24
|
-
|
|
4
|
+
dismissButtonLabel: string;
|
|
5
|
+
onDismiss?: OnDismissHandler;
|
|
25
6
|
};
|
|
26
|
-
declare const BpkInfoBannerDismissable: ({
|
|
27
|
-
onDismiss,
|
|
28
|
-
...rest
|
|
29
|
-
}: Props) => JSX.Element;
|
|
7
|
+
declare const BpkInfoBannerDismissable: ({ onDismiss, ...rest }: Props) => JSX.Element;
|
|
30
8
|
export default BpkInfoBannerDismissable;
|
|
@@ -1,37 +1,11 @@
|
|
|
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
|
-
|
|
21
|
-
import type { CommonProps, OnExpandToggleHandler } from './common-types';
|
|
22
|
-
|
|
2
|
+
import type { CommonProps, OnExpandToggleHandler, ExpandableBannerAction } from './common-types';
|
|
23
3
|
export type Props = CommonProps & {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
expanded?: boolean;
|
|
6
|
+
toggleButtonLabel: string;
|
|
7
|
+
onExpandToggle?: OnExpandToggleHandler;
|
|
8
|
+
action?: ExpandableBannerAction;
|
|
29
9
|
};
|
|
30
|
-
declare const BpkInfoBannerExpandable: ({
|
|
31
|
-
action,
|
|
32
|
-
children,
|
|
33
|
-
expanded,
|
|
34
|
-
onExpandToggle,
|
|
35
|
-
...rest
|
|
36
|
-
}: Props) => JSX.Element;
|
|
10
|
+
declare const BpkInfoBannerExpandable: ({ action, children, expanded, onExpandToggle, ...rest }: Props) => JSX.Element;
|
|
37
11
|
export default BpkInfoBannerExpandable;
|
|
@@ -1,58 +1,19 @@
|
|
|
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
|
-
|
|
21
|
-
import type {
|
|
22
|
-
CommonProps,
|
|
23
|
-
OnDismissHandler,
|
|
24
|
-
OnExpandToggleHandler,
|
|
25
|
-
} from './common-types';
|
|
26
|
-
|
|
2
|
+
import type { CommonProps, OnDismissHandler, OnExpandToggleHandler, ExpandableBannerAction } from './common-types';
|
|
27
3
|
export declare const CONFIGURATION: {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
4
|
+
readonly NONE: "none";
|
|
5
|
+
readonly DISMISSABLE: "dismissable";
|
|
6
|
+
readonly EXPANDABLE: "expandable";
|
|
31
7
|
};
|
|
32
8
|
type Props = CommonProps & {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
9
|
+
action?: ExpandableBannerAction;
|
|
10
|
+
configuration?: (typeof CONFIGURATION)[keyof typeof CONFIGURATION];
|
|
11
|
+
children?: ReactNode | string;
|
|
12
|
+
expanded?: boolean;
|
|
13
|
+
toggleButtonLabel?: string;
|
|
14
|
+
onExpandToggle?: OnExpandToggleHandler;
|
|
15
|
+
dismissButtonLabel?: string;
|
|
16
|
+
onDismiss?: OnDismissHandler;
|
|
40
17
|
};
|
|
41
|
-
declare const BpkInfoBannerInner: ({
|
|
42
|
-
animateOnEnter,
|
|
43
|
-
animateOnLeave,
|
|
44
|
-
bannerClassName,
|
|
45
|
-
children,
|
|
46
|
-
configuration,
|
|
47
|
-
dismissButtonLabel,
|
|
48
|
-
expanded,
|
|
49
|
-
icon,
|
|
50
|
-
message,
|
|
51
|
-
onDismiss,
|
|
52
|
-
onExpandToggle,
|
|
53
|
-
show,
|
|
54
|
-
toggleButtonLabel,
|
|
55
|
-
type,
|
|
56
|
-
...rest
|
|
57
|
-
}: Props) => JSX.Element;
|
|
18
|
+
declare const BpkInfoBannerInner: ({ action, animateOnEnter, animateOnLeave, bannerClassName, children, configuration, dismissButtonLabel, expanded, icon, message, onDismiss, onExpandToggle, show, style, toggleButtonLabel, type, ...rest }: Props) => JSX.Element;
|
|
58
19
|
export default BpkInfoBannerInner;
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
* `BpkInfoBannerDismissable` and `BpkInfoBannerExpandable`.
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
|
-
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
24
23
|
import { durationSm } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
|
|
25
24
|
|
|
26
25
|
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
@@ -28,13 +27,9 @@ import BpkAnimateHeight from "../../bpk-animate-height";
|
|
|
28
27
|
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
29
28
|
import BpkCloseButton from "../../bpk-component-close-button";
|
|
30
29
|
import { withButtonAlignment } from "../../bpk-component-icon";
|
|
31
|
-
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
32
30
|
import ChevronDownIcon from "../../bpk-component-icon/sm/chevron-down";
|
|
33
|
-
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
34
31
|
import ChevronUpIcon from "../../bpk-component-icon/sm/chevron-up";
|
|
35
|
-
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
36
32
|
import InfoCircleIcon from "../../bpk-component-icon/sm/information-circle";
|
|
37
|
-
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
38
33
|
import TickCircleIcon from "../../bpk-component-icon/sm/tick-circle";
|
|
39
34
|
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
40
35
|
import BpkLink from "../../bpk-component-link";
|
|
@@ -1,50 +1,31 @@
|
|
|
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 { FunctionComponent, ReactNode } from 'react';
|
|
20
|
-
|
|
21
2
|
export declare const ALERT_TYPES: {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
3
|
+
readonly SUCCESS: "success";
|
|
4
|
+
readonly WARNING: "warning";
|
|
5
|
+
readonly ERROR: "error";
|
|
6
|
+
readonly INFO: "info";
|
|
26
7
|
};
|
|
27
8
|
export declare const STYLE_TYPES: {
|
|
28
|
-
|
|
29
|
-
|
|
9
|
+
DEFAULT: string;
|
|
10
|
+
ON_CONTRAST: string;
|
|
30
11
|
};
|
|
31
12
|
export type AlertTypeValue = (typeof ALERT_TYPES)[keyof typeof ALERT_TYPES];
|
|
32
13
|
export type StyleTypeValue = (typeof STYLE_TYPES)[keyof typeof STYLE_TYPES];
|
|
33
14
|
export type CommonProps = {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
15
|
+
type?: AlertTypeValue;
|
|
16
|
+
message: ReactNode | string;
|
|
17
|
+
animateOnEnter?: boolean;
|
|
18
|
+
animateOnLeave?: boolean;
|
|
19
|
+
show?: boolean;
|
|
20
|
+
bannerClassName?: string | null;
|
|
21
|
+
icon?: FunctionComponent<any> | null;
|
|
22
|
+
style?: StyleTypeValue;
|
|
23
|
+
[rest: string]: any;
|
|
43
24
|
};
|
|
44
|
-
export type OnExpandToggleHandler =
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
25
|
+
export type OnExpandToggleHandler = ((expanded: boolean) => void) | null | undefined;
|
|
26
|
+
export type ExpandableBannerAction = {
|
|
27
|
+
title: string;
|
|
28
|
+
callback: () => void;
|
|
29
|
+
} | null | undefined;
|
|
49
30
|
export type OnDismissHandler = (() => void) | null | undefined;
|
|
50
31
|
export type OnHideHandler = (() => void) | null | undefined;
|
|
@@ -1,168 +1,95 @@
|
|
|
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
|
/// <reference types="node" />
|
|
20
2
|
import type { ComponentType } from 'react';
|
|
21
3
|
export type WithBannerAlertStateProps = {
|
|
22
|
-
|
|
23
|
-
|
|
4
|
+
onHide?: () => void;
|
|
5
|
+
hideAfter?: number;
|
|
24
6
|
};
|
|
25
|
-
declare const withBannerAlertState: <
|
|
26
|
-
|
|
27
|
-
import(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
) =>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
onDismiss: () => void;
|
|
46
|
-
onHide: () => void;
|
|
47
|
-
render(): JSX.Element;
|
|
48
|
-
context: any;
|
|
49
|
-
setState<
|
|
50
|
-
K extends keyof {
|
|
51
|
-
expanded?: boolean | undefined;
|
|
52
|
-
show?: boolean | undefined;
|
|
53
|
-
},
|
|
54
|
-
>(
|
|
55
|
-
state:
|
|
56
|
-
| {
|
|
7
|
+
declare const withBannerAlertState: <P extends Partial<import("./common-types").CommonProps & {
|
|
8
|
+
dismissButtonLabel: string;
|
|
9
|
+
onDismiss?: import("./common-types").OnDismissHandler;
|
|
10
|
+
} & {
|
|
11
|
+
children: import("react").ReactNode;
|
|
12
|
+
expanded?: boolean | undefined;
|
|
13
|
+
toggleButtonLabel: string;
|
|
14
|
+
onExpandToggle?: import("./common-types").OnExpandToggleHandler;
|
|
15
|
+
action?: import("./common-types").ExpandableBannerAction;
|
|
16
|
+
}>>(WrappedComponent: ComponentType<P>) => {
|
|
17
|
+
new (props: P & WithBannerAlertStateProps): {
|
|
18
|
+
hideIntervalId?: NodeJS.Timeout | null | undefined;
|
|
19
|
+
componentDidMount(): void;
|
|
20
|
+
componentWillUnmount(): void;
|
|
21
|
+
onExpandToggle: () => void;
|
|
22
|
+
onDismiss: () => void;
|
|
23
|
+
onHide: () => void;
|
|
24
|
+
render(): JSX.Element;
|
|
25
|
+
context: any;
|
|
26
|
+
setState<K extends keyof {
|
|
57
27
|
expanded?: boolean | undefined;
|
|
58
28
|
show?: boolean | undefined;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
29
|
+
}>(state: {
|
|
30
|
+
expanded?: boolean | undefined;
|
|
31
|
+
show?: boolean | undefined;
|
|
32
|
+
} | ((prevState: Readonly<{
|
|
33
|
+
expanded?: boolean | undefined;
|
|
34
|
+
show?: boolean | undefined;
|
|
35
|
+
}>, props: Readonly<P & WithBannerAlertStateProps>) => {
|
|
36
|
+
expanded?: boolean | undefined;
|
|
37
|
+
show?: boolean | undefined;
|
|
38
|
+
} | Pick<{
|
|
39
|
+
expanded?: boolean | undefined;
|
|
40
|
+
show?: boolean | undefined;
|
|
41
|
+
}, K> | null) | Pick<{
|
|
42
|
+
expanded?: boolean | undefined;
|
|
43
|
+
show?: boolean | undefined;
|
|
44
|
+
}, K> | null, callback?: (() => void) | undefined): void;
|
|
45
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
46
|
+
readonly props: Readonly<P & WithBannerAlertStateProps> & Readonly<{
|
|
47
|
+
children?: import("react").ReactNode;
|
|
48
|
+
}>;
|
|
49
|
+
state: Readonly<{
|
|
50
|
+
expanded?: boolean | undefined;
|
|
51
|
+
show?: boolean | undefined;
|
|
52
|
+
}>;
|
|
53
|
+
refs: {
|
|
54
|
+
[key: string]: import("react").ReactInstance;
|
|
55
|
+
};
|
|
56
|
+
shouldComponentUpdate?(nextProps: Readonly<P & WithBannerAlertStateProps>, nextState: Readonly<{
|
|
57
|
+
expanded?: boolean | undefined;
|
|
58
|
+
show?: boolean | undefined;
|
|
59
|
+
}>, nextContext: any): boolean;
|
|
60
|
+
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
61
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<P & WithBannerAlertStateProps>, prevState: Readonly<{
|
|
62
|
+
expanded?: boolean | undefined;
|
|
63
|
+
show?: boolean | undefined;
|
|
64
|
+
}>): any;
|
|
65
|
+
componentDidUpdate?(prevProps: Readonly<P & WithBannerAlertStateProps>, prevState: Readonly<{
|
|
66
|
+
expanded?: boolean | undefined;
|
|
67
|
+
show?: boolean | undefined;
|
|
68
|
+
}>, snapshot?: any): void;
|
|
69
|
+
componentWillMount?(): void;
|
|
70
|
+
UNSAFE_componentWillMount?(): void;
|
|
71
|
+
componentWillReceiveProps?(nextProps: Readonly<P & WithBannerAlertStateProps>, nextContext: any): void;
|
|
72
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<P & WithBannerAlertStateProps>, nextContext: any): void;
|
|
73
|
+
componentWillUpdate?(nextProps: Readonly<P & WithBannerAlertStateProps>, nextState: Readonly<{
|
|
74
|
+
expanded?: boolean | undefined;
|
|
75
|
+
show?: boolean | undefined;
|
|
76
|
+
}>, nextContext: any): void;
|
|
77
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<P & WithBannerAlertStateProps>, nextState: Readonly<{
|
|
78
|
+
expanded?: boolean | undefined;
|
|
79
|
+
show?: boolean | undefined;
|
|
80
|
+
}>, nextContext: any): void;
|
|
81
|
+
};
|
|
82
|
+
displayName: string;
|
|
83
|
+
defaultProps: {
|
|
84
|
+
onDismiss: null;
|
|
85
|
+
onExpandToggle: null;
|
|
86
|
+
onHide: null;
|
|
87
|
+
expanded: boolean;
|
|
88
|
+
show: boolean;
|
|
89
|
+
hideAfter: null;
|
|
90
|
+
animateOnLeave: boolean;
|
|
91
|
+
children: null;
|
|
100
92
|
};
|
|
101
|
-
|
|
102
|
-
nextProps: Readonly<P & WithBannerAlertStateProps>,
|
|
103
|
-
nextState: Readonly<{
|
|
104
|
-
expanded?: boolean | undefined;
|
|
105
|
-
show?: boolean | undefined;
|
|
106
|
-
}>,
|
|
107
|
-
nextContext: any,
|
|
108
|
-
): boolean;
|
|
109
|
-
componentDidCatch?(
|
|
110
|
-
error: Error,
|
|
111
|
-
errorInfo: import('react').ErrorInfo,
|
|
112
|
-
): void;
|
|
113
|
-
getSnapshotBeforeUpdate?(
|
|
114
|
-
prevProps: Readonly<P & WithBannerAlertStateProps>,
|
|
115
|
-
prevState: Readonly<{
|
|
116
|
-
expanded?: boolean | undefined;
|
|
117
|
-
show?: boolean | undefined;
|
|
118
|
-
}>,
|
|
119
|
-
): any;
|
|
120
|
-
componentDidUpdate?(
|
|
121
|
-
prevProps: Readonly<P & WithBannerAlertStateProps>,
|
|
122
|
-
prevState: Readonly<{
|
|
123
|
-
expanded?: boolean | undefined;
|
|
124
|
-
show?: boolean | undefined;
|
|
125
|
-
}>,
|
|
126
|
-
snapshot?: any,
|
|
127
|
-
): void;
|
|
128
|
-
componentWillMount?(): void;
|
|
129
|
-
UNSAFE_componentWillMount?(): void;
|
|
130
|
-
componentWillReceiveProps?(
|
|
131
|
-
nextProps: Readonly<P & WithBannerAlertStateProps>,
|
|
132
|
-
nextContext: any,
|
|
133
|
-
): void;
|
|
134
|
-
UNSAFE_componentWillReceiveProps?(
|
|
135
|
-
nextProps: Readonly<P & WithBannerAlertStateProps>,
|
|
136
|
-
nextContext: any,
|
|
137
|
-
): void;
|
|
138
|
-
componentWillUpdate?(
|
|
139
|
-
nextProps: Readonly<P & WithBannerAlertStateProps>,
|
|
140
|
-
nextState: Readonly<{
|
|
141
|
-
expanded?: boolean | undefined;
|
|
142
|
-
show?: boolean | undefined;
|
|
143
|
-
}>,
|
|
144
|
-
nextContext: any,
|
|
145
|
-
): void;
|
|
146
|
-
UNSAFE_componentWillUpdate?(
|
|
147
|
-
nextProps: Readonly<P & WithBannerAlertStateProps>,
|
|
148
|
-
nextState: Readonly<{
|
|
149
|
-
expanded?: boolean | undefined;
|
|
150
|
-
show?: boolean | undefined;
|
|
151
|
-
}>,
|
|
152
|
-
nextContext: any,
|
|
153
|
-
): void;
|
|
154
|
-
};
|
|
155
|
-
displayName: string;
|
|
156
|
-
defaultProps: {
|
|
157
|
-
onDismiss: null;
|
|
158
|
-
onExpandToggle: null;
|
|
159
|
-
onHide: null;
|
|
160
|
-
expanded: boolean;
|
|
161
|
-
show: boolean;
|
|
162
|
-
hideAfter: null;
|
|
163
|
-
animateOnLeave: boolean;
|
|
164
|
-
children: null;
|
|
165
|
-
};
|
|
166
|
-
contextType?: import('react').Context<any> | undefined;
|
|
93
|
+
contextType?: import("react").Context<any> | undefined;
|
|
167
94
|
};
|
|
168
95
|
export default withBannerAlertState;
|
|
@@ -1,25 +1,7 @@
|
|
|
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 BpkInput from './src/BpkInput';
|
|
20
|
-
import withOpenEvents from './src/withOpenEvents';
|
|
21
2
|
import { propTypes, defaultProps, CLEAR_BUTTON_MODES, INPUT_TYPES, type Props } from './src/common-types';
|
|
22
3
|
import themeAttributes from './src/themeAttributes';
|
|
4
|
+
import withOpenEvents from './src/withOpenEvents';
|
|
23
5
|
export default BpkInput;
|
|
24
6
|
export type BpkInputProps = Props;
|
|
25
7
|
export { propTypes, defaultProps, withOpenEvents, INPUT_TYPES, CLEAR_BUTTON_MODES, themeAttributes, };
|
|
@@ -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 { Component } from 'react';
|
|
20
2
|
import type { Props } from './common-types';
|
|
21
3
|
type State = {
|
|
@@ -17,12 +17,14 @@
|
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
import { Component } from 'react';
|
|
20
|
+
import { withButtonAlignment } from "../../bpk-component-icon";
|
|
21
|
+
import ClearIcon from "../../bpk-component-icon/sm/close-circle";
|
|
20
22
|
import { cssModules } from "../../bpk-react-utils";
|
|
21
|
-
import BpkClearButton from "./BpkClearButton";
|
|
22
23
|
import { CLEAR_BUTTON_MODES, defaultProps } from "./common-types";
|
|
23
24
|
import STYLES from "./BpkInput.module.css";
|
|
24
25
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
26
|
const getClassName = cssModules(STYLES);
|
|
27
|
+
const ClearButtonIcon = withButtonAlignment(ClearIcon);
|
|
26
28
|
class BpkInput extends Component {
|
|
27
29
|
static defaultProps = defaultProps;
|
|
28
30
|
constructor(props) {
|
|
@@ -118,9 +120,11 @@ class BpkInput extends Component {
|
|
|
118
120
|
};
|
|
119
121
|
return clearable ? /*#__PURE__*/_jsxs("div", {
|
|
120
122
|
className: containerClassNames.join(' '),
|
|
121
|
-
children: [renderedInput, value.length > 0 && /*#__PURE__*/_jsx(
|
|
123
|
+
children: [renderedInput, value.length > 0 && /*#__PURE__*/_jsx("button", {
|
|
124
|
+
type: "button",
|
|
125
|
+
title: clearButtonLabel || '',
|
|
126
|
+
"aria-label": clearButtonLabel || '',
|
|
122
127
|
tabIndex: -1,
|
|
123
|
-
label: clearButtonLabel || '',
|
|
124
128
|
onMouseDown: onMouseDown,
|
|
125
129
|
onClick: e => {
|
|
126
130
|
if (ref) {
|
|
@@ -138,11 +142,13 @@ class BpkInput extends Component {
|
|
|
138
142
|
persistClearButton: false
|
|
139
143
|
});
|
|
140
144
|
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
145
|
+
},
|
|
146
|
+
className: clearButtonClassNames.join(' '),
|
|
147
|
+
children: /*#__PURE__*/_jsx(ClearButtonIcon, {
|
|
148
|
+
focusable: "false" // prevents focus on IE11
|
|
149
|
+
,
|
|
150
|
+
fill: "currentcolor"
|
|
151
|
+
})
|
|
146
152
|
})]
|
|
147
153
|
}) : renderedInput;
|
|
148
154
|
}
|
|
@@ -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-input{display:inline-block;width:100%;height:2.25rem;padding:.5rem .5rem;border:solid .0625rem #c1c7cf;border-radius:.25rem;background:#fff;color:#161616;appearance:none}.bpk-input::placeholder{color:#626971}.bpk-input:disabled{border-color:#eff3f8;background:#fff;color:rgba(0,0,0,.2);cursor:not-allowed}.bpk-input[type=number]{-moz-appearance:textfield}.bpk-input[type=number]::-webkit-inner-spin-button,.bpk-input[type=number]::-webkit-outer-spin-button{appearance:none}html[dir=rtl] .bpk-input[type=number],html[dir=rtl] .bpk-input[type=tel],html[dir=rtl] .bpk-input[type=email]{text-align:right;direction:ltr}.bpk-input::-ms-clear{display:none}.bpk-input__container{position:relative;display:inline-block;width:100%}.bpk-input__clear-button{display:none;position:absolute;right:.5rem;height:2.25rem}html[dir=rtl] .bpk-input__clear-button{right:inherit;left:.5rem}.bpk-input__clear-button--large{right:1rem;height:3rem}html[dir=rtl] .bpk-input__clear-button--large{left:1rem}.bpk-input__clear-button--persistent{display:inherit}.bpk-input--valid{padding-right:2rem;background:#fff url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2Ij48c3R5bGUgdHlwZT0idGV4dC9jc3MiPmNpcmNsZSwgZWxsaXBzZSwgbGluZSwgcGF0aCwgcG9seWdvbiwgcG9seWxpbmUsIHJlY3QsIHRleHQgeyBmaWxsOiAjMGM4MzhhICFpbXBvcnRhbnQgfTwvc3R5bGU+PHBhdGggZD0iTTEyIDIyLjVDNi4yMDEgMjIuNSAxLjUgMTcuNzk5IDEuNSAxMlM2LjIwMSAxLjUgMTIgMS41IDIyLjUgNi4yMDEgMjIuNSAxMiAxNy43OTkgMjIuNSAxMiAyMi41em01LjU2LTEyLjQ0YTEuNSAxLjUgMCAwIDAtMi4xMi0yLjEybC00Ljk0IDQuOTM5LTEuOTQtMS45NGExLjUgMS41IDAgMCAwLTIuMTIgMi4xMjJsMyAzYTEuNSAxLjUgMCAwIDAgMi4xMiAwbDYtNnoiLz48L3N2Zz4=") no-repeat right .5rem center;background-size:1rem 1rem}html[dir=rtl] .bpk-input--valid{padding-right:.5rem;padding-left:2rem;background-position:left .5rem center}.bpk-input--invalid{padding-right:2rem;background:#fff url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2Ij48c3R5bGUgdHlwZT0idGV4dC9jc3MiPmNpcmNsZSwgZWxsaXBzZSwgbGluZSwgcGF0aCwgcG9seWdvbiwgcG9seWxpbmUsIHJlY3QsIHRleHQgeyBmaWxsOiAjZTcwODY2ICFpbXBvcnRhbnQgfTwvc3R5bGU+PHBhdGggZD0iTTEyIDEuNUExMC41IDEwLjUgMCAxIDAgMjIuNSAxMiAxMC41IDEwLjUgMCAwIDAgMTIgMS41ek0xMiAxOGExLjUgMS41IDAgMSAxIDEuNS0xLjVBMS41IDEuNSAwIDAgMSAxMiAxOHptMS41LTZhMS41IDEuNSAwIDAgMS0zIDBWNy41YTEuNSAxLjUgMCAwIDEgMyAweiIvPjwvc3ZnPg==") no-repeat right .5rem center;background-size:1rem 1rem;border-color:#e70866;border-color:var(--bpk-input-invalid-border-color, rgb(231, 8, 102))}html[dir=rtl] .bpk-input--invalid{padding-right:.5rem;padding-left:2rem;background-position:left .5rem center}.bpk-input--clearable{padding-right:2rem}html[dir=rtl] .bpk-input--clearable{padding-right:.5rem;padding-left:2rem}.bpk-input--clearable:focus{background:#fff}.bpk-input--clearable:focus+.bpk-input__clear-button{display:inherit}.bpk-input--large{height:3rem;padding-right:1rem;padding-left:1rem}.bpk-input--large.bpk-input--valid,.bpk-input--large.bpk-input--invalid,.bpk-input--large.bpk-input--clearable{padding-right:2.5rem;background-position:right 1rem center}html[dir=rtl] .bpk-input--large.bpk-input--valid,html[dir=rtl] .bpk-input--large.bpk-input--invalid,html[dir=rtl] .bpk-input--large.bpk-input--clearable{padding-right:1rem;padding-left:2.5rem;background-position:left 1rem center}.bpk-input--persistent-clearable{background:#fff}.bpk-input--docked:first-child{border-right-width:0;border-radius:.25rem 0 0 .25rem}html[dir=rtl] .bpk-input--docked:first-child{border-right-width:.0625rem;border-left-width:0;border-radius:0 .25rem .25rem 0}.bpk-input--docked:first-child:focus{position:relative}.bpk-input--docked:last-child{border-radius:0 .25rem .25rem 0}html[dir=rtl] .bpk-input--docked:last-child{border-radius:.25rem 0 0 .25rem}.bpk-input--docked:last-child:focus{position:relative}.bpk-input--docked:not(:first-child):not(:last-child){border-right-width:0;border-radius:0}html[dir=rtl] .bpk-input--docked:not(:first-child):not(:last-child){border-right-width:.0625rem;border-left-width:0}.bpk-input--docked:not(:first-child):not(:last-child):focus{position:relative}.bpk-input--docked-first{border-right-width:0;border-radius:.25rem 0 0 .25rem}html[dir=rtl] .bpk-input--docked-first{border-right-width:.0625rem;border-left-width:0;border-radius:0 .25rem .25rem 0}.bpk-input--docked-first:focus{position:relative}.bpk-input--docked-middle{border-right-width:0;border-radius:0}html[dir=rtl] .bpk-input--docked-middle{border-right-width:.0625rem;border-left-width:0}.bpk-input--docked-middle:focus{position:relative}.bpk-input--docked-last{border-radius:0 .25rem .25rem 0}html[dir=rtl] .bpk-input--docked-last{border-radius:.25rem 0 0 .25rem}.bpk-input--docked-last:focus{position:relative}
|
|
18
|
+
.bpk-input{display:inline-block;width:100%;height:2.25rem;padding:.5rem .5rem;border:solid .0625rem #c1c7cf;border-radius:.25rem;background:#fff;color:#161616;appearance:none}.bpk-input::placeholder{color:#626971}.bpk-input:disabled{border-color:#eff3f8;background:#fff;color:rgba(0,0,0,.2);cursor:not-allowed}.bpk-input[type=number]{-moz-appearance:textfield}.bpk-input[type=number]::-webkit-inner-spin-button,.bpk-input[type=number]::-webkit-outer-spin-button{appearance:none}html[dir=rtl] .bpk-input[type=number],html[dir=rtl] .bpk-input[type=tel],html[dir=rtl] .bpk-input[type=email]{text-align:right;direction:ltr}.bpk-input::-ms-clear{display:none}.bpk-input[data-openable]{cursor:pointer}.bpk-input__container{position:relative;display:inline-block;width:100%}.bpk-input__clear-button{display:none;position:absolute;right:.5rem;height:2.25rem;padding:0;border:0;background-color:rgba(0,0,0,0);color:#626971;cursor:pointer;appearance:none}html[dir=rtl] .bpk-input__clear-button{right:inherit;left:.5rem}.bpk-no-touch-support .bpk-input__clear-button:hover:not(:active):not(:disabled){color:#161616}:global(.bpk-no-touch-support) .bpk-input__clear-button:hover:not(:active):not(:disabled){color:#161616}.bpk-input__clear-button:active{color:#161616}.bpk-input__clear-button--large{right:1rem;height:3rem}html[dir=rtl] .bpk-input__clear-button--large{left:1rem}.bpk-input__clear-button--persistent{display:inherit}.bpk-input--valid{padding-right:2rem;background:#fff url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2Ij48c3R5bGUgdHlwZT0idGV4dC9jc3MiPmNpcmNsZSwgZWxsaXBzZSwgbGluZSwgcGF0aCwgcG9seWdvbiwgcG9seWxpbmUsIHJlY3QsIHRleHQgeyBmaWxsOiAjMGM4MzhhICFpbXBvcnRhbnQgfTwvc3R5bGU+PHBhdGggZD0iTTEyIDIyLjVDNi4yMDEgMjIuNSAxLjUgMTcuNzk5IDEuNSAxMlM2LjIwMSAxLjUgMTIgMS41IDIyLjUgNi4yMDEgMjIuNSAxMiAxNy43OTkgMjIuNSAxMiAyMi41em01LjU2LTEyLjQ0YTEuNSAxLjUgMCAwIDAtMi4xMi0yLjEybC00Ljk0IDQuOTM5LTEuOTQtMS45NGExLjUgMS41IDAgMCAwLTIuMTIgMi4xMjJsMyAzYTEuNSAxLjUgMCAwIDAgMi4xMiAwbDYtNnoiLz48L3N2Zz4=") no-repeat right .5rem center;background-size:1rem 1rem}html[dir=rtl] .bpk-input--valid{padding-right:.5rem;padding-left:2rem;background-position:left .5rem center}.bpk-input--invalid{padding-right:2rem;background:#fff url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2Ij48c3R5bGUgdHlwZT0idGV4dC9jc3MiPmNpcmNsZSwgZWxsaXBzZSwgbGluZSwgcGF0aCwgcG9seWdvbiwgcG9seWxpbmUsIHJlY3QsIHRleHQgeyBmaWxsOiAjZTcwODY2ICFpbXBvcnRhbnQgfTwvc3R5bGU+PHBhdGggZD0iTTEyIDEuNUExMC41IDEwLjUgMCAxIDAgMjIuNSAxMiAxMC41IDEwLjUgMCAwIDAgMTIgMS41ek0xMiAxOGExLjUgMS41IDAgMSAxIDEuNS0xLjVBMS41IDEuNSAwIDAgMSAxMiAxOHptMS41LTZhMS41IDEuNSAwIDAgMS0zIDBWNy41YTEuNSAxLjUgMCAwIDEgMyAweiIvPjwvc3ZnPg==") no-repeat right .5rem center;background-size:1rem 1rem;border-color:#e70866;border-color:var(--bpk-input-invalid-border-color, rgb(231, 8, 102))}html[dir=rtl] .bpk-input--invalid{padding-right:.5rem;padding-left:2rem;background-position:left .5rem center}.bpk-input--clearable{padding-right:2rem}html[dir=rtl] .bpk-input--clearable{padding-right:.5rem;padding-left:2rem}.bpk-input--clearable:focus{background:#fff}.bpk-input--clearable:focus+.bpk-input__clear-button{display:inherit}.bpk-input--large{height:3rem;padding-right:1rem;padding-left:1rem}.bpk-input--large.bpk-input--valid,.bpk-input--large.bpk-input--invalid,.bpk-input--large.bpk-input--clearable{padding-right:2.5rem;background-position:right 1rem center}html[dir=rtl] .bpk-input--large.bpk-input--valid,html[dir=rtl] .bpk-input--large.bpk-input--invalid,html[dir=rtl] .bpk-input--large.bpk-input--clearable{padding-right:1rem;padding-left:2.5rem;background-position:left 1rem center}.bpk-input--persistent-clearable{background:#fff}.bpk-input--docked:first-child{border-right-width:0;border-radius:.25rem 0 0 .25rem}html[dir=rtl] .bpk-input--docked:first-child{border-right-width:.0625rem;border-left-width:0;border-radius:0 .25rem .25rem 0}.bpk-input--docked:first-child:focus{position:relative}.bpk-input--docked:last-child{border-radius:0 .25rem .25rem 0}html[dir=rtl] .bpk-input--docked:last-child{border-radius:.25rem 0 0 .25rem}.bpk-input--docked:last-child:focus{position:relative}.bpk-input--docked:not(:first-child):not(:last-child){border-right-width:0;border-radius:0}html[dir=rtl] .bpk-input--docked:not(:first-child):not(:last-child){border-right-width:.0625rem;border-left-width:0}.bpk-input--docked:not(:first-child):not(:last-child):focus{position:relative}.bpk-input--docked-first{border-right-width:0;border-radius:.25rem 0 0 .25rem}html[dir=rtl] .bpk-input--docked-first{border-right-width:.0625rem;border-left-width:0;border-radius:0 .25rem .25rem 0}.bpk-input--docked-first:focus{position:relative}.bpk-input--docked-middle{border-right-width:0;border-radius:0}html[dir=rtl] .bpk-input--docked-middle{border-right-width:.0625rem;border-left-width:0}.bpk-input--docked-middle:focus{position:relative}.bpk-input--docked-last{border-radius:0 .25rem .25rem 0}html[dir=rtl] .bpk-input--docked-last{border-radius:.25rem 0 0 .25rem}.bpk-input--docked-last:focus{position:relative}
|
|
@@ -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 PropTypes from 'prop-types';
|
|
20
2
|
import type { ComponentProps, SyntheticEvent } from 'react';
|
|
21
3
|
export declare const CLEAR_BUTTON_MODES: {
|