@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,75 @@
|
|
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 media_1 = require("../../../utils/media");
|
6
|
+
var omitAttrs_1 = tslib_1.__importDefault(require("../../../utils/omitAttrs"));
|
7
|
+
var convertAspectRatio_1 = tslib_1.__importDefault(require("../helpers/convertAspectRatio"));
|
8
|
+
var getResponsiveStyles = function (_a) {
|
9
|
+
var aspectRatio = _a.aspectRatio, display = _a.display, contentVisibility = _a.contentVisibility, containIntrinsicSize = _a.containIntrinsicSize, size = _a.size, _b = _a.inlineSize, inlineSize = _b === void 0 ? size : _b, _c = _a.blockSize, blockSize = _c === void 0 ? size : _c, minSize = _a.minSize, _d = _a.minInlineSize, minInlineSize = _d === void 0 ? minSize : _d, _e = _a.minBlockSize, minBlockSize = _e === void 0 ? minSize : _e, maxSize = _a.maxSize, _f = _a.maxInlineSize, maxInlineSize = _f === void 0 ? maxSize : _f, _g = _a.maxBlockSize, maxBlockSize = _g === void 0 ? maxSize : _g, position = _a.position, inset = _a.inset, _h = _a.insetInline, insetInline = _h === void 0 ? inset : _h, _j = _a.insetBlock, insetBlock = _j === void 0 ? inset : _j, _k = _a.insetInlineStart, insetInlineStart = _k === void 0 ? insetInline : _k, _l = _a.insetInlineEnd, insetInlineEnd = _l === void 0 ? insetInline : _l, _m = _a.insetBlockStart, insetBlockStart = _m === void 0 ? insetBlock : _m, _o = _a.insetBlockEnd, insetBlockEnd = _o === void 0 ? insetBlock : _o, gridArea = _a.gridArea, margin = _a.margin, marginInline = _a.marginInline, marginBlock = _a.marginBlock, _p = _a.marginInlineStart, marginInlineStart = _p === void 0 ? marginInline : _p, _q = _a.marginInlineEnd, marginInlineEnd = _q === void 0 ? marginInline : _q, _r = _a.marginBlockStart, marginBlockStart = _r === void 0 ? marginBlock : _r, _s = _a.marginBlockEnd, marginBlockEnd = _s === void 0 ? marginBlock : _s, padding = _a.padding, paddingInline = _a.paddingInline, paddingBlock = _a.paddingBlock, _t = _a.paddingInlineStart, paddingInlineStart = _t === void 0 ? paddingInline : _t, _u = _a.paddingInlineEnd, paddingInlineEnd = _u === void 0 ? paddingInline : _u, _v = _a.paddingBlockStart, paddingBlockStart = _v === void 0 ? paddingBlock : _v, _w = _a.paddingBlockEnd, paddingBlockEnd = _w === void 0 ? paddingBlock : _w, overflow = _a.overflow, overflowInline = _a.overflowInline, overflowBlock = _a.overflowBlock, flexGrow = _a.flexGrow, flexShrink = _a.flexShrink, flexBasis = _a.flexBasis, alignSelf = _a.alignSelf, order = _a.order;
|
10
|
+
return themedStyledComponents_1.css(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n display: ", ";\n\n content-visibility: ", ";\n contain-intrinsic-size: ", ";\n\n width: ", ";\n height: ", ";\n min-width: ", ";\n min-height: ", ";\n max-width: ", ";\n max-height: ", ";\n\n position: ", ";\n left: ", ";\n right: ", ";\n top: ", ";\n bottom: ", ";\n grid-area: ", ";\n\n margin: ", ";\n margin-left: ", ";\n margin-right: ", ";\n margin-top: ", ";\n margin-bottom: ", ";\n padding: ", ";\n padding-left: ", ";\n padding-right: ", ";\n padding-top: ", ";\n padding-bottom: ", ";\n\n overflow: ", ";\n overflow-x: ", ";\n overflow-y: ", ";\n\n flex-grow: ", ";\n flex-shrink: ", ";\n flex-basis: ", ";\n align-self: ", ";\n order: ", ";\n"], ["\n display: ", ";\n\n content-visibility: ", ";\n contain-intrinsic-size: ", ";\n\n width: ", ";\n height: ", ";\n min-width: ", ";\n min-height: ", ";\n max-width: ", ";\n max-height: ", ";\n\n position: ", ";\n left: ", ";\n right: ", ";\n top: ", ";\n bottom: ", ";\n grid-area: ", ";\n\n margin: ", ";\n margin-left: ",
|
11
|
+
";\n margin-right: ",
|
12
|
+
";\n margin-top: ",
|
13
|
+
";\n margin-bottom: ",
|
14
|
+
";\n padding: ", ";\n padding-left: ",
|
15
|
+
";\n padding-right: ",
|
16
|
+
";\n padding-top: ",
|
17
|
+
";\n padding-bottom: ",
|
18
|
+
";\n\n overflow: ", ";\n overflow-x: ", ";\n overflow-y: ", ";\n\n flex-grow: ", ";\n flex-shrink: ", ";\n flex-basis: ", ";\n align-self: ", ";\n order: ", ";\n"])), display, contentVisibility, containIntrinsicSize, inlineSize, blockSize, minInlineSize, minBlockSize, maxInlineSize, maxBlockSize, position, insetInlineStart, insetInlineEnd, insetBlockStart, insetBlockEnd, gridArea, function (_a) {
|
19
|
+
var _b;
|
20
|
+
var theme = _a.theme;
|
21
|
+
return (_b = theme.spacings[margin]) !== null && _b !== void 0 ? _b : margin;
|
22
|
+
}, function (_a) {
|
23
|
+
var _b;
|
24
|
+
var theme = _a.theme;
|
25
|
+
return (_b = theme.spacings[marginInlineStart]) !== null && _b !== void 0 ? _b : marginInlineStart;
|
26
|
+
}, function (_a) {
|
27
|
+
var _b;
|
28
|
+
var theme = _a.theme;
|
29
|
+
return (_b = theme.spacings[marginInlineEnd]) !== null && _b !== void 0 ? _b : marginInlineEnd;
|
30
|
+
}, function (_a) {
|
31
|
+
var _b;
|
32
|
+
var theme = _a.theme;
|
33
|
+
return (_b = theme.spacings[marginBlockStart]) !== null && _b !== void 0 ? _b : marginBlockStart;
|
34
|
+
}, function (_a) {
|
35
|
+
var _b;
|
36
|
+
var theme = _a.theme;
|
37
|
+
return (_b = theme.spacings[marginBlockEnd]) !== null && _b !== void 0 ? _b : marginBlockEnd;
|
38
|
+
}, function (_a) {
|
39
|
+
var _b;
|
40
|
+
var theme = _a.theme;
|
41
|
+
return (_b = theme.spacings[padding]) !== null && _b !== void 0 ? _b : padding;
|
42
|
+
}, function (_a) {
|
43
|
+
var _b;
|
44
|
+
var theme = _a.theme;
|
45
|
+
return (_b = theme.spacings[paddingInlineStart]) !== null && _b !== void 0 ? _b : paddingInlineStart;
|
46
|
+
}, function (_a) {
|
47
|
+
var _b;
|
48
|
+
var theme = _a.theme;
|
49
|
+
return (_b = theme.spacings[paddingInlineEnd]) !== null && _b !== void 0 ? _b : paddingInlineEnd;
|
50
|
+
}, function (_a) {
|
51
|
+
var _b;
|
52
|
+
var theme = _a.theme;
|
53
|
+
return (_b = theme.spacings[paddingBlockStart]) !== null && _b !== void 0 ? _b : paddingBlockStart;
|
54
|
+
}, function (_a) {
|
55
|
+
var _b, _c;
|
56
|
+
var theme = _a.theme;
|
57
|
+
return (_c = (_b = convertAspectRatio_1.default(aspectRatio)) !== null && _b !== void 0 ? _b : theme.spacings[paddingBlockEnd]) !== null && _c !== void 0 ? _c : paddingBlockEnd;
|
58
|
+
}, overflow, overflowInline, overflowBlock, flexGrow, flexShrink, flexBasis, alignSelf, order);
|
59
|
+
};
|
60
|
+
var getAllResponsiveStyles = function (config, breakpoint, _a) {
|
61
|
+
var extended = _a.extended;
|
62
|
+
return themedStyledComponents_1.css(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), getResponsiveStyles(config), extended.map(function (interpolations) { return interpolations[breakpoint]; }));
|
63
|
+
};
|
64
|
+
var Layout = themedStyledComponents_1.default.div
|
65
|
+
.withConfig(omitAttrs_1.default('display', 'size', 'overflow', 'order'))
|
66
|
+
.attrs(function () { return ({
|
67
|
+
extended: [],
|
68
|
+
}); })(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["\n background: ", ";\n\n ", "\n ", "\n"], ["\n background: ",
|
69
|
+
";\n\n ", "\n ", "\n"])), function (_a) {
|
70
|
+
var background = _a.background, theme = _a.theme;
|
71
|
+
return background && theme.colors[background];
|
72
|
+
}, getResponsiveStyles, media_1.responsive(getAllResponsiveStyles));
|
73
|
+
exports.default = Layout;
|
74
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
75
|
+
//# sourceMappingURL=Layout.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.Layout = void 0;
|
7
|
+
var Layout_1 = require("./Layout");
|
8
|
+
Object.defineProperty(exports, "Layout", { enumerable: true, get: function () { return __importDefault(Layout_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 S = tslib_1.__importStar(require("./styled"));
|
6
|
+
var defaultProps_1 = require("./defaultProps");
|
7
|
+
var Layout_1 = tslib_1.__importDefault(require("../Layout"));
|
8
|
+
var PrimaryLink = function (_a) {
|
9
|
+
var alignIcon = _a.alignIcon, dataAttrs = _a.dataAttrs, display = _a.display, children = _a.children, fontSize = _a.fontSize, href = _a.href, icon = _a.icon, iconPosition = _a.iconPosition, linkColor = _a.linkColor, isUnderlined = _a.isUnderlined, fontWeight = _a.fontWeight, lineHeight = _a.lineHeight, onClick = _a.onClick, target = _a.target;
|
10
|
+
return (jsx_runtime_1.jsxs(S.Primary, tslib_1.__assign({}, dataAttrs, { alignIcon: alignIcon, display: display, fontSize: fontSize, fontWeight: fontWeight, href: href, iconPosition: iconPosition, isUnderlined: isUnderlined, lineHeight: lineHeight, linkColor: linkColor, onClick: onClick, target: target }, { children: [icon, jsx_runtime_1.jsx(Layout_1.default, tslib_1.__assign({ as: "span" }, { children: children }), void 0)] }), void 0));
|
11
|
+
};
|
12
|
+
PrimaryLink.defaultProps = defaultProps_1.primaryDefaultProps;
|
13
|
+
exports.default = PrimaryLink;
|
14
|
+
//# sourceMappingURL=Primary.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 S = tslib_1.__importStar(require("./styled"));
|
6
|
+
var defaultProps_1 = require("./defaultProps");
|
7
|
+
var Layout_1 = tslib_1.__importDefault(require("../Layout"));
|
8
|
+
var PrimaryButtonLink = function (_a) {
|
9
|
+
var dataAttrs = _a.dataAttrs, display = _a.display, children = _a.children, fontSize = _a.fontSize, icon = _a.icon, iconPosition = _a.iconPosition, linkColor = _a.linkColor, isUnderlined = _a.isUnderlined, onClick = _a.onClick, target = _a.target;
|
10
|
+
return (jsx_runtime_1.jsxs(S.Primary, tslib_1.__assign({}, dataAttrs, { as: "span", display: display, fontSize: fontSize, iconPosition: iconPosition, isUnderlined: isUnderlined, linkColor: linkColor, onClick: onClick, target: target }, { children: [icon, jsx_runtime_1.jsx(Layout_1.default, tslib_1.__assign({ as: "span" }, { children: children }), void 0)] }), void 0));
|
11
|
+
};
|
12
|
+
PrimaryButtonLink.defaultProps = defaultProps_1.primaryDefaultProps;
|
13
|
+
exports.default = PrimaryButtonLink;
|
14
|
+
//# sourceMappingURL=PrimaryButton.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 S = tslib_1.__importStar(require("./styled"));
|
6
|
+
var defaultProps_1 = require("./defaultProps");
|
7
|
+
var Layout_1 = tslib_1.__importDefault(require("../Layout"));
|
8
|
+
var SecondaryLink = function (_a) {
|
9
|
+
var dataAttrs = _a.dataAttrs, display = _a.display, children = _a.children, fontSize = _a.fontSize, fontWeight = _a.fontWeight, href = _a.href, icon = _a.icon, iconPosition = _a.iconPosition, lineHeight = _a.lineHeight, linkColor = _a.linkColor, onClick = _a.onClick, target = _a.target;
|
10
|
+
return (jsx_runtime_1.jsxs(S.Secondary, tslib_1.__assign({}, dataAttrs, { display: display, fontSize: fontSize, fontWeight: fontWeight, href: href, iconPosition: iconPosition, isUnderlined: true, lineHeight: lineHeight, linkColor: linkColor, onClick: onClick, target: target }, { children: [icon, jsx_runtime_1.jsx(Layout_1.default, tslib_1.__assign({ as: "span" }, { children: children }), void 0)] }), void 0));
|
11
|
+
};
|
12
|
+
SecondaryLink.defaultProps = defaultProps_1.secondaryDefaultProps;
|
13
|
+
exports.default = SecondaryLink;
|
14
|
+
//# sourceMappingURL=Secondary.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 S = tslib_1.__importStar(require("./styled"));
|
6
|
+
var defaultProps_1 = require("./defaultProps");
|
7
|
+
var Layout_1 = tslib_1.__importDefault(require("../Layout"));
|
8
|
+
var SecondaryLink = function (_a) {
|
9
|
+
var dataAttrs = _a.dataAttrs, display = _a.display, children = _a.children, fontSize = _a.fontSize, icon = _a.icon, iconPosition = _a.iconPosition, linkColor = _a.linkColor, onClick = _a.onClick, target = _a.target, wordBreak = _a.wordBreak;
|
10
|
+
return (jsx_runtime_1.jsxs(S.Secondary, tslib_1.__assign({}, dataAttrs, { as: "span", display: display, fontSize: fontSize, iconPosition: iconPosition, isUnderlined: true, linkColor: linkColor, onClick: onClick, target: target, wordBreak: wordBreak }, { children: [icon, jsx_runtime_1.jsx(Layout_1.default, tslib_1.__assign({ as: "span" }, { children: children }), void 0)] }), void 0));
|
11
|
+
};
|
12
|
+
SecondaryLink.defaultProps = defaultProps_1.secondaryDefaultProps;
|
13
|
+
exports.default = SecondaryLink;
|
14
|
+
//# sourceMappingURL=SecondaryButton.js.map
|
@@ -0,0 +1,15 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.secondaryDefaultProps = exports.primaryDefaultProps = void 0;
|
4
|
+
var tslib_1 = require("tslib");
|
5
|
+
exports.primaryDefaultProps = {
|
6
|
+
dataAttrs: {},
|
7
|
+
display: 'inline-flex',
|
8
|
+
linkColor: 'ACTIVE',
|
9
|
+
iconPosition: 'left',
|
10
|
+
isUnderlined: true,
|
11
|
+
onClick: function () { },
|
12
|
+
fontSize: 'fs400',
|
13
|
+
};
|
14
|
+
exports.secondaryDefaultProps = tslib_1.__assign(tslib_1.__assign({}, exports.primaryDefaultProps), { fontSize: 'fs300' });
|
15
|
+
//# sourceMappingURL=defaultProps.js.map
|
@@ -0,0 +1,15 @@
|
|
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.SecondaryButtonLink = exports.SecondaryLink = exports.PrimaryButtonLink = exports.PrimaryLink = void 0;
|
7
|
+
var Primary_1 = require("./Primary");
|
8
|
+
Object.defineProperty(exports, "PrimaryLink", { enumerable: true, get: function () { return __importDefault(Primary_1).default; } });
|
9
|
+
var PrimaryButton_1 = require("./PrimaryButton");
|
10
|
+
Object.defineProperty(exports, "PrimaryButtonLink", { enumerable: true, get: function () { return __importDefault(PrimaryButton_1).default; } });
|
11
|
+
var Secondary_1 = require("./Secondary");
|
12
|
+
Object.defineProperty(exports, "SecondaryLink", { enumerable: true, get: function () { return __importDefault(Secondary_1).default; } });
|
13
|
+
var SecondaryButton_1 = require("./SecondaryButton");
|
14
|
+
Object.defineProperty(exports, "SecondaryButtonLink", { enumerable: true, get: function () { return __importDefault(SecondaryButton_1).default; } });
|
15
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1,13 @@
|
|
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 A = themedStyledComponents_1.default.a.withConfig(omitAttrs_1.default('display', 'fontSize'))(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n ", "\n"], ["\n ",
|
7
|
+
"\n"])), function (_a) {
|
8
|
+
var isUnderlined = _a.isUnderlined;
|
9
|
+
return "\n text-decoration: " + (isUnderlined ? 'underline' : 'none') + ";\n ";
|
10
|
+
});
|
11
|
+
exports.default = A;
|
12
|
+
var templateObject_1;
|
13
|
+
//# sourceMappingURL=A.js.map
|
@@ -0,0 +1,37 @@
|
|
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 constants_1 = require("../constants");
|
6
|
+
var styled_1 = require("../../A/styled");
|
7
|
+
var Link = themedStyledComponents_1.default(styled_1.A)(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n align-items: ", ";\n color: ", ";\n display: ", ";\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n font-weight: ", ";\n cursor: pointer;\n flex-direction: ", ";\n"], ["\n align-items: ", ";\n color: ", ";\n display: ", ";\n font-family: ", ";\n font-size: ",
|
8
|
+
";\n line-height: ", ";\n font-weight: ",
|
9
|
+
";\n cursor: pointer;\n flex-direction: ",
|
10
|
+
";\n"])), function (_a) {
|
11
|
+
var alignIcon = _a.alignIcon;
|
12
|
+
return alignIcon !== null && alignIcon !== void 0 ? alignIcon : 'center';
|
13
|
+
}, function (_a) {
|
14
|
+
var linkColor = _a.linkColor, theme = _a.theme;
|
15
|
+
return linkColor && theme.colors[linkColor];
|
16
|
+
}, function (_a) {
|
17
|
+
var display = _a.display;
|
18
|
+
return display;
|
19
|
+
}, function (_a) {
|
20
|
+
var theme = _a.theme;
|
21
|
+
return theme.fonts.primary.fontFamily;
|
22
|
+
}, function (_a) {
|
23
|
+
var theme = _a.theme, fontSize = _a.fontSize;
|
24
|
+
return fontSize && theme.fonts.sizes[fontSize];
|
25
|
+
}, function (_a) {
|
26
|
+
var lineHeight = _a.lineHeight;
|
27
|
+
return lineHeight;
|
28
|
+
}, function (_a) {
|
29
|
+
var theme = _a.theme, fontWeight = _a.fontWeight;
|
30
|
+
return (fontWeight && theme.fonts.primary.weight[fontWeight]) || 300;
|
31
|
+
}, function (_a) {
|
32
|
+
var iconPosition = _a.iconPosition;
|
33
|
+
return iconPosition === constants_1.ICON_POSITION.RIGHT ? 'row-reverse' : 'row';
|
34
|
+
});
|
35
|
+
exports.default = Link;
|
36
|
+
var templateObject_1;
|
37
|
+
//# sourceMappingURL=Link.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 LinkContainer = themedStyledComponents_1.default.span(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n pointer-events: none;\n display: inline-flex;\n align-items: center;\n"], ["\n pointer-events: none;\n display: inline-flex;\n align-items: center;\n"])));
|
6
|
+
exports.default = LinkContainer;
|
7
|
+
var templateObject_1;
|
8
|
+
//# sourceMappingURL=LinkContainer.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 Link_1 = tslib_1.__importDefault(require("./Link"));
|
6
|
+
var getIconMargin_1 = tslib_1.__importDefault(require("./getIconMargin"));
|
7
|
+
var Primary = themedStyledComponents_1.default(Link_1.default)(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n ", "\n"], ["\n ",
|
8
|
+
"\n"])), function (_a) {
|
9
|
+
var iconPosition = _a.iconPosition, spacings = _a.theme.spacings;
|
10
|
+
return "\n svg {\n flex-shrink: 0;\n " + getIconMargin_1.default(spacings.s200, iconPosition) + "\n }\n ";
|
11
|
+
});
|
12
|
+
exports.default = Primary;
|
13
|
+
var templateObject_1;
|
14
|
+
//# sourceMappingURL=Primary.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 Link_1 = tslib_1.__importDefault(require("./Link"));
|
6
|
+
var getIconMargin_1 = tslib_1.__importDefault(require("./getIconMargin"));
|
7
|
+
var Secondary = themedStyledComponents_1.default(Link_1.default)(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n ", "\n"], ["\n ",
|
8
|
+
"\n"])), function (_a) {
|
9
|
+
var iconPosition = _a.iconPosition, spacings = _a.theme.spacings, wordBreak = _a.wordBreak;
|
10
|
+
return "\n svg {\n " + getIconMargin_1.default(spacings.s300, iconPosition) + "\n }\n \n " + (wordBreak ? "word-break: " + wordBreak : '') + "\n ";
|
11
|
+
});
|
12
|
+
exports.default = Secondary;
|
13
|
+
var templateObject_1;
|
14
|
+
//# sourceMappingURL=Secondary.js.map
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var constants_1 = require("../constants");
|
4
|
+
var getIconMargin = function (margin, iconPosition) {
|
5
|
+
var marginPosition = iconPosition === constants_1.ICON_POSITION.RIGHT ? 'margin-left' : 'margin-right';
|
6
|
+
return marginPosition + ": " + margin + ";";
|
7
|
+
};
|
8
|
+
exports.default = getIconMargin;
|
9
|
+
//# sourceMappingURL=getIconMargin.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.Secondary = exports.Primary = exports.Link = void 0;
|
7
|
+
var Link_1 = require("./Link");
|
8
|
+
Object.defineProperty(exports, "Link", { enumerable: true, get: function () { return __importDefault(Link_1).default; } });
|
9
|
+
var Primary_1 = require("./Primary");
|
10
|
+
Object.defineProperty(exports, "Primary", { enumerable: true, get: function () { return __importDefault(Primary_1).default; } });
|
11
|
+
var Secondary_1 = require("./Secondary");
|
12
|
+
Object.defineProperty(exports, "Secondary", { enumerable: true, get: function () { return __importDefault(Secondary_1).default; } });
|
13
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.IconContainer = 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 IconContainer = function (_a) {
|
8
|
+
var children = _a.children;
|
9
|
+
return (jsx_runtime_1.jsxs(S.IconContainer, { children: [jsx_runtime_1.jsx(S.PlaceHolder, {}, void 0), children] }, void 0));
|
10
|
+
};
|
11
|
+
exports.IconContainer = IconContainer;
|
12
|
+
//# sourceMappingURL=IconContainer.js.map
|
@@ -0,0 +1,19 @@
|
|
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 = tslib_1.__importDefault(require("react"));
|
6
|
+
var S = tslib_1.__importStar(require("./styled"));
|
7
|
+
var constants_1 = require("./constants");
|
8
|
+
var Flex_1 = tslib_1.__importDefault(require("../Flex"));
|
9
|
+
var List = function (_a) {
|
10
|
+
var icon = _a.icon, bulletsColor = _a.bulletsColor, children = _a.children, numberOfColumns = _a.numberOfColumns, _b = _a.type, type = _b === void 0 ? constants_1.ListType.None : _b, _c = _a.space, space = _c === void 0 ? 's300' : _c;
|
11
|
+
var childrenArray = react_1.default.Children.toArray(children).filter(react_1.default.isValidElement);
|
12
|
+
return (jsx_runtime_1.jsx(S.List, tslib_1.__assign({ numberOfColumns: numberOfColumns, space: space }, { children: childrenArray.map(function (item, index) {
|
13
|
+
var itemKey = index;
|
14
|
+
var showIcon = type === constants_1.ListType.Icon && item.props.icon == null;
|
15
|
+
return (jsx_runtime_1.jsx(S.ListItem, tslib_1.__assign({ bulletsColor: bulletsColor, numberOfColumns: numberOfColumns, space: space, type: type }, { children: jsx_runtime_1.jsxs(Flex_1.default, tslib_1.__assign({ justifyContent: "center" }, { children: [showIcon ? icon : undefined, item] }), void 0) }), itemKey));
|
16
|
+
}) }), void 0));
|
17
|
+
};
|
18
|
+
exports.default = List;
|
19
|
+
//# sourceMappingURL=List.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 S = tslib_1.__importStar(require("./styled"));
|
6
|
+
var ListItem = function (props) {
|
7
|
+
var fontSize = props.fontSize, fontWeight = props.fontWeight, color = props.color, icon = props.icon, children = props.children;
|
8
|
+
return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [icon, jsx_runtime_1.jsx(S.Item, tslib_1.__assign({ color: color, fontSize: fontSize, fontWeight: fontWeight }, { children: children }), void 0)] }, void 0));
|
9
|
+
};
|
10
|
+
var defaultProps = {
|
11
|
+
fontSize: 'fs300',
|
12
|
+
color: 'TEXT',
|
13
|
+
fontWeight: 'fw400',
|
14
|
+
};
|
15
|
+
ListItem.defaultProps = defaultProps;
|
16
|
+
exports.default = ListItem;
|
17
|
+
//# sourceMappingURL=ListItem.js.map
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ListType = void 0;
|
4
|
+
var ListType;
|
5
|
+
(function (ListType) {
|
6
|
+
ListType["Dot"] = "dot";
|
7
|
+
ListType["Icon"] = "icon";
|
8
|
+
ListType["None"] = "none";
|
9
|
+
})(ListType = exports.ListType || (exports.ListType = {}));
|
10
|
+
//# sourceMappingURL=constants.js.map
|
@@ -0,0 +1,15 @@
|
|
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.ListType = exports.ListItem = exports.listStyles = exports.default = void 0;
|
7
|
+
var List_1 = require("./List");
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(List_1).default; } });
|
9
|
+
var styled_1 = require("./styled");
|
10
|
+
Object.defineProperty(exports, "listStyles", { enumerable: true, get: function () { return styled_1.listStyles; } });
|
11
|
+
var ListItem_1 = require("./ListItem");
|
12
|
+
Object.defineProperty(exports, "ListItem", { enumerable: true, get: function () { return __importDefault(ListItem_1).default; } });
|
13
|
+
var constants_1 = require("./constants");
|
14
|
+
Object.defineProperty(exports, "ListType", { enumerable: true, get: function () { return constants_1.ListType; } });
|
15
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.IconContainer = void 0;
|
4
|
+
var tslib_1 = require("tslib");
|
5
|
+
var themedStyledComponents_1 = tslib_1.__importDefault(require("../../../utils/themedStyledComponents"));
|
6
|
+
exports.IconContainer = themedStyledComponents_1.default.span(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n"], ["\n display: inline-flex;\n align-items: center;\n"])));
|
7
|
+
var templateObject_1;
|
8
|
+
//# sourceMappingURL=IconContainer.js.map
|
@@ -0,0 +1,22 @@
|
|
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 Item = themedStyledComponents_1.default.span.withConfig(omitAttrs_1.default('color', 'fontSize', 'fontWeight'))(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n color: ", ";\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n white-space: normal;\n line-height: 22px;\n"], ["\n color: ", ";\n font-family: ", ";\n font-weight: ",
|
7
|
+
";\n font-size: ", ";\n white-space: normal;\n line-height: 22px;\n"])), function (_a) {
|
8
|
+
var theme = _a.theme, color = _a.color;
|
9
|
+
return theme.colors[color];
|
10
|
+
}, function (_a) {
|
11
|
+
var theme = _a.theme;
|
12
|
+
return theme.fonts.primary.fontFamily;
|
13
|
+
}, function (_a) {
|
14
|
+
var theme = _a.theme, fontWeight = _a.fontWeight;
|
15
|
+
return theme.fonts.primary.weight[fontWeight];
|
16
|
+
}, function (_a) {
|
17
|
+
var theme = _a.theme, fontSize = _a.fontSize;
|
18
|
+
return theme.fonts.sizes[fontSize];
|
19
|
+
});
|
20
|
+
exports.default = Item;
|
21
|
+
var templateObject_1;
|
22
|
+
//# sourceMappingURL=Item.js.map
|
@@ -0,0 +1,21 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.styles = void 0;
|
4
|
+
var tslib_1 = require("tslib");
|
5
|
+
var themedStyledComponents_1 = tslib_1.__importStar(require("../../../utils/themedStyledComponents"));
|
6
|
+
exports.styles = themedStyledComponents_1.css(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n list-style-type: none;\n padding: 0;\n width: 100%;\n"], ["\n list-style-type: none;\n padding: 0;\n width: 100%;\n"])));
|
7
|
+
var getListStyle = function (space, theme, numberOfColumns) {
|
8
|
+
return numberOfColumns
|
9
|
+
? themedStyledComponents_1.css(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n display: flex;\n flex-direction: row;\n justify-content: ", ";\n flex-wrap: ", ";\n "], ["\n display: flex;\n flex-direction: row;\n justify-content: ",
|
10
|
+
";\n flex-wrap: ", ";\n "])), numberOfColumns === 'auto'
|
11
|
+
? 'center'
|
12
|
+
: 'flex-start', numberOfColumns === 'auto' ? 'nowrap' : 'wrap') : themedStyledComponents_1.css(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["\n & > * + * {\n margin-top: ", ";\n }\n "], ["\n & > * + * {\n margin-top: ", ";\n }\n "])), function () { return theme.spacings[space]; });
|
13
|
+
};
|
14
|
+
var List = themedStyledComponents_1.default.ul(templateObject_5 || (templateObject_5 = tslib_1.__makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ",
|
15
|
+
"\n"])), exports.styles, function (_a) {
|
16
|
+
var numberOfColumns = _a.numberOfColumns, theme = _a.theme, space = _a.space;
|
17
|
+
return themedStyledComponents_1.css(templateObject_4 || (templateObject_4 = tslib_1.__makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), getListStyle(space, theme, numberOfColumns));
|
18
|
+
});
|
19
|
+
exports.default = List;
|
20
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
21
|
+
//# sourceMappingURL=List.js.map
|
@@ -0,0 +1,35 @@
|
|
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 omitAttrs_1 = tslib_1.__importDefault(require("../../../utils/omitAttrs"));
|
6
|
+
var constants_1 = require("../constants");
|
7
|
+
var ListItem = themedStyledComponents_1.default.li.withConfig(omitAttrs_1.default('type'))(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n margin-top: 0;\n padding-top: ", ";\n display: flex;\n margin-right: ", ";\n svg {\n margin-right: ", ";\n flex-shrink: 0;\n ", "\n }\n\n ", ";\n\n ", ";\n"], ["\n margin-top: 0;\n padding-top: ", ";\n display: flex;\n margin-right: ",
|
8
|
+
";\n svg {\n margin-right: ", ";\n flex-shrink: 0;\n ",
|
9
|
+
"\n }\n\n ",
|
10
|
+
";\n\n ",
|
11
|
+
";\n"])), function (_a) {
|
12
|
+
var theme = _a.theme, space = _a.space;
|
13
|
+
return theme.spacings[space];
|
14
|
+
}, function (_a) {
|
15
|
+
var theme = _a.theme, numberOfColumns = _a.numberOfColumns;
|
16
|
+
return numberOfColumns === 'auto' ? theme.spacings.s900 : undefined;
|
17
|
+
}, function (_a) {
|
18
|
+
var theme = _a.theme;
|
19
|
+
return theme.spacings.s400;
|
20
|
+
}, function (_a) {
|
21
|
+
var bulletsColor = _a.bulletsColor, theme = _a.theme;
|
22
|
+
return bulletsColor &&
|
23
|
+
"\n > use {\n fill: " + theme.colors[bulletsColor] + ";\n }\n ";
|
24
|
+
}, function (_a) {
|
25
|
+
var numberOfColumns = _a.numberOfColumns, theme = _a.theme;
|
26
|
+
return !!numberOfColumns &&
|
27
|
+
numberOfColumns !== 'auto' && themedStyledComponents_1.css(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n width: ", "%;\n padding-right: ", ";\n "], ["\n width: ", "%;\n padding-right: ", ";\n "])), 100 / numberOfColumns, theme.spacings.s300);
|
28
|
+
}, function (_a) {
|
29
|
+
var type = _a.type, _b = _a.bulletsColor, bulletsColor = _b === void 0 ? 'ACTIVE' : _b, _c = _a.theme, colors = _c.colors, spacings = _c.spacings;
|
30
|
+
return type === constants_1.ListType.Dot &&
|
31
|
+
"\n &::before {\n color: " + colors[bulletsColor] + ";\n content: '\\2022';\n margin-right: " + spacings.s300 + ";\n line-height: 22px;\n }\n ";
|
32
|
+
});
|
33
|
+
exports.default = ListItem;
|
34
|
+
var templateObject_1, templateObject_2;
|
35
|
+
//# sourceMappingURL=ListItem.js.map
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PlaceHolder = void 0;
|
4
|
+
var tslib_1 = require("tslib");
|
5
|
+
var themedStyledComponents_1 = tslib_1.__importDefault(require("../../../utils/themedStyledComponents"));
|
6
|
+
exports.PlaceHolder = themedStyledComponents_1.default.div(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n white-space: normal;\n height: 21px;\n"], ["\n white-space: normal;\n height: 21px;\n"])));
|
7
|
+
var templateObject_1;
|
8
|
+
//# sourceMappingURL=PlaceHolder.js.map
|
@@ -0,0 +1,15 @@
|
|
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.ListItem = exports.listStyles = exports.List = exports.Item = void 0;
|
7
|
+
var Item_1 = require("./Item");
|
8
|
+
Object.defineProperty(exports, "Item", { enumerable: true, get: function () { return __importDefault(Item_1).default; } });
|
9
|
+
var List_1 = require("./List");
|
10
|
+
Object.defineProperty(exports, "List", { enumerable: true, get: function () { return __importDefault(List_1).default; } });
|
11
|
+
var List_2 = require("./List");
|
12
|
+
Object.defineProperty(exports, "listStyles", { enumerable: true, get: function () { return List_2.styles; } });
|
13
|
+
var ListItem_1 = require("./ListItem");
|
14
|
+
Object.defineProperty(exports, "ListItem", { enumerable: true, get: function () { return __importDefault(ListItem_1).default; } });
|
15
|
+
//# sourceMappingURL=index.js.map
|