@skyscanner/backpack-web 6.0.0-alpha.2 → 7.0.0-alpha.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/package.json +6 -5
- package/README.md +0 -101
- package/bpk-animate-height/index.js +0 -30
- package/bpk-animate-height/src/AnimateHeight-test.js +0 -75
- package/bpk-animate-height/src/AnimateHeight.js +0 -194
- package/bpk-animate-height/src/accessibility-test.js +0 -41
- package/bpk-component-accordion/index.js +0 -47
- package/bpk-component-accordion/src/BpkAccordion-test.js +0 -43
- package/bpk-component-accordion/src/BpkAccordion.css +0 -18
- package/bpk-component-accordion/src/BpkAccordion.js +0 -53
- package/bpk-component-accordion/src/BpkAccordionItem-test.js +0 -100
- package/bpk-component-accordion/src/BpkAccordionItem.css +0 -18
- package/bpk-component-accordion/src/BpkAccordionItem.js +0 -123
- package/bpk-component-accordion/src/accessibility-test.js +0 -43
- package/bpk-component-accordion/src/themeAttributes-test.js +0 -28
- package/bpk-component-accordion/src/themeAttributes.js +0 -26
- package/bpk-component-accordion/src/withAccordionItemState-test.js +0 -77
- package/bpk-component-accordion/src/withAccordionItemState.js +0 -84
- package/bpk-component-accordion/src/withSingleItemAccordionState-test.js +0 -67
- package/bpk-component-accordion/src/withSingleItemAccordionState.js +0 -82
- package/bpk-component-aria-live/index.js +0 -38
- package/bpk-component-aria-live/src/BpkAriaLive-test.js +0 -73
- package/bpk-component-aria-live/src/BpkAriaLive.css +0 -18
- package/bpk-component-aria-live/src/BpkAriaLive.js +0 -64
- package/bpk-component-aria-live/src/accessibility-test.js +0 -38
- package/bpk-component-autosuggest/check-autosuggest-version-test.js +0 -28
- package/bpk-component-autosuggest/index.js +0 -38
- package/bpk-component-autosuggest/src/BpkAutosuggest-test.js +0 -115
- package/bpk-component-autosuggest/src/BpkAutosuggest.css +0 -18
- package/bpk-component-autosuggest/src/BpkAutosuggest.js +0 -74
- package/bpk-component-autosuggest/src/BpkAutosuggestSuggestion-test.js +0 -132
- package/bpk-component-autosuggest/src/BpkAutosuggestSuggestion.js +0 -88
- package/bpk-component-autosuggest/src/accessibility-test.js +0 -66
- package/bpk-component-badge/index.js +0 -48
- package/bpk-component-badge/src/BpkBadge-test.js +0 -81
- package/bpk-component-badge/src/BpkBadge.css +0 -18
- package/bpk-component-badge/src/BpkBadge.js +0 -94
- package/bpk-component-badge/src/accessibility-test.js +0 -38
- package/bpk-component-badge/src/themeAttributes-test.js +0 -26
- package/bpk-component-badge/src/themeAttributes.js +0 -26
- package/bpk-component-banner-alert/index.js +0 -70
- package/bpk-component-banner-alert/src/AnimateAndFade-test.js +0 -74
- package/bpk-component-banner-alert/src/AnimateAndFade.js +0 -168
- package/bpk-component-banner-alert/src/BpkAnimateAndFade.css +0 -18
- package/bpk-component-banner-alert/src/BpkBannerAlert-test.js +0 -61
- package/bpk-component-banner-alert/src/BpkBannerAlert.css +0 -18
- package/bpk-component-banner-alert/src/BpkBannerAlert.js +0 -38
- package/bpk-component-banner-alert/src/BpkBannerAlertDismissable-test.js +0 -43
- package/bpk-component-banner-alert/src/BpkBannerAlertDismissable.js +0 -45
- package/bpk-component-banner-alert/src/BpkBannerAlertExpandable-test.js +0 -54
- package/bpk-component-banner-alert/src/BpkBannerAlertExpandable.js +0 -62
- package/bpk-component-banner-alert/src/BpkBannerAlertInner-test.js +0 -206
- package/bpk-component-banner-alert/src/BpkBannerAlertInner.js +0 -217
- package/bpk-component-banner-alert/src/accessibility-test.js +0 -44
- package/bpk-component-banner-alert/src/common-types.js +0 -55
- package/bpk-component-banner-alert/src/themeAttributes-test.js +0 -26
- package/bpk-component-banner-alert/src/themeAttributes.js +0 -26
- package/bpk-component-banner-alert/src/withBannerAlertState-test.js +0 -127
- package/bpk-component-banner-alert/src/withBannerAlertState.js +0 -160
- package/bpk-component-barchart/index.js +0 -78
- package/bpk-component-barchart/src/BpkBarchart-test.js +0 -192
- package/bpk-component-barchart/src/BpkBarchart.css +0 -18
- package/bpk-component-barchart/src/BpkBarchart.js +0 -290
- package/bpk-component-barchart/src/BpkBarchartBar-test.js +0 -120
- package/bpk-component-barchart/src/BpkBarchartBar.css +0 -18
- package/bpk-component-barchart/src/BpkBarchartBar.js +0 -121
- package/bpk-component-barchart/src/BpkBarchartBars-test.js +0 -175
- package/bpk-component-barchart/src/BpkBarchartBars.js +0 -153
- package/bpk-component-barchart/src/BpkBarchartDefs-test.js +0 -35
- package/bpk-component-barchart/src/BpkBarchartDefs.js +0 -42
- package/bpk-component-barchart/src/BpkChartAxis-test.js +0 -204
- package/bpk-component-barchart/src/BpkChartAxis.css +0 -18
- package/bpk-component-barchart/src/BpkChartAxis.js +0 -150
- package/bpk-component-barchart/src/BpkChartDataTable-test.js +0 -46
- package/bpk-component-barchart/src/BpkChartDataTable.css +0 -18
- package/bpk-component-barchart/src/BpkChartDataTable.js +0 -70
- package/bpk-component-barchart/src/BpkChartGridLines-test.js +0 -178
- package/bpk-component-barchart/src/BpkChartGridLines.css +0 -18
- package/bpk-component-barchart/src/BpkChartGridLines.js +0 -95
- package/bpk-component-barchart/src/BpkChartMargin-test.js +0 -45
- package/bpk-component-barchart/src/BpkChartMargin.js +0 -48
- package/bpk-component-barchart/src/RTLtransforms.js +0 -56
- package/bpk-component-barchart/src/accessibility-test.js +0 -52
- package/bpk-component-barchart/src/customPropTypes-test.js +0 -59
- package/bpk-component-barchart/src/customPropTypes.js +0 -48
- package/bpk-component-barchart/src/orientation.js +0 -28
- package/bpk-component-barchart/src/themeAttributes-test.js +0 -28
- package/bpk-component-barchart/src/themeAttributes.js +0 -26
- package/bpk-component-barchart/src/utils-test.js +0 -68
- package/bpk-component-barchart/src/utils.js +0 -53
- package/bpk-component-blockquote/index.js +0 -38
- package/bpk-component-blockquote/src/BpkBlockquote-test.js +0 -43
- package/bpk-component-blockquote/src/BpkBlockquote.css +0 -18
- package/bpk-component-blockquote/src/BpkBlockquote.js +0 -57
- package/bpk-component-blockquote/src/accessibility-test.js +0 -38
- package/bpk-component-blockquote/src/themeAttributes-test.js +0 -28
- package/bpk-component-blockquote/src/themeAttributes.js +0 -26
- package/bpk-component-boilerplate/index.js +0 -30
- package/bpk-component-boilerplate/src/BpkBoilerplate-test.js +0 -51
- package/bpk-component-boilerplate/src/BpkBoilerplate.css +0 -18
- package/bpk-component-boilerplate/src/BpkBoilerplate.js +0 -51
- package/bpk-component-boilerplate/src/accessibility-test.js +0 -38
- package/bpk-component-breadcrumb/index.js +0 -38
- package/bpk-component-breadcrumb/src/BpkBreadcrumb-test.js +0 -72
- package/bpk-component-breadcrumb/src/BpkBreadcrumb.css +0 -18
- package/bpk-component-breadcrumb/src/BpkBreadcrumb.js +0 -100
- package/bpk-component-breadcrumb/src/BpkBreadcrumbItem-test.js +0 -76
- package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.css +0 -18
- package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.js +0 -85
- package/bpk-component-breadcrumb/src/accessibility-test.js +0 -44
- package/bpk-component-breakpoint/index.js +0 -38
- package/bpk-component-breakpoint/src/BpkBreakpoint-test.js +0 -100
- package/bpk-component-breakpoint/src/BpkBreakpoint.js +0 -76
- package/bpk-component-breakpoint/src/accessibility-test.js +0 -44
- package/bpk-component-button/BpkButtonDestructive.js +0 -15
- package/bpk-component-button/BpkButtonFeatured.js +0 -15
- package/bpk-component-button/BpkButtonLink.js +0 -15
- package/bpk-component-button/BpkButtonLinkOnDark.js +0 -15
- package/bpk-component-button/BpkButtonOutline.js +0 -15
- package/bpk-component-button/BpkButtonPrimary.js +0 -15
- package/bpk-component-button/BpkButtonPrimaryOnDark.js +0 -15
- package/bpk-component-button/BpkButtonPrimaryOnLight.js +0 -15
- package/bpk-component-button/BpkButtonSecondary.js +0 -15
- package/bpk-component-button/BpkButtonSecondaryOnDark.js +0 -15
- package/bpk-component-button/index.js +0 -161
- package/bpk-component-button/src/BpkButton-test.js +0 -165
- package/bpk-component-button/src/BpkButton.js +0 -106
- package/bpk-component-button/src/BpkButtonBase.css +0 -18
- package/bpk-component-button/src/BpkButtonBase.js +0 -112
- package/bpk-component-button/src/BpkButtonDestructive-test.js +0 -26
- package/bpk-component-button/src/BpkButtonDestructive.css +0 -18
- package/bpk-component-button/src/BpkButtonDestructive.js +0 -63
- package/bpk-component-button/src/BpkButtonFeatured-test.js +0 -26
- package/bpk-component-button/src/BpkButtonFeatured.css +0 -18
- package/bpk-component-button/src/BpkButtonFeatured.js +0 -63
- package/bpk-component-button/src/BpkButtonLink-test.js +0 -26
- package/bpk-component-button/src/BpkButtonLink.css +0 -18
- package/bpk-component-button/src/BpkButtonLink.js +0 -69
- package/bpk-component-button/src/BpkButtonLinkOnDark-test.js +0 -26
- package/bpk-component-button/src/BpkButtonLinkOnDark.css +0 -18
- package/bpk-component-button/src/BpkButtonLinkOnDark.js +0 -69
- package/bpk-component-button/src/BpkButtonOutline-test.js +0 -26
- package/bpk-component-button/src/BpkButtonOutline.css +0 -18
- package/bpk-component-button/src/BpkButtonOutline.js +0 -63
- package/bpk-component-button/src/BpkButtonPrimary-test.js +0 -26
- package/bpk-component-button/src/BpkButtonPrimary.js +0 -29
- package/bpk-component-button/src/BpkButtonPrimaryOnDark-test.js +0 -26
- package/bpk-component-button/src/BpkButtonPrimaryOnDark.css +0 -18
- package/bpk-component-button/src/BpkButtonPrimaryOnDark.js +0 -63
- package/bpk-component-button/src/BpkButtonPrimaryOnLight-test.js +0 -26
- package/bpk-component-button/src/BpkButtonPrimaryOnLight.css +0 -18
- package/bpk-component-button/src/BpkButtonPrimaryOnLight.js +0 -63
- package/bpk-component-button/src/BpkButtonSecondary-test.js +0 -26
- package/bpk-component-button/src/BpkButtonSecondary.css +0 -18
- package/bpk-component-button/src/BpkButtonSecondary.js +0 -63
- package/bpk-component-button/src/BpkButtonSecondaryOnDark-test.js +0 -26
- package/bpk-component-button/src/BpkButtonSecondaryOnDark.css +0 -18
- package/bpk-component-button/src/BpkButtonSecondaryOnDark.js +0 -63
- package/bpk-component-button/src/accessibility-test.js +0 -47
- package/bpk-component-button/src/common-types.js +0 -53
- package/bpk-component-button/src/commonButtonTests.js +0 -132
- package/bpk-component-button/src/themeAttributes-test.js +0 -38
- package/bpk-component-button/src/themeAttributes.js +0 -40
- package/bpk-component-button/themeAttributes.js +0 -55
- package/bpk-component-calendar/index.js +0 -143
- package/bpk-component-calendar/src/BpkCalendar.css +0 -18
- package/bpk-component-calendar/src/BpkCalendarContainer-test.js +0 -356
- package/bpk-component-calendar/src/BpkCalendarContainer.js +0 -337
- package/bpk-component-calendar/src/BpkCalendarDate-test.js +0 -164
- package/bpk-component-calendar/src/BpkCalendarDate.css +0 -18
- package/bpk-component-calendar/src/BpkCalendarDate.js +0 -225
- package/bpk-component-calendar/src/BpkCalendarGrid-test.js +0 -140
- package/bpk-component-calendar/src/BpkCalendarGrid.css +0 -18
- package/bpk-component-calendar/src/BpkCalendarGrid.js +0 -196
- package/bpk-component-calendar/src/BpkCalendarGridHeader.css +0 -18
- package/bpk-component-calendar/src/BpkCalendarGridHeader.js +0 -121
- package/bpk-component-calendar/src/BpkCalendarGridTransition-test.js +0 -94
- package/bpk-component-calendar/src/BpkCalendarGridTransition.css +0 -18
- package/bpk-component-calendar/src/BpkCalendarGridTransition.js +0 -181
- package/bpk-component-calendar/src/BpkCalendarNav-test.js +0 -116
- package/bpk-component-calendar/src/BpkCalendarNav.css +0 -18
- package/bpk-component-calendar/src/BpkCalendarNav.js +0 -179
- package/bpk-component-calendar/src/Week-test.js +0 -154
- package/bpk-component-calendar/src/Week.js +0 -385
- package/bpk-component-calendar/src/accessibility-test.js +0 -88
- package/bpk-component-calendar/src/composeCalendar-test.js +0 -173
- package/bpk-component-calendar/src/composeCalendar.js +0 -196
- package/bpk-component-calendar/src/custom-proptypes.js +0 -101
- package/bpk-component-calendar/src/date-utils.js +0 -352
- package/bpk-component-calendar/src/themeAttributes-test.js +0 -28
- package/bpk-component-calendar/src/themeAttributes.js +0 -26
- package/bpk-component-calendar/src/utils.js +0 -69
- package/bpk-component-calendar/test-utils.js +0 -269
- package/bpk-component-card/index.js +0 -30
- package/bpk-component-card/src/BpkCard-test.js +0 -85
- package/bpk-component-card/src/BpkCard.css +0 -18
- package/bpk-component-card/src/BpkCard.js +0 -109
- package/bpk-component-card/src/accessibility-test.js +0 -47
- package/bpk-component-checkbox/index.js +0 -38
- package/bpk-component-checkbox/src/BpkCheckbox-test.js +0 -152
- package/bpk-component-checkbox/src/BpkCheckbox.css +0 -18
- package/bpk-component-checkbox/src/BpkCheckbox.js +0 -96
- package/bpk-component-checkbox/src/accessibility-test.js +0 -41
- package/bpk-component-checkbox/src/themeAttributes-test.js +0 -28
- package/bpk-component-checkbox/src/themeAttributes.js +0 -26
- package/bpk-component-chip/index.js +0 -54
- package/bpk-component-chip/src/BpkDismissibleChip-test.js +0 -85
- package/bpk-component-chip/src/BpkDismissibleChip.js +0 -34
- package/bpk-component-chip/src/BpkSelectableChip-test.js +0 -107
- package/bpk-component-chip/src/BpkSelectableChip.css +0 -18
- package/bpk-component-chip/src/BpkSelectableChip.js +0 -88
- package/bpk-component-chip/src/accessibility-test.js +0 -55
- package/bpk-component-chip/src/commonTypes.js +0 -55
- package/bpk-component-chip/src/themeAttributes-test.js +0 -28
- package/bpk-component-chip/src/themeAttributes.js +0 -26
- package/bpk-component-close-button/index.js +0 -30
- package/bpk-component-close-button/src/BpkCloseButton-test.js +0 -60
- package/bpk-component-close-button/src/BpkCloseButton.css +0 -18
- package/bpk-component-close-button/src/BpkCloseButton.js +0 -73
- package/bpk-component-close-button/src/accessibility-test.js +0 -41
- package/bpk-component-code/index.js +0 -23
- package/bpk-component-code/src/BpkCode-test.js +0 -51
- package/bpk-component-code/src/BpkCode.css +0 -18
- package/bpk-component-code/src/BpkCode.js +0 -65
- package/bpk-component-code/src/BpkCodeBlock-test.js +0 -51
- package/bpk-component-code/src/BpkCodeBlock.css +0 -18
- package/bpk-component-code/src/BpkCodeBlock.js +0 -59
- package/bpk-component-code/src/accessibility-test.js +0 -47
- package/bpk-component-content-container/index.js +0 -30
- package/bpk-component-content-container/src/BpkContentContainer-test.js +0 -60
- package/bpk-component-content-container/src/BpkContentContainer.css +0 -18
- package/bpk-component-content-container/src/BpkContentContainer.js +0 -78
- package/bpk-component-content-container/src/accessibility-test.js +0 -38
- package/bpk-component-datatable/index.js +0 -23
- package/bpk-component-datatable/src/BpkDataTable-test.js +0 -517
- package/bpk-component-datatable/src/BpkDataTable.css +0 -18
- package/bpk-component-datatable/src/BpkDataTable.js +0 -218
- package/bpk-component-datatable/src/BpkDataTableColumn-test.js +0 -71
- package/bpk-component-datatable/src/BpkDataTableColumn.css +0 -18
- package/bpk-component-datatable/src/BpkDataTableColumn.js +0 -65
- package/bpk-component-datatable/src/accessibility-test.js +0 -70
- package/bpk-component-datatable/src/bpkHeaderRenderer-test.js +0 -110
- package/bpk-component-datatable/src/bpkHeaderRenderer.js +0 -97
- package/bpk-component-datatable/src/common-types.js +0 -5
- package/bpk-component-datatable/src/hasChildrenOfType-test.js +0 -60
- package/bpk-component-datatable/src/hasChildrenOfType.js +0 -52
- package/bpk-component-datatable/src/sort-types.js +0 -1
- package/bpk-component-datatable/src/sorter.js +0 -139
- package/bpk-component-datatable/src/utils.js +0 -35
- package/bpk-component-datepicker/index.js +0 -46
- package/bpk-component-datepicker/src/BpkDatepicker-test.js +0 -377
- package/bpk-component-datepicker/src/BpkDatepicker.css +0 -18
- package/bpk-component-datepicker/src/BpkDatepicker.js +0 -318
- package/bpk-component-datepicker/src/accessibility-test.js +0 -94
- package/bpk-component-datepicker/src/themeAttibutes-test.js +0 -28
- package/bpk-component-datepicker/src/themeAttributes.js +0 -33
- package/bpk-component-description-list/index.js +0 -31
- package/bpk-component-description-list/src/BpkDescriptionDetails-test.js +0 -51
- package/bpk-component-description-list/src/BpkDescriptionDetails.js +0 -31
- package/bpk-component-description-list/src/BpkDescriptionList-test.js +0 -51
- package/bpk-component-description-list/src/BpkDescriptionList.css +0 -18
- package/bpk-component-description-list/src/BpkDescriptionList.js +0 -31
- package/bpk-component-description-list/src/BpkDescriptionTerm-test.js +0 -51
- package/bpk-component-description-list/src/BpkDescriptionTerm.js +0 -31
- package/bpk-component-description-list/src/ComponentFactory.js +0 -58
- package/bpk-component-description-list/src/accessibility-test.js +0 -38
- package/bpk-component-dialog/index.js +0 -38
- package/bpk-component-dialog/src/BpkDialog-test.js +0 -162
- package/bpk-component-dialog/src/BpkDialog.css +0 -18
- package/bpk-component-dialog/src/BpkDialog.js +0 -75
- package/bpk-component-dialog/src/BpkDialogInner.css +0 -18
- package/bpk-component-dialog/src/BpkDialogInner.js +0 -74
- package/bpk-component-dialog/src/accessibility-test.js +0 -48
- package/bpk-component-dialog/src/common-types.js +0 -75
- package/bpk-component-drawer/index.js +0 -38
- package/bpk-component-drawer/src/BpkDrawer-test.js +0 -47
- package/bpk-component-drawer/src/BpkDrawer.css +0 -18
- package/bpk-component-drawer/src/BpkDrawer.js +0 -102
- package/bpk-component-drawer/src/BpkDrawerContent-test.js +0 -101
- package/bpk-component-drawer/src/BpkDrawerContent.css +0 -18
- package/bpk-component-drawer/src/BpkDrawerContent.js +0 -142
- package/bpk-component-drawer/src/accessibility-test.js +0 -49
- package/bpk-component-drawer/src/themeAttributes-test.js +0 -28
- package/bpk-component-drawer/src/themeAttributes.js +0 -28
- package/bpk-component-fieldset/index.js +0 -54
- package/bpk-component-fieldset/src/BpkFieldset-test.js +0 -313
- package/bpk-component-fieldset/src/BpkFieldset.css +0 -18
- package/bpk-component-fieldset/src/BpkFieldset.js +0 -167
- package/bpk-component-fieldset/src/accessibility-test.js +0 -53
- package/bpk-component-fieldset/src/themeAttributes.js +0 -26
- package/bpk-component-flare/gulpfile.js +0 -59
- package/bpk-component-flare/index.js +0 -44
- package/bpk-component-flare/src/BpkContentBubble-test.js +0 -82
- package/bpk-component-flare/src/BpkContentBubble.js +0 -94
- package/bpk-component-flare/src/BpkFlareBar-test.js +0 -59
- package/bpk-component-flare/src/BpkFlareBar.js +0 -78
- package/bpk-component-flare/src/__generated__/js/corner-radius.js +0 -33
- package/bpk-component-flare/src/__generated__/js/pointer.js +0 -33
- package/bpk-component-flare/src/accessibility-test.js +0 -54
- package/bpk-component-flare/src/bpk-content-bubble.css +0 -18
- package/bpk-component-flare/src/bpk-flare-bar.css +0 -18
- package/bpk-component-flare/tasks/svg2react.js +0 -73
- package/bpk-component-floating-notification/index.js +0 -38
- package/bpk-component-floating-notification/src/BpkFloatingNotification-test.js +0 -113
- package/bpk-component-floating-notification/src/BpkFloatingNotification.css +0 -18
- package/bpk-component-floating-notification/src/BpkFloatingNotification.js +0 -125
- package/bpk-component-floating-notification/src/accessibility-test.js +0 -78
- package/bpk-component-form-validation/index.js +0 -38
- package/bpk-component-form-validation/src/BpkFormValidation-test.js +0 -47
- package/bpk-component-form-validation/src/BpkFormValidation.css +0 -18
- package/bpk-component-form-validation/src/BpkFormValidation.js +0 -76
- package/bpk-component-form-validation/src/accessibility-test.js +0 -41
- package/bpk-component-form-validation/src/themeAttributes-test.js +0 -28
- package/bpk-component-form-validation/src/themeAttributes.js +0 -26
- package/bpk-component-graphic-promotion/index.js +0 -38
- package/bpk-component-graphic-promotion/src/BpkGraphicPromo-test.js +0 -132
- package/bpk-component-graphic-promotion/src/BpkGraphicPromo.css +0 -18
- package/bpk-component-graphic-promotion/src/BpkGraphicPromo.js +0 -182
- package/bpk-component-graphic-promotion/src/accessibility-test.js +0 -139
- package/bpk-component-graphic-promotion/src/custom-breakpoints.css +0 -17
- package/bpk-component-grid/index.js +0 -38
- package/bpk-component-grid/src/BpkGridColumn-test.js +0 -168
- package/bpk-component-grid/src/BpkGridColumn.css +0 -18
- package/bpk-component-grid/src/BpkGridColumn.js +0 -111
- package/bpk-component-grid/src/BpkGridContainer-test.js +0 -68
- package/bpk-component-grid/src/BpkGridContainer.css +0 -18
- package/bpk-component-grid/src/BpkGridContainer.js +0 -68
- package/bpk-component-grid/src/BpkGridRow-test.js +0 -52
- package/bpk-component-grid/src/BpkGridRow.css +0 -18
- package/bpk-component-grid/src/BpkGridRow.js +0 -61
- package/bpk-component-grid/src/accessibility-test.js +0 -48
- package/bpk-component-grid-toggle/index.js +0 -30
- package/bpk-component-grid-toggle/src/BpkGridToggle-test.js +0 -43
- package/bpk-component-grid-toggle/src/BpkGridToggle.css +0 -18
- package/bpk-component-grid-toggle/src/BpkGridToggle.js +0 -83
- package/bpk-component-grid-toggle/src/accessibility-test.js +0 -38
- package/bpk-component-horizontal-nav/index.js +0 -52
- package/bpk-component-horizontal-nav/src/BpkHorizontalNav-test.js +0 -84
- package/bpk-component-horizontal-nav/src/BpkHorizontalNav.css +0 -18
- package/bpk-component-horizontal-nav/src/BpkHorizontalNav.js +0 -192
- package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem-test.js +0 -101
- package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.css +0 -18
- package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.js +0 -103
- package/bpk-component-horizontal-nav/src/accessibility-test.js +0 -40
- package/bpk-component-icon/all.js +0 -32
- package/bpk-component-icon/gulpfile.babel.js +0 -38
- package/bpk-component-icon/gulpfile.js +0 -33
- package/bpk-component-icon/index.js +0 -62
- package/bpk-component-icon/lg/accessibility.js +0 -39
- package/bpk-component-icon/lg/account--add.js +0 -39
- package/bpk-component-icon/lg/account--female.js +0 -39
- package/bpk-component-icon/lg/account--id-card.js +0 -39
- package/bpk-component-icon/lg/account--name.js +0 -39
- package/bpk-component-icon/lg/account--permit.js +0 -39
- package/bpk-component-icon/lg/account-circle.js +0 -39
- package/bpk-component-icon/lg/account.js +0 -39
- package/bpk-component-icon/lg/add-circle.js +0 -39
- package/bpk-component-icon/lg/adult.js +0 -39
- package/bpk-component-icon/lg/aircon.js +0 -39
- package/bpk-component-icon/lg/aircraft.js +0 -41
- package/bpk-component-icon/lg/airline--multiple.js +0 -39
- package/bpk-component-icon/lg/airline.js +0 -39
- package/bpk-component-icon/lg/airports.js +0 -39
- package/bpk-component-icon/lg/alert--active.js +0 -39
- package/bpk-component-icon/lg/alert--add.js +0 -39
- package/bpk-component-icon/lg/alert--expired.js +0 -39
- package/bpk-component-icon/lg/alert--remove.js +0 -39
- package/bpk-component-icon/lg/arrow-down.js +0 -39
- package/bpk-component-icon/lg/arrow-left.js +0 -39
- package/bpk-component-icon/lg/arrow-right.js +0 -39
- package/bpk-component-icon/lg/arrow-up.js +0 -39
- package/bpk-component-icon/lg/award.js +0 -39
- package/bpk-component-icon/lg/baby-carriage.js +0 -39
- package/bpk-component-icon/lg/baggage--add.js +0 -39
- package/bpk-component-icon/lg/baggage--remove.js +0 -39
- package/bpk-component-icon/lg/baggage-cross.js +0 -39
- package/bpk-component-icon/lg/baggage-tick.js +0 -39
- package/bpk-component-icon/lg/baggage.js +0 -39
- package/bpk-component-icon/lg/bar.js +0 -39
- package/bpk-component-icon/lg/beach.js +0 -41
- package/bpk-component-icon/lg/beer.js +0 -39
- package/bpk-component-icon/lg/breakfast-cross.js +0 -39
- package/bpk-component-icon/lg/breakfast-tick.js +0 -39
- package/bpk-component-icon/lg/bus.js +0 -39
- package/bpk-component-icon/lg/business.js +0 -39
- package/bpk-component-icon/lg/cafe.js +0 -39
- package/bpk-component-icon/lg/calendar.js +0 -39
- package/bpk-component-icon/lg/call-back.js +0 -41
- package/bpk-component-icon/lg/camera.js +0 -39
- package/bpk-component-icon/lg/camper-van.js +0 -41
- package/bpk-component-icon/lg/car-door.js +0 -39
- package/bpk-component-icon/lg/car-wash.js +0 -41
- package/bpk-component-icon/lg/cars-flexible.js +0 -39
- package/bpk-component-icon/lg/cars.js +0 -41
- package/bpk-component-icon/lg/center-location.js +0 -39
- package/bpk-component-icon/lg/chart.js +0 -39
- package/bpk-component-icon/lg/chauffeur.js +0 -39
- package/bpk-component-icon/lg/chevron-down.js +0 -39
- package/bpk-component-icon/lg/chevron-left.js +0 -39
- package/bpk-component-icon/lg/chevron-right.js +0 -39
- package/bpk-component-icon/lg/chevron-up.js +0 -39
- package/bpk-component-icon/lg/child-seat.js +0 -39
- package/bpk-component-icon/lg/child.js +0 -39
- package/bpk-component-icon/lg/city-center.js +0 -39
- package/bpk-component-icon/lg/city.js +0 -39
- package/bpk-component-icon/lg/clean-policy.js +0 -39
- package/bpk-component-icon/lg/clean.js +0 -43
- package/bpk-component-icon/lg/cleaning-medical.js +0 -39
- package/bpk-component-icon/lg/cloakroom.js +0 -43
- package/bpk-component-icon/lg/close-circle.js +0 -39
- package/bpk-component-icon/lg/close.js +0 -39
- package/bpk-component-icon/lg/collapse.js +0 -39
- package/bpk-component-icon/lg/content--copy.js +0 -41
- package/bpk-component-icon/lg/content--event.js +0 -39
- package/bpk-component-icon/lg/content--guides.js +0 -39
- package/bpk-component-icon/lg/currency.js +0 -39
- package/bpk-component-icon/lg/data.js +0 -41
- package/bpk-component-icon/lg/deals.js +0 -39
- package/bpk-component-icon/lg/depart.js +0 -41
- package/bpk-component-icon/lg/device-mid.js +0 -39
- package/bpk-component-icon/lg/device-wide.js +0 -39
- package/bpk-component-icon/lg/direct.js +0 -39
- package/bpk-component-icon/lg/document-csv.js +0 -39
- package/bpk-component-icon/lg/document-pdf.js +0 -39
- package/bpk-component-icon/lg/download.js +0 -41
- package/bpk-component-icon/lg/duration.js +0 -39
- package/bpk-component-icon/lg/eco-leaf.js +0 -39
- package/bpk-component-icon/lg/edit.js +0 -39
- package/bpk-component-icon/lg/education.js +0 -41
- package/bpk-component-icon/lg/electric.js +0 -39
- package/bpk-component-icon/lg/end-call.js +0 -39
- package/bpk-component-icon/lg/estimated.js +0 -39
- package/bpk-component-icon/lg/exclamation-circle.js +0 -39
- package/bpk-component-icon/lg/exclamation.js +0 -39
- package/bpk-component-icon/lg/expand.js +0 -39
- package/bpk-component-icon/lg/explore.js +0 -39
- package/bpk-component-icon/lg/face--blank.js +0 -39
- package/bpk-component-icon/lg/face--happy.js +0 -39
- package/bpk-component-icon/lg/face--sad.js +0 -39
- package/bpk-component-icon/lg/face-id.js +0 -39
- package/bpk-component-icon/lg/face-mask.js +0 -39
- package/bpk-component-icon/lg/family.js +0 -39
- package/bpk-component-icon/lg/fast-track.js +0 -41
- package/bpk-component-icon/lg/fast-train.js +0 -41
- package/bpk-component-icon/lg/filter.js +0 -40
- package/bpk-component-icon/lg/fingerprint.js +0 -39
- package/bpk-component-icon/lg/flag.js +0 -39
- package/bpk-component-icon/lg/flask.js +0 -39
- package/bpk-component-icon/lg/flight-flexible.js +0 -39
- package/bpk-component-icon/lg/flight-landing.js +0 -43
- package/bpk-component-icon/lg/flight-takeoff.js +0 -41
- package/bpk-component-icon/lg/flight.js +0 -41
- package/bpk-component-icon/lg/food.js +0 -39
- package/bpk-component-icon/lg/gears-automatic-circle.js +0 -39
- package/bpk-component-icon/lg/gears-automatic.js +0 -39
- package/bpk-component-icon/lg/gears-manual-circle.js +0 -39
- package/bpk-component-icon/lg/gears-manual.js +0 -39
- package/bpk-component-icon/lg/globe.js +0 -39
- package/bpk-component-icon/lg/grid-layout.js +0 -39
- package/bpk-component-icon/lg/headset.js +0 -39
- package/bpk-component-icon/lg/health-fitness.js +0 -39
- package/bpk-component-icon/lg/heart--outline.js +0 -39
- package/bpk-component-icon/lg/heart.js +0 -39
- package/bpk-component-icon/lg/help-circle.js +0 -39
- package/bpk-component-icon/lg/help.js +0 -39
- package/bpk-component-icon/lg/hide.js +0 -39
- package/bpk-component-icon/lg/hotel-flexible.js +0 -39
- package/bpk-component-icon/lg/hotels--disabled-facilities.js +0 -39
- package/bpk-component-icon/lg/hotels--jacuzzi.js +0 -39
- package/bpk-component-icon/lg/hotels--pets-allowed.js +0 -39
- package/bpk-component-icon/lg/hotels--smoking.js +0 -39
- package/bpk-component-icon/lg/hotels.js +0 -39
- package/bpk-component-icon/lg/infant.js +0 -39
- package/bpk-component-icon/lg/information--language-alert.js +0 -39
- package/bpk-component-icon/lg/information--language-question.js +0 -39
- package/bpk-component-icon/lg/information--language.js +0 -39
- package/bpk-component-icon/lg/information-circle.js +0 -39
- package/bpk-component-icon/lg/information.js +0 -39
- package/bpk-component-icon/lg/insurance.js +0 -39
- package/bpk-component-icon/lg/key.js +0 -39
- package/bpk-component-icon/lg/keypad.js +0 -39
- package/bpk-component-icon/lg/landmark.js +0 -39
- package/bpk-component-icon/lg/language.js +0 -39
- package/bpk-component-icon/lg/legroom--extra.js +0 -41
- package/bpk-component-icon/lg/legroom--normal.js +0 -41
- package/bpk-component-icon/lg/legroom--reduced.js +0 -41
- package/bpk-component-icon/lg/leisure.js +0 -39
- package/bpk-component-icon/lg/lightning.js +0 -39
- package/bpk-component-icon/lg/list.js +0 -39
- package/bpk-component-icon/lg/location.js +0 -39
- package/bpk-component-icon/lg/lock.js +0 -39
- package/bpk-component-icon/lg/logout.js +0 -41
- package/bpk-component-icon/lg/long-arrow-down.js +0 -39
- package/bpk-component-icon/lg/long-arrow-left.js +0 -39
- package/bpk-component-icon/lg/long-arrow-right.js +0 -39
- package/bpk-component-icon/lg/long-arrow-up.js +0 -39
- package/bpk-component-icon/lg/lounge.js +0 -41
- package/bpk-component-icon/lg/luggageall.js +0 -39
- package/bpk-component-icon/lg/mail.js +0 -41
- package/bpk-component-icon/lg/map.js +0 -39
- package/bpk-component-icon/lg/meal.js +0 -39
- package/bpk-component-icon/lg/media.js +0 -39
- package/bpk-component-icon/lg/menu--horizontal.js +0 -39
- package/bpk-component-icon/lg/menu--vertical.js +0 -39
- package/bpk-component-icon/lg/menu.js +0 -39
- package/bpk-component-icon/lg/mileage.js +0 -41
- package/bpk-component-icon/lg/minus.js +0 -39
- package/bpk-component-icon/lg/mobile.js +0 -39
- package/bpk-component-icon/lg/money.js +0 -39
- package/bpk-component-icon/lg/multiple-bookings.js +0 -39
- package/bpk-component-icon/lg/music.js +0 -39
- package/bpk-component-icon/lg/mute.js +0 -39
- package/bpk-component-icon/lg/native-android--back.js +0 -39
- package/bpk-component-icon/lg/native-android--close.js +0 -39
- package/bpk-component-icon/lg/native-android--forward.js +0 -39
- package/bpk-component-icon/lg/native-ios-close.js +0 -39
- package/bpk-component-icon/lg/navigation.js +0 -39
- package/bpk-component-icon/lg/new-window.js +0 -41
- package/bpk-component-icon/lg/news.js +0 -39
- package/bpk-component-icon/lg/night.js +0 -39
- package/bpk-component-icon/lg/not-allowed.js +0 -39
- package/bpk-component-icon/lg/onsen.js +0 -39
- package/bpk-component-icon/lg/paid.js +0 -39
- package/bpk-component-icon/lg/paperclip.js +0 -39
- package/bpk-component-icon/lg/parking.js +0 -39
- package/bpk-component-icon/lg/passport.js +0 -39
- package/bpk-component-icon/lg/pause.js +0 -39
- package/bpk-component-icon/lg/payment-card.js +0 -39
- package/bpk-component-icon/lg/petrol.js +0 -39
- package/bpk-component-icon/lg/phone-call.js +0 -39
- package/bpk-component-icon/lg/picture.js +0 -39
- package/bpk-component-icon/lg/pin.js +0 -39
- package/bpk-component-icon/lg/plane-seat.js +0 -41
- package/bpk-component-icon/lg/play.js +0 -39
- package/bpk-component-icon/lg/plus.js +0 -39
- package/bpk-component-icon/lg/policy.js +0 -39
- package/bpk-component-icon/lg/powerplug.js +0 -39
- package/bpk-component-icon/lg/ppe.js +0 -39
- package/bpk-component-icon/lg/price-alerts.js +0 -39
- package/bpk-component-icon/lg/price-tag.js +0 -39
- package/bpk-component-icon/lg/print.js +0 -39
- package/bpk-component-icon/lg/recent-searches.js +0 -39
- package/bpk-component-icon/lg/redo.js +0 -39
- package/bpk-component-icon/lg/refresh.js +0 -39
- package/bpk-component-icon/lg/return.js +0 -41
- package/bpk-component-icon/lg/room.js +0 -39
- package/bpk-component-icon/lg/scales.js +0 -41
- package/bpk-component-icon/lg/search.js +0 -39
- package/bpk-component-icon/lg/self-service.js +0 -39
- package/bpk-component-icon/lg/send-message.js +0 -39
- package/bpk-component-icon/lg/services.js +0 -39
- package/bpk-component-icon/lg/settings.js +0 -39
- package/bpk-component-icon/lg/share--android.js +0 -39
- package/bpk-component-icon/lg/share--ios.js +0 -41
- package/bpk-component-icon/lg/share.js +0 -39
- package/bpk-component-icon/lg/single-booking.js +0 -39
- package/bpk-component-icon/lg/social-distancing.js +0 -41
- package/bpk-component-icon/lg/social-like.js +0 -39
- package/bpk-component-icon/lg/sort-down.js +0 -39
- package/bpk-component-icon/lg/sort-up.js +0 -39
- package/bpk-component-icon/lg/sort.js +0 -39
- package/bpk-component-icon/lg/speaker.js +0 -41
- package/bpk-component-icon/lg/star-half.js +0 -39
- package/bpk-component-icon/lg/star-outline.js +0 -39
- package/bpk-component-icon/lg/star.js +0 -39
- package/bpk-component-icon/lg/stops.js +0 -39
- package/bpk-component-icon/lg/swap--horizontal.js +0 -39
- package/bpk-component-icon/lg/swap--vertical.js +0 -39
- package/bpk-component-icon/lg/swap.js +0 -39
- package/bpk-component-icon/lg/taxi.js +0 -41
- package/bpk-component-icon/lg/thumbs-down.js +0 -39
- package/bpk-component-icon/lg/thumbs-up.js +0 -39
- package/bpk-component-icon/lg/tick-circle.js +0 -39
- package/bpk-component-icon/lg/tick.js +0 -39
- package/bpk-component-icon/lg/ticket-flexible.js +0 -39
- package/bpk-component-icon/lg/ticket.js +0 -39
- package/bpk-component-icon/lg/time.js +0 -39
- package/bpk-component-icon/lg/toilets.js +0 -39
- package/bpk-component-icon/lg/train.js +0 -39
- package/bpk-component-icon/lg/transmission-automatic.js +0 -39
- package/bpk-component-icon/lg/transmission-manual.js +0 -39
- package/bpk-component-icon/lg/trash.js +0 -39
- package/bpk-component-icon/lg/trend--down.js +0 -39
- package/bpk-component-icon/lg/trend--steady.js +0 -39
- package/bpk-component-icon/lg/trend--will-rise.js +0 -39
- package/bpk-component-icon/lg/trend.js +0 -39
- package/bpk-component-icon/lg/trips.js +0 -39
- package/bpk-component-icon/lg/undo.js +0 -39
- package/bpk-component-icon/lg/unlock.js +0 -39
- package/bpk-component-icon/lg/unmute.js +0 -41
- package/bpk-component-icon/lg/upgrade.js +0 -39
- package/bpk-component-icon/lg/use-location.js +0 -39
- package/bpk-component-icon/lg/view.js +0 -39
- package/bpk-component-icon/lg/virus.js +0 -39
- package/bpk-component-icon/lg/wallet.js +0 -41
- package/bpk-component-icon/lg/weather--clear.js +0 -39
- package/bpk-component-icon/lg/weather--cloudy.js +0 -41
- package/bpk-component-icon/lg/weather--fog.js +0 -39
- package/bpk-component-icon/lg/weather--partly-cloudy.js +0 -41
- package/bpk-component-icon/lg/weather--rain.js +0 -43
- package/bpk-component-icon/lg/weather--snow.js +0 -39
- package/bpk-component-icon/lg/weather--thunderstorm.js +0 -43
- package/bpk-component-icon/lg/weather--tornado.js +0 -39
- package/bpk-component-icon/lg/weather--wind.js +0 -39
- package/bpk-component-icon/lg/weather.js +0 -39
- package/bpk-component-icon/lg/wifi.js +0 -39
- package/bpk-component-icon/lg/window--reduce.js +0 -41
- package/bpk-component-icon/lg/window.js +0 -39
- package/bpk-component-icon/lg/world--amer.js +0 -39
- package/bpk-component-icon/lg/world--apac.js +0 -39
- package/bpk-component-icon/lg/world--emea.js +0 -41
- package/bpk-component-icon/sm/accessibility.js +0 -40
- package/bpk-component-icon/sm/account--add.js +0 -40
- package/bpk-component-icon/sm/account--female.js +0 -40
- package/bpk-component-icon/sm/account--id-card.js +0 -40
- package/bpk-component-icon/sm/account--name.js +0 -40
- package/bpk-component-icon/sm/account--permit.js +0 -40
- package/bpk-component-icon/sm/account-circle.js +0 -40
- package/bpk-component-icon/sm/account.js +0 -40
- package/bpk-component-icon/sm/add-circle.js +0 -40
- package/bpk-component-icon/sm/adult.js +0 -40
- package/bpk-component-icon/sm/aircon.js +0 -40
- package/bpk-component-icon/sm/aircraft.js +0 -42
- package/bpk-component-icon/sm/airline--multiple.js +0 -40
- package/bpk-component-icon/sm/airline.js +0 -40
- package/bpk-component-icon/sm/airports.js +0 -40
- package/bpk-component-icon/sm/alert--active.js +0 -40
- package/bpk-component-icon/sm/alert--add.js +0 -40
- package/bpk-component-icon/sm/alert--expired.js +0 -40
- package/bpk-component-icon/sm/alert--remove.js +0 -40
- package/bpk-component-icon/sm/arrow-down.js +0 -40
- package/bpk-component-icon/sm/arrow-left.js +0 -40
- package/bpk-component-icon/sm/arrow-right.js +0 -40
- package/bpk-component-icon/sm/arrow-up.js +0 -40
- package/bpk-component-icon/sm/award.js +0 -40
- package/bpk-component-icon/sm/baby-carriage.js +0 -40
- package/bpk-component-icon/sm/baggage--add.js +0 -40
- package/bpk-component-icon/sm/baggage--remove.js +0 -40
- package/bpk-component-icon/sm/baggage-cross.js +0 -40
- package/bpk-component-icon/sm/baggage-tick.js +0 -40
- package/bpk-component-icon/sm/baggage.js +0 -40
- package/bpk-component-icon/sm/bar.js +0 -40
- package/bpk-component-icon/sm/beach.js +0 -42
- package/bpk-component-icon/sm/beer.js +0 -40
- package/bpk-component-icon/sm/breakfast-cross.js +0 -40
- package/bpk-component-icon/sm/breakfast-tick.js +0 -40
- package/bpk-component-icon/sm/bus.js +0 -42
- package/bpk-component-icon/sm/business.js +0 -40
- package/bpk-component-icon/sm/cafe.js +0 -40
- package/bpk-component-icon/sm/calendar.js +0 -40
- package/bpk-component-icon/sm/call-back.js +0 -42
- package/bpk-component-icon/sm/camera.js +0 -40
- package/bpk-component-icon/sm/camper-van.js +0 -42
- package/bpk-component-icon/sm/car-door.js +0 -40
- package/bpk-component-icon/sm/car-wash.js +0 -42
- package/bpk-component-icon/sm/cars-flexible.js +0 -40
- package/bpk-component-icon/sm/cars.js +0 -42
- package/bpk-component-icon/sm/chart.js +0 -40
- package/bpk-component-icon/sm/chauffeur.js +0 -42
- package/bpk-component-icon/sm/chevron-down.js +0 -40
- package/bpk-component-icon/sm/chevron-left.js +0 -40
- package/bpk-component-icon/sm/chevron-right.js +0 -40
- package/bpk-component-icon/sm/chevron-up.js +0 -40
- package/bpk-component-icon/sm/child-seat.js +0 -40
- package/bpk-component-icon/sm/child.js +0 -40
- package/bpk-component-icon/sm/city-center.js +0 -40
- package/bpk-component-icon/sm/city.js +0 -40
- package/bpk-component-icon/sm/clean-policy.js +0 -40
- package/bpk-component-icon/sm/clean.js +0 -42
- package/bpk-component-icon/sm/cleaning-medical.js +0 -40
- package/bpk-component-icon/sm/cloakroom.js +0 -40
- package/bpk-component-icon/sm/close-circle.js +0 -40
- package/bpk-component-icon/sm/close.js +0 -40
- package/bpk-component-icon/sm/collapse.js +0 -40
- package/bpk-component-icon/sm/content--copy.js +0 -42
- package/bpk-component-icon/sm/content--event.js +0 -40
- package/bpk-component-icon/sm/content--guides.js +0 -40
- package/bpk-component-icon/sm/currency.js +0 -40
- package/bpk-component-icon/sm/data.js +0 -42
- package/bpk-component-icon/sm/deals.js +0 -40
- package/bpk-component-icon/sm/depart.js +0 -44
- package/bpk-component-icon/sm/device-mid.js +0 -40
- package/bpk-component-icon/sm/device-wide.js +0 -40
- package/bpk-component-icon/sm/direct.js +0 -42
- package/bpk-component-icon/sm/document-csv.js +0 -40
- package/bpk-component-icon/sm/document-pdf.js +0 -40
- package/bpk-component-icon/sm/download.js +0 -42
- package/bpk-component-icon/sm/duration.js +0 -40
- package/bpk-component-icon/sm/eco-leaf.js +0 -40
- package/bpk-component-icon/sm/edit.js +0 -40
- package/bpk-component-icon/sm/education.js +0 -42
- package/bpk-component-icon/sm/electric.js +0 -40
- package/bpk-component-icon/sm/end-call.js +0 -40
- package/bpk-component-icon/sm/estimated.js +0 -40
- package/bpk-component-icon/sm/exclamation-circle.js +0 -40
- package/bpk-component-icon/sm/exclamation.js +0 -40
- package/bpk-component-icon/sm/expand.js +0 -40
- package/bpk-component-icon/sm/explore.js +0 -40
- package/bpk-component-icon/sm/face--blank.js +0 -40
- package/bpk-component-icon/sm/face--happy.js +0 -40
- package/bpk-component-icon/sm/face--sad.js +0 -40
- package/bpk-component-icon/sm/face-mask.js +0 -40
- package/bpk-component-icon/sm/family.js +0 -40
- package/bpk-component-icon/sm/fast-track.js +0 -42
- package/bpk-component-icon/sm/fast-train.js +0 -42
- package/bpk-component-icon/sm/filter.js +0 -41
- package/bpk-component-icon/sm/flag.js +0 -40
- package/bpk-component-icon/sm/flask.js +0 -40
- package/bpk-component-icon/sm/flight-flexible.js +0 -40
- package/bpk-component-icon/sm/flight-landing.js +0 -44
- package/bpk-component-icon/sm/flight-takeoff.js +0 -42
- package/bpk-component-icon/sm/flight.js +0 -42
- package/bpk-component-icon/sm/food.js +0 -40
- package/bpk-component-icon/sm/gears-automatic-circle.js +0 -40
- package/bpk-component-icon/sm/gears-automatic.js +0 -40
- package/bpk-component-icon/sm/gears-manual-circle.js +0 -40
- package/bpk-component-icon/sm/gears-manual.js +0 -40
- package/bpk-component-icon/sm/globe.js +0 -40
- package/bpk-component-icon/sm/grid-layout.js +0 -40
- package/bpk-component-icon/sm/headset.js +0 -40
- package/bpk-component-icon/sm/health-fitness.js +0 -40
- package/bpk-component-icon/sm/heart--outline.js +0 -40
- package/bpk-component-icon/sm/heart.js +0 -40
- package/bpk-component-icon/sm/help-circle.js +0 -40
- package/bpk-component-icon/sm/help.js +0 -40
- package/bpk-component-icon/sm/hide.js +0 -40
- package/bpk-component-icon/sm/hotel-flexible.js +0 -40
- package/bpk-component-icon/sm/hotels--disabled-facilities.js +0 -40
- package/bpk-component-icon/sm/hotels--jacuzzi.js +0 -42
- package/bpk-component-icon/sm/hotels--pets-allowed.js +0 -40
- package/bpk-component-icon/sm/hotels--smoking.js +0 -40
- package/bpk-component-icon/sm/hotels.js +0 -40
- package/bpk-component-icon/sm/infant.js +0 -42
- package/bpk-component-icon/sm/information--language-alert.js +0 -40
- package/bpk-component-icon/sm/information--language-question.js +0 -40
- package/bpk-component-icon/sm/information--language.js +0 -40
- package/bpk-component-icon/sm/information-circle.js +0 -40
- package/bpk-component-icon/sm/information.js +0 -40
- package/bpk-component-icon/sm/insurance.js +0 -40
- package/bpk-component-icon/sm/key.js +0 -40
- package/bpk-component-icon/sm/keypad.js +0 -40
- package/bpk-component-icon/sm/landmark.js +0 -40
- package/bpk-component-icon/sm/language.js +0 -40
- package/bpk-component-icon/sm/legroom--extra.js +0 -42
- package/bpk-component-icon/sm/legroom--normal.js +0 -42
- package/bpk-component-icon/sm/legroom--reduced.js +0 -42
- package/bpk-component-icon/sm/leisure.js +0 -40
- package/bpk-component-icon/sm/lightning.js +0 -40
- package/bpk-component-icon/sm/list.js +0 -40
- package/bpk-component-icon/sm/location.js +0 -40
- package/bpk-component-icon/sm/lock.js +0 -40
- package/bpk-component-icon/sm/logout.js +0 -42
- package/bpk-component-icon/sm/long-arrow-down.js +0 -41
- package/bpk-component-icon/sm/long-arrow-left.js +0 -41
- package/bpk-component-icon/sm/long-arrow-right.js +0 -41
- package/bpk-component-icon/sm/long-arrow-up.js +0 -41
- package/bpk-component-icon/sm/lounge.js +0 -40
- package/bpk-component-icon/sm/luggageall.js +0 -40
- package/bpk-component-icon/sm/mail.js +0 -42
- package/bpk-component-icon/sm/map.js +0 -40
- package/bpk-component-icon/sm/meal.js +0 -40
- package/bpk-component-icon/sm/media.js +0 -40
- package/bpk-component-icon/sm/menu--horizontal.js +0 -40
- package/bpk-component-icon/sm/menu--vertical.js +0 -40
- package/bpk-component-icon/sm/menu.js +0 -40
- package/bpk-component-icon/sm/mileage.js +0 -42
- package/bpk-component-icon/sm/minus.js +0 -40
- package/bpk-component-icon/sm/mobile.js +0 -40
- package/bpk-component-icon/sm/money.js +0 -40
- package/bpk-component-icon/sm/multiple-bookings.js +0 -40
- package/bpk-component-icon/sm/music.js +0 -40
- package/bpk-component-icon/sm/mute.js +0 -40
- package/bpk-component-icon/sm/native-android--back.js +0 -40
- package/bpk-component-icon/sm/native-android--close.js +0 -40
- package/bpk-component-icon/sm/native-android--forward.js +0 -40
- package/bpk-component-icon/sm/native-ios-close.js +0 -40
- package/bpk-component-icon/sm/navigation.js +0 -40
- package/bpk-component-icon/sm/new-window.js +0 -46
- package/bpk-component-icon/sm/news.js +0 -40
- package/bpk-component-icon/sm/night.js +0 -40
- package/bpk-component-icon/sm/not-allowed.js +0 -40
- package/bpk-component-icon/sm/onsen.js +0 -42
- package/bpk-component-icon/sm/paid.js +0 -40
- package/bpk-component-icon/sm/paperclip.js +0 -40
- package/bpk-component-icon/sm/parking.js +0 -40
- package/bpk-component-icon/sm/passport.js +0 -40
- package/bpk-component-icon/sm/pause.js +0 -40
- package/bpk-component-icon/sm/payment-card.js +0 -40
- package/bpk-component-icon/sm/petrol.js +0 -40
- package/bpk-component-icon/sm/phone-call.js +0 -40
- package/bpk-component-icon/sm/picture.js +0 -40
- package/bpk-component-icon/sm/pin.js +0 -40
- package/bpk-component-icon/sm/plane-seat.js +0 -42
- package/bpk-component-icon/sm/play.js +0 -40
- package/bpk-component-icon/sm/plus.js +0 -40
- package/bpk-component-icon/sm/policy.js +0 -40
- package/bpk-component-icon/sm/powerplug.js +0 -40
- package/bpk-component-icon/sm/ppe.js +0 -40
- package/bpk-component-icon/sm/price-alerts.js +0 -40
- package/bpk-component-icon/sm/price-tag.js +0 -40
- package/bpk-component-icon/sm/print.js +0 -40
- package/bpk-component-icon/sm/recent-searches.js +0 -40
- package/bpk-component-icon/sm/redo.js +0 -40
- package/bpk-component-icon/sm/refresh.js +0 -40
- package/bpk-component-icon/sm/return.js +0 -44
- package/bpk-component-icon/sm/room.js +0 -40
- package/bpk-component-icon/sm/scales.js +0 -40
- package/bpk-component-icon/sm/search.js +0 -40
- package/bpk-component-icon/sm/self-service.js +0 -40
- package/bpk-component-icon/sm/send-message.js +0 -40
- package/bpk-component-icon/sm/services.js +0 -40
- package/bpk-component-icon/sm/settings.js +0 -40
- package/bpk-component-icon/sm/share--android.js +0 -40
- package/bpk-component-icon/sm/share--ios.js +0 -44
- package/bpk-component-icon/sm/share.js +0 -40
- package/bpk-component-icon/sm/single-booking.js +0 -40
- package/bpk-component-icon/sm/social-distancing.js +0 -42
- package/bpk-component-icon/sm/social-like.js +0 -40
- package/bpk-component-icon/sm/sort-down.js +0 -40
- package/bpk-component-icon/sm/sort-up.js +0 -40
- package/bpk-component-icon/sm/sort.js +0 -40
- package/bpk-component-icon/sm/speaker.js +0 -40
- package/bpk-component-icon/sm/star-half.js +0 -40
- package/bpk-component-icon/sm/star-outline.js +0 -40
- package/bpk-component-icon/sm/star.js +0 -40
- package/bpk-component-icon/sm/stops.js +0 -40
- package/bpk-component-icon/sm/swap--horizontal.js +0 -41
- package/bpk-component-icon/sm/swap--vertical.js +0 -40
- package/bpk-component-icon/sm/swap.js +0 -41
- package/bpk-component-icon/sm/taxi.js +0 -42
- package/bpk-component-icon/sm/thumbs-down.js +0 -40
- package/bpk-component-icon/sm/thumbs-up.js +0 -40
- package/bpk-component-icon/sm/tick-circle.js +0 -40
- package/bpk-component-icon/sm/tick.js +0 -40
- package/bpk-component-icon/sm/ticket-flexible.js +0 -40
- package/bpk-component-icon/sm/ticket.js +0 -40
- package/bpk-component-icon/sm/time.js +0 -40
- package/bpk-component-icon/sm/toilets.js +0 -40
- package/bpk-component-icon/sm/train.js +0 -40
- package/bpk-component-icon/sm/transmission-automatic.js +0 -40
- package/bpk-component-icon/sm/transmission-manual.js +0 -40
- package/bpk-component-icon/sm/trash.js +0 -40
- package/bpk-component-icon/sm/trend--down.js +0 -40
- package/bpk-component-icon/sm/trend--steady.js +0 -41
- package/bpk-component-icon/sm/trend--will-rise.js +0 -40
- package/bpk-component-icon/sm/trend.js +0 -40
- package/bpk-component-icon/sm/trips.js +0 -40
- package/bpk-component-icon/sm/undo.js +0 -40
- package/bpk-component-icon/sm/unlock.js +0 -40
- package/bpk-component-icon/sm/unmute.js +0 -42
- package/bpk-component-icon/sm/upgrade.js +0 -40
- package/bpk-component-icon/sm/use-location.js +0 -40
- package/bpk-component-icon/sm/view.js +0 -40
- package/bpk-component-icon/sm/virus.js +0 -40
- package/bpk-component-icon/sm/wallet.js +0 -40
- package/bpk-component-icon/sm/weather--clear.js +0 -40
- package/bpk-component-icon/sm/weather--cloudy.js +0 -42
- package/bpk-component-icon/sm/weather--fog.js +0 -40
- package/bpk-component-icon/sm/weather--partly-cloudy.js +0 -40
- package/bpk-component-icon/sm/weather--rain.js +0 -42
- package/bpk-component-icon/sm/weather--snow.js +0 -40
- package/bpk-component-icon/sm/weather--thunderstorm.js +0 -44
- package/bpk-component-icon/sm/weather--tornado.js +0 -40
- package/bpk-component-icon/sm/weather--wind.js +0 -42
- package/bpk-component-icon/sm/weather.js +0 -40
- package/bpk-component-icon/sm/wifi.js +0 -40
- package/bpk-component-icon/sm/window--reduce.js +0 -42
- package/bpk-component-icon/sm/window.js +0 -40
- package/bpk-component-icon/sm/world--amer.js +0 -40
- package/bpk-component-icon/sm/world--apac.js +0 -40
- package/bpk-component-icon/sm/world--emea.js +0 -40
- package/bpk-component-icon/src/BpkIcon.css +0 -18
- package/bpk-component-icon/src/classNameModifierHOCFactory-test.js +0 -88
- package/bpk-component-icon/src/classNameModifierHOCFactory.js +0 -53
- package/bpk-component-icon/src/withAlignment-test.js +0 -69
- package/bpk-component-icon/src/withAlignment.js +0 -48
- package/bpk-component-icon/src/withDescription-test.js +0 -39
- package/bpk-component-icon/src/withDescription.css +0 -18
- package/bpk-component-icon/src/withDescription.js +0 -42
- package/bpk-component-icon/src/withRtlSupport.js +0 -37
- package/bpk-component-image/index.js +0 -62
- package/bpk-component-image/src/BpkBackgroundImage-test.js +0 -148
- package/bpk-component-image/src/BpkBackgroundImage.css +0 -18
- package/bpk-component-image/src/BpkBackgroundImage.js +0 -171
- package/bpk-component-image/src/BpkImage-test.js +0 -167
- package/bpk-component-image/src/BpkImage.css +0 -18
- package/bpk-component-image/src/BpkImage.js +0 -228
- package/bpk-component-image/src/BpkImageBorderRadiusStyles.js +0 -30
- package/bpk-component-image/src/accessibility-test.js +0 -68
- package/bpk-component-image/src/customPropTypes-test.js +0 -54
- package/bpk-component-image/src/customPropTypes.js +0 -37
- package/bpk-component-image/src/withLazyLoading-test.js +0 -92
- package/bpk-component-image/src/withLazyLoading.js +0 -164
- package/bpk-component-image/src/withLoadingBehavior.js +0 -45
- package/bpk-component-infinite-scroll/index.js +0 -48
- package/bpk-component-infinite-scroll/src/DataSource-test.js +0 -93
- package/bpk-component-infinite-scroll/src/DataSource.js +0 -104
- package/bpk-component-infinite-scroll/src/accessibility-test.js +0 -60
- package/bpk-component-infinite-scroll/src/intersection-observer.js +0 -33
- package/bpk-component-infinite-scroll/src/withInfiniteScroll-test.flow.js +0 -92
- package/bpk-component-infinite-scroll/src/withInfiniteScroll-test.js +0 -373
- package/bpk-component-infinite-scroll/src/withInfiniteScroll.css +0 -18
- package/bpk-component-infinite-scroll/src/withInfiniteScroll.js +0 -271
- package/bpk-component-input/index.js +0 -67
- package/bpk-component-input/src/BpkClearButton-test.js +0 -48
- package/bpk-component-input/src/BpkClearButton.css +0 -18
- package/bpk-component-input/src/BpkClearButton.js +0 -73
- package/bpk-component-input/src/BpkInput-test.js +0 -270
- package/bpk-component-input/src/BpkInput.css +0 -18
- package/bpk-component-input/src/BpkInput.js +0 -174
- package/bpk-component-input/src/accessibility-test.js +0 -45
- package/bpk-component-input/src/common-types-test.js +0 -100
- package/bpk-component-input/src/common-types.js +0 -102
- package/bpk-component-input/src/themeAttributes-test.js +0 -28
- package/bpk-component-input/src/themeAttributes.js +0 -26
- package/bpk-component-input/src/withOpenEvents-test.js +0 -161
- package/bpk-component-input/src/withOpenEvents.js +0 -168
- package/bpk-component-label/index.js +0 -30
- package/bpk-component-label/src/BpkLabel-test.js +0 -85
- package/bpk-component-label/src/BpkLabel.css +0 -18
- package/bpk-component-label/src/BpkLabel.js +0 -85
- package/bpk-component-label/src/accessibility-test.js +0 -38
- package/bpk-component-link/index.js +0 -56
- package/bpk-component-link/src/BpkButtonLink-test.js +0 -82
- package/bpk-component-link/src/BpkButtonLink.js +0 -82
- package/bpk-component-link/src/BpkLink-test.js +0 -111
- package/bpk-component-link/src/BpkLink.css +0 -18
- package/bpk-component-link/src/BpkLink.js +0 -105
- package/bpk-component-link/src/accessibility-test.js +0 -53
- package/bpk-component-link/src/themeAttributes.js +0 -28
- package/bpk-component-list/index.js +0 -23
- package/bpk-component-list/src/BpkList-test.js +0 -51
- package/bpk-component-list/src/BpkList.css +0 -18
- package/bpk-component-list/src/BpkList.js +0 -60
- package/bpk-component-list/src/BpkListItem-test.js +0 -43
- package/bpk-component-list/src/BpkListItem.js +0 -56
- package/bpk-component-list/src/accessibility-test.js +0 -40
- package/bpk-component-loading-button/index.js +0 -38
- package/bpk-component-loading-button/src/BpkLoadingButton-test.js +0 -317
- package/bpk-component-loading-button/src/BpkLoadingButton.css +0 -18
- package/bpk-component-loading-button/src/BpkLoadingButton.js +0 -147
- package/bpk-component-loading-button/src/accessibility-test.js +0 -38
- package/bpk-component-map/index.js +0 -86
- package/bpk-component-map/src/BpkBasicMapMarker-test.js +0 -46
- package/bpk-component-map/src/BpkBasicMapMarker.js +0 -53
- package/bpk-component-map/src/BpkIconMarker-test.js +0 -103
- package/bpk-component-map/src/BpkIconMarker.css +0 -18
- package/bpk-component-map/src/BpkIconMarker.js +0 -86
- package/bpk-component-map/src/BpkIconMarkerBackground-test.js +0 -59
- package/bpk-component-map/src/BpkIconMarkerBackground.css +0 -18
- package/bpk-component-map/src/BpkIconMarkerBackground.js +0 -73
- package/bpk-component-map/src/BpkMap.css +0 -18
- package/bpk-component-map/src/BpkMap.js +0 -170
- package/bpk-component-map/src/BpkOverlayView.js +0 -51
- package/bpk-component-map/src/BpkPriceMarker-test.js +0 -125
- package/bpk-component-map/src/BpkPriceMarker.css +0 -18
- package/bpk-component-map/src/BpkPriceMarker.js +0 -99
- package/bpk-component-map/src/DefaultLoadingElement.css +0 -18
- package/bpk-component-map/src/DefaultLoadingElement.js +0 -44
- package/bpk-component-map/src/common-types.js +0 -34
- package/bpk-component-map/src/themeAttributes-test.js +0 -29
- package/bpk-component-map/src/themeAttributes.js +0 -33
- package/bpk-component-map/src/withGoogleMapsScript.js +0 -74
- package/bpk-component-mobile-scroll-container/index.js +0 -30
- package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer-test.js +0 -133
- package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.css +0 -18
- package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.js +0 -221
- package/bpk-component-mobile-scroll-container/src/accessibility-test.js +0 -38
- package/bpk-component-modal/index.js +0 -54
- package/bpk-component-modal/src/BpkModal-test.js +0 -47
- package/bpk-component-modal/src/BpkModal.css +0 -18
- package/bpk-component-modal/src/BpkModal.js +0 -107
- package/bpk-component-modal/src/BpkModalInner-test.js +0 -173
- package/bpk-component-modal/src/BpkModalInner.css +0 -18
- package/bpk-component-modal/src/BpkModalInner.js +0 -136
- package/bpk-component-modal/src/accessibility-test.js +0 -49
- package/bpk-component-modal/src/customPropTypes-test.js +0 -63
- package/bpk-component-modal/src/customPropTypes.js +0 -47
- package/bpk-component-modal/src/themeAttributes-test.js +0 -28
- package/bpk-component-modal/src/themeAttributes.js +0 -28
- package/bpk-component-navigation-bar/index.js +0 -54
- package/bpk-component-navigation-bar/src/BpkNavigationBar-test.js +0 -112
- package/bpk-component-navigation-bar/src/BpkNavigationBar.css +0 -18
- package/bpk-component-navigation-bar/src/BpkNavigationBar.js +0 -89
- package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink-test.js +0 -38
- package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.css +0 -18
- package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.js +0 -55
- package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton-test.js +0 -42
- package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.css +0 -18
- package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.js +0 -57
- package/bpk-component-navigation-bar/src/accessibility-test.js +0 -41
- package/bpk-component-navigation-bar/src/themeAttributes.js +0 -26
- package/bpk-component-navigation-stack/index.js +0 -38
- package/bpk-component-navigation-stack/src/BpkNavigationStack-test.js +0 -66
- package/bpk-component-navigation-stack/src/BpkNavigationStack.css +0 -18
- package/bpk-component-navigation-stack/src/BpkNavigationStack.js +0 -118
- package/bpk-component-navigation-stack/src/accessibility-test.js +0 -40
- package/bpk-component-navigation-stack/src/withNavigationStackState-test.js +0 -109
- package/bpk-component-navigation-stack/src/withNavigationStackState.js +0 -91
- package/bpk-component-nudger/index.js +0 -46
- package/bpk-component-nudger/src/BpkConfigurableNudger.js +0 -118
- package/bpk-component-nudger/src/BpkNudger-test.js +0 -197
- package/bpk-component-nudger/src/BpkNudger.css +0 -18
- package/bpk-component-nudger/src/BpkNudger.js +0 -63
- package/bpk-component-nudger/src/accessibility-test.js +0 -55
- package/bpk-component-nudger/src/common-types.js +0 -42
- package/bpk-component-nudger/src/themeAttributes-test.js +0 -28
- package/bpk-component-nudger/src/themeAttributes.js +0 -28
- package/bpk-component-overlay/index.js +0 -44
- package/bpk-component-overlay/src/BpkOverlay-test.js +0 -79
- package/bpk-component-overlay/src/BpkOverlay.css +0 -18
- package/bpk-component-overlay/src/BpkOverlay.js +0 -75
- package/bpk-component-overlay/src/accessibility-test.js +0 -38
- package/bpk-component-pagination/index.js +0 -38
- package/bpk-component-pagination/src/BpkPagination-test.js +0 -139
- package/bpk-component-pagination/src/BpkPagination.css +0 -18
- package/bpk-component-pagination/src/BpkPagination.js +0 -99
- package/bpk-component-pagination/src/BpkPaginationBreak-test.js +0 -43
- package/bpk-component-pagination/src/BpkPaginationBreak.js +0 -45
- package/bpk-component-pagination/src/BpkPaginationList-test.js +0 -68
- package/bpk-component-pagination/src/BpkPaginationList.css +0 -18
- package/bpk-component-pagination/src/BpkPaginationList.js +0 -95
- package/bpk-component-pagination/src/BpkPaginationNudger-test.js +0 -49
- package/bpk-component-pagination/src/BpkPaginationNudger.css +0 -18
- package/bpk-component-pagination/src/BpkPaginationNudger.js +0 -81
- package/bpk-component-pagination/src/BpkPaginationPage.css +0 -18
- package/bpk-component-pagination/src/BpkPaginationPage.js +0 -71
- package/bpk-component-pagination/src/accessibility-test.js +0 -45
- package/bpk-component-pagination/src/themeAttributes-test.js +0 -28
- package/bpk-component-pagination/src/themeAttributes.js +0 -28
- package/bpk-component-panel/index.js +0 -30
- package/bpk-component-panel/src/BpkPanel-test.js +0 -59
- package/bpk-component-panel/src/BpkPanel.css +0 -18
- package/bpk-component-panel/src/BpkPanel.js +0 -68
- package/bpk-component-panel/src/accessibility-test.js +0 -38
- package/bpk-component-phone-input/index.js +0 -30
- package/bpk-component-phone-input/src/BpkPhoneInput-test.js +0 -148
- package/bpk-component-phone-input/src/BpkPhoneInput.css +0 -18
- package/bpk-component-phone-input/src/BpkPhoneInput.js +0 -187
- package/bpk-component-phone-input/src/accessibility-test.js +0 -66
- package/bpk-component-popover/index.js +0 -54
- package/bpk-component-popover/src/BpkPopover-test.js +0 -150
- package/bpk-component-popover/src/BpkPopover.css +0 -18
- package/bpk-component-popover/src/BpkPopover.js +0 -151
- package/bpk-component-popover/src/BpkPopoverPortal-test.js +0 -224
- package/bpk-component-popover/src/BpkPopoverPortal.js +0 -236
- package/bpk-component-popover/src/accessibility-test.js +0 -61
- package/bpk-component-popover/src/constants.js +0 -30
- package/bpk-component-popover/src/keyboardFocusScope.js +0 -97
- package/bpk-component-popover/src/themeAttributes-test.js +0 -28
- package/bpk-component-popover/src/themeAttributes.js +0 -28
- package/bpk-component-price/index.js +0 -44
- package/bpk-component-price/src/BpkPrice-test.js +0 -65
- package/bpk-component-price/src/BpkPrice.css +0 -18
- package/bpk-component-price/src/BpkPrice.js +0 -85
- package/bpk-component-price/src/accessibility-test.js +0 -42
- package/bpk-component-price/src/common-types.js +0 -34
- package/bpk-component-progress/index.js +0 -38
- package/bpk-component-progress/src/BpkProgress-test.js +0 -139
- package/bpk-component-progress/src/BpkProgress.css +0 -18
- package/bpk-component-progress/src/BpkProgress.js +0 -173
- package/bpk-component-progress/src/accessibility-test.js +0 -47
- package/bpk-component-progress/src/themeAttributes-test.js +0 -28
- package/bpk-component-progress/src/themeAttributes.js +0 -26
- package/bpk-component-radio/index.js +0 -38
- package/bpk-component-radio/src/BpkRadio-test.js +0 -120
- package/bpk-component-radio/src/BpkRadio.css +0 -18
- package/bpk-component-radio/src/BpkRadio.js +0 -77
- package/bpk-component-radio/src/accessibility-test.js +0 -41
- package/bpk-component-radio/src/themeAttributes-test.js +0 -28
- package/bpk-component-radio/src/themeAttributes.js +0 -26
- package/bpk-component-rating/index.js +0 -44
- package/bpk-component-rating/src/BpkRating-test.js +0 -219
- package/bpk-component-rating/src/BpkRating.css +0 -18
- package/bpk-component-rating/src/BpkRating.js +0 -147
- package/bpk-component-rating/src/accessibility-test.js +0 -43
- package/bpk-component-rating/src/common-types.js +0 -34
- package/bpk-component-rtl-toggle/index.js +0 -38
- package/bpk-component-rtl-toggle/src/BpkRtlToggle-test.js +0 -43
- package/bpk-component-rtl-toggle/src/BpkRtlToggle.js +0 -81
- package/bpk-component-rtl-toggle/src/accessibility-test.js +0 -38
- package/bpk-component-rtl-toggle/src/updateOnDirectionChange-test.js +0 -48
- package/bpk-component-rtl-toggle/src/updateOnDirectionChange.js +0 -49
- package/bpk-component-rtl-toggle/src/utils.js +0 -35
- package/bpk-component-scrollable-calendar/index.js +0 -62
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendar-test.js +0 -106
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendar.js +0 -35
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarDate-test.js +0 -95
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarDate.js +0 -53
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid-test.js +0 -147
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.css +0 -18
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.js +0 -62
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList-test.js +0 -127
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.css +0 -18
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.js +0 -140
- package/bpk-component-scrollable-calendar/src/accessibility-test.js +0 -76
- package/bpk-component-scrollable-calendar/src/utils.js +0 -38
- package/bpk-component-scrollable-calendar/test-utils.js +0 -241
- package/bpk-component-section-list/index.js +0 -46
- package/bpk-component-section-list/src/BpkSectionList-test.js +0 -51
- package/bpk-component-section-list/src/BpkSectionList.js +0 -33
- package/bpk-component-section-list/src/BpkSectionListItem-test.js +0 -67
- package/bpk-component-section-list/src/BpkSectionListItem.css +0 -18
- package/bpk-component-section-list/src/BpkSectionListItem.js +0 -98
- package/bpk-component-section-list/src/BpkSectionListSection-test.js +0 -51
- package/bpk-component-section-list/src/BpkSectionListSection.css +0 -18
- package/bpk-component-section-list/src/BpkSectionListSection.js +0 -56
- package/bpk-component-section-list/src/accessibility-test.js +0 -42
- package/bpk-component-select/index.js +0 -38
- package/bpk-component-select/src/BpkSelect-test.js +0 -270
- package/bpk-component-select/src/BpkSelect.css +0 -18
- package/bpk-component-select/src/BpkSelect.js +0 -96
- package/bpk-component-select/src/accessibility-test.js +0 -54
- package/bpk-component-select/src/themeAttributes-test.js +0 -28
- package/bpk-component-select/src/themeAttributes.js +0 -26
- package/bpk-component-skip-link/index.js +0 -38
- package/bpk-component-skip-link/src/BpkSkipLink-test.js +0 -58
- package/bpk-component-skip-link/src/BpkSkipLink.css +0 -18
- package/bpk-component-skip-link/src/BpkSkipLink.js +0 -55
- package/bpk-component-skip-link/src/accessibility-test.js +0 -41
- package/bpk-component-skip-link/src/themeAttributes-test.js +0 -28
- package/bpk-component-skip-link/src/themeAttributes.js +0 -26
- package/bpk-component-slider/index.js +0 -38
- package/bpk-component-slider/src/BpkSlider-test.js +0 -107
- package/bpk-component-slider/src/BpkSlider.css +0 -18
- package/bpk-component-slider/src/BpkSlider.js +0 -75
- package/bpk-component-slider/src/accessibility-test.js +0 -67
- package/bpk-component-slider/src/themeAttributes-test.js +0 -28
- package/bpk-component-slider/src/themeAttributes.js +0 -26
- package/bpk-component-spinner/index.js +0 -47
- package/bpk-component-spinner/src/BpkExtraLargeSpinner-test.js +0 -61
- package/bpk-component-spinner/src/BpkExtraLargeSpinner.js +0 -55
- package/bpk-component-spinner/src/BpkLargeSpinner-test.js +0 -69
- package/bpk-component-spinner/src/BpkLargeSpinner.js +0 -58
- package/bpk-component-spinner/src/BpkSpinner-test.js +0 -69
- package/bpk-component-spinner/src/BpkSpinner.css +0 -18
- package/bpk-component-spinner/src/BpkSpinner.js +0 -58
- package/bpk-component-spinner/src/accessibility-test.js +0 -60
- package/bpk-component-spinner/src/spinnerTypes.js +0 -30
- package/bpk-component-spinner/src/themeAttributes-test.js +0 -28
- package/bpk-component-spinner/src/themeAttributes.js +0 -26
- package/bpk-component-split-input/index.js +0 -38
- package/bpk-component-split-input/src/BpkInputField.css +0 -18
- package/bpk-component-split-input/src/BpkInputField.js +0 -85
- package/bpk-component-split-input/src/BpkSplitInput-test.js +0 -51
- package/bpk-component-split-input/src/BpkSplitInput.css +0 -18
- package/bpk-component-split-input/src/BpkSplitInput.js +0 -268
- package/bpk-component-split-input/src/accessibility-test.js +0 -38
- package/bpk-component-star-rating/index.js +0 -92
- package/bpk-component-star-rating/src/BpkInteractiveStar-test.js +0 -71
- package/bpk-component-star-rating/src/BpkInteractiveStar.css +0 -18
- package/bpk-component-star-rating/src/BpkInteractiveStar.js +0 -72
- package/bpk-component-star-rating/src/BpkInteractiveStarRating-test.js +0 -153
- package/bpk-component-star-rating/src/BpkInteractiveStarRating.js +0 -110
- package/bpk-component-star-rating/src/BpkStar-test.js +0 -93
- package/bpk-component-star-rating/src/BpkStar.css +0 -18
- package/bpk-component-star-rating/src/BpkStar.js +0 -108
- package/bpk-component-star-rating/src/BpkStarRating-test.js +0 -131
- package/bpk-component-star-rating/src/BpkStarRating.css +0 -18
- package/bpk-component-star-rating/src/BpkStarRating.js +0 -108
- package/bpk-component-star-rating/src/accessibility-test.js +0 -56
- package/bpk-component-star-rating/src/themeAttributes-test.js +0 -28
- package/bpk-component-star-rating/src/themeAttributes.js +0 -26
- package/bpk-component-star-rating/src/withInteractiveStarRatingState-test.js +0 -79
- package/bpk-component-star-rating/src/withInteractiveStarRatingState.js +0 -88
- package/bpk-component-switch/index.js +0 -48
- package/bpk-component-switch/src/BpkSwitch-test.js +0 -78
- package/bpk-component-switch/src/BpkSwitch.css +0 -18
- package/bpk-component-switch/src/BpkSwitch.js +0 -71
- package/bpk-component-switch/src/accessibility-test.js +0 -40
- package/bpk-component-switch/src/themeAttributes-test.js +0 -28
- package/bpk-component-switch/src/themeAttributes.js +0 -26
- package/bpk-component-table/index.js +0 -55
- package/bpk-component-table/src/BpkTable-test.js +0 -51
- package/bpk-component-table/src/BpkTable.css +0 -18
- package/bpk-component-table/src/BpkTable.js +0 -56
- package/bpk-component-table/src/BpkTableBody-test.js +0 -52
- package/bpk-component-table/src/BpkTableBody.js +0 -37
- package/bpk-component-table/src/BpkTableCell-test.js +0 -48
- package/bpk-component-table/src/BpkTableCell.js +0 -52
- package/bpk-component-table/src/BpkTableHead-test.js +0 -52
- package/bpk-component-table/src/BpkTableHead.js +0 -37
- package/bpk-component-table/src/BpkTableHeadCell-test.js +0 -60
- package/bpk-component-table/src/BpkTableHeadCell.js +0 -51
- package/bpk-component-table/src/BpkTableRow-test.js +0 -52
- package/bpk-component-table/src/BpkTableRow.js +0 -37
- package/bpk-component-table/src/accessibility-test.js +0 -48
- package/bpk-component-text/index.js +0 -44
- package/bpk-component-text/src/BpkText-test.js +0 -137
- package/bpk-component-text/src/BpkText.css +0 -18
- package/bpk-component-text/src/BpkText.js +0 -115
- package/bpk-component-text/src/accessibility-test.js +0 -38
- package/bpk-component-textarea/index.js +0 -38
- package/bpk-component-textarea/src/BpkTextarea-test.js +0 -50
- package/bpk-component-textarea/src/BpkTextarea.css +0 -18
- package/bpk-component-textarea/src/BpkTextarea.js +0 -63
- package/bpk-component-textarea/src/accessibility-test.js +0 -44
- package/bpk-component-textarea/src/themeAttributes-test.js +0 -28
- package/bpk-component-textarea/src/themeAttributes.js +0 -26
- package/bpk-component-theme-toggle/index.js +0 -38
- package/bpk-component-theme-toggle/src/BpkThemeToggle-test.js +0 -35
- package/bpk-component-theme-toggle/src/BpkThemeToggle.css +0 -18
- package/bpk-component-theme-toggle/src/BpkThemeToggle.js +0 -116
- package/bpk-component-theme-toggle/src/accessibility-test.js +0 -38
- package/bpk-component-theme-toggle/src/theming.js +0 -232
- package/bpk-component-theme-toggle/src/updateOnThemeChange-test.js +0 -61
- package/bpk-component-theme-toggle/src/updateOnThemeChange.js +0 -70
- package/bpk-component-theme-toggle/src/utils.js +0 -30
- package/bpk-component-ticket/index.js +0 -30
- package/bpk-component-ticket/src/BpkTicket-test.js +0 -105
- package/bpk-component-ticket/src/BpkTicket.css +0 -18
- package/bpk-component-ticket/src/BpkTicket.js +0 -104
- package/bpk-component-ticket/src/accessibility-test.js +0 -40
- package/bpk-component-tooltip/index.js +0 -38
- package/bpk-component-tooltip/src/BpkTooltip-test.js +0 -66
- package/bpk-component-tooltip/src/BpkTooltip.css +0 -18
- package/bpk-component-tooltip/src/BpkTooltip.js +0 -85
- package/bpk-component-tooltip/src/BpkTooltipPortal-test.js +0 -72
- package/bpk-component-tooltip/src/BpkTooltipPortal.js +0 -192
- package/bpk-component-tooltip/src/accessibility-test.js +0 -41
- package/bpk-component-tooltip/src/constants.js +0 -36
- package/bpk-react-utils/index.js +0 -124
- package/bpk-react-utils/src/Portal-test.js +0 -630
- package/bpk-react-utils/src/Portal-v1-test.js +0 -367
- package/bpk-react-utils/src/Portal-v1.js +0 -290
- package/bpk-react-utils/src/Portal.js +0 -288
- package/bpk-react-utils/src/TransitionInitialMount-test.js +0 -39
- package/bpk-react-utils/src/TransitionInitialMount.js +0 -65
- package/bpk-react-utils/src/accessibility-test.js +0 -75
- package/bpk-react-utils/src/cssModules-test.js +0 -58
- package/bpk-react-utils/src/cssModules.js +0 -34
- package/bpk-react-utils/src/deprecated.js +0 -40
- package/bpk-react-utils/src/deviceDetection-test.js +0 -81
- package/bpk-react-utils/src/deviceDetection.js +0 -35
- package/bpk-react-utils/src/isRTL-test.js +0 -59
- package/bpk-react-utils/src/isRTL.js +0 -35
- package/bpk-react-utils/src/withDefaultProps-test.js +0 -60
- package/bpk-react-utils/src/withDefaultProps.js +0 -70
- package/bpk-react-utils/src/wrapDisplayName-test.js +0 -36
- package/bpk-react-utils/src/wrapDisplayName.js +0 -38
- package/bpk-scrim-utils/index.js +0 -38
- package/bpk-scrim-utils/src/BpkScrim-test.js +0 -43
- package/bpk-scrim-utils/src/BpkScrim.js +0 -57
- package/bpk-scrim-utils/src/accessibility-test.js +0 -56
- package/bpk-scrim-utils/src/bpk-scrim-content.css +0 -18
- package/bpk-scrim-utils/src/bpk-scrim.css +0 -18
- package/bpk-scrim-utils/src/customPropTypes-test.js +0 -42
- package/bpk-scrim-utils/src/customPropTypes.js +0 -36
- package/bpk-scrim-utils/src/scroll-utils.js +0 -126
- package/bpk-scrim-utils/src/withScrim-test.js +0 -172
- package/bpk-scrim-utils/src/withScrim.js +0 -177
- package/bpk-storybook-utils/index.js +0 -47
- package/bpk-storybook-utils/src/BpkDarkExampleWrapper-test.js +0 -43
- package/bpk-storybook-utils/src/BpkDarkExampleWrapper.css +0 -18
- package/bpk-storybook-utils/src/BpkDarkExampleWrapper.js +0 -46
- package/bpk-storybook-utils/src/BpkStorybookUtils-test.js +0 -36
- package/bpk-storybook-utils/src/BpkStorybookUtils.js +0 -44
- package/bpk-storybook-utils/src/accessibility-test.js +0 -38
- package/bpk-theming/index.js +0 -30
- package/bpk-theming/src/BpkThemeProvider-test.js +0 -177
- package/bpk-theming/src/BpkThemeProvider.js +0 -168
- package/bpk-theming/src/accessibility-test.js +0 -45
- package/react-version-test.js +0 -26
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
Object.defineProperty(exports, "defaultProps", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function () {
|
|
10
|
-
return _BpkFieldset.defaultProps;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
Object.defineProperty(exports, "propTypes", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function () {
|
|
16
|
-
return _BpkFieldset.propTypes;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports, "themeAttributes", {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function () {
|
|
22
|
-
return _themeAttributes.default;
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
var _BpkFieldset = _interopRequireWildcard(require("./src/BpkFieldset"));
|
|
27
|
-
|
|
28
|
-
var _themeAttributes = _interopRequireDefault(require("./src/themeAttributes"));
|
|
29
|
-
|
|
30
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
31
|
-
|
|
32
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
33
|
-
|
|
34
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
35
|
-
|
|
36
|
-
/*
|
|
37
|
-
* Backpack - Skyscanner's Design System
|
|
38
|
-
*
|
|
39
|
-
* Copyright 2016 Skyscanner Ltd
|
|
40
|
-
*
|
|
41
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
42
|
-
* you may not use this file except in compliance with the License.
|
|
43
|
-
* You may obtain a copy of the License at
|
|
44
|
-
*
|
|
45
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
46
|
-
*
|
|
47
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
48
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
49
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
50
|
-
* See the License for the specific language governing permissions and
|
|
51
|
-
* limitations under the License.
|
|
52
|
-
*/
|
|
53
|
-
var _default = _BpkFieldset.default;
|
|
54
|
-
exports.default = _default;
|
|
@@ -1,313 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _react = _interopRequireDefault(require("react"));
|
|
4
|
-
|
|
5
|
-
var _react2 = require("@testing-library/react");
|
|
6
|
-
|
|
7
|
-
var _bpkComponentSelect = _interopRequireDefault(require("../../bpk-component-select"));
|
|
8
|
-
|
|
9
|
-
var _bpkComponentCheckbox = _interopRequireDefault(require("../../bpk-component-checkbox"));
|
|
10
|
-
|
|
11
|
-
var _bpkComponentInput = _interopRequireWildcard(require("../../bpk-component-input"));
|
|
12
|
-
|
|
13
|
-
var _BpkFieldset = _interopRequireWildcard(require("./BpkFieldset"));
|
|
14
|
-
|
|
15
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
16
|
-
|
|
17
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
18
|
-
|
|
19
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
20
|
-
|
|
21
|
-
/*
|
|
22
|
-
* Backpack - Skyscanner's Design System
|
|
23
|
-
*
|
|
24
|
-
* Copyright 2016 Skyscanner Ltd
|
|
25
|
-
*
|
|
26
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
27
|
-
* you may not use this file except in compliance with the License.
|
|
28
|
-
* You may obtain a copy of the License at
|
|
29
|
-
*
|
|
30
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
31
|
-
*
|
|
32
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
33
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
34
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
35
|
-
* See the License for the specific language governing permissions and
|
|
36
|
-
* limitations under the License.
|
|
37
|
-
*/
|
|
38
|
-
describe('BpkFieldset', () => {
|
|
39
|
-
it('should render correctly with input component', () => {
|
|
40
|
-
const {
|
|
41
|
-
asFragment
|
|
42
|
-
} = (0, _react2.render)( /*#__PURE__*/_react.default.createElement(_BpkFieldset.default, {
|
|
43
|
-
label: "Name",
|
|
44
|
-
validationMessage: "Please enter a name"
|
|
45
|
-
}, /*#__PURE__*/_react.default.createElement(_bpkComponentInput.default, {
|
|
46
|
-
id: "name_input",
|
|
47
|
-
name: "name",
|
|
48
|
-
type: _bpkComponentInput.INPUT_TYPES.text,
|
|
49
|
-
placeholder: "e.g. Joe Bloggs",
|
|
50
|
-
value: ""
|
|
51
|
-
})));
|
|
52
|
-
expect(asFragment()).toMatchSnapshot();
|
|
53
|
-
});
|
|
54
|
-
it('should render correctly with input component and "required" attribute', () => {
|
|
55
|
-
const {
|
|
56
|
-
asFragment
|
|
57
|
-
} = (0, _react2.render)( /*#__PURE__*/_react.default.createElement(_BpkFieldset.default, {
|
|
58
|
-
label: "Name",
|
|
59
|
-
validationMessage: "Please enter a name",
|
|
60
|
-
required: true
|
|
61
|
-
}, /*#__PURE__*/_react.default.createElement(_bpkComponentInput.default, {
|
|
62
|
-
id: "name_input",
|
|
63
|
-
name: "name",
|
|
64
|
-
type: _bpkComponentInput.INPUT_TYPES.text,
|
|
65
|
-
placeholder: "e.g. Joe Bloggs",
|
|
66
|
-
value: "",
|
|
67
|
-
valid: true
|
|
68
|
-
})));
|
|
69
|
-
expect(asFragment()).toMatchSnapshot();
|
|
70
|
-
});
|
|
71
|
-
it('should render correctly with input component and "valid" attribute', () => {
|
|
72
|
-
const {
|
|
73
|
-
asFragment
|
|
74
|
-
} = (0, _react2.render)( /*#__PURE__*/_react.default.createElement(_BpkFieldset.default, {
|
|
75
|
-
label: "Name",
|
|
76
|
-
validationMessage: "Please enter a name"
|
|
77
|
-
}, /*#__PURE__*/_react.default.createElement(_bpkComponentInput.default, {
|
|
78
|
-
id: "name_input",
|
|
79
|
-
name: "name",
|
|
80
|
-
type: _bpkComponentInput.INPUT_TYPES.text,
|
|
81
|
-
placeholder: "e.g. Joe Bloggs",
|
|
82
|
-
value: "",
|
|
83
|
-
valid: true
|
|
84
|
-
})));
|
|
85
|
-
expect(asFragment()).toMatchSnapshot();
|
|
86
|
-
});
|
|
87
|
-
it('should render correctly with input component and "valid" attribute equal to false', () => {
|
|
88
|
-
const {
|
|
89
|
-
asFragment
|
|
90
|
-
} = (0, _react2.render)( /*#__PURE__*/_react.default.createElement(_BpkFieldset.default, {
|
|
91
|
-
label: "Name",
|
|
92
|
-
validationMessage: "Please enter a name"
|
|
93
|
-
}, /*#__PURE__*/_react.default.createElement(_bpkComponentInput.default, {
|
|
94
|
-
id: "name_input",
|
|
95
|
-
name: "name",
|
|
96
|
-
type: _bpkComponentInput.INPUT_TYPES.text,
|
|
97
|
-
placeholder: "e.g. Joe Bloggs",
|
|
98
|
-
value: "",
|
|
99
|
-
valid: false
|
|
100
|
-
})));
|
|
101
|
-
expect(asFragment()).toMatchSnapshot();
|
|
102
|
-
});
|
|
103
|
-
it('should render correctly when disabled with input component and "valid" attribute', () => {
|
|
104
|
-
const {
|
|
105
|
-
asFragment
|
|
106
|
-
} = (0, _react2.render)( /*#__PURE__*/_react.default.createElement(_BpkFieldset.default, {
|
|
107
|
-
disabled: true,
|
|
108
|
-
label: "Name",
|
|
109
|
-
validationMessage: "Please enter a name"
|
|
110
|
-
}, /*#__PURE__*/_react.default.createElement(_bpkComponentInput.default, {
|
|
111
|
-
id: "name_input",
|
|
112
|
-
name: "name",
|
|
113
|
-
type: _bpkComponentInput.INPUT_TYPES.text,
|
|
114
|
-
placeholder: "e.g. Joe Bloggs",
|
|
115
|
-
value: "",
|
|
116
|
-
valid: true,
|
|
117
|
-
disabled: true
|
|
118
|
-
})));
|
|
119
|
-
expect(asFragment()).toMatchSnapshot();
|
|
120
|
-
});
|
|
121
|
-
it('should render correctly when disabled with input component and "valid" attribute equal to false', () => {
|
|
122
|
-
const {
|
|
123
|
-
asFragment
|
|
124
|
-
} = (0, _react2.render)( /*#__PURE__*/_react.default.createElement(_BpkFieldset.default, {
|
|
125
|
-
disabled: true,
|
|
126
|
-
label: "Name",
|
|
127
|
-
validationMessage: "Please enter a name"
|
|
128
|
-
}, /*#__PURE__*/_react.default.createElement(_bpkComponentInput.default, {
|
|
129
|
-
id: "name_input",
|
|
130
|
-
name: "name",
|
|
131
|
-
type: _bpkComponentInput.INPUT_TYPES.text,
|
|
132
|
-
placeholder: "e.g. Joe Bloggs",
|
|
133
|
-
value: "",
|
|
134
|
-
valid: false,
|
|
135
|
-
disabled: true
|
|
136
|
-
})));
|
|
137
|
-
expect(asFragment()).toMatchSnapshot();
|
|
138
|
-
});
|
|
139
|
-
it('should render correctly with input component and "disabled" attribute', () => {
|
|
140
|
-
const {
|
|
141
|
-
asFragment
|
|
142
|
-
} = (0, _react2.render)( /*#__PURE__*/_react.default.createElement(_BpkFieldset.default, {
|
|
143
|
-
label: "Name",
|
|
144
|
-
validationMessage: "Please enter a name"
|
|
145
|
-
}, /*#__PURE__*/_react.default.createElement(_bpkComponentInput.default, {
|
|
146
|
-
id: "name_input",
|
|
147
|
-
name: "name",
|
|
148
|
-
type: _bpkComponentInput.INPUT_TYPES.text,
|
|
149
|
-
placeholder: "e.g. Joe Bloggs",
|
|
150
|
-
value: "",
|
|
151
|
-
disabled: true
|
|
152
|
-
})));
|
|
153
|
-
expect(asFragment()).toMatchSnapshot();
|
|
154
|
-
});
|
|
155
|
-
it('should render as disabled when input component is disabled and required', () => {
|
|
156
|
-
const {
|
|
157
|
-
asFragment
|
|
158
|
-
} = (0, _react2.render)( /*#__PURE__*/_react.default.createElement(_BpkFieldset.default, {
|
|
159
|
-
label: "Name",
|
|
160
|
-
validationMessage: "Please enter a name",
|
|
161
|
-
disabled: true,
|
|
162
|
-
required: true
|
|
163
|
-
}, /*#__PURE__*/_react.default.createElement(_bpkComponentInput.default, {
|
|
164
|
-
id: "name_input",
|
|
165
|
-
name: "name",
|
|
166
|
-
type: _bpkComponentInput.INPUT_TYPES.text,
|
|
167
|
-
placeholder: "e.g. Joe Bloggs",
|
|
168
|
-
value: ""
|
|
169
|
-
})));
|
|
170
|
-
expect(asFragment()).toMatchSnapshot();
|
|
171
|
-
});
|
|
172
|
-
it('should render correctly with input component and "description" attribute', () => {
|
|
173
|
-
const {
|
|
174
|
-
asFragment
|
|
175
|
-
} = (0, _react2.render)( /*#__PURE__*/_react.default.createElement(_BpkFieldset.default, {
|
|
176
|
-
label: "Name",
|
|
177
|
-
validationMessage: "Please enter a name",
|
|
178
|
-
description: "Your full name exactly as stated in your passport."
|
|
179
|
-
}, /*#__PURE__*/_react.default.createElement(_bpkComponentInput.default, {
|
|
180
|
-
id: "name_input",
|
|
181
|
-
name: "name",
|
|
182
|
-
type: _bpkComponentInput.INPUT_TYPES.text,
|
|
183
|
-
placeholder: "e.g. Joe Bloggs",
|
|
184
|
-
value: ""
|
|
185
|
-
})));
|
|
186
|
-
expect(asFragment()).toMatchSnapshot();
|
|
187
|
-
});
|
|
188
|
-
it('should render correctly with select component', () => {
|
|
189
|
-
const {
|
|
190
|
-
asFragment
|
|
191
|
-
} = (0, _react2.render)( /*#__PURE__*/_react.default.createElement(_BpkFieldset.default, {
|
|
192
|
-
label: "Fruits",
|
|
193
|
-
validationMessage: "Please select a fruit"
|
|
194
|
-
}, /*#__PURE__*/_react.default.createElement(_bpkComponentSelect.default, {
|
|
195
|
-
id: "fruits_select",
|
|
196
|
-
name: "fruits",
|
|
197
|
-
value: ""
|
|
198
|
-
}, /*#__PURE__*/_react.default.createElement("option", {
|
|
199
|
-
value: ""
|
|
200
|
-
}, "Please select..."), /*#__PURE__*/_react.default.createElement("option", {
|
|
201
|
-
value: "apples"
|
|
202
|
-
}, "Apples"), /*#__PURE__*/_react.default.createElement("option", {
|
|
203
|
-
value: "oranges"
|
|
204
|
-
}, "Oranges"), /*#__PURE__*/_react.default.createElement("option", {
|
|
205
|
-
value: "pears"
|
|
206
|
-
}, "Pears"), /*#__PURE__*/_react.default.createElement("option", {
|
|
207
|
-
value: "tomato",
|
|
208
|
-
disabled: true
|
|
209
|
-
}, "Tomato"))));
|
|
210
|
-
expect(asFragment()).toMatchSnapshot();
|
|
211
|
-
});
|
|
212
|
-
it('should render correctly with select component and "required" attribute', () => {
|
|
213
|
-
const {
|
|
214
|
-
asFragment
|
|
215
|
-
} = (0, _react2.render)( /*#__PURE__*/_react.default.createElement(_BpkFieldset.default, {
|
|
216
|
-
label: "Fruits",
|
|
217
|
-
validationMessage: "Please select a fruit",
|
|
218
|
-
required: true
|
|
219
|
-
}, /*#__PURE__*/_react.default.createElement(_bpkComponentSelect.default, {
|
|
220
|
-
id: "fruits_select",
|
|
221
|
-
name: "fruits",
|
|
222
|
-
value: ""
|
|
223
|
-
}, /*#__PURE__*/_react.default.createElement("option", {
|
|
224
|
-
value: ""
|
|
225
|
-
}, "Please select..."), /*#__PURE__*/_react.default.createElement("option", {
|
|
226
|
-
value: "apples"
|
|
227
|
-
}, "Apples"), /*#__PURE__*/_react.default.createElement("option", {
|
|
228
|
-
value: "oranges"
|
|
229
|
-
}, "Oranges"), /*#__PURE__*/_react.default.createElement("option", {
|
|
230
|
-
value: "pears"
|
|
231
|
-
}, "Pears"), /*#__PURE__*/_react.default.createElement("option", {
|
|
232
|
-
value: "tomato",
|
|
233
|
-
disabled: true
|
|
234
|
-
}, "Tomato"))));
|
|
235
|
-
expect(asFragment()).toMatchSnapshot();
|
|
236
|
-
});
|
|
237
|
-
it('should render as disabled when select component is disabled and required', () => {
|
|
238
|
-
const {
|
|
239
|
-
asFragment
|
|
240
|
-
} = (0, _react2.render)( /*#__PURE__*/_react.default.createElement(_BpkFieldset.default, {
|
|
241
|
-
label: "Fruits",
|
|
242
|
-
validationMessage: "Please select a fruit",
|
|
243
|
-
disabled: true,
|
|
244
|
-
required: true
|
|
245
|
-
}, /*#__PURE__*/_react.default.createElement(_bpkComponentSelect.default, {
|
|
246
|
-
id: "fruits_select",
|
|
247
|
-
name: "fruits",
|
|
248
|
-
value: ""
|
|
249
|
-
}, /*#__PURE__*/_react.default.createElement("option", {
|
|
250
|
-
value: ""
|
|
251
|
-
}, "Please select..."), /*#__PURE__*/_react.default.createElement("option", {
|
|
252
|
-
value: "apples"
|
|
253
|
-
}, "Apples"), /*#__PURE__*/_react.default.createElement("option", {
|
|
254
|
-
value: "oranges"
|
|
255
|
-
}, "Oranges"), /*#__PURE__*/_react.default.createElement("option", {
|
|
256
|
-
value: "pears"
|
|
257
|
-
}, "Pears"), /*#__PURE__*/_react.default.createElement("option", {
|
|
258
|
-
value: "tomato",
|
|
259
|
-
disabled: true
|
|
260
|
-
}, "Tomato"))));
|
|
261
|
-
expect(asFragment()).toMatchSnapshot();
|
|
262
|
-
});
|
|
263
|
-
it('should render correctly with checkbox component', () => {
|
|
264
|
-
const {
|
|
265
|
-
asFragment
|
|
266
|
-
} = (0, _react2.render)( /*#__PURE__*/_react.default.createElement(_BpkFieldset.default, {
|
|
267
|
-
isCheckbox: true,
|
|
268
|
-
validationMessage: "You must accept the terms and conditions to continue"
|
|
269
|
-
}, /*#__PURE__*/_react.default.createElement(_bpkComponentCheckbox.default, {
|
|
270
|
-
id: "terms_and_conditions_checkbox",
|
|
271
|
-
name: "terms_and_conditions",
|
|
272
|
-
label: "I accept the terms and conditions"
|
|
273
|
-
})));
|
|
274
|
-
expect(asFragment()).toMatchSnapshot();
|
|
275
|
-
});
|
|
276
|
-
it('should render correctly with checkbox component and "required" attribute', () => {
|
|
277
|
-
const {
|
|
278
|
-
asFragment
|
|
279
|
-
} = (0, _react2.render)( /*#__PURE__*/_react.default.createElement(_BpkFieldset.default, {
|
|
280
|
-
isCheckbox: true,
|
|
281
|
-
validationMessage: "You must accept the terms and conditions to continue",
|
|
282
|
-
required: true
|
|
283
|
-
}, /*#__PURE__*/_react.default.createElement(_bpkComponentCheckbox.default, {
|
|
284
|
-
id: "terms_and_conditions_checkbox",
|
|
285
|
-
name: "terms_and_conditions",
|
|
286
|
-
label: "I accept the terms and conditions"
|
|
287
|
-
})));
|
|
288
|
-
expect(asFragment()).toMatchSnapshot();
|
|
289
|
-
});
|
|
290
|
-
it('should render as disabled when checkbox component is disabled and required', () => {
|
|
291
|
-
const {
|
|
292
|
-
asFragment
|
|
293
|
-
} = (0, _react2.render)( /*#__PURE__*/_react.default.createElement(_BpkFieldset.default, {
|
|
294
|
-
isCheckbox: true,
|
|
295
|
-
validationMessage: "You must accept the terms and conditions to continue",
|
|
296
|
-
disabled: true,
|
|
297
|
-
required: true
|
|
298
|
-
}, /*#__PURE__*/_react.default.createElement(_bpkComponentCheckbox.default, {
|
|
299
|
-
id: "terms_and_conditions_checkbox",
|
|
300
|
-
name: "terms_and_conditions",
|
|
301
|
-
label: "I accept the terms and conditions"
|
|
302
|
-
})));
|
|
303
|
-
expect(asFragment()).toMatchSnapshot();
|
|
304
|
-
});
|
|
305
|
-
it('should reject label property when label is omitted', () => {
|
|
306
|
-
expect(_BpkFieldset.propTypes.label({}, 'label').toString()).toEqual('Error: `label` is required when `isCheckbox` is false.');
|
|
307
|
-
});
|
|
308
|
-
it('should accept no label property when label is omitted but isCheckbox is included', () => {
|
|
309
|
-
expect(_BpkFieldset.propTypes.label({
|
|
310
|
-
isCheckbox: true
|
|
311
|
-
}, 'label').toString()).toEqual('false');
|
|
312
|
-
});
|
|
313
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
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-fieldset{margin:0;padding:0;border:0}.bpk-fieldset__description{display:block;margin-top:0.5rem;color:#68697f;font-size:.75rem;line-height:1rem;font-weight:400}.bpk-fieldset__label{margin-bottom:0.5rem}
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.propTypes = exports.defaultProps = exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
|
-
var _bpkComponentLabel = _interopRequireDefault(require("../../bpk-component-label"));
|
|
13
|
-
|
|
14
|
-
var _bpkComponentFormValidation = _interopRequireDefault(require("../../bpk-component-form-validation"));
|
|
15
|
-
|
|
16
|
-
var _bpkReactUtils = require("../../bpk-react-utils");
|
|
17
|
-
|
|
18
|
-
var _BpkFieldsetModule = _interopRequireDefault(require("./BpkFieldset.css"));
|
|
19
|
-
|
|
20
|
-
const _excluded = ["children", "className", "description", "disabled", "isCheckbox", "label", "required", "valid", "validationMessage", "validationProps"];
|
|
21
|
-
|
|
22
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
|
-
|
|
24
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
|
-
|
|
26
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
|
-
|
|
28
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
29
|
-
|
|
30
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
31
|
-
|
|
32
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
33
|
-
|
|
34
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
35
|
-
|
|
36
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
37
|
-
|
|
38
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
39
|
-
|
|
40
|
-
const getClassName = (0, _bpkReactUtils.cssModules)(_BpkFieldsetModule.default);
|
|
41
|
-
|
|
42
|
-
const BpkFieldset = props => {
|
|
43
|
-
const {
|
|
44
|
-
children,
|
|
45
|
-
className,
|
|
46
|
-
description,
|
|
47
|
-
disabled,
|
|
48
|
-
isCheckbox,
|
|
49
|
-
label,
|
|
50
|
-
required,
|
|
51
|
-
valid,
|
|
52
|
-
validationMessage,
|
|
53
|
-
validationProps
|
|
54
|
-
} = props,
|
|
55
|
-
rest = _objectWithoutProperties(props, _excluded);
|
|
56
|
-
|
|
57
|
-
if (!children) {
|
|
58
|
-
return null;
|
|
59
|
-
} // $FlowIgnore[prop-missing] - As children could be any element and might not have a value which is safe
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
let childId = children.props.id;
|
|
63
|
-
|
|
64
|
-
if ( // Flow is being dumb here and doesn't let us do this check, even though it's perfectly safe!
|
|
65
|
-
// $FlowIgnore[prop-missing]
|
|
66
|
-
// $FlowIgnore[sketchy-null-mixed]
|
|
67
|
-
children.props.inputProps && // $FlowIgnore[sketchy-null-mixed]
|
|
68
|
-
children.props.inputProps.id && typeof children.props.inputProps.id === 'string') {
|
|
69
|
-
childId = children.props.inputProps.id;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
const classNames = [getClassName('bpk-fieldset')];
|
|
73
|
-
const validationMessageId = `${childId}_validation_message`;
|
|
74
|
-
const descriptionId = `${childId}_description`;
|
|
75
|
-
const isValid = isCheckbox ? valid : children.props.valid; // Explicit check for false primitive value as undefined is
|
|
76
|
-
// treated as neither valid nor invalid
|
|
77
|
-
|
|
78
|
-
const isInvalid = isValid === false;
|
|
79
|
-
const childrenProps = {
|
|
80
|
-
disabled
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
if (isCheckbox) {
|
|
84
|
-
childrenProps.required = required;
|
|
85
|
-
} else {
|
|
86
|
-
childrenProps['aria-required'] = required;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
if (validationMessage && isInvalid) {
|
|
90
|
-
childrenProps['aria-describedby'] = validationMessageId;
|
|
91
|
-
} else if (description) {
|
|
92
|
-
childrenProps['aria-describedby'] = descriptionId;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
const clonedChildren = /*#__PURE__*/(0, _react.cloneElement)(children, childrenProps);
|
|
96
|
-
|
|
97
|
-
if (className) {
|
|
98
|
-
classNames.push(className);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
return (
|
|
102
|
-
/*#__PURE__*/
|
|
103
|
-
// $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
|
|
104
|
-
_react.default.createElement("fieldset", _extends({
|
|
105
|
-
className: classNames.join(' ')
|
|
106
|
-
}, rest), !isCheckbox && /*#__PURE__*/_react.default.createElement(_bpkComponentLabel.default, {
|
|
107
|
-
className: getClassName('bpk-fieldset__label'),
|
|
108
|
-
htmlFor: childId,
|
|
109
|
-
required: required,
|
|
110
|
-
disabled: disabled,
|
|
111
|
-
valid: isValid
|
|
112
|
-
}, label), clonedChildren, description && /*#__PURE__*/_react.default.createElement("span", {
|
|
113
|
-
className: getClassName('bpk-fieldset__description'),
|
|
114
|
-
id: descriptionId
|
|
115
|
-
}, description), !disabled && validationMessage &&
|
|
116
|
-
/*#__PURE__*/
|
|
117
|
-
// $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
|
|
118
|
-
_react.default.createElement(_bpkComponentFormValidation.default, _extends({
|
|
119
|
-
id: validationMessageId,
|
|
120
|
-
expanded: isInvalid,
|
|
121
|
-
isCheckbox: isCheckbox
|
|
122
|
-
}, validationProps), validationMessage))
|
|
123
|
-
);
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
const labelPropType = (props, propName) => {
|
|
127
|
-
const {
|
|
128
|
-
isCheckbox,
|
|
129
|
-
label
|
|
130
|
-
} = props;
|
|
131
|
-
|
|
132
|
-
if (!label && !isCheckbox) {
|
|
133
|
-
return new Error(`\`${propName}\` is required when \`isCheckbox\` is false.`);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
return false;
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
const propTypes = {
|
|
140
|
-
children: _propTypes.default.element.isRequired,
|
|
141
|
-
label: labelPropType,
|
|
142
|
-
disabled: _propTypes.default.bool,
|
|
143
|
-
valid: _propTypes.default.bool,
|
|
144
|
-
required: _propTypes.default.bool,
|
|
145
|
-
className: _propTypes.default.string,
|
|
146
|
-
validationMessage: _propTypes.default.string,
|
|
147
|
-
isCheckbox: _propTypes.default.bool,
|
|
148
|
-
validationProps: _propTypes.default.object,
|
|
149
|
-
description: _propTypes.default.string
|
|
150
|
-
};
|
|
151
|
-
exports.propTypes = propTypes;
|
|
152
|
-
const defaultProps = {
|
|
153
|
-
label: null,
|
|
154
|
-
disabled: false,
|
|
155
|
-
valid: null,
|
|
156
|
-
required: false,
|
|
157
|
-
className: null,
|
|
158
|
-
validationMessage: null,
|
|
159
|
-
isCheckbox: false,
|
|
160
|
-
validationProps: {},
|
|
161
|
-
description: null
|
|
162
|
-
};
|
|
163
|
-
exports.defaultProps = defaultProps;
|
|
164
|
-
BpkFieldset.propTypes = _objectSpread({}, propTypes);
|
|
165
|
-
BpkFieldset.defaultProps = _objectSpread({}, defaultProps);
|
|
166
|
-
var _default = BpkFieldset;
|
|
167
|
-
exports.default = _default;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _react = _interopRequireDefault(require("react"));
|
|
4
|
-
|
|
5
|
-
var _react2 = require("@testing-library/react");
|
|
6
|
-
|
|
7
|
-
var _bpkComponentInput = _interopRequireWildcard(require("../../bpk-component-input"));
|
|
8
|
-
|
|
9
|
-
var _jestAxe = require("jest-axe");
|
|
10
|
-
|
|
11
|
-
var _BpkFieldset = _interopRequireDefault(require("./BpkFieldset"));
|
|
12
|
-
|
|
13
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
|
-
|
|
15
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
16
|
-
|
|
17
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
|
-
|
|
19
|
-
/*
|
|
20
|
-
* Backpack - Skyscanner's Design System
|
|
21
|
-
*
|
|
22
|
-
* Copyright 2016 Skyscanner Ltd
|
|
23
|
-
*
|
|
24
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
25
|
-
* you may not use this file except in compliance with the License.
|
|
26
|
-
* You may obtain a copy of the License at
|
|
27
|
-
*
|
|
28
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
29
|
-
*
|
|
30
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
31
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
32
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
33
|
-
* See the License for the specific language governing permissions and
|
|
34
|
-
* limitations under the License.
|
|
35
|
-
*/
|
|
36
|
-
describe('BpkFieldset accessibility tests', () => {
|
|
37
|
-
it('should not have programmatically-detectable accessibility issues', async () => {
|
|
38
|
-
const {
|
|
39
|
-
container
|
|
40
|
-
} = (0, _react2.render)( /*#__PURE__*/_react.default.createElement(_BpkFieldset.default, {
|
|
41
|
-
label: "Name",
|
|
42
|
-
validationMessage: "Please enter a name"
|
|
43
|
-
}, /*#__PURE__*/_react.default.createElement(_bpkComponentInput.default, {
|
|
44
|
-
id: "name_input",
|
|
45
|
-
name: "name",
|
|
46
|
-
type: _bpkComponentInput.INPUT_TYPES.text,
|
|
47
|
-
placeholder: "e.g. Joe Bloggs",
|
|
48
|
-
value: ""
|
|
49
|
-
})));
|
|
50
|
-
const results = await (0, _jestAxe.axe)(container);
|
|
51
|
-
expect(results).toHaveNoViolations();
|
|
52
|
-
});
|
|
53
|
-
});
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
/*
|
|
9
|
-
* Backpack - Skyscanner's Design System
|
|
10
|
-
*
|
|
11
|
-
* Copyright 2016 Skyscanner Ltd
|
|
12
|
-
*
|
|
13
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
14
|
-
* you may not use this file except in compliance with the License.
|
|
15
|
-
* You may obtain a copy of the License at
|
|
16
|
-
*
|
|
17
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
18
|
-
*
|
|
19
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
20
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
21
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
22
|
-
* See the License for the specific language governing permissions and
|
|
23
|
-
* limitations under the License.
|
|
24
|
-
*/
|
|
25
|
-
var _default = ['fieldsetLabelTextColor'];
|
|
26
|
-
exports.default = _default;
|