@xivart/tangram 0.0.1-security → 2.712.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of @xivart/tangram might be problematic. Click here for more details.
- package/LICENSE +21 -0
- package/README.md +37 -3
- package/components/A/A.js +8 -0
- package/components/A/RouterLink.js +10 -0
- package/components/A/index.js +9 -0
- package/components/A/styled/A.js +20 -0
- package/components/A/styled/index.js +9 -0
- package/components/Adaptive/Adaptive.js +32 -0
- package/components/Adaptive/index.js +11 -0
- package/components/AirlineLogo/AirlineLogo.js +22 -0
- package/components/AirlineLogo/constants.js +5 -0
- package/components/AirlineLogo/index.js +9 -0
- package/components/AirlineLogo/styled/AirlineLogo.js +14 -0
- package/components/AirlineLogo/styled/index.js +9 -0
- package/components/AirlineLogo/types.js +8 -0
- package/components/Alert/Alert.js +17 -0
- package/components/Alert/constants.js +16 -0
- package/components/Alert/index.js +9 -0
- package/components/Alert/styled/Alert.js +12 -0
- package/components/Alert/styled/index.js +6 -0
- package/components/ApplePayButton/ApplePayButton.js +12 -0
- package/components/ApplePayButton/index.js +9 -0
- package/components/ApplePayButton/styled/StyledApplePayButton.js +12 -0
- package/components/ApplePayButton/styled/StyledApplePayLogo.js +8 -0
- package/components/ApplePayButton/types.js +11 -0
- package/components/Asset/Asset.js +92 -0
- package/components/Asset/Provider.js +40 -0
- package/components/Asset/helpers/createAssetContext/createAssetContext.js +19 -0
- package/components/Asset/helpers/createAssetContext/index.js +9 -0
- package/components/Asset/helpers/fetch/fetch.js +6 -0
- package/components/Asset/helpers/fetch/index.js +9 -0
- package/components/Asset/helpers/request/index.js +9 -0
- package/components/Asset/helpers/request/request.js +28 -0
- package/components/Asset/helpers/svg/BaseSprite.js +55 -0
- package/components/Asset/helpers/svg/BaseSymbol.js +26 -0
- package/components/Asset/helpers/svg/BrowserSprite.js +84 -0
- package/components/Asset/helpers/svg/BrowserSymbol.js +49 -0
- package/components/Asset/helpers/svg/constants.js +8 -0
- package/components/Asset/helpers/svg/objectToAttrsString.js +12 -0
- package/components/Asset/helpers/svg/parse.js +12 -0
- package/components/Asset/helpers/svg/sprite.js +18 -0
- package/components/Asset/helpers/svg/symbol.js +20 -0
- package/components/Asset/helpers/svg/wrapInSVGString.js +13 -0
- package/components/Asset/index.js +13 -0
- package/components/Badge/Badge.js +13 -0
- package/components/Badge/index.js +6 -0
- package/components/Badge/styled/Badge.js +17 -0
- package/components/Badge/styled/BadgeWrapper.js +11 -0
- package/components/Badge/styled/Text.js +11 -0
- package/components/Badge/styled/index.js +10 -0
- package/components/BottomSheet/BottomSheet.js +30 -0
- package/components/BottomSheet/index.js +9 -0
- package/components/BottomSheet/styled/BottomSheetFooter.js +17 -0
- package/components/BottomSheet/styled/index.js +9 -0
- package/components/Breadcrumbs/BreadcrumbItem.js +14 -0
- package/components/Breadcrumbs/Breadcrumbs.js +16 -0
- package/components/Breadcrumbs/components/BreadcrumbDivider/BreadcrumbDivider.js +9 -0
- package/components/Breadcrumbs/components/BreadcrumbDivider/index.js +9 -0
- package/components/Breadcrumbs/index.js +11 -0
- package/components/Button/ChatbotButton.js +15 -0
- package/components/Button/PrimaryButton.js +21 -0
- package/components/Button/QuaternaryButton.js +19 -0
- package/components/Button/QuinaryButton.js +13 -0
- package/components/Button/SeatInteractionButton.js +12 -0
- package/components/Button/SecondaryButton.js +20 -0
- package/components/Button/TertiaryButton.js +21 -0
- package/components/Button/index.js +13 -0
- package/components/Button/styled/Button.js +25 -0
- package/components/Button/styled/ChatbotButton.js +16 -0
- package/components/Button/styled/IconContainer.js +14 -0
- package/components/Button/styled/Label.js +14 -0
- package/components/Button/styled/Primary.js +17 -0
- package/components/Button/styled/Quaternary.js +13 -0
- package/components/Button/styled/Quinary.js +13 -0
- package/components/Button/styled/SeatInteraction.js +16 -0
- package/components/Button/styled/Secondary.js +15 -0
- package/components/Button/styled/Tertiary.js +57 -0
- package/components/Button/styled/index.js +19 -0
- package/components/Calendar/Calendar.js +23 -0
- package/components/Calendar/components/Button/Button.js +17 -0
- package/components/Calendar/components/Button/constants.js +6 -0
- package/components/Calendar/components/Button/index.js +9 -0
- package/components/Calendar/components/Button/styled/ButtonContainer.js +11 -0
- package/components/Calendar/components/Button/styled/index.js +9 -0
- package/components/Calendar/components/DateCell/DateCell.js +26 -0
- package/components/Calendar/components/DateCell/constants.js +13 -0
- package/components/Calendar/components/DateCell/helper/updateElementsSize/index.js +6 -0
- package/components/Calendar/components/DateCell/helper/updateElementsSize/updateElementsSize.js +33 -0
- package/components/Calendar/components/DateCell/index.js +9 -0
- package/components/Calendar/components/DateCell/styled/Cell.js +8 -0
- package/components/Calendar/components/DateCell/styled/Container.js +8 -0
- package/components/Calendar/components/DateCell/styled/DateCellContainer.js +15 -0
- package/components/Calendar/components/DateCell/styled/HoverContainer.js +12 -0
- package/components/Calendar/components/DateCell/styled/SelectedContainer.js +12 -0
- package/components/Calendar/components/DateCell/styled/SelectedRangeContainer.js +12 -0
- package/components/Calendar/components/DateCell/styled/SelectedStartEndContainer.js +24 -0
- package/components/Calendar/components/DateCell/styled/TextContainer.js +8 -0
- package/components/Calendar/components/DateCell/styled/index.js +13 -0
- package/components/Calendar/components/Month/Month.js +39 -0
- package/components/Calendar/components/Month/index.js +9 -0
- package/components/Calendar/components/Month/styled/MonthNameContainer.js +12 -0
- package/components/Calendar/components/Month/styled/index.js +9 -0
- package/components/Calendar/components/Months/Months.js +54 -0
- package/components/Calendar/components/Months/constants.js +5 -0
- package/components/Calendar/components/Months/index.js +9 -0
- package/components/Calendar/components/Week/Week.js +90 -0
- package/components/Calendar/components/Week/index.js +9 -0
- package/components/Calendar/components/WeekDays/WeekDays.js +14 -0
- package/components/Calendar/components/WeekDays/index.js +9 -0
- package/components/Calendar/components/WeekDays/styled/WeekDaysContainer.js +12 -0
- package/components/Calendar/components/WeekDays/styled/index.js +9 -0
- package/components/Calendar/constants.js +36 -0
- package/components/Calendar/helpers/differenceBetweenMonths/differenceBetweenMonths.js +8 -0
- package/components/Calendar/helpers/differenceBetweenMonths/index.js +9 -0
- package/components/Calendar/helpers/getNumberOfDaysInMonth/getNumberOfDaysInMonth.js +7 -0
- package/components/Calendar/helpers/getNumberOfDaysInMonth/index.js +9 -0
- package/components/Calendar/helpers/getNumberOfDaysLeftInMonth/getNumberOfDaysLeftInMonth.js +10 -0
- package/components/Calendar/helpers/getNumberOfDaysLeftInMonth/index.js +9 -0
- package/components/Calendar/helpers/getNumberOfWeeksInMonth/getNumberOfWeeksInMonth.js +11 -0
- package/components/Calendar/helpers/getNumberOfWeeksInMonth/index.js +9 -0
- package/components/Calendar/helpers/index.js +25 -0
- package/components/Calendar/helpers/isDateInRange/index.js +9 -0
- package/components/Calendar/helpers/isDateInRange/isDateInRange.js +8 -0
- package/components/Calendar/helpers/isDateSelected/index.js +9 -0
- package/components/Calendar/helpers/isDateSelected/isDateSelected.js +9 -0
- package/components/Calendar/helpers/isDatesEqual/index.js +9 -0
- package/components/Calendar/helpers/isDatesEqual/isDatesEqual.js +6 -0
- package/components/Calendar/helpers/isRangeSelected/index.js +9 -0
- package/components/Calendar/helpers/isRangeSelected/isRangeSelected.js +6 -0
- package/components/Calendar/helpers/normalizeDate/index.js +9 -0
- package/components/Calendar/helpers/normalizeDate/normalizeDate.js +11 -0
- package/components/Calendar/index.js +11 -0
- package/components/Calendar/styled/CalendarContainer.js +12 -0
- package/components/Calendar/styled/index.js +9 -0
- package/components/Card/Card.js +26 -0
- package/components/Card/CardContent.js +11 -0
- package/components/Card/CardImage.js +11 -0
- package/components/Card/index.js +11 -0
- package/components/Card/styled/Card.js +64 -0
- package/components/Card/styled/CardContentWrapper.js +11 -0
- package/components/Card/styled/CardImage.js +12 -0
- package/components/Card/styled/CardScrim.js +8 -0
- package/components/Card/styled/index.js +15 -0
- package/components/Checkbox/Checkbox.js +51 -0
- package/components/Checkbox/index.js +9 -0
- package/components/Checkbox/styled/CheckIcon.js +17 -0
- package/components/Checkbox/styled/Checkbox.js +21 -0
- package/components/Checkbox/styled/CheckboxIcon.js +35 -0
- package/components/Checkbox/styled/CheckboxLabel.js +35 -0
- package/components/Checkbox/styled/Wrapper.js +8 -0
- package/components/Checkbox/styled/index.js +15 -0
- package/components/ChevronIcon/ChevronIcon.js +11 -0
- package/components/ChevronIcon/index.js +9 -0
- package/components/Chip/Chip.js +15 -0
- package/components/Chip/index.js +6 -0
- package/components/Chip/styled/Chip.js +14 -0
- package/components/Chip/styled/index.js +6 -0
- package/components/Circle/Circle.js +8 -0
- package/components/Circle/index.js +9 -0
- package/components/Circle/styled/Circle.js +15 -0
- package/components/Circle/styled/index.js +9 -0
- package/components/Collapse/Collapse.js +88 -0
- package/components/Collapse/CollapseItem.js +48 -0
- package/components/Collapse/constants.js +74 -0
- package/components/Collapse/index.js +9 -0
- package/components/Collapse/styled/CollapseItemContent.js +27 -0
- package/components/Collapse/styled/CollapseItemHeader.js +32 -0
- package/components/Collapse/styled/CollapseItemHeaderWrapper.js +8 -0
- package/components/Collapse/styled/index.js +13 -0
- package/components/Collapse/types.js +10 -0
- package/components/ComparisonTable/ComparisonTable.js +22 -0
- package/components/ComparisonTable/components/HeaderCell/HeaderCell.js +13 -0
- package/components/ComparisonTable/components/HeaderCell/index.js +9 -0
- package/components/ComparisonTable/components/HeaderCell/styled/HeaderCell.js +48 -0
- package/components/ComparisonTable/components/HeaderCell/styled/HeaderCellContainer.js +23 -0
- package/components/ComparisonTable/components/HeaderCell/styled/index.js +11 -0
- package/components/ComparisonTable/components/Row/Row.js +16 -0
- package/components/ComparisonTable/components/Row/index.js +9 -0
- package/components/ComparisonTable/components/Row/styled/Cell.js +35 -0
- package/components/ComparisonTable/components/Row/styled/Row.js +17 -0
- package/components/ComparisonTable/components/Row/styled/RowCellContainer.js +14 -0
- package/components/ComparisonTable/components/Row/styled/Title.js +22 -0
- package/components/ComparisonTable/components/Row/styled/index.js +15 -0
- package/components/ComparisonTable/index.js +9 -0
- package/components/ComparisonTable/styled/FooterCell.js +47 -0
- package/components/ComparisonTable/styled/FooterCellContainer.js +23 -0
- package/components/ComparisonTable/styled/Title.js +26 -0
- package/components/ComparisonTable/styled/index.js +13 -0
- package/components/Container/Container.js +11 -0
- package/components/Container/index.js +9 -0
- package/components/Container/styled/Container.js +24 -0
- package/components/Container/styled/index.js +5 -0
- package/components/CopyToClipboard/CopyToClipboard.js +57 -0
- package/components/CopyToClipboard/Notification.js +15 -0
- package/components/CopyToClipboard/index.js +9 -0
- package/components/CopyToClipboard/styled/CopyToClipboard.js +12 -0
- package/components/CopyToClipboard/styled/Notification.js +12 -0
- package/components/CopyToClipboard/styled/index.js +11 -0
- package/components/Corner/Corner.js +11 -0
- package/components/Corner/index.js +9 -0
- package/components/Corner/styled/Corner.js +31 -0
- package/components/Corner/styled/CornerIcon.js +15 -0
- package/components/Corner/styled/index.js +11 -0
- package/components/Counter/Counter.js +35 -0
- package/components/Counter/components/CounterButton/CounterButton.js +12 -0
- package/components/Counter/components/CounterButton/index.js +9 -0
- package/components/Counter/components/CounterButton/styled/CounterButton.js +18 -0
- package/components/Counter/components/CounterButton/styled/CounterIconContainer.js +8 -0
- package/components/Counter/components/CounterButton/styled/index.js +11 -0
- package/components/Counter/index.js +9 -0
- package/components/Counter/styled/Counter.js +18 -0
- package/components/Counter/styled/index.js +9 -0
- package/components/Divider/Divider.js +14 -0
- package/components/Divider/index.js +9 -0
- package/components/Divider/styled/Divider.js +40 -0
- package/components/Divider/styled/index.js +9 -0
- package/components/Dropdown/Dropdown.js +146 -0
- package/components/Dropdown/index.js +9 -0
- package/components/Dropdown/styled/Container.js +15 -0
- package/components/Dropdown/styled/IconContainer.js +12 -0
- package/components/Dropdown/styled/PrefixContent.js +14 -0
- package/components/Dropdown/styled/Select.js +25 -0
- package/components/Dropdown/styled/SubInfo.js +12 -0
- package/components/Dropdown/styled/index.js +13 -0
- package/components/DropdownButton/DropdownButton.js +31 -0
- package/components/DropdownButton/index.js +9 -0
- package/components/DropdownButton/styled/DropdownButton.js +11 -0
- package/components/DropdownButton/styled/DropdownPopup.js +16 -0
- package/components/DropdownButton/styled/index.js +11 -0
- package/components/Fade/Fade.js +11 -0
- package/components/Fade/index.js +9 -0
- package/components/Fade/styled/Fade.js +14 -0
- package/components/Fade/styled/index.js +6 -0
- package/components/Fieldset/Fieldset.js +11 -0
- package/components/Fieldset/index.js +9 -0
- package/components/Fieldset/styled/Fieldset.js +8 -0
- package/components/Fieldset/styled/index.js +9 -0
- package/components/Flex/Flex.js +12 -0
- package/components/Flex/index.js +9 -0
- package/components/Flex/styled/Flex.js +20 -0
- package/components/Flex/styled/index.js +9 -0
- package/components/FlightDateSelector/FlightDateSelector.js +16 -0
- package/components/FlightDateSelector/index.js +9 -0
- package/components/FlightDateSelector/styled/FlightDateSelector.js +19 -0
- package/components/FlightDateSelector/styled/index.js +9 -0
- package/components/FlightInfoBox/FlightInfoBox.js +20 -0
- package/components/FlightInfoBox/index.js +9 -0
- package/components/FlightInfoBox/styled/Content.js +11 -0
- package/components/FlightInfoBox/styled/FlightInfoBox.js +26 -0
- package/components/FlightInfoBox/styled/index.js +11 -0
- package/components/FlightInfoCard/FlightInfoCard.js +19 -0
- package/components/FlightInfoCard/index.js +9 -0
- package/components/FlightInfoCard/styled/FlightInfoCard.js +8 -0
- package/components/FlightInfoCard/styled/index.js +9 -0
- package/components/GlobalStyle/GlobalStyle.js +35 -0
- package/components/GlobalStyle/index.js +9 -0
- package/components/GooglePayButton/GooglePayButton.js +8 -0
- package/components/GooglePayButton/index.js +9 -0
- package/components/GooglePayButton/styled/GooglePayButton.js +8 -0
- package/components/GooglePayButton/styled/index.js +9 -0
- package/components/Grid/Grid.js +12 -0
- package/components/Grid/index.js +9 -0
- package/components/Grid/styled/StyledGrid.js +30 -0
- package/components/Grid/styled/helpers/getBoundaries/getBoundaries.js +22 -0
- package/components/Grid/styled/helpers/getBoundaries/index.js +6 -0
- package/components/Grid/styled/helpers/getTemplateAreas/getTemplateAreas.js +27 -0
- package/components/Grid/styled/helpers/getTemplateAreas/index.js +6 -0
- package/components/Grid/styled/helpers/getTemplateColumns/getTemplateColumns.js +10 -0
- package/components/Grid/styled/helpers/getTemplateColumns/index.js +6 -0
- package/components/Grid/styled/helpers/getTemplateGap/getTemplateGap.js +12 -0
- package/components/Grid/styled/helpers/getTemplateGap/index.js +6 -0
- package/components/Grid/styled/helpers/getTemplateRows/getTemplateRows.js +10 -0
- package/components/Grid/styled/helpers/getTemplateRows/index.js +6 -0
- package/components/Grid/styled/helpers/getTemplateTrack/getTemplateTrack.js +17 -0
- package/components/Grid/styled/helpers/getTemplateTrack/index.js +6 -0
- package/components/Grid/styled/index.js +9 -0
- package/components/H1/H1.js +8 -0
- package/components/H1/index.js +11 -0
- package/components/H1/styled/H1.js +23 -0
- package/components/H1/styled/index.js +10 -0
- package/components/H2/H2.js +8 -0
- package/components/H2/index.js +11 -0
- package/components/H2/styled/H2.js +14 -0
- package/components/H2/styled/index.js +10 -0
- package/components/H3/H3.js +8 -0
- package/components/H3/index.js +11 -0
- package/components/H3/styled/H3.js +22 -0
- package/components/H3/styled/index.js +10 -0
- package/components/H4/H4.js +8 -0
- package/components/H4/index.js +9 -0
- package/components/H4/styled/H4.js +20 -0
- package/components/H4/styled/index.js +9 -0
- package/components/H5/H5.js +8 -0
- package/components/H5/index.js +9 -0
- package/components/H5/styled/H5.js +20 -0
- package/components/H5/styled/index.js +9 -0
- package/components/HTMLContainer/HTMLContainer.js +15 -0
- package/components/HTMLContainer/index.js +9 -0
- package/components/HTMLContainer/styled/Content.js +19 -0
- package/components/HTMLContainer/styled/index.js +9 -0
- package/components/HTMLLabelWrapper/HTMLLabelWrapper.js +18 -0
- package/components/HTMLLabelWrapper/index.js +9 -0
- package/components/HTMLLabelWrapper/styled/Content.js +34 -0
- package/components/HTMLLabelWrapper/styled/index.js +9 -0
- package/components/Header/Header.js +12 -0
- package/components/Header/HeaderButton.js +11 -0
- package/components/Header/HeaderLogo.js +11 -0
- package/components/Header/index.js +13 -0
- package/components/Header/styled/Header.js +11 -0
- package/components/Header/styled/HeaderButton.js +38 -0
- package/components/Header/styled/HeaderLogo.js +15 -0
- package/components/Header/styled/HeaderWrapper.js +11 -0
- package/components/Header/styled/index.js +15 -0
- package/components/Icon/Icon.js +18 -0
- package/components/Icon/index.js +9 -0
- package/components/Icon/styled/Icon.js +35 -0
- package/components/Icon/styled/index.js +9 -0
- package/components/Iframe/Iframe.js +11 -0
- package/components/Iframe/index.js +9 -0
- package/components/Iframe/styled/Iframe.js +8 -0
- package/components/Iframe/styled/index.js +9 -0
- package/components/Image/Image.js +14 -0
- package/components/Image/index.js +9 -0
- package/components/Image/styled/Image.js +16 -0
- package/components/Image/styled/index.js +9 -0
- package/components/InfoBox/InfoBox.js +12 -0
- package/components/InfoBox/index.js +9 -0
- package/components/InfoBox/styled/InfoBox.js +21 -0
- package/components/InfoBox/styled/index.js +9 -0
- package/components/InfoBox/types.js +9 -0
- package/components/InfoButton/InfoButton.js +21 -0
- package/components/InfoButton/index.js +9 -0
- package/components/InfoButton/styled/InfoButton.js +21 -0
- package/components/InfoButton/styled/index.js +9 -0
- package/components/InfoTag/InfoTag.js +12 -0
- package/components/InfoTag/index.js +9 -0
- package/components/InfoTag/styled/InfoTag.js +22 -0
- package/components/InfoTag/styled/index.js +9 -0
- package/components/Input/Input.js +198 -0
- package/components/Input/constants.js +8 -0
- package/components/Input/index.js +12 -0
- package/components/Input/styled/ClearButton.js +15 -0
- package/components/Input/styled/Container.js +21 -0
- package/components/Input/styled/IconWrapper.js +8 -0
- package/components/Input/styled/InputBase.js +44 -0
- package/components/Input/styled/PasswordSwitcher.js +17 -0
- package/components/Input/styled/index.js +17 -0
- package/components/Input/types.js +17 -0
- package/components/Label/Label.js +7 -0
- package/components/Label/index.js +9 -0
- package/components/Label/styled/Label.js +13 -0
- package/components/Label/styled/index.js +9 -0
- package/components/Layout/Layout.js +12 -0
- package/components/Layout/constants.js +13 -0
- package/components/Layout/helpers/convertAspectRatio/convertAspectRatio.js +25 -0
- package/components/Layout/helpers/convertAspectRatio/index.js +9 -0
- package/components/Layout/index.js +9 -0
- package/components/Layout/styled/Layout.js +75 -0
- package/components/Layout/styled/index.js +9 -0
- package/components/Link/Primary.js +14 -0
- package/components/Link/PrimaryButton.js +14 -0
- package/components/Link/Secondary.js +14 -0
- package/components/Link/SecondaryButton.js +14 -0
- package/components/Link/constants.js +8 -0
- package/components/Link/defaultProps.js +15 -0
- package/components/Link/index.js +15 -0
- package/components/Link/styled/A.js +13 -0
- package/components/Link/styled/Link.js +37 -0
- package/components/Link/styled/LinkContainer.js +8 -0
- package/components/Link/styled/Primary.js +14 -0
- package/components/Link/styled/Secondary.js +14 -0
- package/components/Link/styled/getIconMargin.js +9 -0
- package/components/Link/styled/index.js +13 -0
- package/components/List/IconContainer.js +12 -0
- package/components/List/List.js +19 -0
- package/components/List/ListItem.js +17 -0
- package/components/List/constants.js +10 -0
- package/components/List/index.js +15 -0
- package/components/List/styled/IconContainer.js +8 -0
- package/components/List/styled/Item.js +22 -0
- package/components/List/styled/List.js +21 -0
- package/components/List/styled/ListItem.js +35 -0
- package/components/List/styled/PlaceHolder.js +8 -0
- package/components/List/styled/index.js +15 -0
- package/components/MaskedInput/MaskedInput.js +115 -0
- package/components/MaskedInput/constants.js +9 -0
- package/components/MaskedInput/index.js +9 -0
- package/components/MaskedInput/styled/BackgroundInput.js +19 -0
- package/components/MaskedInput/styled/Container.js +8 -0
- package/components/MaskedInput/styled/MaskedInput.js +12 -0
- package/components/MaskedInput/styled/index.js +13 -0
- package/components/Menu/Menu.js +15 -0
- package/components/Menu/index.js +9 -0
- package/components/Menu/styled/Content.js +11 -0
- package/components/Menu/styled/Menu.js +11 -0
- package/components/Menu/styled/index.js +11 -0
- package/components/MessageBox/MessageBox.js +11 -0
- package/components/MessageBox/index.js +9 -0
- package/components/MessageBox/styled/MessageBox.js +22 -0
- package/components/MessageBox/styled/index.js +9 -0
- package/components/MessageHelper/MessageHelper.js +18 -0
- package/components/MessageHelper/index.js +11 -0
- package/components/MessageHelper/styled/Arrow.js +12 -0
- package/components/MessageHelper/styled/MessageHelper.js +34 -0
- package/components/MessageHelper/styled/getArrowStyles.js +19 -0
- package/components/MessageHelper/styled/getBgColor.js +17 -0
- package/components/MessageHelper/styled/index.js +9 -0
- package/components/MessageHelper/types.js +11 -0
- package/components/Metroline/Metroline.js +14 -0
- package/components/Metroline/index.js +9 -0
- package/components/Metroline/styled/Metroline.js +23 -0
- package/components/Metroline/styled/index.js +9 -0
- package/components/MetrolineContainer/MetrolineContainer.js +8 -0
- package/components/MetrolineContainer/index.js +9 -0
- package/components/MetrolineContainer/styled/MetrolineContainer.js +14 -0
- package/components/MetrolineContainer/styled/index.js +9 -0
- package/components/MetrolineDivider/MetrolineDivider.js +12 -0
- package/components/MetrolineDivider/index.js +9 -0
- package/components/MetrolineDivider/styled/Metroline.js +12 -0
- package/components/MetrolineDivider/styled/MetrolineCircle.js +12 -0
- package/components/MetrolineDivider/styled/MetrolineDivider.js +8 -0
- package/components/MetrolineDivider/styled/index.js +13 -0
- package/components/Modal/Modal.js +25 -0
- package/components/Modal/ModalAction.js +23 -0
- package/components/Modal/ModalPopup.js +23 -0
- package/components/Modal/components/ModalActionContent/ModalActionContent.js +12 -0
- package/components/Modal/components/ModalActionContent/index.js +5 -0
- package/components/Modal/components/ModalActionContent/styled/ModalActionContentWrapper.js +16 -0
- package/components/Modal/components/ModalActionContent/styled/ModalActionScrollContainer.js +16 -0
- package/components/Modal/components/ModalActionContent/styled/index.js +6 -0
- package/components/Modal/components/ModalActionFooter/ModalActionFooter.js +14 -0
- package/components/Modal/components/ModalActionFooter/index.js +5 -0
- package/components/Modal/components/ModalActionFooter/styled/ModalActionFooter.js +20 -0
- package/components/Modal/components/ModalActionFooter/styled/index.js +5 -0
- package/components/Modal/components/ModalActionHeader/ModalActionHeader.js +14 -0
- package/components/Modal/components/ModalActionHeader/index.js +5 -0
- package/components/Modal/components/ModalActionHeader/styled/ModalActionHeader.js +17 -0
- package/components/Modal/components/ModalActionHeader/styled/ModalActionHeaderWrapper.js +24 -0
- package/components/Modal/components/ModalActionHeader/styled/index.js +6 -0
- package/components/Modal/components/ModalContent/ModalContent.js +13 -0
- package/components/Modal/components/ModalContent/index.js +5 -0
- package/components/Modal/components/ModalContent/styled/ModalContent.js +16 -0
- package/components/Modal/components/ModalContent/styled/index.js +5 -0
- package/components/Modal/components/ModalContentSection/ModalContentSection.js +12 -0
- package/components/Modal/components/ModalContentSection/index.js +5 -0
- package/components/Modal/components/ModalContentSection/styled/ModalContentSection.js +16 -0
- package/components/Modal/components/ModalContentSection/styled/index.js +5 -0
- package/components/Modal/components/ModalFooter/ModalFooter.js +14 -0
- package/components/Modal/components/ModalFooter/index.js +5 -0
- package/components/Modal/components/ModalFooter/styled/ModalFooter.js +16 -0
- package/components/Modal/components/ModalFooter/styled/index.js +5 -0
- package/components/Modal/components/ModalHeader/ModalHeader.js +12 -0
- package/components/Modal/components/ModalHeader/index.js +5 -0
- package/components/Modal/components/ModalPopupContent/ModalPopupContent.js +12 -0
- package/components/Modal/components/ModalPopupContent/index.js +5 -0
- package/components/Modal/components/ModalPopupContent/styled/ModalPopupContent.js +19 -0
- package/components/Modal/components/ModalPopupContent/styled/index.js +5 -0
- package/components/Modal/components/ModalPopupFooter/ModalPopupFooter.js +12 -0
- package/components/Modal/components/ModalPopupFooter/index.js +5 -0
- package/components/Modal/components/ModalPopupHeader/ModalPopupHeader.js +12 -0
- package/components/Modal/components/ModalPopupHeader/index.js +5 -0
- package/components/Modal/components/ModalSkeleton/ModalSkeleton.js +14 -0
- package/components/Modal/components/ModalSkeleton/index.js +5 -0
- package/components/Modal/constants.js +29 -0
- package/components/Modal/helpers/getModalGridForLargeMobile/getModalGridForLargeMobile.js +16 -0
- package/components/Modal/helpers/getModalGridForLargeMobile/index.js +6 -0
- package/components/Modal/helpers/getModalGridForSmallMobile/getModalGridForSmallMobile.js +16 -0
- package/components/Modal/helpers/getModalGridForSmallMobile/index.js +6 -0
- package/components/Modal/index.js +28 -0
- package/components/Modal/styled/ModalActionWrapper.js +14 -0
- package/components/Modal/styled/ModalPopupWrapper.js +18 -0
- package/components/Modal/styled/ModalWrapper.js +20 -0
- package/components/Modal/styled/index.js +7 -0
- package/components/NavigationHeader/NavigationHeader.js +17 -0
- package/components/NavigationHeader/constants.js +5 -0
- package/components/NavigationHeader/index.js +9 -0
- package/components/NavigationItem/CollapsibleNavigationItem.js +20 -0
- package/components/NavigationItem/NavigationItem.js +19 -0
- package/components/NavigationItem/components/NavigationArrowIcon/NavigationArrowIcon.js +11 -0
- package/components/NavigationItem/components/NavigationArrowIcon/index.js +9 -0
- package/components/NavigationItem/index.js +11 -0
- package/components/NavigationItem/types.js +10 -0
- package/components/Notification/Notification.js +31 -0
- package/components/Notification/constants.js +38 -0
- package/components/Notification/index.js +9 -0
- package/components/Notification/styled/Border.js +12 -0
- package/components/Notification/styled/Notification.js +14 -0
- package/components/Notification/styled/index.js +11 -0
- package/components/Notification/types.js +10 -0
- package/components/Overlay/Overlay.js +63 -0
- package/components/Overlay/helpers/scrollLocker/index.js +7 -0
- package/components/Overlay/helpers/scrollLocker/scrollLocker.js +49 -0
- package/components/Overlay/index.js +9 -0
- package/components/Overlay/styled/Overlay.js +11 -0
- package/components/Overlay/styled/Wrapper.js +13 -0
- package/components/Overlay/styled/index.js +11 -0
- package/components/PageGrid/PageGrid.js +20 -0
- package/components/PageGrid/constants.js +16 -0
- package/components/PageGrid/index.js +9 -0
- package/components/PayPalButton/PayPalButton.js +11 -0
- package/components/PayPalButton/index.js +9 -0
- package/components/PayPalButton/styled/PayPalButton.js +17 -0
- package/components/PayPalButton/styled/index.js +9 -0
- package/components/Price/Price.js +38 -0
- package/components/Price/PriceFormat.js +48 -0
- package/components/Price/SimplePrice.js +21 -0
- package/components/Price/constants.js +31 -0
- package/components/Price/helper.js +35 -0
- package/components/Price/index.js +15 -0
- package/components/Price/styled/Container.js +26 -0
- package/components/Price/styled/CurrentPrice.js +18 -0
- package/components/Price/styled/Item.js +43 -0
- package/components/Price/styled/Price.js +15 -0
- package/components/Price/styled/SimpleItem.js +24 -0
- package/components/Price/styled/index.js +17 -0
- package/components/RadioButton/RadioButton.js +22 -0
- package/components/RadioButton/index.js +10 -0
- package/components/RadioButton/skeletons/RadioButtonSkeleton.js +13 -0
- package/components/RadioButton/skeletons/styled/RadioButtonSkeleton.js +15 -0
- package/components/RadioButton/skeletons/styled/index.js +6 -0
- package/components/RadioButton/styled/Input.js +14 -0
- package/components/RadioButton/styled/InputIcon.js +36 -0
- package/components/RadioButton/styled/RadioLabel.js +16 -0
- package/components/RadioButton/styled/Wrapper.js +32 -0
- package/components/RadioButton/styled/index.js +15 -0
- package/components/RadioGroup/RadioContext.js +12 -0
- package/components/RadioGroup/RadioGroup.js +17 -0
- package/components/RadioGroup/index.js +9 -0
- package/components/RadioSelectButtons/RadioSelectButtons.js +44 -0
- package/components/RadioSelectButtons/RadioSelectItem.js +8 -0
- package/components/RadioSelectButtons/components/RadioSelectButton/RadioSelectButton.js +39 -0
- package/components/RadioSelectButtons/components/RadioSelectButton/index.js +9 -0
- package/components/RadioSelectButtons/components/RadioSelectButton/styled/RadioSelectButton.js +32 -0
- package/components/RadioSelectButtons/components/RadioSelectButton/styled/index.js +9 -0
- package/components/RadioSelectButtons/index.js +9 -0
- package/components/RadioSelectButtons/styled/RadioSelectButtons.js +12 -0
- package/components/RadioSelectButtons/styled/index.js +9 -0
- package/components/Rating/Rating.js +15 -0
- package/components/Rating/RatingItem.js +12 -0
- package/components/Rating/TrustpilotRating.js +11 -0
- package/components/Rating/index.js +11 -0
- package/components/Rating/styled/RatingIcon.js +9 -0
- package/components/Rating/styled/RatingItem.js +24 -0
- package/components/Rating/styled/RatingValueWrapper.js +15 -0
- package/components/Rating/styled/RatingWrapper.js +11 -0
- package/components/Rating/styled/Wrapper.js +8 -0
- package/components/Rating/styled/index.js +17 -0
- package/components/Ribbon/Ribbon.js +11 -0
- package/components/Ribbon/index.js +9 -0
- package/components/Ribbon/styled/Ribbon.js +78 -0
- package/components/Ribbon/styled/Text.js +20 -0
- package/components/Ribbon/styled/index.js +11 -0
- package/components/RoundLogo/BrandRoundLogo.js +9 -0
- package/components/RoundLogo/RoundLogo.js +11 -0
- package/components/RoundLogo/index.js +11 -0
- package/components/RoundLogo/styled/BrandRoundLogo.js +15 -0
- package/components/RoundLogo/styled/RoundLogo.js +12 -0
- package/components/RoundLogo/styled/index.js +11 -0
- package/components/Seatmap/Exit/Exit.js +12 -0
- package/components/Seatmap/Exit/index.js +9 -0
- package/components/Seatmap/Exit/styled/Exit.js +33 -0
- package/components/Seatmap/Exit/styled/index.js +9 -0
- package/components/Seatmap/Fuselage/Fuselage.js +11 -0
- package/components/Seatmap/Fuselage/index.js +9 -0
- package/components/Seatmap/Fuselage/styled/Fuselage.js +19 -0
- package/components/Seatmap/Fuselage/styled/index.js +9 -0
- package/components/Seatmap/Wing/Wing.js +11 -0
- package/components/Seatmap/Wing/index.js +9 -0
- package/components/Seatmap/Wing/styled/Wing.js +34 -0
- package/components/Seatmap/Wing/styled/index.js +9 -0
- package/components/Seatmap/index.js +13 -0
- package/components/SectionTitle/SectionTitle.js +15 -0
- package/components/SectionTitle/index.js +8 -0
- package/components/SectionTitle/skeletons/SectionTitleSkeleton.js +9 -0
- package/components/SelectInput/SelectInput.js +21 -0
- package/components/SelectInput/index.js +9 -0
- package/components/SelectInput/styled/SelectInput.js +38 -0
- package/components/SelectInput/styled/SelectInputContent.js +9 -0
- package/components/SelectInput/styled/index.js +11 -0
- package/components/Shape/Shape.js +17 -0
- package/components/Shape/helpers/withShape/index.js +6 -0
- package/components/Shape/helpers/withShape/withShape.js +28 -0
- package/components/Shape/index.js +6 -0
- package/components/SidePanel/Content.js +18 -0
- package/components/SidePanel/SidePanel.js +19 -0
- package/components/SidePanel/index.js +9 -0
- package/components/SidePanel/styled/Content.js +20 -0
- package/components/SidePanel/styled/Footer.js +22 -0
- package/components/SidePanel/styled/SidePanel.js +13 -0
- package/components/SidePanel/styled/index.js +13 -0
- package/components/Skeleton/Skeleton.js +11 -0
- package/components/Skeleton/index.js +9 -0
- package/components/Skeleton/styled/Skeleton.js +39 -0
- package/components/Skeleton/styled/index.js +9 -0
- package/components/Slogan/Slogan.js +11 -0
- package/components/Slogan/index.js +9 -0
- package/components/Slogan/styled/Slogan.js +22 -0
- package/components/Slogan/styled/index.js +9 -0
- package/components/SmallText/SmallText.js +11 -0
- package/components/SmallText/index.js +9 -0
- package/components/SnakeNavigation/NavigationStep.js +45 -0
- package/components/SnakeNavigation/SnakeNavigation.js +18 -0
- package/components/SnakeNavigation/index.js +11 -0
- package/components/SnakeNavigation/skeletons/SnakeNavigationSkeleton.js +27 -0
- package/components/SnakeNavigation/styled/NavigationContainer.js +11 -0
- package/components/SnakeNavigation/styled/NavigationSeparator.js +14 -0
- package/components/SnakeNavigation/styled/NavigationStepContainer.js +20 -0
- package/components/SnakeNavigation/styled/NavigationStepList.js +24 -0
- package/components/SnakeNavigation/styled/StepContainer.js +43 -0
- package/components/SnakeNavigation/styled/StepIcon.js +11 -0
- package/components/SnakeNavigation/styled/StepLabel.js +29 -0
- package/components/SnakeNavigation/styled/index.js +21 -0
- package/components/Spinner/Spinner.js +15 -0
- package/components/Spinner/index.js +9 -0
- package/components/Spinner/styled/Spinner.js +19 -0
- package/components/Spinner/styled/SpinnerAsset.js +13 -0
- package/components/Spinner/styled/index.js +11 -0
- package/components/Spotlight/Backdrop.js +26 -0
- package/components/Spotlight/Forefront.js +11 -0
- package/components/Spotlight/Spotlight.js +12 -0
- package/components/Spotlight/constants.js +5 -0
- package/components/Spotlight/index.js +11 -0
- package/components/Spotlight/styled/Backdrop.js +22 -0
- package/components/Spotlight/styled/Forefront.js +13 -0
- package/components/Spotlight/styled/index.js +11 -0
- package/components/Stack/Stack.js +14 -0
- package/components/Stack/index.js +9 -0
- package/components/Stack/styled/StyledStack.js +42 -0
- package/components/Stack/styled/index.js +9 -0
- package/components/StaticAsset/StaticAsset.js +19 -0
- package/components/StaticAsset/index.js +9 -0
- package/components/StaticAsset/styled/StaticAsset.js +8 -0
- package/components/StaticAsset/styled/index.js +6 -0
- package/components/StaticAssetGroup/StaticAssetGroup.js +21 -0
- package/components/StaticAssetGroup/StaticAssetItem.js +20 -0
- package/components/StaticAssetGroup/helpers/scrollParentToChild.js +18 -0
- package/components/StaticAssetGroup/index.js +9 -0
- package/components/StaticAssetGroup/styled/StaticAssetItem.js +11 -0
- package/components/StaticAssetGroup/styled/index.js +9 -0
- package/components/StatusBox/StatusBox.js +11 -0
- package/components/StatusBox/index.js +9 -0
- package/components/StatusBox/styled/StatusBox.js +17 -0
- package/components/StatusBox/styled/index.js +9 -0
- package/components/StepContainer/StepContainer.js +11 -0
- package/components/StepContainer/index.js +9 -0
- package/components/StepContainer/styled/StepContainer.js +36 -0
- package/components/StepContainer/styled/index.js +9 -0
- package/components/Steps/Step.js +20 -0
- package/components/Steps/Steps.js +15 -0
- package/components/Steps/index.js +11 -0
- package/components/Steps/styled/StepBorder.js +21 -0
- package/components/Steps/styled/StepChild.js +15 -0
- package/components/Steps/styled/StepCircleContainer.js +12 -0
- package/components/Steps/styled/StepTitle.js +26 -0
- package/components/Steps/styled/index.js +15 -0
- package/components/StepsTitle/StepsTitle.js +12 -0
- package/components/StepsTitle/index.js +9 -0
- package/components/StepsTitle/styled/StepsTitle.js +18 -0
- package/components/StepsTitle/styled/index.js +9 -0
- package/components/StickyComponent/StickyComponent.js +21 -0
- package/components/StickyComponent/index.js +9 -0
- package/components/StickyComponent/styled/StickyComponent.js +20 -0
- package/components/StickyComponent/styled/index.js +9 -0
- package/components/StopsLine/StopsLine.js +21 -0
- package/components/StopsLine/index.js +9 -0
- package/components/StopsLine/styled/StopsLineCircle.js +17 -0
- package/components/StopsLine/styled/StopsLineDivider.js +11 -0
- package/components/StopsLine/styled/index.js +9 -0
- package/components/Switch/Switch.js +13 -0
- package/components/Switch/index.js +6 -0
- package/components/Switch/styled/Checkbox.js +10 -0
- package/components/Switch/styled/Knob.js +19 -0
- package/components/Switch/styled/Wrapper.js +20 -0
- package/components/Switch/styled/index.js +10 -0
- package/components/Table/Table.js +8 -0
- package/components/Table/components/Cell/Cell.js +12 -0
- package/components/Table/components/Cell/index.js +9 -0
- package/components/Table/components/Cell/styled/Cell.js +21 -0
- package/components/Table/components/Cell/styled/index.js +9 -0
- package/components/Table/components/Row/Row.js +8 -0
- package/components/Table/components/Row/index.js +9 -0
- package/components/Table/components/Row/styled/Row.js +25 -0
- package/components/Table/components/Row/styled/index.js +9 -0
- package/components/Table/index.js +13 -0
- package/components/Tabs/Arrow.js +13 -0
- package/components/Tabs/Tab.js +8 -0
- package/components/Tabs/TabTitle.js +30 -0
- package/components/Tabs/Tabs.js +141 -0
- package/components/Tabs/constants.js +6 -0
- package/components/Tabs/index.js +9 -0
- package/components/Tabs/styled/ArrowWrapper.js +26 -0
- package/components/Tabs/styled/ScrollTape.js +11 -0
- package/components/Tabs/styled/TabTitleContainer.js +8 -0
- package/components/Tabs/styled/TabTitleWrapper.js +64 -0
- package/components/Tabs/styled/TabsNavigationBackground.js +24 -0
- package/components/Tabs/styled/TabsNavigationWrapper.js +27 -0
- package/components/Tabs/styled/index.js +15 -0
- package/components/Tabs/types.js +8 -0
- package/components/Tag/Tag.js +12 -0
- package/components/Tag/index.js +9 -0
- package/components/Tag/styled/Tag.js +20 -0
- package/components/Tag/styled/index.js +9 -0
- package/components/Text/Text.js +22 -0
- package/components/Text/index.js +9 -0
- package/components/Text/styled/Text.js +94 -0
- package/components/Text/styled/index.js +9 -0
- package/components/TextArea/TextArea.js +11 -0
- package/components/TextArea/index.js +9 -0
- package/components/TextArea/styled/TextArea.js +15 -0
- package/components/TextArea/styled/index.js +9 -0
- package/components/TextBlock/TextBlock.js +17 -0
- package/components/TextBlock/TextBlockContent.js +14 -0
- package/components/TextBlock/index.js +11 -0
- package/components/TextBlock/styled/TextBlock.js +12 -0
- package/components/TextBlock/styled/TextBlockContent.js +47 -0
- package/components/TextBlock/styled/index.js +11 -0
- package/components/TitleBar/BackButton.js +12 -0
- package/components/TitleBar/CloseButton.js +12 -0
- package/components/TitleBar/OpenButton.js +12 -0
- package/components/TitleBar/TitleBar.js +16 -0
- package/components/TitleBar/index.js +9 -0
- package/components/TitleBar/styled/BackButtonContainer.js +11 -0
- package/components/TitleBar/styled/CloseButtonContainer.js +8 -0
- package/components/TitleBar/styled/OpenButtonContainer.js +8 -0
- package/components/TitleBar/styled/Separator.js +8 -0
- package/components/TitleBar/styled/Title.js +14 -0
- package/components/TitleBar/styled/TitleBar.js +49 -0
- package/components/TitleBar/styled/index.js +17 -0
- package/components/Tooltip/Tooltip.js +98 -0
- package/components/Tooltip/TooltipContext.js +9 -0
- package/components/Tooltip/helpers/getTooltipPosition/constants.js +8 -0
- package/components/Tooltip/helpers/getTooltipPosition/getTooltipPosition.js +43 -0
- package/components/Tooltip/helpers/getTooltipPosition/index.js +9 -0
- package/components/Tooltip/helpers/isPositionChanged/index.js +9 -0
- package/components/Tooltip/helpers/isPositionChanged/isPositionChanged.js +15 -0
- package/components/Tooltip/index.js +9 -0
- package/components/Tooltip/styled/IconWrapper.js +17 -0
- package/components/Tooltip/styled/Tooltip.js +37 -0
- package/components/Tooltip/styled/Wrapper.js +8 -0
- package/components/Tooltip/styled/index.js +13 -0
- package/components/Touchable/Touchable.js +12 -0
- package/components/Touchable/index.js +9 -0
- package/components/Touchable/styled/Touchable.js +33 -0
- package/components/Touchable/styled/index.js +9 -0
- package/components/ValidationIcon/ValidationIcon.js +11 -0
- package/components/ValidationIcon/index.js +9 -0
- package/components/__deprecated__/Box/Box.js +27 -0
- package/components/__deprecated__/Box/index.js +9 -0
- package/components/__deprecated__/Box/styled/StyledBox.js +176 -0
- package/components/__deprecated__/Box/styled/index.js +9 -0
- package/components/__deprecated__/FlightCollapsedBox/FlightCollapsedBox.js +40 -0
- package/components/__deprecated__/FlightCollapsedBox/index.js +9 -0
- package/components/__deprecated__/FlightCollapsedBox/styled/FlightCollapseContent.js +11 -0
- package/components/__deprecated__/FlightCollapsedBox/styled/FlightCollapsedBox.js +11 -0
- package/components/__deprecated__/FlightCollapsedBox/styled/Wrapper.js +8 -0
- package/components/__deprecated__/FlightCollapsedBox/styled/index.js +13 -0
- package/components/__deprecated__/Header/Header.js +12 -0
- package/components/__deprecated__/Header/HeaderButton.js +11 -0
- package/components/__deprecated__/Header/HeaderLogo.js +11 -0
- package/components/__deprecated__/Header/index.js +13 -0
- package/components/__deprecated__/Header/styled/Header.js +11 -0
- package/components/__deprecated__/Header/styled/HeaderButton.js +40 -0
- package/components/__deprecated__/Header/styled/HeaderLogo.js +14 -0
- package/components/__deprecated__/Header/styled/HeaderWrapper.js +11 -0
- package/components/__deprecated__/Header/styled/index.js +15 -0
- package/components/__deprecated__/NegativeMarginWrapper/NegativeMarginWrapper.js +11 -0
- package/components/__deprecated__/NegativeMarginWrapper/index.js +9 -0
- package/components/__deprecated__/NegativeMarginWrapper/styled/NegativeMarginWrapper.js +11 -0
- package/components/__deprecated__/NegativeMarginWrapper/styled/index.js +9 -0
- package/hooks/useBreakpoints/index.js +9 -0
- package/hooks/useBreakpoints/useBreakpoints.js +16 -0
- package/hooks/useDesktop/index.js +9 -0
- package/hooks/useDesktop/useDesktop.js +7 -0
- package/hooks/useLazyLoadingImage/index.js +9 -0
- package/hooks/useLazyLoadingImage/useLazyLoadingImage.js +31 -0
- package/hooks/useMediaQuery/helpers/isSupported/index.js +9 -0
- package/hooks/useMediaQuery/helpers/isSupported/isSupported.js +7 -0
- package/hooks/useMediaQuery/index.js +9 -0
- package/hooks/useMediaQuery/useMediaQuery.js +22 -0
- package/hooks/useMounted/index.js +9 -0
- package/hooks/useMounted/useMounted.js +13 -0
- package/hooks/useViewportSize/index.js +6 -0
- package/hooks/useViewportSize/useViewportSize.js +33 -0
- package/package.json +28 -3
- package/scripts/build.js +132 -0
- package/themes/common/zIndexes.js +18 -0
- package/utils/hexToRgba/hexToRgba.js +10 -0
- package/utils/hexToRgba/index.js +9 -0
- package/utils/isSSR/index.js +9 -0
- package/utils/isSSR/isSSR.js +4 -0
- package/utils/media/index.js +9 -0
- package/utils/media/media.js +45 -0
- package/utils/omitAttrs/index.js +9 -0
- package/utils/omitAttrs/omitAttrs.js +15 -0
- package/utils/sanitizeTags/index.js +6 -0
- package/utils/sanitizeTags/sanitizeTags.js +54 -0
- package/utils/scroller/documentScrollPosition.js +17 -0
- package/utils/scroller/index.js +7 -0
- package/utils/scroller/scrollTickToPosition.js +31 -0
- package/utils/scroller/scrollTo.js +34 -0
- package/utils/themedStyledComponents/index.js +15 -0
@@ -0,0 +1,55 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var tslib_1 = require("tslib");
|
4
|
+
var wrapInSVGString_1 = tslib_1.__importDefault(require("./wrapInSVGString"));
|
5
|
+
var constants_1 = require("./constants");
|
6
|
+
var defaultConfig = {
|
7
|
+
attrs: tslib_1.__assign(tslib_1.__assign({}, constants_1.defaultAttrs), { style: ['position: absolute', 'width: 0', 'height: 0'].join('; ') }),
|
8
|
+
};
|
9
|
+
var BaseSprite = (function () {
|
10
|
+
function BaseSprite(config) {
|
11
|
+
this.symbols = [];
|
12
|
+
this.config = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, defaultConfig), config), { attrs: tslib_1.__assign(tslib_1.__assign({}, defaultConfig.attrs), config.attrs) });
|
13
|
+
this.symbols = [];
|
14
|
+
}
|
15
|
+
BaseSprite.prototype.add = function (symbol) {
|
16
|
+
var symbols = this.symbols;
|
17
|
+
var existing = this.find(symbol.id);
|
18
|
+
if (existing) {
|
19
|
+
symbols[symbols.indexOf(existing)] = symbol;
|
20
|
+
return false;
|
21
|
+
}
|
22
|
+
symbols.push(symbol);
|
23
|
+
return true;
|
24
|
+
};
|
25
|
+
BaseSprite.prototype.remove = function (id) {
|
26
|
+
var symbols = this.symbols;
|
27
|
+
var symbol = this.find(id);
|
28
|
+
if (symbol) {
|
29
|
+
symbols.splice(symbols.indexOf(symbol), 1);
|
30
|
+
symbol.destroy();
|
31
|
+
return true;
|
32
|
+
}
|
33
|
+
return false;
|
34
|
+
};
|
35
|
+
BaseSprite.prototype.find = function (id) {
|
36
|
+
return this.symbols.filter(function (s) { return s.id === id; })[0] || null;
|
37
|
+
};
|
38
|
+
BaseSprite.prototype.has = function (id) {
|
39
|
+
return this.find(id) !== null;
|
40
|
+
};
|
41
|
+
BaseSprite.prototype.stringify = function () {
|
42
|
+
var attrs = this.config.attrs;
|
43
|
+
var stringifiedSymbols = this.symbols.map(function (s) { return s.stringify(); }).join('');
|
44
|
+
return wrapInSVGString_1.default(stringifiedSymbols, attrs);
|
45
|
+
};
|
46
|
+
BaseSprite.prototype.toString = function () {
|
47
|
+
return this.stringify();
|
48
|
+
};
|
49
|
+
BaseSprite.prototype.destroy = function () {
|
50
|
+
this.symbols.forEach(function (s) { return s.destroy(); });
|
51
|
+
};
|
52
|
+
return BaseSprite;
|
53
|
+
}());
|
54
|
+
exports.default = BaseSprite;
|
55
|
+
//# sourceMappingURL=BaseSprite.js.map
|
@@ -0,0 +1,26 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var BaseSpriteSymbol = (function () {
|
4
|
+
function BaseSpriteSymbol(_a) {
|
5
|
+
var id = _a.id, viewBox = _a.viewBox, content = _a.content;
|
6
|
+
this.id = '';
|
7
|
+
this.viewBox = '';
|
8
|
+
this.content = '';
|
9
|
+
this.id = id;
|
10
|
+
this.viewBox = viewBox;
|
11
|
+
this.content = content;
|
12
|
+
}
|
13
|
+
BaseSpriteSymbol.prototype.stringify = function () {
|
14
|
+
return this.content;
|
15
|
+
};
|
16
|
+
BaseSpriteSymbol.prototype.toString = function () {
|
17
|
+
return this.stringify();
|
18
|
+
};
|
19
|
+
BaseSpriteSymbol.prototype.destroy = function () {
|
20
|
+
var _this = this;
|
21
|
+
['id', 'viewBox', 'content'].forEach(function (prop) { return delete _this[prop]; });
|
22
|
+
};
|
23
|
+
return BaseSpriteSymbol;
|
24
|
+
}());
|
25
|
+
exports.default = BaseSpriteSymbol;
|
26
|
+
//# sourceMappingURL=BaseSymbol.js.map
|
@@ -0,0 +1,84 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var tslib_1 = require("tslib");
|
4
|
+
var BaseSprite_1 = tslib_1.__importDefault(require("./BaseSprite"));
|
5
|
+
var parse_1 = tslib_1.__importDefault(require("./parse"));
|
6
|
+
var defaultConfig = {
|
7
|
+
mountTo: 'body',
|
8
|
+
usagesToUpdate: 'use[*|href]',
|
9
|
+
};
|
10
|
+
var moveGradientOutsideSymbol = function (node) {
|
11
|
+
Array.from(node.querySelectorAll('linearGradient, radialGradient, pattern')).forEach(function (el) {
|
12
|
+
if (node.parentNode) {
|
13
|
+
node.parentNode.insertBefore(el, node);
|
14
|
+
}
|
15
|
+
});
|
16
|
+
};
|
17
|
+
var BrowserSprite = (function (_super) {
|
18
|
+
tslib_1.__extends(BrowserSprite, _super);
|
19
|
+
function BrowserSprite(config) {
|
20
|
+
if (config === void 0) { config = {}; }
|
21
|
+
var _this = _super.call(this, tslib_1.__assign(tslib_1.__assign({}, defaultConfig), config)) || this;
|
22
|
+
_this.node = null;
|
23
|
+
return _this;
|
24
|
+
}
|
25
|
+
Object.defineProperty(BrowserSprite.prototype, "isMounted", {
|
26
|
+
get: function () {
|
27
|
+
return !!this.node;
|
28
|
+
},
|
29
|
+
enumerable: false,
|
30
|
+
configurable: true
|
31
|
+
});
|
32
|
+
BrowserSprite.prototype.add = function (symbol) {
|
33
|
+
var isNewSymbol = _super.prototype.add.call(this, symbol);
|
34
|
+
if (this.isMounted && isNewSymbol) {
|
35
|
+
if (this.node) {
|
36
|
+
symbol.mount(this.node);
|
37
|
+
}
|
38
|
+
if (symbol.node) {
|
39
|
+
moveGradientOutsideSymbol(symbol.node);
|
40
|
+
}
|
41
|
+
}
|
42
|
+
return isNewSymbol;
|
43
|
+
};
|
44
|
+
BrowserSprite.prototype.destroy = function () {
|
45
|
+
var symbols = this.symbols;
|
46
|
+
symbols.forEach(function (s) { return s.destroy(); });
|
47
|
+
if (this.isMounted) {
|
48
|
+
this.unmount();
|
49
|
+
}
|
50
|
+
};
|
51
|
+
BrowserSprite.prototype.mount = function (target) {
|
52
|
+
if (target === void 0) { target = this.config.mountTo; }
|
53
|
+
var attrs = this.config.attrs;
|
54
|
+
if (this.isMounted) {
|
55
|
+
return this.node;
|
56
|
+
}
|
57
|
+
if (attrs && attrs.id) {
|
58
|
+
var mountedSpriteNode = document.getElementById(attrs.id);
|
59
|
+
if (mountedSpriteNode) {
|
60
|
+
this.node = mountedSpriteNode;
|
61
|
+
Array.from(mountedSpriteNode.children).forEach(moveGradientOutsideSymbol);
|
62
|
+
return this.node;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
var mountNode = typeof target === 'string' ? document.querySelector(target) : target;
|
66
|
+
var node = this.render();
|
67
|
+
this.node = node;
|
68
|
+
if (mountNode) {
|
69
|
+
mountNode.appendChild(node);
|
70
|
+
}
|
71
|
+
return this.node;
|
72
|
+
};
|
73
|
+
BrowserSprite.prototype.render = function () {
|
74
|
+
return parse_1.default(this.stringify());
|
75
|
+
};
|
76
|
+
BrowserSprite.prototype.unmount = function () {
|
77
|
+
if (this.node && this.node.parentNode) {
|
78
|
+
this.node.parentNode.removeChild(this.node);
|
79
|
+
}
|
80
|
+
};
|
81
|
+
return BrowserSprite;
|
82
|
+
}(BaseSprite_1.default));
|
83
|
+
exports.default = BrowserSprite;
|
84
|
+
//# sourceMappingURL=BrowserSprite.js.map
|
@@ -0,0 +1,49 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var tslib_1 = require("tslib");
|
4
|
+
var BaseSymbol_1 = tslib_1.__importDefault(require("./BaseSymbol"));
|
5
|
+
var parse_1 = tslib_1.__importDefault(require("./parse"));
|
6
|
+
var wrapInSVGString_1 = tslib_1.__importDefault(require("./wrapInSVGString"));
|
7
|
+
var BrowserSpriteSymbol = (function (_super) {
|
8
|
+
tslib_1.__extends(BrowserSpriteSymbol, _super);
|
9
|
+
function BrowserSpriteSymbol() {
|
10
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
11
|
+
}
|
12
|
+
Object.defineProperty(BrowserSpriteSymbol.prototype, "isMounted", {
|
13
|
+
get: function () {
|
14
|
+
return !!this.node;
|
15
|
+
},
|
16
|
+
enumerable: false,
|
17
|
+
configurable: true
|
18
|
+
});
|
19
|
+
BrowserSpriteSymbol.prototype.destroy = function () {
|
20
|
+
if (this.isMounted) {
|
21
|
+
this.unmount();
|
22
|
+
}
|
23
|
+
_super.prototype.destroy.call(this);
|
24
|
+
};
|
25
|
+
BrowserSpriteSymbol.prototype.mount = function (target) {
|
26
|
+
if (this.isMounted) {
|
27
|
+
return this.node;
|
28
|
+
}
|
29
|
+
var mountTarget = typeof target === 'string' ? document.querySelector(target) : target;
|
30
|
+
var node = this.render();
|
31
|
+
this.node = node;
|
32
|
+
if (mountTarget) {
|
33
|
+
mountTarget.appendChild(node);
|
34
|
+
}
|
35
|
+
return node;
|
36
|
+
};
|
37
|
+
BrowserSpriteSymbol.prototype.render = function () {
|
38
|
+
var content = this.stringify();
|
39
|
+
return parse_1.default(wrapInSVGString_1.default(content)).childNodes[0];
|
40
|
+
};
|
41
|
+
BrowserSpriteSymbol.prototype.unmount = function () {
|
42
|
+
if (this.node && this.node.parentNode) {
|
43
|
+
this.node.parentNode.removeChild(this.node);
|
44
|
+
}
|
45
|
+
};
|
46
|
+
return BrowserSpriteSymbol;
|
47
|
+
}(BaseSymbol_1.default));
|
48
|
+
exports.default = BrowserSpriteSymbol;
|
49
|
+
//# sourceMappingURL=BrowserSymbol.js.map
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.defaultAttrs = void 0;
|
4
|
+
exports.defaultAttrs = {
|
5
|
+
xmlns: 'http://www.w3.org/2000/svg',
|
6
|
+
'xmlns:xlink': 'http://www.w3.org/1999/xlink',
|
7
|
+
};
|
8
|
+
//# sourceMappingURL=constants.js.map
|
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = (function (attrs) {
|
4
|
+
if (attrs === void 0) { attrs = {}; }
|
5
|
+
return Object.keys(attrs)
|
6
|
+
.map(function (attr) {
|
7
|
+
var value = attrs[attr].toString().replace(/"/g, '"');
|
8
|
+
return attr + "=\"" + value + "\"";
|
9
|
+
})
|
10
|
+
.join(' ');
|
11
|
+
});
|
12
|
+
//# sourceMappingURL=objectToAttrsString.js.map
|
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = (function (content) {
|
4
|
+
var hasImportNode = !!document.importNode;
|
5
|
+
var doc = new DOMParser().parseFromString(content, 'image/svg+xml')
|
6
|
+
.documentElement;
|
7
|
+
if (hasImportNode) {
|
8
|
+
return document.importNode(doc, true);
|
9
|
+
}
|
10
|
+
return doc;
|
11
|
+
});
|
12
|
+
//# sourceMappingURL=parse.js.map
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var tslib_1 = require("tslib");
|
4
|
+
var isSSR_1 = tslib_1.__importDefault(require("../../../../utils/isSSR"));
|
5
|
+
var spriteNodeId = '__SVG_SPRITE_NODE__';
|
6
|
+
var createSprite = function (isServer) {
|
7
|
+
var Sprite = (isServer
|
8
|
+
? require('./BaseSprite')
|
9
|
+
: require('./BrowserSprite')).default;
|
10
|
+
return new Sprite({ attrs: { id: spriteNodeId } });
|
11
|
+
};
|
12
|
+
var isBrowserSprite = function (sprite) { return 'mount' in sprite; };
|
13
|
+
var sprite = createSprite(isSSR_1.default());
|
14
|
+
if (isBrowserSprite(sprite)) {
|
15
|
+
sprite.mount(document.body);
|
16
|
+
}
|
17
|
+
exports.default = sprite;
|
18
|
+
//# sourceMappingURL=sprite.js.map
|
@@ -0,0 +1,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var tslib_1 = require("tslib");
|
4
|
+
var isSSR_1 = tslib_1.__importDefault(require("../../../../utils/isSSR"));
|
5
|
+
var getSymbol = function (server) {
|
6
|
+
return (server ? require('./BaseSymbol') : require('./BrowserSymbol')).default;
|
7
|
+
};
|
8
|
+
var SpriteSymbol = getSymbol(isSSR_1.default());
|
9
|
+
exports.default = (function (id, data) {
|
10
|
+
var partsViewBox = data.substr(data.indexOf('viewBox="')).split('"');
|
11
|
+
var _a = tslib_1.__read(partsViewBox, 2), viewBox = _a[1];
|
12
|
+
var svg = data.substring(data.indexOf('<svg'), data.indexOf('</svg>'));
|
13
|
+
var symbolContent = svg.substr(data.indexOf('>') + 1);
|
14
|
+
return new SpriteSymbol({
|
15
|
+
id: id,
|
16
|
+
content: "<symbol viewBox=\"" + viewBox + "\" id=\"" + id + "\">" + symbolContent + "</symbol>",
|
17
|
+
viewBox: viewBox,
|
18
|
+
});
|
19
|
+
});
|
20
|
+
//# sourceMappingURL=symbol.js.map
|
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var tslib_1 = require("tslib");
|
4
|
+
var constants_1 = require("./constants");
|
5
|
+
var objectToAttrsString_1 = tslib_1.__importDefault(require("./objectToAttrsString"));
|
6
|
+
exports.default = (function (content, attr) {
|
7
|
+
if (content === void 0) { content = ''; }
|
8
|
+
if (attr === void 0) { attr = {}; }
|
9
|
+
var attrs = tslib_1.__assign(tslib_1.__assign({}, constants_1.defaultAttrs), attr);
|
10
|
+
var attrsRendered = objectToAttrsString_1.default(attrs);
|
11
|
+
return "<svg " + attrsRendered + ">" + content + "</svg>";
|
12
|
+
});
|
13
|
+
//# sourceMappingURL=wrapInSVGString.js.map
|
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.createAssetContext = exports.AssetProvider = exports.default = void 0;
|
7
|
+
var Asset_1 = require("./Asset");
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(Asset_1).default; } });
|
9
|
+
var Provider_1 = require("./Provider");
|
10
|
+
Object.defineProperty(exports, "AssetProvider", { enumerable: true, get: function () { return __importDefault(Provider_1).default; } });
|
11
|
+
var createAssetContext_1 = require("./helpers/createAssetContext");
|
12
|
+
Object.defineProperty(exports, "createAssetContext", { enumerable: true, get: function () { return __importDefault(createAssetContext_1).default; } });
|
13
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.Badge = void 0;
|
4
|
+
var tslib_1 = require("tslib");
|
5
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
6
|
+
var S = (0, tslib_1.__importStar)(require("./styled"));
|
7
|
+
var Circle_1 = (0, tslib_1.__importDefault)(require("../Circle"));
|
8
|
+
var Badge = function (_a) {
|
9
|
+
var children = _a.children, count = _a.count, _b = _a.dataAttrs, dataAttrs = _b === void 0 ? {} : _b, fullWidth = _a.fullWidth, _c = _a.offsetX, offsetX = _c === void 0 ? 0 : _c, _d = _a.offsetY, offsetY = _d === void 0 ? 0 : _d;
|
10
|
+
return ((0, jsx_runtime_1.jsxs)(S.BadgeWrapper, (0, tslib_1.__assign)({}, dataAttrs, { fullWidth: fullWidth }, { children: [(0, jsx_runtime_1.jsx)(S.Badge, (0, tslib_1.__assign)({}, dataAttrs, { offsetX: offsetX, offsetY: offsetY }, { children: (0, jsx_runtime_1.jsx)(Circle_1.default, (0, tslib_1.__assign)({ size: 20 }, { children: (0, jsx_runtime_1.jsx)(S.Text, { children: count }, void 0) }), void 0) }), void 0), children] }), void 0));
|
11
|
+
};
|
12
|
+
exports.Badge = Badge;
|
13
|
+
//# sourceMappingURL=Badge.js.map
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.Badge = void 0;
|
4
|
+
var Badge_1 = require("./Badge");
|
5
|
+
Object.defineProperty(exports, "Badge", { enumerable: true, get: function () { return Badge_1.Badge; } });
|
6
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.Badge = void 0;
|
4
|
+
var tslib_1 = require("tslib");
|
5
|
+
var themedStyledComponents_1 = (0, tslib_1.__importDefault)(require("../../../utils/themedStyledComponents"));
|
6
|
+
exports.Badge = themedStyledComponents_1.default.div(templateObject_1 || (templateObject_1 = (0, tslib_1.__makeTemplateObject)(["\n box-sizing: border-box;\n display: inline-block;\n margin-top: -4px;\n margin-right: -4px;\n position: absolute;\n right: ", ";\n top: ", ";\n z-index: ", ";\n"], ["\n box-sizing: border-box;\n display: inline-block;\n margin-top: -4px;\n margin-right: -4px;\n position: absolute;\n right: ", ";\n top: ", ";\n z-index: ", ";\n"])), function (_a) {
|
7
|
+
var offsetX = _a.offsetX;
|
8
|
+
return offsetX;
|
9
|
+
}, function (_a) {
|
10
|
+
var offsetY = _a.offsetY;
|
11
|
+
return offsetY;
|
12
|
+
}, function (_a) {
|
13
|
+
var zIndexes = _a.theme.zIndexes;
|
14
|
+
return zIndexes.ribbon;
|
15
|
+
});
|
16
|
+
var templateObject_1;
|
17
|
+
//# sourceMappingURL=Badge.js.map
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.BadgeWrapper = void 0;
|
4
|
+
var tslib_1 = require("tslib");
|
5
|
+
var themedStyledComponents_1 = (0, tslib_1.__importDefault)(require("../../../utils/themedStyledComponents"));
|
6
|
+
exports.BadgeWrapper = themedStyledComponents_1.default.div(templateObject_1 || (templateObject_1 = (0, tslib_1.__makeTemplateObject)(["\n position: relative;\n display: inline-block;\n ", ";\n"], ["\n position: relative;\n display: inline-block;\n ", ";\n"])), function (_a) {
|
7
|
+
var fullWidth = _a.fullWidth;
|
8
|
+
return fullWidth && 'width: 100%;';
|
9
|
+
});
|
10
|
+
var templateObject_1;
|
11
|
+
//# sourceMappingURL=BadgeWrapper.js.map
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.Text = void 0;
|
4
|
+
var tslib_1 = require("tslib");
|
5
|
+
var themedStyledComponents_1 = (0, tslib_1.__importDefault)(require("../../../utils/themedStyledComponents"));
|
6
|
+
exports.Text = themedStyledComponents_1.default.div(templateObject_1 || (templateObject_1 = (0, tslib_1.__makeTemplateObject)(["\n display: inline-block;\n overflow: hidden;\n pointer-events: none;\n width: 100%;\n white-space: nowrap;\n letter-spacing: normal;\n line-height: 1.5;\n text-align: center;\n ", "\n"], ["\n display: inline-block;\n overflow: hidden;\n pointer-events: none;\n width: 100%;\n white-space: nowrap;\n letter-spacing: normal;\n line-height: 1.5;\n text-align: center;\n ", "\n"])), function (_a) {
|
7
|
+
var _b = _a.theme, colors = _b.colors, fonts = _b.fonts, spacings = _b.spacings;
|
8
|
+
return "\n background-color: ".concat(colors.ACTIVE, ";\n color: ").concat(colors.CONTENT_BACKGROUND, ";\n font-family: ").concat(fonts.secondary.fontFamily, ";\n font-size: ").concat(fonts.sizes.fs200, ";\n font-weight: ").concat(fonts.secondary.weight.fw700, ";\n margin-top: ").concat(spacings.s100, ";\n padding: ").concat(spacings.s200, " 0;\n ");
|
9
|
+
});
|
10
|
+
var templateObject_1;
|
11
|
+
//# sourceMappingURL=Text.js.map
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.Text = exports.BadgeWrapper = exports.Badge = void 0;
|
4
|
+
var Badge_1 = require("./Badge");
|
5
|
+
Object.defineProperty(exports, "Badge", { enumerable: true, get: function () { return Badge_1.Badge; } });
|
6
|
+
var BadgeWrapper_1 = require("./BadgeWrapper");
|
7
|
+
Object.defineProperty(exports, "BadgeWrapper", { enumerable: true, get: function () { return BadgeWrapper_1.BadgeWrapper; } });
|
8
|
+
var Text_1 = require("./Text");
|
9
|
+
Object.defineProperty(exports, "Text", { enumerable: true, get: function () { return Text_1.Text; } });
|
10
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1,30 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var tslib_1 = require("tslib");
|
4
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
5
|
+
var react_1 = require("react");
|
6
|
+
var Overlay_1 = tslib_1.__importDefault(require("../Overlay"));
|
7
|
+
var TitleBar_1 = tslib_1.__importDefault(require("../TitleBar"));
|
8
|
+
var S = tslib_1.__importStar(require("./styled"));
|
9
|
+
var ChevronIcon_1 = tslib_1.__importDefault(require("../ChevronIcon"));
|
10
|
+
var Layout_1 = tslib_1.__importDefault(require("../Layout"));
|
11
|
+
var Flex_1 = tslib_1.__importDefault(require("../Flex"));
|
12
|
+
var BottomSheet = function (_a) {
|
13
|
+
var _b = _a.active, active = _b === void 0 ? false : _b, children = _a.children, onClose = _a.onClose, _c = _a.title, title = _c === void 0 ? '' : _c, footerChildren = _a.footerChildren, onFooterClick = _a.onFooterClick, getFooterHeight = _a.getFooterHeight;
|
14
|
+
var _d = tslib_1.__read(react_1.useState(0), 2), footerHeight = _d[0], setFooterHeight = _d[1];
|
15
|
+
var footerEl = react_1.useRef(null);
|
16
|
+
react_1.useEffect(function () {
|
17
|
+
var _a;
|
18
|
+
var offsetHeight = ((_a = footerEl.current) === null || _a === void 0 ? void 0 : _a.offsetHeight) || 0;
|
19
|
+
setFooterHeight(offsetHeight);
|
20
|
+
if (getFooterHeight) {
|
21
|
+
getFooterHeight(offsetHeight);
|
22
|
+
}
|
23
|
+
}, [getFooterHeight]);
|
24
|
+
return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [jsx_runtime_1.jsx(Overlay_1.default, tslib_1.__assign({ active: active, customZIndex: "bottomSheetOverlay", onClose: onClose }, { children: jsx_runtime_1.jsxs(Flex_1.default, tslib_1.__assign({ flexDirection: "column", inlineSize: "100%", insetBlockEnd: footerHeight + "px", justifyContent: "end", overflowInline: "hidden", position: "absolute" }, { children: [jsx_runtime_1.jsx(TitleBar_1.default, tslib_1.__assign({ onClose: onClose }, { children: title }), void 0),
|
25
|
+
jsx_runtime_1.jsx(Layout_1.default, tslib_1.__assign({ background: "CONTENT_BACKGROUND", inlineSize: "100%", maxBlockSize: "60vh", overflowBlock: "auto", overflowInline: "hidden", position: "relative" }, { children: children }), void 0)] }), void 0) }), void 0),
|
26
|
+
jsx_runtime_1.jsxs(S.BottomSheetFooter, tslib_1.__assign({ ref: footerEl, onClick: onFooterClick }, { children: [jsx_runtime_1.jsx(Layout_1.default, tslib_1.__assign({ flexGrow: 1 }, { children: footerChildren }), void 0),
|
27
|
+
jsx_runtime_1.jsx(ChevronIcon_1.default, { color: "SECONDARY_LIGHT", isActive: !active }, void 0)] }), void 0)] }, void 0));
|
28
|
+
};
|
29
|
+
exports.default = BottomSheet;
|
30
|
+
//# sourceMappingURL=BottomSheet.js.map
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.default = void 0;
|
7
|
+
var BottomSheet_1 = require("./BottomSheet");
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(BottomSheet_1).default; } });
|
9
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var tslib_1 = require("tslib");
|
4
|
+
var themedStyledComponents_1 = tslib_1.__importDefault(require("../../../utils/themedStyledComponents"));
|
5
|
+
var BottomSheetFooter = themedStyledComponents_1.default.div(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n background: ", ";\n padding-right: ", ";\n z-index: ", ";\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n position: fixed;\n bottom: 0;\n left: 0;\n cursor: pointer;\n"], ["\n background: ", ";\n padding-right: ", ";\n z-index: ", ";\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n position: fixed;\n bottom: 0;\n left: 0;\n cursor: pointer;\n"])), function (_a) {
|
6
|
+
var theme = _a.theme;
|
7
|
+
return theme.colors.PRIMARY;
|
8
|
+
}, function (_a) {
|
9
|
+
var theme = _a.theme;
|
10
|
+
return theme.spacings.s500;
|
11
|
+
}, function (_a) {
|
12
|
+
var theme = _a.theme;
|
13
|
+
return theme.zIndexes.bottomSheetFooter;
|
14
|
+
});
|
15
|
+
exports.default = BottomSheetFooter;
|
16
|
+
var templateObject_1;
|
17
|
+
//# sourceMappingURL=BottomSheetFooter.js.map
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.BottomSheetFooter = void 0;
|
7
|
+
var BottomSheetFooter_1 = require("./BottomSheetFooter");
|
8
|
+
Object.defineProperty(exports, "BottomSheetFooter", { enumerable: true, get: function () { return __importDefault(BottomSheetFooter_1).default; } });
|
9
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1,14 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var tslib_1 = require("tslib");
|
4
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
5
|
+
var Layout_1 = tslib_1.__importDefault(require("../Layout"));
|
6
|
+
var A_1 = tslib_1.__importDefault(require("../A"));
|
7
|
+
var Text_1 = tslib_1.__importDefault(require("../Text"));
|
8
|
+
var BreadcrumbItem = function (_a) {
|
9
|
+
var children = _a.children, href = _a.href, target = _a.target, isActive = _a.isActive, dataAttrs = _a.dataAttrs;
|
10
|
+
var labelText = (jsx_runtime_1.jsx(Text_1.default, tslib_1.__assign({ color: isActive ? 'ACTIVE' : 'PRIMARY', fontSize: "fs200", fontWeight: "fw700", tag: "span", textTransform: "uppercase", whiteSpace: "nowrap" }, { children: children }), void 0));
|
11
|
+
return (jsx_runtime_1.jsx(Layout_1.default, tslib_1.__assign({}, dataAttrs, { children: isActive ? (labelText) : (jsx_runtime_1.jsx(A_1.default, tslib_1.__assign({ href: href, target: target }, { children: labelText }), void 0)) }), void 0));
|
12
|
+
};
|
13
|
+
exports.default = BreadcrumbItem;
|
14
|
+
//# sourceMappingURL=BreadcrumbItem.js.map
|
@@ -0,0 +1,16 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var tslib_1 = require("tslib");
|
4
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
5
|
+
var react_1 = require("react");
|
6
|
+
var Stack_1 = tslib_1.__importDefault(require("../Stack"));
|
7
|
+
var BreadcrumbDivider_1 = tslib_1.__importDefault(require("./components/BreadcrumbDivider"));
|
8
|
+
var Breadcrumbs = function (_a) {
|
9
|
+
var children = _a.children;
|
10
|
+
var count = react_1.Children.count(children);
|
11
|
+
return (jsx_runtime_1.jsx(Stack_1.default, tslib_1.__assign({ flexDirection: "row", flexWrap: "wrap", renderDivider: function () { return jsx_runtime_1.jsx(BreadcrumbDivider_1.default, {}, void 0); } }, { children: react_1.Children.map(children, function (child, index) {
|
12
|
+
return index < count - 1 ? child : react_1.cloneElement(child, { isActive: true });
|
13
|
+
}) }), void 0));
|
14
|
+
};
|
15
|
+
exports.default = Breadcrumbs;
|
16
|
+
//# sourceMappingURL=Breadcrumbs.js.map
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var tslib_1 = require("tslib");
|
4
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
5
|
+
var Layout_1 = tslib_1.__importDefault(require("../../../Layout"));
|
6
|
+
var Icon_1 = tslib_1.__importDefault(require("../../../Icon"));
|
7
|
+
var BreadcrumbDivider = function () { return (jsx_runtime_1.jsx(Layout_1.default, tslib_1.__assign({ paddingInline: "s300" }, { children: jsx_runtime_1.jsx(Icon_1.default, { color: "SECONDARY_DARK", height: 7, name: "chevron-horizontal", width: 6 }, void 0) }), void 0)); };
|
8
|
+
exports.default = BreadcrumbDivider;
|
9
|
+
//# sourceMappingURL=BreadcrumbDivider.js.map
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.default = void 0;
|
7
|
+
var BreadcrumbDivider_1 = require("./BreadcrumbDivider");
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(BreadcrumbDivider_1).default; } });
|
9
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.BreadcrumbItem = exports.default = void 0;
|
7
|
+
var Breadcrumbs_1 = require("./Breadcrumbs");
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(Breadcrumbs_1).default; } });
|
9
|
+
var BreadcrumbItem_1 = require("./BreadcrumbItem");
|
10
|
+
Object.defineProperty(exports, "BreadcrumbItem", { enumerable: true, get: function () { return __importDefault(BreadcrumbItem_1).default; } });
|
11
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1,15 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ChatbotButton = void 0;
|
4
|
+
var tslib_1 = require("tslib");
|
5
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
6
|
+
var S = tslib_1.__importStar(require("./styled"));
|
7
|
+
var Icon_1 = tslib_1.__importDefault(require("../Icon"));
|
8
|
+
var Text_1 = tslib_1.__importDefault(require("../Text"));
|
9
|
+
var ChatbotButton = function (_a) {
|
10
|
+
var children = _a.children, dataAttrs = _a.dataAttrs, onClick = _a.onClick;
|
11
|
+
return (jsx_runtime_1.jsxs(S.ChatbotButton, tslib_1.__assign({ onClick: onClick }, dataAttrs, { children: [jsx_runtime_1.jsx(Icon_1.default, { color: "CONTENT_BACKGROUND", height: 24, name: "freshbot", width: 30 }, void 0),
|
12
|
+
children && (jsx_runtime_1.jsx(Text_1.default, tslib_1.__assign({ color: "CONTENT_BACKGROUND", fontSize: "fs1200", fontWeight: "fw700", isSecondaryFamily: true, lineHeight: 1 }, { children: children }), void 0))] }), void 0));
|
13
|
+
};
|
14
|
+
exports.ChatbotButton = ChatbotButton;
|
15
|
+
//# sourceMappingURL=ChatbotButton.js.map
|
@@ -0,0 +1,21 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var tslib_1 = require("tslib");
|
4
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
5
|
+
var S = tslib_1.__importStar(require("./styled"));
|
6
|
+
var defaultProps = {
|
7
|
+
dataAttrs: {},
|
8
|
+
disabled: false,
|
9
|
+
fullWidth: false,
|
10
|
+
onClick: function () { },
|
11
|
+
small: false,
|
12
|
+
type: 'button',
|
13
|
+
};
|
14
|
+
var PrimaryButton = function (_a) {
|
15
|
+
var children = _a.children, dataAttrs = _a.dataAttrs, disabled = _a.disabled, fullWidth = _a.fullWidth, icon = _a.icon, onClick = _a.onClick, small = _a.small, type = _a.type;
|
16
|
+
return (jsx_runtime_1.jsxs(S.Primary, tslib_1.__assign({}, dataAttrs, { disabled: disabled, fullWidth: fullWidth, onClick: onClick, small: small, type: type }, { children: [icon && jsx_runtime_1.jsx(S.IconContainer, { children: icon }, void 0),
|
17
|
+
jsx_runtime_1.jsx(S.Label, { children: children }, void 0)] }), void 0));
|
18
|
+
};
|
19
|
+
PrimaryButton.defaultProps = defaultProps;
|
20
|
+
exports.default = PrimaryButton;
|
21
|
+
//# sourceMappingURL=PrimaryButton.js.map
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.QuaternaryButton = void 0;
|
4
|
+
var tslib_1 = require("tslib");
|
5
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
6
|
+
var S = tslib_1.__importStar(require("./styled"));
|
7
|
+
var defaultProps = {
|
8
|
+
dataAttrs: {},
|
9
|
+
onClick: function () { },
|
10
|
+
type: 'button',
|
11
|
+
};
|
12
|
+
var QuaternaryButton = function (_a) {
|
13
|
+
var badge = _a.badge, children = _a.children, dataAttrs = _a.dataAttrs, fullWidth = _a.fullWidth, icon = _a.icon, onClick = _a.onClick, type = _a.type;
|
14
|
+
return (jsx_runtime_1.jsxs(S.Quaternary, tslib_1.__assign({}, dataAttrs, { fullWidth: fullWidth, noFeedback: true, onClick: onClick, type: type }, { children: [badge, icon && jsx_runtime_1.jsx(S.IconContainer, tslib_1.__assign({}, dataAttrs, { children: icon }), void 0),
|
15
|
+
jsx_runtime_1.jsx(S.Label, tslib_1.__assign({ isQuaternary: true }, dataAttrs, { children: children }), void 0)] }), void 0));
|
16
|
+
};
|
17
|
+
exports.QuaternaryButton = QuaternaryButton;
|
18
|
+
exports.QuaternaryButton.defaultProps = defaultProps;
|
19
|
+
//# sourceMappingURL=QuaternaryButton.js.map
|
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.QuinaryButton = void 0;
|
4
|
+
var tslib_1 = require("tslib");
|
5
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
6
|
+
var S = tslib_1.__importStar(require("./styled"));
|
7
|
+
var QuinaryButton = function (_a) {
|
8
|
+
var children = _a.children, dataAttrs = _a.dataAttrs, onClick = _a.onClick, icon = _a.icon;
|
9
|
+
return (jsx_runtime_1.jsxs(S.Quinary, tslib_1.__assign({}, dataAttrs, { onClick: onClick }, { children: [icon && jsx_runtime_1.jsx(S.IconContainer, { children: icon }, void 0),
|
10
|
+
children && jsx_runtime_1.jsx(S.Label, tslib_1.__assign({ isQuinary: !!icon }, { children: children }), void 0)] }), void 0));
|
11
|
+
};
|
12
|
+
exports.QuinaryButton = QuinaryButton;
|
13
|
+
//# sourceMappingURL=QuinaryButton.js.map
|
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.SeatInteractionButton = void 0;
|
4
|
+
var tslib_1 = require("tslib");
|
5
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
6
|
+
var S = tslib_1.__importStar(require("./styled"));
|
7
|
+
var SeatInteractionButton = function (_a) {
|
8
|
+
var children = _a.children, dataAttrs = _a.dataAttrs, onClick = _a.onClick, active = _a.active;
|
9
|
+
return (jsx_runtime_1.jsx(S.SeatInteraction, tslib_1.__assign({}, dataAttrs, { active: active, noFeedback: true, onClick: onClick }, { children: children }), void 0));
|
10
|
+
};
|
11
|
+
exports.SeatInteractionButton = SeatInteractionButton;
|
12
|
+
//# sourceMappingURL=SeatInteractionButton.js.map
|