@skyscanner/backpack-web 6.0.0-alpha.1 → 6.0.0-alpha.2
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 +13 -4
- package/bpk-animate-height/src/AnimateHeight-test.js +75 -0
- package/bpk-animate-height/src/AnimateHeight.js +86 -76
- package/bpk-animate-height/src/accessibility-test.js +41 -0
- package/bpk-component-accordion/index.js +44 -30
- package/bpk-component-accordion/src/BpkAccordion-test.js +43 -0
- package/bpk-component-accordion/src/{BpkAccordion.module.css → BpkAccordion.css} +0 -0
- package/bpk-component-accordion/src/BpkAccordion.js +42 -42
- package/bpk-component-accordion/src/BpkAccordionItem-test.js +100 -0
- package/bpk-component-accordion/src/{BpkAccordionItem.module.css → BpkAccordionItem.css} +0 -0
- package/bpk-component-accordion/src/BpkAccordionItem.js +91 -105
- package/bpk-component-accordion/src/accessibility-test.js +43 -0
- package/bpk-component-accordion/src/themeAttributes-test.js +28 -0
- package/bpk-component-accordion/src/themeAttributes.js +9 -8
- package/bpk-component-accordion/src/withAccordionItemState-test.js +77 -0
- package/bpk-component-accordion/src/withAccordionItemState.js +64 -68
- package/bpk-component-accordion/src/withSingleItemAccordionState-test.js +67 -0
- package/bpk-component-accordion/src/withSingleItemAccordionState.js +62 -75
- package/bpk-component-aria-live/index.js +21 -10
- package/bpk-component-aria-live/src/BpkAriaLive-test.js +73 -0
- package/bpk-component-aria-live/src/{BpkAriaLive.module.css → BpkAriaLive.css} +0 -0
- package/bpk-component-aria-live/src/BpkAriaLive.js +43 -45
- package/bpk-component-aria-live/src/accessibility-test.js +38 -0
- package/bpk-component-autosuggest/check-autosuggest-version-test.js +28 -0
- package/bpk-component-autosuggest/index.js +21 -8
- package/bpk-component-autosuggest/src/BpkAutosuggest-test.js +115 -0
- package/bpk-component-autosuggest/src/{BpkAutosuggest.module.css → BpkAutosuggest.css} +0 -0
- package/bpk-component-autosuggest/src/BpkAutosuggest.js +42 -46
- package/bpk-component-autosuggest/src/BpkAutosuggestSuggestion-test.js +132 -0
- package/bpk-component-autosuggest/src/BpkAutosuggestSuggestion.js +64 -82
- package/bpk-component-autosuggest/src/accessibility-test.js +66 -0
- package/bpk-component-badge/index.js +31 -9
- package/bpk-component-badge/src/BpkBadge-test.js +81 -0
- package/bpk-component-badge/src/{BpkBadge.module.css → BpkBadge.css} +0 -0
- package/bpk-component-badge/src/BpkBadge.js +52 -49
- package/bpk-component-badge/src/accessibility-test.js +38 -0
- package/{bpk-component-barchart/src/BpkChartDataTable.module.scss → bpk-component-badge/src/themeAttributes-test.js} +9 -11
- package/bpk-component-badge/src/themeAttributes.js +9 -6
- package/bpk-component-banner-alert/index.js +53 -17
- package/bpk-component-banner-alert/src/AnimateAndFade-test.js +74 -0
- package/bpk-component-banner-alert/src/AnimateAndFade.js +126 -142
- package/bpk-component-banner-alert/src/{BpkAnimateAndFade.module.css → BpkAnimateAndFade.css} +0 -0
- package/bpk-component-banner-alert/src/BpkBannerAlert-test.js +61 -0
- package/bpk-component-banner-alert/src/{BpkBannerAlert.module.css → BpkBannerAlert.css} +0 -0
- package/bpk-component-banner-alert/src/BpkBannerAlert.js +20 -19
- package/bpk-component-banner-alert/src/BpkBannerAlertDismissable-test.js +43 -0
- package/bpk-component-banner-alert/src/BpkBannerAlertDismissable.js +45 -52
- package/bpk-component-banner-alert/src/BpkBannerAlertExpandable-test.js +54 -0
- package/bpk-component-banner-alert/src/BpkBannerAlertExpandable.js +55 -56
- package/bpk-component-banner-alert/src/BpkBannerAlertInner-test.js +206 -0
- package/bpk-component-banner-alert/src/BpkBannerAlertInner.js +141 -185
- package/bpk-component-banner-alert/src/accessibility-test.js +44 -0
- package/bpk-component-banner-alert/src/common-types.js +26 -41
- package/{bpk-component-barchart/src/BpkChartAxis.module.scss → bpk-component-banner-alert/src/themeAttributes-test.js} +9 -20
- package/bpk-component-banner-alert/src/themeAttributes.js +9 -7
- package/bpk-component-banner-alert/src/withBannerAlertState-test.js +127 -0
- package/bpk-component-banner-alert/src/withBannerAlertState.js +118 -142
- package/bpk-component-barchart/index.js +61 -21
- package/bpk-component-barchart/src/BpkBarchart-test.js +192 -0
- package/bpk-component-barchart/src/{BpkBarchart.module.css → BpkBarchart.css} +0 -0
- package/bpk-component-barchart/src/BpkBarchart.js +222 -268
- package/bpk-component-barchart/src/BpkBarchartBar-test.js +120 -0
- package/bpk-component-barchart/src/{BpkBarchartBar.module.css → BpkBarchartBar.css} +0 -0
- package/bpk-component-barchart/src/BpkBarchartBar.js +81 -113
- package/bpk-component-barchart/src/BpkBarchartBars-test.js +175 -0
- package/bpk-component-barchart/src/BpkBarchartBars.js +117 -129
- package/{bpk-component-button/src/BpkButtonBase.module.scss → bpk-component-barchart/src/BpkBarchartDefs-test.js} +18 -33
- package/bpk-component-barchart/src/BpkBarchartDefs.js +32 -38
- package/bpk-component-barchart/src/BpkChartAxis-test.js +204 -0
- package/bpk-component-barchart/src/{BpkChartAxis.module.css → BpkChartAxis.css} +0 -0
- package/bpk-component-barchart/src/BpkChartAxis.js +100 -135
- package/bpk-component-barchart/src/BpkChartDataTable-test.js +46 -0
- package/bpk-component-barchart/src/{BpkChartDataTable.module.css → BpkChartDataTable.css} +0 -0
- package/bpk-component-barchart/src/BpkChartDataTable.js +43 -49
- package/bpk-component-barchart/src/BpkChartGridLines-test.js +178 -0
- package/bpk-component-barchart/src/{BpkChartGridLines.module.css → BpkChartGridLines.css} +0 -0
- package/bpk-component-barchart/src/BpkChartGridLines.js +72 -95
- package/bpk-component-barchart/src/BpkChartMargin-test.js +45 -0
- package/bpk-component-barchart/src/BpkChartMargin.js +39 -46
- package/bpk-component-barchart/src/RTLtransforms.js +50 -49
- package/bpk-component-barchart/src/accessibility-test.js +52 -0
- package/bpk-component-barchart/src/customPropTypes-test.js +59 -0
- package/bpk-component-barchart/src/customPropTypes.js +19 -22
- package/bpk-component-barchart/src/orientation.js +11 -5
- package/bpk-component-barchart/src/themeAttributes-test.js +28 -0
- package/bpk-component-barchart/src/themeAttributes.js +9 -9
- package/bpk-component-barchart/src/utils-test.js +68 -0
- package/bpk-component-barchart/src/utils.js +20 -10
- package/bpk-component-blockquote/index.js +21 -6
- package/bpk-component-blockquote/src/BpkBlockquote-test.js +43 -0
- package/bpk-component-blockquote/src/{BpkBlockquote.module.css → BpkBlockquote.css} +0 -0
- package/bpk-component-blockquote/src/BpkBlockquote.js +28 -21
- package/bpk-component-blockquote/src/accessibility-test.js +38 -0
- package/bpk-component-blockquote/src/themeAttributes-test.js +28 -0
- package/bpk-component-blockquote/src/themeAttributes.js +9 -2
- package/bpk-component-boilerplate/index.js +30 -0
- package/bpk-component-boilerplate/src/BpkBoilerplate-test.js +51 -0
- package/bpk-component-boilerplate/src/BpkBoilerplate.css +18 -0
- package/bpk-component-boilerplate/src/BpkBoilerplate.js +51 -0
- package/bpk-component-boilerplate/src/accessibility-test.js +38 -0
- package/bpk-component-breadcrumb/index.js +21 -14
- package/bpk-component-breadcrumb/src/BpkBreadcrumb-test.js +72 -0
- package/bpk-component-breadcrumb/src/{BpkBreadcrumb.module.css → BpkBreadcrumb.css} +0 -0
- package/bpk-component-breadcrumb/src/BpkBreadcrumb.js +68 -79
- package/bpk-component-breadcrumb/src/BpkBreadcrumbItem-test.js +76 -0
- package/bpk-component-breadcrumb/src/{BpkBreadcrumbItem.module.css → BpkBreadcrumbItem.css} +0 -0
- package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.js +70 -77
- package/bpk-component-breadcrumb/src/accessibility-test.js +44 -0
- package/bpk-component-breakpoint/index.js +21 -7
- package/bpk-component-breakpoint/src/BpkBreakpoint-test.js +100 -0
- package/bpk-component-breakpoint/src/BpkBreakpoint.js +46 -38
- package/bpk-component-breakpoint/src/accessibility-test.js +44 -0
- package/bpk-component-button/BpkButtonDestructive.js +13 -19
- package/bpk-component-button/BpkButtonFeatured.js +13 -19
- package/bpk-component-button/BpkButtonLink.js +13 -19
- package/bpk-component-button/BpkButtonLinkOnDark.js +13 -19
- package/bpk-component-button/BpkButtonOutline.js +13 -19
- package/bpk-component-button/BpkButtonPrimary.js +13 -19
- package/bpk-component-button/BpkButtonPrimaryOnDark.js +13 -19
- package/bpk-component-button/BpkButtonPrimaryOnLight.js +13 -19
- package/bpk-component-button/BpkButtonSecondary.js +13 -19
- package/bpk-component-button/BpkButtonSecondaryOnDark.js +13 -19
- package/bpk-component-button/index.js +144 -40
- package/bpk-component-button/src/BpkButton-test.js +165 -0
- package/bpk-component-button/src/BpkButton.js +64 -87
- package/bpk-component-button/src/{BpkButtonBase.module.css → BpkButtonBase.css} +0 -0
- package/bpk-component-button/src/BpkButtonBase.js +64 -74
- package/bpk-component-button/src/BpkButtonDestructive-test.js +26 -0
- package/bpk-component-button/src/{BpkButtonDestructive.module.css → BpkButtonDestructive.css} +0 -0
- package/bpk-component-button/src/BpkButtonDestructive.js +51 -36
- package/{bpk-component-calendar/src/BpkCalendar.module.scss → bpk-component-button/src/BpkButtonFeatured-test.js} +9 -25
- package/bpk-component-button/src/{BpkButtonFeatured.module.css → BpkButtonFeatured.css} +0 -0
- package/bpk-component-button/src/BpkButtonFeatured.js +51 -36
- package/{bpk-component-code/src/BpkCodeBlock.module.scss → bpk-component-button/src/BpkButtonLink-test.js} +9 -16
- package/bpk-component-button/src/{BpkButtonLink.module.css → BpkButtonLink.css} +0 -0
- package/bpk-component-button/src/BpkButtonLink.js +53 -43
- package/bpk-component-button/src/BpkButtonLinkOnDark-test.js +26 -0
- package/bpk-component-button/src/{BpkButtonLinkOnDark.module.css → BpkButtonLinkOnDark.css} +0 -0
- package/bpk-component-button/src/BpkButtonLinkOnDark.js +53 -43
- package/{bpk-component-breadcrumb/src/BpkBreadcrumbItem.module.scss → bpk-component-button/src/BpkButtonOutline-test.js} +9 -23
- package/bpk-component-button/src/{BpkButtonOutline.module.css → BpkButtonOutline.css} +0 -0
- package/bpk-component-button/src/BpkButtonOutline.js +51 -36
- package/bpk-component-button/src/BpkButtonPrimary-test.js +26 -0
- package/bpk-component-button/src/BpkButtonPrimary.js +25 -29
- package/bpk-component-button/src/BpkButtonPrimaryOnDark-test.js +26 -0
- package/bpk-component-button/src/{BpkButtonPrimaryOnDark.module.css → BpkButtonPrimaryOnDark.css} +0 -0
- package/bpk-component-button/src/BpkButtonPrimaryOnDark.js +51 -36
- package/bpk-component-button/src/BpkButtonPrimaryOnLight-test.js +26 -0
- package/bpk-component-button/src/{BpkButtonPrimaryOnLight.module.css → BpkButtonPrimaryOnLight.css} +0 -0
- package/bpk-component-button/src/BpkButtonPrimaryOnLight.js +51 -36
- package/bpk-component-button/src/BpkButtonSecondary-test.js +26 -0
- package/bpk-component-button/src/{BpkButtonSecondary.module.css → BpkButtonSecondary.css} +0 -0
- package/bpk-component-button/src/BpkButtonSecondary.js +51 -36
- package/bpk-component-button/src/BpkButtonSecondaryOnDark-test.js +26 -0
- package/bpk-component-button/src/{BpkButtonSecondaryOnDark.module.css → BpkButtonSecondaryOnDark.css} +0 -0
- package/bpk-component-button/src/BpkButtonSecondaryOnDark.js +51 -36
- package/bpk-component-button/src/accessibility-test.js +47 -0
- package/bpk-component-button/src/common-types.js +24 -33
- package/bpk-component-button/src/commonButtonTests.js +79 -63
- package/bpk-component-button/src/themeAttributes-test.js +38 -0
- package/bpk-component-button/src/themeAttributes.js +23 -75
- package/bpk-component-button/themeAttributes.js +53 -28
- package/bpk-component-calendar/index.js +126 -43
- package/bpk-component-calendar/src/{BpkCalendar.module.css → BpkCalendar.css} +0 -0
- package/bpk-component-calendar/src/BpkCalendarContainer-test.js +356 -0
- package/bpk-component-calendar/src/BpkCalendarContainer.js +237 -271
- package/bpk-component-calendar/src/BpkCalendarDate-test.js +164 -0
- package/bpk-component-calendar/src/{BpkCalendarDate.module.css → BpkCalendarDate.css} +0 -0
- package/bpk-component-calendar/src/BpkCalendarDate.js +119 -121
- package/bpk-component-calendar/src/BpkCalendarGrid-test.js +140 -0
- package/bpk-component-calendar/src/{BpkCalendarGrid.module.css → BpkCalendarGrid.css} +0 -0
- package/bpk-component-calendar/src/BpkCalendarGrid.js +127 -152
- package/bpk-component-calendar/src/{BpkCalendarGridHeader.module.css → BpkCalendarGridHeader.css} +0 -0
- package/bpk-component-calendar/src/BpkCalendarGridHeader.js +72 -60
- package/bpk-component-calendar/src/BpkCalendarGridTransition-test.js +94 -0
- package/bpk-component-calendar/src/{BpkCalendarGridTransition.module.css → BpkCalendarGridTransition.css} +0 -0
- package/bpk-component-calendar/src/BpkCalendarGridTransition.js +103 -143
- package/bpk-component-calendar/src/BpkCalendarNav-test.js +116 -0
- package/bpk-component-calendar/src/{BpkCalendarNav.module.css → BpkCalendarNav.css} +0 -0
- package/bpk-component-calendar/src/BpkCalendarNav.js +140 -136
- package/bpk-component-calendar/src/Week-test.js +154 -0
- package/bpk-component-calendar/src/Week.js +216 -285
- package/bpk-component-calendar/src/accessibility-test.js +88 -0
- package/bpk-component-calendar/src/composeCalendar-test.js +173 -0
- package/bpk-component-calendar/src/composeCalendar.js +108 -123
- package/bpk-component-calendar/src/custom-proptypes.js +50 -41
- package/bpk-component-calendar/src/date-utils.js +223 -93
- package/bpk-component-calendar/src/themeAttributes-test.js +28 -0
- package/bpk-component-calendar/src/themeAttributes.js +9 -13
- package/bpk-component-calendar/src/utils.js +28 -20
- package/bpk-component-calendar/test-utils.js +239 -272
- package/bpk-component-card/index.js +13 -5
- package/bpk-component-card/src/BpkCard-test.js +85 -0
- package/bpk-component-card/src/{BpkCard.module.css → BpkCard.css} +0 -0
- package/bpk-component-card/src/BpkCard.js +65 -67
- package/bpk-component-card/src/accessibility-test.js +47 -0
- package/bpk-component-checkbox/index.js +21 -8
- package/bpk-component-checkbox/src/BpkCheckbox-test.js +152 -0
- package/bpk-component-checkbox/src/{BpkCheckbox.module.css → BpkCheckbox.css} +0 -0
- package/bpk-component-checkbox/src/BpkCheckbox.js +64 -100
- package/bpk-component-checkbox/src/accessibility-test.js +41 -0
- package/bpk-component-checkbox/src/themeAttributes-test.js +28 -0
- package/bpk-component-checkbox/src/themeAttributes.js +9 -4
- package/bpk-component-chip/index.js +37 -17
- package/bpk-component-chip/src/BpkDismissibleChip-test.js +85 -0
- package/bpk-component-chip/src/BpkDismissibleChip.js +32 -53
- package/bpk-component-chip/src/BpkSelectableChip-test.js +107 -0
- package/bpk-component-chip/src/{BpkSelectableChip.module.css → BpkSelectableChip.css} +0 -0
- package/bpk-component-chip/src/BpkSelectableChip.js +70 -86
- package/bpk-component-chip/src/accessibility-test.js +55 -0
- package/bpk-component-chip/src/commonTypes.js +28 -33
- package/bpk-component-chip/src/themeAttributes-test.js +28 -0
- package/bpk-component-chip/src/themeAttributes.js +9 -17
- package/bpk-component-close-button/index.js +13 -6
- package/bpk-component-close-button/src/BpkCloseButton-test.js +60 -0
- package/bpk-component-close-button/src/{BpkCloseButton.module.css → BpkCloseButton.css} +0 -0
- package/bpk-component-close-button/src/BpkCloseButton.js +56 -56
- package/bpk-component-close-button/src/accessibility-test.js +41 -0
- package/bpk-component-code/index.js +21 -21
- package/bpk-component-code/src/BpkCode-test.js +51 -0
- package/bpk-component-code/src/{BpkCode.module.css → BpkCode.css} +0 -0
- package/bpk-component-code/src/BpkCode.js +45 -44
- package/bpk-component-code/src/BpkCodeBlock-test.js +51 -0
- package/bpk-component-code/src/{BpkCodeBlock.module.css → BpkCodeBlock.css} +0 -0
- package/bpk-component-code/src/BpkCodeBlock.js +47 -50
- package/bpk-component-code/src/accessibility-test.js +47 -0
- package/bpk-component-content-container/index.js +13 -4
- package/bpk-component-content-container/src/BpkContentContainer-test.js +60 -0
- package/bpk-component-content-container/src/{BpkContentContainer.module.css → BpkContentContainer.css} +0 -0
- package/bpk-component-content-container/src/BpkContentContainer.js +47 -53
- package/bpk-component-content-container/src/accessibility-test.js +38 -0
- package/bpk-component-datatable/index.js +22 -20
- package/bpk-component-datatable/src/BpkDataTable-test.js +517 -0
- package/bpk-component-datatable/src/{BpkDataTable.module.css → BpkDataTable.css} +0 -0
- package/bpk-component-datatable/src/BpkDataTable.js +177 -155
- package/bpk-component-datatable/src/BpkDataTableColumn-test.js +71 -0
- package/bpk-component-datatable/src/{BpkDataTableColumn.module.css → BpkDataTableColumn.css} +0 -0
- package/bpk-component-datatable/src/BpkDataTableColumn.js +52 -50
- package/bpk-component-datatable/src/accessibility-test.js +70 -0
- package/bpk-component-datatable/src/bpkHeaderRenderer-test.js +110 -0
- package/bpk-component-datatable/src/bpkHeaderRenderer.js +60 -72
- package/bpk-component-datatable/src/common-types.js +3 -48
- package/bpk-component-datatable/src/hasChildrenOfType-test.js +60 -0
- package/bpk-component-datatable/src/hasChildrenOfType.js +29 -36
- package/bpk-component-datatable/src/sort-types.js +1 -29
- package/bpk-component-datatable/src/sorter.js +62 -89
- package/bpk-component-datatable/src/utils.js +11 -6
- package/bpk-component-datepicker/index.js +29 -8
- package/bpk-component-datepicker/src/BpkDatepicker-test.js +377 -0
- package/bpk-component-datepicker/src/{BpkDatepicker.module.css → BpkDatepicker.css} +0 -0
- package/bpk-component-datepicker/src/BpkDatepicker.js +219 -269
- package/bpk-component-datepicker/src/accessibility-test.js +94 -0
- package/bpk-component-datepicker/src/themeAttibutes-test.js +28 -0
- package/bpk-component-datepicker/src/themeAttributes.js +15 -11
- package/bpk-component-description-list/index.js +29 -21
- package/bpk-component-description-list/src/BpkDescriptionDetails-test.js +51 -0
- package/bpk-component-description-list/src/BpkDescriptionDetails.js +13 -3
- package/bpk-component-description-list/src/BpkDescriptionList-test.js +51 -0
- package/bpk-component-description-list/src/{BpkDescriptionList.module.css → BpkDescriptionList.css} +0 -0
- package/bpk-component-description-list/src/BpkDescriptionList.js +13 -3
- package/bpk-component-description-list/src/BpkDescriptionTerm-test.js +51 -0
- package/bpk-component-description-list/src/BpkDescriptionTerm.js +13 -3
- package/bpk-component-description-list/src/ComponentFactory.js +41 -37
- package/bpk-component-description-list/src/accessibility-test.js +38 -0
- package/bpk-component-dialog/index.js +21 -9
- package/bpk-component-dialog/src/BpkDialog-test.js +162 -0
- package/bpk-component-dialog/src/{BpkDialog.module.css → BpkDialog.css} +0 -0
- package/bpk-component-dialog/src/BpkDialog.js +64 -78
- package/bpk-component-dialog/src/{BpkDialogInner.module.css → BpkDialogInner.css} +0 -0
- package/bpk-component-dialog/src/BpkDialogInner.js +59 -74
- package/bpk-component-dialog/src/accessibility-test.js +48 -0
- package/bpk-component-dialog/src/common-types.js +56 -80
- package/bpk-component-drawer/index.js +21 -8
- package/bpk-component-drawer/src/BpkDrawer-test.js +47 -0
- package/bpk-component-drawer/src/{BpkDrawer.module.css → BpkDrawer.css} +0 -0
- package/bpk-component-drawer/src/BpkDrawer.js +82 -76
- package/bpk-component-drawer/src/BpkDrawerContent-test.js +101 -0
- package/bpk-component-drawer/src/{BpkDrawerContent.module.css → BpkDrawerContent.css} +0 -0
- package/bpk-component-drawer/src/BpkDrawerContent.js +97 -123
- package/bpk-component-drawer/src/accessibility-test.js +49 -0
- package/bpk-component-drawer/src/themeAttributes-test.js +28 -0
- package/bpk-component-drawer/src/themeAttributes.js +11 -6
- package/bpk-component-fieldset/index.js +37 -13
- package/bpk-component-fieldset/src/BpkFieldset-test.js +313 -0
- package/bpk-component-fieldset/src/{BpkFieldset.module.css → BpkFieldset.css} +0 -0
- package/bpk-component-fieldset/src/BpkFieldset.js +104 -130
- package/bpk-component-fieldset/src/accessibility-test.js +53 -0
- package/bpk-component-fieldset/src/themeAttributes.js +9 -2
- package/bpk-component-flare/gulpfile.js +59 -0
- package/bpk-component-flare/index.js +27 -8
- package/bpk-component-flare/src/BpkContentBubble-test.js +82 -0
- package/bpk-component-flare/src/BpkContentBubble.js +59 -67
- package/bpk-component-flare/src/BpkFlareBar-test.js +59 -0
- package/bpk-component-flare/src/BpkFlareBar.js +57 -55
- package/bpk-component-flare/src/__generated__/js/corner-radius.js +33 -5
- package/bpk-component-flare/src/__generated__/js/pointer.js +33 -5
- package/bpk-component-flare/src/accessibility-test.js +54 -0
- package/bpk-component-flare/src/{bpk-content-bubble.module.css → bpk-content-bubble.css} +0 -0
- package/bpk-component-flare/src/{bpk-flare-bar.module.css → bpk-flare-bar.css} +0 -0
- package/bpk-component-flare/tasks/svg2react.js +73 -0
- package/bpk-component-floating-notification/index.js +21 -10
- package/bpk-component-floating-notification/src/BpkFloatingNotification-test.js +113 -0
- package/bpk-component-floating-notification/src/{BpkFloatingNotification.module.css → BpkFloatingNotification.css} +0 -0
- package/bpk-component-floating-notification/src/BpkFloatingNotification.js +90 -119
- package/bpk-component-floating-notification/src/accessibility-test.js +78 -0
- package/bpk-component-form-validation/index.js +21 -6
- package/bpk-component-form-validation/src/BpkFormValidation-test.js +47 -0
- package/bpk-component-form-validation/src/{BpkFormValidation.module.css → BpkFormValidation.css} +0 -0
- package/bpk-component-form-validation/src/BpkFormValidation.js +67 -75
- package/bpk-component-form-validation/src/accessibility-test.js +41 -0
- package/bpk-component-form-validation/src/themeAttributes-test.js +28 -0
- package/bpk-component-form-validation/src/themeAttributes.js +9 -2
- package/bpk-component-graphic-promotion/index.js +21 -10
- package/bpk-component-graphic-promotion/src/BpkGraphicPromo-test.js +132 -0
- package/bpk-component-graphic-promotion/src/{BpkGraphicPromo.module.css → BpkGraphicPromo.css} +0 -0
- package/bpk-component-graphic-promotion/src/BpkGraphicPromo.js +103 -132
- package/bpk-component-graphic-promotion/src/accessibility-test.js +139 -0
- package/bpk-component-graphic-promotion/src/{custom-breakpoints.module.css → custom-breakpoints.css} +0 -0
- package/bpk-component-grid/index.js +21 -8
- package/bpk-component-grid/src/BpkGridColumn-test.js +168 -0
- package/bpk-component-grid/src/{BpkGridColumn.module.css → BpkGridColumn.css} +0 -0
- package/bpk-component-grid/src/BpkGridColumn.js +60 -66
- package/bpk-component-grid/src/BpkGridContainer-test.js +68 -0
- package/bpk-component-grid/src/{BpkGridContainer.module.css → BpkGridContainer.css} +0 -0
- package/bpk-component-grid/src/BpkGridContainer.js +48 -41
- package/bpk-component-grid/src/BpkGridRow-test.js +52 -0
- package/bpk-component-grid/src/{BpkGridRow.module.css → BpkGridRow.css} +0 -0
- package/bpk-component-grid/src/BpkGridRow.js +45 -40
- package/bpk-component-grid/src/accessibility-test.js +48 -0
- package/bpk-component-grid-toggle/index.js +13 -4
- package/bpk-component-grid-toggle/src/BpkGridToggle-test.js +43 -0
- package/bpk-component-grid-toggle/src/{BpkGridToggle.module.css → BpkGridToggle.css} +0 -0
- package/bpk-component-grid-toggle/src/BpkGridToggle.js +55 -67
- package/bpk-component-grid-toggle/src/accessibility-test.js +38 -0
- package/bpk-component-horizontal-nav/index.js +35 -15
- package/bpk-component-horizontal-nav/src/BpkHorizontalNav-test.js +84 -0
- package/bpk-component-horizontal-nav/src/{BpkHorizontalNav.module.css → BpkHorizontalNav.css} +0 -0
- package/bpk-component-horizontal-nav/src/BpkHorizontalNav.js +133 -152
- package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem-test.js +101 -0
- package/bpk-component-horizontal-nav/src/{BpkHorizontalNavItem.module.css → BpkHorizontalNavItem.css} +0 -0
- package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.js +87 -110
- package/bpk-component-horizontal-nav/src/accessibility-test.js +40 -0
- package/bpk-component-icon/all.js +5 -6
- package/bpk-component-icon/gulpfile.babel.js +38 -0
- package/bpk-component-icon/gulpfile.js +33 -0
- package/bpk-component-icon/index.js +40 -27
- package/bpk-component-icon/lg/accessibility.js +39 -8
- package/bpk-component-icon/lg/account--add.js +39 -8
- package/bpk-component-icon/lg/account--female.js +39 -8
- package/bpk-component-icon/lg/account--id-card.js +39 -8
- package/bpk-component-icon/lg/account--name.js +39 -8
- package/bpk-component-icon/lg/account--permit.js +39 -8
- package/bpk-component-icon/lg/account-circle.js +39 -8
- package/bpk-component-icon/lg/account.js +39 -8
- package/bpk-component-icon/lg/add-circle.js +39 -8
- package/bpk-component-icon/lg/adult.js +39 -8
- package/bpk-component-icon/lg/aircon.js +39 -8
- package/bpk-component-icon/lg/aircraft.js +41 -8
- package/bpk-component-icon/lg/airline--multiple.js +39 -8
- package/bpk-component-icon/lg/airline.js +39 -8
- package/bpk-component-icon/lg/airports.js +39 -8
- package/bpk-component-icon/lg/alert--active.js +39 -8
- package/bpk-component-icon/lg/alert--add.js +39 -8
- package/bpk-component-icon/lg/alert--expired.js +39 -8
- package/bpk-component-icon/lg/alert--remove.js +39 -8
- package/bpk-component-icon/lg/arrow-down.js +39 -8
- package/bpk-component-icon/lg/arrow-left.js +39 -8
- package/bpk-component-icon/lg/arrow-right.js +39 -8
- package/bpk-component-icon/lg/arrow-up.js +39 -8
- package/bpk-component-icon/lg/award.js +39 -8
- package/bpk-component-icon/lg/baby-carriage.js +39 -8
- package/bpk-component-icon/lg/baggage--add.js +39 -8
- package/bpk-component-icon/lg/baggage--remove.js +39 -8
- package/bpk-component-icon/lg/baggage-cross.js +39 -8
- package/bpk-component-icon/lg/baggage-tick.js +39 -8
- package/bpk-component-icon/lg/baggage.js +39 -8
- package/bpk-component-icon/lg/bar.js +39 -8
- package/bpk-component-icon/lg/beach.js +41 -8
- package/bpk-component-icon/lg/beer.js +39 -8
- package/bpk-component-icon/lg/breakfast-cross.js +39 -8
- package/bpk-component-icon/lg/breakfast-tick.js +39 -8
- package/bpk-component-icon/lg/bus.js +39 -8
- package/bpk-component-icon/lg/business.js +39 -8
- package/bpk-component-icon/lg/cafe.js +39 -8
- package/bpk-component-icon/lg/calendar.js +39 -8
- package/bpk-component-icon/lg/call-back.js +41 -8
- package/bpk-component-icon/lg/camera.js +39 -8
- package/bpk-component-icon/lg/camper-van.js +41 -8
- package/bpk-component-icon/lg/car-door.js +39 -8
- package/bpk-component-icon/lg/car-wash.js +41 -8
- package/bpk-component-icon/lg/cars-flexible.js +39 -8
- package/bpk-component-icon/lg/cars.js +41 -8
- package/bpk-component-icon/lg/center-location.js +39 -8
- package/bpk-component-icon/lg/chart.js +39 -8
- package/bpk-component-icon/lg/chauffeur.js +39 -8
- package/bpk-component-icon/lg/chevron-down.js +39 -8
- package/bpk-component-icon/lg/chevron-left.js +39 -8
- package/bpk-component-icon/lg/chevron-right.js +39 -8
- package/bpk-component-icon/lg/chevron-up.js +39 -8
- package/bpk-component-icon/lg/child-seat.js +39 -8
- package/bpk-component-icon/lg/child.js +39 -8
- package/bpk-component-icon/lg/city-center.js +39 -8
- package/bpk-component-icon/lg/city.js +39 -8
- package/bpk-component-icon/lg/clean-policy.js +39 -8
- package/bpk-component-icon/lg/clean.js +43 -8
- package/bpk-component-icon/lg/cleaning-medical.js +39 -8
- package/bpk-component-icon/lg/cloakroom.js +43 -8
- package/bpk-component-icon/lg/close-circle.js +39 -8
- package/bpk-component-icon/lg/close.js +39 -8
- package/bpk-component-icon/lg/collapse.js +39 -8
- package/bpk-component-icon/lg/content--copy.js +41 -8
- package/bpk-component-icon/lg/content--event.js +39 -8
- package/bpk-component-icon/lg/content--guides.js +39 -8
- package/bpk-component-icon/lg/currency.js +39 -8
- package/bpk-component-icon/lg/data.js +41 -8
- package/bpk-component-icon/lg/deals.js +39 -8
- package/bpk-component-icon/lg/depart.js +41 -8
- package/bpk-component-icon/lg/device-mid.js +39 -8
- package/bpk-component-icon/lg/device-wide.js +39 -8
- package/bpk-component-icon/lg/direct.js +39 -8
- package/bpk-component-icon/lg/document-csv.js +39 -8
- package/bpk-component-icon/lg/document-pdf.js +39 -8
- package/bpk-component-icon/lg/download.js +41 -8
- package/bpk-component-icon/lg/duration.js +39 -8
- package/bpk-component-icon/lg/eco-leaf.js +39 -8
- package/bpk-component-icon/lg/edit.js +39 -8
- package/bpk-component-icon/lg/education.js +41 -8
- package/bpk-component-icon/lg/electric.js +39 -8
- package/bpk-component-icon/lg/end-call.js +39 -8
- package/bpk-component-icon/lg/estimated.js +39 -8
- package/bpk-component-icon/lg/exclamation-circle.js +39 -8
- package/bpk-component-icon/lg/exclamation.js +39 -8
- package/bpk-component-icon/lg/expand.js +39 -8
- package/bpk-component-icon/lg/explore.js +39 -8
- package/bpk-component-icon/lg/face--blank.js +39 -8
- package/bpk-component-icon/lg/face--happy.js +39 -8
- package/bpk-component-icon/lg/face--sad.js +39 -8
- package/bpk-component-icon/lg/face-id.js +39 -8
- package/bpk-component-icon/lg/face-mask.js +39 -8
- package/bpk-component-icon/lg/family.js +39 -8
- package/bpk-component-icon/lg/fast-track.js +41 -8
- package/bpk-component-icon/lg/fast-train.js +41 -8
- package/bpk-component-icon/lg/filter.js +40 -8
- package/bpk-component-icon/lg/fingerprint.js +39 -8
- package/bpk-component-icon/lg/flag.js +39 -8
- package/bpk-component-icon/lg/flask.js +39 -8
- package/bpk-component-icon/lg/flight-flexible.js +39 -8
- package/bpk-component-icon/lg/flight-landing.js +43 -8
- package/bpk-component-icon/lg/flight-takeoff.js +41 -8
- package/bpk-component-icon/lg/flight.js +41 -8
- package/bpk-component-icon/lg/food.js +39 -8
- package/bpk-component-icon/lg/gears-automatic-circle.js +39 -8
- package/bpk-component-icon/lg/gears-automatic.js +39 -8
- package/bpk-component-icon/lg/gears-manual-circle.js +39 -8
- package/bpk-component-icon/lg/gears-manual.js +39 -8
- package/bpk-component-icon/lg/globe.js +39 -8
- package/bpk-component-icon/lg/grid-layout.js +39 -8
- package/bpk-component-icon/lg/headset.js +39 -8
- package/bpk-component-icon/lg/health-fitness.js +39 -8
- package/bpk-component-icon/lg/heart--outline.js +39 -8
- package/bpk-component-icon/lg/heart.js +39 -8
- package/bpk-component-icon/lg/help-circle.js +39 -8
- package/bpk-component-icon/lg/help.js +39 -8
- package/bpk-component-icon/lg/hide.js +39 -8
- package/bpk-component-icon/lg/hotel-flexible.js +39 -8
- package/bpk-component-icon/lg/hotels--disabled-facilities.js +39 -8
- package/bpk-component-icon/lg/hotels--jacuzzi.js +39 -8
- package/bpk-component-icon/lg/hotels--pets-allowed.js +39 -8
- package/bpk-component-icon/lg/hotels--smoking.js +39 -8
- package/bpk-component-icon/lg/hotels.js +39 -8
- package/bpk-component-icon/lg/infant.js +39 -8
- package/bpk-component-icon/lg/information--language-alert.js +39 -8
- package/bpk-component-icon/lg/information--language-question.js +39 -8
- package/bpk-component-icon/lg/information--language.js +39 -8
- package/bpk-component-icon/lg/information-circle.js +39 -8
- package/bpk-component-icon/lg/information.js +39 -8
- package/bpk-component-icon/lg/insurance.js +39 -8
- package/bpk-component-icon/lg/key.js +39 -8
- package/bpk-component-icon/lg/keypad.js +39 -8
- package/bpk-component-icon/lg/landmark.js +39 -8
- package/bpk-component-icon/lg/language.js +39 -8
- package/bpk-component-icon/lg/legroom--extra.js +41 -8
- package/bpk-component-icon/lg/legroom--normal.js +41 -8
- package/bpk-component-icon/lg/legroom--reduced.js +41 -8
- package/bpk-component-icon/lg/leisure.js +39 -8
- package/bpk-component-icon/lg/lightning.js +39 -8
- package/bpk-component-icon/lg/list.js +39 -8
- package/bpk-component-icon/lg/location.js +39 -8
- package/bpk-component-icon/lg/lock.js +39 -8
- package/bpk-component-icon/lg/logout.js +41 -8
- package/bpk-component-icon/lg/long-arrow-down.js +39 -8
- package/bpk-component-icon/lg/long-arrow-left.js +39 -8
- package/bpk-component-icon/lg/long-arrow-right.js +39 -8
- package/bpk-component-icon/lg/long-arrow-up.js +39 -8
- package/bpk-component-icon/lg/lounge.js +41 -8
- package/bpk-component-icon/lg/luggageall.js +39 -8
- package/bpk-component-icon/lg/mail.js +41 -8
- package/bpk-component-icon/lg/map.js +39 -8
- package/bpk-component-icon/lg/meal.js +39 -8
- package/bpk-component-icon/lg/media.js +39 -8
- package/bpk-component-icon/lg/menu--horizontal.js +39 -8
- package/bpk-component-icon/lg/menu--vertical.js +39 -8
- package/bpk-component-icon/lg/menu.js +39 -8
- package/bpk-component-icon/lg/mileage.js +41 -8
- package/bpk-component-icon/lg/minus.js +39 -8
- package/bpk-component-icon/lg/mobile.js +39 -8
- package/bpk-component-icon/lg/money.js +39 -8
- package/bpk-component-icon/lg/multiple-bookings.js +39 -8
- package/bpk-component-icon/lg/music.js +39 -8
- package/bpk-component-icon/lg/mute.js +39 -8
- package/bpk-component-icon/lg/native-android--back.js +39 -8
- package/bpk-component-icon/lg/native-android--close.js +39 -8
- package/bpk-component-icon/lg/native-android--forward.js +39 -8
- package/bpk-component-icon/lg/native-ios-close.js +39 -8
- package/bpk-component-icon/lg/navigation.js +39 -8
- package/bpk-component-icon/lg/new-window.js +41 -8
- package/bpk-component-icon/lg/news.js +39 -8
- package/bpk-component-icon/lg/night.js +39 -8
- package/bpk-component-icon/lg/not-allowed.js +39 -8
- package/bpk-component-icon/lg/onsen.js +39 -8
- package/bpk-component-icon/lg/paid.js +39 -8
- package/bpk-component-icon/lg/paperclip.js +39 -8
- package/bpk-component-icon/lg/parking.js +39 -8
- package/bpk-component-icon/lg/passport.js +39 -8
- package/bpk-component-icon/lg/pause.js +39 -8
- package/bpk-component-icon/lg/payment-card.js +39 -8
- package/bpk-component-icon/lg/petrol.js +39 -8
- package/bpk-component-icon/lg/phone-call.js +39 -8
- package/bpk-component-icon/lg/picture.js +39 -8
- package/bpk-component-icon/lg/pin.js +39 -8
- package/bpk-component-icon/lg/plane-seat.js +41 -8
- package/bpk-component-icon/lg/play.js +39 -8
- package/bpk-component-icon/lg/plus.js +39 -8
- package/bpk-component-icon/lg/policy.js +39 -8
- package/bpk-component-icon/lg/powerplug.js +39 -8
- package/bpk-component-icon/lg/ppe.js +39 -8
- package/bpk-component-icon/lg/price-alerts.js +39 -8
- package/bpk-component-icon/lg/price-tag.js +39 -8
- package/bpk-component-icon/lg/print.js +39 -8
- package/bpk-component-icon/lg/recent-searches.js +39 -8
- package/bpk-component-icon/lg/redo.js +39 -8
- package/bpk-component-icon/lg/refresh.js +39 -8
- package/bpk-component-icon/lg/return.js +41 -8
- package/bpk-component-icon/lg/room.js +39 -8
- package/bpk-component-icon/lg/scales.js +41 -8
- package/bpk-component-icon/lg/search.js +39 -8
- package/bpk-component-icon/lg/self-service.js +39 -8
- package/bpk-component-icon/lg/send-message.js +39 -8
- package/bpk-component-icon/lg/services.js +39 -8
- package/bpk-component-icon/lg/settings.js +39 -8
- package/bpk-component-icon/lg/share--android.js +39 -8
- package/bpk-component-icon/lg/share--ios.js +41 -8
- package/bpk-component-icon/lg/share.js +39 -8
- package/bpk-component-icon/lg/single-booking.js +39 -8
- package/bpk-component-icon/lg/social-distancing.js +41 -8
- package/bpk-component-icon/lg/social-like.js +39 -8
- package/bpk-component-icon/lg/sort-down.js +39 -8
- package/bpk-component-icon/lg/sort-up.js +39 -8
- package/bpk-component-icon/lg/sort.js +39 -8
- package/bpk-component-icon/lg/speaker.js +41 -8
- package/bpk-component-icon/lg/star-half.js +39 -8
- package/bpk-component-icon/lg/star-outline.js +39 -8
- package/bpk-component-icon/lg/star.js +39 -8
- package/bpk-component-icon/lg/stops.js +39 -8
- package/bpk-component-icon/lg/swap--horizontal.js +39 -8
- package/bpk-component-icon/lg/swap--vertical.js +39 -8
- package/bpk-component-icon/lg/swap.js +39 -8
- package/bpk-component-icon/lg/taxi.js +41 -8
- package/bpk-component-icon/lg/thumbs-down.js +39 -8
- package/bpk-component-icon/lg/thumbs-up.js +39 -8
- package/bpk-component-icon/lg/tick-circle.js +39 -8
- package/bpk-component-icon/lg/tick.js +39 -8
- package/bpk-component-icon/lg/ticket-flexible.js +39 -8
- package/bpk-component-icon/lg/ticket.js +39 -8
- package/bpk-component-icon/lg/time.js +39 -8
- package/bpk-component-icon/lg/toilets.js +39 -8
- package/bpk-component-icon/lg/train.js +39 -8
- package/bpk-component-icon/lg/transmission-automatic.js +39 -8
- package/bpk-component-icon/lg/transmission-manual.js +39 -8
- package/bpk-component-icon/lg/trash.js +39 -8
- package/bpk-component-icon/lg/trend--down.js +39 -8
- package/bpk-component-icon/lg/trend--steady.js +39 -8
- package/bpk-component-icon/lg/trend--will-rise.js +39 -8
- package/bpk-component-icon/lg/trend.js +39 -8
- package/bpk-component-icon/lg/trips.js +39 -8
- package/bpk-component-icon/lg/undo.js +39 -8
- package/bpk-component-icon/lg/unlock.js +39 -8
- package/bpk-component-icon/lg/unmute.js +41 -8
- package/bpk-component-icon/lg/upgrade.js +39 -8
- package/bpk-component-icon/lg/use-location.js +39 -8
- package/bpk-component-icon/lg/view.js +39 -8
- package/bpk-component-icon/lg/virus.js +39 -8
- package/bpk-component-icon/lg/wallet.js +41 -8
- package/bpk-component-icon/lg/weather--clear.js +39 -8
- package/bpk-component-icon/lg/weather--cloudy.js +41 -8
- package/bpk-component-icon/lg/weather--fog.js +39 -8
- package/bpk-component-icon/lg/weather--partly-cloudy.js +41 -8
- package/bpk-component-icon/lg/weather--rain.js +43 -8
- package/bpk-component-icon/lg/weather--snow.js +39 -8
- package/bpk-component-icon/lg/weather--thunderstorm.js +43 -8
- package/bpk-component-icon/lg/weather--tornado.js +39 -8
- package/bpk-component-icon/lg/weather--wind.js +39 -8
- package/bpk-component-icon/lg/weather.js +39 -8
- package/bpk-component-icon/lg/wifi.js +39 -8
- package/bpk-component-icon/lg/window--reduce.js +41 -8
- package/bpk-component-icon/lg/window.js +39 -8
- package/bpk-component-icon/lg/world--amer.js +39 -8
- package/bpk-component-icon/lg/world--apac.js +39 -8
- package/bpk-component-icon/lg/world--emea.js +41 -8
- package/bpk-component-icon/sm/accessibility.js +40 -8
- package/bpk-component-icon/sm/account--add.js +40 -8
- package/bpk-component-icon/sm/account--female.js +40 -8
- package/bpk-component-icon/sm/account--id-card.js +40 -8
- package/bpk-component-icon/sm/account--name.js +40 -8
- package/bpk-component-icon/sm/account--permit.js +40 -8
- package/bpk-component-icon/sm/account-circle.js +40 -8
- package/bpk-component-icon/sm/account.js +40 -8
- package/bpk-component-icon/sm/add-circle.js +40 -8
- package/bpk-component-icon/sm/adult.js +40 -8
- package/bpk-component-icon/sm/aircon.js +40 -8
- package/bpk-component-icon/sm/aircraft.js +42 -8
- package/bpk-component-icon/sm/airline--multiple.js +40 -8
- package/bpk-component-icon/sm/airline.js +40 -8
- package/bpk-component-icon/sm/airports.js +40 -8
- package/bpk-component-icon/sm/alert--active.js +40 -8
- package/bpk-component-icon/sm/alert--add.js +40 -8
- package/bpk-component-icon/sm/alert--expired.js +40 -8
- package/bpk-component-icon/sm/alert--remove.js +40 -8
- package/bpk-component-icon/sm/arrow-down.js +40 -8
- package/bpk-component-icon/sm/arrow-left.js +40 -8
- package/bpk-component-icon/sm/arrow-right.js +40 -8
- package/bpk-component-icon/sm/arrow-up.js +40 -8
- package/bpk-component-icon/sm/award.js +40 -8
- package/bpk-component-icon/sm/baby-carriage.js +40 -8
- package/bpk-component-icon/sm/baggage--add.js +40 -8
- package/bpk-component-icon/sm/baggage--remove.js +40 -8
- package/bpk-component-icon/sm/baggage-cross.js +40 -8
- package/bpk-component-icon/sm/baggage-tick.js +40 -8
- package/bpk-component-icon/sm/baggage.js +40 -8
- package/bpk-component-icon/sm/bar.js +40 -8
- package/bpk-component-icon/sm/beach.js +42 -8
- package/bpk-component-icon/sm/beer.js +40 -8
- package/bpk-component-icon/sm/breakfast-cross.js +40 -8
- package/bpk-component-icon/sm/breakfast-tick.js +40 -8
- package/bpk-component-icon/sm/bus.js +42 -8
- package/bpk-component-icon/sm/business.js +40 -8
- package/bpk-component-icon/sm/cafe.js +40 -8
- package/bpk-component-icon/sm/calendar.js +40 -8
- package/bpk-component-icon/sm/call-back.js +42 -8
- package/bpk-component-icon/sm/camera.js +40 -8
- package/bpk-component-icon/sm/camper-van.js +42 -8
- package/bpk-component-icon/sm/car-door.js +40 -8
- package/bpk-component-icon/sm/car-wash.js +42 -8
- package/bpk-component-icon/sm/cars-flexible.js +40 -8
- package/bpk-component-icon/sm/cars.js +42 -8
- package/bpk-component-icon/sm/chart.js +40 -8
- package/bpk-component-icon/sm/chauffeur.js +42 -8
- package/bpk-component-icon/sm/chevron-down.js +40 -8
- package/bpk-component-icon/sm/chevron-left.js +40 -8
- package/bpk-component-icon/sm/chevron-right.js +40 -8
- package/bpk-component-icon/sm/chevron-up.js +40 -8
- package/bpk-component-icon/sm/child-seat.js +40 -8
- package/bpk-component-icon/sm/child.js +40 -8
- package/bpk-component-icon/sm/city-center.js +40 -8
- package/bpk-component-icon/sm/city.js +40 -8
- package/bpk-component-icon/sm/clean-policy.js +40 -8
- package/bpk-component-icon/sm/clean.js +42 -8
- package/bpk-component-icon/sm/cleaning-medical.js +40 -8
- package/bpk-component-icon/sm/cloakroom.js +40 -8
- package/bpk-component-icon/sm/close-circle.js +40 -8
- package/bpk-component-icon/sm/close.js +40 -8
- package/bpk-component-icon/sm/collapse.js +40 -8
- package/bpk-component-icon/sm/content--copy.js +42 -8
- package/bpk-component-icon/sm/content--event.js +40 -8
- package/bpk-component-icon/sm/content--guides.js +40 -8
- package/bpk-component-icon/sm/currency.js +40 -8
- package/bpk-component-icon/sm/data.js +42 -8
- package/bpk-component-icon/sm/deals.js +40 -8
- package/bpk-component-icon/sm/depart.js +44 -8
- package/bpk-component-icon/sm/device-mid.js +40 -8
- package/bpk-component-icon/sm/device-wide.js +40 -8
- package/bpk-component-icon/sm/direct.js +42 -8
- package/bpk-component-icon/sm/document-csv.js +40 -8
- package/bpk-component-icon/sm/document-pdf.js +40 -8
- package/bpk-component-icon/sm/download.js +42 -8
- package/bpk-component-icon/sm/duration.js +40 -8
- package/bpk-component-icon/sm/eco-leaf.js +40 -8
- package/bpk-component-icon/sm/edit.js +40 -8
- package/bpk-component-icon/sm/education.js +42 -8
- package/bpk-component-icon/sm/electric.js +40 -8
- package/bpk-component-icon/sm/end-call.js +40 -8
- package/bpk-component-icon/sm/estimated.js +40 -8
- package/bpk-component-icon/sm/exclamation-circle.js +40 -8
- package/bpk-component-icon/sm/exclamation.js +40 -8
- package/bpk-component-icon/sm/expand.js +40 -8
- package/bpk-component-icon/sm/explore.js +40 -8
- package/bpk-component-icon/sm/face--blank.js +40 -8
- package/bpk-component-icon/sm/face--happy.js +40 -8
- package/bpk-component-icon/sm/face--sad.js +40 -8
- package/bpk-component-icon/sm/face-mask.js +40 -8
- package/bpk-component-icon/sm/family.js +40 -8
- package/bpk-component-icon/sm/fast-track.js +42 -8
- package/bpk-component-icon/sm/fast-train.js +42 -8
- package/bpk-component-icon/sm/filter.js +41 -8
- package/bpk-component-icon/sm/flag.js +40 -8
- package/bpk-component-icon/sm/flask.js +40 -8
- package/bpk-component-icon/sm/flight-flexible.js +40 -8
- package/bpk-component-icon/sm/flight-landing.js +44 -8
- package/bpk-component-icon/sm/flight-takeoff.js +42 -8
- package/bpk-component-icon/sm/flight.js +42 -8
- package/bpk-component-icon/sm/food.js +40 -8
- package/bpk-component-icon/sm/gears-automatic-circle.js +40 -8
- package/bpk-component-icon/sm/gears-automatic.js +40 -8
- package/bpk-component-icon/sm/gears-manual-circle.js +40 -8
- package/bpk-component-icon/sm/gears-manual.js +40 -8
- package/bpk-component-icon/sm/globe.js +40 -8
- package/bpk-component-icon/sm/grid-layout.js +40 -8
- package/bpk-component-icon/sm/headset.js +40 -8
- package/bpk-component-icon/sm/health-fitness.js +40 -8
- package/bpk-component-icon/sm/heart--outline.js +40 -8
- package/bpk-component-icon/sm/heart.js +40 -8
- package/bpk-component-icon/sm/help-circle.js +40 -8
- package/bpk-component-icon/sm/help.js +40 -8
- package/bpk-component-icon/sm/hide.js +40 -8
- package/bpk-component-icon/sm/hotel-flexible.js +40 -8
- package/bpk-component-icon/sm/hotels--disabled-facilities.js +40 -8
- package/bpk-component-icon/sm/hotels--jacuzzi.js +42 -8
- package/bpk-component-icon/sm/hotels--pets-allowed.js +40 -8
- package/bpk-component-icon/sm/hotels--smoking.js +40 -8
- package/bpk-component-icon/sm/hotels.js +40 -8
- package/bpk-component-icon/sm/infant.js +42 -8
- package/bpk-component-icon/sm/information--language-alert.js +40 -8
- package/bpk-component-icon/sm/information--language-question.js +40 -8
- package/bpk-component-icon/sm/information--language.js +40 -8
- package/bpk-component-icon/sm/information-circle.js +40 -8
- package/bpk-component-icon/sm/information.js +40 -8
- package/bpk-component-icon/sm/insurance.js +40 -8
- package/bpk-component-icon/sm/key.js +40 -8
- package/bpk-component-icon/sm/keypad.js +40 -8
- package/bpk-component-icon/sm/landmark.js +40 -8
- package/bpk-component-icon/sm/language.js +40 -8
- package/bpk-component-icon/sm/legroom--extra.js +42 -8
- package/bpk-component-icon/sm/legroom--normal.js +42 -8
- package/bpk-component-icon/sm/legroom--reduced.js +42 -8
- package/bpk-component-icon/sm/leisure.js +40 -8
- package/bpk-component-icon/sm/lightning.js +40 -8
- package/bpk-component-icon/sm/list.js +40 -8
- package/bpk-component-icon/sm/location.js +40 -8
- package/bpk-component-icon/sm/lock.js +40 -8
- package/bpk-component-icon/sm/logout.js +42 -8
- package/bpk-component-icon/sm/long-arrow-down.js +41 -8
- package/bpk-component-icon/sm/long-arrow-left.js +41 -8
- package/bpk-component-icon/sm/long-arrow-right.js +41 -8
- package/bpk-component-icon/sm/long-arrow-up.js +41 -8
- package/bpk-component-icon/sm/lounge.js +40 -8
- package/bpk-component-icon/sm/luggageall.js +40 -8
- package/bpk-component-icon/sm/mail.js +42 -8
- package/bpk-component-icon/sm/map.js +40 -8
- package/bpk-component-icon/sm/meal.js +40 -8
- package/bpk-component-icon/sm/media.js +40 -8
- package/bpk-component-icon/sm/menu--horizontal.js +40 -8
- package/bpk-component-icon/sm/menu--vertical.js +40 -8
- package/bpk-component-icon/sm/menu.js +40 -8
- package/bpk-component-icon/sm/mileage.js +42 -8
- package/bpk-component-icon/sm/minus.js +40 -8
- package/bpk-component-icon/sm/mobile.js +40 -8
- package/bpk-component-icon/sm/money.js +40 -8
- package/bpk-component-icon/sm/multiple-bookings.js +40 -8
- package/bpk-component-icon/sm/music.js +40 -8
- package/bpk-component-icon/sm/mute.js +40 -8
- package/bpk-component-icon/sm/native-android--back.js +40 -8
- package/bpk-component-icon/sm/native-android--close.js +40 -8
- package/bpk-component-icon/sm/native-android--forward.js +40 -8
- package/bpk-component-icon/sm/native-ios-close.js +40 -8
- package/bpk-component-icon/sm/navigation.js +40 -8
- package/bpk-component-icon/sm/new-window.js +46 -8
- package/bpk-component-icon/sm/news.js +40 -8
- package/bpk-component-icon/sm/night.js +40 -8
- package/bpk-component-icon/sm/not-allowed.js +40 -8
- package/bpk-component-icon/sm/onsen.js +42 -8
- package/bpk-component-icon/sm/paid.js +40 -8
- package/bpk-component-icon/sm/paperclip.js +40 -8
- package/bpk-component-icon/sm/parking.js +40 -8
- package/bpk-component-icon/sm/passport.js +40 -8
- package/bpk-component-icon/sm/pause.js +40 -8
- package/bpk-component-icon/sm/payment-card.js +40 -8
- package/bpk-component-icon/sm/petrol.js +40 -8
- package/bpk-component-icon/sm/phone-call.js +40 -8
- package/bpk-component-icon/sm/picture.js +40 -8
- package/bpk-component-icon/sm/pin.js +40 -8
- package/bpk-component-icon/sm/plane-seat.js +42 -8
- package/bpk-component-icon/sm/play.js +40 -8
- package/bpk-component-icon/sm/plus.js +40 -8
- package/bpk-component-icon/sm/policy.js +40 -8
- package/bpk-component-icon/sm/powerplug.js +40 -8
- package/bpk-component-icon/sm/ppe.js +40 -8
- package/bpk-component-icon/sm/price-alerts.js +40 -8
- package/bpk-component-icon/sm/price-tag.js +40 -8
- package/bpk-component-icon/sm/print.js +40 -8
- package/bpk-component-icon/sm/recent-searches.js +40 -8
- package/bpk-component-icon/sm/redo.js +40 -8
- package/bpk-component-icon/sm/refresh.js +40 -8
- package/bpk-component-icon/sm/return.js +44 -8
- package/bpk-component-icon/sm/room.js +40 -8
- package/bpk-component-icon/sm/scales.js +40 -8
- package/bpk-component-icon/sm/search.js +40 -8
- package/bpk-component-icon/sm/self-service.js +40 -8
- package/bpk-component-icon/sm/send-message.js +40 -8
- package/bpk-component-icon/sm/services.js +40 -8
- package/bpk-component-icon/sm/settings.js +40 -8
- package/bpk-component-icon/sm/share--android.js +40 -8
- package/bpk-component-icon/sm/share--ios.js +44 -8
- package/bpk-component-icon/sm/share.js +40 -8
- package/bpk-component-icon/sm/single-booking.js +40 -8
- package/bpk-component-icon/sm/social-distancing.js +42 -8
- package/bpk-component-icon/sm/social-like.js +40 -8
- package/bpk-component-icon/sm/sort-down.js +40 -8
- package/bpk-component-icon/sm/sort-up.js +40 -8
- package/bpk-component-icon/sm/sort.js +40 -8
- package/bpk-component-icon/sm/speaker.js +40 -8
- package/bpk-component-icon/sm/star-half.js +40 -8
- package/bpk-component-icon/sm/star-outline.js +40 -8
- package/bpk-component-icon/sm/star.js +40 -8
- package/bpk-component-icon/sm/stops.js +40 -8
- package/bpk-component-icon/sm/swap--horizontal.js +41 -8
- package/bpk-component-icon/sm/swap--vertical.js +40 -8
- package/bpk-component-icon/sm/swap.js +41 -8
- package/bpk-component-icon/sm/taxi.js +42 -8
- package/bpk-component-icon/sm/thumbs-down.js +40 -8
- package/bpk-component-icon/sm/thumbs-up.js +40 -8
- package/bpk-component-icon/sm/tick-circle.js +40 -8
- package/bpk-component-icon/sm/tick.js +40 -8
- package/bpk-component-icon/sm/ticket-flexible.js +40 -8
- package/bpk-component-icon/sm/ticket.js +40 -8
- package/bpk-component-icon/sm/time.js +40 -8
- package/bpk-component-icon/sm/toilets.js +40 -8
- package/bpk-component-icon/sm/train.js +40 -8
- package/bpk-component-icon/sm/transmission-automatic.js +40 -8
- package/bpk-component-icon/sm/transmission-manual.js +40 -8
- package/bpk-component-icon/sm/trash.js +40 -8
- package/bpk-component-icon/sm/trend--down.js +40 -8
- package/bpk-component-icon/sm/trend--steady.js +41 -8
- package/bpk-component-icon/sm/trend--will-rise.js +40 -8
- package/bpk-component-icon/sm/trend.js +40 -8
- package/bpk-component-icon/sm/trips.js +40 -8
- package/bpk-component-icon/sm/undo.js +40 -8
- package/bpk-component-icon/sm/unlock.js +40 -8
- package/bpk-component-icon/sm/unmute.js +42 -8
- package/bpk-component-icon/sm/upgrade.js +40 -8
- package/bpk-component-icon/sm/use-location.js +40 -8
- package/bpk-component-icon/sm/view.js +40 -8
- package/bpk-component-icon/sm/virus.js +40 -8
- package/bpk-component-icon/sm/wallet.js +40 -8
- package/bpk-component-icon/sm/weather--clear.js +40 -8
- package/bpk-component-icon/sm/weather--cloudy.js +42 -8
- package/bpk-component-icon/sm/weather--fog.js +40 -8
- package/bpk-component-icon/sm/weather--partly-cloudy.js +40 -8
- package/bpk-component-icon/sm/weather--rain.js +42 -8
- package/bpk-component-icon/sm/weather--snow.js +40 -8
- package/bpk-component-icon/sm/weather--thunderstorm.js +44 -8
- package/bpk-component-icon/sm/weather--tornado.js +40 -8
- package/bpk-component-icon/sm/weather--wind.js +42 -8
- package/bpk-component-icon/sm/weather.js +40 -8
- package/bpk-component-icon/sm/wifi.js +40 -8
- package/bpk-component-icon/sm/window--reduce.js +42 -8
- package/bpk-component-icon/sm/window.js +40 -8
- package/bpk-component-icon/sm/world--amer.js +40 -8
- package/bpk-component-icon/sm/world--apac.js +40 -8
- package/bpk-component-icon/sm/world--emea.js +40 -8
- package/bpk-component-icon/src/{BpkIcon.module.css → BpkIcon.css} +0 -0
- package/bpk-component-icon/src/classNameModifierHOCFactory-test.js +88 -0
- package/bpk-component-icon/src/classNameModifierHOCFactory.js +52 -52
- package/bpk-component-icon/src/withAlignment-test.js +69 -0
- package/bpk-component-icon/src/withAlignment.js +26 -25
- package/bpk-component-icon/src/withDescription-test.js +39 -0
- package/bpk-component-icon/src/{withDescription.module.css → withDescription.css} +0 -0
- package/bpk-component-icon/src/withDescription.js +22 -24
- package/bpk-component-icon/src/withRtlSupport.js +18 -9
- package/bpk-component-image/index.js +45 -20
- package/bpk-component-image/src/BpkBackgroundImage-test.js +148 -0
- package/bpk-component-image/src/{BpkBackgroundImage.module.css → BpkBackgroundImage.css} +0 -0
- package/bpk-component-image/src/BpkBackgroundImage.js +143 -164
- package/bpk-component-image/src/BpkImage-test.js +167 -0
- package/bpk-component-image/src/{BpkImage.module.css → BpkImage.css} +0 -0
- package/bpk-component-image/src/BpkImage.js +176 -200
- package/bpk-component-image/src/BpkImageBorderRadiusStyles.js +13 -6
- package/bpk-component-image/src/accessibility-test.js +68 -0
- package/bpk-component-image/src/customPropTypes-test.js +54 -0
- package/bpk-component-image/src/customPropTypes.js +11 -11
- package/bpk-component-image/src/withLazyLoading-test.js +92 -0
- package/bpk-component-image/src/withLazyLoading.js +143 -160
- package/bpk-component-image/src/withLoadingBehavior.js +30 -50
- package/bpk-component-infinite-scroll/index.js +31 -12
- package/bpk-component-infinite-scroll/src/DataSource-test.js +93 -0
- package/bpk-component-infinite-scroll/src/DataSource.js +41 -22
- package/bpk-component-infinite-scroll/src/accessibility-test.js +60 -0
- package/bpk-component-infinite-scroll/src/intersection-observer.js +9 -3
- package/bpk-component-infinite-scroll/src/withInfiniteScroll-test.flow.js +71 -81
- package/bpk-component-infinite-scroll/src/withInfiniteScroll-test.js +373 -0
- package/bpk-component-infinite-scroll/src/{withInfiniteScroll.module.css → withInfiniteScroll.css} +0 -0
- package/bpk-component-infinite-scroll/src/withInfiniteScroll.js +176 -202
- package/bpk-component-input/index.js +60 -43
- package/bpk-component-input/src/BpkClearButton-test.js +48 -0
- package/bpk-component-input/src/{BpkClearButton.module.css → BpkClearButton.css} +0 -0
- package/bpk-component-input/src/BpkClearButton.js +57 -58
- package/bpk-component-input/src/BpkInput-test.js +270 -0
- package/bpk-component-input/src/{BpkInput.module.css → BpkInput.css} +0 -0
- package/bpk-component-input/src/BpkInput.js +107 -111
- package/bpk-component-input/src/accessibility-test.js +45 -0
- package/bpk-component-input/src/common-types-test.js +100 -0
- package/bpk-component-input/src/common-types.js +47 -74
- package/bpk-component-input/src/themeAttributes-test.js +28 -0
- package/bpk-component-input/src/themeAttributes.js +9 -2
- package/bpk-component-input/src/withOpenEvents-test.js +161 -0
- package/bpk-component-input/src/withOpenEvents.js +93 -111
- package/bpk-component-label/index.js +13 -7
- package/bpk-component-label/src/BpkLabel-test.js +85 -0
- package/bpk-component-label/src/{BpkLabel.module.css → BpkLabel.css} +0 -0
- package/bpk-component-label/src/BpkLabel.js +55 -54
- package/bpk-component-label/src/accessibility-test.js +38 -0
- package/bpk-component-link/index.js +39 -11
- package/bpk-component-link/src/BpkButtonLink-test.js +82 -0
- package/bpk-component-link/src/BpkButtonLink.js +59 -56
- package/bpk-component-link/src/BpkLink-test.js +111 -0
- package/bpk-component-link/src/{BpkLink.module.css → BpkLink.css} +0 -0
- package/bpk-component-link/src/BpkLink.js +68 -72
- package/bpk-component-link/src/accessibility-test.js +53 -0
- package/bpk-component-link/src/themeAttributes.js +11 -18
- package/bpk-component-list/index.js +20 -21
- package/bpk-component-list/src/BpkList-test.js +51 -0
- package/bpk-component-list/src/{BpkList.module.css → BpkList.css} +0 -0
- package/bpk-component-list/src/BpkList.js +36 -34
- package/bpk-component-list/src/BpkListItem-test.js +43 -0
- package/bpk-component-list/src/BpkListItem.js +31 -29
- package/bpk-component-list/src/accessibility-test.js +40 -0
- package/bpk-component-loading-button/index.js +21 -7
- package/bpk-component-loading-button/src/BpkLoadingButton-test.js +317 -0
- package/bpk-component-loading-button/src/{BpkLoadingButton.module.css → BpkLoadingButton.css} +0 -0
- package/bpk-component-loading-button/src/BpkLoadingButton.js +93 -130
- package/bpk-component-loading-button/src/accessibility-test.js +38 -0
- package/bpk-component-map/index.js +69 -28
- package/bpk-component-map/src/BpkBasicMapMarker-test.js +46 -0
- package/bpk-component-map/src/BpkBasicMapMarker.js +41 -45
- package/bpk-component-map/src/BpkIconMarker-test.js +103 -0
- package/bpk-component-map/src/{BpkIconMarker.module.css → BpkIconMarker.css} +0 -0
- package/bpk-component-map/src/BpkIconMarker.js +64 -85
- package/bpk-component-map/src/BpkIconMarkerBackground-test.js +59 -0
- package/bpk-component-map/src/{BpkIconMarkerBackground.module.css → BpkIconMarkerBackground.css} +0 -0
- package/bpk-component-map/src/BpkIconMarkerBackground.js +51 -58
- package/bpk-component-map/src/{BpkMap.module.css → BpkMap.css} +0 -0
- package/bpk-component-map/src/BpkMap.js +103 -140
- package/bpk-component-map/src/BpkOverlayView.js +44 -43
- package/bpk-component-map/src/BpkPriceMarker-test.js +125 -0
- package/bpk-component-map/src/{BpkPriceMarker.module.css → BpkPriceMarker.css} +0 -0
- package/bpk-component-map/src/BpkPriceMarker.js +71 -98
- package/bpk-component-map/src/{DefaultLoadingElement.module.css → DefaultLoadingElement.css} +0 -0
- package/bpk-component-map/src/DefaultLoadingElement.js +25 -15
- package/bpk-component-map/src/common-types.js +16 -13
- package/bpk-component-map/src/themeAttributes-test.js +29 -0
- package/bpk-component-map/src/themeAttributes.js +14 -19
- package/bpk-component-map/src/withGoogleMapsScript.js +50 -56
- package/bpk-component-mobile-scroll-container/index.js +13 -6
- package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer-test.js +133 -0
- package/bpk-component-mobile-scroll-container/src/{BpkMobileScrollContainer.module.css → BpkMobileScrollContainer.css} +0 -0
- package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.js +148 -165
- package/bpk-component-mobile-scroll-container/src/accessibility-test.js +38 -0
- package/bpk-component-modal/index.js +37 -10
- package/bpk-component-modal/src/BpkModal-test.js +47 -0
- package/bpk-component-modal/src/{BpkModal.module.css → BpkModal.css} +0 -0
- package/bpk-component-modal/src/BpkModal.js +81 -97
- package/bpk-component-modal/src/BpkModalInner-test.js +173 -0
- package/bpk-component-modal/src/{BpkModalInner.module.css → BpkModalInner.css} +0 -0
- package/bpk-component-modal/src/BpkModalInner.js +94 -135
- package/bpk-component-modal/src/accessibility-test.js +49 -0
- package/bpk-component-modal/src/customPropTypes-test.js +63 -0
- package/bpk-component-modal/src/customPropTypes.js +16 -23
- package/bpk-component-modal/src/themeAttributes-test.js +28 -0
- package/bpk-component-modal/src/themeAttributes.js +11 -6
- package/bpk-component-navigation-bar/index.js +37 -25
- package/bpk-component-navigation-bar/src/BpkNavigationBar-test.js +112 -0
- package/bpk-component-navigation-bar/src/{BpkNavigationBar.module.css → BpkNavigationBar.css} +0 -0
- package/bpk-component-navigation-bar/src/BpkNavigationBar.js +65 -81
- package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink-test.js +38 -0
- package/bpk-component-navigation-bar/src/{BpkNavigationBarButtonLink.module.css → BpkNavigationBarButtonLink.css} +0 -0
- package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.js +49 -55
- package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton-test.js +42 -0
- package/bpk-component-navigation-bar/src/{BpkNavigationBarIconButton.module.css → BpkNavigationBarIconButton.css} +0 -0
- package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.js +51 -52
- package/bpk-component-navigation-bar/src/accessibility-test.js +41 -0
- package/bpk-component-navigation-bar/src/themeAttributes.js +9 -16
- package/bpk-component-navigation-stack/index.js +21 -13
- package/bpk-component-navigation-stack/src/BpkNavigationStack-test.js +66 -0
- package/bpk-component-navigation-stack/src/{BpkNavigationStack.module.css → BpkNavigationStack.css} +0 -0
- package/bpk-component-navigation-stack/src/BpkNavigationStack.js +104 -113
- package/bpk-component-navigation-stack/src/accessibility-test.js +40 -0
- package/bpk-component-navigation-stack/src/withNavigationStackState-test.js +109 -0
- package/bpk-component-navigation-stack/src/withNavigationStackState.js +68 -81
- package/bpk-component-nudger/index.js +29 -9
- package/bpk-component-nudger/src/BpkConfigurableNudger.js +97 -125
- package/bpk-component-nudger/src/BpkNudger-test.js +197 -0
- package/bpk-component-nudger/src/{BpkNudger.module.css → BpkNudger.css} +0 -0
- package/bpk-component-nudger/src/BpkNudger.js +55 -60
- package/bpk-component-nudger/src/accessibility-test.js +55 -0
- package/bpk-component-nudger/src/common-types.js +22 -25
- package/bpk-component-nudger/src/themeAttributes-test.js +28 -0
- package/bpk-component-nudger/src/themeAttributes.js +11 -6
- package/bpk-component-overlay/index.js +27 -11
- package/bpk-component-overlay/src/BpkOverlay-test.js +79 -0
- package/bpk-component-overlay/src/{BpkOverlay.module.css → BpkOverlay.css} +0 -0
- package/bpk-component-overlay/src/BpkOverlay.js +47 -60
- package/bpk-component-overlay/src/accessibility-test.js +38 -0
- package/bpk-component-pagination/index.js +21 -6
- package/bpk-component-pagination/src/BpkPagination-test.js +139 -0
- package/bpk-component-pagination/src/{BpkPagination.module.css → BpkPagination.css} +0 -0
- package/bpk-component-pagination/src/BpkPagination.js +68 -70
- package/bpk-component-pagination/src/BpkPaginationBreak-test.js +43 -0
- package/bpk-component-pagination/src/BpkPaginationBreak.js +22 -12
- package/bpk-component-pagination/src/BpkPaginationList-test.js +68 -0
- package/bpk-component-pagination/src/{BpkPaginationList.module.css → BpkPaginationList.css} +0 -0
- package/bpk-component-pagination/src/BpkPaginationList.js +61 -66
- package/bpk-component-pagination/src/BpkPaginationNudger-test.js +49 -0
- package/bpk-component-pagination/src/{BpkPaginationNudger.module.css → BpkPaginationNudger.css} +0 -0
- package/bpk-component-pagination/src/BpkPaginationNudger.js +55 -51
- package/bpk-component-pagination/src/{BpkPaginationPage.module.css → BpkPaginationPage.css} +0 -0
- package/bpk-component-pagination/src/BpkPaginationPage.js +41 -30
- package/bpk-component-pagination/src/accessibility-test.js +45 -0
- package/bpk-component-pagination/src/themeAttributes-test.js +28 -0
- package/bpk-component-pagination/src/themeAttributes.js +11 -9
- package/bpk-component-panel/index.js +13 -4
- package/bpk-component-panel/src/BpkPanel-test.js +59 -0
- package/bpk-component-panel/src/{BpkPanel.module.css → BpkPanel.css} +0 -0
- package/bpk-component-panel/src/BpkPanel.js +48 -41
- package/bpk-component-panel/src/accessibility-test.js +38 -0
- package/bpk-component-phone-input/index.js +13 -9
- package/bpk-component-phone-input/src/BpkPhoneInput-test.js +148 -0
- package/bpk-component-phone-input/src/{BpkPhoneInput.module.css → BpkPhoneInput.css} +0 -0
- package/bpk-component-phone-input/src/BpkPhoneInput.js +119 -157
- package/bpk-component-phone-input/src/accessibility-test.js +66 -0
- package/bpk-component-popover/index.js +37 -17
- package/bpk-component-popover/src/BpkPopover-test.js +150 -0
- package/bpk-component-popover/src/{BpkPopover.module.css → BpkPopover.css} +0 -0
- package/bpk-component-popover/src/BpkPopover.js +111 -146
- package/bpk-component-popover/src/BpkPopoverPortal-test.js +224 -0
- package/bpk-component-popover/src/BpkPopoverPortal.js +162 -173
- package/bpk-component-popover/src/accessibility-test.js +61 -0
- package/bpk-component-popover/src/constants.js +13 -6
- package/bpk-component-popover/src/keyboardFocusScope.js +26 -15
- package/bpk-component-popover/src/themeAttributes-test.js +28 -0
- package/bpk-component-popover/src/themeAttributes.js +11 -6
- package/bpk-component-price/index.js +27 -7
- package/bpk-component-price/src/BpkPrice-test.js +65 -0
- package/bpk-component-price/src/{BpkPrice.module.css → BpkPrice.css} +0 -0
- package/bpk-component-price/src/BpkPrice.js +76 -100
- package/bpk-component-price/src/accessibility-test.js +42 -0
- package/bpk-component-price/src/common-types.js +13 -8
- package/bpk-component-progress/index.js +21 -8
- package/bpk-component-progress/src/BpkProgress-test.js +139 -0
- package/bpk-component-progress/src/{BpkProgress.module.css → BpkProgress.css} +0 -0
- package/bpk-component-progress/src/BpkProgress.js +123 -114
- package/bpk-component-progress/src/accessibility-test.js +47 -0
- package/bpk-component-progress/src/themeAttributes-test.js +28 -0
- package/bpk-component-progress/src/themeAttributes.js +9 -4
- package/bpk-component-radio/index.js +21 -8
- package/bpk-component-radio/src/BpkRadio-test.js +120 -0
- package/bpk-component-radio/src/{BpkRadio.module.css → BpkRadio.css} +0 -0
- package/bpk-component-radio/src/BpkRadio.js +57 -77
- package/bpk-component-radio/src/accessibility-test.js +41 -0
- package/bpk-component-radio/src/themeAttributes-test.js +28 -0
- package/bpk-component-radio/src/themeAttributes.js +9 -4
- package/bpk-component-rating/index.js +27 -7
- package/bpk-component-rating/src/BpkRating-test.js +219 -0
- package/bpk-component-rating/src/{BpkRating.module.css → BpkRating.css} +0 -0
- package/bpk-component-rating/src/BpkRating.js +100 -128
- package/bpk-component-rating/src/accessibility-test.js +43 -0
- package/bpk-component-rating/src/common-types.js +15 -7
- package/bpk-component-rtl-toggle/index.js +21 -6
- package/bpk-component-rtl-toggle/src/BpkRtlToggle-test.js +43 -0
- package/bpk-component-rtl-toggle/src/BpkRtlToggle.js +54 -65
- package/bpk-component-rtl-toggle/src/accessibility-test.js +38 -0
- package/bpk-component-rtl-toggle/src/updateOnDirectionChange-test.js +48 -0
- package/bpk-component-rtl-toggle/src/updateOnDirectionChange.js +36 -46
- package/bpk-component-rtl-toggle/src/utils.js +12 -6
- package/bpk-component-scrollable-calendar/index.js +45 -17
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendar-test.js +106 -0
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendar.js +17 -18
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarDate-test.js +95 -0
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarDate.js +46 -37
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid-test.js +147 -0
- package/bpk-component-scrollable-calendar/src/{BpkScrollableCalendarGrid.module.css → BpkScrollableCalendarGrid.css} +0 -0
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.js +57 -49
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList-test.js +127 -0
- package/bpk-component-scrollable-calendar/src/{BpkScrollableCalendarGridList.module.css → BpkScrollableCalendarGridList.css} +0 -0
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.js +112 -128
- package/bpk-component-scrollable-calendar/src/accessibility-test.js +76 -0
- package/bpk-component-scrollable-calendar/src/utils.js +13 -5
- package/bpk-component-scrollable-calendar/test-utils.js +211 -244
- package/bpk-component-section-list/index.js +29 -9
- package/bpk-component-section-list/src/BpkSectionList-test.js +51 -0
- package/bpk-component-section-list/src/BpkSectionList.js +27 -32
- package/bpk-component-section-list/src/BpkSectionListItem-test.js +67 -0
- package/bpk-component-section-list/src/{BpkSectionListItem.module.css → BpkSectionListItem.css} +0 -0
- package/bpk-component-section-list/src/BpkSectionListItem.js +71 -85
- package/bpk-component-section-list/src/BpkSectionListSection-test.js +51 -0
- package/bpk-component-section-list/src/{BpkSectionListSection.module.css → BpkSectionListSection.css} +0 -0
- package/bpk-component-section-list/src/BpkSectionListSection.js +49 -56
- package/bpk-component-section-list/src/accessibility-test.js +42 -0
- package/bpk-component-select/index.js +21 -9
- package/bpk-component-select/src/BpkSelect-test.js +270 -0
- package/bpk-component-select/src/{BpkSelect.module.css → BpkSelect.css} +0 -0
- package/bpk-component-select/src/BpkSelect.js +63 -99
- package/bpk-component-select/src/accessibility-test.js +54 -0
- package/bpk-component-select/src/themeAttributes-test.js +28 -0
- package/bpk-component-select/src/themeAttributes.js +9 -2
- package/bpk-component-skip-link/index.js +21 -8
- package/bpk-component-skip-link/src/BpkSkipLink-test.js +58 -0
- package/bpk-component-skip-link/src/{BpkSkipLink.module.css → BpkSkipLink.css} +0 -0
- package/bpk-component-skip-link/src/BpkSkipLink.js +44 -48
- package/bpk-component-skip-link/src/accessibility-test.js +41 -0
- package/bpk-component-skip-link/src/themeAttributes-test.js +28 -0
- package/bpk-component-skip-link/src/themeAttributes.js +9 -2
- package/bpk-component-slider/index.js +21 -6
- package/bpk-component-slider/src/BpkSlider-test.js +107 -0
- package/bpk-component-slider/src/{BpkSlider.module.css → BpkSlider.css} +0 -0
- package/bpk-component-slider/src/BpkSlider.js +52 -48
- package/bpk-component-slider/src/accessibility-test.js +67 -0
- package/bpk-component-slider/src/themeAttributes-test.js +28 -0
- package/bpk-component-slider/src/themeAttributes.js +9 -2
- package/bpk-component-spinner/index.js +44 -30
- package/bpk-component-spinner/src/BpkExtraLargeSpinner-test.js +61 -0
- package/bpk-component-spinner/src/BpkExtraLargeSpinner.js +46 -50
- package/bpk-component-spinner/src/BpkLargeSpinner-test.js +69 -0
- package/bpk-component-spinner/src/BpkLargeSpinner.js +47 -53
- package/bpk-component-spinner/src/BpkSpinner-test.js +69 -0
- package/bpk-component-spinner/src/{BpkSpinner.module.css → BpkSpinner.css} +0 -0
- package/bpk-component-spinner/src/BpkSpinner.js +47 -52
- package/bpk-component-spinner/src/accessibility-test.js +60 -0
- package/bpk-component-spinner/src/spinnerTypes.js +10 -5
- package/bpk-component-spinner/src/themeAttributes-test.js +28 -0
- package/bpk-component-spinner/src/themeAttributes.js +9 -4
- package/bpk-component-split-input/index.js +21 -10
- package/bpk-component-split-input/src/{BpkInputField.module.css → BpkInputField.css} +0 -0
- package/bpk-component-split-input/src/BpkInputField.js +70 -55
- package/bpk-component-split-input/src/BpkSplitInput-test.js +51 -0
- package/bpk-component-split-input/src/{BpkSplitInput.module.css → BpkSplitInput.css} +0 -0
- package/bpk-component-split-input/src/BpkSplitInput.js +243 -219
- package/bpk-component-split-input/src/accessibility-test.js +38 -0
- package/bpk-component-star-rating/index.js +75 -21
- package/bpk-component-star-rating/src/BpkInteractiveStar-test.js +71 -0
- package/bpk-component-star-rating/src/{BpkInteractiveStar.module.css → BpkInteractiveStar.css} +0 -0
- package/bpk-component-star-rating/src/BpkInteractiveStar.js +60 -74
- package/bpk-component-star-rating/src/BpkInteractiveStarRating-test.js +153 -0
- package/bpk-component-star-rating/src/BpkInteractiveStarRating.js +67 -83
- package/bpk-component-star-rating/src/BpkStar-test.js +93 -0
- package/bpk-component-star-rating/src/{BpkStar.module.css → BpkStar.css} +0 -0
- package/bpk-component-star-rating/src/BpkStar.js +85 -88
- package/bpk-component-star-rating/src/BpkStarRating-test.js +131 -0
- package/bpk-component-star-rating/src/{BpkStarRating.module.css → BpkStarRating.css} +0 -0
- package/bpk-component-star-rating/src/BpkStarRating.js +68 -88
- package/bpk-component-star-rating/src/accessibility-test.js +56 -0
- package/bpk-component-star-rating/src/themeAttributes-test.js +28 -0
- package/bpk-component-star-rating/src/themeAttributes.js +9 -4
- package/bpk-component-star-rating/src/withInteractiveStarRatingState-test.js +79 -0
- package/bpk-component-star-rating/src/withInteractiveStarRatingState.js +71 -82
- package/bpk-component-switch/index.js +31 -11
- package/bpk-component-switch/src/BpkSwitch-test.js +78 -0
- package/bpk-component-switch/src/{BpkSwitch.module.css → BpkSwitch.css} +0 -0
- package/bpk-component-switch/src/BpkSwitch.js +53 -64
- package/bpk-component-switch/src/accessibility-test.js +40 -0
- package/bpk-component-switch/src/themeAttributes-test.js +28 -0
- package/bpk-component-switch/src/themeAttributes.js +9 -2
- package/bpk-component-table/index.js +55 -35
- package/bpk-component-table/src/BpkTable-test.js +51 -0
- package/bpk-component-table/src/{BpkTable.module.css → BpkTable.css} +0 -0
- package/bpk-component-table/src/BpkTable.js +43 -50
- package/bpk-component-table/src/BpkTableBody-test.js +52 -0
- package/bpk-component-table/src/BpkTableBody.js +17 -12
- package/bpk-component-table/src/BpkTableCell-test.js +48 -0
- package/bpk-component-table/src/BpkTableCell.js +40 -44
- package/bpk-component-table/src/BpkTableHead-test.js +52 -0
- package/bpk-component-table/src/BpkTableHead.js +17 -12
- package/bpk-component-table/src/BpkTableHeadCell-test.js +60 -0
- package/bpk-component-table/src/BpkTableHeadCell.js +44 -47
- package/bpk-component-table/src/BpkTableRow-test.js +52 -0
- package/bpk-component-table/src/BpkTableRow.js +17 -12
- package/bpk-component-table/src/accessibility-test.js +48 -0
- package/bpk-component-text/index.js +27 -7
- package/bpk-component-text/src/BpkText-test.js +137 -0
- package/bpk-component-text/src/{BpkText.module.css → BpkText.css} +0 -0
- package/bpk-component-text/src/BpkText.js +52 -88
- package/bpk-component-text/src/accessibility-test.js +38 -0
- package/bpk-component-textarea/index.js +21 -8
- package/bpk-component-textarea/src/BpkTextarea-test.js +50 -0
- package/bpk-component-textarea/src/{BpkTextarea.module.css → BpkTextarea.css} +0 -0
- package/bpk-component-textarea/src/BpkTextarea.js +43 -55
- package/bpk-component-textarea/src/accessibility-test.js +44 -0
- package/bpk-component-textarea/src/themeAttributes-test.js +28 -0
- package/bpk-component-textarea/src/themeAttributes.js +9 -4
- package/bpk-component-theme-toggle/index.js +21 -6
- package/{bpk-component-badge/src/BpkBadge.module.scss → bpk-component-theme-toggle/src/BpkThemeToggle-test.js} +18 -38
- package/bpk-component-theme-toggle/src/{BpkThemeToggle.module.css → BpkThemeToggle.css} +0 -0
- package/bpk-component-theme-toggle/src/BpkThemeToggle.js +94 -90
- package/bpk-component-theme-toggle/src/accessibility-test.js +38 -0
- package/bpk-component-theme-toggle/src/theming.js +57 -99
- package/bpk-component-theme-toggle/src/updateOnThemeChange-test.js +61 -0
- package/bpk-component-theme-toggle/src/updateOnThemeChange.js +49 -52
- package/bpk-component-theme-toggle/src/utils.js +10 -3
- package/bpk-component-ticket/index.js +13 -6
- package/bpk-component-ticket/src/BpkTicket-test.js +105 -0
- package/bpk-component-ticket/src/{BpkTicket.module.css → BpkTicket.css} +0 -0
- package/bpk-component-ticket/src/BpkTicket.js +74 -117
- package/bpk-component-ticket/src/accessibility-test.js +40 -0
- package/bpk-component-tooltip/index.js +21 -10
- package/bpk-component-tooltip/src/BpkTooltip-test.js +66 -0
- package/bpk-component-tooltip/src/{BpkTooltip.module.css → BpkTooltip.css} +0 -0
- package/bpk-component-tooltip/src/BpkTooltip.js +76 -94
- package/bpk-component-tooltip/src/BpkTooltipPortal-test.js +72 -0
- package/bpk-component-tooltip/src/BpkTooltipPortal.js +138 -167
- package/bpk-component-tooltip/src/accessibility-test.js +41 -0
- package/bpk-component-tooltip/src/constants.js +17 -8
- package/bpk-react-utils/index.js +106 -42
- package/bpk-react-utils/src/Portal-test.js +630 -0
- package/bpk-react-utils/src/Portal-v1-test.js +367 -0
- package/bpk-react-utils/src/Portal-v1.js +81 -101
- package/bpk-react-utils/src/Portal.js +88 -98
- package/bpk-react-utils/src/TransitionInitialMount-test.js +39 -0
- package/bpk-react-utils/src/TransitionInitialMount.js +38 -36
- package/bpk-react-utils/src/accessibility-test.js +75 -0
- package/bpk-react-utils/src/cssModules-test.js +58 -0
- package/bpk-react-utils/src/cssModules.js +15 -10
- package/bpk-react-utils/src/deprecated.js +19 -19
- package/bpk-react-utils/src/deviceDetection-test.js +81 -0
- package/bpk-react-utils/src/deviceDetection.js +12 -8
- package/bpk-react-utils/src/isRTL-test.js +59 -0
- package/bpk-react-utils/src/isRTL.js +11 -12
- package/bpk-react-utils/src/withDefaultProps-test.js +60 -0
- package/bpk-react-utils/src/withDefaultProps.js +45 -53
- package/bpk-react-utils/src/wrapDisplayName-test.js +36 -0
- package/bpk-react-utils/src/wrapDisplayName.js +9 -2
- package/bpk-scrim-utils/index.js +20 -6
- package/bpk-scrim-utils/src/BpkScrim-test.js +43 -0
- package/bpk-scrim-utils/src/BpkScrim.js +33 -28
- package/bpk-scrim-utils/src/accessibility-test.js +56 -0
- package/bpk-scrim-utils/src/{bpk-scrim-content.module.css → bpk-scrim-content.css} +0 -0
- package/bpk-scrim-utils/src/{bpk-scrim.module.css → bpk-scrim.css} +0 -0
- package/bpk-scrim-utils/src/customPropTypes-test.js +42 -0
- package/bpk-scrim-utils/src/customPropTypes.js +12 -15
- package/bpk-scrim-utils/src/scroll-utils.js +27 -16
- package/bpk-scrim-utils/src/withScrim-test.js +172 -0
- package/bpk-scrim-utils/src/withScrim.js +119 -103
- package/bpk-storybook-utils/index.js +47 -0
- package/bpk-storybook-utils/src/BpkDarkExampleWrapper-test.js +43 -0
- package/bpk-storybook-utils/src/BpkDarkExampleWrapper.css +18 -0
- package/bpk-storybook-utils/src/BpkDarkExampleWrapper.js +46 -0
- package/bpk-storybook-utils/src/BpkStorybookUtils-test.js +36 -0
- package/{bpk-component-image/src/BpkBackgroundImage.module.scss → bpk-storybook-utils/src/BpkStorybookUtils.js} +21 -23
- package/bpk-storybook-utils/src/accessibility-test.js +38 -0
- package/bpk-theming/index.js +13 -4
- package/bpk-theming/src/BpkThemeProvider-test.js +177 -0
- package/bpk-theming/src/BpkThemeProvider.js +82 -63
- package/bpk-theming/src/accessibility-test.js +45 -0
- package/package.json +1 -1
- package/{bpk-component-blockquote/src/BpkBlockquote.module.scss → react-version-test.js} +9 -12
- package/bpk-animate-height/README.md +0 -55
- package/bpk-animate-height/package.json +0 -26
- package/bpk-component-accordion/README.md +0 -124
- package/bpk-component-accordion/package.json +0 -31
- package/bpk-component-accordion/src/BpkAccordion.module.scss +0 -23
- package/bpk-component-accordion/src/BpkAccordionItem.module.scss +0 -117
- package/bpk-component-aria-live/README.md +0 -42
- package/bpk-component-aria-live/package.json +0 -31
- package/bpk-component-aria-live/src/BpkAriaLive.module.scss +0 -25
- package/bpk-component-autosuggest/README.md +0 -126
- package/bpk-component-autosuggest/package.json +0 -29
- package/bpk-component-autosuggest/src/BpkAutosuggest.module.scss +0 -156
- package/bpk-component-badge/README.md +0 -39
- package/bpk-component-badge/package.json +0 -29
- package/bpk-component-banner-alert/README.md +0 -153
- package/bpk-component-banner-alert/package.json +0 -34
- package/bpk-component-banner-alert/src/BpkAnimateAndFade.module.scss +0 -53
- package/bpk-component-banner-alert/src/BpkBannerAlert.module.scss +0 -163
- package/bpk-component-barchart/README.md +0 -189
- package/bpk-component-barchart/data.json +0 -102
- package/bpk-component-barchart/package.json +0 -35
- package/bpk-component-barchart/src/BpkBarchart.module.scss +0 -21
- package/bpk-component-barchart/src/BpkBarchartBar.module.scss +0 -68
- package/bpk-component-barchart/src/BpkChartGridLines.module.scss +0 -26
- package/bpk-component-blockquote/README.md +0 -35
- package/bpk-component-blockquote/package.json +0 -24
- package/bpk-component-breadcrumb/README.md +0 -58
- package/bpk-component-breadcrumb/package.json +0 -27
- package/bpk-component-breadcrumb/src/BpkBreadcrumb.module.scss +0 -27
- package/bpk-component-breakpoint/README.md +0 -34
- package/bpk-component-breakpoint/package.json +0 -28
- package/bpk-component-button/README.md +0 -140
- package/bpk-component-button/package.json +0 -26
- 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/BpkButtonOutline.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 -29
- package/bpk-component-calendar/README.md +0 -406
- package/bpk-component-calendar/package.json +0 -34
- package/bpk-component-calendar/src/BpkCalendarDate.module.scss +0 -164
- package/bpk-component-calendar/src/BpkCalendarGrid.module.scss +0 -64
- package/bpk-component-calendar/src/BpkCalendarGridHeader.module.scss +0 -53
- 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 -24
- package/bpk-component-card/README.md +0 -34
- package/bpk-component-card/package.json +0 -28
- package/bpk-component-card/src/BpkCard.module.scss +0 -27
- package/bpk-component-checkbox/README.md +0 -47
- package/bpk-component-checkbox/package.json +0 -29
- package/bpk-component-checkbox/src/BpkCheckbox.module.scss +0 -70
- package/bpk-component-chip/README.md +0 -111
- package/bpk-component-chip/package.json +0 -29
- package/bpk-component-chip/src/BpkSelectableChip.module.scss +0 -23
- package/bpk-component-close-button/README.md +0 -27
- package/bpk-component-close-button/package.json +0 -28
- package/bpk-component-close-button/src/BpkCloseButton.module.scss +0 -51
- package/bpk-component-code/README.md +0 -43
- package/bpk-component-code/package.json +0 -24
- package/bpk-component-code/src/BpkCode.module.scss +0 -27
- package/bpk-component-content-container/README.md +0 -33
- package/bpk-component-content-container/package.json +0 -24
- package/bpk-component-content-container/src/BpkContentContainer.module.scss +0 -41
- package/bpk-component-datatable/README.md +0 -141
- package/bpk-component-datatable/package.json +0 -30
- package/bpk-component-datatable/src/BpkDataTable.module.scss +0 -92
- package/bpk-component-datatable/src/BpkDataTableColumn.module.scss +0 -65
- package/bpk-component-datepicker/README.md +0 -177
- package/bpk-component-datepicker/package.json +0 -33
- package/bpk-component-datepicker/src/BpkDatepicker.module.scss +0 -25
- package/bpk-component-description-list/README.md +0 -46
- package/bpk-component-description-list/package.json +0 -24
- package/bpk-component-description-list/src/BpkDescriptionList.module.scss +0 -37
- package/bpk-component-dialog/README.md +0 -105
- package/bpk-component-dialog/package.json +0 -32
- package/bpk-component-dialog/src/BpkDialog.module.scss +0 -80
- package/bpk-component-dialog/src/BpkDialogInner.module.scss +0 -62
- package/bpk-component-drawer/README.md +0 -90
- package/bpk-component-drawer/package.json +0 -34
- 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 -73
- package/bpk-component-fieldset/package.json +0 -36
- package/bpk-component-fieldset/src/BpkFieldset.module.scss +0 -39
- package/bpk-component-flare/README.md +0 -52
- package/bpk-component-flare/package.json +0 -29
- package/bpk-component-flare/src/bpk-content-bubble.module.scss +0 -60
- package/bpk-component-flare/src/bpk-flare-bar.module.scss +0 -74
- 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 -58
- package/bpk-component-floating-notification/package.json +0 -25
- package/bpk-component-floating-notification/src/BpkFloatingNotification.module.scss +0 -96
- package/bpk-component-form-validation/README.md +0 -33
- package/bpk-component-form-validation/package.json +0 -34
- 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/package.json +0 -25
- package/bpk-component-graphic-promotion/src/BpkGraphicPromo.module.scss +0 -260
- package/bpk-component-graphic-promotion/src/custom-breakpoints.module.scss +0 -70
- package/bpk-component-grid/README.md +0 -90
- package/bpk-component-grid/package.json +0 -24
- 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 -27
- package/bpk-component-grid-toggle/package.json +0 -25
- package/bpk-component-grid-toggle/src/BpkGridToggle.module.scss +0 -52
- package/bpk-component-horizontal-nav/README.md +0 -103
- package/bpk-component-horizontal-nav/package.json +0 -30
- 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 -79
- package/bpk-component-icon/package.json +0 -34
- 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 -142
- package/bpk-component-image/package.json +0 -31
- package/bpk-component-image/src/BpkImage.module.scss +0 -89
- package/bpk-component-infinite-scroll/README.md +0 -187
- package/bpk-component-infinite-scroll/package.json +0 -31
- package/bpk-component-infinite-scroll/src/withInfiniteScroll.module.scss +0 -25
- package/bpk-component-input/README.md +0 -121
- package/bpk-component-input/package.json +0 -30
- 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 -30
- package/bpk-component-label/package.json +0 -24
- package/bpk-component-label/src/BpkLabel.module.scss +0 -43
- package/bpk-component-link/README.md +0 -68
- package/bpk-component-link/package.json +0 -28
- package/bpk-component-link/src/BpkLink.module.scss +0 -31
- package/bpk-component-list/README.md +0 -48
- package/bpk-component-list/package.json +0 -24
- package/bpk-component-list/src/BpkList.module.scss +0 -37
- package/bpk-component-loading-button/README.md +0 -48
- package/bpk-component-loading-button/package.json +0 -30
- package/bpk-component-loading-button/src/BpkLoadingButton.module.scss +0 -65
- package/bpk-component-map/README.md +0 -213
- package/bpk-component-map/package.json +0 -32
- package/bpk-component-map/src/BpkIconMarker.module.scss +0 -74
- package/bpk-component-map/src/BpkIconMarkerBackground.module.scss +0 -53
- package/bpk-component-map/src/BpkMap.module.scss +0 -21
- package/bpk-component-map/src/BpkPriceMarker.module.scss +0 -146
- package/bpk-component-map/src/DefaultLoadingElement.module.scss +0 -28
- package/bpk-component-mobile-scroll-container/README.md +0 -74
- package/bpk-component-mobile-scroll-container/package.json +0 -28
- package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.module.scss +0 -50
- package/bpk-component-modal/README.md +0 -114
- package/bpk-component-modal/package.json +0 -33
- package/bpk-component-modal/src/BpkModal.module.scss +0 -46
- package/bpk-component-modal/src/BpkModalInner.module.scss +0 -123
- package/bpk-component-navigation-bar/README.md +0 -114
- package/bpk-component-navigation-bar/package.json +0 -32
- 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-navigation-stack/README.md +0 -49
- package/bpk-component-navigation-stack/package.json +0 -33
- package/bpk-component-navigation-stack/src/BpkNavigationStack.module.scss +0 -51
- package/bpk-component-nudger/README.md +0 -170
- package/bpk-component-nudger/package.json +0 -32
- package/bpk-component-nudger/src/BpkNudger.module.scss +0 -49
- package/bpk-component-overlay/README.md +0 -51
- package/bpk-component-overlay/package.json +0 -28
- package/bpk-component-overlay/src/BpkOverlay.module.scss +0 -41
- package/bpk-component-pagination/README.md +0 -59
- package/bpk-component-pagination/package.json +0 -28
- package/bpk-component-pagination/src/BpkPagination.module.scss +0 -22
- package/bpk-component-pagination/src/BpkPaginationList.module.scss +0 -45
- package/bpk-component-pagination/src/BpkPaginationNudger.module.scss +0 -74
- package/bpk-component-pagination/src/BpkPaginationPage.module.scss +0 -92
- package/bpk-component-panel/README.md +0 -33
- package/bpk-component-panel/package.json +0 -24
- package/bpk-component-panel/src/BpkPanel.module.scss +0 -31
- package/bpk-component-phone-input/README.md +0 -100
- package/bpk-component-phone-input/package.json +0 -33
- package/bpk-component-phone-input/src/BpkPhoneInput.module.scss +0 -42
- package/bpk-component-popover/README.md +0 -128
- package/bpk-component-popover/package.json +0 -35
- package/bpk-component-popover/src/BpkPopover.module.scss +0 -128
- package/bpk-component-price/README.md +0 -37
- package/bpk-component-price/package.json +0 -24
- package/bpk-component-price/src/BpkPrice.module.scss +0 -61
- package/bpk-component-progress/README.md +0 -56
- package/bpk-component-progress/package.json +0 -30
- package/bpk-component-progress/src/BpkProgress.module.scss +0 -64
- package/bpk-component-radio/README.md +0 -43
- package/bpk-component-radio/package.json +0 -28
- package/bpk-component-radio/src/BpkRadio.module.scss +0 -78
- package/bpk-component-rating/README.md +0 -80
- package/bpk-component-rating/package.json +0 -29
- package/bpk-component-rating/src/BpkRating.module.scss +0 -86
- package/bpk-component-rtl-toggle/README.md +0 -26
- package/bpk-component-rtl-toggle/package.json +0 -24
- package/bpk-component-scrollable-calendar/README.md +0 -102
- package/bpk-component-scrollable-calendar/package.json +0 -32
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.module.scss +0 -31
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.module.scss +0 -37
- package/bpk-component-section-list/README.md +0 -52
- package/bpk-component-section-list/package.json +0 -30
- 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 -47
- package/bpk-component-select/package.json +0 -27
- package/bpk-component-select/src/BpkSelect.module.scss +0 -126
- package/bpk-component-skip-link/README.md +0 -30
- package/bpk-component-skip-link/package.json +0 -24
- package/bpk-component-skip-link/src/BpkSkipLink.module.scss +0 -50
- package/bpk-component-slider/README.md +0 -43
- package/bpk-component-slider/package.json +0 -29
- package/bpk-component-slider/src/BpkSlider.module.scss +0 -103
- package/bpk-component-spinner/README.md +0 -40
- package/bpk-component-spinner/changelog.yml +0 -55
- package/bpk-component-spinner/package.json +0 -25
- package/bpk-component-spinner/src/BpkSpinner.module.scss +0 -57
- package/bpk-component-split-input/README.md +0 -42
- package/bpk-component-split-input/package.json +0 -24
- 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 -99
- package/bpk-component-star-rating/package.json +0 -29
- 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 -37
- package/bpk-component-switch/package.json +0 -24
- package/bpk-component-switch/src/BpkSwitch.module.scss +0 -93
- package/bpk-component-table/README.md +0 -66
- package/bpk-component-table/package.json +0 -24
- package/bpk-component-table/src/BpkTable.module.scss +0 -39
- package/bpk-component-text/README.md +0 -76
- package/bpk-component-text/package.json +0 -24
- package/bpk-component-text/src/BpkText.module.scss +0 -139
- package/bpk-component-textarea/README.md +0 -34
- package/bpk-component-textarea/package.json +0 -28
- package/bpk-component-textarea/src/BpkTextarea.module.scss +0 -33
- package/bpk-component-theme-toggle/README.md +0 -30
- package/bpk-component-theme-toggle/package.json +0 -27
- package/bpk-component-theme-toggle/src/BpkThemeToggle.module.scss +0 -25
- package/bpk-component-ticket/README.md +0 -37
- package/bpk-component-ticket/package.json +0 -28
- package/bpk-component-ticket/src/BpkTicket.module.scss +0 -145
- package/bpk-component-tooltip/README.md +0 -56
- package/bpk-component-tooltip/package.json +0 -29
- package/bpk-component-tooltip/src/BpkTooltip.module.scss +0 -144
- package/bpk-react-utils/README.md +0 -251
- package/bpk-react-utils/package.json +0 -25
- package/bpk-scrim-utils/README.md +0 -50
- package/bpk-scrim-utils/package.json +0 -25
- package/bpk-scrim-utils/src/bpk-scrim-content.module.scss +0 -32
- package/bpk-scrim-utils/src/bpk-scrim.module.scss +0 -51
- package/bpk-theming/README.md +0 -43
- package/bpk-theming/package.json +0 -23
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = require("react");
|
|
9
|
+
|
|
10
|
+
var _reactDom = require("react-dom");
|
|
11
|
+
|
|
12
|
+
var _objectAssign = _interopRequireDefault(require("object-assign"));
|
|
13
|
+
|
|
14
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
+
|
|
1
18
|
/*
|
|
2
19
|
* Backpack - Skyscanner's Design System
|
|
3
20
|
*
|
|
@@ -15,30 +32,20 @@
|
|
|
15
32
|
* See the License for the specific language governing permissions and
|
|
16
33
|
* limitations under the License.
|
|
17
34
|
*/
|
|
18
|
-
|
|
19
|
-
import { Component } from 'react';
|
|
20
|
-
import { createPortal } from 'react-dom';
|
|
21
|
-
import assign from 'object-assign';
|
|
22
|
-
import PropTypes from 'prop-types';
|
|
23
|
-
|
|
24
35
|
const KEYCODES = {
|
|
25
|
-
ESCAPE: 'Escape'
|
|
36
|
+
ESCAPE: 'Escape'
|
|
26
37
|
};
|
|
27
38
|
|
|
28
|
-
class Portal extends Component {
|
|
39
|
+
class Portal extends _react.Component {
|
|
29
40
|
constructor() {
|
|
30
41
|
super();
|
|
31
|
-
|
|
32
42
|
this.portalElement = null;
|
|
33
|
-
|
|
34
43
|
this.state = {
|
|
35
|
-
isVisible: false
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
// shouldClose is used to keep track of the user's mouse-down events in order to
|
|
44
|
+
isVisible: false
|
|
45
|
+
}; // shouldClose is used to keep track of the user's mouse-down events in order to
|
|
39
46
|
// prevent the dialog closing if the mouse leaves / enters the portal during the click
|
|
40
|
-
this.shouldClose = false;
|
|
41
47
|
|
|
48
|
+
this.shouldClose = false;
|
|
42
49
|
this.close = this.close.bind(this);
|
|
43
50
|
this.onDocumentMouseUp = this.onDocumentMouseUp.bind(this);
|
|
44
51
|
this.onDocumentMouseDown = this.onDocumentMouseDown.bind(this);
|
|
@@ -56,11 +63,11 @@ class Portal extends Component {
|
|
|
56
63
|
if (this.props.targetRef) {
|
|
57
64
|
this.props.targetRef(this.getTargetElement());
|
|
58
65
|
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
// When the consumer updates `isOpen` to be `false`, we
|
|
66
|
+
} // When the consumer updates `isOpen` to be `false`, we
|
|
62
67
|
// call their beforeClose function so that they can trigger the close.
|
|
63
68
|
// If they don't provide `beforeClose` we just call `close` directly.
|
|
69
|
+
|
|
70
|
+
|
|
64
71
|
componentDidUpdate(prevProps) {
|
|
65
72
|
if (this.props.isOpen) {
|
|
66
73
|
if (!prevProps.isOpen) {
|
|
@@ -83,11 +90,8 @@ class Portal extends Component {
|
|
|
83
90
|
|
|
84
91
|
onDocumentMouseDown(event) {
|
|
85
92
|
const clickEventProperties = this.getClickEventProperties(event);
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
clickEventProperties.isTargetClick ||
|
|
89
|
-
clickEventProperties.isPortalClick
|
|
90
|
-
) {
|
|
93
|
+
|
|
94
|
+
if (clickEventProperties.isNotLeftClick || clickEventProperties.isTargetClick || clickEventProperties.isPortalClick) {
|
|
91
95
|
this.shouldClose = false;
|
|
92
96
|
return;
|
|
93
97
|
}
|
|
@@ -98,11 +102,7 @@ class Portal extends Component {
|
|
|
98
102
|
onDocumentMouseUp(event) {
|
|
99
103
|
const clickEventProperties = this.getClickEventProperties(event);
|
|
100
104
|
|
|
101
|
-
if (
|
|
102
|
-
clickEventProperties.isNotLeftClick ||
|
|
103
|
-
clickEventProperties.isTargetClick ||
|
|
104
|
-
clickEventProperties.isPortalClick
|
|
105
|
-
) {
|
|
105
|
+
if (clickEventProperties.isNotLeftClick || clickEventProperties.isTargetClick || clickEventProperties.isPortalClick) {
|
|
106
106
|
this.shouldClose = false;
|
|
107
107
|
return;
|
|
108
108
|
}
|
|
@@ -110,19 +110,19 @@ class Portal extends Component {
|
|
|
110
110
|
if (this.shouldClose) {
|
|
111
111
|
// `onClose` tells the consumer that they should change `isOpen` to false.
|
|
112
112
|
// Once the consumer has responded to `onClose`, `beforeClose` and `close` will be called.
|
|
113
|
-
this.props.onClose(event, {
|
|
113
|
+
this.props.onClose(event, {
|
|
114
|
+
source: 'DOCUMENT_CLICK'
|
|
115
|
+
});
|
|
114
116
|
}
|
|
115
117
|
}
|
|
116
118
|
|
|
117
119
|
onDocumentKeyDown(event) {
|
|
118
|
-
if (
|
|
119
|
-
event.key === KEYCODES.ESCAPE &&
|
|
120
|
-
this.props.isOpen &&
|
|
121
|
-
this.props.closeOnEscPressed
|
|
122
|
-
) {
|
|
120
|
+
if (event.key === KEYCODES.ESCAPE && this.props.isOpen && this.props.closeOnEscPressed) {
|
|
123
121
|
// `onClose` tells the consumer that they should change `isOpen` to false.
|
|
124
122
|
// Once the consumer has responded to `onClose`, `beforeClose` and `close` will be called.
|
|
125
|
-
this.props.onClose(event, {
|
|
123
|
+
this.props.onClose(event, {
|
|
124
|
+
source: 'ESCAPE'
|
|
125
|
+
});
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
|
|
@@ -132,41 +132,29 @@ class Portal extends Component {
|
|
|
132
132
|
|
|
133
133
|
getClickEventProperties(event) {
|
|
134
134
|
const isNotLeftClick = event.button && event.button !== 0;
|
|
135
|
-
|
|
136
135
|
const targetElement = this.getTargetElement();
|
|
137
|
-
const isTargetClick =
|
|
138
|
-
|
|
139
|
-
event.target instanceof Node &&
|
|
140
|
-
(event.target === targetElement || targetElement.contains(event.target));
|
|
141
|
-
|
|
142
|
-
const isPortalClick =
|
|
143
|
-
this.portalElement &&
|
|
144
|
-
event.target instanceof Node &&
|
|
145
|
-
(event.target === this.portalElement ||
|
|
146
|
-
this.portalElement.contains(event.target));
|
|
147
|
-
|
|
136
|
+
const isTargetClick = targetElement && event.target instanceof Node && (event.target === targetElement || targetElement.contains(event.target));
|
|
137
|
+
const isPortalClick = this.portalElement && event.target instanceof Node && (event.target === this.portalElement || this.portalElement.contains(event.target));
|
|
148
138
|
return {
|
|
149
139
|
isNotLeftClick: !!isNotLeftClick,
|
|
150
140
|
isTargetClick: !!isTargetClick,
|
|
151
|
-
isPortalClick: !!isPortalClick
|
|
141
|
+
isPortalClick: !!isPortalClick
|
|
152
142
|
};
|
|
153
143
|
}
|
|
154
144
|
|
|
155
145
|
getTargetElement() {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
146
|
+
var _this$props$target;
|
|
147
|
+
|
|
148
|
+
return typeof this.props.target === 'function' ? this.props.target() : (_this$props$target = this.props.target) === null || _this$props$target === void 0 ? void 0 : _this$props$target.ref.current;
|
|
159
149
|
}
|
|
160
150
|
|
|
161
151
|
getRenderTarget() {
|
|
162
|
-
const target =
|
|
163
|
-
typeof this.props.renderTarget === 'function'
|
|
164
|
-
? this.props.renderTarget()
|
|
165
|
-
: this.props.renderTarget;
|
|
152
|
+
const target = typeof this.props.renderTarget === 'function' ? this.props.renderTarget() : this.props.renderTarget;
|
|
166
153
|
|
|
167
154
|
if (target) {
|
|
168
155
|
return target;
|
|
169
156
|
}
|
|
157
|
+
|
|
170
158
|
if (document.body) {
|
|
171
159
|
return document.body;
|
|
172
160
|
}
|
|
@@ -181,35 +169,27 @@ class Portal extends Component {
|
|
|
181
169
|
|
|
182
170
|
this.portalElement = document.createElement('div');
|
|
183
171
|
this.getRenderTarget().appendChild(this.portalElement);
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
document.addEventListener(
|
|
189
|
-
'touchstart',
|
|
190
|
-
this.onDocumentMouseDown,
|
|
191
|
-
passiveArgs,
|
|
192
|
-
);
|
|
193
|
-
document.addEventListener(
|
|
194
|
-
'touchmove',
|
|
195
|
-
this.onDocumentMouseMove,
|
|
196
|
-
passiveArgs,
|
|
197
|
-
);
|
|
172
|
+
const passiveArgs = this.supportsPassiveEvents() ? {
|
|
173
|
+
passive: true
|
|
174
|
+
} : false;
|
|
175
|
+
document.addEventListener('touchstart', this.onDocumentMouseDown, passiveArgs);
|
|
176
|
+
document.addEventListener('touchmove', this.onDocumentMouseMove, passiveArgs);
|
|
198
177
|
document.addEventListener('touchend', this.onDocumentMouseUp, passiveArgs);
|
|
199
178
|
document.addEventListener('mousedown', this.onDocumentMouseDown, false);
|
|
200
179
|
document.addEventListener('mouseup', this.onDocumentMouseUp, false);
|
|
201
180
|
document.addEventListener('keydown', this.onDocumentKeyDown, false);
|
|
202
181
|
|
|
203
182
|
if (this.props.style) {
|
|
204
|
-
|
|
183
|
+
(0, _objectAssign.default)(this.portalElement.style, this.props.style);
|
|
205
184
|
}
|
|
206
185
|
|
|
207
186
|
if (this.props.className) {
|
|
208
187
|
this.portalElement.className = this.props.className;
|
|
209
188
|
}
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
189
|
+
|
|
190
|
+
this.setState({
|
|
191
|
+
isVisible: true
|
|
192
|
+
}, () => this.props.onOpen(this.portalElement));
|
|
213
193
|
}
|
|
214
194
|
|
|
215
195
|
close() {
|
|
@@ -218,6 +198,7 @@ class Portal extends Component {
|
|
|
218
198
|
}
|
|
219
199
|
|
|
220
200
|
const renderTarget = this.getRenderTarget();
|
|
201
|
+
|
|
221
202
|
if (renderTarget) {
|
|
222
203
|
renderTarget.removeChild(this.portalElement);
|
|
223
204
|
}
|
|
@@ -228,60 +209,69 @@ class Portal extends Component {
|
|
|
228
209
|
document.removeEventListener('mousedown', this.onDocumentMouseDown);
|
|
229
210
|
document.removeEventListener('mouseup', this.onDocumentMouseUp);
|
|
230
211
|
document.removeEventListener('keydown', this.onDocumentKeyDown);
|
|
231
|
-
|
|
232
212
|
this.portalElement = null;
|
|
233
|
-
this.setState({
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
// This function is taken from modernizr
|
|
213
|
+
this.setState({
|
|
214
|
+
isVisible: false
|
|
215
|
+
});
|
|
216
|
+
} // This function is taken from modernizr
|
|
237
217
|
// See https://github.com/modernizr/modernizr
|
|
238
218
|
// eslint-disable-next-line class-methods-use-this
|
|
219
|
+
|
|
220
|
+
|
|
239
221
|
supportsPassiveEvents() {
|
|
240
222
|
let supportsPassiveOption = false;
|
|
223
|
+
|
|
241
224
|
try {
|
|
242
225
|
const opts = Object.defineProperty({}, 'passive', {
|
|
243
226
|
// eslint-disable-next-line getter-return
|
|
244
227
|
get() {
|
|
245
228
|
supportsPassiveOption = true;
|
|
246
|
-
}
|
|
229
|
+
}
|
|
230
|
+
|
|
247
231
|
});
|
|
248
232
|
window.addEventListener('test', null, opts);
|
|
249
233
|
} catch (e) {
|
|
250
234
|
return false;
|
|
251
235
|
}
|
|
236
|
+
|
|
252
237
|
return supportsPassiveOption;
|
|
253
238
|
}
|
|
254
239
|
|
|
255
240
|
render() {
|
|
256
241
|
const {
|
|
257
242
|
portalElement,
|
|
258
|
-
props: {
|
|
259
|
-
|
|
243
|
+
props: {
|
|
244
|
+
children
|
|
245
|
+
},
|
|
246
|
+
state: {
|
|
247
|
+
isVisible
|
|
248
|
+
}
|
|
260
249
|
} = this;
|
|
261
250
|
|
|
262
251
|
if (!isVisible || !portalElement) {
|
|
263
252
|
return null;
|
|
264
253
|
}
|
|
265
254
|
|
|
266
|
-
return createPortal(children, portalElement);
|
|
255
|
+
return /*#__PURE__*/(0, _reactDom.createPortal)(children, portalElement);
|
|
267
256
|
}
|
|
257
|
+
|
|
268
258
|
}
|
|
269
259
|
|
|
270
260
|
Portal.propTypes = {
|
|
271
|
-
children:
|
|
272
|
-
isOpen:
|
|
273
|
-
beforeClose:
|
|
274
|
-
className:
|
|
275
|
-
onClose:
|
|
276
|
-
onOpen:
|
|
277
|
-
onRender:
|
|
278
|
-
style:
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
261
|
+
children: _propTypes.default.node.isRequired,
|
|
262
|
+
isOpen: _propTypes.default.bool.isRequired,
|
|
263
|
+
beforeClose: _propTypes.default.func,
|
|
264
|
+
className: _propTypes.default.string,
|
|
265
|
+
onClose: _propTypes.default.func,
|
|
266
|
+
onOpen: _propTypes.default.func,
|
|
267
|
+
onRender: _propTypes.default.func,
|
|
268
|
+
style: _propTypes.default.object,
|
|
269
|
+
// eslint-disable-line react/forbid-prop-types
|
|
270
|
+
renderTarget: _propTypes.default.func,
|
|
271
|
+
target: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.node]),
|
|
272
|
+
targetRef: _propTypes.default.func,
|
|
273
|
+
closeOnEscPressed: _propTypes.default.bool
|
|
283
274
|
};
|
|
284
|
-
|
|
285
275
|
Portal.defaultProps = {
|
|
286
276
|
beforeClose: null,
|
|
287
277
|
className: null,
|
|
@@ -292,7 +282,7 @@ Portal.defaultProps = {
|
|
|
292
282
|
renderTarget: null,
|
|
293
283
|
target: null,
|
|
294
284
|
targetRef: null,
|
|
295
|
-
closeOnEscPressed: true
|
|
285
|
+
closeOnEscPressed: true
|
|
296
286
|
};
|
|
297
|
-
|
|
298
|
-
|
|
287
|
+
var _default = Portal;
|
|
288
|
+
exports.default = _default;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _react = _interopRequireDefault(require("react"));
|
|
4
|
+
|
|
5
|
+
var _react2 = require("@testing-library/react");
|
|
6
|
+
|
|
7
|
+
var _TransitionInitialMount = _interopRequireDefault(require("./TransitionInitialMount"));
|
|
8
|
+
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
|
|
11
|
+
/*
|
|
12
|
+
* Backpack - Skyscanner's Design System
|
|
13
|
+
*
|
|
14
|
+
* Copyright 2016 Skyscanner Ltd
|
|
15
|
+
*
|
|
16
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
17
|
+
* you may not use this file except in compliance with the License.
|
|
18
|
+
* You may obtain a copy of the License at
|
|
19
|
+
*
|
|
20
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
21
|
+
*
|
|
22
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
23
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
24
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
25
|
+
* See the License for the specific language governing permissions and
|
|
26
|
+
* limitations under the License.
|
|
27
|
+
*/
|
|
28
|
+
describe('TransitionInitialMount', () => {
|
|
29
|
+
it('should render correctly', () => {
|
|
30
|
+
const {
|
|
31
|
+
asFragment
|
|
32
|
+
} = (0, _react2.render)( /*#__PURE__*/_react.default.createElement(_TransitionInitialMount.default, {
|
|
33
|
+
appearClassName: "block--appear",
|
|
34
|
+
appearActiveClassName: "block--apear-active",
|
|
35
|
+
transitionTimeout: 250
|
|
36
|
+
}, /*#__PURE__*/_react.default.createElement("p", null, "My transition")));
|
|
37
|
+
expect(asFragment()).toMatchSnapshot();
|
|
38
|
+
});
|
|
39
|
+
});
|
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _objectAssign = _interopRequireDefault(require("object-assign"));
|
|
9
|
+
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
|
|
12
|
+
var _react = _interopRequireDefault(require("react"));
|
|
13
|
+
|
|
14
|
+
var _CSSTransition = _interopRequireDefault(require("react-transition-group/CSSTransition"));
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
+
|
|
1
18
|
/*
|
|
2
19
|
* Backpack - Skyscanner's Design System
|
|
3
20
|
*
|
|
@@ -15,49 +32,34 @@
|
|
|
15
32
|
* See the License for the specific language governing permissions and
|
|
16
33
|
* limitations under the License.
|
|
17
34
|
*/
|
|
18
|
-
|
|
19
|
-
/* @flow strict */
|
|
20
|
-
|
|
21
|
-
import assign from 'object-assign';
|
|
22
|
-
import PropTypes from 'prop-types';
|
|
23
|
-
import React, { type Node } from 'react';
|
|
24
|
-
import CSSTransition from 'react-transition-group/CSSTransition';
|
|
25
|
-
|
|
26
35
|
// Object.assign() is used unpolyfilled in react-transition-group.
|
|
27
36
|
// It will use the native implementation if it's present and isn't buggy.
|
|
28
|
-
Object.assign =
|
|
29
|
-
|
|
30
|
-
type Props = {
|
|
31
|
-
appearClassName: string,
|
|
32
|
-
appearActiveClassName: string,
|
|
33
|
-
transitionTimeout: number,
|
|
34
|
-
children: Node,
|
|
35
|
-
};
|
|
37
|
+
Object.assign = _objectAssign.default;
|
|
36
38
|
|
|
37
39
|
const TransitionInitialMount = ({
|
|
38
40
|
appearActiveClassName,
|
|
39
41
|
appearClassName,
|
|
40
42
|
children,
|
|
41
|
-
transitionTimeout
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
);
|
|
43
|
+
transitionTimeout
|
|
44
|
+
}) => /*#__PURE__*/_react.default.createElement(_CSSTransition.default, {
|
|
45
|
+
classNames: {
|
|
46
|
+
appear: appearClassName,
|
|
47
|
+
appearActive: appearActiveClassName
|
|
48
|
+
},
|
|
49
|
+
in: true,
|
|
50
|
+
appear: true,
|
|
51
|
+
timeout: {
|
|
52
|
+
exit: 0,
|
|
53
|
+
enter: 0,
|
|
54
|
+
appear: transitionTimeout
|
|
55
|
+
}
|
|
56
|
+
}, children);
|
|
55
57
|
|
|
56
58
|
TransitionInitialMount.propTypes = {
|
|
57
|
-
children:
|
|
58
|
-
appearClassName:
|
|
59
|
-
appearActiveClassName:
|
|
60
|
-
transitionTimeout:
|
|
59
|
+
children: _propTypes.default.node.isRequired,
|
|
60
|
+
appearClassName: _propTypes.default.string.isRequired,
|
|
61
|
+
appearActiveClassName: _propTypes.default.string.isRequired,
|
|
62
|
+
transitionTimeout: _propTypes.default.number.isRequired
|
|
61
63
|
};
|
|
62
|
-
|
|
63
|
-
|
|
64
|
+
var _default = TransitionInitialMount;
|
|
65
|
+
exports.default = _default;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _react = _interopRequireDefault(require("react"));
|
|
4
|
+
|
|
5
|
+
var _react2 = require("@testing-library/react");
|
|
6
|
+
|
|
7
|
+
var _jestAxe = require("jest-axe");
|
|
8
|
+
|
|
9
|
+
var _Portal = _interopRequireDefault(require("./Portal"));
|
|
10
|
+
|
|
11
|
+
var _TransitionInitialMount = _interopRequireDefault(require("./TransitionInitialMount"));
|
|
12
|
+
|
|
13
|
+
var _withDefaultProps = _interopRequireDefault(require("./withDefaultProps"));
|
|
14
|
+
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
+
|
|
17
|
+
/*
|
|
18
|
+
* Backpack - Skyscanner's Design System
|
|
19
|
+
*
|
|
20
|
+
* Copyright 2016 Skyscanner Ltd
|
|
21
|
+
*
|
|
22
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
23
|
+
* you may not use this file except in compliance with the License.
|
|
24
|
+
* You may obtain a copy of the License at
|
|
25
|
+
*
|
|
26
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
27
|
+
*
|
|
28
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
29
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
30
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
31
|
+
* See the License for the specific language governing permissions and
|
|
32
|
+
* limitations under the License.
|
|
33
|
+
*/
|
|
34
|
+
describe('Portal accessibility tests', () => {
|
|
35
|
+
it('should not have programmatically-detectable accessibility issues', async () => {
|
|
36
|
+
const {
|
|
37
|
+
container
|
|
38
|
+
} = (0, _react2.render)( /*#__PURE__*/_react.default.createElement(_Portal.default, {
|
|
39
|
+
isOpen: false
|
|
40
|
+
}, /*#__PURE__*/_react.default.createElement("div", null, "My portal content")));
|
|
41
|
+
const results = await (0, _jestAxe.axe)(container);
|
|
42
|
+
expect(results).toHaveNoViolations();
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
describe('TransitionInitialMount accessibility tests', () => {
|
|
46
|
+
it('should not have programmatically-detectable accessibility issues', async () => {
|
|
47
|
+
const {
|
|
48
|
+
container
|
|
49
|
+
} = (0, _react2.render)( /*#__PURE__*/_react.default.createElement(_TransitionInitialMount.default, {
|
|
50
|
+
appearClassName: "block--appear",
|
|
51
|
+
appearActiveClassName: "block--apear-active",
|
|
52
|
+
transitionTimeout: 250
|
|
53
|
+
}, /*#__PURE__*/_react.default.createElement("p", null, "My transition")));
|
|
54
|
+
const results = await (0, _jestAxe.axe)(container);
|
|
55
|
+
expect(results).toHaveNoViolations();
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
describe('withDefaultProps accessibility tests', () => {
|
|
59
|
+
it('should not have programmatically-detectable accessibility issues', async () => {
|
|
60
|
+
const TestComponent = props => /*#__PURE__*/_react.default.createElement("div", props);
|
|
61
|
+
|
|
62
|
+
const Component = (0, _withDefaultProps.default)(TestComponent, {
|
|
63
|
+
a: 1,
|
|
64
|
+
b: 2,
|
|
65
|
+
c: {
|
|
66
|
+
d: 3
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
const {
|
|
70
|
+
container
|
|
71
|
+
} = (0, _react2.render)( /*#__PURE__*/_react.default.createElement(Component, null, "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus."));
|
|
72
|
+
const results = await (0, _jestAxe.axe)(container);
|
|
73
|
+
expect(results).toHaveNoViolations();
|
|
74
|
+
});
|
|
75
|
+
});
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _cssModules = _interopRequireDefault(require("./cssModules"));
|
|
4
|
+
|
|
5
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
6
|
+
|
|
7
|
+
/*
|
|
8
|
+
* Backpack - Skyscanner's Design System
|
|
9
|
+
*
|
|
10
|
+
* Copyright 2016 Skyscanner Ltd
|
|
11
|
+
*
|
|
12
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
13
|
+
* you may not use this file except in compliance with the License.
|
|
14
|
+
* You may obtain a copy of the License at
|
|
15
|
+
*
|
|
16
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
17
|
+
*
|
|
18
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
19
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
20
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
21
|
+
* See the License for the specific language governing permissions and
|
|
22
|
+
* limitations under the License.
|
|
23
|
+
*/
|
|
24
|
+
describe('cssModules', () => {
|
|
25
|
+
it('should return a function', () => {
|
|
26
|
+
expect((0, _cssModules.default)()).toBeInstanceOf(Function);
|
|
27
|
+
});
|
|
28
|
+
describe('returned function', () => {
|
|
29
|
+
it('should pass through key as className if not found', () => {
|
|
30
|
+
const getClassName = (0, _cssModules.default)();
|
|
31
|
+
expect(getClassName('foo')).toEqual('foo');
|
|
32
|
+
expect(getClassName('bar')).toEqual('bar');
|
|
33
|
+
expect(getClassName('baz')).toEqual('baz');
|
|
34
|
+
});
|
|
35
|
+
it('should resolve classNames for known keys', () => {
|
|
36
|
+
const getClassName = (0, _cssModules.default)({
|
|
37
|
+
foo: 'a',
|
|
38
|
+
bar: 'b',
|
|
39
|
+
baz: 'c'
|
|
40
|
+
});
|
|
41
|
+
expect(getClassName('foo')).toEqual('a');
|
|
42
|
+
expect(getClassName('bar')).toEqual('b');
|
|
43
|
+
expect(getClassName('baz')).toEqual('c');
|
|
44
|
+
});
|
|
45
|
+
it('should resolve multiple class names', () => {
|
|
46
|
+
const getClassName = (0, _cssModules.default)({
|
|
47
|
+
foo: 'a'
|
|
48
|
+
});
|
|
49
|
+
expect(getClassName('foo', 'bar')).toEqual('a bar');
|
|
50
|
+
});
|
|
51
|
+
it('should ignore values other than strings', () => {
|
|
52
|
+
const getClassName = (0, _cssModules.default)({
|
|
53
|
+
foo: 'a'
|
|
54
|
+
});
|
|
55
|
+
expect(getClassName('foo', false, 1, undefined, {}, true, 'bar')).toEqual('a bar');
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
});
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
1
8
|
/*
|
|
2
9
|
* Backpack - Skyscanner's Design System
|
|
3
10
|
*
|
|
@@ -15,15 +22,13 @@
|
|
|
15
22
|
* See the License for the specific language governing permissions and
|
|
16
23
|
* limitations under the License.
|
|
17
24
|
*/
|
|
25
|
+
var _default = (styles = {}) => (...classNames) => classNames.reduce((className, currentClass) => {
|
|
26
|
+
if (currentClass && typeof currentClass === 'string') {
|
|
27
|
+
const realName = styles[currentClass] || currentClass;
|
|
28
|
+
return className ? `${className} ${realName}` : realName;
|
|
29
|
+
}
|
|
18
30
|
|
|
19
|
-
|
|
31
|
+
return className;
|
|
32
|
+
}, '');
|
|
20
33
|
|
|
21
|
-
|
|
22
|
-
(...classNames: Array<?string | ?boolean | ?number | ?{}>) =>
|
|
23
|
-
classNames.reduce((className, currentClass) => {
|
|
24
|
-
if (currentClass && typeof currentClass === 'string') {
|
|
25
|
-
const realName = styles[currentClass] || currentClass;
|
|
26
|
-
return className ? `${className} ${realName}` : realName;
|
|
27
|
-
}
|
|
28
|
-
return className;
|
|
29
|
-
}, '');
|
|
34
|
+
exports.default = _default;
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
1
8
|
/*
|
|
2
9
|
* Backpack - Skyscanner's Design System
|
|
3
10
|
*
|
|
@@ -15,26 +22,19 @@
|
|
|
15
22
|
* See the License for the specific language governing permissions and
|
|
16
23
|
* limitations under the License.
|
|
17
24
|
*/
|
|
18
|
-
|
|
19
|
-
/* @flow strict */
|
|
20
|
-
import { type PropType } from 'prop-types';
|
|
21
|
-
|
|
22
25
|
// We disable eslint on the below line because it breaks the flow type definitions and the FlowIssue comment below
|
|
23
26
|
// We can remove this when we migrate this file to TypeScript.
|
|
24
27
|
// $FlowIssue[value-as-type] - PropType is imported as a type so is incorrectly reporting the PropType is not a valid type
|
|
25
|
-
const deprecated = (propType
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
console.warn(message);
|
|
36
|
-
}
|
|
37
|
-
return propType(props, propName, componentName, ...rest);
|
|
38
|
-
};
|
|
28
|
+
const deprecated = (propType, alternativeSuggestion) => // eslint-disable-line
|
|
29
|
+
(props, propName, componentName, ...rest) => {
|
|
30
|
+
if (props[propName] != null) {
|
|
31
|
+
const message = `Warning: "${propName}" property of "${componentName}" has been deprecated. ${alternativeSuggestion}`; // eslint-disable-next-line no-console
|
|
32
|
+
|
|
33
|
+
console.warn(message);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
return propType(props, propName, componentName, ...rest);
|
|
37
|
+
};
|
|
39
38
|
|
|
40
|
-
|
|
39
|
+
var _default = deprecated;
|
|
40
|
+
exports.default = _default;
|