@skyscanner/backpack-web 4.1.0 → 6.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/README.md +65 -64
- package/bpk-component-accordion/src/BpkAccordion.js +0 -1
- package/bpk-component-accordion/src/BpkAccordionItem.js +0 -1
- package/bpk-component-accordion/src/withAccordionItemState.js +0 -1
- package/bpk-component-accordion/src/withSingleItemAccordionState.js +0 -1
- package/bpk-component-aria-live/src/BpkAriaLive.js +0 -1
- package/bpk-component-autosuggest/src/BpkAutosuggest.js +1 -2
- package/bpk-component-autosuggest/src/BpkAutosuggestSuggestion.js +0 -1
- package/bpk-component-badge/src/BpkBadge.js +0 -1
- package/bpk-component-banner-alert/src/AnimateAndFade.js +2 -3
- package/bpk-component-banner-alert/src/BpkBannerAlertInner.js +1 -2
- package/bpk-component-banner-alert/src/withBannerAlertState.js +0 -1
- package/bpk-component-barchart/src/BpkBarchart.js +0 -1
- package/bpk-component-barchart/src/BpkBarchartBar.js +1 -2
- package/bpk-component-barchart/src/BpkChartAxis.js +1 -2
- package/bpk-component-barchart/src/BpkChartDataTable.js +0 -1
- package/bpk-component-barchart/src/BpkChartGridLines.js +0 -1
- package/bpk-component-blockquote/src/BpkBlockquote.js +0 -1
- package/bpk-component-breadcrumb/src/BpkBreadcrumb.js +0 -1
- package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.js +0 -1
- package/bpk-component-button/src/BpkButtonBase.module.css +1 -1
- package/bpk-component-button/src/BpkButtonDestructive.module.css +1 -1
- package/bpk-component-button/src/BpkButtonFeatured.module.css +1 -1
- package/bpk-component-button/src/BpkButtonLink.module.css +1 -1
- package/bpk-component-button/src/BpkButtonLinkOnDark.module.css +18 -0
- package/bpk-component-button/src/BpkButtonPrimaryOnDark.module.css +18 -0
- package/bpk-component-button/src/BpkButtonPrimaryOnLight.module.css +18 -0
- package/bpk-component-button/src/BpkButtonSecondary.module.css +1 -1
- package/bpk-component-button/src/BpkButtonSecondaryOnDark.module.css +18 -0
- package/bpk-component-calendar/src/BpkCalendarContainer.js +0 -1
- package/bpk-component-calendar/src/BpkCalendarDate.js +0 -1
- package/bpk-component-calendar/src/BpkCalendarGrid.js +0 -1
- package/bpk-component-calendar/src/BpkCalendarGridHeader.js +0 -1
- package/bpk-component-calendar/src/BpkCalendarGridTransition.js +0 -1
- package/bpk-component-calendar/src/BpkCalendarNav.js +0 -1
- package/bpk-component-calendar/src/Week.js +0 -1
- package/bpk-component-calendar/src/composeCalendar.js +0 -1
- package/bpk-component-card/src/BpkCard.js +0 -1
- package/bpk-component-checkbox/src/BpkCheckbox.js +0 -1
- package/bpk-component-chip/src/BpkDismissibleChip.js +0 -1
- package/bpk-component-chip/src/BpkSelectableChip.js +0 -1
- package/bpk-component-close-button/src/BpkCloseButton.js +0 -1
- package/bpk-component-code/src/BpkCode.js +0 -1
- package/bpk-component-code/src/BpkCodeBlock.js +0 -1
- package/bpk-component-content-container/src/BpkContentContainer.js +0 -1
- package/bpk-component-content-container/src/BpkContentContainer.module.css +1 -1
- package/bpk-component-datatable/src/BpkDataTable.js +1 -2
- package/bpk-component-datatable/src/BpkDataTableColumn.js +0 -1
- package/bpk-component-datatable/src/bpkHeaderRenderer.js +0 -1
- package/bpk-component-datepicker/src/BpkDatepicker.js +16 -15
- package/bpk-component-description-list/src/ComponentFactory.js +0 -1
- package/bpk-component-dialog/src/BpkDialog.js +0 -1
- package/bpk-component-dialog/src/BpkDialogInner.js +0 -1
- package/bpk-component-dialog/src/BpkDialogInner.module.css +1 -1
- package/bpk-component-drawer/src/BpkDrawer.js +2 -11
- package/bpk-component-drawer/src/BpkDrawerContent.js +0 -1
- package/bpk-component-drawer/src/BpkDrawerContent.module.css +1 -1
- package/bpk-component-fieldset/src/BpkFieldset.js +0 -1
- package/bpk-component-flare/src/BpkContentBubble.js +0 -1
- package/bpk-component-flare/src/BpkFlareBar.js +0 -1
- package/bpk-component-flare/src/bpk-flare-bar.module.css +1 -1
- package/bpk-component-floating-notification/README.md +5 -0
- package/bpk-component-floating-notification/src/BpkFloatingNotification.js +6 -2
- package/bpk-component-floating-notification/src/BpkFloatingNotification.module.css +1 -1
- package/bpk-component-form-validation/src/BpkFormValidation.js +4 -5
- package/bpk-component-graphic-promotion/src/BpkGraphicPromo.js +0 -1
- package/bpk-component-graphic-promotion/src/BpkGraphicPromo.module.css +18 -0
- package/bpk-component-graphic-promotion/src/custom-breakpoints.module.css +17 -0
- package/bpk-component-grid/src/BpkGridColumn.js +0 -1
- package/bpk-component-grid/src/BpkGridColumn.module.css +1 -1
- package/bpk-component-grid/src/BpkGridContainer.js +0 -1
- package/bpk-component-grid/src/BpkGridContainer.module.css +1 -1
- package/bpk-component-grid/src/BpkGridRow.js +0 -1
- package/bpk-component-grid/src/BpkGridRow.module.css +1 -1
- package/bpk-component-grid-toggle/src/BpkGridToggle.js +0 -1
- package/bpk-component-horizontal-nav/src/BpkHorizontalNav.js +1 -2
- package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.js +0 -1
- package/bpk-component-icon/src/BpkIcon.module.css +1 -1
- package/bpk-component-icon/src/classNameModifierHOCFactory.js +0 -1
- package/bpk-component-icon/src/withAlignment.js +0 -1
- package/bpk-component-icon/src/withDescription.js +0 -1
- package/bpk-component-image/src/BpkBackgroundImage.js +2 -3
- package/bpk-component-image/src/BpkImage.js +2 -3
- package/bpk-component-image/src/withLazyLoading.js +1 -2
- package/bpk-component-image/src/withLoadingBehavior.js +0 -1
- package/bpk-component-infinite-scroll/src/withInfiniteScroll.js +1 -2
- package/bpk-component-input/src/BpkClearButton.js +0 -1
- package/bpk-component-input/src/BpkInput.js +0 -1
- package/bpk-component-input/src/withOpenEvents.js +0 -1
- package/bpk-component-label/src/BpkLabel.js +0 -1
- package/bpk-component-link/src/BpkButtonLink.js +0 -1
- package/bpk-component-link/src/BpkLink.js +0 -1
- package/bpk-component-list/src/BpkList.js +0 -1
- package/bpk-component-list/src/BpkList.module.css +1 -1
- package/bpk-component-list/src/BpkListItem.js +0 -1
- package/bpk-component-loading-button/src/BpkLoadingButton.js +0 -1
- package/bpk-component-loading-button/src/BpkLoadingButton.module.css +18 -0
- package/bpk-component-map/src/BpkIconMarker.js +0 -1
- package/bpk-component-map/src/BpkIconMarkerBackground.js +0 -1
- package/bpk-component-map/src/BpkMap.js +1 -2
- package/bpk-component-map/src/BpkMap.module.css +18 -0
- package/bpk-component-map/src/BpkPriceMarker.js +0 -1
- package/bpk-component-map/src/DefaultLoadingElement.js +0 -1
- package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.js +0 -1
- package/bpk-component-modal/src/BpkModal.js +4 -10
- package/bpk-component-modal/src/BpkModal.module.css +1 -1
- package/bpk-component-modal/src/BpkModalInner.js +1 -2
- package/bpk-component-modal/src/BpkModalInner.module.css +1 -1
- package/bpk-component-navigation-bar/src/BpkNavigationBar.js +0 -1
- package/bpk-component-navigation-bar/src/BpkNavigationBar.module.css +1 -1
- package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.js +0 -1
- package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.js +0 -1
- package/bpk-component-navigation-stack/README.md +1 -0
- package/bpk-component-navigation-stack/package.json +1 -0
- package/bpk-component-navigation-stack/src/BpkNavigationStack.js +1 -2
- package/bpk-component-nudger/src/BpkConfigurableNudger.js +0 -1
- package/bpk-component-nudger/src/BpkNudger.js +0 -1
- package/bpk-component-nudger/src/BpkNudger.module.css +1 -1
- package/bpk-component-overlay/src/BpkOverlay.js +0 -1
- package/bpk-component-pagination/src/BpkPagination.js +0 -1
- package/bpk-component-pagination/src/BpkPaginationList.js +0 -1
- package/bpk-component-pagination/src/BpkPaginationNudger.js +0 -1
- package/bpk-component-pagination/src/BpkPaginationPage.js +1 -2
- package/bpk-component-pagination/src/BpkPaginationPage.module.css +1 -1
- package/bpk-component-panel/src/BpkPanel.js +0 -1
- package/bpk-component-phone-input/src/BpkPhoneInput.js +0 -1
- package/bpk-component-phone-input/src/BpkPhoneInput.module.css +1 -1
- package/bpk-component-popover/src/BpkPopover.js +0 -1
- package/bpk-component-popover/src/BpkPopover.module.css +1 -1
- package/bpk-component-popover/src/BpkPopoverPortal.js +25 -15
- package/bpk-component-price/README.md +4 -2
- package/bpk-component-price/index.js +3 -2
- package/bpk-component-price/package.json +1 -1
- package/bpk-component-price/src/BpkPrice.js +16 -13
- package/bpk-component-price/src/BpkPrice.module.css +18 -0
- package/bpk-component-price/src/BpkPrice.module.scss +16 -10
- package/bpk-component-price/src/common-types.js +29 -0
- package/bpk-component-progress/src/BpkProgress.js +0 -1
- package/bpk-component-radio/src/BpkRadio.js +0 -1
- package/bpk-component-rating/src/BpkRating.js +0 -1
- package/bpk-component-rating/src/BpkRating.module.css +1 -1
- package/bpk-component-rtl-toggle/src/BpkRtlToggle.js +0 -1
- package/bpk-component-rtl-toggle/src/updateOnDirectionChange.js +0 -1
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarDate.js +0 -1
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.js +0 -1
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.js +2 -6
- package/bpk-component-section-list/src/BpkSectionListItem.js +0 -1
- package/bpk-component-section-list/src/BpkSectionListSection.js +0 -1
- package/bpk-component-select/src/BpkSelect.js +0 -1
- package/bpk-component-skip-link/src/BpkSkipLink.js +0 -1
- package/bpk-component-slider/src/BpkSlider.js +0 -1
- package/bpk-component-spinner/src/BpkExtraLargeSpinner.js +1 -2
- package/bpk-component-spinner/src/BpkLargeSpinner.js +1 -2
- package/bpk-component-spinner/src/BpkSpinner.js +1 -2
- package/bpk-component-spinner/src/BpkSpinner.module.css +1 -1
- package/bpk-component-split-input/src/BpkInputField.js +2 -3
- package/bpk-component-split-input/src/BpkInputField.module.css +18 -0
- package/bpk-component-split-input/src/BpkInputField.module.scss +3 -3
- package/bpk-component-split-input/src/BpkSplitInput.js +4 -3
- package/bpk-component-split-input/src/BpkSplitInput.module.css +1 -1
- package/bpk-component-split-input/src/BpkSplitInput.module.scss +2 -2
- package/bpk-component-star-rating/src/BpkInteractiveStar.js +0 -1
- package/bpk-component-star-rating/src/BpkInteractiveStarRating.js +0 -1
- package/bpk-component-star-rating/src/BpkStar.js +0 -1
- package/bpk-component-star-rating/src/BpkStarRating.js +0 -1
- package/bpk-component-star-rating/src/withInteractiveStarRatingState.js +0 -1
- package/bpk-component-switch/src/BpkSwitch.js +0 -1
- package/bpk-component-table/src/BpkTable.js +0 -1
- package/bpk-component-table/src/BpkTableCell.js +0 -1
- package/bpk-component-table/src/BpkTableHeadCell.js +0 -1
- package/bpk-component-text/src/BpkText.js +0 -1
- package/bpk-component-text/src/BpkText.module.css +1 -1
- package/bpk-component-textarea/src/BpkTextarea.js +0 -1
- package/bpk-component-theme-toggle/src/BpkThemeToggle.js +0 -1
- package/bpk-component-theme-toggle/src/updateOnThemeChange.js +0 -1
- package/bpk-component-ticket/README.md +0 -1
- package/bpk-component-ticket/package.json +1 -1
- package/bpk-component-ticket/src/BpkTicket.js +0 -41
- package/bpk-component-ticket/src/BpkTicket.module.css +1 -1
- package/bpk-component-ticket/src/BpkTicket.module.scss +13 -165
- package/bpk-component-tooltip/src/BpkTooltip.js +0 -1
- package/bpk-component-tooltip/src/BpkTooltip.module.css +1 -1
- package/bpk-component-tooltip/src/BpkTooltipPortal.js +0 -1
- package/bpk-react-utils/src/Portal.js +1 -1
- package/bpk-scrim-utils/src/BpkScrim.js +0 -1
- package/bpk-scrim-utils/src/bpk-scrim.module.css +1 -1
- package/bpk-scrim-utils/src/withScrim.js +0 -1
- package/package.json +1 -1
|
@@ -15,4 +15,4 @@
|
|
|
15
15
|
* See the License for the specific language governing permissions and
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
|
-
@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-text{margin:0}.bpk-text--xs{font-size:.75rem;line-height:1rem;font-weight:400}.bpk-text--sm{font-size:.875rem;line-height:1.25rem;font-weight:400}.bpk-text--base{font-size:1rem;line-height:1.5rem;font-weight:400}.bpk-text--lg{font-size:1.25rem;line-height:1.75rem;font-weight:400}.bpk-text--xl{font-size:1.5rem;line-height:2rem;font-weight:400}.bpk-text--xxl{font-size:2rem;line-height:2.5rem;font-weight:700}.bpk-text--xxxl{font-size:2.5rem;line-height:3rem;font-weight:700}.bpk-text--xxxxl{font-size:3rem;line-height:3.5rem;font-weight:700;letter-spacing:-.02em}.bpk-text--xxxxxl{font-size:4rem;line-height:4.5rem;font-weight:700;letter-spacing:-.02em}.bpk-text--caption{font-size:.75rem;line-height:1rem;font-weight:400}.bpk-text--footnote{font-size:.875rem;line-height:1.25rem;font-weight:400}.bpk-text--label-1{font-size:1rem;line-height:1.5rem;font-weight:700}.bpk-text--label-2{font-size:.875rem;line-height:1.25rem;font-weight:700}.bpk-text--
|
|
18
|
+
@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-text{margin:0}.bpk-text--xs{font-size:.75rem;line-height:1rem;font-weight:400}.bpk-text--sm{font-size:.875rem;line-height:1.25rem;font-weight:400}.bpk-text--base{font-size:1rem;line-height:1.5rem;font-weight:400}.bpk-text--lg{font-size:1.25rem;line-height:1.75rem;font-weight:400}.bpk-text--xl{font-size:1.5rem;line-height:2rem;font-weight:400}.bpk-text--xxl{font-size:2rem;line-height:2.5rem;font-weight:700}.bpk-text--xxxl{font-size:2.5rem;line-height:3rem;font-weight:700}.bpk-text--xxxxl{font-size:3rem;line-height:3.5rem;font-weight:700;letter-spacing:-.02em}.bpk-text--xxxxxl{font-size:4rem;line-height:4.5rem;font-weight:700;letter-spacing:-.02em}.bpk-text--caption{font-size:.75rem;line-height:1rem;font-weight:400}.bpk-text--footnote{font-size:.875rem;line-height:1.25rem;font-weight:400}.bpk-text--label-1{font-size:1rem;line-height:1.5rem;font-weight:700}.bpk-text--label-2{font-size:.875rem;line-height:1.25rem;font-weight:700}.bpk-text--label-3{font-size:.75rem;line-height:1rem;font-weight:700}.bpk-text--body-default{font-size:1rem;line-height:1.5rem;font-weight:400}.bpk-text--body-longform{font-size:1.25rem;line-height:1.75rem;font-weight:400}.bpk-text--subheading{font-size:1.5rem;line-height:2rem;font-weight:400}.bpk-text--heading-1{font-size:2.5rem;line-height:3rem;font-weight:700}.bpk-text--heading-2{font-size:2rem;line-height:2.5rem;font-weight:700}.bpk-text--heading-3{font-size:1.5rem;line-height:1.75rem;font-weight:700}.bpk-text--heading-4{font-size:1.25rem;line-height:1.5rem;font-weight:700}.bpk-text--heading-5{font-size:1rem;line-height:1.25rem;font-weight:700}.bpk-text--hero-1{font-size:7.5rem;line-height:7.5rem;font-weight:700;letter-spacing:-.02em}.bpk-text--hero-2{font-size:6rem;line-height:6rem;font-weight:700;letter-spacing:-.02em}.bpk-text--hero-3{font-size:4.75rem;line-height:5.25rem;font-weight:700;letter-spacing:-.02em}.bpk-text--hero-4{font-size:4rem;line-height:4.5rem;font-weight:700;letter-spacing:-.02em}.bpk-text--hero-5{font-size:3rem;line-height:3.5rem;font-weight:700;letter-spacing:-.02em}.bpk-text--bold{font-weight:700}.bpk-text--black{font-weight:900}
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
|
|
21
21
|
import PropTypes from 'prop-types';
|
|
22
22
|
import React, { type Node } from 'react';
|
|
23
|
-
|
|
24
23
|
import { cssModules } from '../../bpk-react-utils';
|
|
25
24
|
|
|
26
25
|
import STYLES from './BpkTicket.module.scss';
|
|
@@ -33,7 +32,6 @@ type Props = {
|
|
|
33
32
|
stubProps: { [string]: any },
|
|
34
33
|
padded: boolean,
|
|
35
34
|
vertical: boolean,
|
|
36
|
-
withNotches: boolean,
|
|
37
35
|
className: ?string,
|
|
38
36
|
stubClassName: ?string,
|
|
39
37
|
href: ?string,
|
|
@@ -49,7 +47,6 @@ const BpkTicket = (props: Props) => {
|
|
|
49
47
|
stubClassName,
|
|
50
48
|
stubProps,
|
|
51
49
|
vertical,
|
|
52
|
-
withNotches,
|
|
53
50
|
...rest
|
|
54
51
|
} = props;
|
|
55
52
|
|
|
@@ -57,7 +54,6 @@ const BpkTicket = (props: Props) => {
|
|
|
57
54
|
'bpk-ticket',
|
|
58
55
|
className,
|
|
59
56
|
vertical && 'bpk-ticket--vertical',
|
|
60
|
-
withNotches && 'bpk-ticket--with-notches',
|
|
61
57
|
);
|
|
62
58
|
|
|
63
59
|
const mainClassNames = getClassName(
|
|
@@ -66,7 +62,6 @@ const BpkTicket = (props: Props) => {
|
|
|
66
62
|
padded && 'bpk-ticket__main--padded',
|
|
67
63
|
vertical && 'bpk-ticket__main--vertical',
|
|
68
64
|
!vertical && 'bpk-ticket__main--horizontal',
|
|
69
|
-
withNotches && 'bpk-ticket__paper--with-notches',
|
|
70
65
|
);
|
|
71
66
|
|
|
72
67
|
const mainInnerClassNames = getClassName(
|
|
@@ -82,7 +77,6 @@ const BpkTicket = (props: Props) => {
|
|
|
82
77
|
padded && 'bpk-ticket__stub--padded',
|
|
83
78
|
vertical && 'bpk-ticket__stub--vertical',
|
|
84
79
|
!vertical && 'bpk-ticket__stub--horizontal',
|
|
85
|
-
withNotches && 'bpk-ticket__paper--with-notches',
|
|
86
80
|
);
|
|
87
81
|
|
|
88
82
|
const stubInnerClassNames = getClassName(
|
|
@@ -91,30 +85,6 @@ const BpkTicket = (props: Props) => {
|
|
|
91
85
|
!vertical && 'bpk-ticket__stub-inner--horizontal',
|
|
92
86
|
);
|
|
93
87
|
|
|
94
|
-
const punchlineClassNames = getClassName(
|
|
95
|
-
'bpk-ticket__punchline',
|
|
96
|
-
vertical &&
|
|
97
|
-
(withNotches
|
|
98
|
-
? 'bpk-ticket__punchline--horizontal-with-notches'
|
|
99
|
-
: 'bpk-ticket__punchline--horizontal'),
|
|
100
|
-
!vertical &&
|
|
101
|
-
(withNotches
|
|
102
|
-
? 'bpk-ticket__punchline--vertical-with-notches'
|
|
103
|
-
: 'bpk-ticket__punchline--vertical'),
|
|
104
|
-
);
|
|
105
|
-
|
|
106
|
-
const startNotchClassNames = getClassName(
|
|
107
|
-
'bpk-ticket__notch',
|
|
108
|
-
vertical && 'bpk-ticket__notch--left',
|
|
109
|
-
!vertical && 'bpk-ticket__notch--top',
|
|
110
|
-
);
|
|
111
|
-
|
|
112
|
-
const endNotchClassNames = getClassName(
|
|
113
|
-
'bpk-ticket__notch',
|
|
114
|
-
vertical && 'bpk-ticket__notch--right',
|
|
115
|
-
!vertical && 'bpk-ticket__notch--bottom',
|
|
116
|
-
);
|
|
117
|
-
|
|
118
88
|
const mainContent = padded ? (
|
|
119
89
|
children
|
|
120
90
|
) : (
|
|
@@ -131,15 +101,6 @@ const BpkTicket = (props: Props) => {
|
|
|
131
101
|
<div key="main" className={mainClassNames}>
|
|
132
102
|
{mainContent}
|
|
133
103
|
</div>,
|
|
134
|
-
<div
|
|
135
|
-
key="punchline"
|
|
136
|
-
className={punchlineClassNames}
|
|
137
|
-
role="presentation"
|
|
138
|
-
aria-hidden="true"
|
|
139
|
-
>
|
|
140
|
-
{withNotches && <div className={startNotchClassNames} />}
|
|
141
|
-
{withNotches && <div className={endNotchClassNames} />}
|
|
142
|
-
</div>,
|
|
143
104
|
// $FlowFixMe[cannot-spread-indexer] - inexact rest. See 'decisions/flowfixme.md'.
|
|
144
105
|
<div key="stub" className={stubClassNames} {...stubProps}>
|
|
145
106
|
{stubContent}
|
|
@@ -172,7 +133,6 @@ BpkTicket.propTypes = {
|
|
|
172
133
|
vertical: PropTypes.bool,
|
|
173
134
|
stubClassName: PropTypes.string,
|
|
174
135
|
stubProps: PropTypes.object, // eslint-disable-line react/forbid-prop-types
|
|
175
|
-
withNotches: PropTypes.bool,
|
|
176
136
|
};
|
|
177
137
|
|
|
178
138
|
BpkTicket.defaultProps = {
|
|
@@ -182,7 +142,6 @@ BpkTicket.defaultProps = {
|
|
|
182
142
|
vertical: false,
|
|
183
143
|
stubClassName: null,
|
|
184
144
|
stubProps: {},
|
|
185
|
-
withNotches: true,
|
|
186
145
|
};
|
|
187
146
|
|
|
188
147
|
export default BpkTicket;
|
|
@@ -15,4 +15,4 @@
|
|
|
15
15
|
* See the License for the specific language governing permissions and
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
|
-
@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-ticket{position:relative;display:block;display:flex;flex-direction:row;align-items:stretch;color:#111236;text-decoration:none;
|
|
18
|
+
@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-ticket{position:relative;display:block;display:flex;flex-direction:row;align-items:stretch;flex:none;color:#111236;text-decoration:none;box-shadow:0 5px 12px rgba(0,0,0,0.08),0 3px 12px rgba(0,0,0,0.08);cursor:pointer;border-radius:.75rem;z-index:0}.bpk-ticket::after{position:absolute;top:0;right:0;bottom:0;left:0;content:'';display:block;z-index:-1;transition:opacity 200ms ease-in-out;border-radius:inherit;box-shadow:0px 4px 14px 0px rgba(37,32,31,0.25);opacity:0;pointer-events:none}.bpk-no-touch-support .bpk-ticket:hover:not(:active):not(:disabled)::after{opacity:1}.bpk-no-touch-support .bpk-ticket:hover:not(:active):not(:disabled) .bpk-ticket__paper::after{opacity:1}:global(.bpk-no-touch-support) .bpk-ticket:hover:not(:active):not(:disabled)::after{opacity:1}:global(.bpk-no-touch-support) .bpk-ticket:hover:not(:active):not(:disabled) .bpk-ticket__paper::after{opacity:1}.bpk-ticket--vertical{flex-direction:column}.bpk-ticket__paper{position:relative;background-color:#fff}.bpk-ticket__main{flex:2 1 auto}.bpk-ticket__main--horizontal{border-radius:.75rem 0 0 .75rem}html[dir='rtl'] .bpk-ticket__main--horizontal{border-radius:0 .75rem .75rem 0}.bpk-ticket__main--vertical{border-radius:.75rem .75rem 0 0}.bpk-ticket__main--padded{padding:1rem}.bpk-ticket__main-inner{height:100%;overflow:hidden}.bpk-ticket__main-inner--horizontal{border-radius:.75rem 0 0 .75rem}html[dir='rtl'] .bpk-ticket__main-inner--horizontal{border-radius:0 .75rem .75rem 0}.bpk-ticket__main-inner--vertical{border-radius:.75rem .75rem 0 0}.bpk-ticket__stub{flex:1 1 auto}.bpk-ticket__stub--horizontal{min-width:30%;border-radius:0 .75rem .75rem 0;box-shadow:inset .0625rem 0 0 #cdcdd7}html[dir='rtl'] .bpk-ticket__stub--horizontal{border-radius:.75rem 0 0 .75rem;box-shadow:inset -.0625rem 0 0 #cdcdd7}.bpk-ticket__stub--vertical{border-radius:0 0 .75rem .75rem;box-shadow:inset 0 .0625rem 0 #cdcdd7}.bpk-ticket__stub--padded{padding:1rem}.bpk-ticket__stub-inner{height:100%;overflow:hidden}.bpk-ticket__stub-inner--horizontal{min-width:30%;border-radius:0 .75rem .75rem 0;box-shadow:inset .0625rem 0 0 #cdcdd7}html[dir='rtl'] .bpk-ticket__stub-inner--horizontal{border-radius:.75rem 0 0 .75rem;box-shadow:inset -.0625rem 0 0 #cdcdd7}.bpk-ticket__stub-inner--vertical{border-radius:0 0 .75rem .75rem;box-shadow:inset 0 .0625rem 0 #cdcdd7}
|
|
@@ -41,7 +41,6 @@ $bpk-spacing-v2: true;
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.bpk-ticket {
|
|
44
|
-
$notch-size: bpk-spacing-md();
|
|
45
44
|
$ticket-padding: bpk-spacing-base();
|
|
46
45
|
|
|
47
46
|
position: relative;
|
|
@@ -49,12 +48,14 @@ $bpk-spacing-v2: true;
|
|
|
49
48
|
display: flex;
|
|
50
49
|
flex-direction: row;
|
|
51
50
|
align-items: stretch;
|
|
51
|
+
flex: none;
|
|
52
52
|
color: $bpk-card-color;
|
|
53
53
|
text-decoration: none;
|
|
54
|
+
box-shadow: 0 5px 12px rgba($bpk-button-outline-background-color, 0.08),
|
|
55
|
+
0 3px 12px rgba($bpk-button-outline-background-color, 0.08);
|
|
54
56
|
cursor: pointer;
|
|
55
57
|
|
|
56
|
-
@include bpk-
|
|
57
|
-
@include bpk-border-radius-sm;
|
|
58
|
+
@include bpk-border-radius-md;
|
|
58
59
|
@include hidden-box-shadow-after;
|
|
59
60
|
|
|
60
61
|
@include bpk-hover {
|
|
@@ -71,35 +72,22 @@ $bpk-spacing-v2: true;
|
|
|
71
72
|
flex-direction: column;
|
|
72
73
|
}
|
|
73
74
|
|
|
74
|
-
&--with-notches {
|
|
75
|
-
box-shadow: none;
|
|
76
|
-
|
|
77
|
-
&::after {
|
|
78
|
-
content: none;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
75
|
&__paper {
|
|
83
76
|
position: relative;
|
|
84
77
|
background-color: $bpk-card-background-color;
|
|
85
|
-
|
|
86
|
-
&--with-notches {
|
|
87
|
-
@include bpk-box-shadow-sm;
|
|
88
|
-
@include hidden-box-shadow-after;
|
|
89
|
-
}
|
|
90
78
|
}
|
|
91
79
|
|
|
92
80
|
@mixin main-styles {
|
|
93
81
|
&--horizontal {
|
|
94
|
-
border-radius: $bpk-border-radius-
|
|
82
|
+
border-radius: $bpk-border-radius-md 0 0 $bpk-border-radius-md;
|
|
95
83
|
|
|
96
84
|
@include bpk-rtl {
|
|
97
|
-
border-radius: 0 $bpk-border-radius-
|
|
85
|
+
border-radius: 0 $bpk-border-radius-md $bpk-border-radius-md 0;
|
|
98
86
|
}
|
|
99
87
|
}
|
|
100
88
|
|
|
101
89
|
&--vertical {
|
|
102
|
-
border-radius: $bpk-border-radius-
|
|
90
|
+
border-radius: $bpk-border-radius-md $bpk-border-radius-md 0 0;
|
|
103
91
|
}
|
|
104
92
|
}
|
|
105
93
|
|
|
@@ -123,15 +111,18 @@ $bpk-spacing-v2: true;
|
|
|
123
111
|
@mixin stub-styles {
|
|
124
112
|
&--horizontal {
|
|
125
113
|
min-width: 30%;
|
|
126
|
-
border-radius: 0 $bpk-border-radius-
|
|
114
|
+
border-radius: 0 $bpk-border-radius-md $bpk-border-radius-md 0;
|
|
115
|
+
box-shadow: inset $bpk-one-pixel-rem 0 0 $bpk-color-sky-gray-tint-05;
|
|
127
116
|
|
|
128
117
|
@include bpk-rtl {
|
|
129
|
-
border-radius: $bpk-border-radius-
|
|
118
|
+
border-radius: $bpk-border-radius-md 0 0 $bpk-border-radius-md;
|
|
119
|
+
box-shadow: inset (-$bpk-one-pixel-rem) 0 0 $bpk-color-sky-gray-tint-05;
|
|
130
120
|
}
|
|
131
121
|
}
|
|
132
122
|
|
|
133
123
|
&--vertical {
|
|
134
|
-
border-radius: 0 0 $bpk-border-radius-
|
|
124
|
+
border-radius: 0 0 $bpk-border-radius-md $bpk-border-radius-md;
|
|
125
|
+
box-shadow: inset 0 $bpk-one-pixel-rem 0 $bpk-color-sky-gray-tint-05;
|
|
135
126
|
}
|
|
136
127
|
}
|
|
137
128
|
|
|
@@ -151,147 +142,4 @@ $bpk-spacing-v2: true;
|
|
|
151
142
|
|
|
152
143
|
@include stub-styles;
|
|
153
144
|
}
|
|
154
|
-
|
|
155
|
-
&__punchline {
|
|
156
|
-
position: relative;
|
|
157
|
-
z-index: 1;
|
|
158
|
-
flex: 0 0 auto;
|
|
159
|
-
background-color: $bpk-card-background-color;
|
|
160
|
-
|
|
161
|
-
&--horizontal {
|
|
162
|
-
height: $bpk-one-pixel-rem * 2;
|
|
163
|
-
background-image: linear-gradient(
|
|
164
|
-
$bpk-color-sky-gray-tint-06,
|
|
165
|
-
$bpk-color-sky-gray-tint-06
|
|
166
|
-
);
|
|
167
|
-
background-repeat: repeat-x;
|
|
168
|
-
background-position: 0 50%;
|
|
169
|
-
background-size: 8 * $bpk-one-pixel-rem 2 * $bpk-one-pixel-rem;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
&--horizontal-with-notches {
|
|
173
|
-
height: $notch-size * 2;
|
|
174
|
-
margin: auto $notch-size;
|
|
175
|
-
padding: 0 $notch-size;
|
|
176
|
-
background-image: linear-gradient(
|
|
177
|
-
$bpk-color-sky-gray-tint-06,
|
|
178
|
-
$bpk-color-sky-gray-tint-06
|
|
179
|
-
);
|
|
180
|
-
background-repeat: repeat-x;
|
|
181
|
-
background-position: 0 50%;
|
|
182
|
-
background-size: 8 * $bpk-one-pixel-rem 2 * $bpk-one-pixel-rem;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
&--vertical {
|
|
186
|
-
width: $bpk-one-pixel-rem * 2;
|
|
187
|
-
background-image: linear-gradient(
|
|
188
|
-
$bpk-color-sky-gray-tint-06,
|
|
189
|
-
$bpk-color-sky-gray-tint-06
|
|
190
|
-
);
|
|
191
|
-
background-repeat: repeat-y;
|
|
192
|
-
background-position: 50% 0;
|
|
193
|
-
background-size: 2 * $bpk-one-pixel-rem 8 * $bpk-one-pixel-rem;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
&--vertical-with-notches {
|
|
197
|
-
width: $notch-size * 2;
|
|
198
|
-
margin: $notch-size auto;
|
|
199
|
-
padding: $notch-size 0;
|
|
200
|
-
background-image: linear-gradient(
|
|
201
|
-
$bpk-color-sky-gray-tint-06,
|
|
202
|
-
$bpk-color-sky-gray-tint-06
|
|
203
|
-
);
|
|
204
|
-
background-repeat: repeat-y;
|
|
205
|
-
background-position: 50% 0;
|
|
206
|
-
background-size: 2 * $bpk-one-pixel-rem 8 * $bpk-one-pixel-rem;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
&--fallback {
|
|
210
|
-
display: table-cell;
|
|
211
|
-
width: 2 * $bpk-one-pixel-rem;
|
|
212
|
-
background-image: linear-gradient(
|
|
213
|
-
$bpk-color-sky-gray-tint-06,
|
|
214
|
-
$bpk-color-sky-gray-tint-06
|
|
215
|
-
);
|
|
216
|
-
background-repeat: repeat-y;
|
|
217
|
-
background-position: 50% 0;
|
|
218
|
-
background-size: 2 * $bpk-one-pixel-rem 8 * $bpk-one-pixel-rem;
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
&__notch {
|
|
223
|
-
position: absolute;
|
|
224
|
-
width: $notch-size * 2;
|
|
225
|
-
height: $notch-size;
|
|
226
|
-
overflow: hidden;
|
|
227
|
-
|
|
228
|
-
&::after {
|
|
229
|
-
position: relative;
|
|
230
|
-
content: '';
|
|
231
|
-
display: block;
|
|
232
|
-
width: $notch-size * 4;
|
|
233
|
-
height: $notch-size * 4;
|
|
234
|
-
transform: translate3d(
|
|
235
|
-
0,
|
|
236
|
-
0,
|
|
237
|
-
0
|
|
238
|
-
); // BPK-1011 fix rendering bug in safari 11
|
|
239
|
-
|
|
240
|
-
border: $notch-size solid $bpk-color-white;
|
|
241
|
-
border-radius: $notch-size * 2;
|
|
242
|
-
box-shadow: $bpk-box-shadow-sm inset;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
&--top {
|
|
246
|
-
top: -$notch-size;
|
|
247
|
-
|
|
248
|
-
&::after {
|
|
249
|
-
right: -50%;
|
|
250
|
-
bottom: 200%;
|
|
251
|
-
left: -50%;
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
&--right {
|
|
256
|
-
right: -$notch-size;
|
|
257
|
-
width: $notch-size;
|
|
258
|
-
height: $notch-size * 2;
|
|
259
|
-
|
|
260
|
-
&::after {
|
|
261
|
-
right: 100%;
|
|
262
|
-
bottom: 50%;
|
|
263
|
-
|
|
264
|
-
@include bpk-rtl {
|
|
265
|
-
right: auto;
|
|
266
|
-
left: 200%;
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
&--bottom {
|
|
272
|
-
bottom: -$notch-size;
|
|
273
|
-
|
|
274
|
-
&::after {
|
|
275
|
-
right: -50%;
|
|
276
|
-
bottom: 100%;
|
|
277
|
-
left: -50%;
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
&--left {
|
|
282
|
-
left: -$notch-size;
|
|
283
|
-
width: $notch-size;
|
|
284
|
-
height: $notch-size * 2;
|
|
285
|
-
|
|
286
|
-
&::after {
|
|
287
|
-
right: 200%;
|
|
288
|
-
bottom: 50%;
|
|
289
|
-
|
|
290
|
-
@include bpk-rtl {
|
|
291
|
-
right: auto;
|
|
292
|
-
left: 100%;
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
145
|
}
|
|
@@ -26,7 +26,6 @@ The actual component that developers create (i.e. the default export from this p
|
|
|
26
26
|
|
|
27
27
|
import PropTypes from 'prop-types';
|
|
28
28
|
import React, { type Node } from 'react';
|
|
29
|
-
|
|
30
29
|
import { TransitionInitialMount, cssModules } from '../../bpk-react-utils';
|
|
31
30
|
|
|
32
31
|
import STYLES from './BpkTooltip.module.scss';
|
|
@@ -15,4 +15,4 @@
|
|
|
15
15
|
* See the License for the specific language governing permissions and
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
|
-
@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-tooltip-portal{z-index:900}.bpk-tooltip
|
|
18
|
+
@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-tooltip-portal{z-index:900}.bpk-tooltip{transition:opacity 200ms ease-in-out,transform 200ms ease-in-out;outline:0;opacity:1}.bpk-tooltip--appear{opacity:0}.bpk-tooltip-portal[data-popper-placement='top'] .bpk-tooltip--appear:not(.bpk-tooltip--appear-active){transform:translate(0, -1rem);transition:none}.bpk-tooltip-portal[data-popper-placement='right'] .bpk-tooltip--appear:not(.bpk-tooltip--appear-active){transform:translate(1rem, 0);transition:none}.bpk-tooltip-portal[data-popper-placement='bottom'] .bpk-tooltip--appear:not(.bpk-tooltip--appear-active){transform:translate(0, 1rem);transition:none}.bpk-tooltip-portal[data-popper-placement='left'] .bpk-tooltip--appear:not(.bpk-tooltip--appear-active){transform:translate(-1rem, 0);transition:none}.bpk-tooltip--appear-active{transform:translate(0, 0);transition:opacity 200ms ease-in-out,transform 200ms ease-in-out;opacity:1}.bpk-tooltip__arrow{position:aboslute;width:.5rem;height:.5rem;transform:rotate(45deg);border:.0625rem solid transparent;background:inherit;background-color:#fff}.bpk-tooltip-portal[data-popper-placement='top'] .bpk-tooltip__arrow{bottom:-.1875rem;border-right-color:#dddde5;border-bottom-color:#dddde5}.bpk-tooltip-portal[data-popper-placement='right'] .bpk-tooltip__arrow{left:-.1875rem;border-bottom-color:#dddde5;border-left-color:#dddde5}.bpk-tooltip-portal[data-popper-placement='bottom'] .bpk-tooltip__arrow{top:-.1875rem;border-top-color:#dddde5;border-left-color:#dddde5}.bpk-tooltip-portal[data-popper-placement='left'] .bpk-tooltip__arrow{right:-.1875rem;border-top-color:#dddde5;border-right-color:#dddde5}.bpk-tooltip__arrow--dark{background-color:#111236}.bpk-tooltip-portal[data-popper-placement='top'] .bpk-tooltip__arrow--dark{border-right-color:#111236;border-bottom-color:#111236}.bpk-tooltip-portal[data-popper-placement='right'] .bpk-tooltip__arrow--dark{border-bottom-color:#111236;border-left-color:#111236}.bpk-tooltip-portal[data-popper-placement='bottom'] .bpk-tooltip__arrow--dark{border-top-color:#111236;border-left-color:#111236}.bpk-tooltip-portal[data-popper-placement='left'] .bpk-tooltip__arrow--dark{border-top-color:#111236;border-right-color:#111236}.bpk-tooltip__inner{overflow:hidden;border:.0625rem solid #dddde5;background-color:#fff;border-radius:.375rem;box-shadow:0px 4px 14px 0px rgba(37,32,31,0.25)}.bpk-tooltip__inner--padded{padding:0.25rem .5rem}.bpk-tooltip__inner--dark{color:#fff;border:.0625rem solid #111236;background-color:#111236;border-radius:.375rem;box-shadow:0px 4px 14px 0px rgba(37,32,31,0.25)}
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
import { createPopper, basePlacements } from '@popperjs/core';
|
|
22
22
|
import PropTypes from 'prop-types';
|
|
23
23
|
import React, { Component, type Node, type Element } from 'react';
|
|
24
|
-
|
|
25
24
|
import { PortalV1, cssModules } from '../../bpk-react-utils';
|
|
26
25
|
|
|
27
26
|
import BpkTooltip, {
|
|
@@ -15,4 +15,4 @@
|
|
|
15
15
|
* See the License for the specific language governing permissions and
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
|
-
@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-scrim{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;transition:opacity 200ms ease-in-out;background-color:#b2b2bf;opacity:.7;overflow:hidden}.bpk-scrim--dark{background-color:#111236;opacity:.95}@media (max-width:
|
|
18
|
+
@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-scrim{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;transition:opacity 200ms ease-in-out;background-color:#b2b2bf;opacity:.7;overflow:hidden}.bpk-scrim--dark{background-color:#111236;opacity:.95}@media (max-width: 32rem){.bpk-scrim--full-screen{opacity:1}}.bpk-scrim--appear{opacity:0}.bpk-scrim--appear-active{opacity:.7}
|