@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,16 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.M_CONFIG = exports.S_CONFIG = exports.DEFAULT_CONFIG = void 0;
|
4
|
+
exports.DEFAULT_CONFIG = {
|
5
|
+
colGap: 's300',
|
6
|
+
columns: [['6', '1fr']],
|
7
|
+
};
|
8
|
+
exports.S_CONFIG = {
|
9
|
+
colGap: 's400',
|
10
|
+
columns: [['6', '1fr']],
|
11
|
+
};
|
12
|
+
exports.M_CONFIG = {
|
13
|
+
colGap: 's800',
|
14
|
+
columns: [['12', '1fr']],
|
15
|
+
};
|
16
|
+
//# sourceMappingURL=constants.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 PageGrid_1 = require("./PageGrid");
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(PageGrid_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 jsx_runtime_1 = require("react/jsx-runtime");
|
5
|
+
var S = (0, tslib_1.__importStar)(require("./styled"));
|
6
|
+
var PayPalButton = function (_a) {
|
7
|
+
var _b = _a.id, id = _b === void 0 ? 'paypal-button-container' : _b, _c = _a.display, display = _c === void 0 ? 'block' : _c, textAlign = _a.textAlign, _d = _a.pointerEvents, pointerEvents = _d === void 0 ? 'auto' : _d, dataAttrs = _a.dataAttrs;
|
8
|
+
return ((0, jsx_runtime_1.jsx)(S.PayPalButton, (0, tslib_1.__assign)({}, dataAttrs, { display: display, id: id, pointerEvents: pointerEvents, textAlign: textAlign }), void 0));
|
9
|
+
};
|
10
|
+
exports.default = PayPalButton;
|
11
|
+
//# sourceMappingURL=PayPalButton.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 PayPalButton_1 = require("./PayPalButton");
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(PayPalButton_1).default; } });
|
9
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var tslib_1 = require("tslib");
|
4
|
+
var themedStyledComponents_1 = (0, tslib_1.__importDefault)(require("../../../utils/themedStyledComponents"));
|
5
|
+
var PayPalButton = themedStyledComponents_1.default.div(templateObject_1 || (templateObject_1 = (0, tslib_1.__makeTemplateObject)(["\n display: ", ";\n pointer-events: ", ";\n text-align: ", ";\n"], ["\n display: ", ";\n pointer-events: ", ";\n text-align: ", ";\n"])), function (_a) {
|
6
|
+
var display = _a.display;
|
7
|
+
return display;
|
8
|
+
}, function (_a) {
|
9
|
+
var pointerEvents = _a.pointerEvents;
|
10
|
+
return pointerEvents;
|
11
|
+
}, function (_a) {
|
12
|
+
var textAlign = _a.textAlign;
|
13
|
+
return textAlign;
|
14
|
+
});
|
15
|
+
exports.default = PayPalButton;
|
16
|
+
var templateObject_1;
|
17
|
+
//# sourceMappingURL=PayPalButton.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.PayPalButton = void 0;
|
7
|
+
var PayPalButton_1 = require("./PayPalButton");
|
8
|
+
Object.defineProperty(exports, "PayPalButton", { enumerable: true, get: function () { return __importDefault(PayPalButton_1).default; } });
|
9
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1,38 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.Price = void 0;
|
4
|
+
var tslib_1 = require("tslib");
|
5
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
6
|
+
var constants_1 = require("./constants");
|
7
|
+
var Flex_1 = tslib_1.__importDefault(require("../Flex"));
|
8
|
+
var S = tslib_1.__importStar(require("./styled"));
|
9
|
+
var Price = function (props) {
|
10
|
+
var _a = props, price = _a.price, isSelected = _a.isSelected, hasTextShadow = _a.hasTextShadow, isUnderlined = _a.isUnderlined, labelPosition = _a.labelPosition, currencySymbol = _a.currencySymbol, label = _a.label, size = _a.size, hasAsterisk = _a.hasAsterisk, oldPrice = _a.oldPrice, currencyPosition = _a.currencyPosition, showOldPriceCurrency = _a.showOldPriceCurrency, oldPricePosition = _a.oldPricePosition, color = _a.color, matchLabelColor = _a.matchLabelColor, dataAttrs = _a.dataAttrs, dataAttrsContainer = _a.dataAttrsContainer;
|
11
|
+
var decimalsElement = price.decimals && (jsx_runtime_1.jsx(S.Item, tslib_1.__assign({}, dataAttrs, { color: color, hasTextShadow: hasTextShadow, isSelected: isSelected, isUnderlined: isUnderlined, position: currencyPosition, size: size, type: constants_1.Type.Decimal }, { children: price.decimals }), void 0));
|
12
|
+
var asteriskElement = hasAsterisk && (jsx_runtime_1.jsx(S.Item, tslib_1.__assign({}, dataAttrs, { color: color, hasTextShadow: hasTextShadow, isSelected: isSelected, isUnderlined: isUnderlined, position: currencyPosition, size: size, type: constants_1.Type.Asterisk }, { children: "*" }), void 0));
|
13
|
+
var oldPriceElement = oldPrice && oldPrice.integer && (jsx_runtime_1.jsxs(S.Item, tslib_1.__assign({}, dataAttrs, { hasTextShadow: hasTextShadow, position: oldPricePosition, size: size, type: constants_1.Type.Old }, { children: [showOldPriceCurrency && currencySymbol, oldPrice.integer, oldPrice.decimals] }), void 0));
|
14
|
+
var labelElement = label && (jsx_runtime_1.jsx(S.Item, tslib_1.__assign({ color: matchLabelColor ? color : undefined, hasTextShadow: hasTextShadow, size: size, type: constants_1.Type.Label }, dataAttrs, { children: label }), void 0));
|
15
|
+
var asteriskWrapper = labelPosition === constants_1.Position.Top &&
|
16
|
+
hasAsterisk &&
|
17
|
+
currencyPosition !== constants_1.Position.Right ? (jsx_runtime_1.jsx(Flex_1.default, tslib_1.__assign({ as: "span", insetBlock: "0", insetInlineStart: "100%", position: "absolute" }, { children: asteriskElement }), void 0)) : (asteriskElement);
|
18
|
+
return (jsx_runtime_1.jsxs(S.Container, tslib_1.__assign({}, dataAttrs, dataAttrsContainer, { isUnderlined: isUnderlined, position: labelPosition, size: size }, { children: [jsx_runtime_1.jsxs(S.Price, tslib_1.__assign({}, dataAttrs, { position: oldPricePosition }, { children: [oldPriceElement, jsx_runtime_1.jsxs(S.CurrentPrice, tslib_1.__assign({ position: currencyPosition, size: size }, dataAttrs, { children: [jsx_runtime_1.jsx(S.Item, tslib_1.__assign({ color: color, hasTextShadow: hasTextShadow, isSelected: isSelected, isUnderlined: isUnderlined, position: currencyPosition, size: size, type: constants_1.Type.Currency }, dataAttrs, { children: currencySymbol }), void 0),
|
19
|
+
jsx_runtime_1.jsxs(Flex_1.default, tslib_1.__assign({ alignItems: "center", alignSelf: "stretch", position: "relative" }, { children: [jsx_runtime_1.jsx(S.Item, tslib_1.__assign({ color: color, hasTextShadow: hasTextShadow, isSelected: isSelected, isUnderlined: isUnderlined, size: size, type: constants_1.Type.Integer }, dataAttrs, { children: price.integer }), void 0), decimalsElement, asteriskWrapper] }), void 0)] }), void 0)] }), void 0), labelElement] }), void 0));
|
20
|
+
};
|
21
|
+
exports.Price = Price;
|
22
|
+
var defaultProps = {
|
23
|
+
currencyPosition: constants_1.Position.Left,
|
24
|
+
hasAsterisk: false,
|
25
|
+
hasTextShadow: false,
|
26
|
+
isSelected: false,
|
27
|
+
isUnderlined: false,
|
28
|
+
labelPosition: constants_1.Position.Right,
|
29
|
+
oldPricePosition: constants_1.Position.Top,
|
30
|
+
showOldPriceCurrency: false,
|
31
|
+
size: constants_1.Size.M,
|
32
|
+
matchLabelColor: false,
|
33
|
+
color: 'PRIMARY_DARK',
|
34
|
+
dataAttrs: {},
|
35
|
+
};
|
36
|
+
exports.Price.defaultProps = defaultProps;
|
37
|
+
exports.default = exports.Price;
|
38
|
+
//# sourceMappingURL=Price.js.map
|
@@ -0,0 +1,48 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PriceFormat = void 0;
|
4
|
+
var tslib_1 = require("tslib");
|
5
|
+
var react_1 = require("react");
|
6
|
+
var helper_1 = require("./helper");
|
7
|
+
var constants_1 = require("./constants");
|
8
|
+
var PriceFormat = (function (_super) {
|
9
|
+
tslib_1.__extends(PriceFormat, _super);
|
10
|
+
function PriceFormat() {
|
11
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
12
|
+
}
|
13
|
+
PriceFormat.prototype.render = function () {
|
14
|
+
var _a = this.props, children = _a.children, currencySymbol = _a.currencySymbol, decimalsPrecision = _a.decimalsPrecision, decimalsSeparator = _a.decimalsSeparator, hasDecimals = _a.hasDecimals, currencyPosition = _a.currencyPosition, thousandsSeparator = _a.thousandsSeparator, value = _a.value;
|
15
|
+
var _b = helper_1.formatValue({
|
16
|
+
decimalsPrecision: decimalsPrecision,
|
17
|
+
decimalsSeparator: decimalsSeparator,
|
18
|
+
hasDecimals: hasDecimals,
|
19
|
+
thousandsSeparator: thousandsSeparator,
|
20
|
+
value: value,
|
21
|
+
}), decimals = _b.decimals, integer = _b.integer;
|
22
|
+
var priceFormatted = "" + integer + decimals;
|
23
|
+
switch (currencyPosition) {
|
24
|
+
case constants_1.Position.Left:
|
25
|
+
priceFormatted = currencySymbol + " " + priceFormatted;
|
26
|
+
break;
|
27
|
+
case constants_1.Position.Right:
|
28
|
+
priceFormatted += " " + currencySymbol;
|
29
|
+
break;
|
30
|
+
}
|
31
|
+
if (typeof children === 'function') {
|
32
|
+
return children({
|
33
|
+
decimals: decimals,
|
34
|
+
integer: integer,
|
35
|
+
currencySymbol: currencySymbol,
|
36
|
+
priceFormatted: priceFormatted,
|
37
|
+
});
|
38
|
+
}
|
39
|
+
return priceFormatted;
|
40
|
+
};
|
41
|
+
PriceFormat.defaultProps = {
|
42
|
+
currencyPosition: constants_1.Position.Left,
|
43
|
+
};
|
44
|
+
return PriceFormat;
|
45
|
+
}(react_1.PureComponent));
|
46
|
+
exports.PriceFormat = PriceFormat;
|
47
|
+
exports.default = PriceFormat;
|
48
|
+
//# sourceMappingURL=PriceFormat.js.map
|
@@ -0,0 +1,21 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.SimplePrice = void 0;
|
4
|
+
var tslib_1 = require("tslib");
|
5
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
6
|
+
var Flex_1 = tslib_1.__importDefault(require("../Flex"));
|
7
|
+
var constants_1 = require("./constants");
|
8
|
+
var S = tslib_1.__importStar(require("./styled"));
|
9
|
+
var SimplePrice = function (props) {
|
10
|
+
var price = props.price, currencySymbol = props.currencySymbol, currencyPosition = props.currencyPosition, label = props.label, oldPrice = props.oldPrice, isBold = props.isBold, dataAttrs = props.dataAttrs;
|
11
|
+
var oldValueElement = oldPrice && oldPrice.integer && (jsx_runtime_1.jsxs(S.SimpleItem, tslib_1.__assign({ type: constants_1.Type.Old }, { children: [currencyPosition === constants_1.Position.Left && currencySymbol + " ", oldPrice.integer, oldPrice.decimals, currencyPosition === constants_1.Position.Right && " " + currencySymbol] }), void 0));
|
12
|
+
var labelElement = label && (jsx_runtime_1.jsx(S.SimpleItem, tslib_1.__assign({ isBold: isBold, type: constants_1.Type.Label }, dataAttrs, { children: label }), void 0));
|
13
|
+
return (jsx_runtime_1.jsxs(S.Container, tslib_1.__assign({ position: constants_1.Position.Right, size: constants_1.Size.M }, { children: [jsx_runtime_1.jsxs(Flex_1.default, tslib_1.__assign({ alignItems: "center" }, { children: [oldValueElement, jsx_runtime_1.jsxs(S.SimpleItem, tslib_1.__assign({ isBold: isBold, type: constants_1.Type.Simple }, dataAttrs, { children: [currencyPosition === constants_1.Position.Left && currencySymbol + " ", price.integer, price.decimals, currencyPosition === constants_1.Position.Right && " " + currencySymbol] }), void 0)] }), void 0), labelElement] }), void 0));
|
14
|
+
};
|
15
|
+
exports.SimplePrice = SimplePrice;
|
16
|
+
exports.SimplePrice.defaultProps = {
|
17
|
+
currencyPosition: constants_1.Position.Left,
|
18
|
+
isBold: false,
|
19
|
+
};
|
20
|
+
exports.default = exports.SimplePrice;
|
21
|
+
//# sourceMappingURL=SimplePrice.js.map
|
@@ -0,0 +1,31 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.HAS_DECIMALS_DEFAULT = exports.DECIMALS_PRECISION_DEFAULT = exports.DECIMALS_SEPARATOR_DEFAULT = exports.THOUSANDS_SEPARATOR_DEFAULT = exports.Type = exports.Size = exports.Position = void 0;
|
4
|
+
var Position;
|
5
|
+
(function (Position) {
|
6
|
+
Position["Top"] = "top";
|
7
|
+
Position["Right"] = "right";
|
8
|
+
Position["Left"] = "left";
|
9
|
+
Position["Bottom"] = "bottom";
|
10
|
+
})(Position = exports.Position || (exports.Position = {}));
|
11
|
+
var Size;
|
12
|
+
(function (Size) {
|
13
|
+
Size["S"] = "s";
|
14
|
+
Size["M"] = "m";
|
15
|
+
Size["L"] = "l";
|
16
|
+
})(Size = exports.Size || (exports.Size = {}));
|
17
|
+
var Type;
|
18
|
+
(function (Type) {
|
19
|
+
Type["Simple"] = "simple";
|
20
|
+
Type["Currency"] = "currency";
|
21
|
+
Type["Old"] = "old";
|
22
|
+
Type["Integer"] = "integer";
|
23
|
+
Type["Decimal"] = "decimal";
|
24
|
+
Type["Label"] = "label";
|
25
|
+
Type["Asterisk"] = "asterisk";
|
26
|
+
})(Type = exports.Type || (exports.Type = {}));
|
27
|
+
exports.THOUSANDS_SEPARATOR_DEFAULT = ',';
|
28
|
+
exports.DECIMALS_SEPARATOR_DEFAULT = '.';
|
29
|
+
exports.DECIMALS_PRECISION_DEFAULT = 2;
|
30
|
+
exports.HAS_DECIMALS_DEFAULT = true;
|
31
|
+
//# sourceMappingURL=constants.js.map
|
@@ -0,0 +1,35 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.formatValue = void 0;
|
4
|
+
var constants_1 = require("./constants");
|
5
|
+
var thousandsRegex = /\B(?=(\d{3})+(?!\d))/g;
|
6
|
+
function formatValue(opts) {
|
7
|
+
var value = opts.value, _a = opts.decimalsPrecision, decimalsPrecision = _a === void 0 ? constants_1.DECIMALS_PRECISION_DEFAULT : _a, _b = opts.thousandsSeparator, thousandsSeparator = _b === void 0 ? constants_1.THOUSANDS_SEPARATOR_DEFAULT : _b, _c = opts.decimalsSeparator, decimalsSeparator = _c === void 0 ? constants_1.DECIMALS_SEPARATOR_DEFAULT : _c, _d = opts.hasDecimals, hasDecimals = _d === void 0 ? constants_1.HAS_DECIMALS_DEFAULT : _d;
|
8
|
+
if (decimalsPrecision == null ||
|
9
|
+
thousandsSeparator == null ||
|
10
|
+
decimalsSeparator == null ||
|
11
|
+
value == null ||
|
12
|
+
value === '') {
|
13
|
+
return {};
|
14
|
+
}
|
15
|
+
var convertedValue = typeof value === 'string' ? parseFloat(value.replace(',', '.')) : value;
|
16
|
+
var convertedDecimalsPrecision = typeof decimalsPrecision === 'string'
|
17
|
+
? parseFloat(decimalsPrecision)
|
18
|
+
: decimalsPrecision;
|
19
|
+
if (!convertedDecimalsPrecision) {
|
20
|
+
return {};
|
21
|
+
}
|
22
|
+
var valueMeasure = Math.pow(10, convertedDecimalsPrecision);
|
23
|
+
var formattedValue = parseFloat("" + Math.round(convertedValue * valueMeasure) / valueMeasure).toFixed(convertedDecimalsPrecision);
|
24
|
+
var valueParts = formattedValue.toString().split('.');
|
25
|
+
var integer = valueParts[0].replace(thousandsRegex, thousandsSeparator);
|
26
|
+
var decimals = hasDecimals
|
27
|
+
? "" + decimalsSeparator + valueParts[1]
|
28
|
+
: '';
|
29
|
+
return {
|
30
|
+
decimals: decimals,
|
31
|
+
integer: integer,
|
32
|
+
};
|
33
|
+
}
|
34
|
+
exports.formatValue = formatValue;
|
35
|
+
//# sourceMappingURL=helper.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.formatValue = exports.PriceFormat = exports.SimplePrice = exports.default = void 0;
|
7
|
+
var Price_1 = require("./Price");
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(Price_1).default; } });
|
9
|
+
var SimplePrice_1 = require("./SimplePrice");
|
10
|
+
Object.defineProperty(exports, "SimplePrice", { enumerable: true, get: function () { return __importDefault(SimplePrice_1).default; } });
|
11
|
+
var PriceFormat_1 = require("./PriceFormat");
|
12
|
+
Object.defineProperty(exports, "PriceFormat", { enumerable: true, get: function () { return __importDefault(PriceFormat_1).default; } });
|
13
|
+
var helper_1 = require("./helper");
|
14
|
+
Object.defineProperty(exports, "formatValue", { enumerable: true, get: function () { return helper_1.formatValue; } });
|
15
|
+
//# 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 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 Container = themedStyledComponents_1.default.span.withConfig(omitAttrs_1.default('size'))(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n display: inline-flex;\n\n ", "\n"], ["\n display: inline-flex;\n\n ",
|
8
|
+
"\n"])), function (_a) {
|
9
|
+
var _b;
|
10
|
+
var position = _a.position, price = _a.theme.price, size = _a.size, isUnderlined = _a.isUnderlined;
|
11
|
+
var _c = price.styles[size], underlineBorder = _c.underlineBorder, margin = _c.margin;
|
12
|
+
var marginUnderline = isUnderlined && price.hasUnderline ? underlineBorder : 0;
|
13
|
+
var alignItems = position === constants_1.Position.Top && size === constants_1.Size.L
|
14
|
+
? 'align-items: flex-start;'
|
15
|
+
: 'align-items: flex-end;';
|
16
|
+
var styles = (_b = {},
|
17
|
+
_b[constants_1.Position.Left] = "\n " + alignItems + "\n flex-direction: row-reverse;\n > span:last-child {\n margin-right: " + margin + ";\n margin-bottom: " + marginUnderline + ";\n }\n ",
|
18
|
+
_b[constants_1.Position.Right] = "\n " + alignItems + "\n > span:last-child {\n margin-left: " + margin + ";\n margin-bottom: " + marginUnderline + ";\n }\n ",
|
19
|
+
_b[constants_1.Position.Top] = "\n " + alignItems + "\n flex-direction: column-reverse;\n ",
|
20
|
+
_b[constants_1.Position.Bottom] = "\n " + alignItems + "\n flex-direction: column;\n > span:last-child {\n margin-left: " + margin + ";\n align-self: center;\n }\n ",
|
21
|
+
_b);
|
22
|
+
return styles[position];
|
23
|
+
});
|
24
|
+
exports.default = Container;
|
25
|
+
var templateObject_1;
|
26
|
+
//# sourceMappingURL=Container.js.map
|
@@ -0,0 +1,18 @@
|
|
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 Item_1 = tslib_1.__importDefault(require("./Item"));
|
8
|
+
var CurrentPrice = themedStyledComponents_1.default.span.withConfig(omitAttrs_1.default('size'))(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n align-items: flex-end;\n display: flex;\n justify-content: center;\n\n ", "\n"], ["\n align-items: flex-end;\n display: flex;\n justify-content: center;\n\n ",
|
9
|
+
"\n"])), function (_a) {
|
10
|
+
var styles = _a.theme.price.styles, size = _a.size, position = _a.position;
|
11
|
+
var margin = styles[size].margin;
|
12
|
+
return "\n " + (position === constants_1.Position.Right
|
13
|
+
? "\n flex-direction: row-reverse;\n\n & > " + Item_1.default + " {\n margin-left: " + margin + ";\n }\n "
|
14
|
+
: "\n & > " + Item_1.default + " {\n margin-right: " + margin + ";\n }\n ") + "\n ";
|
15
|
+
});
|
16
|
+
exports.default = CurrentPrice;
|
17
|
+
var templateObject_1;
|
18
|
+
//# sourceMappingURL=CurrentPrice.js.map
|
@@ -0,0 +1,43 @@
|
|
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 Item = themedStyledComponents_1.default.span.withConfig(omitAttrs_1.default('size', 'color', 'type'))(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n display: inline-flex;\n ", "\n"], ["\n display: inline-flex;\n ",
|
8
|
+
"\n"])), function (_a) {
|
9
|
+
var _b;
|
10
|
+
var _c = _a.theme, price = _c.price, colors = _c.colors, fonts = _c.fonts, spacings = _c.spacings, textShadows = _c.textShadows, color = _a.color, isUnderlined = _a.isUnderlined, isSelected = _a.isSelected, position = _a.position, hasTextShadow = _a.hasTextShadow, size = _a.size, type = _a.type;
|
11
|
+
var attr = price.styles[size][type];
|
12
|
+
var _d = price.styles[size], margin = _d.margin, underlineBorder = _d.underlineBorder;
|
13
|
+
var hasUnderline = price.hasUnderline;
|
14
|
+
var defaultStyles = "\n color: " + (color && colors[color]) + ";\n font-family: " + fonts.secondary.fontFamily + ";\n " + (hasTextShadow ? "text-shadow: " + textShadows.PRIMARY_TEXT_SHADOW + ";" : '') + ";\n " + (isUnderlined && hasUnderline
|
15
|
+
? "\n border-bottom: " + underlineBorder + " solid " + colors[isSelected ? 'ACTIVE' : 'ACCENT'] + ";\n "
|
16
|
+
: '') + "\n ";
|
17
|
+
var styles = (_b = {},
|
18
|
+
_b[constants_1.Type.Old] = "\n color: " + colors.TEXT_LIGHT + ";\n font-family: " + fonts.primary.fontFamily + ";\n " + (hasTextShadow
|
19
|
+
? "text-shadow: " + textShadows.PRIMARY_TEXT_SHADOW + ";"
|
20
|
+
: '') + ";\n text-align: center;\n text-decoration: line-through;\n ",
|
21
|
+
_b[constants_1.Type.Decimal] = "\n " + defaultStyles + "\n align-self: flex-start;\n height: 100%;\n ",
|
22
|
+
_b[constants_1.Type.Asterisk] = "\n " + defaultStyles + "\n align-self: flex-start;\n " + (isUnderlined && hasUnderline && constants_1.Position.Right === position
|
23
|
+
? "\n border-bottom: " + underlineBorder + " solid " + colors[isSelected ? 'ACTIVE' : 'ACCENT'] + ";\n height: 100%;\n "
|
24
|
+
: "border-bottom: none;") + "\n ",
|
25
|
+
_b[constants_1.Type.Integer] = "\n " + defaultStyles + "\n font-weight: " + fonts.primary.weight.fw700 + ";\n ",
|
26
|
+
_b[constants_1.Type.Currency] = "\n " + defaultStyles + "\n " + (isUnderlined && hasUnderline
|
27
|
+
? "\n position: relative;\n ::after {\n bottom: -" + underlineBorder + ";\n content: '';\n border-bottom: " + underlineBorder + " solid " + colors[isSelected ? 'ACTIVE' : 'ACCENT'] + ";\n position: absolute;\n width: " + margin + ";\n " + (position && position === constants_1.Position.Right
|
28
|
+
? " left: -" + margin
|
29
|
+
: " right: -" + margin) + "\n "
|
30
|
+
: '') + "\n ",
|
31
|
+
_b[constants_1.Type.Label] = "\n color: " + colors[color || 'TEXT'] + ";\n font-family: " + fonts.primary.fontFamily + ";\n " + (hasTextShadow
|
32
|
+
? "text-shadow: " + textShadows.PRIMARY_TEXT_SHADOW + ";"
|
33
|
+
: '') + ";\n ",
|
34
|
+
_b);
|
35
|
+
return "\n font-size: " + attr.size + ";\n " + (attr.height
|
36
|
+
? "\n line-height: " + attr.height + ";\n "
|
37
|
+
: '') + "\n " + (position === constants_1.Position.Left && type === 'old'
|
38
|
+
? "\n margin-right: " + spacings.s300 + ";\n "
|
39
|
+
: '') + "\n " + styles[type] + "\n ";
|
40
|
+
});
|
41
|
+
exports.default = Item;
|
42
|
+
var templateObject_1;
|
43
|
+
//# sourceMappingURL=Item.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 constants_1 = require("../constants");
|
6
|
+
var Price = themedStyledComponents_1.default.span(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n display: inline-block;\n\n ", "\n"], ["\n display: inline-block;\n\n ",
|
7
|
+
"\n"])), function (_a) {
|
8
|
+
var position = _a.position;
|
9
|
+
return position === constants_1.Position.Left
|
10
|
+
? "\n display: flex;\n\n & > span {\n align-self: center;\n }\n "
|
11
|
+
: '';
|
12
|
+
});
|
13
|
+
exports.default = Price;
|
14
|
+
var templateObject_1;
|
15
|
+
//# sourceMappingURL=Price.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 SimpleItem = themedStyledComponents_1.default.span.withConfig(omitAttrs_1.default('type'))(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n display: block;\n ", "\n"], ["\n display: block;\n ",
|
8
|
+
"\n"])), function (_a) {
|
9
|
+
var _b;
|
10
|
+
var type = _a.type, _c = _a.theme, fonts = _c.fonts, spacings = _c.spacings, colors = _c.colors, isBold = _a.isBold;
|
11
|
+
var styles = (_b = {},
|
12
|
+
_b[constants_1.Type.Old] = "\n font-size: " + fonts.sizes.fs100 + ";\n color: " + colors.TEXT_LIGHT + ";\n margin-right: " + spacings.s200 + ";\n text-decoration: line-through;\n ",
|
13
|
+
_b[constants_1.Type.Simple] = "\n color: " + colors.TEXT + ";\n " + (isBold
|
14
|
+
? "\n font-size: " + fonts.sizes.fs400 + ";\n font-weight: " + fonts.primary.weight.fw700 + ";\n "
|
15
|
+
: "\n font-size: " + fonts.sizes.fs300 + ";\n ") + "\n ",
|
16
|
+
_b[constants_1.Type.Label] = "\n " + (isBold
|
17
|
+
? "\n font-size: " + fonts.sizes.fs400 + ";\n "
|
18
|
+
: "\n font-size: " + fonts.sizes.fs300 + ";\n ") + "\n color: " + colors.TEXT + ";\n ",
|
19
|
+
_b);
|
20
|
+
return "\n font-family: " + fonts.primary.fontFamily + ";\n " + styles[type] + "\n ";
|
21
|
+
});
|
22
|
+
exports.default = SimpleItem;
|
23
|
+
var templateObject_1;
|
24
|
+
//# sourceMappingURL=SimpleItem.js.map
|
@@ -0,0 +1,17 @@
|
|
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.SimpleItem = exports.Item = exports.Price = exports.CurrentPrice = exports.Container = void 0;
|
7
|
+
var Container_1 = require("./Container");
|
8
|
+
Object.defineProperty(exports, "Container", { enumerable: true, get: function () { return __importDefault(Container_1).default; } });
|
9
|
+
var CurrentPrice_1 = require("./CurrentPrice");
|
10
|
+
Object.defineProperty(exports, "CurrentPrice", { enumerable: true, get: function () { return __importDefault(CurrentPrice_1).default; } });
|
11
|
+
var Price_1 = require("./Price");
|
12
|
+
Object.defineProperty(exports, "Price", { enumerable: true, get: function () { return __importDefault(Price_1).default; } });
|
13
|
+
var Item_1 = require("./Item");
|
14
|
+
Object.defineProperty(exports, "Item", { enumerable: true, get: function () { return __importDefault(Item_1).default; } });
|
15
|
+
var SimpleItem_1 = require("./SimpleItem");
|
16
|
+
Object.defineProperty(exports, "SimpleItem", { enumerable: true, get: function () { return __importDefault(SimpleItem_1).default; } });
|
17
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.RadioButton = 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 RadioContext_1 = require("../RadioGroup/RadioContext");
|
8
|
+
var RadioButton = function (_a) {
|
9
|
+
var _b = _a.checked, checked = _b === void 0 ? false : _b, children = _a.children, _c = _a.dataAttrs, dataAttrs = _c === void 0 ? {} : _c, _d = _a.alignItems, alignItems = _d === void 0 ? 'center' : _d, transparentBackground = _a.transparentBackground, deEmphasize = _a.deEmphasize, _e = _a.disabled, disabled = _e === void 0 ? false : _e, label = _a.label, name = _a.name, selectedValue = _a.selectedValue, value = _a.value, _f = _a.fullWidth, fullWidth = _f === void 0 ? false : _f, _g = _a.withBorder, withBorder = _g === void 0 ? false : _g, _h = _a.onChange, onChange = _h === void 0 ? function () { } : _h, implicitProps = tslib_1.__rest(_a, ["checked", "children", "dataAttrs", "alignItems", "transparentBackground", "deEmphasize", "disabled", "label", "name", "selectedValue", "value", "fullWidth", "withBorder", "onChange"]);
|
10
|
+
var content = label || children;
|
11
|
+
var isChecked = checked || value === selectedValue;
|
12
|
+
return (jsx_runtime_1.jsxs(S.Wrapper, tslib_1.__assign({}, dataAttrs, implicitProps, { alignItems: alignItems, deEmphasize: deEmphasize, disabled: disabled, fullWidth: fullWidth, transparentBackground: transparentBackground, withBorder: withBorder }, { children: [jsx_runtime_1.jsx(S.InputIcon, { checked: isChecked, disabled: disabled }, void 0),
|
13
|
+
content && (jsx_runtime_1.jsx(S.RadioLabel, tslib_1.__assign({ disabled: disabled, htmlFor: name + "_" + value }, { children: content }), void 0)),
|
14
|
+
jsx_runtime_1.jsx(S.Input, tslib_1.__assign({}, dataAttrs, { checked: isChecked, disabled: disabled, id: name + "_" + value, name: name, onChange: onChange, value: value }), void 0)] }), void 0));
|
15
|
+
};
|
16
|
+
exports.RadioButton = RadioButton;
|
17
|
+
var RadioButtonWrapper = function (props) { return (jsx_runtime_1.jsx(RadioContext_1.RadioContext.Consumer, { children: function (_a) {
|
18
|
+
var dataAttrs = _a.dataAttrs, name = _a.name, onChange = _a.onChange, selectedValue = _a.selectedValue, fullWidth = _a.fullWidth;
|
19
|
+
return (jsx_runtime_1.jsx(exports.RadioButton, tslib_1.__assign({ dataAttrs: dataAttrs, fullWidth: fullWidth, name: name, onChange: onChange, selectedValue: selectedValue }, props), void 0));
|
20
|
+
} }, void 0)); };
|
21
|
+
exports.default = RadioButtonWrapper;
|
22
|
+
//# sourceMappingURL=RadioButton.js.map
|
@@ -0,0 +1,10 @@
|
|
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.Radio = exports.default = void 0;
|
7
|
+
var RadioButton_1 = require("./RadioButton");
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(RadioButton_1).default; } });
|
9
|
+
Object.defineProperty(exports, "Radio", { enumerable: true, get: function () { return RadioButton_1.RadioButton; } });
|
10
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.RadioButtonSkeleton = 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 Skeleton_1 = tslib_1.__importDefault(require("../../Skeleton"));
|
8
|
+
var RadioButtonSkeleton = function (_a) {
|
9
|
+
var _b = _a.selected, selected = _b === void 0 ? true : _b;
|
10
|
+
return (jsx_runtime_1.jsx(S.RadioButtonSkeleton, { children: selected && jsx_runtime_1.jsx(Skeleton_1.default, { elliptical: true, size: "10px" }, void 0) }, void 0));
|
11
|
+
};
|
12
|
+
exports.RadioButtonSkeleton = RadioButtonSkeleton;
|
13
|
+
//# sourceMappingURL=RadioButtonSkeleton.js.map
|
@@ -0,0 +1,15 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.RadioButtonSkeleton = void 0;
|
4
|
+
var tslib_1 = require("tslib");
|
5
|
+
var themedStyledComponents_1 = tslib_1.__importDefault(require("../../../../utils/themedStyledComponents"));
|
6
|
+
exports.RadioButtonSkeleton = themedStyledComponents_1.default.div(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 20px;\n height: 20px;\n border: ", ";\n padding: ", ";\n border-radius: 100%;\n overflow: hidden;\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 20px;\n height: 20px;\n border: ",
|
7
|
+
";\n padding: ", ";\n border-radius: 100%;\n overflow: hidden;\n"])), function (_a) {
|
8
|
+
var _b = _a.theme, borders = _b.borders, colors = _b.colors;
|
9
|
+
return borders.style.SOLID + " " + borders.width.bw200 + " " + colors.TERTIARY;
|
10
|
+
}, function (_a) {
|
11
|
+
var spacings = _a.theme.spacings;
|
12
|
+
return "" + spacings.s100;
|
13
|
+
});
|
14
|
+
var templateObject_1;
|
15
|
+
//# sourceMappingURL=RadioButtonSkeleton.js.map
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.RadioButtonSkeleton = void 0;
|
4
|
+
var RadioButtonSkeleton_1 = require("./RadioButtonSkeleton");
|
5
|
+
Object.defineProperty(exports, "RadioButtonSkeleton", { enumerable: true, get: function () { return RadioButtonSkeleton_1.RadioButtonSkeleton; } });
|
6
|
+
//# 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 themedStyledComponents_1 = tslib_1.__importDefault(require("../../../utils/themedStyledComponents"));
|
5
|
+
var Input = themedStyledComponents_1.default.input.attrs(function (_a) {
|
6
|
+
var checked = _a.checked;
|
7
|
+
return ({
|
8
|
+
type: 'radio',
|
9
|
+
checked: checked,
|
10
|
+
});
|
11
|
+
})(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n height: 100%;\n width: 100%;\n top: 0;\n left: 0;\n position: absolute;\n opacity: 0;\n"], ["\n height: 100%;\n width: 100%;\n top: 0;\n left: 0;\n position: absolute;\n opacity: 0;\n"])));
|
12
|
+
exports.default = Input;
|
13
|
+
var templateObject_1;
|
14
|
+
//# sourceMappingURL=Input.js.map
|
@@ -0,0 +1,36 @@
|
|
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 getCheckedLabelStyles = function (_a) {
|
7
|
+
var checked = _a.checked;
|
8
|
+
return checked && themedStyledComponents_1.css(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n background: ", ";\n border-color: ", ";\n box-shadow: inset 0 0 0 3px\n ", ";\n "], ["\n background: ", ";\n border-color: ", ";\n box-shadow: inset 0 0 0 3px\n ", ";\n "])), function (_a) {
|
9
|
+
var theme = _a.theme;
|
10
|
+
return theme.colors.ACTIVE;
|
11
|
+
}, function (_a) {
|
12
|
+
var theme = _a.theme;
|
13
|
+
return theme.colors.ACTIVE;
|
14
|
+
}, function (_a) {
|
15
|
+
var theme = _a.theme;
|
16
|
+
return theme.colors.CONTENT_BACKGROUND;
|
17
|
+
});
|
18
|
+
};
|
19
|
+
var getDisabledLabelStyles = function (_a) {
|
20
|
+
var disabled = _a.disabled;
|
21
|
+
return disabled && themedStyledComponents_1.css(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n border-color: ", ";\n cursor: default;\n "], ["\n border-color: ", ";\n cursor: default;\n "])), function (_a) {
|
22
|
+
var theme = _a.theme;
|
23
|
+
return theme.colors.SECONDARY_LIGHT;
|
24
|
+
});
|
25
|
+
};
|
26
|
+
var InputIcon = themedStyledComponents_1.default.span.withConfig(omitAttrs_1.default('disabled', 'checked'))(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["\n background: ", ";\n border: ", ";\n border-radius: 100%;\n box-sizing: border-box;\n content: '';\n cursor: pointer;\n display: inline-block;\n height: 20px;\n pointer-events: none;\n visibility: visible;\n width: 20px;\n\n ", " ", ";\n"], ["\n background: ", ";\n border: ",
|
27
|
+
";\n border-radius: 100%;\n box-sizing: border-box;\n content: '';\n cursor: pointer;\n display: inline-block;\n height: 20px;\n pointer-events: none;\n visibility: visible;\n width: 20px;\n\n ", " ", ";\n"])), function (_a) {
|
28
|
+
var theme = _a.theme;
|
29
|
+
return theme.colors.CONTENT_BACKGROUND;
|
30
|
+
}, function (_a) {
|
31
|
+
var theme = _a.theme;
|
32
|
+
return theme.borders.width.bw200 + " " + theme.borders.style.SOLID + " " + theme.colors.SECONDARY;
|
33
|
+
}, getCheckedLabelStyles, getDisabledLabelStyles);
|
34
|
+
exports.default = InputIcon;
|
35
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
36
|
+
//# sourceMappingURL=InputIcon.js.map
|
@@ -0,0 +1,16 @@
|
|
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 Label_1 = tslib_1.__importDefault(require("../../Label"));
|
6
|
+
var RadioLabel = themedStyledComponents_1.default(Label_1.default)(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n color: ", ";\n cursor: pointer;\n display: inline-flex;\n flex: 1;\n padding-left: 12px;\n pointer-events: none;\n align-items: center;\n margin-bottom: 0;\n\n ", ";\n"], ["\n color: ", ";\n cursor: pointer;\n display: inline-flex;\n flex: 1;\n padding-left: 12px;\n pointer-events: none;\n align-items: center;\n margin-bottom: 0;\n\n ",
|
7
|
+
";\n"])), function (_a) {
|
8
|
+
var theme = _a.theme;
|
9
|
+
return theme.colors.TEXT_DARK;
|
10
|
+
}, function (_a) {
|
11
|
+
var disabled = _a.disabled, theme = _a.theme;
|
12
|
+
return disabled && themedStyledComponents_1.css(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n cursor: default;\n color: ", ";\n "], ["\n cursor: default;\n color: ", ";\n "])), theme.colors.TEXT_LIGHT);
|
13
|
+
});
|
14
|
+
exports.default = RadioLabel;
|
15
|
+
var templateObject_1, templateObject_2;
|
16
|
+
//# sourceMappingURL=RadioLabel.js.map
|
@@ -0,0 +1,32 @@
|
|
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 Wrapper = themedStyledComponents_1.default.div.withConfig(omitAttrs_1.default('disabled'))(templateObject_4 || (templateObject_4 = tslib_1.__makeTemplateObject(["\n align-items: ", ";\n background: ", ";\n display: inline-flex;\n position: relative;\n\n ", "\n\n ", "\n\n ", "\n"], ["\n align-items: ", ";\n background: ",
|
7
|
+
";\n display: inline-flex;\n position: relative;\n\n ",
|
8
|
+
"\n\n ",
|
9
|
+
"\n\n ",
|
10
|
+
"\n"])), function (_a) {
|
11
|
+
var alignItems = _a.alignItems;
|
12
|
+
return alignItems;
|
13
|
+
}, function (_a) {
|
14
|
+
var theme = _a.theme, deEmphasize = _a.deEmphasize, transparentBackground = _a.transparentBackground;
|
15
|
+
var backgroundColor = transparentBackground && 'transparent';
|
16
|
+
var fallbackBackgroundColor = deEmphasize
|
17
|
+
? theme.colors.TERTIARY
|
18
|
+
: theme.colors.CONTENT_BACKGROUND;
|
19
|
+
return backgroundColor || fallbackBackgroundColor;
|
20
|
+
}, function (_a) {
|
21
|
+
var theme = _a.theme, disabled = _a.disabled, withBorder = _a.withBorder;
|
22
|
+
return withBorder && themedStyledComponents_1.css(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n border: ", " ", "\n ", ";\n border-radius: ", ";\n padding: ", ";\n "], ["\n border: ", " ", "\n ", ";\n border-radius: ", ";\n padding: ", ";\n "])), theme.borders.width.bw200, theme.borders.style.SOLID, disabled ? theme.colors.TERTIARY : theme.colors.SECONDARY, theme.borders.radius.br200, theme.spacings.s400);
|
23
|
+
}, function (_a) {
|
24
|
+
var disabled = _a.disabled;
|
25
|
+
return disabled && themedStyledComponents_1.css(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n cursor: default;\n opacity: 0.4;\n "], ["\n cursor: default;\n opacity: 0.4;\n "])));
|
26
|
+
}, function (_a) {
|
27
|
+
var fullWidth = _a.fullWidth;
|
28
|
+
return fullWidth && themedStyledComponents_1.css(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["\n display: flex;\n flex: 1;\n "], ["\n display: flex;\n flex: 1;\n "])));
|
29
|
+
});
|
30
|
+
exports.default = Wrapper;
|
31
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
32
|
+
//# sourceMappingURL=Wrapper.js.map
|