@skyscanner/backpack-web 21.0.1 → 22.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bpk-animate-height/index.js +10 -4
- package/bpk-animate-height/src/AnimateHeight.js +72 -92
- package/bpk-component-accordion/index.js +33 -30
- package/bpk-component-accordion/src/BpkAccordion.js +54 -48
- package/bpk-component-accordion/src/BpkAccordion.module.css +1 -1
- package/bpk-component-accordion/src/BpkAccordionItem.js +120 -115
- package/bpk-component-accordion/src/BpkAccordionItem.module.css +1 -1
- package/bpk-component-accordion/src/withAccordionItemState.js +52 -77
- package/bpk-component-accordion/src/withSingleItemAccordionState.js +51 -77
- package/bpk-component-aria-live/index.js +17 -9
- package/bpk-component-aria-live/src/BpkAriaLive.js +37 -55
- package/bpk-component-autosuggest/index.js +17 -8
- package/bpk-component-autosuggest/src/BpkAutosuggest.js +39 -53
- package/bpk-component-autosuggest/src/BpkAutosuggest.module.css +1 -1
- package/bpk-component-autosuggest/src/BpkAutosuggestSuggestion.js +63 -86
- package/bpk-component-badge/index.js +25 -9
- package/bpk-component-badge/src/BpkBadge.js +43 -60
- package/bpk-component-badge/src/BpkBadge.module.css +1 -1
- package/bpk-component-badge/src/themeAttributes.js +8 -6
- package/bpk-component-banner-alert/index.js +45 -17
- package/bpk-component-banner-alert/src/AnimateAndFade.js +108 -149
- package/bpk-component-banner-alert/src/BpkBannerAlert.js +19 -34
- package/bpk-component-banner-alert/src/BpkBannerAlert.module.css +1 -1
- package/bpk-component-banner-alert/src/BpkBannerAlertDismissable.js +32 -50
- package/bpk-component-banner-alert/src/BpkBannerAlertExpandable.js +42 -57
- package/bpk-component-banner-alert/src/BpkBannerAlertInner.js +137 -203
- package/bpk-component-banner-alert/src/common-types.js +23 -35
- package/bpk-component-banner-alert/src/themeAttributes.js +8 -7
- package/bpk-component-banner-alert/src/withBannerAlertState.js +106 -161
- package/bpk-component-barchart/index.js +52 -21
- package/bpk-component-barchart/src/BpkBarchart.js +217 -304
- package/bpk-component-barchart/src/BpkBarchartBar.js +86 -130
- package/bpk-component-barchart/src/BpkBarchartBar.module.css +1 -1
- package/bpk-component-barchart/src/BpkBarchartBars.js +121 -145
- package/bpk-component-barchart/src/BpkBarchartDefs.js +40 -26
- package/bpk-component-barchart/src/BpkChartAxis.js +103 -149
- package/bpk-component-barchart/src/BpkChartAxis.module.css +1 -1
- package/bpk-component-barchart/src/BpkChartDataTable.js +51 -52
- package/bpk-component-barchart/src/BpkChartGridLines.js +69 -106
- package/bpk-component-barchart/src/BpkChartGridLines.module.css +1 -1
- package/bpk-component-barchart/src/BpkChartMargin.js +37 -48
- package/bpk-component-barchart/src/RTLtransforms.js +36 -47
- package/bpk-component-barchart/src/customPropTypes.js +15 -24
- package/bpk-component-barchart/src/orientation.js +10 -6
- package/bpk-component-barchart/src/themeAttributes.js +8 -9
- package/bpk-component-barchart/src/utils.js +14 -14
- package/bpk-component-blockquote/index.js +17 -6
- package/bpk-component-blockquote/src/BpkBlockquote.js +22 -23
- package/bpk-component-blockquote/src/BpkBlockquote.module.css +1 -1
- package/bpk-component-blockquote/src/themeAttributes.js +8 -2
- package/{bpk-component-accordion/src/BpkAccordion.module.scss → bpk-component-boilerplate/index.js} +10 -6
- package/bpk-component-boilerplate/src/BpkBoilerplate.js +44 -0
- package/{bpk-component-chip/src/BpkSelectableChip.module.scss → bpk-component-boilerplate/src/BpkBoilerplate.module.css} +6 -11
- package/bpk-component-breadcrumb/index.js +17 -14
- package/bpk-component-breadcrumb/src/BpkBreadcrumb.js +64 -87
- package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.js +65 -80
- package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.module.css +1 -1
- package/bpk-component-breakpoint/index.js +17 -7
- package/bpk-component-breakpoint/src/BpkBreakpoint.js +40 -42
- package/bpk-component-button/BpkButtonDestructive.js +12 -20
- package/bpk-component-button/BpkButtonFeatured.js +12 -20
- package/bpk-component-button/BpkButtonLink.js +12 -20
- package/bpk-component-button/BpkButtonLinkOnDark.js +12 -20
- package/bpk-component-button/BpkButtonPrimary.js +12 -20
- package/bpk-component-button/BpkButtonPrimaryOnDark.js +12 -20
- package/bpk-component-button/BpkButtonPrimaryOnLight.js +12 -20
- package/bpk-component-button/BpkButtonSecondary.js +12 -20
- package/bpk-component-button/BpkButtonSecondaryOnDark.js +12 -20
- package/bpk-component-button/index.js +123 -38
- package/bpk-component-button/src/BpkButton.js +53 -94
- package/bpk-component-button/src/BpkButtonBase.js +57 -78
- package/bpk-component-button/src/BpkButtonBase.module.css +1 -1
- package/bpk-component-button/src/BpkButtonDestructive.js +35 -37
- package/bpk-component-button/src/BpkButtonDestructive.module.css +1 -1
- package/bpk-component-button/src/BpkButtonFeatured.js +35 -37
- package/bpk-component-button/src/BpkButtonFeatured.module.css +1 -1
- package/bpk-component-button/src/BpkButtonLink.js +37 -41
- package/bpk-component-button/src/BpkButtonLink.module.css +1 -1
- package/bpk-component-button/src/BpkButtonLinkOnDark.js +37 -41
- package/bpk-component-button/src/BpkButtonLinkOnDark.module.css +18 -0
- package/bpk-component-button/src/BpkButtonPrimary.js +19 -28
- package/bpk-component-button/src/BpkButtonPrimaryOnDark.js +35 -37
- package/bpk-component-button/src/BpkButtonPrimaryOnDark.module.css +18 -0
- package/bpk-component-button/src/BpkButtonPrimaryOnLight.js +35 -37
- package/bpk-component-button/src/BpkButtonPrimaryOnLight.module.css +18 -0
- package/bpk-component-button/src/BpkButtonSecondary.js +35 -37
- package/bpk-component-button/src/BpkButtonSecondary.module.css +1 -1
- package/bpk-component-button/src/BpkButtonSecondaryOnDark.js +35 -37
- package/bpk-component-button/src/BpkButtonSecondaryOnDark.module.css +18 -0
- package/bpk-component-button/src/common-types.js +22 -35
- package/bpk-component-button/src/commonButtonTests.js +83 -58
- package/bpk-component-button/src/themeAttributes.js +22 -74
- package/bpk-component-button/themeAttributes.js +53 -29
- package/bpk-component-calendar/index.js +106 -41
- package/bpk-component-calendar/src/BpkCalendar.module.css +1 -1
- package/bpk-component-calendar/src/BpkCalendarContainer.js +202 -280
- package/bpk-component-calendar/src/BpkCalendarDate.js +103 -136
- package/bpk-component-calendar/src/BpkCalendarDate.module.css +1 -1
- package/bpk-component-calendar/src/BpkCalendarGrid.js +94 -120
- package/bpk-component-calendar/src/BpkCalendarGrid.module.css +1 -1
- package/bpk-component-calendar/src/BpkCalendarGridHeader.js +58 -57
- package/bpk-component-calendar/src/BpkCalendarGridHeader.module.css +1 -1
- package/bpk-component-calendar/src/BpkCalendarGridTransition.js +91 -159
- package/bpk-component-calendar/src/BpkCalendarNav.js +142 -138
- package/bpk-component-calendar/src/BpkCalendarNav.module.css +1 -1
- package/bpk-component-calendar/src/Week.js +170 -269
- package/bpk-component-calendar/src/composeCalendar.js +92 -116
- package/bpk-component-calendar/src/custom-proptypes.js +37 -41
- package/bpk-component-calendar/src/date-utils.js +175 -96
- package/bpk-component-calendar/src/themeAttributes.js +8 -13
- package/bpk-component-calendar/src/utils.js +19 -24
- package/bpk-component-calendar/test-utils.js +228 -274
- package/bpk-component-card/index.js +32 -9
- package/bpk-component-card/src/BpkCard.js +64 -83
- package/bpk-component-card/src/BpkCard.module.css +1 -1
- package/bpk-component-card/src/BpkCardWrapper.js +39 -44
- package/bpk-component-card/src/BpkCardWrapper.module.css +18 -0
- package/bpk-component-card/src/BpkDividedCard.js +56 -83
- package/bpk-component-card/src/BpkDividedCard.module.css +1 -1
- package/bpk-component-checkbox/index.js +17 -8
- package/bpk-component-checkbox/src/BpkCheckbox.js +73 -116
- package/bpk-component-checkbox/src/BpkCheckbox.module.css +1 -1
- package/bpk-component-checkbox/src/themeAttributes.js +8 -4
- package/bpk-component-chip/index.js +38 -21
- package/bpk-component-chip/src/BpkDismissibleChip.js +44 -63
- package/bpk-component-chip/src/BpkDropdownChip.js +26 -50
- package/bpk-component-chip/src/BpkSelectableChip.js +66 -98
- package/bpk-component-chip/src/BpkSelectableChip.module.css +1 -1
- package/bpk-component-chip/src/commonTypes.js +25 -34
- package/bpk-component-chip/src/themeAttributes.js +8 -13
- package/bpk-component-close-button/index.js +10 -6
- package/bpk-component-close-button/src/BpkCloseButton.js +49 -61
- package/bpk-component-close-button/src/BpkCloseButton.module.css +1 -1
- package/bpk-component-code/index.js +19 -22
- package/bpk-component-code/src/BpkCode.js +39 -49
- package/bpk-component-code/src/BpkCode.module.css +1 -1
- package/bpk-component-code/src/BpkCodeBlock.js +43 -53
- package/bpk-component-code/src/BpkCodeBlock.module.css +1 -1
- package/bpk-component-content-cards/index.js +10 -4
- package/bpk-component-content-cards/src/BpkContentCard.js +43 -60
- package/bpk-component-content-cards/src/BpkContentCard.module.css +18 -0
- package/bpk-component-content-cards/src/BpkContentCards.js +37 -44
- package/bpk-component-content-cards/src/BpkContentCards.module.css +1 -1
- package/bpk-component-datatable/index.js +19 -20
- package/bpk-component-datatable/src/BpkDataTable.js +145 -205
- package/bpk-component-datatable/src/BpkDataTable.module.css +1 -1
- package/bpk-component-datatable/src/BpkDataTableColumn.js +32 -43
- package/bpk-component-datatable/src/BpkDataTableHeader.js +63 -108
- package/bpk-component-datatable/src/BpkDataTableHeader.module.css +18 -0
- package/bpk-component-datatable/src/common-types.js +1 -72
- package/bpk-component-datatable/src/hasChildrenOfType.js +25 -41
- package/bpk-component-datatable/src/sort-types.js +10 -16
- package/bpk-component-datatable/src/utils.js +93 -65
- package/bpk-component-datepicker/index.js +24 -8
- package/bpk-component-datepicker/src/BpkDatepicker.js +218 -296
- package/bpk-component-datepicker/src/BpkDatepicker.module.css +1 -1
- package/bpk-component-datepicker/src/themeAttributes.js +11 -12
- package/bpk-component-description-list/index.js +26 -22
- package/bpk-component-description-list/src/BpkDescriptionDetails.js +10 -4
- package/bpk-component-description-list/src/BpkDescriptionList.js +10 -4
- package/bpk-component-description-list/src/BpkDescriptionTerm.js +10 -4
- package/bpk-component-description-list/src/ComponentFactory.js +36 -42
- package/bpk-component-dialog/index.js +17 -9
- package/bpk-component-dialog/src/BpkDialog.js +59 -85
- package/bpk-component-dialog/src/BpkDialog.module.css +1 -1
- package/bpk-component-dialog/src/BpkDialogInner.js +50 -77
- package/bpk-component-dialog/src/BpkDialogInner.module.css +1 -1
- package/bpk-component-dialog/src/common-types.js +49 -83
- package/bpk-component-drawer/index.js +17 -8
- package/bpk-component-drawer/src/BpkDrawer.js +67 -84
- package/bpk-component-drawer/src/BpkDrawerContent.js +104 -142
- package/bpk-component-drawer/src/BpkDrawerContent.module.css +1 -1
- package/bpk-component-drawer/src/themeAttributes.js +9 -6
- package/bpk-component-fieldset/index.js +31 -13
- package/bpk-component-fieldset/src/BpkFieldset.js +96 -145
- package/bpk-component-fieldset/src/BpkFieldset.module.css +1 -1
- package/bpk-component-fieldset/src/themeAttributes.js +8 -2
- package/bpk-component-flare/index.js +23 -8
- package/bpk-component-flare/src/BpkContentBubble.js +57 -77
- package/bpk-component-flare/src/BpkFlareBar.js +47 -58
- package/bpk-component-flare/src/__generated__/js/corner-radius.js +31 -5
- package/bpk-component-flare/src/__generated__/js/pointer.js +31 -5
- package/bpk-component-flare/src/bpk-flare-bar.module.css +1 -1
- package/bpk-component-floating-notification/index.js +10 -8
- package/bpk-component-floating-notification/src/BpkFloatingNotification.js +90 -117
- package/bpk-component-floating-notification/src/BpkFloatingNotification.module.css +1 -1
- package/bpk-component-form-validation/index.js +17 -6
- package/bpk-component-form-validation/src/BpkFormValidation.js +59 -75
- package/bpk-component-form-validation/src/BpkFormValidation.module.css +1 -1
- package/bpk-component-form-validation/src/themeAttributes.js +8 -2
- package/bpk-component-graphic-promotion/index.js +17 -9
- package/bpk-component-graphic-promotion/src/BpkGraphicPromo.js +86 -133
- package/bpk-component-graphic-promotion/src/BpkGraphicPromo.module.css +18 -0
- package/bpk-component-grid-toggle/index.js +10 -4
- package/bpk-component-grid-toggle/src/BpkGridToggle.js +49 -75
- package/bpk-component-grid-toggle/src/BpkGridToggle.module.css +1 -1
- package/bpk-component-horizontal-nav/index.js +30 -15
- package/bpk-component-horizontal-nav/src/BpkHorizontalNav.js +116 -170
- package/bpk-component-horizontal-nav/src/BpkHorizontalNav.module.css +1 -1
- package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.js +83 -121
- package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.module.css +1 -1
- package/bpk-component-icon/all.js +5 -6
- package/bpk-component-icon/index.js +33 -27
- package/bpk-component-icon/lg/accessibility.js +37 -8
- package/bpk-component-icon/lg/account--add.js +37 -8
- package/bpk-component-icon/lg/account--female.js +37 -8
- package/bpk-component-icon/lg/account--id-card.js +37 -8
- package/bpk-component-icon/lg/account--name.js +37 -8
- package/bpk-component-icon/lg/account--permit.js +37 -8
- package/bpk-component-icon/lg/account-circle.js +37 -8
- package/bpk-component-icon/lg/account.js +37 -8
- package/bpk-component-icon/lg/add-circle.js +37 -8
- package/bpk-component-icon/lg/adult.js +37 -8
- package/bpk-component-icon/lg/aircon.js +37 -8
- package/bpk-component-icon/lg/aircraft.js +39 -8
- package/bpk-component-icon/lg/airline--multiple.js +37 -8
- package/bpk-component-icon/lg/airline.js +37 -8
- package/bpk-component-icon/lg/airports.js +37 -8
- package/bpk-component-icon/lg/alert--active.js +37 -8
- package/bpk-component-icon/lg/alert--add.js +37 -8
- package/bpk-component-icon/lg/alert--expired.js +37 -8
- package/bpk-component-icon/lg/alert--remove.js +37 -8
- package/bpk-component-icon/lg/arrow-down.js +37 -8
- package/bpk-component-icon/lg/arrow-left.js +37 -8
- package/bpk-component-icon/lg/arrow-right.js +37 -8
- package/bpk-component-icon/lg/arrow-up.js +37 -8
- package/bpk-component-icon/lg/award.js +37 -8
- package/bpk-component-icon/lg/baby-carriage.js +37 -8
- package/bpk-component-icon/lg/baggage--add.js +37 -8
- package/bpk-component-icon/lg/baggage--remove.js +37 -8
- package/bpk-component-icon/lg/baggage-cabin-add.js +37 -8
- package/bpk-component-icon/lg/baggage-cabin-not-included.js +37 -8
- package/bpk-component-icon/lg/baggage-cabin.js +37 -8
- package/bpk-component-icon/lg/baggage-checked-add.js +37 -8
- package/bpk-component-icon/lg/baggage-checked-not-included.js +37 -8
- package/bpk-component-icon/lg/baggage-checked.js +37 -8
- package/bpk-component-icon/lg/baggage-cross.js +37 -8
- package/bpk-component-icon/lg/baggage-generic.js +37 -8
- package/bpk-component-icon/lg/baggage-tick.js +37 -8
- package/bpk-component-icon/lg/baggage.js +37 -8
- package/bpk-component-icon/lg/bar.js +37 -8
- package/bpk-component-icon/lg/beach.js +39 -8
- package/bpk-component-icon/lg/beer.js +37 -8
- package/bpk-component-icon/lg/breakfast-cross.js +37 -8
- package/bpk-component-icon/lg/breakfast-tick.js +37 -8
- package/bpk-component-icon/lg/bus.js +37 -8
- package/bpk-component-icon/lg/business.js +37 -8
- package/bpk-component-icon/lg/cafe.js +37 -8
- package/bpk-component-icon/lg/calendar.js +37 -8
- package/bpk-component-icon/lg/call-back.js +39 -8
- package/bpk-component-icon/lg/camera.js +37 -8
- package/bpk-component-icon/lg/camper-van.js +39 -8
- package/bpk-component-icon/lg/car-door.js +37 -8
- package/bpk-component-icon/lg/car-wash.js +39 -8
- package/bpk-component-icon/lg/cars-flexible.js +37 -8
- package/bpk-component-icon/lg/cars.js +39 -8
- package/bpk-component-icon/lg/center-location.js +37 -8
- package/bpk-component-icon/lg/chart.js +37 -8
- package/bpk-component-icon/lg/chauffeur.js +37 -8
- package/bpk-component-icon/lg/chevron-down.js +37 -8
- package/bpk-component-icon/lg/chevron-left.js +37 -8
- package/bpk-component-icon/lg/chevron-right.js +37 -8
- package/bpk-component-icon/lg/chevron-up.js +37 -8
- package/bpk-component-icon/lg/child-seat.js +37 -8
- package/bpk-component-icon/lg/child.js +37 -8
- package/bpk-component-icon/lg/city-center.js +37 -8
- package/bpk-component-icon/lg/city.js +37 -8
- package/bpk-component-icon/lg/clean-policy.js +37 -8
- package/bpk-component-icon/lg/clean.js +41 -8
- package/bpk-component-icon/lg/cleaning-medical.js +37 -8
- package/bpk-component-icon/lg/cloakroom.js +41 -8
- package/bpk-component-icon/lg/close-circle.js +37 -8
- package/bpk-component-icon/lg/close.js +37 -8
- package/bpk-component-icon/lg/collapse.js +37 -8
- package/bpk-component-icon/lg/content--copy.js +39 -8
- package/bpk-component-icon/lg/content--event.js +37 -8
- package/bpk-component-icon/lg/content--guides.js +37 -8
- package/bpk-component-icon/lg/currency.js +37 -8
- package/bpk-component-icon/lg/data.js +39 -8
- package/bpk-component-icon/lg/deals.js +37 -8
- package/bpk-component-icon/lg/depart.js +39 -8
- package/bpk-component-icon/lg/device-mid.js +37 -8
- package/bpk-component-icon/lg/device-wide.js +37 -8
- package/bpk-component-icon/lg/direct.js +37 -8
- package/bpk-component-icon/lg/document-csv.js +37 -8
- package/bpk-component-icon/lg/document-pdf.js +37 -8
- package/bpk-component-icon/lg/download.js +39 -8
- package/bpk-component-icon/lg/duration.js +37 -8
- package/bpk-component-icon/lg/eco-leaf.js +37 -8
- package/bpk-component-icon/lg/edit.js +37 -8
- package/bpk-component-icon/lg/education.js +39 -8
- package/bpk-component-icon/lg/electric.js +37 -8
- package/bpk-component-icon/lg/end-call.js +37 -8
- package/bpk-component-icon/lg/estimated.js +37 -8
- package/bpk-component-icon/lg/exclamation-circle.js +37 -8
- package/bpk-component-icon/lg/exclamation.js +37 -8
- package/bpk-component-icon/lg/expand.js +37 -8
- package/bpk-component-icon/lg/explore.js +37 -8
- package/bpk-component-icon/lg/face--blank.js +37 -8
- package/bpk-component-icon/lg/face--happy.js +37 -8
- package/bpk-component-icon/lg/face--sad.js +37 -8
- package/bpk-component-icon/lg/face-id.js +37 -8
- package/bpk-component-icon/lg/face-mask.js +37 -8
- package/bpk-component-icon/lg/family.js +37 -8
- package/bpk-component-icon/lg/fast-track.js +39 -8
- package/bpk-component-icon/lg/fast-train.js +39 -8
- package/bpk-component-icon/lg/filter.js +38 -8
- package/bpk-component-icon/lg/fingerprint.js +37 -8
- package/bpk-component-icon/lg/flag.js +37 -8
- package/bpk-component-icon/lg/flask.js +37 -8
- package/bpk-component-icon/lg/flight-flexible.js +37 -8
- package/bpk-component-icon/lg/flight-landing.js +41 -8
- package/bpk-component-icon/lg/flight-takeoff.js +39 -8
- package/bpk-component-icon/lg/flight.js +39 -8
- package/bpk-component-icon/lg/food.js +37 -8
- package/bpk-component-icon/lg/gears-automatic-circle.js +37 -8
- package/bpk-component-icon/lg/gears-automatic.js +37 -8
- package/bpk-component-icon/lg/gears-manual-circle.js +37 -8
- package/bpk-component-icon/lg/gears-manual.js +37 -8
- package/bpk-component-icon/lg/globe.js +37 -8
- package/bpk-component-icon/lg/grid-layout.js +37 -8
- package/bpk-component-icon/lg/headset.js +37 -8
- package/bpk-component-icon/lg/health-fitness.js +37 -8
- package/bpk-component-icon/lg/heart--outline.js +37 -8
- package/bpk-component-icon/lg/heart.js +37 -8
- package/bpk-component-icon/lg/help-circle.js +37 -8
- package/bpk-component-icon/lg/help.js +37 -8
- package/bpk-component-icon/lg/hide.js +37 -8
- package/bpk-component-icon/lg/hotel-flexible.js +37 -8
- package/bpk-component-icon/lg/hotels--disabled-facilities.js +37 -8
- package/bpk-component-icon/lg/hotels--jacuzzi.js +37 -8
- package/bpk-component-icon/lg/hotels--pets-allowed.js +37 -8
- package/bpk-component-icon/lg/hotels--smoking.js +37 -8
- package/bpk-component-icon/lg/hotels.js +37 -8
- package/bpk-component-icon/lg/infant.js +37 -8
- package/bpk-component-icon/lg/information--language-alert.js +37 -8
- package/bpk-component-icon/lg/information--language-question.js +37 -8
- package/bpk-component-icon/lg/information--language.js +37 -8
- package/bpk-component-icon/lg/information-circle.js +37 -8
- package/bpk-component-icon/lg/information.js +37 -8
- package/bpk-component-icon/lg/insurance.js +37 -8
- package/bpk-component-icon/lg/key.js +37 -8
- package/bpk-component-icon/lg/keypad.js +37 -8
- package/bpk-component-icon/lg/landmark.js +37 -8
- package/bpk-component-icon/lg/language.js +37 -8
- package/bpk-component-icon/lg/legroom--extra.js +39 -8
- package/bpk-component-icon/lg/legroom--normal.js +39 -8
- package/bpk-component-icon/lg/legroom--reduced.js +39 -8
- package/bpk-component-icon/lg/leisure.js +37 -8
- package/bpk-component-icon/lg/lightning.js +37 -8
- package/bpk-component-icon/lg/list.js +37 -8
- package/bpk-component-icon/lg/location.js +37 -8
- package/bpk-component-icon/lg/lock.js +37 -8
- package/bpk-component-icon/lg/logout.js +39 -8
- package/bpk-component-icon/lg/long-arrow-down.js +37 -8
- package/bpk-component-icon/lg/long-arrow-left.js +37 -8
- package/bpk-component-icon/lg/long-arrow-right.js +37 -8
- package/bpk-component-icon/lg/long-arrow-up.js +37 -8
- package/bpk-component-icon/lg/lounge.js +39 -8
- package/bpk-component-icon/lg/luggageall.js +37 -8
- package/bpk-component-icon/lg/mail.js +39 -8
- package/bpk-component-icon/lg/map.js +37 -8
- package/bpk-component-icon/lg/meal.js +37 -8
- package/bpk-component-icon/lg/media.js +37 -8
- package/bpk-component-icon/lg/menu--horizontal.js +37 -8
- package/bpk-component-icon/lg/menu--vertical.js +37 -8
- package/bpk-component-icon/lg/menu.js +37 -8
- package/bpk-component-icon/lg/mileage.js +39 -8
- package/bpk-component-icon/lg/minus.js +37 -8
- package/bpk-component-icon/lg/mobile.js +37 -8
- package/bpk-component-icon/lg/money.js +37 -8
- package/bpk-component-icon/lg/multiple-bookings.js +37 -8
- package/bpk-component-icon/lg/music.js +37 -8
- package/bpk-component-icon/lg/mute.js +37 -8
- package/bpk-component-icon/lg/native-android--back.js +37 -8
- package/bpk-component-icon/lg/native-android--close.js +37 -8
- package/bpk-component-icon/lg/native-android--forward.js +37 -8
- package/bpk-component-icon/lg/native-ios-close.js +37 -8
- package/bpk-component-icon/lg/navigation.js +37 -8
- package/bpk-component-icon/lg/new-window.js +39 -8
- package/bpk-component-icon/lg/news.js +37 -8
- package/bpk-component-icon/lg/night.js +37 -8
- package/bpk-component-icon/lg/not-allowed.js +37 -8
- package/bpk-component-icon/lg/onsen.js +37 -8
- package/bpk-component-icon/lg/paid.js +37 -8
- package/bpk-component-icon/lg/paperclip.js +37 -8
- package/bpk-component-icon/lg/parking.js +37 -8
- package/bpk-component-icon/lg/passport.js +37 -8
- package/bpk-component-icon/lg/pause.js +37 -8
- package/bpk-component-icon/lg/payment-card.js +37 -8
- package/bpk-component-icon/lg/petrol.js +37 -8
- package/bpk-component-icon/lg/phone-call.js +37 -8
- package/bpk-component-icon/lg/picture.js +37 -8
- package/bpk-component-icon/lg/pin.js +37 -8
- package/bpk-component-icon/lg/plane-seat.js +39 -8
- package/bpk-component-icon/lg/play.js +37 -8
- package/bpk-component-icon/lg/plus.js +37 -8
- package/bpk-component-icon/lg/policy.js +37 -8
- package/bpk-component-icon/lg/powerplug.js +37 -8
- package/bpk-component-icon/lg/ppe.js +37 -8
- package/bpk-component-icon/lg/price-alerts.js +37 -8
- package/bpk-component-icon/lg/price-tag.js +37 -8
- package/bpk-component-icon/lg/print.js +37 -8
- package/bpk-component-icon/lg/recent-searches.js +37 -8
- package/bpk-component-icon/lg/redo.js +37 -8
- package/bpk-component-icon/lg/refresh.js +37 -8
- package/bpk-component-icon/lg/return.js +39 -8
- package/bpk-component-icon/lg/room.js +37 -8
- package/bpk-component-icon/lg/scales.js +39 -8
- package/bpk-component-icon/lg/search.js +37 -8
- package/bpk-component-icon/lg/self-service.js +37 -8
- package/bpk-component-icon/lg/send-message.js +37 -8
- package/bpk-component-icon/lg/services.js +37 -8
- package/bpk-component-icon/lg/settings.js +37 -8
- package/bpk-component-icon/lg/share--android.js +37 -8
- package/bpk-component-icon/lg/share--ios.js +39 -8
- package/bpk-component-icon/lg/share.js +37 -8
- package/bpk-component-icon/lg/single-booking.js +37 -8
- package/bpk-component-icon/lg/social-like.js +37 -8
- package/bpk-component-icon/lg/sort-down.js +37 -8
- package/bpk-component-icon/lg/sort-up.js +37 -8
- package/bpk-component-icon/lg/sort.js +37 -8
- package/bpk-component-icon/lg/speaker.js +39 -8
- package/bpk-component-icon/lg/star-half.js +37 -8
- package/bpk-component-icon/lg/star-outline.js +37 -8
- package/bpk-component-icon/lg/star.js +37 -8
- package/bpk-component-icon/lg/stops.js +37 -8
- package/bpk-component-icon/lg/swap--horizontal.js +37 -8
- package/bpk-component-icon/lg/swap--vertical.js +37 -8
- package/bpk-component-icon/lg/swap.js +37 -8
- package/bpk-component-icon/lg/taxi.js +39 -8
- package/bpk-component-icon/lg/thumbs-down.js +37 -8
- package/bpk-component-icon/lg/thumbs-up.js +37 -8
- package/bpk-component-icon/lg/tick-circle.js +37 -8
- package/bpk-component-icon/lg/tick.js +37 -8
- package/bpk-component-icon/lg/ticket-flexible.js +37 -8
- package/bpk-component-icon/lg/ticket.js +37 -8
- package/bpk-component-icon/lg/time.js +37 -8
- package/bpk-component-icon/lg/toilets.js +37 -8
- package/bpk-component-icon/lg/train.js +37 -8
- package/bpk-component-icon/lg/transmission-automatic.js +37 -8
- package/bpk-component-icon/lg/transmission-manual.js +37 -8
- package/bpk-component-icon/lg/trash.js +37 -8
- package/bpk-component-icon/lg/trend--down.js +37 -8
- package/bpk-component-icon/lg/trend--steady.js +37 -8
- package/bpk-component-icon/lg/trend--will-rise.js +37 -8
- package/bpk-component-icon/lg/trend.js +37 -8
- package/bpk-component-icon/lg/trips.js +37 -8
- package/bpk-component-icon/lg/undo.js +37 -8
- package/bpk-component-icon/lg/unlock.js +37 -8
- package/bpk-component-icon/lg/unmute.js +39 -8
- package/bpk-component-icon/lg/upgrade.js +37 -8
- package/bpk-component-icon/lg/use-location.js +37 -8
- package/bpk-component-icon/lg/view.js +37 -8
- package/bpk-component-icon/lg/virus.js +37 -8
- package/bpk-component-icon/lg/wallet.js +39 -8
- package/bpk-component-icon/lg/weather--clear.js +37 -8
- package/bpk-component-icon/lg/weather--cloudy.js +39 -8
- package/bpk-component-icon/lg/weather--fog.js +37 -8
- package/bpk-component-icon/lg/weather--partly-cloudy.js +39 -8
- package/bpk-component-icon/lg/weather--rain.js +41 -8
- package/bpk-component-icon/lg/weather--snow.js +37 -8
- package/bpk-component-icon/lg/weather--thunderstorm.js +41 -8
- package/bpk-component-icon/lg/weather--tornado.js +37 -8
- package/bpk-component-icon/lg/weather--wind.js +37 -8
- package/bpk-component-icon/lg/weather.js +37 -8
- package/bpk-component-icon/lg/wifi.js +37 -8
- package/bpk-component-icon/lg/window--reduce.js +39 -8
- package/bpk-component-icon/lg/window.js +37 -8
- package/bpk-component-icon/lg/world--amer.js +37 -8
- package/bpk-component-icon/lg/world--apac.js +37 -8
- package/bpk-component-icon/lg/world--emea.js +39 -8
- package/bpk-component-icon/sm/accessibility.js +38 -8
- package/bpk-component-icon/sm/account--add.js +38 -8
- package/bpk-component-icon/sm/account--female.js +38 -8
- package/bpk-component-icon/sm/account--id-card.js +38 -8
- package/bpk-component-icon/sm/account--name.js +38 -8
- package/bpk-component-icon/sm/account--permit.js +38 -8
- package/bpk-component-icon/sm/account-circle.js +38 -8
- package/bpk-component-icon/sm/account.js +38 -8
- package/bpk-component-icon/sm/add-circle.js +38 -8
- package/bpk-component-icon/sm/adult.js +38 -8
- package/bpk-component-icon/sm/aircon.js +38 -8
- package/bpk-component-icon/sm/aircraft.js +40 -8
- package/bpk-component-icon/sm/airline--multiple.js +38 -8
- package/bpk-component-icon/sm/airline.js +38 -8
- package/bpk-component-icon/sm/airports.js +38 -8
- package/bpk-component-icon/sm/alert--active.js +38 -8
- package/bpk-component-icon/sm/alert--add.js +38 -8
- package/bpk-component-icon/sm/alert--expired.js +38 -8
- package/bpk-component-icon/sm/alert--remove.js +38 -8
- package/bpk-component-icon/sm/arrow-down.js +38 -8
- package/bpk-component-icon/sm/arrow-left.js +38 -8
- package/bpk-component-icon/sm/arrow-right.js +38 -8
- package/bpk-component-icon/sm/arrow-up.js +38 -8
- package/bpk-component-icon/sm/award.js +38 -8
- package/bpk-component-icon/sm/baby-carriage.js +38 -8
- package/bpk-component-icon/sm/baggage--add.js +38 -8
- package/bpk-component-icon/sm/baggage--remove.js +38 -8
- package/bpk-component-icon/sm/baggage-cabin-add.js +38 -8
- package/bpk-component-icon/sm/baggage-cabin-not-included.js +41 -8
- package/bpk-component-icon/sm/baggage-cabin.js +38 -8
- package/bpk-component-icon/sm/baggage-checked-add.js +38 -8
- package/bpk-component-icon/sm/baggage-checked-not-included.js +41 -8
- package/bpk-component-icon/sm/baggage-checked.js +38 -8
- package/bpk-component-icon/sm/baggage-cross.js +38 -8
- package/bpk-component-icon/sm/baggage-generic.js +38 -8
- package/bpk-component-icon/sm/baggage-tick.js +38 -8
- package/bpk-component-icon/sm/baggage.js +38 -8
- package/bpk-component-icon/sm/bar.js +38 -8
- package/bpk-component-icon/sm/beach.js +40 -8
- package/bpk-component-icon/sm/beer.js +38 -8
- package/bpk-component-icon/sm/breakfast-cross.js +38 -8
- package/bpk-component-icon/sm/breakfast-tick.js +38 -8
- package/bpk-component-icon/sm/bus.js +40 -8
- package/bpk-component-icon/sm/business.js +38 -8
- package/bpk-component-icon/sm/cafe.js +38 -8
- package/bpk-component-icon/sm/calendar.js +38 -8
- package/bpk-component-icon/sm/call-back.js +40 -8
- package/bpk-component-icon/sm/camera.js +38 -8
- package/bpk-component-icon/sm/camper-van.js +40 -8
- package/bpk-component-icon/sm/car-door.js +38 -8
- package/bpk-component-icon/sm/car-wash.js +40 -8
- package/bpk-component-icon/sm/cars-flexible.js +38 -8
- package/bpk-component-icon/sm/cars.js +40 -8
- package/bpk-component-icon/sm/center-location.js +38 -8
- package/bpk-component-icon/sm/chart.js +38 -8
- package/bpk-component-icon/sm/chauffeur.js +40 -8
- package/bpk-component-icon/sm/chevron-down.js +38 -8
- package/bpk-component-icon/sm/chevron-left.js +38 -8
- package/bpk-component-icon/sm/chevron-right.js +38 -8
- package/bpk-component-icon/sm/chevron-up.js +38 -8
- package/bpk-component-icon/sm/child-seat.js +38 -8
- package/bpk-component-icon/sm/child.js +38 -8
- package/bpk-component-icon/sm/city-center.js +38 -8
- package/bpk-component-icon/sm/city.js +38 -8
- package/bpk-component-icon/sm/clean-policy.js +38 -8
- package/bpk-component-icon/sm/clean.js +40 -8
- package/bpk-component-icon/sm/cleaning-medical.js +38 -8
- package/bpk-component-icon/sm/cloakroom.js +38 -8
- package/bpk-component-icon/sm/close-circle.js +38 -8
- package/bpk-component-icon/sm/close.js +38 -8
- package/bpk-component-icon/sm/collapse.js +38 -8
- package/bpk-component-icon/sm/content--copy.js +40 -8
- package/bpk-component-icon/sm/content--event.js +38 -8
- package/bpk-component-icon/sm/content--guides.js +38 -8
- package/bpk-component-icon/sm/currency.js +38 -8
- package/bpk-component-icon/sm/data.js +40 -8
- package/bpk-component-icon/sm/deals.js +38 -8
- package/bpk-component-icon/sm/depart.js +42 -8
- package/bpk-component-icon/sm/device-mid.js +38 -8
- package/bpk-component-icon/sm/device-wide.js +38 -8
- package/bpk-component-icon/sm/direct.js +40 -8
- package/bpk-component-icon/sm/document-csv.js +38 -8
- package/bpk-component-icon/sm/document-pdf.js +38 -8
- package/bpk-component-icon/sm/download.js +40 -8
- package/bpk-component-icon/sm/duration.js +38 -8
- package/bpk-component-icon/sm/eco-leaf.js +38 -8
- package/bpk-component-icon/sm/edit.js +38 -8
- package/bpk-component-icon/sm/education.js +40 -8
- package/bpk-component-icon/sm/electric.js +38 -8
- package/bpk-component-icon/sm/end-call.js +38 -8
- package/bpk-component-icon/sm/estimated.js +38 -8
- package/bpk-component-icon/sm/exclamation-circle.js +38 -8
- package/bpk-component-icon/sm/exclamation.js +38 -8
- package/bpk-component-icon/sm/expand.js +38 -8
- package/bpk-component-icon/sm/explore.js +38 -8
- package/bpk-component-icon/sm/face--blank.js +38 -8
- package/bpk-component-icon/sm/face--happy.js +38 -8
- package/bpk-component-icon/sm/face--sad.js +38 -8
- package/bpk-component-icon/sm/face-id.js +38 -8
- package/bpk-component-icon/sm/face-mask.js +38 -8
- package/bpk-component-icon/sm/family.js +38 -8
- package/bpk-component-icon/sm/fast-track.js +40 -8
- package/bpk-component-icon/sm/fast-train.js +40 -8
- package/bpk-component-icon/sm/filter.js +39 -8
- package/bpk-component-icon/sm/fingerprint.js +38 -8
- package/bpk-component-icon/sm/flag.js +38 -8
- package/bpk-component-icon/sm/flask.js +38 -8
- package/bpk-component-icon/sm/flight-flexible.js +38 -8
- package/bpk-component-icon/sm/flight-landing.js +42 -8
- package/bpk-component-icon/sm/flight-takeoff.js +40 -8
- package/bpk-component-icon/sm/flight.js +40 -8
- package/bpk-component-icon/sm/food.js +38 -8
- package/bpk-component-icon/sm/gears-automatic-circle.js +38 -8
- package/bpk-component-icon/sm/gears-automatic.js +38 -8
- package/bpk-component-icon/sm/gears-manual-circle.js +38 -8
- package/bpk-component-icon/sm/gears-manual.js +38 -8
- package/bpk-component-icon/sm/globe.js +38 -8
- package/bpk-component-icon/sm/grid-layout.js +38 -8
- package/bpk-component-icon/sm/headset.js +38 -8
- package/bpk-component-icon/sm/health-fitness.js +38 -8
- package/bpk-component-icon/sm/heart--outline.js +38 -8
- package/bpk-component-icon/sm/heart.js +38 -8
- package/bpk-component-icon/sm/help-circle.js +38 -8
- package/bpk-component-icon/sm/help.js +38 -8
- package/bpk-component-icon/sm/hide.js +38 -8
- package/bpk-component-icon/sm/hotel-flexible.js +38 -8
- package/bpk-component-icon/sm/hotels--disabled-facilities.js +38 -8
- package/bpk-component-icon/sm/hotels--jacuzzi.js +40 -8
- package/bpk-component-icon/sm/hotels--pets-allowed.js +38 -8
- package/bpk-component-icon/sm/hotels--smoking.js +38 -8
- package/bpk-component-icon/sm/hotels.js +38 -8
- package/bpk-component-icon/sm/infant.js +40 -8
- package/bpk-component-icon/sm/information--language-alert.js +38 -8
- package/bpk-component-icon/sm/information--language-question.js +38 -8
- package/bpk-component-icon/sm/information--language.js +38 -8
- package/bpk-component-icon/sm/information-circle.js +38 -8
- package/bpk-component-icon/sm/information.js +38 -8
- package/bpk-component-icon/sm/insurance.js +38 -8
- package/bpk-component-icon/sm/key.js +38 -8
- package/bpk-component-icon/sm/keypad.js +38 -8
- package/bpk-component-icon/sm/landmark.js +38 -8
- package/bpk-component-icon/sm/language.js +38 -8
- package/bpk-component-icon/sm/legroom--extra.js +40 -8
- package/bpk-component-icon/sm/legroom--normal.js +40 -8
- package/bpk-component-icon/sm/legroom--reduced.js +40 -8
- package/bpk-component-icon/sm/leisure.js +38 -8
- package/bpk-component-icon/sm/lightning.js +38 -8
- package/bpk-component-icon/sm/list.js +38 -8
- package/bpk-component-icon/sm/location.js +38 -8
- package/bpk-component-icon/sm/lock.js +38 -8
- package/bpk-component-icon/sm/logout.js +40 -8
- package/bpk-component-icon/sm/long-arrow-down.js +39 -8
- package/bpk-component-icon/sm/long-arrow-left.js +39 -8
- package/bpk-component-icon/sm/long-arrow-right.js +39 -8
- package/bpk-component-icon/sm/long-arrow-up.js +39 -8
- package/bpk-component-icon/sm/lounge.js +38 -8
- package/bpk-component-icon/sm/luggageall.js +38 -8
- package/bpk-component-icon/sm/mail.js +40 -8
- package/bpk-component-icon/sm/map.js +38 -8
- package/bpk-component-icon/sm/meal.js +38 -8
- package/bpk-component-icon/sm/media.js +38 -8
- package/bpk-component-icon/sm/menu--horizontal.js +38 -8
- package/bpk-component-icon/sm/menu--vertical.js +38 -8
- package/bpk-component-icon/sm/menu.js +38 -8
- package/bpk-component-icon/sm/mileage.js +40 -8
- package/bpk-component-icon/sm/minus.js +38 -8
- package/bpk-component-icon/sm/mobile.js +38 -8
- package/bpk-component-icon/sm/money.js +38 -8
- package/bpk-component-icon/sm/multiple-bookings.js +38 -8
- package/bpk-component-icon/sm/music.js +38 -8
- package/bpk-component-icon/sm/mute.js +38 -8
- package/bpk-component-icon/sm/native-android--back.js +38 -8
- package/bpk-component-icon/sm/native-android--close.js +38 -8
- package/bpk-component-icon/sm/native-android--forward.js +38 -8
- package/bpk-component-icon/sm/native-ios-close.js +38 -8
- package/bpk-component-icon/sm/navigation.js +38 -8
- package/bpk-component-icon/sm/new-window.js +44 -8
- package/bpk-component-icon/sm/news.js +38 -8
- package/bpk-component-icon/sm/night.js +38 -8
- package/bpk-component-icon/sm/not-allowed.js +38 -8
- package/bpk-component-icon/sm/onsen.js +40 -8
- package/bpk-component-icon/sm/paid.js +38 -8
- package/bpk-component-icon/sm/paperclip.js +38 -8
- package/bpk-component-icon/sm/parking.js +38 -8
- package/bpk-component-icon/sm/passport.js +38 -8
- package/bpk-component-icon/sm/pause.js +38 -8
- package/bpk-component-icon/sm/payment-card.js +38 -8
- package/bpk-component-icon/sm/petrol.js +38 -8
- package/bpk-component-icon/sm/phone-call.js +38 -8
- package/bpk-component-icon/sm/picture.js +38 -8
- package/bpk-component-icon/sm/pin.js +38 -8
- package/bpk-component-icon/sm/plane-seat.js +40 -8
- package/bpk-component-icon/sm/play.js +38 -8
- package/bpk-component-icon/sm/plus.js +38 -8
- package/bpk-component-icon/sm/policy.js +38 -8
- package/bpk-component-icon/sm/powerplug.js +38 -8
- package/bpk-component-icon/sm/ppe.js +38 -8
- package/bpk-component-icon/sm/price-alerts.js +38 -8
- package/bpk-component-icon/sm/price-tag.js +38 -8
- package/bpk-component-icon/sm/print.js +38 -8
- package/bpk-component-icon/sm/recent-searches.js +38 -8
- package/bpk-component-icon/sm/redo.js +38 -8
- package/bpk-component-icon/sm/refresh.js +38 -8
- package/bpk-component-icon/sm/return.js +42 -8
- package/bpk-component-icon/sm/room.js +38 -8
- package/bpk-component-icon/sm/scales.js +38 -8
- package/bpk-component-icon/sm/search.js +38 -8
- package/bpk-component-icon/sm/self-service.js +38 -8
- package/bpk-component-icon/sm/send-message.js +38 -8
- package/bpk-component-icon/sm/services.js +38 -8
- package/bpk-component-icon/sm/settings.js +38 -8
- package/bpk-component-icon/sm/share--android.js +38 -8
- package/bpk-component-icon/sm/share--ios.js +42 -8
- package/bpk-component-icon/sm/share.js +38 -8
- package/bpk-component-icon/sm/single-booking.js +38 -8
- package/bpk-component-icon/sm/social-like.js +38 -8
- package/bpk-component-icon/sm/sort-down.js +38 -8
- package/bpk-component-icon/sm/sort-up.js +38 -8
- package/bpk-component-icon/sm/sort.js +38 -8
- package/bpk-component-icon/sm/speaker.js +38 -8
- package/bpk-component-icon/sm/star-half.js +38 -8
- package/bpk-component-icon/sm/star-outline.js +38 -8
- package/bpk-component-icon/sm/star.js +38 -8
- package/bpk-component-icon/sm/stops.js +38 -8
- package/bpk-component-icon/sm/swap--horizontal.js +39 -8
- package/bpk-component-icon/sm/swap--vertical.js +38 -8
- package/bpk-component-icon/sm/swap.js +39 -8
- package/bpk-component-icon/sm/taxi.js +40 -8
- package/bpk-component-icon/sm/thumbs-down.js +38 -8
- package/bpk-component-icon/sm/thumbs-up.js +38 -8
- package/bpk-component-icon/sm/tick-circle.js +38 -8
- package/bpk-component-icon/sm/tick.js +38 -8
- package/bpk-component-icon/sm/ticket-flexible.js +38 -8
- package/bpk-component-icon/sm/ticket.js +38 -8
- package/bpk-component-icon/sm/time.js +38 -8
- package/bpk-component-icon/sm/toilets.js +38 -8
- package/bpk-component-icon/sm/train.js +38 -8
- package/bpk-component-icon/sm/transmission-automatic.js +38 -8
- package/bpk-component-icon/sm/transmission-manual.js +38 -8
- package/bpk-component-icon/sm/trash.js +38 -8
- package/bpk-component-icon/sm/trend--down.js +38 -8
- package/bpk-component-icon/sm/trend--steady.js +39 -8
- package/bpk-component-icon/sm/trend--will-rise.js +38 -8
- package/bpk-component-icon/sm/trend.js +38 -8
- package/bpk-component-icon/sm/trips.js +38 -8
- package/bpk-component-icon/sm/undo.js +38 -8
- package/bpk-component-icon/sm/unlock.js +38 -8
- package/bpk-component-icon/sm/unmute.js +40 -8
- package/bpk-component-icon/sm/upgrade.js +38 -8
- package/bpk-component-icon/sm/use-location.js +38 -8
- package/bpk-component-icon/sm/view.js +38 -8
- package/bpk-component-icon/sm/virus.js +38 -8
- package/bpk-component-icon/sm/wallet.js +38 -8
- package/bpk-component-icon/sm/weather--clear.js +38 -8
- package/bpk-component-icon/sm/weather--cloudy.js +40 -8
- package/bpk-component-icon/sm/weather--fog.js +38 -8
- package/bpk-component-icon/sm/weather--partly-cloudy.js +38 -8
- package/bpk-component-icon/sm/weather--rain.js +40 -8
- package/bpk-component-icon/sm/weather--snow.js +38 -8
- package/bpk-component-icon/sm/weather--thunderstorm.js +42 -8
- package/bpk-component-icon/sm/weather--tornado.js +38 -8
- package/bpk-component-icon/sm/weather--wind.js +40 -8
- package/bpk-component-icon/sm/weather.js +38 -8
- package/bpk-component-icon/sm/wifi.js +38 -8
- package/bpk-component-icon/sm/window--reduce.js +40 -8
- package/bpk-component-icon/sm/window.js +38 -8
- package/bpk-component-icon/sm/world--amer.js +38 -8
- package/bpk-component-icon/sm/world--apac.js +38 -8
- package/bpk-component-icon/sm/world--emea.js +38 -8
- package/bpk-component-icon/src/BpkIcon.module.css +1 -1
- package/bpk-component-icon/src/classNameModifierHOCFactory.js +42 -52
- package/bpk-component-icon/src/withAlignment.js +26 -41
- package/bpk-component-icon/src/withDescription.js +24 -41
- package/bpk-component-icon/src/withRtlSupport.js +13 -10
- package/bpk-component-image/index.js +38 -20
- package/bpk-component-image/src/BpkBackgroundImage.js +112 -155
- package/bpk-component-image/src/BpkBackgroundImage.module.css +1 -1
- package/bpk-component-image/src/BpkImage.js +147 -202
- package/bpk-component-image/src/BpkImage.module.css +1 -1
- package/bpk-component-image/src/BpkImageBorderRadiusStyles.js +12 -7
- package/bpk-component-image/src/withLazyLoading.js +110 -168
- package/bpk-component-image/src/withLoadingBehavior.js +28 -58
- package/bpk-component-infinite-scroll/index.js +25 -12
- package/bpk-component-infinite-scroll/src/DataSource.js +30 -31
- package/bpk-component-infinite-scroll/src/intersection-observer.js +3 -1
- package/bpk-component-infinite-scroll/src/withInfiniteScroll.js +158 -224
- package/bpk-component-input/index.js +49 -24
- package/bpk-component-input/src/BpkClearButton.js +50 -62
- package/bpk-component-input/src/BpkClearButton.module.css +1 -1
- package/bpk-component-input/src/BpkInput.js +91 -126
- package/bpk-component-input/src/BpkInput.module.css +1 -1
- package/bpk-component-input/src/common-types.js +40 -79
- package/bpk-component-input/src/themeAttributes.js +8 -2
- package/bpk-component-input/src/withOpenEvents.js +89 -131
- package/bpk-component-label/index.js +10 -7
- package/bpk-component-label/src/BpkLabel.js +49 -67
- package/bpk-component-label/src/BpkLabel.module.css +1 -1
- package/bpk-component-link/index.js +32 -11
- package/bpk-component-link/src/BpkButtonLink.js +49 -58
- package/bpk-component-link/src/BpkLink.js +64 -81
- package/bpk-component-link/src/BpkLink.module.css +1 -1
- package/bpk-component-link/src/themeAttributes.js +10 -18
- package/bpk-component-list/index.js +19 -23
- package/bpk-component-list/src/BpkList.js +36 -50
- package/bpk-component-list/src/BpkList.module.css +1 -1
- package/bpk-component-list/src/BpkListItem.js +26 -33
- package/bpk-component-loading-button/index.js +17 -7
- package/bpk-component-loading-button/src/BpkLoadingButton.js +95 -150
- package/bpk-component-loading-button/src/BpkLoadingButton.module.css +18 -0
- package/bpk-component-map/index.js +59 -28
- package/bpk-component-map/src/BpkBasicMapMarker.js +37 -48
- package/bpk-component-map/src/BpkIconMarker.js +64 -93
- package/bpk-component-map/src/BpkIconMarker.module.css +1 -1
- package/bpk-component-map/src/BpkIconMarkerBackground.js +53 -65
- package/bpk-component-map/src/BpkIconMarkerBackground.module.css +1 -1
- package/bpk-component-map/src/BpkMap.js +89 -146
- package/bpk-component-map/src/{BpkMap.module.scss → BpkMap.module.css} +6 -9
- package/bpk-component-map/src/BpkOverlayView.js +38 -43
- package/bpk-component-map/src/BpkPriceMarker.js +70 -106
- package/bpk-component-map/src/BpkPriceMarker.module.css +1 -1
- package/bpk-component-map/src/DefaultLoadingElement.js +20 -17
- package/bpk-component-map/src/DefaultLoadingElement.module.css +1 -1
- package/bpk-component-map/src/common-types.js +12 -14
- package/bpk-component-map/src/themeAttributes.js +13 -18
- package/bpk-component-map/src/withGoogleMapsScript.js +43 -61
- package/bpk-component-mobile-scroll-container/index.js +10 -6
- package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.js +121 -188
- package/bpk-component-modal/index.js +31 -10
- package/bpk-component-modal/src/BpkModal.js +73 -110
- package/bpk-component-modal/src/BpkModal.module.css +1 -1
- package/bpk-component-modal/src/BpkModalInner.js +89 -143
- package/bpk-component-modal/src/BpkModalInner.module.css +1 -1
- package/bpk-component-modal/src/customPropTypes.js +13 -29
- package/bpk-component-modal/src/themeAttributes.js +9 -6
- package/bpk-component-navigation-bar/index.js +31 -25
- package/bpk-component-navigation-bar/src/BpkNavigationBar.js +57 -89
- package/bpk-component-navigation-bar/src/BpkNavigationBar.module.css +1 -1
- package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.js +42 -57
- package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.js +42 -54
- package/bpk-component-navigation-bar/src/themeAttributes.js +8 -16
- package/bpk-component-nudger/index.js +24 -9
- package/bpk-component-nudger/src/BpkConfigurableNudger.js +95 -141
- package/bpk-component-nudger/src/BpkNudger.js +42 -64
- package/bpk-component-nudger/src/BpkNudger.module.css +1 -1
- package/bpk-component-nudger/src/common-types.js +19 -26
- package/bpk-component-nudger/src/themeAttributes.js +9 -6
- package/bpk-component-overlay/index.js +23 -11
- package/bpk-component-overlay/src/BpkOverlay.js +51 -72
- package/bpk-component-overlay/src/BpkOverlay.module.css +1 -1
- package/bpk-component-page-indicator/index.js +24 -11
- package/bpk-component-page-indicator/src/BpkPageIndicator.js +71 -110
- package/bpk-component-page-indicator/src/BpkPageIndicator.module.css +1 -1
- package/bpk-component-page-indicator/src/NavButton.js +48 -59
- package/bpk-component-pagination/index.js +17 -6
- package/bpk-component-pagination/src/BpkPagination.js +67 -81
- package/bpk-component-pagination/src/BpkPaginationBreak.js +20 -11
- package/bpk-component-pagination/src/BpkPaginationList.js +54 -70
- package/bpk-component-pagination/src/BpkPaginationList.module.css +1 -1
- package/bpk-component-pagination/src/BpkPaginationNudger.js +47 -50
- package/bpk-component-pagination/src/BpkPaginationNudger.module.css +1 -1
- package/bpk-component-pagination/src/BpkPaginationPage.js +37 -33
- package/bpk-component-pagination/src/BpkPaginationPage.module.css +1 -1
- package/bpk-component-pagination/src/themeAttributes.js +9 -9
- package/bpk-component-panel/index.js +10 -4
- package/bpk-component-panel/src/BpkPanel.js +40 -44
- package/bpk-component-panel/src/BpkPanel.module.css +1 -1
- package/bpk-component-phone-input/index.js +10 -9
- package/bpk-component-phone-input/src/BpkPhoneInput.js +127 -183
- package/bpk-component-phone-input/src/BpkPhoneInput.module.css +1 -1
- package/bpk-component-popover/index.js +31 -17
- package/bpk-component-popover/src/BpkPopover.js +112 -159
- package/bpk-component-popover/src/BpkPopover.module.css +1 -1
- package/bpk-component-popover/src/BpkPopoverPortal.js +127 -186
- package/bpk-component-popover/src/constants.js +12 -7
- package/bpk-component-popover/src/keyboardFocusScope.js +19 -21
- package/bpk-component-popover/src/themeAttributes.js +9 -6
- package/bpk-component-price/index.js +23 -7
- package/bpk-component-price/src/BpkPrice.js +83 -135
- package/bpk-component-price/src/BpkPrice.module.css +18 -0
- package/bpk-component-price/src/common-types.js +12 -9
- package/bpk-component-progress/index.js +17 -8
- package/bpk-component-progress/src/BpkProgress.js +103 -136
- package/bpk-component-progress/src/BpkProgress.module.css +1 -1
- package/bpk-component-progress/src/themeAttributes.js +8 -4
- package/bpk-component-radio/index.js +17 -8
- package/bpk-component-radio/src/BpkRadio.js +57 -83
- package/bpk-component-radio/src/BpkRadio.module.css +1 -1
- package/bpk-component-radio/src/themeAttributes.js +8 -4
- package/bpk-component-rating/index.js +23 -7
- package/bpk-component-rating/src/BpkRating.js +104 -151
- package/bpk-component-rating/src/BpkRating.module.css +1 -1
- package/bpk-component-rating/src/common-types.js +14 -8
- package/bpk-component-rtl-toggle/index.js +17 -6
- package/bpk-component-rtl-toggle/src/BpkRtlToggle.js +48 -73
- package/bpk-component-rtl-toggle/src/updateOnDirectionChange.js +29 -51
- package/bpk-component-rtl-toggle/src/utils.js +11 -7
- package/bpk-component-scrollable-calendar/index.js +38 -17
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendar.js +12 -19
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarDate.js +31 -37
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.js +44 -51
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.js +125 -164
- package/bpk-component-scrollable-calendar/src/utils.js +13 -19
- package/bpk-component-scrollable-calendar/test-utils.js +200 -246
- package/bpk-component-section-list/index.js +24 -9
- package/bpk-component-section-list/src/BpkSectionList.js +27 -34
- package/bpk-component-section-list/src/BpkSectionListItem.js +66 -89
- package/bpk-component-section-list/src/BpkSectionListItem.module.css +1 -1
- package/bpk-component-section-list/src/BpkSectionListSection.js +49 -60
- package/bpk-component-section-list/src/BpkSectionListSection.module.css +1 -1
- package/bpk-component-select/index.js +17 -9
- package/bpk-component-select/src/BpkSelect.js +64 -111
- package/bpk-component-select/src/BpkSelect.module.css +1 -1
- package/bpk-component-select/src/themeAttributes.js +8 -2
- package/bpk-component-skip-link/index.js +17 -8
- package/bpk-component-skip-link/src/BpkSkipLink.js +40 -51
- package/bpk-component-skip-link/src/BpkSkipLink.module.css +1 -1
- package/bpk-component-skip-link/src/themeAttributes.js +8 -2
- package/bpk-component-slider/index.js +17 -6
- package/bpk-component-slider/src/BpkSlider.js +39 -56
- package/bpk-component-slider/src/BpkSlider.module.css +1 -1
- package/bpk-component-slider/src/themeAttributes.js +8 -2
- package/bpk-component-spinner/index.js +40 -32
- package/bpk-component-spinner/src/BpkExtraLargeSpinner.js +94 -50
- package/bpk-component-spinner/src/BpkLargeSpinner.js +96 -54
- package/bpk-component-spinner/src/BpkSpinner.js +140 -53
- package/bpk-component-spinner/src/BpkSpinner.module.css +1 -1
- package/bpk-component-spinner/src/spinnerTypes.js +9 -5
- package/bpk-component-spinner/src/themeAttributes.js +8 -4
- package/bpk-component-split-input/index.js +17 -10
- package/bpk-component-split-input/src/BpkInputField.js +55 -57
- package/{bpk-component-barchart/src/BpkBarchart.module.scss → bpk-component-split-input/src/BpkInputField.module.css} +6 -9
- package/bpk-component-split-input/src/BpkSplitInput.js +207 -222
- package/bpk-component-split-input/src/BpkSplitInput.module.css +1 -1
- package/bpk-component-star-rating/index.js +65 -21
- package/bpk-component-star-rating/src/BpkInteractiveStar.js +55 -76
- package/bpk-component-star-rating/src/BpkInteractiveStar.module.css +1 -1
- package/bpk-component-star-rating/src/BpkInteractiveStarRating.js +67 -100
- package/bpk-component-star-rating/src/BpkStar.js +73 -95
- package/bpk-component-star-rating/src/BpkStar.module.css +1 -1
- package/bpk-component-star-rating/src/BpkStarRating.js +62 -102
- package/bpk-component-star-rating/src/themeAttributes.js +8 -4
- package/bpk-component-star-rating/src/withInteractiveStarRatingState.js +58 -90
- package/bpk-component-switch/index.js +17 -8
- package/bpk-component-switch/src/BpkSwitch.js +49 -64
- package/bpk-component-switch/src/BpkSwitch.module.css +1 -1
- package/bpk-component-switch/src/themeAttributes.js +8 -2
- package/bpk-component-table/index.js +47 -34
- package/bpk-component-table/src/BpkTable.js +37 -48
- package/bpk-component-table/src/BpkTable.module.css +1 -1
- package/bpk-component-table/src/BpkTableBody.js +17 -29
- package/bpk-component-table/src/BpkTableCell.js +36 -48
- package/bpk-component-table/src/BpkTableHead.js +17 -29
- package/bpk-component-table/src/BpkTableHeadCell.js +34 -48
- package/bpk-component-table/src/BpkTableRow.js +17 -29
- package/bpk-component-text/index.js +23 -7
- package/bpk-component-text/src/BpkText.js +51 -97
- package/bpk-component-text/src/BpkText.module.css +1 -1
- package/bpk-component-textarea/index.js +17 -8
- package/bpk-component-textarea/src/BpkTextarea.js +41 -61
- package/bpk-component-textarea/src/BpkTextarea.module.css +1 -1
- package/bpk-component-textarea/src/themeAttributes.js +8 -4
- package/bpk-component-theme-toggle/index.js +17 -6
- package/bpk-component-theme-toggle/src/BpkThemeToggle.js +85 -96
- package/bpk-component-theme-toggle/src/theming.js +52 -92
- package/bpk-component-theme-toggle/src/updateOnThemeChange.js +38 -58
- package/bpk-component-theme-toggle/src/utils.js +9 -5
- package/bpk-component-ticket/index.js +10 -6
- package/bpk-component-ticket/src/BpkTicket.js +80 -128
- package/bpk-component-ticket/src/BpkTicket.module.css +1 -1
- package/bpk-component-tooltip/index.js +17 -10
- package/bpk-component-tooltip/src/BpkTooltip.js +67 -98
- package/bpk-component-tooltip/src/BpkTooltip.module.css +1 -1
- package/bpk-component-tooltip/src/BpkTooltipPortal.js +125 -191
- package/bpk-component-tooltip/src/constants.js +16 -9
- package/bpk-react-utils/index.js +87 -39
- package/bpk-react-utils/src/Portal.js +64 -115
- package/bpk-react-utils/src/TransitionInitialMount.js +34 -40
- package/bpk-react-utils/src/cssModules.js +14 -12
- package/bpk-react-utils/src/deprecated.js +19 -22
- package/bpk-react-utils/src/deviceDetection.js +11 -14
- package/bpk-react-utils/src/isRTL.js +11 -17
- package/bpk-react-utils/src/withDefaultProps.js +42 -60
- package/bpk-react-utils/src/wrapDisplayName.js +8 -4
- package/bpk-scrim-utils/index.js +17 -6
- package/bpk-scrim-utils/src/BpkScrim.js +27 -28
- package/bpk-scrim-utils/src/bpk-scrim.module.css +1 -1
- package/bpk-scrim-utils/src/customPropTypes.js +11 -19
- package/bpk-scrim-utils/src/scroll-utils.js +20 -38
- package/bpk-scrim-utils/src/withScrim.js +95 -115
- package/bpk-storybook-utils/index.js +43 -0
- package/bpk-storybook-utils/src/BpkDarkExampleWrapper.js +37 -0
- package/{bpk-component-aria-live/src/BpkAriaLive.module.scss → bpk-storybook-utils/src/BpkDarkExampleWrapper.module.css} +6 -13
- package/{bpk-component-barchart/src/BpkChartDataTable.module.scss → bpk-storybook-utils/src/BpkStorybookUtils.js} +19 -9
- package/bpk-theming/index.js +10 -4
- package/bpk-theming/src/BpkThemeProvider.js +59 -73
- package/index.css +0 -0
- package/package.json +4 -4
- package/bpk-animate-height/README.md +0 -53
- package/bpk-component-accordion/README.md +0 -119
- package/bpk-component-accordion/src/BpkAccordionItem.module.scss +0 -76
- package/bpk-component-aria-live/README.md +0 -39
- package/bpk-component-autosuggest/README.md +0 -124
- package/bpk-component-autosuggest/src/BpkAutosuggest.module.scss +0 -156
- package/bpk-component-badge/README.md +0 -36
- package/bpk-component-badge/src/BpkBadge.module.scss +0 -67
- package/bpk-component-banner-alert/README.md +0 -151
- package/bpk-component-banner-alert/src/BpkAnimateAndFade.module.scss +0 -53
- package/bpk-component-banner-alert/src/BpkBannerAlert.module.scss +0 -151
- package/bpk-component-barchart/README.md +0 -186
- package/bpk-component-barchart/data.json +0 -20
- package/bpk-component-barchart/src/BpkBarchartBar.module.scss +0 -70
- package/bpk-component-barchart/src/BpkChartAxis.module.scss +0 -37
- package/bpk-component-barchart/src/BpkChartGridLines.module.scss +0 -26
- package/bpk-component-blockquote/README.md +0 -32
- package/bpk-component-blockquote/src/BpkBlockquote.module.scss +0 -29
- package/bpk-component-breadcrumb/README.md +0 -56
- package/bpk-component-breadcrumb/src/BpkBreadcrumb.module.scss +0 -27
- package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.module.scss +0 -40
- package/bpk-component-breakpoint/README.md +0 -31
- package/bpk-component-button/README.md +0 -135
- package/bpk-component-button/src/BpkButtonBase.module.scss +0 -50
- package/bpk-component-button/src/BpkButtonDestructive.module.scss +0 -24
- package/bpk-component-button/src/BpkButtonFeatured.module.scss +0 -23
- package/bpk-component-button/src/BpkButtonLink.module.scss +0 -25
- package/bpk-component-button/src/BpkButtonLinkOnDark.module.scss +0 -23
- package/bpk-component-button/src/BpkButtonPrimaryOnDark.module.scss +0 -23
- package/bpk-component-button/src/BpkButtonPrimaryOnLight.module.scss +0 -23
- package/bpk-component-button/src/BpkButtonSecondary.module.scss +0 -23
- package/bpk-component-button/src/BpkButtonSecondaryOnDark.module.scss +0 -23
- package/bpk-component-calendar/DOCS.md +0 -23
- package/bpk-component-calendar/README.md +0 -382
- package/bpk-component-calendar/src/BpkCalendar.module.scss +0 -42
- package/bpk-component-calendar/src/BpkCalendarDate.module.scss +0 -122
- package/bpk-component-calendar/src/BpkCalendarGrid.module.scss +0 -65
- package/bpk-component-calendar/src/BpkCalendarGridHeader.module.scss +0 -50
- package/bpk-component-calendar/src/BpkCalendarGridTransition.module.scss +0 -47
- package/bpk-component-calendar/src/BpkCalendarNav.module.scss +0 -89
- package/bpk-component-calendar/src/_variables.scss +0 -22
- package/bpk-component-card/README.md +0 -103
- package/bpk-component-card/src/BpkCard.module.scss +0 -38
- package/bpk-component-card/src/BpkCardWrapper.module.scss +0 -61
- package/bpk-component-card/src/BpkDividedCard.module.scss +0 -71
- package/bpk-component-checkbox/README.md +0 -44
- package/bpk-component-checkbox/src/BpkCheckbox.module.scss +0 -78
- package/bpk-component-chip/README.md +0 -135
- package/bpk-component-close-button/README.md +0 -24
- package/bpk-component-close-button/src/BpkCloseButton.module.scss +0 -52
- package/bpk-component-code/README.md +0 -40
- package/bpk-component-code/src/BpkCode.module.scss +0 -27
- package/bpk-component-code/src/BpkCodeBlock.module.scss +0 -33
- package/bpk-component-content-cards/README.md +0 -37
- package/bpk-component-content-cards/src/BpkContentCard.module.scss +0 -87
- package/bpk-component-content-cards/src/BpkContentCards.module.scss +0 -51
- package/bpk-component-datatable/README.md +0 -196
- package/bpk-component-datatable/src/BpkDataTable.module.scss +0 -90
- package/bpk-component-datatable/src/BpkDataTableHeader.module.scss +0 -65
- package/bpk-component-datepicker/README.md +0 -179
- package/bpk-component-datepicker/src/BpkDatepicker.module.scss +0 -30
- package/bpk-component-description-list/README.md +0 -43
- package/bpk-component-description-list/src/BpkDescriptionList.module.scss +0 -37
- package/bpk-component-dialog/README.md +0 -103
- package/bpk-component-dialog/src/BpkDialog.module.scss +0 -80
- package/bpk-component-dialog/src/BpkDialogInner.module.scss +0 -64
- package/bpk-component-drawer/README.md +0 -88
- package/bpk-component-drawer/src/BpkDrawer.module.scss +0 -23
- package/bpk-component-drawer/src/BpkDrawerContent.module.scss +0 -107
- package/bpk-component-fieldset/README.md +0 -71
- package/bpk-component-fieldset/src/BpkFieldset.module.scss +0 -39
- package/bpk-component-flare/README.md +0 -49
- package/bpk-component-flare/src/bpk-content-bubble.module.scss +0 -61
- package/bpk-component-flare/src/bpk-flare-bar.module.scss +0 -75
- package/bpk-component-flare/src/svgs/corner-radius.svg +0 -1
- package/bpk-component-flare/src/svgs/pointer.svg +0 -1
- package/bpk-component-floating-notification/README.md +0 -47
- package/bpk-component-floating-notification/src/BpkFloatingNotification.module.scss +0 -83
- package/bpk-component-form-validation/README.md +0 -30
- package/bpk-component-form-validation/src/BpkFormValidation.module.scss +0 -44
- package/bpk-component-graphic-promotion/README.md +0 -67
- package/bpk-component-graphic-promotion/src/BpkGraphicPromo.module.scss +0 -270
- package/bpk-component-grid-toggle/README.md +0 -24
- package/bpk-component-grid-toggle/src/BpkGridToggle.module.scss +0 -52
- package/bpk-component-horizontal-nav/README.md +0 -101
- package/bpk-component-horizontal-nav/src/BpkHorizontalNav.module.scss +0 -37
- package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.module.scss +0 -152
- package/bpk-component-icon/README.md +0 -74
- package/bpk-component-icon/lg/origin.js +0 -8
- package/bpk-component-icon/lg/social-distancing.js +0 -8
- package/bpk-component-icon/sm/origin.js +0 -8
- package/bpk-component-icon/sm/social-distancing.js +0 -8
- package/bpk-component-icon/src/BpkIcon.module.scss +0 -33
- package/bpk-component-icon/src/withDescription.module.scss +0 -22
- package/bpk-component-image/README.md +0 -139
- package/bpk-component-image/src/BpkBackgroundImage.module.scss +0 -46
- package/bpk-component-image/src/BpkImage.module.scss +0 -89
- package/bpk-component-infinite-scroll/README.md +0 -183
- package/bpk-component-infinite-scroll/src/withInfiniteScroll-test.flow.js +0 -102
- package/bpk-component-infinite-scroll/src/withInfiniteScroll.module.scss +0 -25
- package/bpk-component-input/README.md +0 -117
- package/bpk-component-input/src/BpkClearButton.module.scss +0 -40
- package/bpk-component-input/src/BpkInput.module.scss +0 -86
- package/bpk-component-label/README.md +0 -27
- package/bpk-component-label/src/BpkLabel.module.scss +0 -47
- package/bpk-component-link/README.md +0 -65
- package/bpk-component-link/src/BpkLink.module.scss +0 -31
- package/bpk-component-list/README.md +0 -48
- package/bpk-component-list/src/BpkList.module.scss +0 -37
- package/bpk-component-loading-button/README.md +0 -45
- package/bpk-component-loading-button/src/BpkLoadingButton.module.scss +0 -67
- package/bpk-component-map/README.md +0 -208
- package/bpk-component-map/src/BpkIconMarker.module.scss +0 -79
- package/bpk-component-map/src/BpkIconMarkerBackground.module.scss +0 -53
- package/bpk-component-map/src/BpkPriceMarker.module.scss +0 -148
- package/bpk-component-map/src/DefaultLoadingElement.module.scss +0 -28
- package/bpk-component-mobile-scroll-container/README.md +0 -71
- package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.module.scss +0 -52
- package/bpk-component-modal/README.md +0 -112
- package/bpk-component-modal/src/BpkModal.module.scss +0 -46
- package/bpk-component-modal/src/BpkModalInner.module.scss +0 -125
- package/bpk-component-navigation-bar/README.md +0 -109
- package/bpk-component-navigation-bar/src/BpkNavigationBar.module.scss +0 -77
- package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.module.scss +0 -51
- package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.module.scss +0 -43
- package/bpk-component-nudger/README.md +0 -168
- package/bpk-component-nudger/src/BpkNudger.module.scss +0 -50
- package/bpk-component-overlay/README.md +0 -49
- package/bpk-component-overlay/src/BpkOverlay.module.scss +0 -163
- package/bpk-component-page-indicator/README.md +0 -41
- package/bpk-component-page-indicator/src/BpkPageIndicator.module.scss +0 -91
- package/bpk-component-pagination/README.md +0 -56
- package/bpk-component-pagination/src/BpkPagination.module.scss +0 -22
- package/bpk-component-pagination/src/BpkPaginationList.module.scss +0 -46
- package/bpk-component-pagination/src/BpkPaginationNudger.module.scss +0 -34
- package/bpk-component-pagination/src/BpkPaginationPage.module.scss +0 -59
- package/bpk-component-panel/README.md +0 -30
- package/bpk-component-panel/src/BpkPanel.module.scss +0 -31
- package/bpk-component-phone-input/README.md +0 -98
- package/bpk-component-phone-input/src/BpkPhoneInput.module.scss +0 -42
- package/bpk-component-popover/README.md +0 -138
- package/bpk-component-popover/src/BpkPopover.module.scss +0 -127
- package/bpk-component-price/README.md +0 -35
- package/bpk-component-price/src/BpkPrice.module.scss +0 -74
- package/bpk-component-progress/README.md +0 -53
- package/bpk-component-progress/src/BpkProgress.module.scss +0 -64
- package/bpk-component-radio/README.md +0 -40
- package/bpk-component-radio/src/BpkRadio.module.scss +0 -85
- package/bpk-component-rating/README.md +0 -77
- package/bpk-component-rating/src/BpkRating.module.scss +0 -86
- package/bpk-component-rtl-toggle/README.md +0 -23
- package/bpk-component-scrollable-calendar/README.md +0 -100
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.module.scss +0 -31
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.module.scss +0 -36
- package/bpk-component-section-list/README.md +0 -49
- package/bpk-component-section-list/src/BpkSectionListItem.module.scss +0 -54
- package/bpk-component-section-list/src/BpkSectionListSection.module.scss +0 -35
- package/bpk-component-select/README.md +0 -62
- package/bpk-component-select/src/BpkSelect.module.scss +0 -131
- package/bpk-component-skip-link/README.md +0 -27
- package/bpk-component-skip-link/src/BpkSkipLink.module.scss +0 -50
- package/bpk-component-slider/README.md +0 -41
- package/bpk-component-slider/src/BpkSlider.module.scss +0 -102
- package/bpk-component-spinner/README.md +0 -37
- package/bpk-component-spinner/changelog.yml +0 -55
- package/bpk-component-spinner/src/BpkSpinner.module.scss +0 -58
- package/bpk-component-split-input/README.md +0 -39
- package/bpk-component-split-input/src/BpkInputField.module.scss +0 -34
- package/bpk-component-split-input/src/BpkSplitInput.module.scss +0 -36
- package/bpk-component-star-rating/README.md +0 -96
- package/bpk-component-star-rating/src/BpkInteractiveStar.module.scss +0 -66
- package/bpk-component-star-rating/src/BpkStar.module.scss +0 -63
- package/bpk-component-star-rating/src/BpkStarRating.module.scss +0 -21
- package/bpk-component-switch/README.md +0 -34
- package/bpk-component-switch/src/BpkSwitch.module.scss +0 -92
- package/bpk-component-table/README.md +0 -62
- package/bpk-component-table/src/BpkTable.module.scss +0 -31
- package/bpk-component-text/README.md +0 -71
- package/bpk-component-text/src/BpkText.module.scss +0 -139
- package/bpk-component-textarea/README.md +0 -31
- package/bpk-component-textarea/src/BpkTextarea.module.scss +0 -33
- package/bpk-component-theme-toggle/README.md +0 -26
- package/bpk-component-theme-toggle/src/BpkThemeToggle.module.scss +0 -25
- package/bpk-component-ticket/README.md +0 -34
- package/bpk-component-ticket/src/BpkTicket.module.scss +0 -144
- package/bpk-component-tooltip/README.md +0 -65
- package/bpk-component-tooltip/src/BpkTooltip.module.scss +0 -149
- package/bpk-react-utils/README.md +0 -243
- package/bpk-scrim-utils/README.md +0 -47
- package/bpk-scrim-utils/src/bpk-scrim-content.module.scss +0 -32
- package/bpk-scrim-utils/src/bpk-scrim.module.scss +0 -45
- package/bpk-theming/README.md +0 -41
|
@@ -1,163 +1,109 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
import { BpkButtonLink } from '../../bpk-component-link';
|
|
25
|
-
import BpkCloseButton from '../../bpk-component-close-button';
|
|
26
|
-
import BpkNavigationBar from '../../bpk-component-navigation-bar';
|
|
27
|
-
import { TransitionInitialMount, cssModules } from '../../bpk-react-utils';
|
|
28
|
-
|
|
29
|
-
import STYLES from './BpkModalInner.module.scss';
|
|
30
|
-
import { titlePropType, onClosePropType } from './customPropTypes';
|
|
31
|
-
|
|
32
|
-
const getClassName = cssModules(STYLES);
|
|
33
|
-
|
|
34
|
-
export type Props = {
|
|
35
|
-
id: string,
|
|
36
|
-
children: Node,
|
|
37
|
-
wide: boolean,
|
|
38
|
-
isIphone: boolean,
|
|
39
|
-
showHeader: boolean,
|
|
40
|
-
fullScreenOnMobile: boolean,
|
|
41
|
-
fullScreen: boolean,
|
|
42
|
-
padded: boolean,
|
|
43
|
-
dialogRef: (ref: ?HTMLElement) => void,
|
|
44
|
-
onClose: (event: SyntheticEvent<>) => void,
|
|
45
|
-
className: ?string,
|
|
46
|
-
contentClassName: ?string,
|
|
47
|
-
title: ?string,
|
|
48
|
-
closeLabel: string,
|
|
49
|
-
closeText: ?string,
|
|
50
|
-
accessoryView: ?Element<any>,
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
const BpkModalInner = (props: Props) => {
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.propTypes = exports.defaultProps = exports.default = void 0;
|
|
7
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
8
|
+
var _bpkComponentLink = require("../../bpk-component-link");
|
|
9
|
+
var _bpkComponentCloseButton = _interopRequireDefault(require("../../bpk-component-close-button"));
|
|
10
|
+
var _bpkComponentNavigationBar = _interopRequireDefault(require("../../bpk-component-navigation-bar"));
|
|
11
|
+
var _bpkReactUtils = require("../../bpk-react-utils");
|
|
12
|
+
var _BpkModalInnerModule = _interopRequireDefault(require("./BpkModalInner.module.css"));
|
|
13
|
+
var _customPropTypes = require("./customPropTypes");
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
17
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
18
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
19
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
20
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
21
|
+
const getClassName = (0, _bpkReactUtils.cssModules)(_BpkModalInnerModule.default);
|
|
22
|
+
const BpkModalInner = props => {
|
|
54
23
|
const classNames = [getClassName('bpk-modal')];
|
|
55
24
|
const contentClassNames = [getClassName('bpk-modal__content')];
|
|
56
25
|
const navigationStyles = [getClassName('bpk-modal__navigation')];
|
|
57
|
-
|
|
58
26
|
if (props.wide) {
|
|
59
27
|
classNames.push(getClassName('bpk-modal--wide'));
|
|
60
28
|
}
|
|
61
29
|
if (props.className) {
|
|
62
30
|
classNames.push(props.className);
|
|
63
31
|
}
|
|
64
|
-
|
|
65
32
|
if (props.fullScreen || props.isIphone) {
|
|
66
33
|
classNames.push(getClassName('bpk-modal--full-screen'));
|
|
67
34
|
} else if (props.fullScreenOnMobile) {
|
|
68
35
|
classNames.push(getClassName('bpk-modal--full-screen-mobile'));
|
|
69
36
|
}
|
|
70
|
-
|
|
71
37
|
if (props.padded) {
|
|
72
38
|
contentClassNames.push(getClassName('bpk-modal__content--padded'));
|
|
73
39
|
}
|
|
74
|
-
|
|
75
40
|
if (props.contentClassName) {
|
|
76
41
|
contentClassNames.push(props.contentClassName);
|
|
77
42
|
}
|
|
78
|
-
|
|
79
43
|
const headingId = `bpk-modal-heading-${props.id}`;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
{props.closeText}
|
|
123
|
-
</BpkButtonLink>
|
|
124
|
-
) : (
|
|
125
|
-
<BpkCloseButton
|
|
126
|
-
className={getClassName('bpk-modal__close-button')}
|
|
127
|
-
label={props.closeLabel}
|
|
128
|
-
onClick={props.onClose}
|
|
129
|
-
/>
|
|
130
|
-
)
|
|
131
|
-
}
|
|
132
|
-
/>
|
|
133
|
-
</header>
|
|
134
|
-
)}
|
|
135
|
-
<div className={contentClassNames.join(' ')}>{props.children}</div>
|
|
136
|
-
</section>
|
|
137
|
-
</TransitionInitialMount>
|
|
138
|
-
);
|
|
44
|
+
const accessoryViewFinal = props.accessoryView ? /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
45
|
+
className: getClassName('bpk-modal__accessory-view'),
|
|
46
|
+
children: props.accessoryView
|
|
47
|
+
}) : null;
|
|
48
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_bpkReactUtils.TransitionInitialMount, {
|
|
49
|
+
appearClassName: getClassName('bpk-modal--appear'),
|
|
50
|
+
appearActiveClassName: getClassName('bpk-modal--appear-active'),
|
|
51
|
+
transitionTimeout: 300,
|
|
52
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("section", {
|
|
53
|
+
id: props.id,
|
|
54
|
+
tabIndex: "-1",
|
|
55
|
+
role: "dialog",
|
|
56
|
+
"aria-labelledby": props.showHeader ? headingId : null,
|
|
57
|
+
className: classNames.join(' '),
|
|
58
|
+
ref: props.dialogRef,
|
|
59
|
+
children: [props.showHeader && /*#__PURE__*/(0, _jsxRuntime.jsx)("header", {
|
|
60
|
+
className: getClassName('bpk-modal__header'),
|
|
61
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_bpkComponentNavigationBar.default, {
|
|
62
|
+
id: headingId,
|
|
63
|
+
className: navigationStyles.join(' '),
|
|
64
|
+
title: /*#__PURE__*/(0, _jsxRuntime.jsx)("h2", {
|
|
65
|
+
id: headingId,
|
|
66
|
+
className: getClassName('bpk-modal__heading'),
|
|
67
|
+
children: props.title
|
|
68
|
+
}),
|
|
69
|
+
leadingButton: accessoryViewFinal,
|
|
70
|
+
trailingButton: props.closeText ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_bpkComponentLink.BpkButtonLink, {
|
|
71
|
+
className: getClassName('bpk-modal__close-button'),
|
|
72
|
+
onClick: props.onClose,
|
|
73
|
+
children: props.closeText
|
|
74
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_bpkComponentCloseButton.default, {
|
|
75
|
+
className: getClassName('bpk-modal__close-button'),
|
|
76
|
+
label: props.closeLabel,
|
|
77
|
+
onClick: props.onClose
|
|
78
|
+
})
|
|
79
|
+
})
|
|
80
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
81
|
+
className: contentClassNames.join(' '),
|
|
82
|
+
children: props.children
|
|
83
|
+
})]
|
|
84
|
+
})
|
|
85
|
+
});
|
|
139
86
|
};
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
accesoryView: PropTypes.func,
|
|
87
|
+
const propTypes = {
|
|
88
|
+
id: _propTypes.default.string.isRequired,
|
|
89
|
+
children: _propTypes.default.node.isRequired,
|
|
90
|
+
isIphone: _propTypes.default.bool.isRequired,
|
|
91
|
+
dialogRef: _propTypes.default.func.isRequired,
|
|
92
|
+
title: _customPropTypes.titlePropType,
|
|
93
|
+
onClose: _customPropTypes.onClosePropType,
|
|
94
|
+
className: _propTypes.default.string,
|
|
95
|
+
contentClassName: _propTypes.default.string,
|
|
96
|
+
closeLabel: _propTypes.default.string,
|
|
97
|
+
closeText: _propTypes.default.string,
|
|
98
|
+
wide: _propTypes.default.bool,
|
|
99
|
+
showHeader: _propTypes.default.bool,
|
|
100
|
+
fullScreenOnMobile: _propTypes.default.bool,
|
|
101
|
+
fullScreen: _propTypes.default.bool,
|
|
102
|
+
padded: _propTypes.default.bool,
|
|
103
|
+
accesoryView: _propTypes.default.func
|
|
158
104
|
};
|
|
159
|
-
|
|
160
|
-
|
|
105
|
+
exports.propTypes = propTypes;
|
|
106
|
+
const defaultProps = {
|
|
161
107
|
title: null,
|
|
162
108
|
onClose: () => null,
|
|
163
109
|
className: null,
|
|
@@ -169,10 +115,10 @@ export const defaultProps = {
|
|
|
169
115
|
fullScreenOnMobile: true,
|
|
170
116
|
fullScreen: false,
|
|
171
117
|
padded: true,
|
|
172
|
-
accessoryView: null
|
|
118
|
+
accessoryView: null
|
|
173
119
|
};
|
|
174
|
-
|
|
175
|
-
BpkModalInner.propTypes = {
|
|
176
|
-
BpkModalInner.defaultProps = {
|
|
177
|
-
|
|
178
|
-
|
|
120
|
+
exports.defaultProps = defaultProps;
|
|
121
|
+
BpkModalInner.propTypes = _objectSpread({}, propTypes);
|
|
122
|
+
BpkModalInner.defaultProps = _objectSpread({}, defaultProps);
|
|
123
|
+
var _default = BpkModalInner;
|
|
124
|
+
exports.default = _default;
|
|
@@ -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
|
-
@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-modal{z-index:1100;width:100%;max-width:
|
|
18
|
+
@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-modal{z-index:1100;width:100%;max-width:32rem;margin:auto;transform:scale(1);transition:opacity 200ms ease-in-out,transform 200ms ease-in-out;outline:0;background-color:#fff;opacity:1;overflow:hidden;-webkit-tap-highlight-color:transparent;box-shadow:0px 12px 50px 0px rgba(37,32,31,0.25);border-radius:.5rem}@media (max-width: 32rem){.bpk-modal--full-screen-mobile{display:flex;margin:0;flex-direction:column;border-radius:0;box-shadow:none}}.bpk-modal--full-screen{max-width:none;display:flex;margin:0;flex-direction:column;border-radius:0;box-shadow:none}@media (min-width: 32.0625rem){.bpk-modal--wide{max-width:64rem}}.bpk-modal--appear{transform:scale(0.9);opacity:0}.bpk-modal--appear-active{transform:scale(1);opacity:1}.bpk-modal__header{box-shadow:0 -1px 0 0 #c2c9cd inset}.bpk-modal__navigation{display:flex;justify-content:space-between;background-color:#fff}.bpk-modal__heading{margin:0;font-size:1rem;line-height:1.5rem;font-weight:700}.bpk-modal__close-button{position:relative;right:auto;margin-left:1rem;margin-right:0}html[dir='rtl'] .bpk-modal__close-button{margin-left:0;margin-right:1rem}html[dir='rtl'] .bpk-modal__close-button{left:auto}.bpk-modal__accessory-view{position:relative;left:auto;margin-right:1rem}html[dir='rtl'] .bpk-modal__accessory-view{right:auto;margin-left:1rem}.bpk-modal__content{flex:1;overflow-y:auto}.bpk-modal__content--padded{padding:1rem}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.titlePropType = exports.onClosePropType = void 0;
|
|
1
7
|
/*
|
|
2
8
|
* Backpack - Skyscanner's Design System
|
|
3
9
|
*
|
|
@@ -14,41 +20,19 @@
|
|
|
14
20
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
21
|
* See the License for the specific language governing permissions and
|
|
16
22
|
* limitations under the License.
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
/* @flow strict */
|
|
20
|
-
|
|
21
|
-
export const titlePropType = (
|
|
22
|
-
props: Object,
|
|
23
|
-
propName: string,
|
|
24
|
-
componentName: string,
|
|
25
|
-
): ?Error => {
|
|
23
|
+
*/const titlePropType = (props, propName, componentName) => {
|
|
26
24
|
const titleValue = props[propName];
|
|
27
|
-
|
|
28
25
|
if (props.showHeader && (!titleValue || typeof titleValue !== 'string')) {
|
|
29
|
-
return new Error(
|
|
30
|
-
`Invalid prop \`${propName}\` supplied to \`${componentName}\`. There must be a title if showHeader is true.`,
|
|
31
|
-
);
|
|
26
|
+
return new Error(`Invalid prop \`${propName}\` supplied to \`${componentName}\`. There must be a title if showHeader is true.`);
|
|
32
27
|
}
|
|
33
|
-
|
|
34
28
|
return null;
|
|
35
29
|
};
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
props: Object,
|
|
39
|
-
propName: string,
|
|
40
|
-
componentName: string,
|
|
41
|
-
): ?Error => {
|
|
30
|
+
exports.titlePropType = titlePropType;
|
|
31
|
+
const onClosePropType = (props, propName, componentName) => {
|
|
42
32
|
const onCloseValue = props[propName];
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
props.showHeader &&
|
|
46
|
-
(!onCloseValue || typeof onCloseValue !== 'function')
|
|
47
|
-
) {
|
|
48
|
-
return new Error(
|
|
49
|
-
`Invalid prop \`${propName}\` supplied to \`${componentName}\`. There must an onClose handler if showHeader is true.`,
|
|
50
|
-
);
|
|
33
|
+
if (props.showHeader && (!onCloseValue || typeof onCloseValue !== 'function')) {
|
|
34
|
+
return new Error(`Invalid prop \`${propName}\` supplied to \`${componentName}\`. There must an onClose handler if showHeader is true.`);
|
|
51
35
|
}
|
|
52
|
-
|
|
53
36
|
return null;
|
|
54
37
|
};
|
|
38
|
+
exports.onClosePropType = onClosePropType;
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _bpkComponentLink = require("../../bpk-component-link");
|
|
1
8
|
/*
|
|
2
9
|
* Backpack - Skyscanner's Design System
|
|
3
10
|
*
|
|
@@ -15,9 +22,5 @@
|
|
|
15
22
|
* See the License for the specific language governing permissions and
|
|
16
23
|
* limitations under the License.
|
|
17
24
|
*/
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
import { themeAttributes as linkAttributes } from '../../bpk-component-link';
|
|
22
|
-
|
|
23
|
-
export default [...linkAttributes];
|
|
25
|
+
var _default = [..._bpkComponentLink.themeAttributes];
|
|
26
|
+
exports.default = _default;
|
|
@@ -1,3 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "BpkNavigationBarButtonLink", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _BpkNavigationBarButtonLink.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "BpkNavigationBarIconButton", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _BpkNavigationBarIconButton.default;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
exports.default = void 0;
|
|
19
|
+
Object.defineProperty(exports, "themeAttributes", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () {
|
|
22
|
+
return _themeAttributes.default;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
var _BpkNavigationBar = _interopRequireDefault(require("./src/BpkNavigationBar"));
|
|
26
|
+
var _BpkNavigationBarIconButton = _interopRequireDefault(require("./src/BpkNavigationBarIconButton"));
|
|
27
|
+
var _BpkNavigationBarButtonLink = _interopRequireDefault(require("./src/BpkNavigationBarButtonLink"));
|
|
28
|
+
var _themeAttributes = _interopRequireDefault(require("./src/themeAttributes"));
|
|
29
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1
30
|
/*
|
|
2
31
|
* Backpack - Skyscanner's Design System
|
|
3
32
|
*
|
|
@@ -15,28 +44,5 @@
|
|
|
15
44
|
* See the License for the specific language governing permissions and
|
|
16
45
|
* limitations under the License.
|
|
17
46
|
*/
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
import BpkNavigationBar, {
|
|
22
|
-
type Props as BpkNavigationBarProps,
|
|
23
|
-
} from './src/BpkNavigationBar';
|
|
24
|
-
import BpkNavigationBarIconButton, {
|
|
25
|
-
type Props as BpkNavigationBarIconButtonProps,
|
|
26
|
-
} from './src/BpkNavigationBarIconButton';
|
|
27
|
-
import BpkNavigationBarButtonLink, {
|
|
28
|
-
type Props as BpkNavigationBarButtonLinkProps,
|
|
29
|
-
} from './src/BpkNavigationBarButtonLink';
|
|
30
|
-
import themeAttributes from './src/themeAttributes';
|
|
31
|
-
|
|
32
|
-
export type {
|
|
33
|
-
BpkNavigationBarProps,
|
|
34
|
-
BpkNavigationBarIconButtonProps,
|
|
35
|
-
BpkNavigationBarButtonLinkProps,
|
|
36
|
-
};
|
|
37
|
-
export {
|
|
38
|
-
BpkNavigationBarIconButton,
|
|
39
|
-
BpkNavigationBarButtonLink,
|
|
40
|
-
themeAttributes,
|
|
41
|
-
};
|
|
42
|
-
export default BpkNavigationBar;
|
|
47
|
+
var _default = _BpkNavigationBar.default;
|
|
48
|
+
exports.default = _default;
|
|
@@ -1,107 +1,75 @@
|
|
|
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
|
-
*/
|
|
1
|
+
"use strict";
|
|
18
2
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
const cloneWithClass = (elem
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
var _bpkReactUtils = require("../../bpk-react-utils");
|
|
10
|
+
var _bpkComponentText = _interopRequireWildcard(require("../../bpk-component-text"));
|
|
11
|
+
var _BpkNavigationBarModule = _interopRequireDefault(require("./BpkNavigationBar.module.css"));
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
const _excluded = ["className", "id", "leadingButton", "sticky", "title", "trailingButton"];
|
|
14
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
18
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
19
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
20
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
21
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
22
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
23
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
24
|
+
const getClassNames = (0, _bpkReactUtils.cssModules)(_BpkNavigationBarModule.default);
|
|
25
|
+
const cloneWithClass = (elem, newStyle) => {
|
|
42
26
|
const className = getClassNames(elem.props.className, newStyle);
|
|
43
|
-
return cloneElement(elem, {
|
|
27
|
+
return /*#__PURE__*/(0, _react.cloneElement)(elem, _objectSpread(_objectSpread({}, elem.props), {}, {
|
|
28
|
+
className
|
|
29
|
+
}));
|
|
44
30
|
};
|
|
45
|
-
|
|
46
|
-
const BpkNavigationBar = (props: Props) => {
|
|
31
|
+
const BpkNavigationBar = props => {
|
|
47
32
|
const {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
33
|
+
className,
|
|
34
|
+
id,
|
|
35
|
+
leadingButton,
|
|
36
|
+
sticky,
|
|
37
|
+
title,
|
|
38
|
+
trailingButton
|
|
39
|
+
} = props,
|
|
40
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
56
41
|
|
|
57
42
|
// If the title is a component that sets its own id we want the aria-labelledby on the nav to match this so it can find the element
|
|
58
43
|
// Otherwise if its just a string we set the id on the title component.
|
|
59
|
-
const titleId =
|
|
60
|
-
typeof title === 'string' ? `${id}-bpk-navigation-bar-title` : id;
|
|
61
|
-
|
|
44
|
+
const titleId = typeof title === 'string' ? `${id}-bpk-navigation-bar-title` : id;
|
|
62
45
|
return (
|
|
46
|
+
/*#__PURE__*/
|
|
63
47
|
// $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
|
|
64
|
-
|
|
65
|
-
aria-labelledby
|
|
66
|
-
className
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
{typeof title === 'string' ? (
|
|
76
|
-
<BpkText
|
|
77
|
-
id={titleId}
|
|
78
|
-
textStyle={TEXT_STYLES.heading5}
|
|
79
|
-
className={getClassNames('bpk-navigation-bar__title')}
|
|
80
|
-
>
|
|
81
|
-
{title}
|
|
82
|
-
</BpkText>
|
|
83
|
-
) : (
|
|
84
|
-
title
|
|
85
|
-
)}
|
|
86
|
-
{trailingButton &&
|
|
87
|
-
cloneWithClass(trailingButton, 'bpk-navigation-bar__trailing-item')}
|
|
88
|
-
</nav>
|
|
48
|
+
(0, _jsxRuntime.jsxs)("nav", _objectSpread(_objectSpread({
|
|
49
|
+
"aria-labelledby": titleId,
|
|
50
|
+
className: getClassNames('bpk-navigation-bar', sticky && 'bpk-navigation-bar__sticky', className)
|
|
51
|
+
}, rest), {}, {
|
|
52
|
+
children: [leadingButton && cloneWithClass(leadingButton, 'bpk-navigation-bar__leading-item'), typeof title === 'string' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_bpkComponentText.default, {
|
|
53
|
+
id: titleId,
|
|
54
|
+
textStyle: _bpkComponentText.TEXT_STYLES.heading5,
|
|
55
|
+
className: getClassNames('bpk-navigation-bar__title'),
|
|
56
|
+
children: title
|
|
57
|
+
}) : title, trailingButton && cloneWithClass(trailingButton, 'bpk-navigation-bar__trailing-item')]
|
|
58
|
+
}))
|
|
89
59
|
);
|
|
90
60
|
};
|
|
91
|
-
|
|
92
61
|
BpkNavigationBar.propTypes = {
|
|
93
|
-
title:
|
|
94
|
-
className:
|
|
95
|
-
leadingButton:
|
|
96
|
-
trailingButton:
|
|
97
|
-
sticky:
|
|
62
|
+
title: _propTypes.default.node.isRequired,
|
|
63
|
+
className: _propTypes.default.string,
|
|
64
|
+
leadingButton: _propTypes.default.element,
|
|
65
|
+
trailingButton: _propTypes.default.element,
|
|
66
|
+
sticky: _propTypes.default.bool
|
|
98
67
|
};
|
|
99
|
-
|
|
100
68
|
BpkNavigationBar.defaultProps = {
|
|
101
69
|
className: null,
|
|
102
70
|
leadingButton: null,
|
|
103
71
|
trailingButton: null,
|
|
104
|
-
sticky: false
|
|
72
|
+
sticky: false
|
|
105
73
|
};
|
|
106
|
-
|
|
107
|
-
|
|
74
|
+
var _default = BpkNavigationBar;
|
|
75
|
+
exports.default = _default;
|
|
@@ -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
|
-
@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-navigation-bar{position:relative;display:flex;min-height:3.5rem;padding:1rem;flex-direction:row;justify-content:center;align-items:center;background-color:#
|
|
18
|
+
@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-navigation-bar{position:relative;display:flex;min-height:3.5rem;padding:1rem;flex-direction:row;justify-content:center;align-items:center;background-color:#0062e3;background-color:var(--bpk-navigation-bar-background-color, #0062e3);box-shadow:0 -1px 0 0 #c2c9cd inset}.bpk-navigation-bar__title{color:#fff;color:var(--bpk-navigation-bar-title-color, #fff)}.bpk-navigation-bar__leading-item,.bpk-navigation-bar__trailing-item{position:absolute;font-size:.875rem;line-height:1.25rem;font-weight:700}.bpk-navigation-bar__leading-item{left:1rem}html[dir='rtl'] .bpk-navigation-bar__leading-item{right:1rem;left:auto}.bpk-navigation-bar__trailing-item{right:1rem}html[dir='rtl'] .bpk-navigation-bar__trailing-item{right:auto;left:1rem}.bpk-navigation-bar__sticky{position:sticky;top:0;z-index:899}
|