@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,20 @@
|
|
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
|
+
type: 'button',
|
12
|
+
};
|
13
|
+
var SecondaryButton = function (_a) {
|
14
|
+
var children = _a.children, dataAttrs = _a.dataAttrs, disabled = _a.disabled, fullWidth = _a.fullWidth, icon = _a.icon, onClick = _a.onClick, type = _a.type;
|
15
|
+
return (jsx_runtime_1.jsxs(S.Secondary, tslib_1.__assign({}, dataAttrs, { disabled: disabled, fullWidth: fullWidth, onClick: onClick, type: type }, { children: [icon && (jsx_runtime_1.jsx(S.IconContainer, tslib_1.__assign({ isSecondary: true }, dataAttrs, { children: icon }), void 0)),
|
16
|
+
jsx_runtime_1.jsx(S.Label, tslib_1.__assign({ isSecondary: true }, dataAttrs, { children: children }), void 0)] }), void 0));
|
17
|
+
};
|
18
|
+
SecondaryButton.defaultProps = defaultProps;
|
19
|
+
exports.default = SecondaryButton;
|
20
|
+
//# sourceMappingURL=SecondaryButton.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
|
+
type: 'button',
|
12
|
+
outline: false,
|
13
|
+
inverse: false,
|
14
|
+
};
|
15
|
+
var TertiaryButton = function (_a) {
|
16
|
+
var children = _a.children, dataAttrs = _a.dataAttrs, disabled = _a.disabled, fullWidth = _a.fullWidth, onClick = _a.onClick, type = _a.type, outline = _a.outline, inverse = _a.inverse, variation = _a.variation, noFeedback = _a.noFeedback;
|
17
|
+
return (jsx_runtime_1.jsx(S.Tertiary, tslib_1.__assign({}, dataAttrs, { disabled: disabled, fullWidth: fullWidth, inverse: inverse, noFeedback: noFeedback, onClick: onClick, outline: outline, type: type, variation: variation }, { children: jsx_runtime_1.jsx(S.Label, { children: children }, void 0) }), void 0));
|
18
|
+
};
|
19
|
+
TertiaryButton.defaultProps = defaultProps;
|
20
|
+
exports.default = TertiaryButton;
|
21
|
+
//# sourceMappingURL=TertiaryButton.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.TertiaryButton = exports.SecondaryButton = exports.PrimaryButton = void 0;
|
7
|
+
var PrimaryButton_1 = require("./PrimaryButton");
|
8
|
+
Object.defineProperty(exports, "PrimaryButton", { enumerable: true, get: function () { return __importDefault(PrimaryButton_1).default; } });
|
9
|
+
var SecondaryButton_1 = require("./SecondaryButton");
|
10
|
+
Object.defineProperty(exports, "SecondaryButton", { enumerable: true, get: function () { return __importDefault(SecondaryButton_1).default; } });
|
11
|
+
var TertiaryButton_1 = require("./TertiaryButton");
|
12
|
+
Object.defineProperty(exports, "TertiaryButton", { enumerable: true, get: function () { return __importDefault(TertiaryButton_1).default; } });
|
13
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1,25 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var tslib_1 = require("tslib");
|
4
|
+
var themedStyledComponents_1 = tslib_1.__importStar(require("../../../utils/themedStyledComponents"));
|
5
|
+
var S = tslib_1.__importStar(require("../../Touchable/styled"));
|
6
|
+
var Button = themedStyledComponents_1.default(S.Touchable).attrs({
|
7
|
+
as: 'button',
|
8
|
+
display: 'flex',
|
9
|
+
alignItems: 'center',
|
10
|
+
justifyContent: 'center',
|
11
|
+
})(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n border-radius: ", ";\n font-family: ", ";\n line-height: 1.2;\n max-width: 100%;\n\n &:focus {\n outline: none;\n }\n\n &:active {\n background-image: none;\n }\n\n ", ";\n"], ["\n border-radius: ",
|
12
|
+
";\n font-family: ", ";\n line-height: 1.2;\n max-width: 100%;\n\n &:focus {\n outline: none;\n }\n\n &:active {\n background-image: none;\n }\n\n ",
|
13
|
+
";\n"])), function (_a) {
|
14
|
+
var theme = _a.theme;
|
15
|
+
return theme.borders.radius[theme.button.BORDER_RADIUS];
|
16
|
+
}, function (_a) {
|
17
|
+
var theme = _a.theme;
|
18
|
+
return theme.fonts.secondary.fontFamily;
|
19
|
+
}, function (_a) {
|
20
|
+
var fullWidth = _a.fullWidth;
|
21
|
+
return fullWidth && themedStyledComponents_1.css(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n width: 100%;\n "], ["\n width: 100%;\n "])));
|
22
|
+
});
|
23
|
+
exports.default = Button;
|
24
|
+
var templateObject_1, templateObject_2;
|
25
|
+
//# sourceMappingURL=Button.js.map
|
@@ -0,0 +1,16 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ChatbotButton = void 0;
|
4
|
+
var tslib_1 = require("tslib");
|
5
|
+
var styled_components_1 = tslib_1.__importDefault(require("styled-components"));
|
6
|
+
var Button_1 = tslib_1.__importDefault(require("./Button"));
|
7
|
+
var hexToRgba_1 = tslib_1.__importDefault(require("../../../utils/hexToRgba"));
|
8
|
+
exports.ChatbotButton = styled_components_1.default(Button_1.default)(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n background: ", ";\n border: none;\n border-radius: 32px 4px 32px 32px;\n box-shadow: 0px 4px 8px\n ", ";\n gap: 12px;\n height: 61px;\n padding: 0 24px;\n"], ["\n background: ", ";\n border: none;\n border-radius: 32px 4px 32px 32px;\n box-shadow: 0px 4px 8px\n ", ";\n gap: 12px;\n height: 61px;\n padding: 0 24px;\n"])), function (_a) {
|
9
|
+
var theme = _a.theme;
|
10
|
+
return theme.colors.PRIMARY;
|
11
|
+
}, function (_a) {
|
12
|
+
var theme = _a.theme;
|
13
|
+
return hexToRgba_1.default(theme.colors.PRIMARY, 0.45);
|
14
|
+
});
|
15
|
+
var templateObject_1;
|
16
|
+
//# sourceMappingURL=ChatbotButton.js.map
|
@@ -0,0 +1,14 @@
|
|
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 IconContainer = themedStyledComponents_1.default.span(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n align-items: center;\n display: flex;\n text-align: center;\n pointer-events: none;\n ", "\n"], ["\n align-items: center;\n display: flex;\n text-align: center;\n pointer-events: none;\n ",
|
6
|
+
"\n"])), function (_a) {
|
7
|
+
var isSecondary = _a.isSecondary, _b = _a.theme, borders = _b.borders, button = _b.button, colors = _b.colors, spacings = _b.spacings;
|
8
|
+
return isSecondary
|
9
|
+
? "\n border-right: " + borders.width.bw200 + " " + button.SECONDARY_BORDER_STYLE + " " + colors.SECONDARY + ";\n padding: " + spacings.s100 + " 0;\n margin: 0 " + spacings.s400 + " 0 0;\n "
|
10
|
+
: '';
|
11
|
+
});
|
12
|
+
exports.default = IconContainer;
|
13
|
+
var templateObject_1;
|
14
|
+
//# sourceMappingURL=IconContainer.js.map
|
@@ -0,0 +1,14 @@
|
|
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 Label = themedStyledComponents_1.default.span(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n pointer-events: none;\n ", "\n"], ["\n pointer-events: none;\n ",
|
6
|
+
"\n"])), function (_a) {
|
7
|
+
var isSecondary = _a.isSecondary, spacings = _a.theme.spacings;
|
8
|
+
return isSecondary
|
9
|
+
? "\n padding: " + spacings.s300 + " 0;\n width: 100%;\n "
|
10
|
+
: '';
|
11
|
+
});
|
12
|
+
exports.default = Label;
|
13
|
+
var templateObject_1;
|
14
|
+
//# sourceMappingURL=Label.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 Button_1 = tslib_1.__importDefault(require("./Button"));
|
6
|
+
var Primary = themedStyledComponents_1.default(Button_1.default)(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n border: none;\n flex-direction: row-reverse;\n min-height: 48px;\n ", "\n"], ["\n border: none;\n flex-direction: row-reverse;\n min-height: 48px;\n ",
|
7
|
+
"\n"])), function (_a) {
|
8
|
+
var _b = _a.theme, fonts = _b.fonts, button = _b.button, colors = _b.colors, spacings = _b.spacings, small = _a.small, disabled = _a.disabled;
|
9
|
+
return "\n background-image: linear-gradient(to bottom, " + colors[button.PRIMARY_BUTTON_COLOR || 'GRADIENT_TOP'] + ", " + colors[button.PRIMARY_BUTTON_COLOR || 'GRADIENT_DOWN'] + ");\n box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.15),\n inset 0 -3px 0 0 " + colors[button.PRIMARY_BUTTON_COLOR || 'ACCENT_DARK'] + ";\n color: " + colors[button.PRIMARY_TEXT_COLOR] + ";\n font-size: " + fonts.sizes[button.PRIMARY_FONT_SIZE] + ";\n font-weight: " + fonts.secondary.weight[button.PRIMARY_FONT_WEIGHT] + ";\n padding: " + spacings.s300 + " " + spacings.s800 + ";\n text-shadow: " + button.PRIMARY_TEXT_SHADOW + ";\n\n svg {\n margin-left: " + spacings.s300 + ";\n > use {\n fill: " + colors[button.PRIMARY_ICON_COLOR] + ";\n }\n }\n\n &:not(:disabled) {\n svg {\n filter: " + button.PRIMARY_ICON_SHADOW + ";\n }\n }\n\n &:focus:not(:disabled),\n &:hover:not(:disabled) {\n background-color: " + colors[button.PRIMARY_BUTTON_COLOR || 'GRADIENT_TOP'] + ";\n }\n\n &:active:not(:disabled) {\n background-color: " + colors[button.PRIMARY_BUTTON_COLOR || 'GRADIENT_DOWN'] + ";\n box-shadow: inset 0 -1px 0 0 " + colors[button.PRIMARY_BUTTON_COLOR || 'ACCENT_DARK'] + ";\n }\n\n " + (small
|
10
|
+
? "\n font-size: " + fonts.sizes[button.PRIMARY_SMALL_FONT_SIZE] + ";\n min-height: 36px;\n padding-left: " + spacings.s500 + ";\n padding-right: " + spacings.s500 + ";\n\n svg {\n height: 16px;\n margin-top: -3px;\n width: 16px;\n }\n "
|
11
|
+
: '') + "\n\n " + (disabled
|
12
|
+
? "\n background: " + colors.SECONDARY_LIGHT + ";\n box-shadow: inset 0 -3px 0 0 " + colors[button.PRIMARY_DISABLED_SHADOW_COLOR] + ";\n color: " + colors[button.PRIMARY_DISABLED_TEXT_COLOR] + ";\n cursor: default;\n text-shadow: none;\n\n svg > use {\n fill: " + colors[button.PRIMARY_DISABLED_ICON_COLOR] + ";\n }\n "
|
13
|
+
: '') + "\n ";
|
14
|
+
});
|
15
|
+
exports.default = Primary;
|
16
|
+
var templateObject_1;
|
17
|
+
//# sourceMappingURL=Primary.js.map
|
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.Quaternary = void 0;
|
4
|
+
var tslib_1 = require("tslib");
|
5
|
+
var themedStyledComponents_1 = tslib_1.__importDefault(require("../../../utils/themedStyledComponents"));
|
6
|
+
var Button_1 = tslib_1.__importDefault(require("./Button"));
|
7
|
+
exports.Quaternary = themedStyledComponents_1.default(Button_1.default)(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n min-height: 36px;\n position: relative;\n ", "\n"], ["\n min-height: 36px;\n position: relative;\n ",
|
8
|
+
"\n"])), function (_a) {
|
9
|
+
var _b = _a.theme, fonts = _b.fonts, colors = _b.colors, borders = _b.borders, spacings = _b.spacings;
|
10
|
+
return "\n background: " + colors.TERTIARY_DARK + ";\n border: " + borders.style.SOLID + " " + borders.width.bw200 + " " + colors.SECONDARY_LIGHT + ";\n\n color: " + colors.PRIMARY + ";\n font-size: " + fonts.sizes.fs400 + ";\n font-family: " + fonts.primary.fontFamily + ";\n font-weight: " + fonts.primary.weight.fw500 + ";\n line-height: 1.5;\n padding: 0 " + spacings.s400 + ";\n\n svg {\n flex-grow: 0;\n flex-shrink: 0;\n margin-right: " + spacings.s400 + ";\n > use {\n fill: " + colors.PRIMARY + ";\n }\n }\n ";
|
11
|
+
});
|
12
|
+
var templateObject_1;
|
13
|
+
//# sourceMappingURL=Quaternary.js.map
|
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.Quinary = void 0;
|
4
|
+
var tslib_1 = require("tslib");
|
5
|
+
var themedStyledComponents_1 = tslib_1.__importStar(require("../../../utils/themedStyledComponents"));
|
6
|
+
var Button_1 = tslib_1.__importDefault(require("./Button"));
|
7
|
+
exports.Quinary = themedStyledComponents_1.default(Button_1.default)(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n ", ";\n"], ["\n ",
|
8
|
+
";\n"])), function (_a) {
|
9
|
+
var _b = _a.theme, colors = _b.colors, borders = _b.borders, spacings = _b.spacings, fonts = _b.fonts;
|
10
|
+
return themedStyledComponents_1.css(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n color: ", ";\n font-size: ", ";\n font-family: ", ";\n font-weight: ", ";\n height: 40px;\n background: ", ";\n border: ", " ", "\n ", ";\n border-radius: ", ";\n padding: ", ";\n\n svg {\n height: 16px;\n width: 16px;\n flex-grow: 0;\n flex-shrink: 0;\n > use {\n fill: ", ";\n }\n }\n "], ["\n color: ", ";\n font-size: ", ";\n font-family: ", ";\n font-weight: ", ";\n height: 40px;\n background: ", ";\n border: ", " ", "\n ", ";\n border-radius: ", ";\n padding: ", ";\n\n svg {\n height: 16px;\n width: 16px;\n flex-grow: 0;\n flex-shrink: 0;\n > use {\n fill: ", ";\n }\n }\n "])), colors.TERTIARY_LIGHT, fonts.sizes.fs400, fonts.secondary.fontFamily, fonts.secondary.weight.fw600, colors.PRIMARY, borders.style.SOLID, borders.width.bw100, colors.TERTIARY_LIGHT, borders.radius.br200, spacings.s400, colors.TERTIARY_LIGHT);
|
11
|
+
});
|
12
|
+
var templateObject_1, templateObject_2;
|
13
|
+
//# sourceMappingURL=Quinary.js.map
|
@@ -0,0 +1,16 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.SeatInteraction = void 0;
|
4
|
+
var tslib_1 = require("tslib");
|
5
|
+
var themedStyledComponents_1 = tslib_1.__importStar(require("../../../utils/themedStyledComponents"));
|
6
|
+
var Button_1 = tslib_1.__importDefault(require("./Button"));
|
7
|
+
exports.SeatInteraction = themedStyledComponents_1.default(Button_1.default)(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n ", ";\n"], ["\n ",
|
8
|
+
";\n"])), function (_a) {
|
9
|
+
var active = _a.active, _b = _a.theme, colors = _b.colors, spacings = _b.spacings, borders = _b.borders, fonts = _b.fonts;
|
10
|
+
return themedStyledComponents_1.css(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n font-family: ", ";\n background: ", ";\n height: 64px;\n\n ", "\n\n &:hover:not(:disabled) {\n background-color: ", ";\n }\n "], ["\n font-family: ", ";\n background: ", ";\n height: 64px;\n\n ",
|
11
|
+
"\n\n &:hover:not(:disabled) {\n background-color: ", ";\n }\n "])), fonts.primary.fontFamily, colors.CONTENT_BACKGROUND, active
|
12
|
+
? "\n border: " + borders.style.SOLID + " " + borders.width.bw200 + "\n " + colors.PRIMARY + ";\n padding: calc(\n " + spacings.s500 + " - " + borders.width.bw200 + " + " + borders.width.bw100 + "\n );\n "
|
13
|
+
: "\n border: " + borders.style.SOLID + " " + borders.width.bw100 + "\n " + colors.TERTIARY_DARK + ";\n padding: " + spacings.s500 + ";\n ", colors.SHADOW_DARK);
|
14
|
+
});
|
15
|
+
var templateObject_1, templateObject_2;
|
16
|
+
//# sourceMappingURL=SeatInteraction.js.map
|
@@ -0,0 +1,15 @@
|
|
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 Button_1 = tslib_1.__importDefault(require("./Button"));
|
6
|
+
var Secondary = themedStyledComponents_1.default(Button_1.default)(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n min-height: 36px;\n position: relative;\n ", "\n"], ["\n min-height: 36px;\n position: relative;\n ",
|
7
|
+
"\n"])), function (_a) {
|
8
|
+
var _b = _a.theme, fonts = _b.fonts, colors = _b.colors, borders = _b.borders, button = _b.button, spacings = _b.spacings, disabled = _a.disabled;
|
9
|
+
return "\n background: " + colors.CONTENT_BACKGROUND + ";\n border: " + borders.style.SOLID + " " + borders.width.bw100 + " " + colors.SECONDARY + ";\n box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.15), inset 0 -3px 0 0 " + colors.TERTIARY + ";\n color: " + colors.PRIMARY_DARK + ";\n font-size: " + fonts.sizes.fs400 + ";\n font-family: " + fonts.secondary.fontFamily + ";\n font-weight: " + fonts.secondary.weight[button.SECONDARY_FONT_WEIGHT] + ";\n padding: 0 " + spacings.s400 + ";\n\n &:active:not(:disabled) {\n background-color: " + colors.TERTIARY_DARK + ";\n box-shadow: none;\n }\n\n svg {\n flex-grow: 0;\n flex-shrink: 0;\n height: 16px;\n margin-right: " + spacings.s400 + ";\n width: 16px;\n > use {\n fill: " + colors.PRIMARY_DARK + ";\n }\n }\n\n " + (disabled
|
10
|
+
? "\n background: " + colors.CONTENT_BACKGROUND + ";\n border: " + borders.style.SOLID + " " + borders.width.bw100 + " " + colors.SECONDARY + ";\n box-shadow: none;\n color: " + colors[button.SECONDARY_DISABLED_TEXT_COLOR] + ";\n cursor: default;\n\n svg > use {\n fill: " + colors[button.SECONDARY_DISABLED_ICON_COLOR] + ";\n }\n "
|
11
|
+
: '') + "\n ";
|
12
|
+
});
|
13
|
+
exports.default = Secondary;
|
14
|
+
var templateObject_1;
|
15
|
+
//# sourceMappingURL=Secondary.js.map
|
@@ -0,0 +1,57 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var tslib_1 = require("tslib");
|
4
|
+
var themedStyledComponents_1 = tslib_1.__importStar(require("../../../utils/themedStyledComponents"));
|
5
|
+
var Button_1 = tslib_1.__importDefault(require("./Button"));
|
6
|
+
var getForegroundStyles = function (_a, _b) {
|
7
|
+
var colors = _a.colors;
|
8
|
+
var outline = _b.outline, inverse = _b.inverse, variation = _b.variation;
|
9
|
+
if (outline) {
|
10
|
+
return inverse || variation === 'alert'
|
11
|
+
? "\n border-color: " + colors.CONTENT_BACKGROUND + ";\n color: " + colors.CONTENT_BACKGROUND + ";\n "
|
12
|
+
: "\n border-color: " + colors.PRIMARY_LIGHT + ";\n color: " + colors.PRIMARY_LIGHT + ";\n ";
|
13
|
+
}
|
14
|
+
if (variation === 'alert') {
|
15
|
+
return "color: " + colors.WARNING + ";";
|
16
|
+
}
|
17
|
+
return "color: " + (inverse ? colors.PRIMARY_LIGHT : colors.CONTENT_BACKGROUND) + ";";
|
18
|
+
};
|
19
|
+
var getBackgroundStyles = function (_a, _b) {
|
20
|
+
var colors = _a.colors, header = _a.header;
|
21
|
+
var outline = _b.outline, inverse = _b.inverse, variation = _b.variation, disabled = _b.disabled;
|
22
|
+
if (variation === 'alert') {
|
23
|
+
return "\n background: " + (outline ? colors.WARNING : colors.CONTENT_BACKGROUND) + ";\n &:focus:not(:disabled),\n &:hover:not(:disabled),\n &:active:not(:disabled) {\n filter: none;\n }\n ";
|
24
|
+
}
|
25
|
+
if ((inverse && !outline) || (outline && !inverse)) {
|
26
|
+
return "\n background: " + colors.CONTENT_BACKGROUND + ";\n &:hover:not(:disabled) {\n background-color: " + colors.TERTIARY + ";\n }\n &:active:not(:disabled) {\n background-color: " + colors.TERTIARY_DARK + ";\n box-shadow: none;\n }\n " + (disabled
|
27
|
+
? "\n color: " + colors.SECONDARY_LIGHT + ";\n cursor: default;\n "
|
28
|
+
: '') + "\n ";
|
29
|
+
}
|
30
|
+
if (variation === 'menu') {
|
31
|
+
return "\n color: " + colors[header.TEXT_COLOR] + ";\n background-color: " + colors[header.BACKGROUND_COLOR] + ";\n &:hover:not(:disabled) {\n background-color: " + colors[header.BACKGROUND_COLOR] + ";\n }\n &:active:not(:disabled) {\n background-color: " + colors[header.BACKGROUND_COLOR] + ";\n box-shadow: none;\n }\n ";
|
32
|
+
}
|
33
|
+
return "\n background: " + colors.PRIMARY_LIGHT + ";\n &:hover:not(:disabled) {\n background-color: " + colors.MAIL + ";\n }\n &:active:not(:disabled) {\n background-color: " + colors.PRIMARY + ";\n box-shadow: none;\n }\n " + (disabled
|
34
|
+
? "\n background: " + colors.SECONDARY_LIGHT + ";\n cursor: default;\n "
|
35
|
+
: '') + "\n";
|
36
|
+
};
|
37
|
+
var getOutlineStyles = function (_a, _b) {
|
38
|
+
var borders = _a.borders;
|
39
|
+
var outline = _b.outline;
|
40
|
+
return outline
|
41
|
+
? "border: " + borders.style.SOLID + " " + borders.width.bw100 + ";"
|
42
|
+
: "border: none";
|
43
|
+
};
|
44
|
+
var Tertiary = themedStyledComponents_1.default(Button_1.default)(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n text-shadow: none;\n min-height: 34px;\n ", "\n ", "\n"], ["\n text-shadow: none;\n min-height: 34px;\n ",
|
45
|
+
"\n ",
|
46
|
+
"\n"])), function (_a) {
|
47
|
+
var _b = _a.theme, fonts = _b.fonts, borders = _b.borders, spacings = _b.spacings, variation = _a.variation;
|
48
|
+
return "\n font-size: " + fonts.sizes.fs300 + ";\n font-family: " + fonts.primary.fontFamily + ";\n font-weight: " + (variation === 'menu'
|
49
|
+
? fonts.primary.weight.fw400
|
50
|
+
: fonts.primary.weight.fw500) + ";\n padding: " + spacings.s300 + " " + spacings.s500 + ";\n border-radius: " + borders.radius.br200 + ";\n ";
|
51
|
+
}, function (_a) {
|
52
|
+
var theme = _a.theme, props = tslib_1.__rest(_a, ["theme"]);
|
53
|
+
return themedStyledComponents_1.css(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n ", "\n ", "\n ", "\n "], ["\n ", "\n ", "\n ", "\n "])), getForegroundStyles(theme, props), getBackgroundStyles(theme, props), getOutlineStyles(theme, props));
|
54
|
+
});
|
55
|
+
exports.default = Tertiary;
|
56
|
+
var templateObject_1, templateObject_2;
|
57
|
+
//# sourceMappingURL=Tertiary.js.map
|
@@ -0,0 +1,19 @@
|
|
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.Tertiary = exports.IconContainer = exports.Secondary = exports.Primary = exports.Label = exports.Button = void 0;
|
7
|
+
var Button_1 = require("./Button");
|
8
|
+
Object.defineProperty(exports, "Button", { enumerable: true, get: function () { return __importDefault(Button_1).default; } });
|
9
|
+
var Label_1 = require("./Label");
|
10
|
+
Object.defineProperty(exports, "Label", { enumerable: true, get: function () { return __importDefault(Label_1).default; } });
|
11
|
+
var Primary_1 = require("./Primary");
|
12
|
+
Object.defineProperty(exports, "Primary", { enumerable: true, get: function () { return __importDefault(Primary_1).default; } });
|
13
|
+
var Secondary_1 = require("./Secondary");
|
14
|
+
Object.defineProperty(exports, "Secondary", { enumerable: true, get: function () { return __importDefault(Secondary_1).default; } });
|
15
|
+
var IconContainer_1 = require("./IconContainer");
|
16
|
+
Object.defineProperty(exports, "IconContainer", { enumerable: true, get: function () { return __importDefault(IconContainer_1).default; } });
|
17
|
+
var Tertiary_1 = require("./Tertiary");
|
18
|
+
Object.defineProperty(exports, "Tertiary", { enumerable: true, get: function () { return __importDefault(Tertiary_1).default; } });
|
19
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1,23 @@
|
|
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 constants_1 = require("./constants");
|
6
|
+
var helpers_1 = require("./helpers");
|
7
|
+
var S = tslib_1.__importStar(require("./styled"));
|
8
|
+
var Months_1 = tslib_1.__importDefault(require("./components/Months"));
|
9
|
+
var Calendar = function (_a) {
|
10
|
+
var horizontal = _a.horizontal, _b = _a.locale, locale = _b === void 0 ? constants_1.DEFAULT_LOCALE : _b, maxDate = _a.maxDate, minDate = _a.minDate, onSelectDate = _a.onSelectDate, _c = _a.selectedDates, selectedDates = _c === void 0 ? [null, null] : _c, updateSelectedDateRef = _a.updateSelectedDateRef;
|
11
|
+
var monthDayFormatter = locale.monthDayFormatter, monthFormatter = locale.monthFormatter, startWeekDay = locale.startWeekDay;
|
12
|
+
return (jsx_runtime_1.jsx(S.CalendarContainer, { children: jsx_runtime_1.jsx(Months_1.default, { horizontal: horizontal, maxDate: helpers_1.normalizeDate({
|
13
|
+
dateObject: maxDate,
|
14
|
+
hours: 23,
|
15
|
+
minutes: 59,
|
16
|
+
seconds: 59,
|
17
|
+
milliseconds: 999,
|
18
|
+
}), minDate: helpers_1.normalizeDate({
|
19
|
+
dateObject: minDate,
|
20
|
+
}), monthDayFormatter: monthDayFormatter, monthFormatter: monthFormatter, onSelectDate: onSelectDate, selectedDates: selectedDates, startWeekDay: startWeekDay, updateSelectedDateRef: updateSelectedDateRef }, void 0) }, void 0));
|
21
|
+
};
|
22
|
+
exports.default = Calendar;
|
23
|
+
//# sourceMappingURL=Calendar.js.map
|
@@ -0,0 +1,17 @@
|
|
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 Touchable_1 = tslib_1.__importDefault(require("../../../Touchable"));
|
6
|
+
var Icon_1 = tslib_1.__importDefault(require("../../../Icon"));
|
7
|
+
var S = tslib_1.__importStar(require("./styled"));
|
8
|
+
var constants_1 = require("./constants");
|
9
|
+
var Button = function (_a) {
|
10
|
+
var reverse = _a.reverse, moveTo = _a.moveTo;
|
11
|
+
var onClick = function () {
|
12
|
+
moveTo(reverse ? constants_1.BACK_INDEX : constants_1.FORTH_INDEX);
|
13
|
+
};
|
14
|
+
return (jsx_runtime_1.jsx(Touchable_1.default, tslib_1.__assign({ cursor: "pointer", noFeedback: true, onClick: onClick }, { children: jsx_runtime_1.jsx(S.ButtonContainer, tslib_1.__assign({ reverse: reverse }, { children: jsx_runtime_1.jsx(Icon_1.default, { color: "PRIMARY_DARK", height: 12, name: "chevron-horizontal", rotate: reverse ? 180 : undefined, width: 10 }, void 0) }), void 0) }), void 0));
|
15
|
+
};
|
16
|
+
exports.default = Button;
|
17
|
+
//# sourceMappingURL=Button.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 Button_1 = require("./Button");
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(Button_1).default; } });
|
9
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1,11 @@
|
|
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 ButtonContainer = themedStyledComponents_1.default.div(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n position: absolute;\n top: 105px;\n ", ";\n width: 44px;\n height: 44px;\n line-height: 44px;\n border-radius: 22px;\n box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.15);\n text-align: center;\n background-color: #ffffff;\n"], ["\n position: absolute;\n top: 105px;\n ", ";\n width: 44px;\n height: 44px;\n line-height: 44px;\n border-radius: 22px;\n box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.15);\n text-align: center;\n background-color: #ffffff;\n"])), function (_a) {
|
6
|
+
var reverse = _a.reverse;
|
7
|
+
return (reverse ? "left: -22px" : "right: -22px");
|
8
|
+
});
|
9
|
+
exports.default = ButtonContainer;
|
10
|
+
var templateObject_1;
|
11
|
+
//# sourceMappingURL=ButtonContainer.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.ButtonContainer = void 0;
|
7
|
+
var ButtonContainer_1 = require("./ButtonContainer");
|
8
|
+
Object.defineProperty(exports, "ButtonContainer", { enumerable: true, get: function () { return __importDefault(ButtonContainer_1).default; } });
|
9
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1,26 @@
|
|
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 constants_1 = require("./constants");
|
7
|
+
var Text_1 = tslib_1.__importDefault(require("../../../Text"));
|
8
|
+
var DateCell = function (_a) {
|
9
|
+
var _b = _a.type, type = _b === void 0 ? constants_1.DateCellType.Default : _b, value = _a.value;
|
10
|
+
var displaySelectedContainer = type === constants_1.DateCellType.Selected ||
|
11
|
+
type === constants_1.DateCellType.SelectedStart ||
|
12
|
+
type === constants_1.DateCellType.SelectedEnd;
|
13
|
+
var displaySelectedStartEndContainer = type === constants_1.DateCellType.SelectedStart || type === constants_1.DateCellType.SelectedEnd;
|
14
|
+
var color = 'TEXT_DARK';
|
15
|
+
if (type === constants_1.DateCellType.Disabled) {
|
16
|
+
color = 'SECONDARY_LIGHT';
|
17
|
+
}
|
18
|
+
else if (displaySelectedContainer) {
|
19
|
+
color = 'CONTENT_BACKGROUND';
|
20
|
+
}
|
21
|
+
return (jsx_runtime_1.jsxs(S.DateCellContainer, tslib_1.__assign({ type: type }, { children: [jsx_runtime_1.jsx(Text_1.default, tslib_1.__assign({ align: "center", color: color, fontSize: "fs400", fontWeight: "fw400", lineHeight: 1.375 }, { children: value }), void 0),
|
22
|
+
displaySelectedContainer && jsx_runtime_1.jsx(S.SelectedContainer, {}, void 0),
|
23
|
+
displaySelectedStartEndContainer && (jsx_runtime_1.jsx(S.SelectedStartEndContainer, { type: type }, void 0))] }), void 0));
|
24
|
+
};
|
25
|
+
exports.default = DateCell;
|
26
|
+
//# sourceMappingURL=DateCell.js.map
|
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.DateCellType = void 0;
|
4
|
+
var DateCellType;
|
5
|
+
(function (DateCellType) {
|
6
|
+
DateCellType["Selected"] = "Selected";
|
7
|
+
DateCellType["SelectedStart"] = "SelectedStart";
|
8
|
+
DateCellType["SelectedEnd"] = "SelectedEnd";
|
9
|
+
DateCellType["SelectedRange"] = "SelectedRange";
|
10
|
+
DateCellType["Default"] = "Default";
|
11
|
+
DateCellType["Disabled"] = "Disabled";
|
12
|
+
})(DateCellType = exports.DateCellType || (exports.DateCellType = {}));
|
13
|
+
//# sourceMappingURL=constants.js.map
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.updateElementsSize = void 0;
|
4
|
+
var updateElementsSize_1 = require("./updateElementsSize");
|
5
|
+
Object.defineProperty(exports, "updateElementsSize", { enumerable: true, get: function () { return updateElementsSize_1.updateElementsSize; } });
|
6
|
+
//# sourceMappingURL=index.js.map
|
package/components/Calendar/components/DateCell/helper/updateElementsSize/updateElementsSize.js
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.updateElementsSize = void 0;
|
4
|
+
var constants_1 = require("../../constants");
|
5
|
+
var updateElementsSize = function (cellElement, selectedRangeElement, selectedStartEndElement) {
|
6
|
+
if (cellElement) {
|
7
|
+
var width = cellElement.getBoundingClientRect().width;
|
8
|
+
if (width >= constants_1.MAX_WIDTH) {
|
9
|
+
cellElement.style.width = constants_1.MAX_WIDTH + "px";
|
10
|
+
cellElement.style.height = constants_1.MAX_HEIGHT + "px";
|
11
|
+
cellElement.style.paddingTop = '0';
|
12
|
+
if (selectedRangeElement) {
|
13
|
+
selectedRangeElement.style.height = '100%';
|
14
|
+
}
|
15
|
+
if (selectedStartEndElement) {
|
16
|
+
selectedStartEndElement.style.height = '100%';
|
17
|
+
}
|
18
|
+
}
|
19
|
+
else {
|
20
|
+
cellElement.style.width = '100%';
|
21
|
+
cellElement.style.height = '';
|
22
|
+
cellElement.style.paddingTop = '100%';
|
23
|
+
if (selectedRangeElement) {
|
24
|
+
selectedRangeElement.style.height = width + "px";
|
25
|
+
}
|
26
|
+
if (selectedStartEndElement) {
|
27
|
+
selectedStartEndElement.style.height = width + "px";
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
31
|
+
};
|
32
|
+
exports.updateElementsSize = updateElementsSize;
|
33
|
+
//# sourceMappingURL=updateElementsSize.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 DateCell_1 = require("./DateCell");
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(DateCell_1).default; } });
|
9
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1,8 @@
|
|
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 Cell = themedStyledComponents_1.default.div(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n position: relative;\n padding-top: 100%;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n"], ["\n position: relative;\n padding-top: 100%;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n"])));
|
6
|
+
exports.default = Cell;
|
7
|
+
var templateObject_1;
|
8
|
+
//# sourceMappingURL=Cell.js.map
|
@@ -0,0 +1,8 @@
|
|
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 Container = themedStyledComponents_1.default.div(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n position: relative;\n height: 100%;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n"], ["\n position: relative;\n height: 100%;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n"])));
|
6
|
+
exports.default = Container;
|
7
|
+
var templateObject_1;
|
8
|
+
//# sourceMappingURL=Container.js.map
|
@@ -0,0 +1,15 @@
|
|
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 omitAttrs_1 = tslib_1.__importDefault(require("../../../../../utils/omitAttrs"));
|
6
|
+
var constants_1 = require("../constants");
|
7
|
+
var DateCellContainer = themedStyledComponents_1.default.div.withConfig(omitAttrs_1.default('type'))(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n align-items: center;\n display: flex;\n height: 44px;\n justify-content: center;\n position: relative;\n width: 100%;\n ", "\n z-index: 1;\n"], ["\n align-items: center;\n display: flex;\n height: 44px;\n justify-content: center;\n position: relative;\n width: 100%;\n ",
|
8
|
+
"\n z-index: 1;\n"])), function (_a) {
|
9
|
+
var colors = _a.theme.colors, type = _a.type;
|
10
|
+
return type === constants_1.DateCellType.SelectedRange &&
|
11
|
+
"\n background-color: " + colors.TERTIARY + ";\n ";
|
12
|
+
});
|
13
|
+
exports.default = DateCellContainer;
|
14
|
+
var templateObject_1;
|
15
|
+
//# sourceMappingURL=DateCellContainer.js.map
|
@@ -0,0 +1,12 @@
|
|
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 HoverContainer = themedStyledComponents_1.default.div(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n border-radius: 50%;\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n z-index: 1;\n ", "\n"], ["\n border-radius: 50%;\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n z-index: 1;\n ",
|
6
|
+
"\n"])), function (_a) {
|
7
|
+
var colors = _a.theme.colors;
|
8
|
+
return "\n background-color: " + colors.TERTIARY_DARK + ";\n ";
|
9
|
+
});
|
10
|
+
exports.default = HoverContainer;
|
11
|
+
var templateObject_1;
|
12
|
+
//# sourceMappingURL=HoverContainer.js.map
|
@@ -0,0 +1,12 @@
|
|
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 SelectedContainer = themedStyledComponents_1.default.div(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n border-radius: 50%;\n height: 44px;\n position: absolute;\n width: 44px;\n z-index: -1;\n ", "\n"], ["\n border-radius: 50%;\n height: 44px;\n position: absolute;\n width: 44px;\n z-index: -1;\n ",
|
6
|
+
"\n"])), function (_a) {
|
7
|
+
var colors = _a.theme.colors;
|
8
|
+
return "\n background-color: " + colors.ACTIVE + ";\n ";
|
9
|
+
});
|
10
|
+
exports.default = SelectedContainer;
|
11
|
+
var templateObject_1;
|
12
|
+
//# sourceMappingURL=SelectedContainer.js.map
|
@@ -0,0 +1,12 @@
|
|
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 SelectedRangeContainer = themedStyledComponents_1.default.div(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n position: absolute;\n transform: translateY(-50%);\n top: 50%;\n left: 0;\n height: 100%;\n width: 100%;\n ", "\n"], ["\n position: absolute;\n transform: translateY(-50%);\n top: 50%;\n left: 0;\n height: 100%;\n width: 100%;\n ",
|
6
|
+
"\n"])), function (_a) {
|
7
|
+
var colors = _a.theme.colors;
|
8
|
+
return "\n background-color: " + colors.TERTIARY + ";\n ";
|
9
|
+
});
|
10
|
+
exports.default = SelectedRangeContainer;
|
11
|
+
var templateObject_1;
|
12
|
+
//# sourceMappingURL=SelectedRangeContainer.js.map
|
@@ -0,0 +1,24 @@
|
|
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 omitAttrs_1 = tslib_1.__importDefault(require("../../../../../utils/omitAttrs"));
|
6
|
+
var constants_1 = require("../constants");
|
7
|
+
var SelectedStartEndContainer = themedStyledComponents_1.default.div.withConfig(omitAttrs_1.default('type'))(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n height: 44px;\n position: absolute;\n width: 50%;\n z-index: -2;\n ", "\n ", "\n ", "\n"], ["\n height: 44px;\n position: absolute;\n width: 50%;\n z-index: -2;\n ",
|
8
|
+
"\n ",
|
9
|
+
"\n ",
|
10
|
+
"\n"])), function (_a) {
|
11
|
+
var colors = _a.theme.colors;
|
12
|
+
return "\n background-color: " + colors.TERTIARY + ";\n ";
|
13
|
+
}, function (_a) {
|
14
|
+
var type = _a.type;
|
15
|
+
return type === constants_1.DateCellType.SelectedStart &&
|
16
|
+
"\n right: 0;\n ";
|
17
|
+
}, function (_a) {
|
18
|
+
var type = _a.type;
|
19
|
+
return type === constants_1.DateCellType.SelectedEnd &&
|
20
|
+
"\n left: 0;\n ";
|
21
|
+
});
|
22
|
+
exports.default = SelectedStartEndContainer;
|
23
|
+
var templateObject_1;
|
24
|
+
//# sourceMappingURL=SelectedStartEndContainer.js.map
|
@@ -0,0 +1,8 @@
|
|
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 TextContainer = themedStyledComponents_1.default.div(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n height: 100%;\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 3;\n"], ["\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n height: 100%;\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 3;\n"])));
|
6
|
+
exports.default = TextContainer;
|
7
|
+
var templateObject_1;
|
8
|
+
//# sourceMappingURL=TextContainer.js.map
|