@skyscanner/backpack-web 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bpk-animate-height/README.md +55 -0
- package/bpk-animate-height/examples.js +67 -0
- package/bpk-animate-height/index.js +21 -0
- package/bpk-animate-height/package.json +26 -0
- package/bpk-animate-height/src/AnimateHeight.js +184 -0
- package/bpk-component-accordion/README.md +129 -0
- package/bpk-component-accordion/examples.js +316 -0
- package/bpk-component-accordion/index.js +34 -0
- package/bpk-component-accordion/package.json +31 -0
- package/bpk-component-accordion/src/BpkAccordion.js +53 -0
- package/bpk-component-accordion/src/BpkAccordion.module.css +18 -0
- package/bpk-component-accordion/src/BpkAccordion.module.scss +23 -0
- package/bpk-component-accordion/src/BpkAccordionItem.js +150 -0
- package/bpk-component-accordion/src/BpkAccordionItem.module.css +18 -0
- package/bpk-component-accordion/src/BpkAccordionItem.module.scss +117 -0
- package/bpk-component-accordion/src/themeAttributes.js +25 -0
- package/bpk-component-accordion/src/withAccordionItemState.js +88 -0
- package/bpk-component-accordion/src/withSingleItemAccordionState.js +95 -0
- package/bpk-component-aria-live/README.md +42 -0
- package/bpk-component-aria-live/examples.js +248 -0
- package/bpk-component-aria-live/examples.module.css +18 -0
- package/bpk-component-aria-live/examples.module.scss +65 -0
- package/bpk-component-aria-live/index.js +27 -0
- package/bpk-component-aria-live/package.json +31 -0
- package/bpk-component-aria-live/src/BpkAriaLive.js +66 -0
- package/bpk-component-aria-live/src/BpkAriaLive.module.css +18 -0
- package/bpk-component-aria-live/src/BpkAriaLive.module.scss +25 -0
- package/bpk-component-autosuggest/README.md +126 -0
- package/bpk-component-autosuggest/examples.js +201 -0
- package/bpk-component-autosuggest/index.js +25 -0
- package/bpk-component-autosuggest/package.json +29 -0
- package/bpk-component-autosuggest/src/BpkAutosuggest.js +78 -0
- package/bpk-component-autosuggest/src/BpkAutosuggest.module.css +18 -0
- package/bpk-component-autosuggest/src/BpkAutosuggest.module.scss +156 -0
- package/bpk-component-autosuggest/src/BpkAutosuggestSuggestion.js +106 -0
- package/bpk-component-badge/BadgeLayout.js +54 -0
- package/bpk-component-badge/BpkBadgeLayout.module.css +18 -0
- package/bpk-component-badge/BpkBadgeLayout.module.scss +36 -0
- package/bpk-component-badge/README.md +39 -0
- package/bpk-component-badge/examples.js +207 -0
- package/bpk-component-badge/index.js +26 -0
- package/bpk-component-badge/package.json +29 -0
- package/bpk-component-badge/src/BpkBadge.js +91 -0
- package/bpk-component-badge/src/BpkBadge.module.css +18 -0
- package/bpk-component-badge/src/BpkBadge.module.scss +55 -0
- package/bpk-component-badge/src/themeAttributes.js +23 -0
- package/bpk-component-banner-alert/README.md +153 -0
- package/bpk-component-banner-alert/examples.js +253 -0
- package/bpk-component-banner-alert/examples.module.css +18 -0
- package/bpk-component-banner-alert/examples.module.scss +27 -0
- package/bpk-component-banner-alert/index.js +34 -0
- package/bpk-component-banner-alert/package.json +34 -0
- package/bpk-component-banner-alert/src/AnimateAndFade.js +184 -0
- package/bpk-component-banner-alert/src/BpkAnimateAndFade.module.css +18 -0
- package/bpk-component-banner-alert/src/BpkAnimateAndFade.module.scss +53 -0
- package/bpk-component-banner-alert/src/BpkBannerAlert.js +37 -0
- package/bpk-component-banner-alert/src/BpkBannerAlert.module.css +18 -0
- package/bpk-component-banner-alert/src/BpkBannerAlert.module.scss +163 -0
- package/bpk-component-banner-alert/src/BpkBannerAlertDismissable.js +52 -0
- package/bpk-component-banner-alert/src/BpkBannerAlertExpandable.js +63 -0
- package/bpk-component-banner-alert/src/BpkBannerAlertInner.js +261 -0
- package/bpk-component-banner-alert/src/common-types.js +70 -0
- package/bpk-component-banner-alert/src/themeAttributes.js +24 -0
- package/bpk-component-banner-alert/src/withBannerAlertState.js +184 -0
- package/bpk-component-barchart/README.md +189 -0
- package/bpk-component-barchart/data.json +102 -0
- package/bpk-component-barchart/examples.js +334 -0
- package/bpk-component-barchart/hocs.js +67 -0
- package/bpk-component-barchart/index.js +38 -0
- package/bpk-component-barchart/package.json +35 -0
- package/bpk-component-barchart/src/BpkBarchart.js +336 -0
- package/bpk-component-barchart/src/BpkBarchart.module.css +18 -0
- package/bpk-component-barchart/src/BpkBarchart.module.scss +21 -0
- package/bpk-component-barchart/src/BpkBarchartBar.js +152 -0
- package/bpk-component-barchart/src/BpkBarchartBar.module.css +18 -0
- package/bpk-component-barchart/src/BpkBarchartBar.module.scss +68 -0
- package/bpk-component-barchart/src/BpkBarchartBars.js +165 -0
- package/bpk-component-barchart/src/BpkBarchartDefs.js +48 -0
- package/bpk-component-barchart/src/BpkChartAxis.js +185 -0
- package/bpk-component-barchart/src/BpkChartAxis.module.css +18 -0
- package/bpk-component-barchart/src/BpkChartAxis.module.scss +37 -0
- package/bpk-component-barchart/src/BpkChartDataTable.js +76 -0
- package/bpk-component-barchart/src/BpkChartDataTable.module.css +18 -0
- package/bpk-component-barchart/src/BpkChartDataTable.module.scss +28 -0
- package/bpk-component-barchart/src/BpkChartGridLines.js +118 -0
- package/bpk-component-barchart/src/BpkChartGridLines.module.css +18 -0
- package/bpk-component-barchart/src/BpkChartGridLines.module.scss +26 -0
- package/bpk-component-barchart/src/BpkChartMargin.js +55 -0
- package/bpk-component-barchart/src/RTLtransforms.js +55 -0
- package/bpk-component-barchart/src/customPropTypes.js +51 -0
- package/bpk-component-barchart/src/orientation.js +22 -0
- package/bpk-component-barchart/src/themeAttributes.js +26 -0
- package/bpk-component-barchart/src/utils.js +43 -0
- package/bpk-component-barchart/stories.module.css +18 -0
- package/bpk-component-barchart/stories.module.scss +37 -0
- package/bpk-component-blockquote/README.md +35 -0
- package/bpk-component-blockquote/examples.js +33 -0
- package/bpk-component-blockquote/index.js +23 -0
- package/bpk-component-blockquote/package.json +24 -0
- package/bpk-component-blockquote/src/BpkBlockquote.js +50 -0
- package/bpk-component-blockquote/src/BpkBlockquote.module.css +18 -0
- package/bpk-component-blockquote/src/BpkBlockquote.module.scss +29 -0
- package/bpk-component-blockquote/src/themeAttributes.js +19 -0
- package/bpk-component-breadcrumb/README.md +58 -0
- package/bpk-component-breadcrumb/examples.js +57 -0
- package/bpk-component-breadcrumb/index.js +31 -0
- package/bpk-component-breadcrumb/package.json +27 -0
- package/bpk-component-breadcrumb/src/BpkBreadcrumb.js +111 -0
- package/bpk-component-breadcrumb/src/BpkBreadcrumb.module.css +18 -0
- package/bpk-component-breadcrumb/src/BpkBreadcrumb.module.scss +27 -0
- package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.js +92 -0
- package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.module.css +18 -0
- package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.module.scss +40 -0
- package/bpk-component-breakpoint/README.md +34 -0
- package/bpk-component-breakpoint/examples.js +72 -0
- package/bpk-component-breakpoint/examples.module.css +18 -0
- package/bpk-component-breakpoint/examples.module.scss +36 -0
- package/bpk-component-breakpoint/index.js +24 -0
- package/bpk-component-breakpoint/package.json +28 -0
- package/bpk-component-breakpoint/src/BpkBreakpoint.js +65 -0
- package/bpk-component-button/BpkButtonDestructive.js +21 -0
- package/bpk-component-button/BpkButtonFeatured.js +21 -0
- package/bpk-component-button/BpkButtonLink.js +21 -0
- package/bpk-component-button/BpkButtonOutline.js +21 -0
- package/bpk-component-button/BpkButtonPrimary.js +21 -0
- package/bpk-component-button/BpkButtonSecondary.js +21 -0
- package/bpk-component-button/BpkButtonStory.module.css +18 -0
- package/bpk-component-button/BpkButtonStory.module.scss +23 -0
- package/bpk-component-button/README.md +108 -0
- package/bpk-component-button/examples.js +213 -0
- package/bpk-component-button/index.js +46 -0
- package/bpk-component-button/package.json +26 -0
- package/bpk-component-button/src/BpkButton.js +93 -0
- package/bpk-component-button/src/BpkButtonBase.js +122 -0
- package/bpk-component-button/src/BpkButtonBase.module.css +18 -0
- package/bpk-component-button/src/BpkButtonBase.module.scss +50 -0
- package/bpk-component-button/src/BpkButtonDestructive.js +48 -0
- package/bpk-component-button/src/BpkButtonDestructive.module.css +18 -0
- package/bpk-component-button/src/BpkButtonDestructive.module.scss +24 -0
- package/bpk-component-button/src/BpkButtonFeatured.js +48 -0
- package/bpk-component-button/src/BpkButtonFeatured.module.css +18 -0
- package/bpk-component-button/src/BpkButtonFeatured.module.scss +23 -0
- package/bpk-component-button/src/BpkButtonLink.js +61 -0
- package/bpk-component-button/src/BpkButtonLink.module.css +18 -0
- package/bpk-component-button/src/BpkButtonLink.module.scss +29 -0
- package/bpk-component-button/src/BpkButtonOutline.js +48 -0
- package/bpk-component-button/src/BpkButtonOutline.module.css +18 -0
- package/bpk-component-button/src/BpkButtonOutline.module.scss +23 -0
- package/bpk-component-button/src/BpkButtonPrimary.js +33 -0
- package/bpk-component-button/src/BpkButtonSecondary.js +48 -0
- package/bpk-component-button/src/BpkButtonSecondary.module.css +18 -0
- package/bpk-component-button/src/BpkButtonSecondary.module.scss +23 -0
- package/bpk-component-button/src/common-types.js +62 -0
- package/bpk-component-button/src/commonButtonTests.js +116 -0
- package/bpk-component-button/src/themeAttributes.js +65 -0
- package/bpk-component-button/themeAttributes.js +27 -0
- package/bpk-component-calendar/DOCS.md +29 -0
- package/bpk-component-calendar/README.md +406 -0
- package/bpk-component-calendar/coloured-calendar-example.js +106 -0
- package/bpk-component-calendar/examples-components.js +299 -0
- package/bpk-component-calendar/examples.js +369 -0
- package/bpk-component-calendar/index.js +60 -0
- package/bpk-component-calendar/package.json +34 -0
- package/bpk-component-calendar/src/BpkCalendar.module.css +18 -0
- package/bpk-component-calendar/src/BpkCalendar.module.scss +42 -0
- package/bpk-component-calendar/src/BpkCalendarContainer.js +371 -0
- package/bpk-component-calendar/src/BpkCalendarDate.js +227 -0
- package/bpk-component-calendar/src/BpkCalendarDate.module.css +18 -0
- package/bpk-component-calendar/src/BpkCalendarDate.module.scss +164 -0
- package/bpk-component-calendar/src/BpkCalendarGrid.js +221 -0
- package/bpk-component-calendar/src/BpkCalendarGrid.module.css +18 -0
- package/bpk-component-calendar/src/BpkCalendarGrid.module.scss +70 -0
- package/bpk-component-calendar/src/BpkCalendarGridHeader.js +109 -0
- package/bpk-component-calendar/src/BpkCalendarGridHeader.module.css +18 -0
- package/bpk-component-calendar/src/BpkCalendarGridHeader.module.scss +53 -0
- package/bpk-component-calendar/src/BpkCalendarGridTransition.js +219 -0
- package/bpk-component-calendar/src/BpkCalendarGridTransition.module.css +18 -0
- package/bpk-component-calendar/src/BpkCalendarGridTransition.module.scss +47 -0
- package/bpk-component-calendar/src/BpkCalendarNav.js +175 -0
- package/bpk-component-calendar/src/BpkCalendarNav.module.css +18 -0
- package/bpk-component-calendar/src/BpkCalendarNav.module.scss +89 -0
- package/bpk-component-calendar/src/Week.js +452 -0
- package/bpk-component-calendar/src/_variables.scss +24 -0
- package/bpk-component-calendar/src/composeCalendar.js +211 -0
- package/bpk-component-calendar/src/custom-proptypes.js +94 -0
- package/bpk-component-calendar/src/date-utils.js +222 -0
- package/bpk-component-calendar/src/themeAttributes.js +30 -0
- package/bpk-component-calendar/src/utils.js +61 -0
- package/bpk-component-calendar/test-utils.js +302 -0
- package/bpk-component-card/README.md +34 -0
- package/bpk-component-card/examples.js +91 -0
- package/bpk-component-card/index.js +22 -0
- package/bpk-component-card/package.json +28 -0
- package/bpk-component-card/src/BpkCard.js +111 -0
- package/bpk-component-card/src/BpkCard.module.css +18 -0
- package/bpk-component-card/src/BpkCard.module.scss +27 -0
- package/bpk-component-checkbox/README.md +47 -0
- package/bpk-component-checkbox/examples.js +197 -0
- package/bpk-component-checkbox/index.js +25 -0
- package/bpk-component-checkbox/package.json +29 -0
- package/bpk-component-checkbox/src/BpkCheckbox.js +132 -0
- package/bpk-component-checkbox/src/BpkCheckbox.module.css +18 -0
- package/bpk-component-checkbox/src/BpkCheckbox.module.scss +70 -0
- package/bpk-component-checkbox/src/themeAttributes.js +21 -0
- package/bpk-component-chip/README.md +111 -0
- package/bpk-component-chip/examples.js +340 -0
- package/bpk-component-chip/examples.module.css +18 -0
- package/bpk-component-chip/examples.module.scss +33 -0
- package/bpk-component-chip/index.js +34 -0
- package/bpk-component-chip/package.json +29 -0
- package/bpk-component-chip/src/BpkDismissibleChip.js +55 -0
- package/bpk-component-chip/src/BpkSelectableChip.js +104 -0
- package/bpk-component-chip/src/BpkSelectableChip.module.css +18 -0
- package/bpk-component-chip/src/BpkSelectableChip.module.scss +23 -0
- package/bpk-component-chip/src/commonTypes.js +60 -0
- package/bpk-component-chip/src/themeAttributes.js +34 -0
- package/bpk-component-close-button/README.md +27 -0
- package/bpk-component-close-button/examples.js +30 -0
- package/bpk-component-close-button/index.js +23 -0
- package/bpk-component-close-button/package.json +28 -0
- package/bpk-component-close-button/src/BpkCloseButton.js +73 -0
- package/bpk-component-close-button/src/BpkCloseButton.module.css +18 -0
- package/bpk-component-close-button/src/BpkCloseButton.module.scss +51 -0
- package/bpk-component-code/README.md +43 -0
- package/bpk-component-code/examples.js +56 -0
- package/bpk-component-code/index.js +23 -0
- package/bpk-component-code/package.json +24 -0
- package/bpk-component-code/src/BpkCode.js +64 -0
- package/bpk-component-code/src/BpkCode.module.css +18 -0
- package/bpk-component-code/src/BpkCode.module.scss +27 -0
- package/bpk-component-code/src/BpkCodeBlock.js +62 -0
- package/bpk-component-code/src/BpkCodeBlock.module.css +18 -0
- package/bpk-component-code/src/BpkCodeBlock.module.scss +33 -0
- package/bpk-component-content-container/README.md +33 -0
- package/bpk-component-content-container/examples.js +307 -0
- package/bpk-component-content-container/index.js +21 -0
- package/bpk-component-content-container/package.json +24 -0
- package/bpk-component-content-container/src/BpkContentContainer.js +84 -0
- package/bpk-component-content-container/src/BpkContentContainer.module.css +18 -0
- package/bpk-component-content-container/src/BpkContentContainer.module.scss +41 -0
- package/bpk-component-datatable/README.md +141 -0
- package/bpk-component-datatable/examples.js +138 -0
- package/bpk-component-datatable/index.js +21 -0
- package/bpk-component-datatable/package.json +30 -0
- package/bpk-component-datatable/src/BpkDataTable.js +196 -0
- package/bpk-component-datatable/src/BpkDataTable.module.css +18 -0
- package/bpk-component-datatable/src/BpkDataTable.module.scss +92 -0
- package/bpk-component-datatable/src/BpkDataTableColumn.js +63 -0
- package/bpk-component-datatable/src/BpkDataTableColumn.module.css +18 -0
- package/bpk-component-datatable/src/BpkDataTableColumn.module.scss +65 -0
- package/bpk-component-datatable/src/bpkHeaderRenderer.js +109 -0
- package/bpk-component-datatable/src/common-types.js +50 -0
- package/bpk-component-datatable/src/hasChildrenOfType.js +59 -0
- package/bpk-component-datatable/src/sort-types.js +29 -0
- package/bpk-component-datatable/src/sorter.js +166 -0
- package/bpk-component-datatable/src/utils.js +30 -0
- package/bpk-component-datepicker/README.md +177 -0
- package/bpk-component-datepicker/examples.js +660 -0
- package/bpk-component-datepicker/index.js +25 -0
- package/bpk-component-datepicker/package.json +33 -0
- package/bpk-component-datepicker/src/BpkDatepicker.js +366 -0
- package/bpk-component-datepicker/src/BpkDatepicker.module.css +18 -0
- package/bpk-component-datepicker/src/BpkDatepicker.module.scss +25 -0
- package/bpk-component-datepicker/src/themeAttributes.js +29 -0
- package/bpk-component-description-list/README.md +46 -0
- package/bpk-component-description-list/examples.js +49 -0
- package/bpk-component-description-list/index.js +23 -0
- package/bpk-component-description-list/package.json +24 -0
- package/bpk-component-description-list/src/BpkDescriptionDetails.js +21 -0
- package/bpk-component-description-list/src/BpkDescriptionList.js +21 -0
- package/bpk-component-description-list/src/BpkDescriptionList.module.css +18 -0
- package/bpk-component-description-list/src/BpkDescriptionList.module.scss +37 -0
- package/bpk-component-description-list/src/BpkDescriptionTerm.js +21 -0
- package/bpk-component-description-list/src/ComponentFactory.js +54 -0
- package/bpk-component-dialog/README.md +105 -0
- package/bpk-component-dialog/examples.js +182 -0
- package/bpk-component-dialog/examples.module.css +18 -0
- package/bpk-component-dialog/examples.module.scss +25 -0
- package/bpk-component-dialog/index.js +26 -0
- package/bpk-component-dialog/package.json +32 -0
- package/bpk-component-dialog/src/BpkDialog.js +89 -0
- package/bpk-component-dialog/src/BpkDialog.module.css +18 -0
- package/bpk-component-dialog/src/BpkDialog.module.scss +80 -0
- package/bpk-component-dialog/src/BpkDialogInner.js +89 -0
- package/bpk-component-dialog/src/BpkDialogInner.module.css +18 -0
- package/bpk-component-dialog/src/BpkDialogInner.module.scss +62 -0
- package/bpk-component-dialog/src/common-types.js +99 -0
- package/bpk-component-dialog/stories.css +1 -0
- package/bpk-component-drawer/README.md +90 -0
- package/bpk-component-drawer/examples.js +271 -0
- package/bpk-component-drawer/examples.module.css +18 -0
- package/bpk-component-drawer/examples.module.scss +34 -0
- package/bpk-component-drawer/index.js +25 -0
- package/bpk-component-drawer/package.json +34 -0
- package/bpk-component-drawer/src/BpkDrawer.js +104 -0
- package/bpk-component-drawer/src/BpkDrawer.module.css +18 -0
- package/bpk-component-drawer/src/BpkDrawer.module.scss +23 -0
- package/bpk-component-drawer/src/BpkDrawerContent.js +168 -0
- package/bpk-component-drawer/src/BpkDrawerContent.module.css +18 -0
- package/bpk-component-drawer/src/BpkDrawerContent.module.scss +107 -0
- package/bpk-component-drawer/src/themeAttributes.js +23 -0
- package/bpk-component-fieldset/README.md +73 -0
- package/bpk-component-fieldset/examples.js +527 -0
- package/bpk-component-fieldset/examples.module.css +18 -0
- package/bpk-component-fieldset/examples.module.scss +46 -0
- package/bpk-component-fieldset/index.js +30 -0
- package/bpk-component-fieldset/package.json +36 -0
- package/bpk-component-fieldset/src/BpkFieldset.js +193 -0
- package/bpk-component-fieldset/src/BpkFieldset.module.css +18 -0
- package/bpk-component-fieldset/src/BpkFieldset.module.scss +39 -0
- package/bpk-component-fieldset/src/themeAttributes.js +19 -0
- package/bpk-component-flare/README.md +52 -0
- package/bpk-component-flare/examples.js +158 -0
- package/bpk-component-flare/examples.module.css +18 -0
- package/bpk-component-flare/examples.module.scss +66 -0
- package/bpk-component-flare/index.js +25 -0
- package/bpk-component-flare/package.json +29 -0
- package/bpk-component-flare/src/BpkContentBubble.js +102 -0
- package/bpk-component-flare/src/BpkFlareBar.js +76 -0
- package/bpk-component-flare/src/__generated__/js/corner-radius.js +5 -0
- package/bpk-component-flare/src/__generated__/js/pointer.js +5 -0
- package/bpk-component-flare/src/bpk-content-bubble.module.css +18 -0
- package/bpk-component-flare/src/bpk-content-bubble.module.scss +60 -0
- package/bpk-component-flare/src/bpk-flare-bar.module.css +18 -0
- package/bpk-component-flare/src/bpk-flare-bar.module.scss +74 -0
- package/bpk-component-flare/src/svgs/corner-radius.svg +1 -0
- package/bpk-component-flare/src/svgs/pointer.svg +1 -0
- package/bpk-component-form-validation/README.md +33 -0
- package/bpk-component-form-validation/examples.js +171 -0
- package/bpk-component-form-validation/examples.module.css +18 -0
- package/bpk-component-form-validation/examples.module.scss +39 -0
- package/bpk-component-form-validation/index.js +23 -0
- package/bpk-component-form-validation/package.json +34 -0
- package/bpk-component-form-validation/src/BpkFormValidation.js +84 -0
- package/bpk-component-form-validation/src/BpkFormValidation.module.css +18 -0
- package/bpk-component-form-validation/src/BpkFormValidation.module.scss +44 -0
- package/bpk-component-form-validation/src/themeAttributes.js +19 -0
- package/bpk-component-grid/README.md +90 -0
- package/bpk-component-grid/examples.js +796 -0
- package/bpk-component-grid/index.js +25 -0
- package/bpk-component-grid/package.json +24 -0
- package/bpk-component-grid/src/BpkGridColumn.js +117 -0
- package/bpk-component-grid/src/BpkGridColumn.module.css +18 -0
- package/bpk-component-grid/src/BpkGridColumn.module.scss +73 -0
- package/bpk-component-grid/src/BpkGridContainer.js +61 -0
- package/bpk-component-grid/src/BpkGridContainer.module.css +18 -0
- package/bpk-component-grid/src/BpkGridContainer.module.scss +33 -0
- package/bpk-component-grid/src/BpkGridRow.js +56 -0
- package/bpk-component-grid/src/BpkGridRow.module.css +18 -0
- package/bpk-component-grid/src/BpkGridRow.module.scss +29 -0
- package/bpk-component-grid-toggle/README.md +27 -0
- package/bpk-component-grid-toggle/examples.js +25 -0
- package/bpk-component-grid-toggle/index.js +21 -0
- package/bpk-component-grid-toggle/package.json +25 -0
- package/bpk-component-grid-toggle/src/BpkGridToggle.js +95 -0
- package/bpk-component-grid-toggle/src/BpkGridToggle.module.css +18 -0
- package/bpk-component-grid-toggle/src/BpkGridToggle.module.scss +52 -0
- package/bpk-component-heading/README.md +31 -0
- package/bpk-component-heading/examples.js +36 -0
- package/bpk-component-heading/index.js +23 -0
- package/bpk-component-heading/package.json +25 -0
- package/bpk-component-heading/src/BpkHeading.js +70 -0
- package/bpk-component-heading/src/BpkHeading.module.css +18 -0
- package/bpk-component-heading/src/BpkHeading.module.scss +49 -0
- package/bpk-component-horizontal-nav/README.md +103 -0
- package/bpk-component-horizontal-nav/examples.js +189 -0
- package/bpk-component-horizontal-nav/examples.module.css +18 -0
- package/bpk-component-horizontal-nav/examples.module.scss +48 -0
- package/bpk-component-horizontal-nav/index.js +32 -0
- package/bpk-component-horizontal-nav/package.json +30 -0
- package/bpk-component-horizontal-nav/src/BpkHorizontalNav.js +211 -0
- package/bpk-component-horizontal-nav/src/BpkHorizontalNav.module.css +18 -0
- package/bpk-component-horizontal-nav/src/BpkHorizontalNav.module.scss +37 -0
- package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.js +126 -0
- package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.module.css +18 -0
- package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.module.scss +152 -0
- package/bpk-component-icon/README.md +79 -0
- package/bpk-component-icon/all.js +33 -0
- package/bpk-component-icon/examples.js +152 -0
- package/bpk-component-icon/index.js +49 -0
- package/bpk-component-icon/lg/accessibility.js +8 -0
- package/bpk-component-icon/lg/account--add.js +8 -0
- package/bpk-component-icon/lg/account--female.js +8 -0
- package/bpk-component-icon/lg/account--id-card.js +8 -0
- package/bpk-component-icon/lg/account--name.js +8 -0
- package/bpk-component-icon/lg/account--permit.js +8 -0
- package/bpk-component-icon/lg/account-circle.js +8 -0
- package/bpk-component-icon/lg/account.js +8 -0
- package/bpk-component-icon/lg/add-circle.js +8 -0
- package/bpk-component-icon/lg/adult.js +8 -0
- package/bpk-component-icon/lg/aircon.js +8 -0
- package/bpk-component-icon/lg/aircraft.js +8 -0
- package/bpk-component-icon/lg/airline--multiple.js +8 -0
- package/bpk-component-icon/lg/airline.js +8 -0
- package/bpk-component-icon/lg/airports.js +8 -0
- package/bpk-component-icon/lg/alert--active.js +8 -0
- package/bpk-component-icon/lg/alert--add.js +8 -0
- package/bpk-component-icon/lg/alert--expired.js +8 -0
- package/bpk-component-icon/lg/alert--remove.js +8 -0
- package/bpk-component-icon/lg/arrow-down.js +8 -0
- package/bpk-component-icon/lg/arrow-left.js +8 -0
- package/bpk-component-icon/lg/arrow-right.js +8 -0
- package/bpk-component-icon/lg/arrow-up.js +8 -0
- package/bpk-component-icon/lg/award.js +8 -0
- package/bpk-component-icon/lg/baby-carriage.js +8 -0
- package/bpk-component-icon/lg/baggage--add.js +8 -0
- package/bpk-component-icon/lg/baggage--remove.js +8 -0
- package/bpk-component-icon/lg/baggage-cross.js +8 -0
- package/bpk-component-icon/lg/baggage-tick.js +8 -0
- package/bpk-component-icon/lg/baggage.js +8 -0
- package/bpk-component-icon/lg/bar.js +8 -0
- package/bpk-component-icon/lg/beach.js +8 -0
- package/bpk-component-icon/lg/beer.js +8 -0
- package/bpk-component-icon/lg/breakfast-cross.js +8 -0
- package/bpk-component-icon/lg/breakfast-tick.js +8 -0
- package/bpk-component-icon/lg/bus.js +8 -0
- package/bpk-component-icon/lg/business.js +8 -0
- package/bpk-component-icon/lg/cafe.js +8 -0
- package/bpk-component-icon/lg/calendar.js +8 -0
- package/bpk-component-icon/lg/call-back.js +8 -0
- package/bpk-component-icon/lg/camera.js +8 -0
- package/bpk-component-icon/lg/camper-van.js +8 -0
- package/bpk-component-icon/lg/car-door.js +8 -0
- package/bpk-component-icon/lg/car-wash.js +8 -0
- package/bpk-component-icon/lg/cars-flexible.js +8 -0
- package/bpk-component-icon/lg/cars.js +8 -0
- package/bpk-component-icon/lg/center-location.js +8 -0
- package/bpk-component-icon/lg/chart.js +8 -0
- package/bpk-component-icon/lg/chauffeur.js +8 -0
- package/bpk-component-icon/lg/chevron-down.js +8 -0
- package/bpk-component-icon/lg/chevron-left.js +8 -0
- package/bpk-component-icon/lg/chevron-right.js +8 -0
- package/bpk-component-icon/lg/chevron-up.js +8 -0
- package/bpk-component-icon/lg/child-seat.js +8 -0
- package/bpk-component-icon/lg/child.js +8 -0
- package/bpk-component-icon/lg/city-center.js +8 -0
- package/bpk-component-icon/lg/city.js +8 -0
- package/bpk-component-icon/lg/clean-policy.js +8 -0
- package/bpk-component-icon/lg/clean.js +8 -0
- package/bpk-component-icon/lg/cleaning-medical.js +8 -0
- package/bpk-component-icon/lg/cloakroom.js +8 -0
- package/bpk-component-icon/lg/close-circle.js +8 -0
- package/bpk-component-icon/lg/close.js +8 -0
- package/bpk-component-icon/lg/collapse.js +8 -0
- package/bpk-component-icon/lg/content--copy.js +8 -0
- package/bpk-component-icon/lg/content--event.js +8 -0
- package/bpk-component-icon/lg/content--guides.js +8 -0
- package/bpk-component-icon/lg/currency.js +8 -0
- package/bpk-component-icon/lg/data.js +8 -0
- package/bpk-component-icon/lg/deals.js +8 -0
- package/bpk-component-icon/lg/depart.js +8 -0
- package/bpk-component-icon/lg/device-mid.js +8 -0
- package/bpk-component-icon/lg/device-wide.js +8 -0
- package/bpk-component-icon/lg/direct.js +8 -0
- package/bpk-component-icon/lg/document-csv.js +8 -0
- package/bpk-component-icon/lg/document-pdf.js +8 -0
- package/bpk-component-icon/lg/download.js +8 -0
- package/bpk-component-icon/lg/duration.js +8 -0
- package/bpk-component-icon/lg/eco-leaf.js +8 -0
- package/bpk-component-icon/lg/edit.js +8 -0
- package/bpk-component-icon/lg/education.js +8 -0
- package/bpk-component-icon/lg/electric.js +8 -0
- package/bpk-component-icon/lg/end-call.js +8 -0
- package/bpk-component-icon/lg/estimated.js +8 -0
- package/bpk-component-icon/lg/exclamation-circle.js +8 -0
- package/bpk-component-icon/lg/exclamation.js +8 -0
- package/bpk-component-icon/lg/expand.js +8 -0
- package/bpk-component-icon/lg/explore.js +8 -0
- package/bpk-component-icon/lg/face--blank.js +8 -0
- package/bpk-component-icon/lg/face--happy.js +8 -0
- package/bpk-component-icon/lg/face--sad.js +8 -0
- package/bpk-component-icon/lg/face-id.js +8 -0
- package/bpk-component-icon/lg/face-mask.js +8 -0
- package/bpk-component-icon/lg/family.js +8 -0
- package/bpk-component-icon/lg/fast-track.js +8 -0
- package/bpk-component-icon/lg/fast-train.js +8 -0
- package/bpk-component-icon/lg/filter.js +8 -0
- package/bpk-component-icon/lg/fingerprint.js +8 -0
- package/bpk-component-icon/lg/flag.js +8 -0
- package/bpk-component-icon/lg/flask.js +8 -0
- package/bpk-component-icon/lg/flight-flexible.js +8 -0
- package/bpk-component-icon/lg/flight-landing.js +8 -0
- package/bpk-component-icon/lg/flight-takeoff.js +8 -0
- package/bpk-component-icon/lg/flight.js +8 -0
- package/bpk-component-icon/lg/food.js +8 -0
- package/bpk-component-icon/lg/gears-automatic-circle.js +8 -0
- package/bpk-component-icon/lg/gears-automatic.js +8 -0
- package/bpk-component-icon/lg/gears-manual-circle.js +8 -0
- package/bpk-component-icon/lg/gears-manual.js +8 -0
- package/bpk-component-icon/lg/globe.js +8 -0
- package/bpk-component-icon/lg/grid-layout.js +8 -0
- package/bpk-component-icon/lg/headset.js +8 -0
- package/bpk-component-icon/lg/health-fitness.js +8 -0
- package/bpk-component-icon/lg/heart--outline.js +8 -0
- package/bpk-component-icon/lg/heart.js +8 -0
- package/bpk-component-icon/lg/help-circle.js +8 -0
- package/bpk-component-icon/lg/help.js +8 -0
- package/bpk-component-icon/lg/hide.js +8 -0
- package/bpk-component-icon/lg/hotel-flexible.js +8 -0
- package/bpk-component-icon/lg/hotels--disabled-facilities.js +8 -0
- package/bpk-component-icon/lg/hotels--jacuzzi.js +8 -0
- package/bpk-component-icon/lg/hotels--pets-allowed.js +8 -0
- package/bpk-component-icon/lg/hotels--smoking.js +8 -0
- package/bpk-component-icon/lg/hotels.js +8 -0
- package/bpk-component-icon/lg/infant.js +8 -0
- package/bpk-component-icon/lg/information--language-alert.js +8 -0
- package/bpk-component-icon/lg/information--language-question.js +8 -0
- package/bpk-component-icon/lg/information--language.js +8 -0
- package/bpk-component-icon/lg/information-circle.js +8 -0
- package/bpk-component-icon/lg/information.js +8 -0
- package/bpk-component-icon/lg/insurance.js +8 -0
- package/bpk-component-icon/lg/key.js +8 -0
- package/bpk-component-icon/lg/keypad.js +8 -0
- package/bpk-component-icon/lg/landmark.js +8 -0
- package/bpk-component-icon/lg/language.js +8 -0
- package/bpk-component-icon/lg/legroom--extra.js +8 -0
- package/bpk-component-icon/lg/legroom--normal.js +8 -0
- package/bpk-component-icon/lg/legroom--reduced.js +8 -0
- package/bpk-component-icon/lg/leisure.js +8 -0
- package/bpk-component-icon/lg/lightning.js +8 -0
- package/bpk-component-icon/lg/list.js +8 -0
- package/bpk-component-icon/lg/location.js +8 -0
- package/bpk-component-icon/lg/lock.js +8 -0
- package/bpk-component-icon/lg/logout.js +8 -0
- package/bpk-component-icon/lg/long-arrow-down.js +8 -0
- package/bpk-component-icon/lg/long-arrow-left.js +8 -0
- package/bpk-component-icon/lg/long-arrow-right.js +8 -0
- package/bpk-component-icon/lg/long-arrow-up.js +8 -0
- package/bpk-component-icon/lg/lounge.js +8 -0
- package/bpk-component-icon/lg/luggageall.js +8 -0
- package/bpk-component-icon/lg/mail.js +8 -0
- package/bpk-component-icon/lg/map.js +8 -0
- package/bpk-component-icon/lg/meal.js +8 -0
- package/bpk-component-icon/lg/media.js +8 -0
- package/bpk-component-icon/lg/menu--horizontal.js +8 -0
- package/bpk-component-icon/lg/menu--vertical.js +8 -0
- package/bpk-component-icon/lg/menu.js +8 -0
- package/bpk-component-icon/lg/mileage.js +8 -0
- package/bpk-component-icon/lg/minus.js +8 -0
- package/bpk-component-icon/lg/mobile.js +8 -0
- package/bpk-component-icon/lg/money.js +8 -0
- package/bpk-component-icon/lg/multiple-bookings.js +8 -0
- package/bpk-component-icon/lg/music.js +8 -0
- package/bpk-component-icon/lg/mute.js +8 -0
- package/bpk-component-icon/lg/native-android--back.js +8 -0
- package/bpk-component-icon/lg/native-android--close.js +8 -0
- package/bpk-component-icon/lg/native-android--forward.js +8 -0
- package/bpk-component-icon/lg/native-ios-close.js +8 -0
- package/bpk-component-icon/lg/navigation.js +8 -0
- package/bpk-component-icon/lg/new-window.js +8 -0
- package/bpk-component-icon/lg/news.js +8 -0
- package/bpk-component-icon/lg/night.js +8 -0
- package/bpk-component-icon/lg/not-allowed.js +8 -0
- package/bpk-component-icon/lg/onsen.js +8 -0
- package/bpk-component-icon/lg/paid.js +8 -0
- package/bpk-component-icon/lg/paperclip.js +8 -0
- package/bpk-component-icon/lg/parking.js +8 -0
- package/bpk-component-icon/lg/passport.js +8 -0
- package/bpk-component-icon/lg/pause.js +8 -0
- package/bpk-component-icon/lg/payment-card.js +8 -0
- package/bpk-component-icon/lg/petrol.js +8 -0
- package/bpk-component-icon/lg/phone-call.js +8 -0
- package/bpk-component-icon/lg/picture.js +8 -0
- package/bpk-component-icon/lg/pin.js +8 -0
- package/bpk-component-icon/lg/plane-seat.js +8 -0
- package/bpk-component-icon/lg/play.js +8 -0
- package/bpk-component-icon/lg/plus.js +8 -0
- package/bpk-component-icon/lg/policy.js +8 -0
- package/bpk-component-icon/lg/powerplug.js +8 -0
- package/bpk-component-icon/lg/ppe.js +8 -0
- package/bpk-component-icon/lg/price-alerts.js +8 -0
- package/bpk-component-icon/lg/price-tag.js +8 -0
- package/bpk-component-icon/lg/print.js +8 -0
- package/bpk-component-icon/lg/recent-searches.js +8 -0
- package/bpk-component-icon/lg/redo.js +8 -0
- package/bpk-component-icon/lg/refresh.js +8 -0
- package/bpk-component-icon/lg/return.js +8 -0
- package/bpk-component-icon/lg/room.js +8 -0
- package/bpk-component-icon/lg/scales.js +8 -0
- package/bpk-component-icon/lg/search.js +8 -0
- package/bpk-component-icon/lg/self-service.js +8 -0
- package/bpk-component-icon/lg/send-message.js +8 -0
- package/bpk-component-icon/lg/services.js +8 -0
- package/bpk-component-icon/lg/settings.js +8 -0
- package/bpk-component-icon/lg/share--android.js +8 -0
- package/bpk-component-icon/lg/share--ios.js +8 -0
- package/bpk-component-icon/lg/share.js +8 -0
- package/bpk-component-icon/lg/single-booking.js +8 -0
- package/bpk-component-icon/lg/social-distancing.js +8 -0
- package/bpk-component-icon/lg/social-like.js +8 -0
- package/bpk-component-icon/lg/sort-down.js +8 -0
- package/bpk-component-icon/lg/sort-up.js +8 -0
- package/bpk-component-icon/lg/sort.js +8 -0
- package/bpk-component-icon/lg/speaker.js +8 -0
- package/bpk-component-icon/lg/star-half.js +8 -0
- package/bpk-component-icon/lg/star-outline.js +8 -0
- package/bpk-component-icon/lg/star.js +8 -0
- package/bpk-component-icon/lg/stops.js +8 -0
- package/bpk-component-icon/lg/swap--horizontal.js +8 -0
- package/bpk-component-icon/lg/swap--vertical.js +8 -0
- package/bpk-component-icon/lg/swap.js +8 -0
- package/bpk-component-icon/lg/taxi.js +8 -0
- package/bpk-component-icon/lg/thumbs-down.js +8 -0
- package/bpk-component-icon/lg/thumbs-up.js +8 -0
- package/bpk-component-icon/lg/tick-circle.js +8 -0
- package/bpk-component-icon/lg/tick.js +8 -0
- package/bpk-component-icon/lg/ticket-flexible.js +8 -0
- package/bpk-component-icon/lg/ticket.js +8 -0
- package/bpk-component-icon/lg/time.js +8 -0
- package/bpk-component-icon/lg/toilets.js +8 -0
- package/bpk-component-icon/lg/train.js +8 -0
- package/bpk-component-icon/lg/transmission-automatic.js +8 -0
- package/bpk-component-icon/lg/transmission-manual.js +8 -0
- package/bpk-component-icon/lg/trash.js +8 -0
- package/bpk-component-icon/lg/trend--down.js +8 -0
- package/bpk-component-icon/lg/trend--steady.js +8 -0
- package/bpk-component-icon/lg/trend--will-rise.js +8 -0
- package/bpk-component-icon/lg/trend.js +8 -0
- package/bpk-component-icon/lg/trips.js +8 -0
- package/bpk-component-icon/lg/undo.js +8 -0
- package/bpk-component-icon/lg/unlock.js +8 -0
- package/bpk-component-icon/lg/unmute.js +8 -0
- package/bpk-component-icon/lg/upgrade.js +8 -0
- package/bpk-component-icon/lg/use-location.js +8 -0
- package/bpk-component-icon/lg/view.js +8 -0
- package/bpk-component-icon/lg/virus.js +8 -0
- package/bpk-component-icon/lg/wallet.js +8 -0
- package/bpk-component-icon/lg/weather--clear.js +8 -0
- package/bpk-component-icon/lg/weather--cloudy.js +8 -0
- package/bpk-component-icon/lg/weather--fog.js +8 -0
- package/bpk-component-icon/lg/weather--partly-cloudy.js +8 -0
- package/bpk-component-icon/lg/weather--rain.js +8 -0
- package/bpk-component-icon/lg/weather--snow.js +8 -0
- package/bpk-component-icon/lg/weather--thunderstorm.js +8 -0
- package/bpk-component-icon/lg/weather--tornado.js +8 -0
- package/bpk-component-icon/lg/weather--wind.js +8 -0
- package/bpk-component-icon/lg/weather.js +8 -0
- package/bpk-component-icon/lg/wifi.js +8 -0
- package/bpk-component-icon/lg/window--reduce.js +8 -0
- package/bpk-component-icon/lg/window.js +8 -0
- package/bpk-component-icon/lg/world--amer.js +8 -0
- package/bpk-component-icon/lg/world--apac.js +8 -0
- package/bpk-component-icon/lg/world--emea.js +8 -0
- package/bpk-component-icon/package.json +34 -0
- package/bpk-component-icon/sm/accessibility.js +8 -0
- package/bpk-component-icon/sm/account--add.js +8 -0
- package/bpk-component-icon/sm/account--female.js +8 -0
- package/bpk-component-icon/sm/account--id-card.js +8 -0
- package/bpk-component-icon/sm/account--name.js +8 -0
- package/bpk-component-icon/sm/account--permit.js +8 -0
- package/bpk-component-icon/sm/account-circle.js +8 -0
- package/bpk-component-icon/sm/account.js +8 -0
- package/bpk-component-icon/sm/add-circle.js +8 -0
- package/bpk-component-icon/sm/adult.js +8 -0
- package/bpk-component-icon/sm/aircon.js +8 -0
- package/bpk-component-icon/sm/aircraft.js +8 -0
- package/bpk-component-icon/sm/airline--multiple.js +8 -0
- package/bpk-component-icon/sm/airline.js +8 -0
- package/bpk-component-icon/sm/airports.js +8 -0
- package/bpk-component-icon/sm/alert--active.js +8 -0
- package/bpk-component-icon/sm/alert--add.js +8 -0
- package/bpk-component-icon/sm/alert--expired.js +8 -0
- package/bpk-component-icon/sm/alert--remove.js +8 -0
- package/bpk-component-icon/sm/arrow-down.js +8 -0
- package/bpk-component-icon/sm/arrow-left.js +8 -0
- package/bpk-component-icon/sm/arrow-right.js +8 -0
- package/bpk-component-icon/sm/arrow-up.js +8 -0
- package/bpk-component-icon/sm/award.js +8 -0
- package/bpk-component-icon/sm/baby-carriage.js +8 -0
- package/bpk-component-icon/sm/baggage--add.js +8 -0
- package/bpk-component-icon/sm/baggage--remove.js +8 -0
- package/bpk-component-icon/sm/baggage-cross.js +8 -0
- package/bpk-component-icon/sm/baggage-tick.js +8 -0
- package/bpk-component-icon/sm/baggage.js +8 -0
- package/bpk-component-icon/sm/bar.js +8 -0
- package/bpk-component-icon/sm/beach.js +8 -0
- package/bpk-component-icon/sm/beer.js +8 -0
- package/bpk-component-icon/sm/breakfast-cross.js +8 -0
- package/bpk-component-icon/sm/breakfast-tick.js +8 -0
- package/bpk-component-icon/sm/bus.js +8 -0
- package/bpk-component-icon/sm/business.js +8 -0
- package/bpk-component-icon/sm/cafe.js +8 -0
- package/bpk-component-icon/sm/calendar.js +8 -0
- package/bpk-component-icon/sm/call-back.js +8 -0
- package/bpk-component-icon/sm/camera.js +8 -0
- package/bpk-component-icon/sm/camper-van.js +8 -0
- package/bpk-component-icon/sm/car-door.js +8 -0
- package/bpk-component-icon/sm/car-wash.js +8 -0
- package/bpk-component-icon/sm/cars-flexible.js +8 -0
- package/bpk-component-icon/sm/cars.js +8 -0
- package/bpk-component-icon/sm/chart.js +8 -0
- package/bpk-component-icon/sm/chauffeur.js +8 -0
- package/bpk-component-icon/sm/chevron-down.js +8 -0
- package/bpk-component-icon/sm/chevron-left.js +8 -0
- package/bpk-component-icon/sm/chevron-right.js +8 -0
- package/bpk-component-icon/sm/chevron-up.js +8 -0
- package/bpk-component-icon/sm/child-seat.js +8 -0
- package/bpk-component-icon/sm/child.js +8 -0
- package/bpk-component-icon/sm/city-center.js +8 -0
- package/bpk-component-icon/sm/city.js +8 -0
- package/bpk-component-icon/sm/clean-policy.js +8 -0
- package/bpk-component-icon/sm/clean.js +8 -0
- package/bpk-component-icon/sm/cleaning-medical.js +8 -0
- package/bpk-component-icon/sm/cloakroom.js +8 -0
- package/bpk-component-icon/sm/close-circle.js +8 -0
- package/bpk-component-icon/sm/close.js +8 -0
- package/bpk-component-icon/sm/collapse.js +8 -0
- package/bpk-component-icon/sm/content--copy.js +8 -0
- package/bpk-component-icon/sm/content--event.js +8 -0
- package/bpk-component-icon/sm/content--guides.js +8 -0
- package/bpk-component-icon/sm/currency.js +8 -0
- package/bpk-component-icon/sm/data.js +8 -0
- package/bpk-component-icon/sm/deals.js +8 -0
- package/bpk-component-icon/sm/depart.js +8 -0
- package/bpk-component-icon/sm/device-mid.js +8 -0
- package/bpk-component-icon/sm/device-wide.js +8 -0
- package/bpk-component-icon/sm/direct.js +8 -0
- package/bpk-component-icon/sm/document-csv.js +8 -0
- package/bpk-component-icon/sm/document-pdf.js +8 -0
- package/bpk-component-icon/sm/download.js +8 -0
- package/bpk-component-icon/sm/duration.js +8 -0
- package/bpk-component-icon/sm/eco-leaf.js +8 -0
- package/bpk-component-icon/sm/edit.js +8 -0
- package/bpk-component-icon/sm/education.js +8 -0
- package/bpk-component-icon/sm/electric.js +8 -0
- package/bpk-component-icon/sm/end-call.js +8 -0
- package/bpk-component-icon/sm/estimated.js +8 -0
- package/bpk-component-icon/sm/exclamation-circle.js +8 -0
- package/bpk-component-icon/sm/exclamation.js +8 -0
- package/bpk-component-icon/sm/expand.js +8 -0
- package/bpk-component-icon/sm/explore.js +8 -0
- package/bpk-component-icon/sm/face--blank.js +8 -0
- package/bpk-component-icon/sm/face--happy.js +8 -0
- package/bpk-component-icon/sm/face--sad.js +8 -0
- package/bpk-component-icon/sm/face-mask.js +8 -0
- package/bpk-component-icon/sm/family.js +8 -0
- package/bpk-component-icon/sm/fast-track.js +8 -0
- package/bpk-component-icon/sm/fast-train.js +8 -0
- package/bpk-component-icon/sm/filter.js +8 -0
- package/bpk-component-icon/sm/flag.js +8 -0
- package/bpk-component-icon/sm/flask.js +8 -0
- package/bpk-component-icon/sm/flight-flexible.js +8 -0
- package/bpk-component-icon/sm/flight-landing.js +8 -0
- package/bpk-component-icon/sm/flight-takeoff.js +8 -0
- package/bpk-component-icon/sm/flight.js +8 -0
- package/bpk-component-icon/sm/food.js +8 -0
- package/bpk-component-icon/sm/gears-automatic-circle.js +8 -0
- package/bpk-component-icon/sm/gears-automatic.js +8 -0
- package/bpk-component-icon/sm/gears-manual-circle.js +8 -0
- package/bpk-component-icon/sm/gears-manual.js +8 -0
- package/bpk-component-icon/sm/globe.js +8 -0
- package/bpk-component-icon/sm/grid-layout.js +8 -0
- package/bpk-component-icon/sm/headset.js +8 -0
- package/bpk-component-icon/sm/health-fitness.js +8 -0
- package/bpk-component-icon/sm/heart--outline.js +8 -0
- package/bpk-component-icon/sm/heart.js +8 -0
- package/bpk-component-icon/sm/help-circle.js +8 -0
- package/bpk-component-icon/sm/help.js +8 -0
- package/bpk-component-icon/sm/hide.js +8 -0
- package/bpk-component-icon/sm/hotel-flexible.js +8 -0
- package/bpk-component-icon/sm/hotels--disabled-facilities.js +8 -0
- package/bpk-component-icon/sm/hotels--jacuzzi.js +8 -0
- package/bpk-component-icon/sm/hotels--pets-allowed.js +8 -0
- package/bpk-component-icon/sm/hotels--smoking.js +8 -0
- package/bpk-component-icon/sm/hotels.js +8 -0
- package/bpk-component-icon/sm/infant.js +8 -0
- package/bpk-component-icon/sm/information--language-alert.js +8 -0
- package/bpk-component-icon/sm/information--language-question.js +8 -0
- package/bpk-component-icon/sm/information--language.js +8 -0
- package/bpk-component-icon/sm/information-circle.js +8 -0
- package/bpk-component-icon/sm/information.js +8 -0
- package/bpk-component-icon/sm/insurance.js +8 -0
- package/bpk-component-icon/sm/key.js +8 -0
- package/bpk-component-icon/sm/keypad.js +8 -0
- package/bpk-component-icon/sm/landmark.js +8 -0
- package/bpk-component-icon/sm/language.js +8 -0
- package/bpk-component-icon/sm/legroom--extra.js +8 -0
- package/bpk-component-icon/sm/legroom--normal.js +8 -0
- package/bpk-component-icon/sm/legroom--reduced.js +8 -0
- package/bpk-component-icon/sm/leisure.js +8 -0
- package/bpk-component-icon/sm/lightning.js +8 -0
- package/bpk-component-icon/sm/list.js +8 -0
- package/bpk-component-icon/sm/location.js +8 -0
- package/bpk-component-icon/sm/lock.js +8 -0
- package/bpk-component-icon/sm/logout.js +8 -0
- package/bpk-component-icon/sm/long-arrow-down.js +8 -0
- package/bpk-component-icon/sm/long-arrow-left.js +8 -0
- package/bpk-component-icon/sm/long-arrow-right.js +8 -0
- package/bpk-component-icon/sm/long-arrow-up.js +8 -0
- package/bpk-component-icon/sm/lounge.js +8 -0
- package/bpk-component-icon/sm/luggageall.js +8 -0
- package/bpk-component-icon/sm/mail.js +8 -0
- package/bpk-component-icon/sm/map.js +8 -0
- package/bpk-component-icon/sm/meal.js +8 -0
- package/bpk-component-icon/sm/media.js +8 -0
- package/bpk-component-icon/sm/menu--horizontal.js +8 -0
- package/bpk-component-icon/sm/menu--vertical.js +8 -0
- package/bpk-component-icon/sm/menu.js +8 -0
- package/bpk-component-icon/sm/mileage.js +8 -0
- package/bpk-component-icon/sm/minus.js +8 -0
- package/bpk-component-icon/sm/mobile.js +8 -0
- package/bpk-component-icon/sm/money.js +8 -0
- package/bpk-component-icon/sm/multiple-bookings.js +8 -0
- package/bpk-component-icon/sm/music.js +8 -0
- package/bpk-component-icon/sm/mute.js +8 -0
- package/bpk-component-icon/sm/native-android--back.js +8 -0
- package/bpk-component-icon/sm/native-android--close.js +8 -0
- package/bpk-component-icon/sm/native-android--forward.js +8 -0
- package/bpk-component-icon/sm/native-ios-close.js +8 -0
- package/bpk-component-icon/sm/navigation.js +8 -0
- package/bpk-component-icon/sm/new-window.js +8 -0
- package/bpk-component-icon/sm/news.js +8 -0
- package/bpk-component-icon/sm/night.js +8 -0
- package/bpk-component-icon/sm/not-allowed.js +8 -0
- package/bpk-component-icon/sm/onsen.js +8 -0
- package/bpk-component-icon/sm/paid.js +8 -0
- package/bpk-component-icon/sm/paperclip.js +8 -0
- package/bpk-component-icon/sm/parking.js +8 -0
- package/bpk-component-icon/sm/passport.js +8 -0
- package/bpk-component-icon/sm/pause.js +8 -0
- package/bpk-component-icon/sm/payment-card.js +8 -0
- package/bpk-component-icon/sm/petrol.js +8 -0
- package/bpk-component-icon/sm/phone-call.js +8 -0
- package/bpk-component-icon/sm/picture.js +8 -0
- package/bpk-component-icon/sm/pin.js +8 -0
- package/bpk-component-icon/sm/plane-seat.js +8 -0
- package/bpk-component-icon/sm/play.js +8 -0
- package/bpk-component-icon/sm/plus.js +8 -0
- package/bpk-component-icon/sm/policy.js +8 -0
- package/bpk-component-icon/sm/powerplug.js +8 -0
- package/bpk-component-icon/sm/ppe.js +8 -0
- package/bpk-component-icon/sm/price-alerts.js +8 -0
- package/bpk-component-icon/sm/price-tag.js +8 -0
- package/bpk-component-icon/sm/print.js +8 -0
- package/bpk-component-icon/sm/recent-searches.js +8 -0
- package/bpk-component-icon/sm/redo.js +8 -0
- package/bpk-component-icon/sm/refresh.js +8 -0
- package/bpk-component-icon/sm/return.js +8 -0
- package/bpk-component-icon/sm/room.js +8 -0
- package/bpk-component-icon/sm/scales.js +8 -0
- package/bpk-component-icon/sm/search.js +8 -0
- package/bpk-component-icon/sm/self-service.js +8 -0
- package/bpk-component-icon/sm/send-message.js +8 -0
- package/bpk-component-icon/sm/services.js +8 -0
- package/bpk-component-icon/sm/settings.js +8 -0
- package/bpk-component-icon/sm/share--android.js +8 -0
- package/bpk-component-icon/sm/share--ios.js +8 -0
- package/bpk-component-icon/sm/share.js +8 -0
- package/bpk-component-icon/sm/single-booking.js +8 -0
- package/bpk-component-icon/sm/social-distancing.js +8 -0
- package/bpk-component-icon/sm/social-like.js +8 -0
- package/bpk-component-icon/sm/sort-down.js +8 -0
- package/bpk-component-icon/sm/sort-up.js +8 -0
- package/bpk-component-icon/sm/sort.js +8 -0
- package/bpk-component-icon/sm/speaker.js +8 -0
- package/bpk-component-icon/sm/star-half.js +8 -0
- package/bpk-component-icon/sm/star-outline.js +8 -0
- package/bpk-component-icon/sm/star.js +8 -0
- package/bpk-component-icon/sm/stops.js +8 -0
- package/bpk-component-icon/sm/swap--horizontal.js +8 -0
- package/bpk-component-icon/sm/swap--vertical.js +8 -0
- package/bpk-component-icon/sm/swap.js +8 -0
- package/bpk-component-icon/sm/taxi.js +8 -0
- package/bpk-component-icon/sm/thumbs-down.js +8 -0
- package/bpk-component-icon/sm/thumbs-up.js +8 -0
- package/bpk-component-icon/sm/tick-circle.js +8 -0
- package/bpk-component-icon/sm/tick.js +8 -0
- package/bpk-component-icon/sm/ticket-flexible.js +8 -0
- package/bpk-component-icon/sm/ticket.js +8 -0
- package/bpk-component-icon/sm/time.js +8 -0
- package/bpk-component-icon/sm/toilets.js +8 -0
- package/bpk-component-icon/sm/train.js +8 -0
- package/bpk-component-icon/sm/transmission-automatic.js +8 -0
- package/bpk-component-icon/sm/transmission-manual.js +8 -0
- package/bpk-component-icon/sm/trash.js +8 -0
- package/bpk-component-icon/sm/trend--down.js +8 -0
- package/bpk-component-icon/sm/trend--steady.js +8 -0
- package/bpk-component-icon/sm/trend--will-rise.js +8 -0
- package/bpk-component-icon/sm/trend.js +8 -0
- package/bpk-component-icon/sm/trips.js +8 -0
- package/bpk-component-icon/sm/undo.js +8 -0
- package/bpk-component-icon/sm/unlock.js +8 -0
- package/bpk-component-icon/sm/unmute.js +8 -0
- package/bpk-component-icon/sm/upgrade.js +8 -0
- package/bpk-component-icon/sm/use-location.js +8 -0
- package/bpk-component-icon/sm/view.js +8 -0
- package/bpk-component-icon/sm/virus.js +8 -0
- package/bpk-component-icon/sm/wallet.js +8 -0
- package/bpk-component-icon/sm/weather--clear.js +8 -0
- package/bpk-component-icon/sm/weather--cloudy.js +8 -0
- package/bpk-component-icon/sm/weather--fog.js +8 -0
- package/bpk-component-icon/sm/weather--partly-cloudy.js +8 -0
- package/bpk-component-icon/sm/weather--rain.js +8 -0
- package/bpk-component-icon/sm/weather--snow.js +8 -0
- package/bpk-component-icon/sm/weather--thunderstorm.js +8 -0
- package/bpk-component-icon/sm/weather--tornado.js +8 -0
- package/bpk-component-icon/sm/weather--wind.js +8 -0
- package/bpk-component-icon/sm/weather.js +8 -0
- package/bpk-component-icon/sm/wifi.js +8 -0
- package/bpk-component-icon/sm/window--reduce.js +8 -0
- package/bpk-component-icon/sm/window.js +8 -0
- package/bpk-component-icon/sm/world--amer.js +8 -0
- package/bpk-component-icon/sm/world--apac.js +8 -0
- package/bpk-component-icon/sm/world--emea.js +8 -0
- package/bpk-component-icon/src/BpkIcon.module.css +18 -0
- package/bpk-component-icon/src/BpkIcon.module.scss +33 -0
- package/bpk-component-icon/src/classNameModifierHOCFactory.js +53 -0
- package/bpk-component-icon/src/withAlignment.js +47 -0
- package/bpk-component-icon/src/withDescription.js +44 -0
- package/bpk-component-icon/src/withDescription.module.css +18 -0
- package/bpk-component-icon/src/withDescription.module.scss +22 -0
- package/bpk-component-icon/src/withRtlSupport.js +28 -0
- package/bpk-component-image/README.md +142 -0
- package/bpk-component-image/examples.js +216 -0
- package/bpk-component-image/index.js +37 -0
- package/bpk-component-image/package.json +31 -0
- package/bpk-component-image/src/BpkBackgroundImage.js +192 -0
- package/bpk-component-image/src/BpkBackgroundImage.module.css +18 -0
- package/bpk-component-image/src/BpkBackgroundImage.module.scss +46 -0
- package/bpk-component-image/src/BpkImage.js +252 -0
- package/bpk-component-image/src/BpkImage.module.css +18 -0
- package/bpk-component-image/src/BpkImage.module.scss +89 -0
- package/bpk-component-image/src/BpkImageBorderRadiusStyles.js +23 -0
- package/bpk-component-image/src/customPropTypes.js +37 -0
- package/bpk-component-image/src/withLazyLoading.js +181 -0
- package/bpk-component-image/src/withLoadingBehavior.js +65 -0
- package/bpk-component-infinite-scroll/README.md +187 -0
- package/bpk-component-infinite-scroll/examples.js +279 -0
- package/bpk-component-infinite-scroll/examples.module.css +18 -0
- package/bpk-component-infinite-scroll/examples.module.scss +46 -0
- package/bpk-component-infinite-scroll/index.js +29 -0
- package/bpk-component-infinite-scroll/package.json +31 -0
- package/bpk-component-infinite-scroll/src/DataSource.js +85 -0
- package/bpk-component-infinite-scroll/src/intersection-observer.js +27 -0
- package/bpk-component-infinite-scroll/src/withInfiniteScroll-test.flow.js +102 -0
- package/bpk-component-infinite-scroll/src/withInfiniteScroll.js +297 -0
- package/bpk-component-infinite-scroll/src/withInfiniteScroll.module.css +18 -0
- package/bpk-component-infinite-scroll/src/withInfiniteScroll.module.scss +25 -0
- package/bpk-component-input/README.md +121 -0
- package/bpk-component-input/examples.js +490 -0
- package/bpk-component-input/examples.module.css +18 -0
- package/bpk-component-input/examples.module.scss +57 -0
- package/bpk-component-input/index.js +50 -0
- package/bpk-component-input/package.json +30 -0
- package/bpk-component-input/src/BpkClearButton.js +74 -0
- package/bpk-component-input/src/BpkClearButton.module.css +18 -0
- package/bpk-component-input/src/BpkClearButton.module.scss +40 -0
- package/bpk-component-input/src/BpkInput.js +178 -0
- package/bpk-component-input/src/BpkInput.module.css +18 -0
- package/bpk-component-input/src/BpkInput.module.scss +86 -0
- package/bpk-component-input/src/common-types.js +129 -0
- package/bpk-component-input/src/themeAttributes.js +19 -0
- package/bpk-component-input/src/withOpenEvents.js +186 -0
- package/bpk-component-label/README.md +30 -0
- package/bpk-component-label/examples.js +67 -0
- package/bpk-component-label/index.js +24 -0
- package/bpk-component-label/package.json +24 -0
- package/bpk-component-label/src/BpkLabel.js +84 -0
- package/bpk-component-label/src/BpkLabel.module.css +18 -0
- package/bpk-component-label/src/BpkLabel.module.scss +43 -0
- package/bpk-component-link/README.md +68 -0
- package/bpk-component-link/examples.js +110 -0
- package/bpk-component-link/index.js +28 -0
- package/bpk-component-link/package.json +28 -0
- package/bpk-component-link/src/BpkButtonLink.js +79 -0
- package/bpk-component-link/src/BpkLink.js +109 -0
- package/bpk-component-link/src/BpkLink.module.css +18 -0
- package/bpk-component-link/src/BpkLink.module.scss +31 -0
- package/bpk-component-link/src/themeAttributes.js +35 -0
- package/bpk-component-list/README.md +48 -0
- package/bpk-component-list/examples.js +56 -0
- package/bpk-component-list/index.js +24 -0
- package/bpk-component-list/package.json +24 -0
- package/bpk-component-list/src/BpkList.js +58 -0
- package/bpk-component-list/src/BpkList.module.css +18 -0
- package/bpk-component-list/src/BpkList.module.scss +31 -0
- package/bpk-component-list/src/BpkListItem.js +54 -0
- package/bpk-component-loading-button/README.md +48 -0
- package/bpk-component-loading-button/examples.js +660 -0
- package/bpk-component-loading-button/index.js +24 -0
- package/bpk-component-loading-button/package.json +30 -0
- package/bpk-component-loading-button/src/BpkLoadingButton.js +153 -0
- package/bpk-component-map/README.md +213 -0
- package/bpk-component-map/examples.js +305 -0
- package/bpk-component-map/index.js +45 -0
- package/bpk-component-map/package.json +32 -0
- package/bpk-component-map/src/BpkBasicMapMarker.js +57 -0
- package/bpk-component-map/src/BpkIconMarker.js +107 -0
- package/bpk-component-map/src/BpkIconMarker.module.css +18 -0
- package/bpk-component-map/src/BpkIconMarker.module.scss +74 -0
- package/bpk-component-map/src/BpkIconMarkerBackground.js +80 -0
- package/bpk-component-map/src/BpkIconMarkerBackground.module.css +18 -0
- package/bpk-component-map/src/BpkIconMarkerBackground.module.scss +53 -0
- package/bpk-component-map/src/BpkMap.js +174 -0
- package/bpk-component-map/src/BpkOverlayView.js +50 -0
- package/bpk-component-map/src/BpkPriceMarker.js +130 -0
- package/bpk-component-map/src/BpkPriceMarker.module.css +18 -0
- package/bpk-component-map/src/BpkPriceMarker.module.scss +146 -0
- package/bpk-component-map/src/DefaultLoadingElement.js +34 -0
- package/bpk-component-map/src/DefaultLoadingElement.module.css +18 -0
- package/bpk-component-map/src/DefaultLoadingElement.module.scss +28 -0
- package/bpk-component-map/src/common-types.js +31 -0
- package/bpk-component-map/src/themeAttributes.js +38 -0
- package/bpk-component-map/src/withGoogleMapsScript.js +44 -0
- package/bpk-component-mobile-scroll-container/README.md +74 -0
- package/bpk-component-mobile-scroll-container/examples.js +76 -0
- package/bpk-component-mobile-scroll-container/examples.module.css +18 -0
- package/bpk-component-mobile-scroll-container/examples.module.scss +46 -0
- package/bpk-component-mobile-scroll-container/index.js +23 -0
- package/bpk-component-mobile-scroll-container/package.json +28 -0
- package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.js +238 -0
- package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.module.css +18 -0
- package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.module.scss +50 -0
- package/bpk-component-modal/README.md +114 -0
- package/bpk-component-modal/examples.js +304 -0
- package/bpk-component-modal/examples.module.css +18 -0
- package/bpk-component-modal/examples.module.scss +35 -0
- package/bpk-component-modal/index.js +27 -0
- package/bpk-component-modal/package.json +33 -0
- package/bpk-component-modal/src/BpkModal.js +128 -0
- package/bpk-component-modal/src/BpkModal.module.css +18 -0
- package/bpk-component-modal/src/BpkModal.module.scss +46 -0
- package/bpk-component-modal/src/BpkModalInner.js +177 -0
- package/bpk-component-modal/src/BpkModalInner.module.css +18 -0
- package/bpk-component-modal/src/BpkModalInner.module.scss +123 -0
- package/bpk-component-modal/src/customPropTypes.js +54 -0
- package/bpk-component-modal/src/themeAttributes.js +23 -0
- package/bpk-component-navigation-bar/AirlineLogo.js +42 -0
- package/bpk-component-navigation-bar/AirlineLogo.module.css +18 -0
- package/bpk-component-navigation-bar/AirlineLogo.module.scss +27 -0
- package/bpk-component-navigation-bar/README.md +114 -0
- package/bpk-component-navigation-bar/examples.js +193 -0
- package/bpk-component-navigation-bar/examples.module.css +18 -0
- package/bpk-component-navigation-bar/examples.module.scss +32 -0
- package/bpk-component-navigation-bar/index.js +42 -0
- package/bpk-component-navigation-bar/package.json +32 -0
- package/bpk-component-navigation-bar/src/BpkNavigationBar.js +105 -0
- package/bpk-component-navigation-bar/src/BpkNavigationBar.module.css +18 -0
- package/bpk-component-navigation-bar/src/BpkNavigationBar.module.scss +75 -0
- package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.js +61 -0
- package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.module.css +18 -0
- package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.module.scss +51 -0
- package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.js +58 -0
- package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.module.css +18 -0
- package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.module.scss +43 -0
- package/bpk-component-navigation-bar/src/themeAttributes.js +33 -0
- package/bpk-component-navigation-stack/README.md +48 -0
- package/bpk-component-navigation-stack/examples.js +73 -0
- package/bpk-component-navigation-stack/examples.module.css +18 -0
- package/bpk-component-navigation-stack/examples.module.scss +43 -0
- package/bpk-component-navigation-stack/index.js +30 -0
- package/bpk-component-navigation-stack/package.json +32 -0
- package/bpk-component-navigation-stack/src/BpkNavigationStack.js +127 -0
- package/bpk-component-navigation-stack/src/BpkNavigationStack.module.css +18 -0
- package/bpk-component-navigation-stack/src/BpkNavigationStack.module.scss +51 -0
- package/bpk-component-navigation-stack/src/withNavigationStackState.js +104 -0
- package/bpk-component-navigation-stack/stories-components.js +202 -0
- package/bpk-component-nudger/BpkNudgerStory.module.css +18 -0
- package/bpk-component-nudger/BpkNudgerStory.module.scss +27 -0
- package/bpk-component-nudger/README.md +170 -0
- package/bpk-component-nudger/examples.js +204 -0
- package/bpk-component-nudger/index.js +26 -0
- package/bpk-component-nudger/package.json +32 -0
- package/bpk-component-nudger/src/BpkConfigurableNudger.js +151 -0
- package/bpk-component-nudger/src/BpkNudger.js +68 -0
- package/bpk-component-nudger/src/BpkNudger.module.css +18 -0
- package/bpk-component-nudger/src/BpkNudger.module.scss +49 -0
- package/bpk-component-nudger/src/common-types.js +45 -0
- package/bpk-component-nudger/src/themeAttributes.js +23 -0
- package/bpk-component-overlay/README.md +51 -0
- package/bpk-component-overlay/examples.js +163 -0
- package/bpk-component-overlay/examples.module.css +18 -0
- package/bpk-component-overlay/examples.module.scss +38 -0
- package/bpk-component-overlay/index.js +28 -0
- package/bpk-component-overlay/package.json +28 -0
- package/bpk-component-overlay/src/BpkOverlay.js +88 -0
- package/bpk-component-overlay/src/BpkOverlay.module.css +18 -0
- package/bpk-component-overlay/src/BpkOverlay.module.scss +41 -0
- package/bpk-component-pagination/README.md +59 -0
- package/bpk-component-pagination/examples.js +93 -0
- package/bpk-component-pagination/index.js +23 -0
- package/bpk-component-pagination/package.json +28 -0
- package/bpk-component-pagination/src/BpkPagination.js +101 -0
- package/bpk-component-pagination/src/BpkPagination.module.css +18 -0
- package/bpk-component-pagination/src/BpkPagination.module.scss +22 -0
- package/bpk-component-pagination/src/BpkPaginationBreak.js +35 -0
- package/bpk-component-pagination/src/BpkPaginationList.js +100 -0
- package/bpk-component-pagination/src/BpkPaginationList.module.css +18 -0
- package/bpk-component-pagination/src/BpkPaginationList.module.scss +45 -0
- package/bpk-component-pagination/src/BpkPaginationNudger.js +77 -0
- package/bpk-component-pagination/src/BpkPaginationNudger.module.css +18 -0
- package/bpk-component-pagination/src/BpkPaginationNudger.module.scss +74 -0
- package/bpk-component-pagination/src/BpkPaginationPage.js +60 -0
- package/bpk-component-pagination/src/BpkPaginationPage.module.css +18 -0
- package/bpk-component-pagination/src/BpkPaginationPage.module.scss +90 -0
- package/bpk-component-pagination/src/themeAttributes.js +26 -0
- package/bpk-component-panel/README.md +33 -0
- package/bpk-component-panel/examples.js +63 -0
- package/bpk-component-panel/index.js +21 -0
- package/bpk-component-panel/package.json +24 -0
- package/bpk-component-panel/src/BpkPanel.js +61 -0
- package/bpk-component-panel/src/BpkPanel.module.css +18 -0
- package/bpk-component-panel/src/BpkPanel.module.scss +31 -0
- package/bpk-component-paragraph/README.md +28 -0
- package/bpk-component-paragraph/examples.js +46 -0
- package/bpk-component-paragraph/index.js +23 -0
- package/bpk-component-paragraph/package.json +25 -0
- package/bpk-component-paragraph/src/BpkParagraph.js +55 -0
- package/bpk-component-paragraph/src/BpkParagraph.module.css +18 -0
- package/bpk-component-paragraph/src/BpkParagraph.module.scss +25 -0
- package/bpk-component-phone-input/README.md +100 -0
- package/bpk-component-phone-input/examples.js +181 -0
- package/bpk-component-phone-input/index.js +26 -0
- package/bpk-component-phone-input/package.json +33 -0
- package/bpk-component-phone-input/src/BpkPhoneInput.js +225 -0
- package/bpk-component-phone-input/src/BpkPhoneInput.module.css +18 -0
- package/bpk-component-phone-input/src/BpkPhoneInput.module.scss +42 -0
- package/bpk-component-popover/README.md +128 -0
- package/bpk-component-popover/examples.js +267 -0
- package/bpk-component-popover/examples.module.css +18 -0
- package/bpk-component-popover/examples.module.scss +33 -0
- package/bpk-component-popover/index.js +34 -0
- package/bpk-component-popover/package.json +35 -0
- package/bpk-component-popover/src/BpkPopover.js +185 -0
- package/bpk-component-popover/src/BpkPopover.module.css +18 -0
- package/bpk-component-popover/src/BpkPopover.module.scss +126 -0
- package/bpk-component-popover/src/BpkPopoverPortal.js +210 -0
- package/bpk-component-popover/src/constants.js +23 -0
- package/bpk-component-popover/src/keyboardFocusScope.js +86 -0
- package/bpk-component-popover/src/themeAttributes.js +23 -0
- package/bpk-component-progress/README.md +56 -0
- package/bpk-component-progress/examples.js +130 -0
- package/bpk-component-progress/examples.module.css +18 -0
- package/bpk-component-progress/examples.module.scss +29 -0
- package/bpk-component-progress/index.js +25 -0
- package/bpk-component-progress/package.json +30 -0
- package/bpk-component-progress/src/BpkProgress.js +164 -0
- package/bpk-component-progress/src/BpkProgress.module.css +18 -0
- package/bpk-component-progress/src/BpkProgress.module.scss +64 -0
- package/bpk-component-progress/src/themeAttributes.js +21 -0
- package/bpk-component-radio/README.md +43 -0
- package/bpk-component-radio/examples.js +126 -0
- package/bpk-component-radio/index.js +25 -0
- package/bpk-component-radio/package.json +28 -0
- package/bpk-component-radio/src/BpkRadio.js +97 -0
- package/bpk-component-radio/src/BpkRadio.module.css +18 -0
- package/bpk-component-radio/src/BpkRadio.module.scss +78 -0
- package/bpk-component-radio/src/themeAttributes.js +21 -0
- package/bpk-component-rating/README.md +73 -0
- package/bpk-component-rating/examples.js +373 -0
- package/bpk-component-rating/examples.module.css +18 -0
- package/bpk-component-rating/examples.module.scss +23 -0
- package/bpk-component-rating/index.js +25 -0
- package/bpk-component-rating/package.json +29 -0
- package/bpk-component-rating/src/BpkRating.js +188 -0
- package/bpk-component-rating/src/BpkRating.module.css +18 -0
- package/bpk-component-rating/src/BpkRating.module.scss +148 -0
- package/bpk-component-rating/src/common-types.js +31 -0
- package/bpk-component-rating/src/themeAttributes.js +25 -0
- package/bpk-component-rtl-toggle/README.md +26 -0
- package/bpk-component-rtl-toggle/index.js +23 -0
- package/bpk-component-rtl-toggle/package.json +24 -0
- package/bpk-component-rtl-toggle/src/BpkRtlToggle.js +92 -0
- package/bpk-component-rtl-toggle/src/updateOnDirectionChange.js +59 -0
- package/bpk-component-rtl-toggle/src/utils.js +29 -0
- package/bpk-component-scrollable-calendar/README.md +102 -0
- package/bpk-component-scrollable-calendar/examples.js +383 -0
- package/bpk-component-scrollable-calendar/index.js +34 -0
- package/bpk-component-scrollable-calendar/package.json +32 -0
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendar.js +36 -0
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarDate.js +44 -0
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.js +55 -0
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.module.css +18 -0
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.module.scss +31 -0
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.js +156 -0
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.module.css +18 -0
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.module.scss +37 -0
- package/bpk-component-scrollable-calendar/src/utils.js +30 -0
- package/bpk-component-scrollable-calendar/test-utils.js +274 -0
- package/bpk-component-section-list/README.md +52 -0
- package/bpk-component-section-list/examples.js +55 -0
- package/bpk-component-section-list/index.js +26 -0
- package/bpk-component-section-list/package.json +30 -0
- package/bpk-component-section-list/src/BpkSectionList.js +38 -0
- package/bpk-component-section-list/src/BpkSectionListItem.js +112 -0
- package/bpk-component-section-list/src/BpkSectionListItem.module.css +18 -0
- package/bpk-component-section-list/src/BpkSectionListItem.module.scss +54 -0
- package/bpk-component-section-list/src/BpkSectionListSection.js +65 -0
- package/bpk-component-section-list/src/BpkSectionListSection.module.css +18 -0
- package/bpk-component-section-list/src/BpkSectionListSection.module.scss +35 -0
- package/bpk-component-select/README.md +47 -0
- package/bpk-component-select/examples.js +274 -0
- package/bpk-component-select/index.js +26 -0
- package/bpk-component-select/package.json +27 -0
- package/bpk-component-select/src/BpkSelect.js +132 -0
- package/bpk-component-select/src/BpkSelect.module.css +18 -0
- package/bpk-component-select/src/BpkSelect.module.scss +126 -0
- package/bpk-component-select/src/themeAttributes.js +19 -0
- package/bpk-component-skip-link/README.md +30 -0
- package/bpk-component-skip-link/examples.js +40 -0
- package/bpk-component-skip-link/index.js +25 -0
- package/bpk-component-skip-link/package.json +24 -0
- package/bpk-component-skip-link/src/BpkSkipLink.js +59 -0
- package/bpk-component-skip-link/src/BpkSkipLink.module.css +18 -0
- package/bpk-component-skip-link/src/BpkSkipLink.module.scss +50 -0
- package/bpk-component-skip-link/src/themeAttributes.js +19 -0
- package/bpk-component-slider/README.md +43 -0
- package/bpk-component-slider/examples.js +122 -0
- package/bpk-component-slider/index.js +23 -0
- package/bpk-component-slider/package.json +29 -0
- package/bpk-component-slider/src/BpkSlider.js +71 -0
- package/bpk-component-slider/src/BpkSlider.module.css +18 -0
- package/bpk-component-slider/src/BpkSlider.module.scss +103 -0
- package/bpk-component-slider/src/themeAttributes.js +19 -0
- package/bpk-component-spinner/README.md +40 -0
- package/bpk-component-spinner/SpinnerLayout.js +56 -0
- package/bpk-component-spinner/SpinnerLayout.module.css +18 -0
- package/bpk-component-spinner/SpinnerLayout.module.scss +36 -0
- package/bpk-component-spinner/changelog.yml +55 -0
- package/bpk-component-spinner/examples.js +56 -0
- package/bpk-component-spinner/index.js +33 -0
- package/bpk-component-spinner/package.json +25 -0
- package/bpk-component-spinner/src/BpkExtraLargeSpinner.js +59 -0
- package/bpk-component-spinner/src/BpkLargeSpinner.js +64 -0
- package/bpk-component-spinner/src/BpkSpinner.js +63 -0
- package/bpk-component-spinner/src/BpkSpinner.module.css +18 -0
- package/bpk-component-spinner/src/BpkSpinner.module.scss +57 -0
- package/bpk-component-spinner/src/spinnerTypes.js +25 -0
- package/bpk-component-spinner/src/themeAttributes.js +21 -0
- package/bpk-component-star-rating/README.md +99 -0
- package/bpk-component-star-rating/examples.js +195 -0
- package/bpk-component-star-rating/index.js +38 -0
- package/bpk-component-star-rating/package.json +29 -0
- package/bpk-component-star-rating/src/BpkInteractiveStar.js +86 -0
- package/bpk-component-star-rating/src/BpkInteractiveStar.module.css +18 -0
- package/bpk-component-star-rating/src/BpkInteractiveStar.module.scss +66 -0
- package/bpk-component-star-rating/src/BpkInteractiveStarRating.js +126 -0
- package/bpk-component-star-rating/src/BpkStar.js +111 -0
- package/bpk-component-star-rating/src/BpkStar.module.css +18 -0
- package/bpk-component-star-rating/src/BpkStar.module.scss +63 -0
- package/bpk-component-star-rating/src/BpkStarRating.js +123 -0
- package/bpk-component-star-rating/src/BpkStarRating.module.css +18 -0
- package/bpk-component-star-rating/src/BpkStarRating.module.scss +21 -0
- package/bpk-component-star-rating/src/themeAttributes.js +21 -0
- package/bpk-component-star-rating/src/withInteractiveStarRatingState.js +99 -0
- package/bpk-component-switch/README.md +37 -0
- package/bpk-component-switch/examples.js +40 -0
- package/bpk-component-switch/index.js +28 -0
- package/bpk-component-switch/package.json +24 -0
- package/bpk-component-switch/src/BpkSwitch.js +82 -0
- package/bpk-component-switch/src/BpkSwitch.module.css +18 -0
- package/bpk-component-switch/src/BpkSwitch.module.scss +93 -0
- package/bpk-component-switch/src/themeAttributes.js +19 -0
- package/bpk-component-table/README.md +66 -0
- package/bpk-component-table/examples.js +97 -0
- package/bpk-component-table/index.js +35 -0
- package/bpk-component-table/package.json +24 -0
- package/bpk-component-table/src/BpkTable.js +63 -0
- package/bpk-component-table/src/BpkTable.module.css +18 -0
- package/bpk-component-table/src/BpkTable.module.scss +39 -0
- package/bpk-component-table/src/BpkTableBody.js +32 -0
- package/bpk-component-table/src/BpkTableCell.js +56 -0
- package/bpk-component-table/src/BpkTableHead.js +32 -0
- package/bpk-component-table/src/BpkTableHeadCell.js +54 -0
- package/bpk-component-table/src/BpkTableRow.js +32 -0
- package/bpk-component-text/README.md +76 -0
- package/bpk-component-text/examples.js +135 -0
- package/bpk-component-text/examples.module.css +18 -0
- package/bpk-component-text/examples.module.scss +25 -0
- package/bpk-component-text/index.js +24 -0
- package/bpk-component-text/package.json +24 -0
- package/bpk-component-text/src/BpkText.js +150 -0
- package/bpk-component-text/src/BpkText.module.css +18 -0
- package/bpk-component-text/src/BpkText.module.scss +135 -0
- package/bpk-component-textarea/README.md +34 -0
- package/bpk-component-textarea/examples.js +116 -0
- package/bpk-component-textarea/index.js +25 -0
- package/bpk-component-textarea/package.json +28 -0
- package/bpk-component-textarea/src/BpkTextarea.js +75 -0
- package/bpk-component-textarea/src/BpkTextarea.module.css +18 -0
- package/bpk-component-textarea/src/BpkTextarea.module.scss +33 -0
- package/bpk-component-textarea/src/themeAttributes.js +21 -0
- package/bpk-component-theme-toggle/README.md +30 -0
- package/bpk-component-theme-toggle/index.js +23 -0
- package/bpk-component-theme-toggle/package.json +28 -0
- package/bpk-component-theme-toggle/src/BpkThemeToggle.js +120 -0
- package/bpk-component-theme-toggle/src/BpkThemeToggle.module.css +18 -0
- package/bpk-component-theme-toggle/src/BpkThemeToggle.module.scss +25 -0
- package/bpk-component-theme-toggle/src/theming.js +274 -0
- package/bpk-component-theme-toggle/src/updateOnThemeChange.js +73 -0
- package/bpk-component-theme-toggle/src/utils.js +23 -0
- package/bpk-component-ticket/README.md +38 -0
- package/bpk-component-ticket/examples.js +203 -0
- package/bpk-component-ticket/examples.module.css +18 -0
- package/bpk-component-ticket/examples.module.scss +79 -0
- package/bpk-component-ticket/index.js +23 -0
- package/bpk-component-ticket/package.json +28 -0
- package/bpk-component-ticket/src/BpkTicket.js +187 -0
- package/bpk-component-ticket/src/BpkTicket.module.css +18 -0
- package/bpk-component-ticket/src/BpkTicket.module.scss +297 -0
- package/bpk-component-tooltip/README.md +56 -0
- package/bpk-component-tooltip/examples.js +181 -0
- package/bpk-component-tooltip/index.js +27 -0
- package/bpk-component-tooltip/package.json +29 -0
- package/bpk-component-tooltip/src/BpkTooltip.js +98 -0
- package/bpk-component-tooltip/src/BpkTooltip.module.css +18 -0
- package/bpk-component-tooltip/src/BpkTooltip.module.scss +153 -0
- package/bpk-component-tooltip/src/BpkTooltipPortal.js +212 -0
- package/bpk-component-tooltip/src/constants.js +27 -0
- package/bpk-react-utils/README.md +251 -0
- package/bpk-react-utils/index.js +58 -0
- package/bpk-react-utils/package.json +26 -0
- package/bpk-react-utils/src/Portal.js +310 -0
- package/bpk-react-utils/src/TransitionInitialMount.js +63 -0
- package/bpk-react-utils/src/cssModules.js +29 -0
- package/bpk-react-utils/src/deprecated.js +40 -0
- package/bpk-react-utils/src/deviceDetection.js +31 -0
- package/bpk-react-utils/src/isRTL.js +36 -0
- package/bpk-react-utils/src/withDefaultProps.js +77 -0
- package/bpk-scrim-utils/README.md +50 -0
- package/bpk-scrim-utils/index.js +24 -0
- package/bpk-scrim-utils/package.json +25 -0
- package/bpk-scrim-utils/src/BpkScrim.js +52 -0
- package/bpk-scrim-utils/src/bpk-scrim-content.module.css +18 -0
- package/bpk-scrim-utils/src/bpk-scrim-content.module.scss +32 -0
- package/bpk-scrim-utils/src/bpk-scrim.module.css +18 -0
- package/bpk-scrim-utils/src/bpk-scrim.module.scss +51 -0
- package/bpk-scrim-utils/src/customPropTypes.js +39 -0
- package/bpk-scrim-utils/src/scroll-utils.js +115 -0
- package/bpk-scrim-utils/src/withScrim.js +161 -0
- package/bpk-tether/.eslintrc +6 -0
- package/bpk-tether/README.md +52 -0
- package/bpk-tether/index.js +24 -0
- package/bpk-tether/package.json +19 -0
- package/bpk-tether/src/TetherWrapper.js +30 -0
- package/bpk-tether/src/applyRTLTransforms.js +49 -0
- package/bpk-tether/src/getArrowPositionCallback.js +65 -0
- package/bpk-theming/README.md +43 -0
- package/bpk-theming/index.js +21 -0
- package/bpk-theming/package.json +23 -0
- package/bpk-theming/src/BpkThemeProvider.js +149 -0
- package/package.json +50 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Backpack - Skyscanner's Design System
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2016 Skyscanner Ltd
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
18
|
+
@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-tooltip-portal{z-index:900}.bpk-tooltip-portal[x-placement='top']{margin-bottom:.25rem}.bpk-tooltip-portal[x-placement='right']{margin-left:.25rem}.bpk-tooltip-portal[x-placement='bottom']{margin-top:.25rem}.bpk-tooltip-portal[x-placement='left']{margin-right:.25rem}.bpk-tooltip{transition:opacity 200ms ease-in-out,transform 200ms ease-in-out;outline:0;opacity:1}.bpk-tooltip--appear{opacity:0}.bpk-tooltip-portal[x-placement='top'] .bpk-tooltip--appear:not(.bpk-tooltip--appear-active){transform:translate(0, -1rem);transition:none}.bpk-tooltip-portal[x-placement='right'] .bpk-tooltip--appear:not(.bpk-tooltip--appear-active){transform:translate(1rem, 0);transition:none}.bpk-tooltip-portal[x-placement='bottom'] .bpk-tooltip--appear:not(.bpk-tooltip--appear-active){transform:translate(0, 1rem);transition:none}.bpk-tooltip-portal[x-placement='left'] .bpk-tooltip--appear:not(.bpk-tooltip--appear-active){transform:translate(-1rem, 0);transition:none}.bpk-tooltip--appear-active{transform:translate(0, 0);transition:opacity 200ms ease-in-out,transform 200ms ease-in-out;opacity:1}.bpk-tooltip__arrow{position:absolute;pointer-events:none}.bpk-tooltip__arrow::before,.bpk-tooltip__arrow::after{position:absolute;content:' ';display:block}.bpk-tooltip__arrow::before{border:.3125rem solid transparent}.bpk-tooltip__arrow::after{border:.25rem solid transparent}.bpk-tooltip-portal[x-placement='top'] .bpk-tooltip__arrow{top:100%;width:.5rem;height:.25rem}.bpk-tooltip-portal[x-placement='top'] .bpk-tooltip__arrow::before{bottom:-.3125rem;margin-left:-.0625rem;border-top-color:#dddde5}html[dir='rtl'] .bpk-tooltip-portal[x-placement='top'] .bpk-tooltip__arrow::before{margin-right:-.0625rem;margin-left:0}.bpk-tooltip-portal[x-placement='top'] .bpk-tooltip__arrow::after{bottom:-.1875rem;border-top-color:#fff}.bpk-tooltip-portal[x-placement='right'] .bpk-tooltip__arrow{right:100%;width:.25rem;height:.5rem}.bpk-tooltip-portal[x-placement='right'] .bpk-tooltip__arrow::before{left:-.3125rem;margin-top:-.0625rem;border-right-color:#dddde5}.bpk-tooltip-portal[x-placement='right'] .bpk-tooltip__arrow::after{left:-.1875rem;border-right-color:#fff}.bpk-tooltip-portal[x-placement='bottom'] .bpk-tooltip__arrow{bottom:100%;width:.5rem;height:.25rem}.bpk-tooltip-portal[x-placement='bottom'] .bpk-tooltip__arrow::before{top:-.3125rem;margin-left:-.0625rem;border-bottom-color:#dddde5}html[dir='rtl'] .bpk-tooltip-portal[x-placement='bottom'] .bpk-tooltip__arrow::before{margin-right:-.0625rem;margin-left:0}.bpk-tooltip-portal[x-placement='bottom'] .bpk-tooltip__arrow::after{top:-.1875rem;border-bottom-color:#fff}.bpk-tooltip-portal[x-placement='left'] .bpk-tooltip__arrow{left:100%;width:.25rem;height:.5rem}.bpk-tooltip-portal[x-placement='left'] .bpk-tooltip__arrow::before{right:-.3125rem;margin-top:-.0625rem;border-left-color:#dddde5}.bpk-tooltip-portal[x-placement='left'] .bpk-tooltip__arrow::after{right:-.1875rem;border-left-color:#fff}.bpk-tooltip-portal[x-placement='top'] .bpk-tooltip__arrow--dark{top:100%;width:.5rem;height:.25rem}.bpk-tooltip-portal[x-placement='top'] .bpk-tooltip__arrow--dark::before{bottom:-.3125rem;margin-left:-.0625rem;border-top-color:#111236}html[dir='rtl'] .bpk-tooltip-portal[x-placement='top'] .bpk-tooltip__arrow--dark::before{margin-right:-.0625rem;margin-left:0}.bpk-tooltip-portal[x-placement='top'] .bpk-tooltip__arrow--dark::after{bottom:-.1875rem;border-top-color:#111236}.bpk-tooltip-portal[x-placement='right'] .bpk-tooltip__arrow--dark{right:100%;width:.25rem;height:.5rem}.bpk-tooltip-portal[x-placement='right'] .bpk-tooltip__arrow--dark::before{left:-.3125rem;margin-top:-.0625rem;border-right-color:#111236}.bpk-tooltip-portal[x-placement='right'] .bpk-tooltip__arrow--dark::after{left:-.1875rem;border-right-color:#111236}.bpk-tooltip-portal[x-placement='bottom'] .bpk-tooltip__arrow--dark{bottom:100%;width:.5rem;height:.25rem}.bpk-tooltip-portal[x-placement='bottom'] .bpk-tooltip__arrow--dark::before{top:-.3125rem;margin-left:-.0625rem;border-bottom-color:#111236}html[dir='rtl'] .bpk-tooltip-portal[x-placement='bottom'] .bpk-tooltip__arrow--dark::before{margin-right:-.0625rem;margin-left:0}.bpk-tooltip-portal[x-placement='bottom'] .bpk-tooltip__arrow--dark::after{top:-.1875rem;border-bottom-color:#111236}.bpk-tooltip-portal[x-placement='left'] .bpk-tooltip__arrow--dark{left:100%;width:.25rem;height:.5rem}.bpk-tooltip-portal[x-placement='left'] .bpk-tooltip__arrow--dark::before{right:-.3125rem;margin-top:-.0625rem;border-left-color:#111236}.bpk-tooltip-portal[x-placement='left'] .bpk-tooltip__arrow--dark::after{right:-.1875rem;border-left-color:#111236}.bpk-tooltip__inner{overflow:hidden;border:.0625rem solid #dddde5;background-color:#fff;border-radius:.375rem;box-shadow:0px 4px 14px 0px rgba(37,32,31,0.25)}.bpk-tooltip__inner--padded{padding:.25rem 0.5rem}.bpk-tooltip__inner--dark{color:#fff;border:.0625rem solid #111236;background-color:#111236;border-radius:.375rem;box-shadow:0px 4px 14px 0px rgba(37,32,31,0.25)}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Backpack - Skyscanner's Design System
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2016 Skyscanner Ltd
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
@import '~bpk-mixins';
|
|
20
|
+
$bpk-spacing-v2: true;
|
|
21
|
+
|
|
22
|
+
$arrow-size: bpk-spacing-sm();
|
|
23
|
+
$dark-background-color: $bpk-color-sky-gray;
|
|
24
|
+
|
|
25
|
+
.bpk-tooltip-portal {
|
|
26
|
+
z-index: $bpk-zindex-tooltip;
|
|
27
|
+
|
|
28
|
+
&[x-placement='top'] {
|
|
29
|
+
margin-bottom: $arrow-size;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&[x-placement='right'] {
|
|
33
|
+
margin-left: $arrow-size;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&[x-placement='bottom'] {
|
|
37
|
+
margin-top: $arrow-size;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&[x-placement='left'] {
|
|
41
|
+
margin-right: $arrow-size;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.bpk-tooltip {
|
|
46
|
+
transition: opacity $bpk-duration-sm ease-in-out,
|
|
47
|
+
transform $bpk-duration-sm ease-in-out;
|
|
48
|
+
outline: 0;
|
|
49
|
+
opacity: 1;
|
|
50
|
+
|
|
51
|
+
&--appear {
|
|
52
|
+
opacity: 0;
|
|
53
|
+
|
|
54
|
+
.bpk-tooltip-portal[x-placement='top'] &:not(.bpk-tooltip--appear-active) {
|
|
55
|
+
transform: translate(0, -1rem);
|
|
56
|
+
transition: none;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.bpk-tooltip-portal[x-placement='right']
|
|
60
|
+
&:not(.bpk-tooltip--appear-active) {
|
|
61
|
+
transform: translate(1rem, 0);
|
|
62
|
+
transition: none;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.bpk-tooltip-portal[x-placement='bottom']
|
|
66
|
+
&:not(.bpk-tooltip--appear-active) {
|
|
67
|
+
transform: translate(0, 1rem);
|
|
68
|
+
transition: none;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.bpk-tooltip-portal[x-placement='left'] &:not(.bpk-tooltip--appear-active) {
|
|
72
|
+
transform: translate(-1rem, 0);
|
|
73
|
+
transition: none;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&--appear-active {
|
|
78
|
+
transform: translate(0, 0);
|
|
79
|
+
transition: opacity $bpk-duration-sm ease-in-out,
|
|
80
|
+
transform $bpk-duration-sm ease-in-out;
|
|
81
|
+
opacity: 1;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&__arrow {
|
|
85
|
+
@include bpk-layer-arrow($arrow-size);
|
|
86
|
+
|
|
87
|
+
.bpk-tooltip-portal[x-placement='top'] & {
|
|
88
|
+
@include bpk-layer-arrow-bottom($arrow-size);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.bpk-tooltip-portal[x-placement='right'] & {
|
|
92
|
+
@include bpk-layer-arrow-left($arrow-size);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.bpk-tooltip-portal[x-placement='bottom'] & {
|
|
96
|
+
@include bpk-layer-arrow-top($arrow-size);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.bpk-tooltip-portal[x-placement='left'] & {
|
|
100
|
+
@include bpk-layer-arrow-right($arrow-size);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&--dark {
|
|
104
|
+
.bpk-tooltip-portal[x-placement='top'] & {
|
|
105
|
+
@include bpk-layer-arrow-bottom(
|
|
106
|
+
$arrow-size,
|
|
107
|
+
$dark-background-color,
|
|
108
|
+
$dark-background-color
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.bpk-tooltip-portal[x-placement='right'] & {
|
|
113
|
+
@include bpk-layer-arrow-left(
|
|
114
|
+
$arrow-size,
|
|
115
|
+
$dark-background-color,
|
|
116
|
+
$dark-background-color
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.bpk-tooltip-portal[x-placement='bottom'] & {
|
|
121
|
+
@include bpk-layer-arrow-top(
|
|
122
|
+
$arrow-size,
|
|
123
|
+
$dark-background-color,
|
|
124
|
+
$dark-background-color
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.bpk-tooltip-portal[x-placement='left'] & {
|
|
129
|
+
@include bpk-layer-arrow-right(
|
|
130
|
+
$arrow-size,
|
|
131
|
+
$dark-background-color,
|
|
132
|
+
$dark-background-color
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&__inner {
|
|
139
|
+
overflow: hidden;
|
|
140
|
+
|
|
141
|
+
@include bpk-layer;
|
|
142
|
+
|
|
143
|
+
&--padded {
|
|
144
|
+
padding: bpk-spacing-sm() bpk-spacing-md();
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
&--dark {
|
|
148
|
+
color: $bpk-color-white;
|
|
149
|
+
|
|
150
|
+
@include bpk-layer($dark-background-color, $dark-background-color);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Backpack - Skyscanner's Design System
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2016 Skyscanner Ltd
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
/* @flow strict */
|
|
20
|
+
|
|
21
|
+
import Popper from '@skyscanner/popper.js';
|
|
22
|
+
import PropTypes from 'prop-types';
|
|
23
|
+
import React, { Component, type Node, type Element } from 'react';
|
|
24
|
+
import { Portal, cssModules } from 'bpk-react-utils';
|
|
25
|
+
|
|
26
|
+
import BpkTooltip, {
|
|
27
|
+
propTypes as tooltipPropTypes,
|
|
28
|
+
defaultProps as tooltipDefaultProps,
|
|
29
|
+
type TooltipProps,
|
|
30
|
+
} from './BpkTooltip';
|
|
31
|
+
import { ARROW_ID } from './constants';
|
|
32
|
+
import STYLES from './BpkTooltip.module.scss';
|
|
33
|
+
|
|
34
|
+
const getClassName = cssModules(STYLES);
|
|
35
|
+
|
|
36
|
+
const hasTouchSupport = () =>
|
|
37
|
+
!!(
|
|
38
|
+
typeof window !== 'undefined' &&
|
|
39
|
+
('ontouchstart' in window ||
|
|
40
|
+
(window.DocumentTouch && document instanceof window.DocumentTouch))
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
export type Props = {
|
|
44
|
+
...$Exact<TooltipProps>,
|
|
45
|
+
ariaLabel: string,
|
|
46
|
+
target: Element<any>,
|
|
47
|
+
children: Node,
|
|
48
|
+
placement: 'top' | 'right' | 'bottom' | 'left' | 'auto',
|
|
49
|
+
hideOnTouchDevices: boolean,
|
|
50
|
+
portalStyle: ?Object,
|
|
51
|
+
portalClassName: ?string,
|
|
52
|
+
renderTarget: ?() => HTMLElement,
|
|
53
|
+
popperModifiers: ?Object,
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
type State = {
|
|
57
|
+
isOpen: boolean,
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
class BpkTooltipPortal extends Component<Props, State> {
|
|
61
|
+
popper: ?typeof Popper;
|
|
62
|
+
|
|
63
|
+
targetRef: ?HTMLElement;
|
|
64
|
+
|
|
65
|
+
static propTypes = {
|
|
66
|
+
...tooltipPropTypes,
|
|
67
|
+
ariaLabel: PropTypes.string.isRequired,
|
|
68
|
+
target: PropTypes.node.isRequired,
|
|
69
|
+
children: PropTypes.node.isRequired,
|
|
70
|
+
placement: PropTypes.oneOf(Popper.placements),
|
|
71
|
+
hideOnTouchDevices: PropTypes.bool,
|
|
72
|
+
portalStyle: PropTypes.object, // eslint-disable-line react/forbid-prop-types
|
|
73
|
+
portalClassName: PropTypes.string,
|
|
74
|
+
renderTarget: PropTypes.func,
|
|
75
|
+
popperModifiers: PropTypes.object, // eslint-disable-line react/forbid-prop-types
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
static defaultProps = {
|
|
79
|
+
...tooltipDefaultProps,
|
|
80
|
+
placement: 'bottom',
|
|
81
|
+
hideOnTouchDevices: true,
|
|
82
|
+
portalStyle: null,
|
|
83
|
+
portalClassName: null,
|
|
84
|
+
renderTarget: null,
|
|
85
|
+
popperModifiers: null,
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
constructor() {
|
|
89
|
+
super();
|
|
90
|
+
|
|
91
|
+
this.state = {
|
|
92
|
+
isOpen: false,
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
this.popper = null;
|
|
96
|
+
this.targetRef = null;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
componentDidMount() {
|
|
100
|
+
if (this.targetRef) {
|
|
101
|
+
const ref = this.targetRef;
|
|
102
|
+
|
|
103
|
+
ref.addEventListener('focusin', this.openTooltip);
|
|
104
|
+
ref.addEventListener('focusout', this.closeTooltip);
|
|
105
|
+
ref.addEventListener('mouseenter', this.openTooltip);
|
|
106
|
+
ref.addEventListener('mouseleave', this.closeTooltip);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
componentWillUnmount() {
|
|
111
|
+
if (this.targetRef) {
|
|
112
|
+
const ref = this.targetRef;
|
|
113
|
+
|
|
114
|
+
ref.addEventListener('focusin', this.openTooltip);
|
|
115
|
+
ref.addEventListener('focusout', this.closeTooltip);
|
|
116
|
+
ref.removeEventListener('mouseenter', this.openTooltip);
|
|
117
|
+
ref.removeEventListener('mouseleave', this.closeTooltip);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
onOpen = (tooltipElement: HTMLElement, targetElement: HTMLElement) => {
|
|
122
|
+
// Note that GPU acceleration should be disabled otherwise Popper will use `translate3d`
|
|
123
|
+
// which can cause blurriness in Safari and Chrome.
|
|
124
|
+
this.popper = new Popper(targetElement, tooltipElement, {
|
|
125
|
+
placement: this.props.placement,
|
|
126
|
+
modifiers: {
|
|
127
|
+
...this.props.popperModifiers,
|
|
128
|
+
computeStyle: {
|
|
129
|
+
gpuAcceleration: false,
|
|
130
|
+
},
|
|
131
|
+
arrow: {
|
|
132
|
+
element: `#${ARROW_ID}`,
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
this.popper.scheduleUpdate();
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
beforeClose = (done: () => mixed) => {
|
|
141
|
+
if (this.popper) {
|
|
142
|
+
this.popper.destroy();
|
|
143
|
+
this.popper = null;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
done();
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
openTooltip = () => {
|
|
150
|
+
this.setState({
|
|
151
|
+
isOpen: true,
|
|
152
|
+
});
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
closeTooltip = () => {
|
|
156
|
+
this.setState({
|
|
157
|
+
isOpen: false,
|
|
158
|
+
});
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
render() {
|
|
162
|
+
const {
|
|
163
|
+
ariaLabel,
|
|
164
|
+
children,
|
|
165
|
+
hideOnTouchDevices,
|
|
166
|
+
padded,
|
|
167
|
+
placement,
|
|
168
|
+
popperModifiers,
|
|
169
|
+
portalClassName,
|
|
170
|
+
portalStyle,
|
|
171
|
+
renderTarget,
|
|
172
|
+
target,
|
|
173
|
+
...rest
|
|
174
|
+
} = this.props;
|
|
175
|
+
|
|
176
|
+
const classNames = [getClassName('bpk-tooltip-portal')];
|
|
177
|
+
const renderPortal = !hasTouchSupport() || !hideOnTouchDevices;
|
|
178
|
+
|
|
179
|
+
const targetWithAccessibilityProps = React.cloneElement(target, {
|
|
180
|
+
tabIndex: '0',
|
|
181
|
+
'aria-label': ariaLabel,
|
|
182
|
+
});
|
|
183
|
+
|
|
184
|
+
if (portalClassName) {
|
|
185
|
+
classNames.push(portalClassName);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
return renderPortal ? (
|
|
189
|
+
<Portal
|
|
190
|
+
target={targetWithAccessibilityProps}
|
|
191
|
+
targetRef={(targetRef) => {
|
|
192
|
+
this.targetRef = targetRef;
|
|
193
|
+
}}
|
|
194
|
+
isOpen={this.state.isOpen}
|
|
195
|
+
onOpen={this.onOpen}
|
|
196
|
+
onClose={this.closeTooltip}
|
|
197
|
+
style={portalStyle}
|
|
198
|
+
renderTarget={renderTarget}
|
|
199
|
+
className={classNames.join(' ')}
|
|
200
|
+
>
|
|
201
|
+
{/* $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'. */}
|
|
202
|
+
<BpkTooltip padded={padded} {...rest}>
|
|
203
|
+
{children}
|
|
204
|
+
</BpkTooltip>
|
|
205
|
+
</Portal>
|
|
206
|
+
) : (
|
|
207
|
+
targetWithAccessibilityProps
|
|
208
|
+
);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export default BpkTooltipPortal;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Backpack - Skyscanner's Design System
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2016 Skyscanner Ltd
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
/* @flow strict */
|
|
20
|
+
|
|
21
|
+
export const ARROW_ID = 'js-bpk-popover-arrow';
|
|
22
|
+
export const TOOLTIP_TYPES = {
|
|
23
|
+
light: 'light',
|
|
24
|
+
dark: 'dark',
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export default { ARROW_ID, TOOLTIP_TYPES };
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
# bpk-react-utils
|
|
2
|
+
|
|
3
|
+
> Miscellaneous React based utilities for use in Backpack components.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npm install bpk-react-utils --save-dev
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Portal.js
|
|
12
|
+
|
|
13
|
+
Render's children into a new component tree and appends it to `document.body`. Useful for Modals, Popovers, Tooltips etc where
|
|
14
|
+
it's necessary in overcoming z-index issues when absolutely positioning elements.
|
|
15
|
+
|
|
16
|
+
### Usage
|
|
17
|
+
|
|
18
|
+
```js
|
|
19
|
+
import { Portal } from 'bpk-react-utils';
|
|
20
|
+
import BpkButton from 'bpk-component-button';
|
|
21
|
+
import { BpkCode } from 'bpk-component-code';
|
|
22
|
+
import React, { Component } from 'react';
|
|
23
|
+
|
|
24
|
+
class MyComponent extends Component {
|
|
25
|
+
constructor() {
|
|
26
|
+
super();
|
|
27
|
+
|
|
28
|
+
this.state = {
|
|
29
|
+
isOpen: false,
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
onOpen = () => {
|
|
35
|
+
this.setState({
|
|
36
|
+
isOpen: true,
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
onClose = () => {
|
|
41
|
+
this.setState({
|
|
42
|
+
isOpen: false,
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
render() {
|
|
47
|
+
return (
|
|
48
|
+
<div>
|
|
49
|
+
<BpkButton onClick={this.onOpen}>Open portal</BpkButton>
|
|
50
|
+
<Portal
|
|
51
|
+
isOpen={this.state.isOpen}
|
|
52
|
+
onClose={this.onClose}
|
|
53
|
+
>
|
|
54
|
+
<div>I'm now appended to <BpkCode>document.body</BpkCode></div>
|
|
55
|
+
</Portal>
|
|
56
|
+
</div>
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Props
|
|
63
|
+
|
|
64
|
+
| Property | PropType | Required | Default Value |
|
|
65
|
+
| --------------------- | ----------------------- | -------- | ------------- |
|
|
66
|
+
| children | node | true | - |
|
|
67
|
+
| isOpen | bool | true | - |
|
|
68
|
+
| beforeClose | func | false | null |
|
|
69
|
+
| onClose | func | false | noop |
|
|
70
|
+
| onOpen | func | false | noop |
|
|
71
|
+
| onRender | func | false | noop |
|
|
72
|
+
| renderTarget | func | false | null |
|
|
73
|
+
| target | oneOf([function, node]) | false | null |
|
|
74
|
+
| closeOnEscPressed | bool | false | true |
|
|
75
|
+
|
|
76
|
+
## `cssModules.js`
|
|
77
|
+
|
|
78
|
+
A helpful utility which permits backwards compatibility with hard coded classes and [CSS modules](https://github.com/css-modules/css-modules).
|
|
79
|
+
|
|
80
|
+
### Usage
|
|
81
|
+
|
|
82
|
+
```js
|
|
83
|
+
import React from 'react';
|
|
84
|
+
import { cssModules } from 'bpk-react-utils';
|
|
85
|
+
|
|
86
|
+
import STYLES from './MyComponent.scss';
|
|
87
|
+
|
|
88
|
+
const getClassName = cssModules(STYLES);
|
|
89
|
+
|
|
90
|
+
const MyComponent = (props) => (
|
|
91
|
+
<div className={getClassName('MyComponent')}>
|
|
92
|
+
<div className={getClassName('MyComponent__inner')}>
|
|
93
|
+
{props.children}
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
);
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
With CSS modules:
|
|
100
|
+
|
|
101
|
+
```html
|
|
102
|
+
<div class="_35WloynrPDta8fhSfoHEgE">
|
|
103
|
+
<div class="_1ghNYY7jOYzUneVCT4piQ9">
|
|
104
|
+
Some text.
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Without CSS modules:
|
|
110
|
+
|
|
111
|
+
```html
|
|
112
|
+
<div class="MyComponent">
|
|
113
|
+
<div class="MyComponent__inner">
|
|
114
|
+
Some text.
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
The returned function accepts multiple class names and ignores values other than strings. e.g:
|
|
120
|
+
|
|
121
|
+
```js
|
|
122
|
+
import { cssModules } from 'bpk-react-utils';
|
|
123
|
+
|
|
124
|
+
import STYLES from './MyComponent.scss';
|
|
125
|
+
|
|
126
|
+
const getClassNames = cssModules(STYLES);
|
|
127
|
+
|
|
128
|
+
const MyComponent = (props) => (
|
|
129
|
+
<div className={getClassName('MyComponent', props.disabled && 'MyComponent--disabled')}>
|
|
130
|
+
{props.children}
|
|
131
|
+
</div>
|
|
132
|
+
);
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
Will result in `MyComponent MyComponent--disabled` if `props.disabled` is true or `MyComponent` otherwise.
|
|
136
|
+
|
|
137
|
+
## `TransitionInitialMount.js`
|
|
138
|
+
|
|
139
|
+
A wrapper around `react-transition-group` which makes it easy to transition a
|
|
140
|
+
components initial mount. All you need to provide is two class names and a timeout.
|
|
141
|
+
|
|
142
|
+
### Usage
|
|
143
|
+
|
|
144
|
+
```js
|
|
145
|
+
import React from 'react';
|
|
146
|
+
import { TransitionInitialMount } from 'bpk-react-utils';
|
|
147
|
+
|
|
148
|
+
const MyComponent = (props) => (
|
|
149
|
+
<TransitionInitialMount
|
|
150
|
+
appearClassName="my-transition-class--appear"
|
|
151
|
+
appearActiveClassName="my-transition-class--appear-active"
|
|
152
|
+
transitionTimeout={300}
|
|
153
|
+
>
|
|
154
|
+
<div>Some text.</div>
|
|
155
|
+
</TransitionInitialMount>
|
|
156
|
+
);
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
```scss
|
|
160
|
+
@import '~bpk-mixins/index';
|
|
161
|
+
|
|
162
|
+
.my-transition-class {
|
|
163
|
+
transition: opacity $bpk-duration-sm ease-in-out;
|
|
164
|
+
opacity: 1;
|
|
165
|
+
|
|
166
|
+
&--appear {
|
|
167
|
+
opacity: 0;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
&--appear-active {
|
|
171
|
+
opacity: 1;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
### Props
|
|
177
|
+
|
|
178
|
+
| Property | PropType | Required | Default Value |
|
|
179
|
+
| --------------------- | -------- | -------- | ------------- |
|
|
180
|
+
| children | node | true | - |
|
|
181
|
+
| appearClassName | string | true | - |
|
|
182
|
+
| appearActiveClassName | string | true | - |
|
|
183
|
+
| transitionTimeout | number | true | - |
|
|
184
|
+
|
|
185
|
+
## `isRTL`
|
|
186
|
+
|
|
187
|
+
Returns true if the browser is showing content right-to-left.
|
|
188
|
+
|
|
189
|
+
### Usage
|
|
190
|
+
|
|
191
|
+
```js
|
|
192
|
+
import React from 'react';
|
|
193
|
+
import { isRTL } from 'bpk-react-utils';
|
|
194
|
+
|
|
195
|
+
if (isRTL()) {
|
|
196
|
+
// do RTL stuff
|
|
197
|
+
} else {
|
|
198
|
+
// do LTR stuff
|
|
199
|
+
}
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
## `isDeviceIphone`
|
|
203
|
+
|
|
204
|
+
Returns true if the device is an iPhone.
|
|
205
|
+
|
|
206
|
+
### Usage
|
|
207
|
+
|
|
208
|
+
```js
|
|
209
|
+
import React from 'react';
|
|
210
|
+
import { isDeviceIphone } from 'bpk-react-utils';
|
|
211
|
+
|
|
212
|
+
if (isDeviceIphone()) {
|
|
213
|
+
// do iPhone specific stuff
|
|
214
|
+
} else {
|
|
215
|
+
// do other browser/device stuff
|
|
216
|
+
}
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
## `isDeviceIpad`
|
|
220
|
+
|
|
221
|
+
Returns true if the device is an iPad.
|
|
222
|
+
|
|
223
|
+
### Usage
|
|
224
|
+
|
|
225
|
+
```js
|
|
226
|
+
import React from 'react';
|
|
227
|
+
import { isDeviceIpad } from 'bpk-react-utils';
|
|
228
|
+
|
|
229
|
+
if (isDeviceIpad()) {
|
|
230
|
+
// do iPad specific stuff
|
|
231
|
+
} else {
|
|
232
|
+
// do other browser/device stuff
|
|
233
|
+
}
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
## `isDeviceIos`
|
|
237
|
+
|
|
238
|
+
Returns true if the platform is iOS (iPhone/iPad).
|
|
239
|
+
|
|
240
|
+
### Usage
|
|
241
|
+
|
|
242
|
+
```js
|
|
243
|
+
import React from 'react';
|
|
244
|
+
import { isDeviceIos } from 'bpk-react-utils';
|
|
245
|
+
|
|
246
|
+
if (isDeviceIos()) {
|
|
247
|
+
// do iOS specific stuff
|
|
248
|
+
} else {
|
|
249
|
+
// do other browser/device stuff
|
|
250
|
+
}
|
|
251
|
+
```
|