@skyscanner/backpack-web 17.0.2 → 17.1.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/bpk-animate-height/index.js +10 -4
- package/bpk-animate-height/src/AnimateHeight.js +71 -92
- package/bpk-component-accordion/index.js +33 -30
- package/bpk-component-accordion/src/BpkAccordion.js +31 -45
- package/bpk-component-accordion/src/BpkAccordionItem.js +76 -113
- package/bpk-component-accordion/src/BpkAccordionItem.module.css +1 -1
- package/bpk-component-accordion/src/withAccordionItemState.js +52 -76
- package/bpk-component-accordion/src/withSingleItemAccordionState.js +48 -83
- package/bpk-component-aria-live/index.js +17 -9
- package/bpk-component-aria-live/src/BpkAriaLive.js +33 -56
- package/bpk-component-autosuggest/index.js +17 -8
- package/bpk-component-autosuggest/src/BpkAutosuggest.js +36 -55
- package/bpk-component-autosuggest/src/BpkAutosuggest.module.css +1 -1
- package/bpk-component-autosuggest/src/BpkAutosuggestSuggestion.js +50 -86
- package/bpk-component-badge/index.js +25 -9
- package/bpk-component-badge/src/BpkBadge.js +38 -54
- 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 +105 -148
- package/bpk-component-banner-alert/src/BpkBannerAlert.js +15 -21
- package/bpk-component-banner-alert/src/BpkBannerAlert.module.css +1 -1
- package/bpk-component-banner-alert/src/BpkBannerAlertDismissable.js +33 -51
- package/bpk-component-banner-alert/src/BpkBannerAlertExpandable.js +41 -57
- package/bpk-component-banner-alert/src/BpkBannerAlertInner.js +129 -205
- package/bpk-component-banner-alert/src/common-types.js +23 -42
- package/bpk-component-banner-alert/src/themeAttributes.js +8 -7
- package/bpk-component-banner-alert/src/withBannerAlertState.js +104 -160
- package/bpk-component-barchart/index.js +52 -21
- package/bpk-component-barchart/src/BpkBarchart.js +213 -304
- package/bpk-component-barchart/src/BpkBarchartBar.js +81 -131
- package/bpk-component-barchart/src/BpkBarchartBar.module.css +1 -1
- package/bpk-component-barchart/src/BpkBarchartBars.js +116 -146
- package/bpk-component-barchart/src/BpkBarchartDefs.js +30 -42
- package/bpk-component-barchart/src/BpkChartAxis.js +93 -149
- package/bpk-component-barchart/src/BpkChartAxis.module.css +1 -1
- package/bpk-component-barchart/src/BpkChartDataTable.js +36 -53
- package/bpk-component-barchart/src/BpkChartGridLines.js +65 -107
- package/bpk-component-barchart/src/BpkChartGridLines.module.css +1 -1
- package/bpk-component-barchart/src/BpkChartMargin.js +31 -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 +21 -24
- package/bpk-component-blockquote/src/BpkBlockquote.module.css +1 -1
- package/bpk-component-blockquote/src/themeAttributes.js +8 -2
- package/{bpk-component-barchart/src/BpkChartAxis.module.scss → bpk-component-boilerplate/index.js} +10 -20
- package/bpk-component-boilerplate/src/BpkBoilerplate.js +38 -0
- package/{bpk-component-button/src/BpkButtonOutline.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 +57 -86
- package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.js +55 -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 +39 -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/BpkButtonOutline.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 +130 -40
- package/bpk-component-button/src/BpkButton.js +56 -100
- package/bpk-component-button/src/BpkButtonBase.js +60 -88
- package/bpk-component-button/src/BpkButtonBase.module.css +1 -1
- package/bpk-component-button/src/BpkButtonDestructive.js +36 -39
- package/bpk-component-button/src/BpkButtonDestructive.module.css +1 -1
- package/bpk-component-button/src/BpkButtonFeatured.js +36 -39
- package/bpk-component-button/src/BpkButtonFeatured.module.css +1 -1
- package/bpk-component-button/src/BpkButtonLink.js +38 -47
- package/bpk-component-button/src/BpkButtonLink.module.css +1 -1
- package/bpk-component-button/src/BpkButtonLinkOnDark.js +38 -47
- package/bpk-component-button/src/BpkButtonLinkOnDark.module.css +18 -0
- package/bpk-component-button/src/BpkButtonOutline.js +36 -39
- package/bpk-component-button/src/BpkButtonPrimary.js +19 -30
- package/bpk-component-button/src/BpkButtonPrimaryOnDark.js +36 -39
- package/bpk-component-button/src/BpkButtonPrimaryOnDark.module.css +18 -0
- package/bpk-component-button/src/BpkButtonPrimaryOnLight.js +36 -39
- package/bpk-component-button/src/BpkButtonPrimaryOnLight.module.css +18 -0
- package/bpk-component-button/src/BpkButtonSecondary.js +36 -39
- package/bpk-component-button/src/BpkButtonSecondary.module.css +1 -1
- package/bpk-component-button/src/BpkButtonSecondaryOnDark.js +36 -39
- 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 +72 -59
- 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/BpkCalendarContainer.js +202 -292
- package/bpk-component-calendar/src/BpkCalendarDate.js +102 -136
- package/bpk-component-calendar/src/BpkCalendarDate.module.css +1 -1
- package/bpk-component-calendar/src/BpkCalendarGrid.js +110 -150
- package/bpk-component-calendar/src/BpkCalendarGrid.module.css +1 -1
- package/bpk-component-calendar/src/BpkCalendarGridHeader.js +58 -63
- package/bpk-component-calendar/src/BpkCalendarGridHeader.module.css +1 -1
- package/bpk-component-calendar/src/BpkCalendarGridTransition.js +87 -159
- package/bpk-component-calendar/src/BpkCalendarNav.js +129 -139
- package/bpk-component-calendar/src/BpkCalendarNav.module.css +1 -1
- package/bpk-component-calendar/src/Week.js +168 -283
- package/bpk-component-calendar/src/composeCalendar.js +89 -125
- 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 +25 -8
- package/bpk-component-card/src/BpkCard.js +49 -72
- package/bpk-component-card/src/BpkCard.module.css +1 -1
- package/bpk-component-card/src/BpkDividedCard.js +47 -81
- 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 +66 -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 +40 -65
- package/bpk-component-chip/src/BpkDropdownChip.js +22 -52
- package/bpk-component-chip/src/BpkSelectableChip.js +62 -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 +43 -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 +33 -49
- package/bpk-component-code/src/BpkCode.module.css +1 -1
- package/bpk-component-code/src/BpkCodeBlock.js +36 -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 +37 -62
- package/bpk-component-content-cards/src/BpkContentCard.module.css +18 -0
- package/bpk-component-content-cards/src/BpkContentCards.js +33 -46
- 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 +129 -197
- package/bpk-component-datatable/src/BpkDataTable.module.css +1 -1
- package/bpk-component-datatable/src/BpkDataTableColumn.js +29 -31
- package/bpk-component-datatable/src/BpkDataTableHeader.js +60 -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 +211 -304
- 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 +30 -43
- package/bpk-component-dialog/index.js +17 -9
- package/bpk-component-dialog/src/BpkDialog.js +56 -87
- package/bpk-component-dialog/src/BpkDialog.module.css +1 -1
- package/bpk-component-dialog/src/BpkDialogInner.js +47 -79
- 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 +66 -84
- package/bpk-component-drawer/src/BpkDrawerContent.js +94 -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 +92 -144
- 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 +49 -78
- package/bpk-component-flare/src/BpkFlareBar.js +42 -60
- package/bpk-component-flare/src/__generated__/js/corner-radius.js +24 -5
- package/bpk-component-flare/src/__generated__/js/pointer.js +24 -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 +78 -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 +51 -77
- 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 +75 -133
- package/bpk-component-graphic-promotion/src/BpkGraphicPromo.module.css +18 -0
- package/bpk-component-grid/index.js +16 -7
- package/bpk-component-grid/src/BpkGridColumn.js +50 -78
- package/bpk-component-grid/src/BpkGridColumn.module.css +1 -1
- package/bpk-component-grid/src/BpkGridContainer.js +34 -45
- package/bpk-component-grid/src/BpkGridContainer.module.css +1 -1
- package/bpk-component-grid/src/BpkGridRow.js +32 -44
- package/bpk-component-grid/src/BpkGridRow.module.css +1 -1
- package/bpk-component-grid-toggle/index.js +10 -4
- package/bpk-component-grid-toggle/src/BpkGridToggle.js +47 -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 +112 -169
- package/bpk-component-horizontal-nav/src/BpkHorizontalNav.module.css +1 -1
- package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.js +78 -120
- 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 -24
- package/bpk-component-icon/lg/accessibility.js +30 -8
- package/bpk-component-icon/lg/account--add.js +30 -8
- package/bpk-component-icon/lg/account--female.js +30 -8
- package/bpk-component-icon/lg/account--id-card.js +30 -8
- package/bpk-component-icon/lg/account--name.js +30 -8
- package/bpk-component-icon/lg/account--permit.js +30 -8
- package/bpk-component-icon/lg/account-circle.js +30 -8
- package/bpk-component-icon/lg/account.js +30 -8
- package/bpk-component-icon/lg/add-circle.js +30 -8
- package/bpk-component-icon/lg/adult.js +30 -8
- package/bpk-component-icon/lg/aircon.js +30 -8
- package/bpk-component-icon/lg/aircraft.js +32 -8
- package/bpk-component-icon/lg/airline--multiple.js +30 -8
- package/bpk-component-icon/lg/airline.js +30 -8
- package/bpk-component-icon/lg/airports.js +30 -8
- package/bpk-component-icon/lg/alert--active.js +30 -8
- package/bpk-component-icon/lg/alert--add.js +30 -8
- package/bpk-component-icon/lg/alert--expired.js +30 -8
- package/bpk-component-icon/lg/alert--remove.js +30 -8
- package/bpk-component-icon/lg/arrow-down.js +30 -8
- package/bpk-component-icon/lg/arrow-left.js +30 -8
- package/bpk-component-icon/lg/arrow-right.js +30 -8
- package/bpk-component-icon/lg/arrow-up.js +30 -8
- package/bpk-component-icon/lg/award.js +30 -8
- package/bpk-component-icon/lg/baby-carriage.js +30 -8
- package/bpk-component-icon/lg/baggage--add.js +30 -8
- package/bpk-component-icon/lg/baggage--remove.js +30 -8
- package/bpk-component-icon/lg/baggage-cabin-add.js +30 -8
- package/bpk-component-icon/lg/baggage-cabin-not-included.js +30 -8
- package/bpk-component-icon/lg/baggage-cabin.js +30 -8
- package/bpk-component-icon/lg/baggage-checked-add.js +30 -8
- package/bpk-component-icon/lg/baggage-checked-not-included.js +30 -8
- package/bpk-component-icon/lg/baggage-checked.js +30 -8
- package/bpk-component-icon/lg/baggage-cross.js +30 -8
- package/bpk-component-icon/lg/baggage-generic.js +30 -8
- package/bpk-component-icon/lg/baggage-tick.js +30 -8
- package/bpk-component-icon/lg/baggage.js +30 -8
- package/bpk-component-icon/lg/bar.js +30 -8
- package/bpk-component-icon/lg/beach.js +32 -8
- package/bpk-component-icon/lg/beer.js +30 -8
- package/bpk-component-icon/lg/breakfast-cross.js +30 -8
- package/bpk-component-icon/lg/breakfast-tick.js +30 -8
- package/bpk-component-icon/lg/bus.js +30 -8
- package/bpk-component-icon/lg/business.js +30 -8
- package/bpk-component-icon/lg/cafe.js +30 -8
- package/bpk-component-icon/lg/calendar.js +30 -8
- package/bpk-component-icon/lg/call-back.js +32 -8
- package/bpk-component-icon/lg/camera.js +30 -8
- package/bpk-component-icon/lg/camper-van.js +32 -8
- package/bpk-component-icon/lg/car-door.js +30 -8
- package/bpk-component-icon/lg/car-wash.js +32 -8
- package/bpk-component-icon/lg/cars-flexible.js +30 -8
- package/bpk-component-icon/lg/cars.js +32 -8
- package/bpk-component-icon/lg/center-location.js +30 -8
- package/bpk-component-icon/lg/chart.js +30 -8
- package/bpk-component-icon/lg/chauffeur.js +30 -8
- package/bpk-component-icon/lg/chevron-down.js +30 -8
- package/bpk-component-icon/lg/chevron-left.js +30 -8
- package/bpk-component-icon/lg/chevron-right.js +30 -8
- package/bpk-component-icon/lg/chevron-up.js +30 -8
- package/bpk-component-icon/lg/child-seat.js +30 -8
- package/bpk-component-icon/lg/child.js +30 -8
- package/bpk-component-icon/lg/city-center.js +30 -8
- package/bpk-component-icon/lg/city.js +30 -8
- package/bpk-component-icon/lg/clean-policy.js +30 -8
- package/bpk-component-icon/lg/clean.js +34 -8
- package/bpk-component-icon/lg/cleaning-medical.js +30 -8
- package/bpk-component-icon/lg/cloakroom.js +34 -8
- package/bpk-component-icon/lg/close-circle.js +30 -8
- package/bpk-component-icon/lg/close.js +30 -8
- package/bpk-component-icon/lg/collapse.js +30 -8
- package/bpk-component-icon/lg/content--copy.js +32 -8
- package/bpk-component-icon/lg/content--event.js +30 -8
- package/bpk-component-icon/lg/content--guides.js +30 -8
- package/bpk-component-icon/lg/currency.js +30 -8
- package/bpk-component-icon/lg/data.js +32 -8
- package/bpk-component-icon/lg/deals.js +30 -8
- package/bpk-component-icon/lg/depart.js +32 -8
- package/bpk-component-icon/lg/device-mid.js +30 -8
- package/bpk-component-icon/lg/device-wide.js +30 -8
- package/bpk-component-icon/lg/direct.js +30 -8
- package/bpk-component-icon/lg/document-csv.js +30 -8
- package/bpk-component-icon/lg/document-pdf.js +30 -8
- package/bpk-component-icon/lg/download.js +32 -8
- package/bpk-component-icon/lg/duration.js +30 -8
- package/bpk-component-icon/lg/eco-leaf.js +30 -8
- package/bpk-component-icon/lg/edit.js +30 -8
- package/bpk-component-icon/lg/education.js +32 -8
- package/bpk-component-icon/lg/electric.js +30 -8
- package/bpk-component-icon/lg/end-call.js +30 -8
- package/bpk-component-icon/lg/estimated.js +30 -8
- package/bpk-component-icon/lg/exclamation-circle.js +30 -8
- package/bpk-component-icon/lg/exclamation.js +30 -8
- package/bpk-component-icon/lg/expand.js +30 -8
- package/bpk-component-icon/lg/explore.js +30 -8
- package/bpk-component-icon/lg/face--blank.js +30 -8
- package/bpk-component-icon/lg/face--happy.js +30 -8
- package/bpk-component-icon/lg/face--sad.js +30 -8
- package/bpk-component-icon/lg/face-id.js +30 -8
- package/bpk-component-icon/lg/face-mask.js +30 -8
- package/bpk-component-icon/lg/family.js +30 -8
- package/bpk-component-icon/lg/fast-track.js +32 -8
- package/bpk-component-icon/lg/fast-train.js +32 -8
- package/bpk-component-icon/lg/filter.js +31 -8
- package/bpk-component-icon/lg/fingerprint.js +30 -8
- package/bpk-component-icon/lg/flag.js +30 -8
- package/bpk-component-icon/lg/flask.js +30 -8
- package/bpk-component-icon/lg/flight-flexible.js +30 -8
- package/bpk-component-icon/lg/flight-landing.js +34 -8
- package/bpk-component-icon/lg/flight-takeoff.js +32 -8
- package/bpk-component-icon/lg/flight.js +32 -8
- package/bpk-component-icon/lg/food.js +30 -8
- package/bpk-component-icon/lg/gears-automatic-circle.js +30 -8
- package/bpk-component-icon/lg/gears-automatic.js +30 -8
- package/bpk-component-icon/lg/gears-manual-circle.js +30 -8
- package/bpk-component-icon/lg/gears-manual.js +30 -8
- package/bpk-component-icon/lg/globe.js +30 -8
- package/bpk-component-icon/lg/grid-layout.js +30 -8
- package/bpk-component-icon/lg/headset.js +30 -8
- package/bpk-component-icon/lg/health-fitness.js +30 -8
- package/bpk-component-icon/lg/heart--outline.js +30 -8
- package/bpk-component-icon/lg/heart.js +30 -8
- package/bpk-component-icon/lg/help-circle.js +30 -8
- package/bpk-component-icon/lg/help.js +30 -8
- package/bpk-component-icon/lg/hide.js +30 -8
- package/bpk-component-icon/lg/hotel-flexible.js +30 -8
- package/bpk-component-icon/lg/hotels--disabled-facilities.js +30 -8
- package/bpk-component-icon/lg/hotels--jacuzzi.js +30 -8
- package/bpk-component-icon/lg/hotels--pets-allowed.js +30 -8
- package/bpk-component-icon/lg/hotels--smoking.js +30 -8
- package/bpk-component-icon/lg/hotels.js +30 -8
- package/bpk-component-icon/lg/infant.js +30 -8
- package/bpk-component-icon/lg/information--language-alert.js +30 -8
- package/bpk-component-icon/lg/information--language-question.js +30 -8
- package/bpk-component-icon/lg/information--language.js +30 -8
- package/bpk-component-icon/lg/information-circle.js +30 -8
- package/bpk-component-icon/lg/information.js +30 -8
- package/bpk-component-icon/lg/insurance.js +30 -8
- package/bpk-component-icon/lg/key.js +30 -8
- package/bpk-component-icon/lg/keypad.js +30 -8
- package/bpk-component-icon/lg/landmark.js +30 -8
- package/bpk-component-icon/lg/language.js +30 -8
- package/bpk-component-icon/lg/legroom--extra.js +32 -8
- package/bpk-component-icon/lg/legroom--normal.js +32 -8
- package/bpk-component-icon/lg/legroom--reduced.js +32 -8
- package/bpk-component-icon/lg/leisure.js +30 -8
- package/bpk-component-icon/lg/lightning.js +30 -8
- package/bpk-component-icon/lg/list.js +30 -8
- package/bpk-component-icon/lg/location.js +30 -8
- package/bpk-component-icon/lg/lock.js +30 -8
- package/bpk-component-icon/lg/logout.js +32 -8
- package/bpk-component-icon/lg/long-arrow-down.js +30 -8
- package/bpk-component-icon/lg/long-arrow-left.js +30 -8
- package/bpk-component-icon/lg/long-arrow-right.js +30 -8
- package/bpk-component-icon/lg/long-arrow-up.js +30 -8
- package/bpk-component-icon/lg/lounge.js +32 -8
- package/bpk-component-icon/lg/luggageall.js +30 -8
- package/bpk-component-icon/lg/mail.js +32 -8
- package/bpk-component-icon/lg/map.js +30 -8
- package/bpk-component-icon/lg/meal.js +30 -8
- package/bpk-component-icon/lg/media.js +30 -8
- package/bpk-component-icon/lg/menu--horizontal.js +30 -8
- package/bpk-component-icon/lg/menu--vertical.js +30 -8
- package/bpk-component-icon/lg/menu.js +30 -8
- package/bpk-component-icon/lg/mileage.js +32 -8
- package/bpk-component-icon/lg/minus.js +30 -8
- package/bpk-component-icon/lg/mobile.js +30 -8
- package/bpk-component-icon/lg/money.js +30 -8
- package/bpk-component-icon/lg/multiple-bookings.js +30 -8
- package/bpk-component-icon/lg/music.js +30 -8
- package/bpk-component-icon/lg/mute.js +30 -8
- package/bpk-component-icon/lg/native-android--back.js +30 -8
- package/bpk-component-icon/lg/native-android--close.js +30 -8
- package/bpk-component-icon/lg/native-android--forward.js +30 -8
- package/bpk-component-icon/lg/native-ios-close.js +30 -8
- package/bpk-component-icon/lg/navigation.js +30 -8
- package/bpk-component-icon/lg/new-window.js +32 -8
- package/bpk-component-icon/lg/news.js +30 -8
- package/bpk-component-icon/lg/night.js +30 -8
- package/bpk-component-icon/lg/not-allowed.js +30 -8
- package/bpk-component-icon/lg/onsen.js +30 -8
- package/bpk-component-icon/lg/paid.js +30 -8
- package/bpk-component-icon/lg/paperclip.js +30 -8
- package/bpk-component-icon/lg/parking.js +30 -8
- package/bpk-component-icon/lg/passport.js +30 -8
- package/bpk-component-icon/lg/pause.js +30 -8
- package/bpk-component-icon/lg/payment-card.js +30 -8
- package/bpk-component-icon/lg/petrol.js +30 -8
- package/bpk-component-icon/lg/phone-call.js +30 -8
- package/bpk-component-icon/lg/picture.js +30 -8
- package/bpk-component-icon/lg/pin.js +30 -8
- package/bpk-component-icon/lg/plane-seat.js +32 -8
- package/bpk-component-icon/lg/play.js +30 -8
- package/bpk-component-icon/lg/plus.js +30 -8
- package/bpk-component-icon/lg/policy.js +30 -8
- package/bpk-component-icon/lg/powerplug.js +30 -8
- package/bpk-component-icon/lg/ppe.js +30 -8
- package/bpk-component-icon/lg/price-alerts.js +30 -8
- package/bpk-component-icon/lg/price-tag.js +30 -8
- package/bpk-component-icon/lg/print.js +30 -8
- package/bpk-component-icon/lg/recent-searches.js +30 -8
- package/bpk-component-icon/lg/redo.js +30 -8
- package/bpk-component-icon/lg/refresh.js +30 -8
- package/bpk-component-icon/lg/return.js +32 -8
- package/bpk-component-icon/lg/room.js +30 -8
- package/bpk-component-icon/lg/scales.js +32 -8
- package/bpk-component-icon/lg/search.js +30 -8
- package/bpk-component-icon/lg/self-service.js +30 -8
- package/bpk-component-icon/lg/send-message.js +30 -8
- package/bpk-component-icon/lg/services.js +30 -8
- package/bpk-component-icon/lg/settings.js +30 -8
- package/bpk-component-icon/lg/share--android.js +30 -8
- package/bpk-component-icon/lg/share--ios.js +32 -8
- package/bpk-component-icon/lg/share.js +30 -8
- package/bpk-component-icon/lg/single-booking.js +30 -8
- package/bpk-component-icon/lg/social-like.js +30 -8
- package/bpk-component-icon/lg/sort-down.js +30 -8
- package/bpk-component-icon/lg/sort-up.js +30 -8
- package/bpk-component-icon/lg/sort.js +30 -8
- package/bpk-component-icon/lg/speaker.js +32 -8
- package/bpk-component-icon/lg/star-half.js +30 -8
- package/bpk-component-icon/lg/star-outline.js +30 -8
- package/bpk-component-icon/lg/star.js +30 -8
- package/bpk-component-icon/lg/stops.js +30 -8
- package/bpk-component-icon/lg/swap--horizontal.js +30 -8
- package/bpk-component-icon/lg/swap--vertical.js +30 -8
- package/bpk-component-icon/lg/swap.js +30 -8
- package/bpk-component-icon/lg/taxi.js +32 -8
- package/bpk-component-icon/lg/thumbs-down.js +30 -8
- package/bpk-component-icon/lg/thumbs-up.js +30 -8
- package/bpk-component-icon/lg/tick-circle.js +30 -8
- package/bpk-component-icon/lg/tick.js +30 -8
- package/bpk-component-icon/lg/ticket-flexible.js +30 -8
- package/bpk-component-icon/lg/ticket.js +30 -8
- package/bpk-component-icon/lg/time.js +30 -8
- package/bpk-component-icon/lg/toilets.js +30 -8
- package/bpk-component-icon/lg/train.js +30 -8
- package/bpk-component-icon/lg/transmission-automatic.js +30 -8
- package/bpk-component-icon/lg/transmission-manual.js +30 -8
- package/bpk-component-icon/lg/trash.js +30 -8
- package/bpk-component-icon/lg/trend--down.js +30 -8
- package/bpk-component-icon/lg/trend--steady.js +30 -8
- package/bpk-component-icon/lg/trend--will-rise.js +30 -8
- package/bpk-component-icon/lg/trend.js +30 -8
- package/bpk-component-icon/lg/trips.js +30 -8
- package/bpk-component-icon/lg/undo.js +30 -8
- package/bpk-component-icon/lg/unlock.js +30 -8
- package/bpk-component-icon/lg/unmute.js +32 -8
- package/bpk-component-icon/lg/upgrade.js +30 -8
- package/bpk-component-icon/lg/use-location.js +30 -8
- package/bpk-component-icon/lg/view.js +30 -8
- package/bpk-component-icon/lg/virus.js +30 -8
- package/bpk-component-icon/lg/wallet.js +32 -8
- package/bpk-component-icon/lg/weather--clear.js +30 -8
- package/bpk-component-icon/lg/weather--cloudy.js +32 -8
- package/bpk-component-icon/lg/weather--fog.js +30 -8
- package/bpk-component-icon/lg/weather--partly-cloudy.js +32 -8
- package/bpk-component-icon/lg/weather--rain.js +34 -8
- package/bpk-component-icon/lg/weather--snow.js +30 -8
- package/bpk-component-icon/lg/weather--thunderstorm.js +34 -8
- package/bpk-component-icon/lg/weather--tornado.js +30 -8
- package/bpk-component-icon/lg/weather--wind.js +30 -8
- package/bpk-component-icon/lg/weather.js +30 -8
- package/bpk-component-icon/lg/wifi.js +30 -8
- package/bpk-component-icon/lg/window--reduce.js +32 -8
- package/bpk-component-icon/lg/window.js +30 -8
- package/bpk-component-icon/lg/world--amer.js +30 -8
- package/bpk-component-icon/lg/world--apac.js +30 -8
- package/bpk-component-icon/lg/world--emea.js +32 -8
- package/bpk-component-icon/sm/accessibility.js +31 -8
- package/bpk-component-icon/sm/account--add.js +31 -8
- package/bpk-component-icon/sm/account--female.js +31 -8
- package/bpk-component-icon/sm/account--id-card.js +31 -8
- package/bpk-component-icon/sm/account--name.js +31 -8
- package/bpk-component-icon/sm/account--permit.js +31 -8
- package/bpk-component-icon/sm/account-circle.js +31 -8
- package/bpk-component-icon/sm/account.js +31 -8
- package/bpk-component-icon/sm/add-circle.js +31 -8
- package/bpk-component-icon/sm/adult.js +31 -8
- package/bpk-component-icon/sm/aircon.js +31 -8
- package/bpk-component-icon/sm/aircraft.js +33 -8
- package/bpk-component-icon/sm/airline--multiple.js +31 -8
- package/bpk-component-icon/sm/airline.js +31 -8
- package/bpk-component-icon/sm/airports.js +31 -8
- package/bpk-component-icon/sm/alert--active.js +31 -8
- package/bpk-component-icon/sm/alert--add.js +31 -8
- package/bpk-component-icon/sm/alert--expired.js +31 -8
- package/bpk-component-icon/sm/alert--remove.js +31 -8
- package/bpk-component-icon/sm/arrow-down.js +31 -8
- package/bpk-component-icon/sm/arrow-left.js +31 -8
- package/bpk-component-icon/sm/arrow-right.js +31 -8
- package/bpk-component-icon/sm/arrow-up.js +31 -8
- package/bpk-component-icon/sm/award.js +31 -8
- package/bpk-component-icon/sm/baby-carriage.js +31 -8
- package/bpk-component-icon/sm/baggage--add.js +31 -8
- package/bpk-component-icon/sm/baggage--remove.js +31 -8
- package/bpk-component-icon/sm/baggage-cabin-add.js +31 -8
- package/bpk-component-icon/sm/baggage-cabin-not-included.js +33 -8
- package/bpk-component-icon/sm/baggage-cabin.js +31 -8
- package/bpk-component-icon/sm/baggage-checked-add.js +31 -8
- package/bpk-component-icon/sm/baggage-checked-not-included.js +33 -8
- package/bpk-component-icon/sm/baggage-checked.js +31 -8
- package/bpk-component-icon/sm/baggage-cross.js +31 -8
- package/bpk-component-icon/sm/baggage-generic.js +31 -8
- package/bpk-component-icon/sm/baggage-tick.js +31 -8
- package/bpk-component-icon/sm/baggage.js +31 -8
- package/bpk-component-icon/sm/bar.js +31 -8
- package/bpk-component-icon/sm/beach.js +33 -8
- package/bpk-component-icon/sm/beer.js +31 -8
- package/bpk-component-icon/sm/breakfast-cross.js +31 -8
- package/bpk-component-icon/sm/breakfast-tick.js +31 -8
- package/bpk-component-icon/sm/bus.js +33 -8
- package/bpk-component-icon/sm/business.js +31 -8
- package/bpk-component-icon/sm/cafe.js +31 -8
- package/bpk-component-icon/sm/calendar.js +31 -8
- package/bpk-component-icon/sm/call-back.js +33 -8
- package/bpk-component-icon/sm/camera.js +31 -8
- package/bpk-component-icon/sm/camper-van.js +33 -8
- package/bpk-component-icon/sm/car-door.js +31 -8
- package/bpk-component-icon/sm/car-wash.js +33 -8
- package/bpk-component-icon/sm/cars-flexible.js +31 -8
- package/bpk-component-icon/sm/cars.js +33 -8
- package/bpk-component-icon/sm/center-location.js +31 -8
- package/bpk-component-icon/sm/chart.js +31 -8
- package/bpk-component-icon/sm/chauffeur.js +33 -8
- package/bpk-component-icon/sm/chevron-down.js +31 -8
- package/bpk-component-icon/sm/chevron-left.js +31 -8
- package/bpk-component-icon/sm/chevron-right.js +31 -8
- package/bpk-component-icon/sm/chevron-up.js +31 -8
- package/bpk-component-icon/sm/child-seat.js +31 -8
- package/bpk-component-icon/sm/child.js +31 -8
- package/bpk-component-icon/sm/city-center.js +31 -8
- package/bpk-component-icon/sm/city.js +31 -8
- package/bpk-component-icon/sm/clean-policy.js +31 -8
- package/bpk-component-icon/sm/clean.js +33 -8
- package/bpk-component-icon/sm/cleaning-medical.js +31 -8
- package/bpk-component-icon/sm/cloakroom.js +31 -8
- package/bpk-component-icon/sm/close-circle.js +31 -8
- package/bpk-component-icon/sm/close.js +31 -8
- package/bpk-component-icon/sm/collapse.js +31 -8
- package/bpk-component-icon/sm/content--copy.js +33 -8
- package/bpk-component-icon/sm/content--event.js +31 -8
- package/bpk-component-icon/sm/content--guides.js +31 -8
- package/bpk-component-icon/sm/currency.js +31 -8
- package/bpk-component-icon/sm/data.js +33 -8
- package/bpk-component-icon/sm/deals.js +31 -8
- package/bpk-component-icon/sm/depart.js +35 -8
- package/bpk-component-icon/sm/device-mid.js +31 -8
- package/bpk-component-icon/sm/device-wide.js +31 -8
- package/bpk-component-icon/sm/direct.js +33 -8
- package/bpk-component-icon/sm/document-csv.js +31 -8
- package/bpk-component-icon/sm/document-pdf.js +31 -8
- package/bpk-component-icon/sm/download.js +33 -8
- package/bpk-component-icon/sm/duration.js +31 -8
- package/bpk-component-icon/sm/eco-leaf.js +31 -8
- package/bpk-component-icon/sm/edit.js +31 -8
- package/bpk-component-icon/sm/education.js +33 -8
- package/bpk-component-icon/sm/electric.js +31 -8
- package/bpk-component-icon/sm/end-call.js +31 -8
- package/bpk-component-icon/sm/estimated.js +31 -8
- package/bpk-component-icon/sm/exclamation-circle.js +31 -8
- package/bpk-component-icon/sm/exclamation.js +31 -8
- package/bpk-component-icon/sm/expand.js +31 -8
- package/bpk-component-icon/sm/explore.js +31 -8
- package/bpk-component-icon/sm/face--blank.js +31 -8
- package/bpk-component-icon/sm/face--happy.js +31 -8
- package/bpk-component-icon/sm/face--sad.js +31 -8
- package/bpk-component-icon/sm/face-id.js +31 -8
- package/bpk-component-icon/sm/face-mask.js +31 -8
- package/bpk-component-icon/sm/family.js +31 -8
- package/bpk-component-icon/sm/fast-track.js +33 -8
- package/bpk-component-icon/sm/fast-train.js +33 -8
- package/bpk-component-icon/sm/filter.js +32 -8
- package/bpk-component-icon/sm/fingerprint.js +31 -8
- package/bpk-component-icon/sm/flag.js +31 -8
- package/bpk-component-icon/sm/flask.js +31 -8
- package/bpk-component-icon/sm/flight-flexible.js +31 -8
- package/bpk-component-icon/sm/flight-landing.js +35 -8
- package/bpk-component-icon/sm/flight-takeoff.js +33 -8
- package/bpk-component-icon/sm/flight.js +33 -8
- package/bpk-component-icon/sm/food.js +31 -8
- package/bpk-component-icon/sm/gears-automatic-circle.js +31 -8
- package/bpk-component-icon/sm/gears-automatic.js +31 -8
- package/bpk-component-icon/sm/gears-manual-circle.js +31 -8
- package/bpk-component-icon/sm/gears-manual.js +31 -8
- package/bpk-component-icon/sm/globe.js +31 -8
- package/bpk-component-icon/sm/grid-layout.js +31 -8
- package/bpk-component-icon/sm/headset.js +31 -8
- package/bpk-component-icon/sm/health-fitness.js +31 -8
- package/bpk-component-icon/sm/heart--outline.js +31 -8
- package/bpk-component-icon/sm/heart.js +31 -8
- package/bpk-component-icon/sm/help-circle.js +31 -8
- package/bpk-component-icon/sm/help.js +31 -8
- package/bpk-component-icon/sm/hide.js +31 -8
- package/bpk-component-icon/sm/hotel-flexible.js +31 -8
- package/bpk-component-icon/sm/hotels--disabled-facilities.js +31 -8
- package/bpk-component-icon/sm/hotels--jacuzzi.js +33 -8
- package/bpk-component-icon/sm/hotels--pets-allowed.js +31 -8
- package/bpk-component-icon/sm/hotels--smoking.js +31 -8
- package/bpk-component-icon/sm/hotels.js +31 -8
- package/bpk-component-icon/sm/infant.js +33 -8
- package/bpk-component-icon/sm/information--language-alert.js +31 -8
- package/bpk-component-icon/sm/information--language-question.js +31 -8
- package/bpk-component-icon/sm/information--language.js +31 -8
- package/bpk-component-icon/sm/information-circle.js +31 -8
- package/bpk-component-icon/sm/information.js +31 -8
- package/bpk-component-icon/sm/insurance.js +31 -8
- package/bpk-component-icon/sm/key.js +31 -8
- package/bpk-component-icon/sm/keypad.js +31 -8
- package/bpk-component-icon/sm/landmark.js +31 -8
- package/bpk-component-icon/sm/language.js +31 -8
- package/bpk-component-icon/sm/legroom--extra.js +33 -8
- package/bpk-component-icon/sm/legroom--normal.js +33 -8
- package/bpk-component-icon/sm/legroom--reduced.js +33 -8
- package/bpk-component-icon/sm/leisure.js +31 -8
- package/bpk-component-icon/sm/lightning.js +31 -8
- package/bpk-component-icon/sm/list.js +31 -8
- package/bpk-component-icon/sm/location.js +31 -8
- package/bpk-component-icon/sm/lock.js +31 -8
- package/bpk-component-icon/sm/logout.js +33 -8
- package/bpk-component-icon/sm/long-arrow-down.js +32 -8
- package/bpk-component-icon/sm/long-arrow-left.js +32 -8
- package/bpk-component-icon/sm/long-arrow-right.js +32 -8
- package/bpk-component-icon/sm/long-arrow-up.js +32 -8
- package/bpk-component-icon/sm/lounge.js +31 -8
- package/bpk-component-icon/sm/luggageall.js +31 -8
- package/bpk-component-icon/sm/mail.js +33 -8
- package/bpk-component-icon/sm/map.js +31 -8
- package/bpk-component-icon/sm/meal.js +31 -8
- package/bpk-component-icon/sm/media.js +31 -8
- package/bpk-component-icon/sm/menu--horizontal.js +31 -8
- package/bpk-component-icon/sm/menu--vertical.js +31 -8
- package/bpk-component-icon/sm/menu.js +31 -8
- package/bpk-component-icon/sm/mileage.js +33 -8
- package/bpk-component-icon/sm/minus.js +31 -8
- package/bpk-component-icon/sm/mobile.js +31 -8
- package/bpk-component-icon/sm/money.js +31 -8
- package/bpk-component-icon/sm/multiple-bookings.js +31 -8
- package/bpk-component-icon/sm/music.js +31 -8
- package/bpk-component-icon/sm/mute.js +31 -8
- package/bpk-component-icon/sm/native-android--back.js +31 -8
- package/bpk-component-icon/sm/native-android--close.js +31 -8
- package/bpk-component-icon/sm/native-android--forward.js +31 -8
- package/bpk-component-icon/sm/native-ios-close.js +31 -8
- package/bpk-component-icon/sm/navigation.js +31 -8
- package/bpk-component-icon/sm/new-window.js +37 -8
- package/bpk-component-icon/sm/news.js +31 -8
- package/bpk-component-icon/sm/night.js +31 -8
- package/bpk-component-icon/sm/not-allowed.js +31 -8
- package/bpk-component-icon/sm/onsen.js +33 -8
- package/bpk-component-icon/sm/paid.js +31 -8
- package/bpk-component-icon/sm/paperclip.js +31 -8
- package/bpk-component-icon/sm/parking.js +31 -8
- package/bpk-component-icon/sm/passport.js +31 -8
- package/bpk-component-icon/sm/pause.js +31 -8
- package/bpk-component-icon/sm/payment-card.js +31 -8
- package/bpk-component-icon/sm/petrol.js +31 -8
- package/bpk-component-icon/sm/phone-call.js +31 -8
- package/bpk-component-icon/sm/picture.js +31 -8
- package/bpk-component-icon/sm/pin.js +31 -8
- package/bpk-component-icon/sm/plane-seat.js +33 -8
- package/bpk-component-icon/sm/play.js +31 -8
- package/bpk-component-icon/sm/plus.js +31 -8
- package/bpk-component-icon/sm/policy.js +31 -8
- package/bpk-component-icon/sm/powerplug.js +31 -8
- package/bpk-component-icon/sm/ppe.js +31 -8
- package/bpk-component-icon/sm/price-alerts.js +31 -8
- package/bpk-component-icon/sm/price-tag.js +31 -8
- package/bpk-component-icon/sm/print.js +31 -8
- package/bpk-component-icon/sm/recent-searches.js +31 -8
- package/bpk-component-icon/sm/redo.js +31 -8
- package/bpk-component-icon/sm/refresh.js +31 -8
- package/bpk-component-icon/sm/return.js +35 -8
- package/bpk-component-icon/sm/room.js +31 -8
- package/bpk-component-icon/sm/scales.js +31 -8
- package/bpk-component-icon/sm/search.js +31 -8
- package/bpk-component-icon/sm/self-service.js +31 -8
- package/bpk-component-icon/sm/send-message.js +31 -8
- package/bpk-component-icon/sm/services.js +31 -8
- package/bpk-component-icon/sm/settings.js +31 -8
- package/bpk-component-icon/sm/share--android.js +31 -8
- package/bpk-component-icon/sm/share--ios.js +35 -8
- package/bpk-component-icon/sm/share.js +31 -8
- package/bpk-component-icon/sm/single-booking.js +31 -8
- package/bpk-component-icon/sm/social-like.js +31 -8
- package/bpk-component-icon/sm/sort-down.js +31 -8
- package/bpk-component-icon/sm/sort-up.js +31 -8
- package/bpk-component-icon/sm/sort.js +31 -8
- package/bpk-component-icon/sm/speaker.js +31 -8
- package/bpk-component-icon/sm/star-half.js +31 -8
- package/bpk-component-icon/sm/star-outline.js +31 -8
- package/bpk-component-icon/sm/star.js +31 -8
- package/bpk-component-icon/sm/stops.js +31 -8
- package/bpk-component-icon/sm/swap--horizontal.js +32 -8
- package/bpk-component-icon/sm/swap--vertical.js +31 -8
- package/bpk-component-icon/sm/swap.js +32 -8
- package/bpk-component-icon/sm/taxi.js +33 -8
- package/bpk-component-icon/sm/thumbs-down.js +31 -8
- package/bpk-component-icon/sm/thumbs-up.js +31 -8
- package/bpk-component-icon/sm/tick-circle.js +31 -8
- package/bpk-component-icon/sm/tick.js +31 -8
- package/bpk-component-icon/sm/ticket-flexible.js +31 -8
- package/bpk-component-icon/sm/ticket.js +31 -8
- package/bpk-component-icon/sm/time.js +31 -8
- package/bpk-component-icon/sm/toilets.js +31 -8
- package/bpk-component-icon/sm/train.js +31 -8
- package/bpk-component-icon/sm/transmission-automatic.js +31 -8
- package/bpk-component-icon/sm/transmission-manual.js +31 -8
- package/bpk-component-icon/sm/trash.js +31 -8
- package/bpk-component-icon/sm/trend--down.js +31 -8
- package/bpk-component-icon/sm/trend--steady.js +32 -8
- package/bpk-component-icon/sm/trend--will-rise.js +31 -8
- package/bpk-component-icon/sm/trend.js +31 -8
- package/bpk-component-icon/sm/trips.js +31 -8
- package/bpk-component-icon/sm/undo.js +31 -8
- package/bpk-component-icon/sm/unlock.js +31 -8
- package/bpk-component-icon/sm/unmute.js +33 -8
- package/bpk-component-icon/sm/upgrade.js +31 -8
- package/bpk-component-icon/sm/use-location.js +31 -8
- package/bpk-component-icon/sm/view.js +31 -8
- package/bpk-component-icon/sm/virus.js +31 -8
- package/bpk-component-icon/sm/wallet.js +31 -8
- package/bpk-component-icon/sm/weather--clear.js +31 -8
- package/bpk-component-icon/sm/weather--cloudy.js +33 -8
- package/bpk-component-icon/sm/weather--fog.js +31 -8
- package/bpk-component-icon/sm/weather--partly-cloudy.js +31 -8
- package/bpk-component-icon/sm/weather--rain.js +33 -8
- package/bpk-component-icon/sm/weather--snow.js +31 -8
- package/bpk-component-icon/sm/weather--thunderstorm.js +35 -8
- package/bpk-component-icon/sm/weather--tornado.js +31 -8
- package/bpk-component-icon/sm/weather--wind.js +33 -8
- package/bpk-component-icon/sm/weather.js +31 -8
- package/bpk-component-icon/sm/wifi.js +31 -8
- package/bpk-component-icon/sm/window--reduce.js +33 -8
- package/bpk-component-icon/sm/window.js +31 -8
- package/bpk-component-icon/sm/world--amer.js +31 -8
- package/bpk-component-icon/sm/world--apac.js +31 -8
- package/bpk-component-icon/sm/world--emea.js +31 -8
- package/bpk-component-icon/src/BpkIcon.module.css +1 -1
- package/bpk-component-icon/src/classNameModifierHOCFactory.js +38 -53
- package/bpk-component-icon/src/withAlignment.js +22 -26
- package/bpk-component-icon/src/withDescription.js +17 -26
- package/bpk-component-icon/src/withRtlSupport.js +13 -10
- package/bpk-component-image/index.js +38 -20
- package/bpk-component-image/src/BpkBackgroundImage.js +115 -171
- package/bpk-component-image/src/BpkBackgroundImage.module.css +1 -1
- package/bpk-component-image/src/BpkImage.js +152 -220
- package/bpk-component-image/src/BpkImage.module.css +1 -1
- package/bpk-component-image/src/BpkImageBorderRadiusStyles.js +12 -7
- package/bpk-component-image/src/customPropTypes.js +10 -15
- package/bpk-component-image/src/withLazyLoading.js +110 -165
- package/bpk-component-image/src/withLoadingBehavior.js +27 -57
- 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 +157 -228
- package/bpk-component-input/index.js +50 -43
- package/bpk-component-input/src/BpkClearButton.js +44 -63
- package/bpk-component-input/src/BpkClearButton.module.css +1 -1
- package/bpk-component-input/src/BpkInput.js +90 -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 +87 -131
- package/bpk-component-label/index.js +10 -7
- package/bpk-component-label/src/BpkLabel.js +42 -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 +45 -60
- package/bpk-component-link/src/BpkLink.js +60 -84
- 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 +35 -50
- package/bpk-component-list/src/BpkList.module.css +1 -1
- package/bpk-component-list/src/BpkListItem.js +25 -33
- package/bpk-component-loading-button/index.js +17 -7
- package/bpk-component-loading-button/src/BpkLoadingButton.js +88 -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 +31 -48
- package/bpk-component-map/src/BpkIconMarker.js +55 -93
- package/bpk-component-map/src/BpkIconMarker.module.css +1 -1
- package/bpk-component-map/src/BpkIconMarkerBackground.js +46 -68
- package/bpk-component-map/src/BpkIconMarkerBackground.module.css +1 -1
- package/bpk-component-map/src/BpkMap.js +89 -145
- package/bpk-component-map/src/{BpkMap.module.scss → BpkMap.module.css} +6 -9
- package/bpk-component-map/src/BpkOverlayView.js +32 -43
- package/bpk-component-map/src/BpkPriceMarker.js +61 -107
- package/bpk-component-map/src/BpkPriceMarker.module.css +1 -1
- package/bpk-component-map/src/DefaultLoadingElement.js +19 -19
- 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 +38 -61
- package/bpk-component-mobile-scroll-container/index.js +10 -6
- package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.js +120 -187
- package/bpk-component-modal/index.js +31 -10
- package/bpk-component-modal/src/BpkModal.js +73 -111
- package/bpk-component-modal/src/BpkModal.module.css +1 -1
- package/bpk-component-modal/src/BpkModalInner.js +82 -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 +54 -88
- package/bpk-component-navigation-bar/src/BpkNavigationBar.module.css +1 -1
- package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.js +36 -57
- package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.js +38 -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 +93 -142
- package/bpk-component-nudger/src/BpkNudger.js +43 -65
- 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 +29 -12
- package/bpk-component-overlay/src/BpkOverlay.js +49 -80
- 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 +69 -111
- package/bpk-component-page-indicator/src/BpkPageIndicator.module.css +1 -1
- package/bpk-component-page-indicator/src/NavButton.js +47 -60
- package/bpk-component-pagination/index.js +17 -6
- package/bpk-component-pagination/src/BpkPagination.js +61 -82
- package/bpk-component-pagination/src/BpkPaginationBreak.js +18 -12
- package/bpk-component-pagination/src/BpkPaginationList.js +53 -71
- package/bpk-component-pagination/src/BpkPaginationList.module.css +1 -1
- package/bpk-component-pagination/src/BpkPaginationNudger.js +46 -54
- package/bpk-component-pagination/src/BpkPaginationNudger.module.css +1 -1
- package/bpk-component-pagination/src/BpkPaginationPage.js +35 -35
- 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 +34 -45
- 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 +116 -185
- 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 +101 -159
- package/bpk-component-popover/src/BpkPopover.module.css +1 -1
- package/bpk-component-popover/src/BpkPopoverPortal.js +124 -185
- 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 +60 -102
- package/{bpk-component-accordion/src/BpkAccordion.module.scss → bpk-component-price/src/BpkPrice.module.css} +6 -11
- 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 +102 -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 +51 -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 +93 -152
- 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 +46 -73
- package/bpk-component-rtl-toggle/src/updateOnDirectionChange.js +28 -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 +32 -37
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.js +43 -53
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.js +121 -166
- 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 +20 -34
- package/bpk-component-section-list/src/BpkSectionListItem.js +56 -89
- package/bpk-component-section-list/src/BpkSectionListItem.module.css +1 -1
- package/bpk-component-section-list/src/BpkSectionListSection.js +36 -59
- 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 +58 -110
- 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 +34 -52
- 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 +37 -52
- 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 +87 -51
- package/bpk-component-spinner/src/BpkLargeSpinner.js +89 -55
- package/bpk-component-spinner/src/BpkSpinner.js +133 -54
- 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 +52 -57
- package/{bpk-component-barchart/src/BpkChartDataTable.module.scss → bpk-component-split-input/src/BpkInputField.module.css} +6 -16
- package/bpk-component-split-input/src/BpkSplitInput.js +208 -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 +51 -78
- package/bpk-component-star-rating/src/BpkInteractiveStar.module.css +1 -1
- package/bpk-component-star-rating/src/BpkInteractiveStarRating.js +63 -101
- package/bpk-component-star-rating/src/BpkStar.js +67 -96
- package/bpk-component-star-rating/src/BpkStar.module.css +1 -1
- package/bpk-component-star-rating/src/BpkStarRating.js +58 -103
- package/bpk-component-star-rating/src/themeAttributes.js +8 -4
- package/bpk-component-star-rating/src/withInteractiveStarRatingState.js +58 -89
- package/bpk-component-switch/index.js +25 -11
- package/bpk-component-switch/src/BpkSwitch.js +48 -75
- 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 +34 -58
- package/bpk-component-table/src/BpkTable.module.css +1 -1
- package/bpk-component-table/src/BpkTableBody.js +13 -14
- package/bpk-component-table/src/BpkTableCell.js +30 -48
- package/bpk-component-table/src/BpkTableHead.js +13 -14
- package/bpk-component-table/src/BpkTableHeadCell.js +32 -52
- package/bpk-component-table/src/BpkTableRow.js +13 -14
- package/bpk-component-text/index.js +23 -7
- package/bpk-component-text/src/BpkText.js +45 -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 +37 -62
- 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 +77 -96
- package/bpk-component-theme-toggle/src/theming.js +55 -98
- 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 +69 -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 +64 -98
- package/bpk-component-tooltip/src/BpkTooltip.module.css +1 -1
- package/bpk-component-tooltip/src/BpkTooltipPortal.js +120 -190
- 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 +33 -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 +36 -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 +26 -29
- 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 +94 -115
- package/bpk-storybook-utils/index.js +43 -0
- package/bpk-storybook-utils/src/BpkDarkExampleWrapper.js +33 -0
- package/{bpk-component-aria-live/src/BpkAriaLive.module.scss → bpk-storybook-utils/src/BpkDarkExampleWrapper.module.css} +6 -13
- package/{bpk-component-barchart/src/BpkChartGridLines.module.scss → bpk-storybook-utils/src/BpkStorybookUtils.js} +19 -7
- package/bpk-theming/index.js +10 -4
- package/bpk-theming/src/BpkThemeProvider.js +59 -73
- package/index.css +0 -0
- package/package.json +1 -1
- package/bpk-animate-height/README.md +0 -53
- package/bpk-component-accordion/README.md +0 -122
- package/bpk-component-accordion/src/BpkAccordionItem.module.scss +0 -76
- package/bpk-component-aria-live/README.md +0 -40
- 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 -37
- package/bpk-component-badge/src/BpkBadge.module.scss +0 -63
- 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 -159
- package/bpk-component-barchart/README.md +0 -187
- package/bpk-component-barchart/data.json +0 -20
- package/bpk-component-barchart/src/BpkBarchart.module.scss +0 -21
- package/bpk-component-barchart/src/BpkBarchartBar.module.scss +0 -70
- package/bpk-component-blockquote/README.md +0 -33
- 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 -32
- package/bpk-component-button/README.md +0 -138
- 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 -394
- 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 -61
- package/bpk-component-card/src/BpkCard.module.scss +0 -27
- package/bpk-component-card/src/BpkDividedCard.module.scss +0 -62
- package/bpk-component-checkbox/README.md +0 -45
- package/bpk-component-checkbox/src/BpkCheckbox.module.scss +0 -78
- package/bpk-component-chip/README.md +0 -136
- package/bpk-component-chip/src/BpkSelectableChip.module.scss +0 -23
- package/bpk-component-close-button/README.md +0 -25
- package/bpk-component-close-button/src/BpkCloseButton.module.scss +0 -52
- package/bpk-component-code/README.md +0 -41
- 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 -38
- 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 -44
- 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 -50
- 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 -48
- package/bpk-component-floating-notification/src/BpkFloatingNotification.module.scss +0 -83
- package/bpk-component-form-validation/README.md +0 -31
- package/bpk-component-form-validation/src/BpkFormValidation.module.scss +0 -44
- package/bpk-component-graphic-promotion/README.md +0 -68
- package/bpk-component-graphic-promotion/src/BpkGraphicPromo.module.scss +0 -270
- package/bpk-component-grid/README.md +0 -88
- package/bpk-component-grid/src/BpkGridColumn.module.scss +0 -73
- package/bpk-component-grid/src/BpkGridContainer.module.scss +0 -33
- package/bpk-component-grid/src/BpkGridRow.module.scss +0 -29
- package/bpk-component-grid-toggle/README.md +0 -25
- 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 -77
- package/bpk-component-icon/lg/social-distancing.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 -140
- 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 -185
- 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 -119
- 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 -28
- package/bpk-component-label/src/BpkLabel.module.scss +0 -47
- package/bpk-component-link/README.md +0 -66
- package/bpk-component-link/src/BpkLink.module.scss +0 -31
- package/bpk-component-list/README.md +0 -49
- package/bpk-component-list/src/BpkList.module.scss +0 -37
- package/bpk-component-loading-button/README.md +0 -46
- package/bpk-component-loading-button/src/BpkLoadingButton.module.scss +0 -67
- package/bpk-component-map/README.md +0 -211
- 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 -72
- 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 -112
- 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 -51
- package/bpk-component-overlay/src/BpkOverlay.module.scss +0 -163
- package/bpk-component-page-indicator/README.md +0 -42
- package/bpk-component-page-indicator/src/BpkPageIndicator.module.scss +0 -91
- package/bpk-component-pagination/README.md +0 -57
- 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 -56
- package/bpk-component-pagination/src/BpkPaginationPage.module.scss +0 -40
- package/bpk-component-panel/README.md +0 -31
- 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 -61
- 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 -41
- package/bpk-component-radio/src/BpkRadio.module.scss +0 -85
- package/bpk-component-rating/README.md +0 -78
- package/bpk-component-rating/src/BpkRating.module.scss +0 -86
- package/bpk-component-rtl-toggle/README.md +0 -24
- 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 -50
- 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 -45
- package/bpk-component-select/src/BpkSelect.module.scss +0 -126
- package/bpk-component-skip-link/README.md +0 -28
- 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 -38
- 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 -40
- 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 -97
- 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 -35
- package/bpk-component-switch/src/BpkSwitch.module.scss +0 -99
- package/bpk-component-table/README.md +0 -64
- package/bpk-component-table/src/BpkTable.module.scss +0 -39
- package/bpk-component-text/README.md +0 -74
- package/bpk-component-text/src/BpkText.module.scss +0 -139
- package/bpk-component-textarea/README.md +0 -32
- package/bpk-component-textarea/src/BpkTextarea.module.scss +0 -33
- package/bpk-component-theme-toggle/README.md +0 -28
- package/bpk-component-theme-toggle/src/BpkThemeToggle.module.scss +0 -25
- package/bpk-component-ticket/README.md +0 -35
- 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 -249
- 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,3 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.DIRECTIONS = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
var _bpkComponentIcon = require("../../bpk-component-icon");
|
|
10
|
+
var _bpkComponentButton = _interopRequireDefault(require("../../bpk-component-button"));
|
|
11
|
+
var _chevronLeft = _interopRequireDefault(require("../../bpk-component-icon/lg/chevron-left"));
|
|
12
|
+
var _chevronRight = _interopRequireDefault(require("../../bpk-component-icon/lg/chevron-right"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1
14
|
/*
|
|
2
15
|
* Backpack - Skyscanner's Design System
|
|
3
16
|
*
|
|
@@ -14,72 +27,46 @@
|
|
|
14
27
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
28
|
* See the License for the specific language governing permissions and
|
|
16
29
|
* limitations under the License.
|
|
17
|
-
*/
|
|
18
|
-
/* @flow strict */
|
|
19
|
-
|
|
20
|
-
import React from 'react';
|
|
21
|
-
import PropTypes from 'prop-types';
|
|
22
|
-
|
|
23
|
-
import { withButtonAlignment, withRtlSupport } from '../../bpk-component-icon';
|
|
24
|
-
import BpkButton from '../../bpk-component-button';
|
|
25
|
-
import LeftArrowIcon from '../../bpk-component-icon/lg/chevron-left';
|
|
26
|
-
import RightArrowIcon from '../../bpk-component-icon/lg/chevron-right';
|
|
27
|
-
|
|
28
|
-
export const DIRECTIONS = {
|
|
30
|
+
*/const DIRECTIONS = {
|
|
29
31
|
PREV: 'PREV',
|
|
30
32
|
INDICATORS: 'INDICATORS',
|
|
31
|
-
NEXT: 'NEXT'
|
|
33
|
+
NEXT: 'NEXT'
|
|
32
34
|
};
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
exports.DIRECTIONS = DIRECTIONS;
|
|
36
|
+
const AlignedLeftArrowIcon = (0, _bpkComponentIcon.withButtonAlignment)((0, _bpkComponentIcon.withRtlSupport)(_chevronLeft.default));
|
|
37
|
+
const AlignedRightArrowIcon = (0, _bpkComponentIcon.withButtonAlignment)((0, _bpkComponentIcon.withRtlSupport)(_chevronRight.default));
|
|
38
|
+
const NavButton = props => {
|
|
39
|
+
const {
|
|
40
|
+
ariaLabel,
|
|
41
|
+
currentIndex,
|
|
42
|
+
direction,
|
|
43
|
+
disabled,
|
|
44
|
+
onClick
|
|
45
|
+
} = props;
|
|
46
|
+
return /*#__PURE__*/_react.default.createElement(_bpkComponentButton.default, {
|
|
47
|
+
iconOnly: true,
|
|
48
|
+
link: true,
|
|
49
|
+
onClick: e => {
|
|
50
|
+
if (direction === DIRECTIONS.PREV) {
|
|
51
|
+
onClick(e, currentIndex - 1, direction);
|
|
52
|
+
} else {
|
|
53
|
+
onClick(e, currentIndex + 1, direction);
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"aria-label": ariaLabel,
|
|
57
|
+
disabled: disabled
|
|
58
|
+
}, direction === DIRECTIONS.PREV ? /*#__PURE__*/_react.default.createElement(AlignedLeftArrowIcon, null) : /*#__PURE__*/_react.default.createElement(AlignedRightArrowIcon, null));
|
|
40
59
|
};
|
|
41
|
-
|
|
42
|
-
const AlignedLeftArrowIcon = withButtonAlignment(withRtlSupport(LeftArrowIcon));
|
|
43
|
-
const AlignedRightArrowIcon = withButtonAlignment(
|
|
44
|
-
withRtlSupport(RightArrowIcon),
|
|
45
|
-
);
|
|
46
|
-
|
|
47
|
-
const NavButton = (props: Props) => {
|
|
48
|
-
const { ariaLabel, currentIndex, direction, disabled, onClick } = props;
|
|
49
|
-
return (
|
|
50
|
-
<BpkButton
|
|
51
|
-
iconOnly
|
|
52
|
-
link
|
|
53
|
-
onClick={(e) => {
|
|
54
|
-
if (direction === DIRECTIONS.PREV) {
|
|
55
|
-
onClick(e, currentIndex - 1, direction);
|
|
56
|
-
} else {
|
|
57
|
-
onClick(e, currentIndex + 1, direction);
|
|
58
|
-
}
|
|
59
|
-
}}
|
|
60
|
-
aria-label={ariaLabel}
|
|
61
|
-
disabled={disabled}
|
|
62
|
-
>
|
|
63
|
-
{direction === DIRECTIONS.PREV ? (
|
|
64
|
-
<AlignedLeftArrowIcon />
|
|
65
|
-
) : (
|
|
66
|
-
<AlignedRightArrowIcon />
|
|
67
|
-
)}
|
|
68
|
-
</BpkButton>
|
|
69
|
-
);
|
|
70
|
-
};
|
|
71
|
-
|
|
72
60
|
NavButton.propTypes = {
|
|
73
|
-
direction:
|
|
74
|
-
disabled:
|
|
75
|
-
ariaLabel:
|
|
76
|
-
currentIndex:
|
|
77
|
-
onClick:
|
|
61
|
+
direction: _propTypes.default.oneOf(Object.keys(DIRECTIONS)).isRequired,
|
|
62
|
+
disabled: _propTypes.default.bool,
|
|
63
|
+
ariaLabel: _propTypes.default.string.isRequired,
|
|
64
|
+
currentIndex: _propTypes.default.number.isRequired,
|
|
65
|
+
onClick: _propTypes.default.func
|
|
78
66
|
};
|
|
79
|
-
|
|
80
67
|
NavButton.defaultProps = {
|
|
81
68
|
disabled: false,
|
|
82
|
-
onClick: null
|
|
69
|
+
onClick: null
|
|
83
70
|
};
|
|
84
|
-
|
|
85
|
-
|
|
71
|
+
var _default = NavButton;
|
|
72
|
+
exports.default = _default;
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
Object.defineProperty(exports, "themeAttributes", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () {
|
|
10
|
+
return _themeAttributes.default;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
var _BpkPagination = _interopRequireDefault(require("./src/BpkPagination"));
|
|
14
|
+
var _themeAttributes = _interopRequireDefault(require("./src/themeAttributes"));
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1
16
|
/*
|
|
2
17
|
* Backpack - Skyscanner's Design System
|
|
3
18
|
*
|
|
@@ -15,9 +30,5 @@
|
|
|
15
30
|
* See the License for the specific language governing permissions and
|
|
16
31
|
* limitations under the License.
|
|
17
32
|
*/
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
import themeAttributes from './src/themeAttributes';
|
|
21
|
-
|
|
22
|
-
export default BpkPagination;
|
|
23
|
-
export { themeAttributes };
|
|
33
|
+
var _default = _BpkPagination.default;
|
|
34
|
+
exports.default = _default;
|
|
@@ -1,102 +1,81 @@
|
|
|
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
|
-
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
var _bpkReactUtils = require("../../bpk-react-utils");
|
|
10
|
+
var _BpkPaginationList = _interopRequireDefault(require("./BpkPaginationList"));
|
|
11
|
+
var _BpkPaginationNudger = _interopRequireDefault(require("./BpkPaginationNudger"));
|
|
12
|
+
var _BpkPaginationModule = _interopRequireDefault(require("./BpkPagination.module.css"));
|
|
13
|
+
const _excluded = ["className", "nextLabel", "onPageChange", "pageCount", "pageLabel", "paginationLabel", "previousLabel", "selectedPageIndex", "visibleRange"];
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
16
|
+
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; }
|
|
17
|
+
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; }
|
|
18
|
+
const getClassName = (0, _bpkReactUtils.cssModules)(_BpkPaginationModule.default);
|
|
19
|
+
const handlePageChange = (onPageChange, pageCount) => nextPageIndex => {
|
|
31
20
|
if (onPageChange && nextPageIndex < pageCount && nextPageIndex >= 0) {
|
|
32
21
|
onPageChange(nextPageIndex);
|
|
33
22
|
}
|
|
34
23
|
};
|
|
35
|
-
|
|
36
|
-
const BpkPagination = (props) => {
|
|
24
|
+
const BpkPagination = props => {
|
|
37
25
|
const classNames = [getClassName('bpk-pagination')];
|
|
38
26
|
const {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
27
|
+
className,
|
|
28
|
+
nextLabel,
|
|
29
|
+
onPageChange,
|
|
30
|
+
pageCount,
|
|
31
|
+
pageLabel,
|
|
32
|
+
paginationLabel,
|
|
33
|
+
previousLabel,
|
|
34
|
+
selectedPageIndex,
|
|
35
|
+
visibleRange
|
|
36
|
+
} = props,
|
|
37
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
51
38
|
if (className) {
|
|
52
39
|
classNames.push(getClassName(className));
|
|
53
40
|
}
|
|
54
|
-
|
|
55
41
|
const pageChanged = handlePageChange(onPageChange, pageCount);
|
|
56
|
-
|
|
57
42
|
const hasPreviousPage = selectedPageIndex !== 0;
|
|
58
43
|
const hasNextPage = selectedPageIndex !== pageCount - 1;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
disabled={!hasNextPage}
|
|
79
|
-
/>
|
|
80
|
-
</nav>
|
|
81
|
-
);
|
|
44
|
+
return /*#__PURE__*/_react.default.createElement("nav", _extends({
|
|
45
|
+
className: classNames.join(''),
|
|
46
|
+
"aria-label": paginationLabel
|
|
47
|
+
}, rest), /*#__PURE__*/_react.default.createElement(_BpkPaginationNudger.default, {
|
|
48
|
+
label: previousLabel,
|
|
49
|
+
onNudge: () => pageChanged(selectedPageIndex - 1),
|
|
50
|
+
disabled: !hasPreviousPage
|
|
51
|
+
}), /*#__PURE__*/_react.default.createElement(_BpkPaginationList.default, {
|
|
52
|
+
selectedPageIndex: selectedPageIndex,
|
|
53
|
+
pageCount: pageCount,
|
|
54
|
+
onPageChange: pageChanged,
|
|
55
|
+
visibleRange: visibleRange,
|
|
56
|
+
pageLabel: pageLabel
|
|
57
|
+
}), /*#__PURE__*/_react.default.createElement(_BpkPaginationNudger.default, {
|
|
58
|
+
label: nextLabel,
|
|
59
|
+
onNudge: () => pageChanged(selectedPageIndex + 1),
|
|
60
|
+
forward: true,
|
|
61
|
+
disabled: !hasNextPage
|
|
62
|
+
}));
|
|
82
63
|
};
|
|
83
|
-
|
|
84
64
|
BpkPagination.propTypes = {
|
|
85
|
-
selectedPageIndex:
|
|
86
|
-
onPageChange:
|
|
87
|
-
pageCount:
|
|
88
|
-
previousLabel:
|
|
89
|
-
nextLabel:
|
|
90
|
-
paginationLabel:
|
|
91
|
-
pageLabel:
|
|
92
|
-
visibleRange:
|
|
93
|
-
className:
|
|
65
|
+
selectedPageIndex: _propTypes.default.number.isRequired,
|
|
66
|
+
onPageChange: _propTypes.default.func,
|
|
67
|
+
pageCount: _propTypes.default.number.isRequired,
|
|
68
|
+
previousLabel: _propTypes.default.string.isRequired,
|
|
69
|
+
nextLabel: _propTypes.default.string.isRequired,
|
|
70
|
+
paginationLabel: _propTypes.default.string.isRequired,
|
|
71
|
+
pageLabel: _propTypes.default.func.isRequired,
|
|
72
|
+
visibleRange: _propTypes.default.number,
|
|
73
|
+
className: _propTypes.default.string
|
|
94
74
|
};
|
|
95
|
-
|
|
96
75
|
BpkPagination.defaultProps = {
|
|
97
76
|
onPageChange: null,
|
|
98
77
|
visibleRange: 3,
|
|
99
|
-
className: null
|
|
78
|
+
className: null
|
|
100
79
|
};
|
|
101
|
-
|
|
102
|
-
|
|
80
|
+
var _default = BpkPagination;
|
|
81
|
+
exports.default = _default;
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1
10
|
/*
|
|
2
11
|
* Backpack - Skyscanner's Design System
|
|
3
12
|
*
|
|
@@ -16,20 +25,17 @@
|
|
|
16
25
|
* limitations under the License.
|
|
17
26
|
*/
|
|
18
27
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return <div>{breakLabel}</div>;
|
|
28
|
+
const BpkPaginationBreak = props => {
|
|
29
|
+
const {
|
|
30
|
+
breakLabel
|
|
31
|
+
} = props;
|
|
32
|
+
return /*#__PURE__*/_react.default.createElement("div", null, breakLabel);
|
|
25
33
|
};
|
|
26
|
-
|
|
27
34
|
BpkPaginationBreak.propTypes = {
|
|
28
|
-
breakLabel:
|
|
35
|
+
breakLabel: _propTypes.default.string
|
|
29
36
|
};
|
|
30
|
-
|
|
31
37
|
BpkPaginationBreak.defaultProps = {
|
|
32
|
-
breakLabel: '...'
|
|
38
|
+
breakLabel: '...'
|
|
33
39
|
};
|
|
34
|
-
|
|
35
|
-
|
|
40
|
+
var _default = BpkPaginationBreak;
|
|
41
|
+
exports.default = _default;
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _bpkReactUtils = require("../../bpk-react-utils");
|
|
10
|
+
var _BpkPaginationPage = _interopRequireDefault(require("./BpkPaginationPage"));
|
|
11
|
+
var _BpkPaginationBreak = _interopRequireDefault(require("./BpkPaginationBreak"));
|
|
12
|
+
var _BpkPaginationListModule = _interopRequireDefault(require("./BpkPaginationList.module.css"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1
14
|
/*
|
|
2
15
|
* Backpack - Skyscanner's Design System
|
|
3
16
|
*
|
|
@@ -16,86 +29,55 @@
|
|
|
16
29
|
* limitations under the License.
|
|
17
30
|
*/
|
|
18
31
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
import { cssModules } from '../../bpk-react-utils';
|
|
23
|
-
|
|
24
|
-
import BpkPaginationPage from './BpkPaginationPage';
|
|
25
|
-
import BpkPaginationBreak from './BpkPaginationBreak';
|
|
26
|
-
import STYLES from './BpkPaginationList.module.scss';
|
|
27
|
-
|
|
28
|
-
const getClassName = cssModules(STYLES);
|
|
29
|
-
|
|
30
|
-
const BpkPaginationList = (props) => {
|
|
32
|
+
const getClassName = (0, _bpkReactUtils.cssModules)(_BpkPaginationListModule.default);
|
|
33
|
+
const BpkPaginationList = props => {
|
|
31
34
|
const {
|
|
32
35
|
onPageChange,
|
|
33
36
|
pageCount,
|
|
34
37
|
pageLabel,
|
|
35
38
|
selectedPageIndex,
|
|
36
|
-
visibleRange
|
|
39
|
+
visibleRange
|
|
37
40
|
} = props;
|
|
38
|
-
|
|
39
41
|
const shoulderRange = Math.ceil(visibleRange / 2);
|
|
40
42
|
const isFirstPageSelected = selectedPageIndex === 0;
|
|
41
43
|
const isLastPageSelected = selectedPageIndex === pageCount - 1;
|
|
42
|
-
const displayRange =
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
if (pageView !== null) {
|
|
75
|
-
return (
|
|
76
|
-
<li
|
|
77
|
-
key={i} // eslint-disable-line react/no-array-index-key
|
|
78
|
-
className={getClassName('bpk-pagination-page-list__item')}
|
|
79
|
-
>
|
|
80
|
-
{pageView}
|
|
81
|
-
</li>
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
return null;
|
|
85
|
-
})
|
|
86
|
-
.filter((page) => !!page);
|
|
87
|
-
|
|
88
|
-
return (
|
|
89
|
-
<ul className={getClassName('bpk-pagination-page-list')}>{children}</ul>
|
|
90
|
-
);
|
|
44
|
+
const displayRange = isFirstPageSelected || isLastPageSelected ? shoulderRange + 1 : shoulderRange;
|
|
45
|
+
const children = new Array(pageCount).fill(undefined).map((_, i) => {
|
|
46
|
+
const isFirstPage = i === 0;
|
|
47
|
+
const isLastPage = i === pageCount - 1;
|
|
48
|
+
const isFirstPageInRange = i === selectedPageIndex - displayRange && !isFirstPage;
|
|
49
|
+
const isLastPageInRange = i === selectedPageIndex + displayRange && !isLastPage;
|
|
50
|
+
const isPageOutOfRange = i < selectedPageIndex - displayRange || i > selectedPageIndex + displayRange;
|
|
51
|
+
let pageView = null;
|
|
52
|
+
if (isFirstPageInRange || isLastPageInRange) {
|
|
53
|
+
pageView = /*#__PURE__*/_react.default.createElement(_BpkPaginationBreak.default, null);
|
|
54
|
+
} else if (!isPageOutOfRange || isFirstPage || isLastPage) {
|
|
55
|
+
pageView = /*#__PURE__*/_react.default.createElement(_BpkPaginationPage.default, {
|
|
56
|
+
page: i + 1,
|
|
57
|
+
onSelect: () => onPageChange(i),
|
|
58
|
+
isSelected: selectedPageIndex === i,
|
|
59
|
+
pageLabel: pageLabel
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
if (pageView !== null) {
|
|
63
|
+
return /*#__PURE__*/_react.default.createElement("li", {
|
|
64
|
+
key: i // eslint-disable-line react/no-array-index-key
|
|
65
|
+
,
|
|
66
|
+
className: getClassName('bpk-pagination-page-list__item')
|
|
67
|
+
}, pageView);
|
|
68
|
+
}
|
|
69
|
+
return null;
|
|
70
|
+
}).filter(page => !!page);
|
|
71
|
+
return /*#__PURE__*/_react.default.createElement("ul", {
|
|
72
|
+
className: getClassName('bpk-pagination-page-list')
|
|
73
|
+
}, children);
|
|
91
74
|
};
|
|
92
|
-
|
|
93
75
|
BpkPaginationList.propTypes = {
|
|
94
|
-
selectedPageIndex:
|
|
95
|
-
pageCount:
|
|
96
|
-
visibleRange:
|
|
97
|
-
onPageChange:
|
|
98
|
-
pageLabel:
|
|
76
|
+
selectedPageIndex: _propTypes.default.number.isRequired,
|
|
77
|
+
pageCount: _propTypes.default.number.isRequired,
|
|
78
|
+
visibleRange: _propTypes.default.number.isRequired,
|
|
79
|
+
onPageChange: _propTypes.default.func.isRequired,
|
|
80
|
+
pageLabel: _propTypes.default.func.isRequired
|
|
99
81
|
};
|
|
100
|
-
|
|
101
|
-
|
|
82
|
+
var _default = BpkPaginationList;
|
|
83
|
+
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-pagination-page-list{display:flex;margin:0;padding:0;list-style:none}.bpk-pagination-page-list__item{margin-right:0.5rem}html[dir='rtl'] .bpk-pagination-page-list__item{margin-right:0;margin-left:0.5rem}html[dir='rtl'] .bpk-pagination-page-list__item:last-child{margin-left:0}.bpk-pagination-page-list__item:last-child{margin-right:0}
|
|
18
|
+
@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-pagination-page-list{display:flex;margin:0;padding:0;align-items:baseline;list-style:none}.bpk-pagination-page-list__item{margin-right:0.5rem}html[dir='rtl'] .bpk-pagination-page-list__item{margin-right:0;margin-left:0.5rem}html[dir='rtl'] .bpk-pagination-page-list__item:last-child{margin-left:0}.bpk-pagination-page-list__item:last-child{margin-right:0}
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _bpkReactUtils = require("../../bpk-react-utils");
|
|
10
|
+
var _bpkComponentIcon = require("../../bpk-component-icon");
|
|
11
|
+
var _arrowLeft = _interopRequireDefault(require("../../bpk-component-icon/lg/arrow-left"));
|
|
12
|
+
var _arrowRight = _interopRequireDefault(require("../../bpk-component-icon/lg/arrow-right"));
|
|
13
|
+
var _BpkPaginationNudgerModule = _interopRequireDefault(require("./BpkPaginationNudger.module.css"));
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1
15
|
/*
|
|
2
16
|
* Backpack - Skyscanner's Design System
|
|
3
17
|
*
|
|
@@ -16,63 +30,41 @@
|
|
|
16
30
|
* limitations under the License.
|
|
17
31
|
*/
|
|
18
32
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
);
|
|
45
|
-
|
|
46
|
-
const BpkPaginationNudger = (props) => {
|
|
47
|
-
const { disabled, forward, label, onNudge } = props;
|
|
48
|
-
|
|
49
|
-
return (
|
|
50
|
-
<div className={getClassName('bpk-pagination-nudger')}>
|
|
51
|
-
<button
|
|
52
|
-
type="button"
|
|
53
|
-
className={getClassName('bpk-pagination-nudger__button')}
|
|
54
|
-
onClick={onNudge}
|
|
55
|
-
disabled={disabled}
|
|
56
|
-
>
|
|
57
|
-
{nudgerIcon(forward)}
|
|
58
|
-
<span className={getClassName('bpk-pagination-nudger__text--hidden')}>
|
|
59
|
-
{label}
|
|
60
|
-
</span>
|
|
61
|
-
</button>
|
|
62
|
-
</div>
|
|
63
|
-
);
|
|
33
|
+
const getClassName = (0, _bpkReactUtils.cssModules)(_BpkPaginationNudgerModule.default);
|
|
34
|
+
const AlignedArrowLeftIcon = (0, _bpkComponentIcon.withButtonAlignment)((0, _bpkComponentIcon.withRtlSupport)(_arrowLeft.default));
|
|
35
|
+
const AlignedArrowRightIcon = (0, _bpkComponentIcon.withButtonAlignment)((0, _bpkComponentIcon.withRtlSupport)(_arrowRight.default));
|
|
36
|
+
const nudgerIcon = forward => forward ? /*#__PURE__*/_react.default.createElement(AlignedArrowRightIcon, {
|
|
37
|
+
className: getClassName('bpk-pagination-nudger__icon')
|
|
38
|
+
}) : /*#__PURE__*/_react.default.createElement(AlignedArrowLeftIcon, {
|
|
39
|
+
className: getClassName('bpk-pagination-nudger__icon')
|
|
40
|
+
});
|
|
41
|
+
const BpkPaginationNudger = props => {
|
|
42
|
+
const {
|
|
43
|
+
disabled,
|
|
44
|
+
forward,
|
|
45
|
+
label,
|
|
46
|
+
onNudge
|
|
47
|
+
} = props;
|
|
48
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
49
|
+
className: getClassName('bpk-pagination-nudger')
|
|
50
|
+
}, /*#__PURE__*/_react.default.createElement("button", {
|
|
51
|
+
type: "button",
|
|
52
|
+
className: getClassName('bpk-pagination-nudger__button'),
|
|
53
|
+
onClick: onNudge,
|
|
54
|
+
disabled: disabled
|
|
55
|
+
}, nudgerIcon(forward), /*#__PURE__*/_react.default.createElement("span", {
|
|
56
|
+
className: getClassName('bpk-pagination-nudger__text--hidden')
|
|
57
|
+
}, label)));
|
|
64
58
|
};
|
|
65
|
-
|
|
66
59
|
BpkPaginationNudger.propTypes = {
|
|
67
|
-
label:
|
|
68
|
-
onNudge:
|
|
69
|
-
forward:
|
|
70
|
-
disabled:
|
|
60
|
+
label: _propTypes.default.string.isRequired,
|
|
61
|
+
onNudge: _propTypes.default.func.isRequired,
|
|
62
|
+
forward: _propTypes.default.bool,
|
|
63
|
+
disabled: _propTypes.default.bool
|
|
71
64
|
};
|
|
72
|
-
|
|
73
65
|
BpkPaginationNudger.defaultProps = {
|
|
74
66
|
forward: false,
|
|
75
|
-
disabled: false
|
|
67
|
+
disabled: false
|
|
76
68
|
};
|
|
77
|
-
|
|
78
|
-
|
|
69
|
+
var _default = BpkPaginationNudger;
|
|
70
|
+
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-pagination-nudger{text-align:center;vertical-align:middle}.bpk-pagination-nudger__button{height:2.25rem;padding:0
|
|
18
|
+
@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-pagination-nudger{text-align:center;vertical-align:middle}.bpk-pagination-nudger__button{height:2.25rem;border:none;background:none;cursor:pointer;appearance:none;border-radius:0;background:none;box-shadow:none;padding:0;border:0;background-color:transparent;text-decoration:none;cursor:pointer;appearance:none;color:#0062e3;color:var(--bpk-link-color, #0062e3);padding:.375rem 0;color:#0062e3;padding:0}.bpk-no-touch-support .bpk-pagination-nudger__button:hover:not(:active):not(:disabled){text-decoration:underline;color:#0062e3;color:var(--bpk-link-hover-color, #0062e3)}:global(.bpk-no-touch-support) .bpk-pagination-nudger__button:hover:not(:active):not(:disabled){text-decoration:underline;color:#0062e3;color:var(--bpk-link-hover-color, #0062e3)}.bpk-pagination-nudger__button:visited{color:#0062e3;color:var(--bpk-link-visited-color, #0062e3)}.bpk-pagination-nudger__button:active{text-decoration:underline;color:#0062e3;color:var(--bpk-link-active-color, #0062e3)}.bpk-no-touch-support .bpk-pagination-nudger__button:hover:not(:active):not(:disabled){background:none;color:#154679;text-decoration:none}:global(.bpk-no-touch-support) .bpk-pagination-nudger__button:hover:not(:active):not(:disabled){background:none;color:#154679;text-decoration:none}.bpk-pagination-nudger__button:active{background:none;color:#154679;text-decoration:none}.bpk-pagination-nudger__button:disabled{background:none;color:rgba(0,0,0,0.2);text-decoration:none}.bpk-pagination-nudger__button-large{padding:.75rem 0}.bpk-pagination-nudger__button:disabled{cursor:not-allowed}.bpk-pagination-nudger__button .bpk-pagination-nudger__icon{fill:currentcolor}html[dir='rtl'] .bpk-pagination-nudger__button .bpk-pagination-nudger__icon{transform:scaleX(-1)}.bpk-pagination-nudger__text--hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0)}
|