@citygross/components 0.16.0 → 0.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/@types/components/Button/Button.styles.d.ts +1 -1
- package/build/@types/components/Button/IconButton.d.ts +1 -1
- package/build/@types/components/Button/NavButton.d.ts +1 -1
- package/build/@types/components/Fieldset/Fieldset.d.ts +1 -2
- package/build/@types/components/FormElements/InputOld/InputOld.d.ts +1 -1
- package/build/@types/components/FormElements/TextArea/TextArea.d.ts +1 -1
- package/build/@types/components/RadioListItem/RadioListItem.d.ts +1 -1
- package/build/@types/helpers/price.d.ts +1 -1
- package/build/cjs/components/src/components/AddressBlock/AddressBlock.js +16 -16
- package/build/cjs/components/src/components/BackButton/BackButton.js +1 -1
- package/build/cjs/components/src/components/Box/Box.styles.js +1 -1
- package/build/cjs/components/src/components/BoxArrow/BoxArrow.js +1 -1
- package/build/cjs/components/src/components/Button/Button.styles.js +3 -3
- package/build/cjs/components/src/components/Button/NavButton.js +1 -1
- package/build/cjs/components/src/components/Button/SaveButton.js +1 -1
- package/build/cjs/components/src/components/CartCard/CartCard.js +2 -2
- package/build/cjs/components/src/components/CartItemSummary/CartItemSummary.js +2 -2
- package/build/cjs/components/src/components/CgButton/CgButton.js +3 -3
- package/build/cjs/components/src/components/CgButton/DivAsButton/DivAsButton.js +1 -1
- package/build/cjs/components/src/components/Chips/Chip.js +2 -2
- package/build/cjs/components/src/components/Chips/Chip.styles.js +1 -1
- package/build/cjs/components/src/components/Collapsable/Collapsable.js +1 -1
- package/build/cjs/components/src/components/CouponCode/CouponCode.js +6 -6
- package/build/cjs/components/src/components/DeliverySlotItem/DeliverySlotItem.js +1 -1
- package/build/cjs/components/src/components/DeliveryTimeBlock/DeliveryTimeBlock.js +1 -1
- package/build/cjs/components/src/components/FormElements/InputOld/InputOld.js +1 -1
- package/build/cjs/components/src/components/FormElements/Radio/Radio.styles.js +1 -1
- package/build/cjs/components/src/components/FormElements/TextArea/TextArea.js +1 -1
- package/build/cjs/components/src/components/Header/Header.js +3 -3
- package/build/cjs/components/src/components/HeaderLink/HeaderLink.js +1 -1
- package/build/cjs/components/src/components/IconToolTip/IconToolTip.js +2 -2
- package/build/cjs/components/src/components/IconToolTip/IconToolTip.styles.js +1 -1
- package/build/cjs/components/src/components/InfoTextBlock/InfoTextBlock.js +1 -1
- package/build/cjs/components/src/components/InfoTextBlock/InfoTextBlock.styles.js +1 -1
- package/build/cjs/components/src/components/Links/Link.styles.js +2 -2
- package/build/cjs/components/src/components/ListItem/ListItem.js +5 -3
- package/build/cjs/components/src/components/ListItem/ListItem.js.map +1 -1
- package/build/cjs/components/src/components/ListItemWithRadio/ListItemWithRadio.js +2 -2
- package/build/cjs/components/src/components/MaxHeightText/MaxHeightText.js +2 -2
- package/build/cjs/components/src/components/MaxHeightText/styles.js +3 -1
- package/build/cjs/components/src/components/MaxHeightText/styles.js.map +1 -1
- package/build/cjs/components/src/components/Menu/Menu.js +1 -1
- package/build/cjs/components/src/components/MenuListDropdown/MenuListDropdown.styles.js +1 -1
- package/build/cjs/components/src/components/MenuListItem/MenuListHeader.js +1 -1
- package/build/cjs/components/src/components/MenuListItem/MenuListItem.js +1 -1
- package/build/cjs/components/src/components/MenuListItem/MenuListItem.styles.js +3 -1
- package/build/cjs/components/src/components/MenuListItem/MenuListItem.styles.js.map +1 -1
- package/build/cjs/components/src/components/MobileTable/MobileTable.styles.js +1 -1
- package/build/cjs/components/src/components/Modal/Modal.js +3 -3
- package/build/cjs/components/src/components/NavMainLink/NavMainLink.styled.js +1 -1
- package/build/cjs/components/src/components/Pagination/Pagination.js +1 -1
- package/build/cjs/components/src/components/PriceStripe/PriceStripe.js +1 -1
- package/build/cjs/components/src/components/PriceTag/PriceTag.js +2 -2
- package/build/cjs/components/src/components/ProgressBar/ProgressBar.js +1 -1
- package/build/cjs/components/src/components/QuantitySelector/QuantitySelector.js +2 -2
- package/build/cjs/components/src/components/QuantitySelector/QuantitySelector.styles.js +4 -6
- package/build/cjs/components/src/components/QuantitySelector/QuantitySelector.styles.js.map +1 -1
- package/build/cjs/components/src/components/RadioBox/RadioBoxList.js +3 -3
- package/build/cjs/components/src/components/RadioBox/RadioBoxList.styles.js +9 -5
- package/build/cjs/components/src/components/RadioBox/RadioBoxList.styles.js.map +1 -1
- package/build/cjs/components/src/components/RadioListItem/RadioListItem.styles.js +3 -1
- package/build/cjs/components/src/components/RadioListItem/RadioListItem.styles.js.map +1 -1
- package/build/cjs/components/src/components/RippleContainer/RippleContainer.styles.js +1 -1
- package/build/cjs/components/src/components/SearchSuggestionChip/SearchSuggestionChip.styles.js +1 -1
- package/build/cjs/components/src/components/SelectButton/SelectButton.js +1 -1
- package/build/cjs/components/src/components/SideModal/SideModal.styles.js +1 -1
- package/build/cjs/components/src/components/SkipTo/SkipTo.styles.js +2 -2
- package/build/cjs/components/src/components/Slider/Slider.js +3 -3
- package/build/cjs/components/src/components/Spacer/Spacer.styles.js +5 -1
- package/build/cjs/components/src/components/Spacer/Spacer.styles.js.map +1 -1
- package/build/cjs/components/src/components/Stepper/StepperList.js +2 -2
- package/build/cjs/components/src/components/Stepper/StepperListItem.js +4 -4
- package/build/cjs/components/src/components/StepperMobile/StepperMobile.js +4 -4
- package/build/cjs/components/src/components/Table/Table.styles.js +13 -11
- package/build/cjs/components/src/components/Table/Table.styles.js.map +1 -1
- package/build/cjs/components/src/components/Timeline/Timeline.js +2 -2
- package/build/cjs/components/src/components/Timeline/Timeline.styles.js +1 -1
- package/build/cjs/components/src/components/ToolTip/ToolTip.styles.js +1 -1
- package/build/cjs/components/src/components/WarningLabel/WarningLabel.js +2 -2
- package/build/cjs/components/src/components/WarningLabel/WarningLabel.styles.js +1 -1
- package/build/cjs/components/src/shared/global.styles.js +1 -1
- package/build/cjs/design-tokens/build/index.js +8 -8
- package/build/cjs/design-tokens/build/index.js.map +1 -1
- package/build/cjs/utils/build/index.js +3 -1
- package/build/cjs/utils/build/index.js.map +1 -1
- package/build/es/components/src/components/AddressBlock/AddressBlock.js +16 -16
- package/build/es/components/src/components/BackButton/BackButton.js +1 -1
- package/build/es/components/src/components/Box/Box.styles.js +1 -1
- package/build/es/components/src/components/BoxArrow/BoxArrow.js +1 -1
- package/build/es/components/src/components/Button/Button.styles.js +3 -3
- package/build/es/components/src/components/Button/NavButton.js +1 -1
- package/build/es/components/src/components/Button/SaveButton.js +1 -1
- package/build/es/components/src/components/CartCard/CartCard.js +2 -2
- package/build/es/components/src/components/CartItemSummary/CartItemSummary.js +2 -2
- package/build/es/components/src/components/CgButton/CgButton.js +3 -3
- package/build/es/components/src/components/CgButton/DivAsButton/DivAsButton.js +1 -1
- package/build/es/components/src/components/Chips/Chip.js +2 -2
- package/build/es/components/src/components/Chips/Chip.styles.js +1 -1
- package/build/es/components/src/components/Collapsable/Collapsable.js +1 -1
- package/build/es/components/src/components/CouponCode/CouponCode.js +6 -6
- package/build/es/components/src/components/DeliverySlotItem/DeliverySlotItem.js +1 -1
- package/build/es/components/src/components/DeliveryTimeBlock/DeliveryTimeBlock.js +1 -1
- package/build/es/components/src/components/FormElements/InputOld/InputOld.js +1 -1
- package/build/es/components/src/components/FormElements/Radio/Radio.styles.js +1 -1
- package/build/es/components/src/components/FormElements/TextArea/TextArea.js +1 -1
- package/build/es/components/src/components/Header/Header.js +3 -3
- package/build/es/components/src/components/HeaderLink/HeaderLink.js +1 -1
- package/build/es/components/src/components/IconToolTip/IconToolTip.js +2 -2
- package/build/es/components/src/components/IconToolTip/IconToolTip.styles.js +1 -1
- package/build/es/components/src/components/InfoTextBlock/InfoTextBlock.js +1 -1
- package/build/es/components/src/components/InfoTextBlock/InfoTextBlock.styles.js +1 -1
- package/build/es/components/src/components/Links/Link.styles.js +2 -2
- package/build/es/components/src/components/ListItem/ListItem.js +5 -3
- package/build/es/components/src/components/ListItem/ListItem.js.map +1 -1
- package/build/es/components/src/components/ListItemWithRadio/ListItemWithRadio.js +2 -2
- package/build/es/components/src/components/MaxHeightText/MaxHeightText.js +2 -2
- package/build/es/components/src/components/MaxHeightText/styles.js +3 -1
- package/build/es/components/src/components/MaxHeightText/styles.js.map +1 -1
- package/build/es/components/src/components/Menu/Menu.js +1 -1
- package/build/es/components/src/components/MenuListDropdown/MenuListDropdown.styles.js +1 -1
- package/build/es/components/src/components/MenuListItem/MenuListHeader.js +1 -1
- package/build/es/components/src/components/MenuListItem/MenuListItem.js +1 -1
- package/build/es/components/src/components/MenuListItem/MenuListItem.styles.js +3 -1
- package/build/es/components/src/components/MenuListItem/MenuListItem.styles.js.map +1 -1
- package/build/es/components/src/components/MobileTable/MobileTable.styles.js +1 -1
- package/build/es/components/src/components/Modal/Modal.js +3 -3
- package/build/es/components/src/components/NavMainLink/NavMainLink.styled.js +1 -1
- package/build/es/components/src/components/Pagination/Pagination.js +1 -1
- package/build/es/components/src/components/PriceStripe/PriceStripe.js +1 -1
- package/build/es/components/src/components/PriceTag/PriceTag.js +2 -2
- package/build/es/components/src/components/ProgressBar/ProgressBar.js +1 -1
- package/build/es/components/src/components/QuantitySelector/QuantitySelector.js +2 -2
- package/build/es/components/src/components/QuantitySelector/QuantitySelector.styles.js +4 -6
- package/build/es/components/src/components/QuantitySelector/QuantitySelector.styles.js.map +1 -1
- package/build/es/components/src/components/RadioBox/RadioBoxList.js +3 -3
- package/build/es/components/src/components/RadioBox/RadioBoxList.styles.js +9 -5
- package/build/es/components/src/components/RadioBox/RadioBoxList.styles.js.map +1 -1
- package/build/es/components/src/components/RadioListItem/RadioListItem.styles.js +3 -1
- package/build/es/components/src/components/RadioListItem/RadioListItem.styles.js.map +1 -1
- package/build/es/components/src/components/RippleContainer/RippleContainer.styles.js +1 -1
- package/build/es/components/src/components/SearchSuggestionChip/SearchSuggestionChip.styles.js +1 -1
- package/build/es/components/src/components/SelectButton/SelectButton.js +1 -1
- package/build/es/components/src/components/SideModal/SideModal.styles.js +1 -1
- package/build/es/components/src/components/SkipTo/SkipTo.styles.js +2 -2
- package/build/es/components/src/components/Slider/Slider.js +3 -3
- package/build/es/components/src/components/Spacer/Spacer.styles.js +5 -1
- package/build/es/components/src/components/Spacer/Spacer.styles.js.map +1 -1
- package/build/es/components/src/components/Stepper/StepperList.js +2 -2
- package/build/es/components/src/components/Stepper/StepperListItem.js +4 -4
- package/build/es/components/src/components/StepperMobile/StepperMobile.js +4 -4
- package/build/es/components/src/components/Table/Table.styles.js +13 -11
- package/build/es/components/src/components/Table/Table.styles.js.map +1 -1
- package/build/es/components/src/components/Timeline/Timeline.js +2 -2
- package/build/es/components/src/components/Timeline/Timeline.styles.js +1 -1
- package/build/es/components/src/components/ToolTip/ToolTip.styles.js +1 -1
- package/build/es/components/src/components/WarningLabel/WarningLabel.js +2 -2
- package/build/es/components/src/components/WarningLabel/WarningLabel.styles.js +1 -1
- package/build/es/components/src/shared/global.styles.js +1 -1
- package/build/es/design-tokens/build/index.js +8 -8
- package/build/es/design-tokens/build/index.js.map +1 -1
- package/build/es/utils/build/index.js +3 -1
- package/build/es/utils/build/index.js.map +1 -1
- package/package.json +7 -7
|
@@ -3,7 +3,7 @@ import styled from 'styled-components';
|
|
|
3
3
|
|
|
4
4
|
var MobileTable = styled.table(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n display: flex;\n justify-content: flex-start;\n padding: ", "px;\n padding-bottom: ", "px;\n\n @media screen and (max-width: ", "px) {\n & {\n padding: ", "px 0 0 0;\n }\n }\n"], ["\n width: 100%;\n display: flex;\n justify-content: flex-start;\n padding: ", "px;\n padding-bottom: ", "px;\n\n @media screen and (max-width: ", "px) {\n & {\n padding: ", "px 0 0 0;\n }\n }\n"])), function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.mobileTablePadding; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.mobileTablePaddingBottom; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.xxs; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.mobileTablePadding; });
|
|
5
5
|
var MobileTd = styled.td(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n @media screen and (max-width: ", "px) {\n & > * {\n font-size: ", "px;\n }\n\n & {\n font-size: ", "px;\n }\n }\n"], ["\n @media screen and (max-width: ", "px) {\n & > * {\n font-size: ", "px;\n }\n\n & {\n font-size: ", "px;\n }\n }\n"])), function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.xxs; }, function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.s2; }, function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.s2; });
|
|
6
|
-
var MobileLabel = styled(MobileTd)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n padding: ", "px 0;\n font-weight: ", ";\n padding-right: ", "px;\n\n @media screen and (max-width: ", "px) {\n & {\n padding: ", "px
|
|
6
|
+
var MobileLabel = styled(MobileTd)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n padding: ", "px 0;\n font-weight: ", ";\n padding-right: ", "px;\n\n @media screen and (max-width: ", "px) {\n & {\n padding: ", "px\n 0;\n padding-right: ", "px;\n }\n }\n"], ["\n padding: ", "px 0;\n font-weight: ", ";\n padding-right: ", "px;\n\n @media screen and (max-width: ", "px) {\n & {\n padding: ", "px\n 0;\n padding-right: ", "px;\n }\n }\n"])), function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.mobileLabelVerticalPadding; }, function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.weight.semiBold; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.mobileLabelPaddingRight; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.xxs; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.mobileLabelVerticalPaddingMobile; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.mobileLabelPaddingRightMobile; });
|
|
7
7
|
var templateObject_1, templateObject_2, templateObject_3;
|
|
8
8
|
|
|
9
9
|
export { MobileLabel, MobileTable, MobileTd };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { forwardRef, Fragment } from 'react';
|
|
2
2
|
import { createPortal } from 'react-dom';
|
|
3
|
-
import { H2, BodyText } from '@citygross/typography';
|
|
4
|
-
import { ModalOverlay, ModalContainer, ModalHeaderContainer, ModalHeader, CloseButtonWrapper, ChildrenWrapper, FooterWrapper } from './Modal.styles.js';
|
|
5
|
-
import { Icons } from '@citygross/icons';
|
|
6
3
|
import { theme } from '@citygross/design-tokens';
|
|
4
|
+
import { Icons } from '@citygross/icons';
|
|
5
|
+
import { H2, BodyText } from '@citygross/typography';
|
|
7
6
|
import { Spacer } from '../Spacer/Spacer.js';
|
|
7
|
+
import { ModalOverlay, ModalContainer, ModalHeaderContainer, ModalHeader, CloseButtonWrapper, ChildrenWrapper, FooterWrapper } from './Modal.styles.js';
|
|
8
8
|
|
|
9
9
|
var Modal = forwardRef(function (_a, ref) {
|
|
10
10
|
var _b;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
|
|
4
|
-
var MainLinkContainer = styled.a(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 100%;\n display: inline-flex;\n cursor: pointer;\n align-items: center;\n white-space: nowrap;\n font-weight: ", ";\n ", ";\n &:hover {\n box-shadow: inset 0 -4px 0
|
|
4
|
+
var MainLinkContainer = styled.a(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 100%;\n display: inline-flex;\n cursor: pointer;\n align-items: center;\n white-space: nowrap;\n font-weight: ", ";\n ", ";\n &:hover {\n box-shadow: inset 0 -4px 0\n ", ";\n }\n"], ["\n height: 100%;\n display: inline-flex;\n cursor: pointer;\n align-items: center;\n white-space: nowrap;\n font-weight: ", ";\n ", ";\n &:hover {\n box-shadow: inset 0 -4px 0\n ", ";\n }\n"])), function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.weight.semiBold; }, function (props) {
|
|
5
5
|
var _a, _b;
|
|
6
6
|
return (props === null || props === void 0 ? void 0 : props.active) &&
|
|
7
7
|
"\n box-shadow: inset 0 -4px 0 ".concat((_a = props === null || props === void 0 ? void 0 : props.borderColor) !== null && _a !== void 0 ? _a : (_b = props.theme.palette) === null || _b === void 0 ? void 0 : _b.primary, ";\n ");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { theme } from '@citygross/design-tokens';
|
|
2
3
|
import { Icons } from '@citygross/icons';
|
|
3
4
|
import { BodyText } from '@citygross/typography';
|
|
4
|
-
import { theme } from '@citygross/design-tokens';
|
|
5
5
|
import { PaginationContainer, ArrowButton, PageInfo } from './Pagination.styles.js';
|
|
6
6
|
|
|
7
7
|
function Pagination(_a) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { Fragment } from 'react';
|
|
2
2
|
import { getPriceStripeAttributes } from '../../helpers/price.js';
|
|
3
|
+
import { ScreenReader } from '../ScreenReader/ScreenReader.js';
|
|
3
4
|
import { PriceStripe as PriceStripe$1 } from './PriceStripe.styles.js';
|
|
4
5
|
import { EPriceSize, EPriceVariant } from '../PriceTag/PriceTag.types.js';
|
|
5
|
-
import { ScreenReader } from '../ScreenReader/ScreenReader.js';
|
|
6
6
|
|
|
7
7
|
var PriceStripe = function (_a) {
|
|
8
8
|
var multiPrice = _a.multiPrice, _b = _a.size, size = _b === void 0 ? EPriceSize.MEDIUM : _b, unit = _a.unit, variant = _a.variant;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Icons } from '@citygross/icons';
|
|
3
|
+
import { formatPrice } from '@citygross/utils';
|
|
3
4
|
import { getPriceTagAttributes } from '../../helpers/price.js';
|
|
4
5
|
import { PriceStripe } from '../PriceStripe/PriceStripe.js';
|
|
6
|
+
import { ScreenReader } from '../ScreenReader/ScreenReader.js';
|
|
5
7
|
import { PriceTagWrapper, PriceStripeContainer, PriceTagContainer, PriceTag as PriceTag$1, PriceBase, PriceDetails, PriceIndicatorContainer, PriceDecimals, PriceUnit } from './PriceTag.styles.js';
|
|
6
8
|
import { EPriceVariant, EPriceSize } from './PriceTag.types.js';
|
|
7
|
-
import { formatPrice } from '@citygross/utils';
|
|
8
|
-
import { ScreenReader } from '../ScreenReader/ScreenReader.js';
|
|
9
9
|
|
|
10
10
|
var PriceTag = function (_a) {
|
|
11
11
|
var _b = _a.multiPrice, multiPrice = _b === void 0 ? 0 : _b, _c = _a.pant, pant = _c === void 0 ? false : _c, price = _a.price, _d = _a.variant, variant = _d === void 0 ? EPriceVariant.REGULAR : _d, _e = _a.size, size = _e === void 0 ? EPriceSize.MEDIUM : _e, unit = _a.unit;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
+
import { theme } from '@citygross/design-tokens';
|
|
2
3
|
import { Icons } from '@citygross/icons';
|
|
4
|
+
import { ScreenReader } from '../ScreenReader/ScreenReader.js';
|
|
3
5
|
import { Container, StepButton, Label, Input } from './QuantitySelector.styles.js';
|
|
4
|
-
import { theme } from '@citygross/design-tokens';
|
|
5
6
|
import { EQuantitySelectorSize } from './QuantitySelector.types.js';
|
|
6
|
-
import { ScreenReader } from '../ScreenReader/ScreenReader.js';
|
|
7
7
|
|
|
8
8
|
var QuantitySelector = function (_a) {
|
|
9
9
|
var _b, _c, _d, _e;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
|
|
2
|
-
import styled, { css } from 'styled-components';
|
|
3
2
|
import { theme } from '@citygross/design-tokens';
|
|
4
|
-
import {
|
|
3
|
+
import styled, { css } from 'styled-components';
|
|
5
4
|
import { getQuantitySelectorSizeAttributes } from '../../helpers/quantity-selector.js';
|
|
5
|
+
import { EQuantitySelectorSize } from './QuantitySelector.types.js';
|
|
6
6
|
|
|
7
7
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
8
8
|
var border = css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border: 1px solid ", ";\n"], ["\n border: 1px solid ", ";\n"])), (_a = theme.palette) === null || _a === void 0 ? void 0 : _a.placeholder);
|
|
@@ -16,13 +16,11 @@ var Container = styled.div(templateObject_6 || (templateObject_6 = __makeTemplat
|
|
|
16
16
|
: size;
|
|
17
17
|
var _c = getQuantitySelectorSizeAttributes(resolvedSize), fontSize = _c.fontSize, height = _c.height;
|
|
18
18
|
var largeSize = getQuantitySelectorSizeAttributes(EQuantitySelectorSize.large);
|
|
19
|
-
return css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: grid;\n font-size: ", "px;\n grid-template-columns: ", "px 1fr ", "px;\n height: ", "px;\n\n ", "\n "], ["\n display: grid;\n font-size: ", "px;\n grid-template-columns: ", "px 1fr ", "px;\n height: ", "px;\n\n ", "\n "])), fontSize, height, height, height, size === EQuantitySelectorSize.dynamic && css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n
|
|
19
|
+
return css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: grid;\n font-size: ", "px;\n grid-template-columns: ", "px 1fr ", "px;\n height: ", "px;\n\n ", "\n "], ["\n display: grid;\n font-size: ", "px;\n grid-template-columns: ", "px 1fr ", "px;\n height: ", "px;\n\n ", "\n "])), fontSize, height, height, height, size === EQuantitySelectorSize.dynamic && css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n @media (max-width: ", "px) {\n font-size: ", "px;\n grid-template-columns: ", "px 1fr ", "px;\n height: ", "px;\n }\n "], ["\n @media (max-width: ", "px) {\n font-size: ", "px;\n grid-template-columns: ", "px 1fr ", "px;\n height: ", "px;\n }\n "])), (_b = theme.breakpoints) === null || _b === void 0 ? void 0 : _b.sm, largeSize.fontSize, largeSize.height, largeSize.height, largeSize.height));
|
|
20
20
|
});
|
|
21
21
|
var StepButton = styled.button(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n background-color: ", ";\n ", "\n ", "\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n\n &:hover {\n background-color: ", ";\n }\n\n &:active {\n background-color: ", ";\n }\n\n &:disabled {\n background-color: ", ";\n cursor: not-allowed;\n }\n"], ["\n background-color: ", ";\n ", "\n ", "\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n\n &:hover {\n background-color: ", ";\n }\n\n &:active {\n background-color: ", ";\n }\n\n &:disabled {\n background-color: ", ";\n cursor: not-allowed;\n }\n"])), (_f = theme.palette) === null || _f === void 0 ? void 0 : _f.white, border, function (_a) {
|
|
22
22
|
var direction = _a.direction;
|
|
23
|
-
return direction === 'subtract'
|
|
24
|
-
? borderRadiusLeft
|
|
25
|
-
: borderRadiusRight;
|
|
23
|
+
return direction === 'subtract' ? borderRadiusLeft : borderRadiusRight;
|
|
26
24
|
}, (_g = theme.palette) === null || _g === void 0 ? void 0 : _g.lightest, (_h = theme.palette) === null || _h === void 0 ? void 0 : _h.lighter, (_j = theme.palette) === null || _j === void 0 ? void 0 : _j.light);
|
|
27
25
|
var Label = styled.label(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n ", "\n border-radius: 0;\n cursor: pointer;\n text-align: center;\n"], ["\n ", "\n border-radius: 0;\n cursor: pointer;\n text-align: center;\n"])), border);
|
|
28
26
|
var Input = styled.input(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n border: none;\n height: 100%;\n ", ";\n padding: 0;\n text-align: center;\n width: ", ";\n\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n\n -moz-appearance: textfield;\n appearance: textfield;\n"], ["\n border: none;\n height: 100%;\n ", ";\n padding: 0;\n text-align: center;\n width: ", ";\n\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n\n -moz-appearance: textfield;\n appearance: textfield;\n"])), function (_a) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QuantitySelector.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QuantitySelector.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { RadioBoxItem } from './RadioBoxItem.js';
|
|
3
|
-
import { Divider } from '../Divider/Divider.js';
|
|
4
|
-
import { H3 } from '@citygross/typography';
|
|
5
2
|
import { theme } from '@citygross/design-tokens';
|
|
3
|
+
import { H3 } from '@citygross/typography';
|
|
4
|
+
import { Divider } from '../Divider/Divider.js';
|
|
5
|
+
import { RadioBoxItem } from './RadioBoxItem.js';
|
|
6
6
|
import { BaseRadioBoxList, RadioBoxListParagraph, RadioBoxListChildContainer, DividerPadding } from './RadioBoxList.styles.js';
|
|
7
7
|
|
|
8
8
|
function RadioBoxList(_a) {
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
import { BodyText } from '@citygross/typography';
|
|
4
2
|
import { Children } from 'react';
|
|
3
|
+
import { BodyText } from '@citygross/typography';
|
|
4
|
+
import styled from 'styled-components';
|
|
5
5
|
|
|
6
6
|
var BaseRadioBoxList = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n border: 1px solid ", ";\n ", ";\n border-radius: 5px;\n transition: border 0.4s linear;\n"], ["\n display: flex;\n flex-direction: column;\n border: 1px solid ", ";\n ", ";\n border-radius: 5px;\n transition: border 0.4s linear;\n"])), function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.transparent; }, function (props) {
|
|
7
7
|
var _a;
|
|
8
8
|
return props.checked &&
|
|
9
9
|
"border-color:".concat((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.border, ";\n box-shadow: 0px 2px 5px rgba(7, 52, 99, 0.15);");
|
|
10
10
|
});
|
|
11
|
-
var RadioBoxListChildContainer = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n overflow: hidden;\n max-height:", ";\n ", "\n"], ["\n display: flex;\n flex-direction: column;\n overflow: hidden;\n max-height:", ";\n ", "\n"])), function (props) {
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
var RadioBoxListChildContainer = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n overflow: hidden;\n max-height: ", ";\n ", "\n"], ["\n display: flex;\n flex-direction: column;\n overflow: hidden;\n max-height: ", ";\n ", "\n"])), function (props) {
|
|
12
|
+
return props.checked ? Children.count(props.children) * 184 + 'px' : '0px';
|
|
13
|
+
}, function (props) {
|
|
14
|
+
return props.checked
|
|
15
|
+
? 'transition: all 0.4s ease-out'
|
|
16
|
+
: 'transition: all 0.2s ease-in';
|
|
17
|
+
});
|
|
14
18
|
var DividerPadding = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) { var _a; return "padding: 0px ".concat((_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm, "px;"); });
|
|
15
19
|
var RadioBoxListParagraph = styled(BodyText)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n padding-top: ", "px;\n"], ["\n padding-top: ", "px;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; });
|
|
16
20
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioBoxList.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RadioBoxList.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -27,7 +27,9 @@ var BaseRadioListItemContainer = styled.div(templateObject_1 || (templateObject_
|
|
|
27
27
|
"background: ".concat((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.lighter));
|
|
28
28
|
});
|
|
29
29
|
var BaseRadioItemLeftWrapper = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex: 5;\n align-items: flex-start;\n ", ";\n"], ["\n display: flex;\n flex: 5;\n align-items: flex-start;\n ", ";\n"])), function (props) { return props.flexGrow && "flex-grow: ".concat(props.flexGrow); });
|
|
30
|
-
var StyledH3 = styled(H3).attrs({
|
|
30
|
+
var StyledH3 = styled(H3).attrs({
|
|
31
|
+
as: 'span'
|
|
32
|
+
})(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n cursor: ", ";\n white-space: nowrap;\n display: block;\n line-height: ", "px;\n ", ";\n"], ["\n cursor: ", ";\n white-space: nowrap;\n display: block;\n line-height: ", "px;\n ", ";\n"])), function (props) { return (props.isDisabled ? 'not-allowed' : 'pointer'); }, function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.lineHeight.m1; }, function (props) {
|
|
31
33
|
var _a;
|
|
32
34
|
return props.isDisabled &&
|
|
33
35
|
"\n color: ".concat((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.disabledDarkGray, ";\n text-decoration: line-through;\n ");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioListItem.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RadioListItem.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
|
|
2
|
-
import styled, { keyframes } from 'styled-components';
|
|
3
2
|
import { motion } from 'motion/react';
|
|
3
|
+
import styled, { keyframes } from 'styled-components';
|
|
4
4
|
|
|
5
5
|
var slide = keyframes(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n 0% { left: -100% }\n 100% { left: 120% }\n"], ["\n 0% { left: -100% }\n 100% { left: 120% }\n"])));
|
|
6
6
|
var RippleContainer = styled(motion.div)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: relative;\n overflow: hidden;\n cursor: pointer;\n\n &:after {\n background: ", ";\n content: '';\n height: 200%;\n left: -100%;\n opacity: 0.2;\n position: absolute;\n top: -30%;\n transform: rotate(35deg);\n width: 50px;\n }\n\n &:hover {\n &:after {\n animation: ", "\n ", " forwards;\n }\n }\n"], ["\n position: relative;\n overflow: hidden;\n cursor: pointer;\n\n &:after {\n background: ", ";\n content: '';\n height: 200%;\n left: -100%;\n opacity: 0.2;\n position: absolute;\n top: -30%;\n transform: rotate(35deg);\n width: 50px;\n }\n\n &:hover {\n &:after {\n animation: ", "\n ", " forwards;\n }\n }\n"])), function (props) { var _a; return props.color ? props.color : (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.white; }, slide, function (props) { var _a, _b; return (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.animations) === null || _b === void 0 ? void 0 : _b.rippleTransition; });
|
package/build/es/components/src/components/SearchSuggestionChip/SearchSuggestionChip.styles.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
|
|
4
|
-
var SearchSuggestionChipWrapper = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n font-size: ", "px;\n border: 1px solid ", ";\n background-color: ", ";\n padding: ", ";\n margin: 0\n ", "
|
|
4
|
+
var SearchSuggestionChipWrapper = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n font-size: ", "px;\n border: 1px solid ", ";\n background-color: ", ";\n padding: ", ";\n margin: 0\n ", "\n 0;\n border-radius: ", "px;\n cursor: ", ";\n pointer-events: ", ";\n\n :hover {\n background-color: ", ";\n border-color: ", ";\n }\n"], ["\n display: flex;\n font-size: ", "px;\n border: 1px solid ", ";\n background-color: ", ";\n padding: ", ";\n margin: 0\n ", "\n 0;\n border-radius: ", "px;\n cursor: ", ";\n pointer-events: ", ";\n\n :hover {\n background-color: ", ";\n border-color: ", ";\n }\n"])), function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.s1; }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.light; }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.white; }, function (props) { var _a, _b; return "".concat((_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs, "px ").concat((_b = props.theme.spacings) === null || _b === void 0 ? void 0 : _b.xs, "px"); }, function (props) { var _a, _b; return "".concat((_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs, "px ").concat((_b = props.theme.spacings) === null || _b === void 0 ? void 0 : _b.xs, "px"); }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.md; }, function (props) { return (props.disabled ? 'default' : 'pointer'); }, function (props) { return (props.disabled ? 'none' : 'all'); }, function (props) {
|
|
5
5
|
var _a;
|
|
6
6
|
return props.hoverBackgroundColor
|
|
7
7
|
? props.hoverBackgroundColor
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { SelectButtonContainer, SelectButton as SelectButton$1 } from './SelectButton.styles.js';
|
|
3
2
|
import { constants } from '@citygross/design-tokens';
|
|
3
|
+
import { SelectButtonContainer, SelectButton as SelectButton$1 } from './SelectButton.styles.js';
|
|
4
4
|
|
|
5
5
|
var SelectButton = function (_a) {
|
|
6
6
|
var items = _a.items, selected = _a.selected, _b = _a.width, width = _b === void 0 ? constants.selectButtonWidth : _b;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
2
|
import { motion } from 'motion/react';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
4
|
|
|
5
5
|
var SideModalOverlay = styled(motion.div)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n z-index: ", ";\n background: ", ";\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n height: 100%;\n ", ";\n justify-content: center;\n align-items: center;\n overscroll-behavior: none;\n @media (min-width: ", "px) {\n padding: ", "px;\n max-height: unset;\n }\n"], ["\n display: flex;\n z-index: ", ";\n background: ", ";\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n height: 100%;\n ", ";\n justify-content: center;\n align-items: center;\n overscroll-behavior: none;\n @media (min-width: ", "px) {\n padding: ", "px;\n max-height: unset;\n }\n"])), function (props) { var _a; return (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.zIndex.modal; }, function (props) { return props.overlayBackground; }, function (props) {
|
|
6
6
|
return props.maxHeight &&
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
2
|
import { theme } from '@citygross/design-tokens';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
4
|
|
|
5
5
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
6
|
-
var SkipLink = styled.a(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background: ", ";\n border-radius: ", "px;\n color: ", ";\n font-size: ", "px;\n font-weight: ", ";\n line-height: 100%;\n overflow: hidden;\n position: absolute;\n left: -999px;\n top: auto;\n white-space: nowrap;\n width: 1px;\n height: 1px;\n\n &:focus {\n box-shadow
|
|
6
|
+
var SkipLink = styled.a(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background: ", ";\n border-radius: ", "px;\n color: ", ";\n font-size: ", "px;\n font-weight: ", ";\n line-height: 100%;\n overflow: hidden;\n position: absolute;\n left: -999px;\n top: auto;\n white-space: nowrap;\n width: 1px;\n height: 1px;\n\n &:focus {\n box-shadow:\n 0 0 0 ", "px ", ",\n 0 0 0 ", "px ", ";\n outline: none;\n padding: ", "px ", "px;\n top: ", "px;\n left: ", "px;\n width: auto;\n height: auto;\n text-decoration: none;\n z-index: ", ";\n }\n"], ["\n background: ", ";\n border-radius: ", "px;\n color: ", ";\n font-size: ", "px;\n font-weight: ", ";\n line-height: 100%;\n overflow: hidden;\n position: absolute;\n left: -999px;\n top: auto;\n white-space: nowrap;\n width: 1px;\n height: 1px;\n\n &:focus {\n box-shadow:\n 0 0 0 ", "px ", ",\n 0 0 0 ", "px ", ";\n outline: none;\n padding: ", "px ", "px;\n top: ", "px;\n left: ", "px;\n width: auto;\n height: auto;\n text-decoration: none;\n z-index: ", ";\n }\n"])), (_a = theme.palette) === null || _a === void 0 ? void 0 : _a.black, (_b = theme.spacings) === null || _b === void 0 ? void 0 : _b.xxxs, (_c = theme.palette) === null || _c === void 0 ? void 0 : _c.white, (_d = theme.typography) === null || _d === void 0 ? void 0 : _d.size.s3, (_e = theme.typography) === null || _e === void 0 ? void 0 : _e.weight.medium, (_f = theme.spacings) === null || _f === void 0 ? void 0 : _f.xxxs, (_g = theme.palette) === null || _g === void 0 ? void 0 : _g.white, (_h = theme.spacings) === null || _h === void 0 ? void 0 : _h.xxs, (_j = theme.palette) === null || _j === void 0 ? void 0 : _j.black, (_k = theme.spacings) === null || _k === void 0 ? void 0 : _k.xs, (_l = theme.spacings) === null || _l === void 0 ? void 0 : _l.sm, (_m = theme.spacings) === null || _m === void 0 ? void 0 : _m.xs2, (_o = theme.spacings) === null || _o === void 0 ? void 0 : _o.xs2, (_p = theme.attributes) === null || _p === void 0 ? void 0 : _p.zIndex.high);
|
|
7
7
|
var templateObject_1;
|
|
8
8
|
|
|
9
9
|
export { SkipLink };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { __assign } from '../../../../_virtual/_tslib.js';
|
|
2
2
|
import React, { useState, useRef, useMemo, useEffect } from 'react';
|
|
3
|
-
import { Container, LeftIconButtonContainer, RightIconButtonContainer } from './Slider.styles.js';
|
|
4
|
-
import { IconButton } from '../Button/IconButton.js';
|
|
5
|
-
import { Icons } from '@citygross/icons';
|
|
6
3
|
import SlickSlider from 'react-slick';
|
|
4
|
+
import { Icons } from '@citygross/icons';
|
|
7
5
|
import { useWindowSize } from '@citygross/utils';
|
|
6
|
+
import { IconButton } from '../Button/IconButton.js';
|
|
7
|
+
import { Container, LeftIconButtonContainer, RightIconButtonContainer } from './Slider.styles.js';
|
|
8
8
|
|
|
9
9
|
var defaultSlides = 5;
|
|
10
10
|
var Slider = function (_a) {
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
|
|
4
|
-
var Spacer = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n margin-bottom: ", "px;\n\n @media (min-width: ", "px) {\n margin-bottom: ", "px;\n }\n"], ["\n width: 100%;\n margin-bottom: ", "px;\n\n @media (min-width: ", "px) {\n margin-bottom: ", "px;\n }\n"])), function (props) {
|
|
4
|
+
var Spacer = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n margin-bottom: ", "px;\n\n @media (min-width: ", "px) {\n margin-bottom: ", "px;\n }\n"], ["\n width: 100%;\n margin-bottom: ", "px;\n\n @media (min-width: ", "px) {\n margin-bottom: ", "px;\n }\n"])), function (props) {
|
|
5
|
+
return props.theme.spacings ? props.theme.spacings[props.xsSpacing] : 0;
|
|
6
|
+
}, function (props) { var _a, _b; return (_b = (_a = props === null || props === void 0 ? void 0 : props.theme) === null || _a === void 0 ? void 0 : _a.breakpoints) === null || _b === void 0 ? void 0 : _b.xs; }, function (props) {
|
|
7
|
+
return props.theme.spacings ? props.theme.spacings[props.lgSpacing] : 0;
|
|
8
|
+
});
|
|
5
9
|
var templateObject_1;
|
|
6
10
|
|
|
7
11
|
export { Spacer };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spacer.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Spacer.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { StepperListItem } from './StepperListItem.js';
|
|
3
|
-
import { BaseStepperList, MaxWidthContainer, ButtonContainer } from './Stepper.styles.js';
|
|
4
2
|
import { theme } from '@citygross/design-tokens';
|
|
3
|
+
import { BaseStepperList, MaxWidthContainer, ButtonContainer } from './Stepper.styles.js';
|
|
4
|
+
import { StepperListItem } from './StepperListItem.js';
|
|
5
5
|
|
|
6
6
|
function StepperList(_a) {
|
|
7
7
|
var _b;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { useState, Fragment } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { Badge } from '../Badge/Badge.js';
|
|
4
|
-
import { ToolTip } from '../ToolTip/ToolTip.js';
|
|
2
|
+
import { theme } from '@citygross/design-tokens';
|
|
5
3
|
import { Icons, FillType } from '@citygross/icons';
|
|
6
4
|
import { BodyText } from '@citygross/typography';
|
|
7
|
-
import {
|
|
5
|
+
import { Badge } from '../Badge/Badge.js';
|
|
6
|
+
import { ToolTip } from '../ToolTip/ToolTip.js';
|
|
7
|
+
import { BaseStepperItem } from './Stepper.styles.js';
|
|
8
8
|
|
|
9
9
|
function StepperListItem(_a) {
|
|
10
10
|
var _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { PaginationButton } from '../Button/PaginationButton.js';
|
|
3
|
-
import { BodyText, TextTypes, H3 } from '@citygross/typography';
|
|
4
|
-
import { Icons } from '@citygross/icons';
|
|
5
|
-
import { MobileStepperContainer, Leftside } from './StepperMobile.styles.js';
|
|
6
2
|
import { theme } from '@citygross/design-tokens';
|
|
3
|
+
import { Icons } from '@citygross/icons';
|
|
4
|
+
import { BodyText, TextTypes, H3 } from '@citygross/typography';
|
|
5
|
+
import { PaginationButton } from '../Button/PaginationButton.js';
|
|
7
6
|
import { CgButton } from '../CgButton/CgButton.js';
|
|
7
|
+
import { MobileStepperContainer, Leftside } from './StepperMobile.styles.js';
|
|
8
8
|
|
|
9
9
|
var StepperMobile = function (_a) {
|
|
10
10
|
var _b, _c;
|
|
@@ -13,31 +13,33 @@ var Thead = styled.thead(templateObject_2 || (templateObject_2 = __makeTemplateO
|
|
|
13
13
|
var Th = styled.th(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: relative;\n padding: ", ";\n font-size: ", "px;\n font-weight: ", ";\n text-align: left;\n &:last-child {\n text-align: right;\n }\n &:first-child {\n text-align: start;\n }\n"], ["\n position: relative;\n padding: ", ";\n font-size: ", "px;\n font-weight: ", ";\n text-align: left;\n &:last-child {\n text-align: right;\n }\n &:first-child {\n text-align: start;\n }\n"])), function (props) { var _a, _b; return "".concat((_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.tableHeaderVerticalPadding, "px ").concat((_b = props.theme.constants) === null || _b === void 0 ? void 0 : _b.tableRowHorizontalPadding, "px"); }, function (props) { var _a; return props.fontSize || ((_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.s3); }, function (props) { var _a; return props.weight || ((_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.weight.regular); });
|
|
14
14
|
var Tr = styled.tr(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n border-bottom: ", ";\n border-top: ", ";\n\n cursor: ", ";\n &:hover {\n background-color: ", ";\n }\n"], ["\n border-bottom: ", ";\n border-top: ", ";\n\n cursor: ", ";\n &:hover {\n background-color: ", ";\n }\n"])), function (props) {
|
|
15
15
|
var _a;
|
|
16
|
-
return
|
|
17
|
-
|
|
16
|
+
return props.borderPosition === BorderPosition.Bottom ||
|
|
17
|
+
props.borderPosition === BorderPosition.TopAndBottom
|
|
18
18
|
? "1px solid ".concat(props.borderColor || ((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.light))
|
|
19
19
|
: 0;
|
|
20
20
|
}, function (props) {
|
|
21
21
|
var _a;
|
|
22
|
-
return
|
|
23
|
-
|
|
22
|
+
return props.borderPosition === BorderPosition.Top ||
|
|
23
|
+
props.borderPosition === BorderPosition.TopAndBottom
|
|
24
24
|
? "1px solid ".concat(props.borderColor || ((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.light))
|
|
25
25
|
: 0;
|
|
26
|
-
}, function (props) { return props.disableHover ? 0 : 'pointer'; }, function (props) { var _a; return props.disableHover ? 0 : (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.lightest; });
|
|
26
|
+
}, function (props) { return (props.disableHover ? 0 : 'pointer'); }, function (props) { var _a; return props.disableHover ? 0 : (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.lightest; });
|
|
27
27
|
var Td = styled.td(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n padding: ", ";\n font-size: ", "px;\n text-align: left;\n\n border-bottom: ", ";\n border-top: ", ";\n\n &:last-child {\n text-align: right;\n }\n &:first-child {\n text-align: start;\n }\n text-decoration: ", ";\n color: ", ";\n"], ["\n padding: ", ";\n font-size: ", "px;\n text-align: left;\n\n border-bottom: ", ";\n border-top: ", ";\n\n &:last-child {\n text-align: right;\n }\n &:first-child {\n text-align: start;\n }\n text-decoration: ", ";\n color: ", ";\n"])), function (props) { var _a, _b; return "".concat((_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.tableRowVerticalPadding, "px ").concat((_b = props.theme.constants) === null || _b === void 0 ? void 0 : _b.tableRowHorizontalPadding, "px"); }, function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.s3; }, function (props) {
|
|
28
28
|
var _a;
|
|
29
|
-
return
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
return !props.borderPosition ||
|
|
30
|
+
props.borderPosition === BorderPosition.Bottom ||
|
|
31
|
+
props.borderPosition === BorderPosition.TopAndBottom
|
|
32
32
|
? "1px solid ".concat(props.borderColor || ((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.light))
|
|
33
33
|
: 0;
|
|
34
34
|
}, function (props) {
|
|
35
35
|
var _a;
|
|
36
|
-
return
|
|
37
|
-
|
|
36
|
+
return props.borderPosition === BorderPosition.Top ||
|
|
37
|
+
props.borderPosition === BorderPosition.TopAndBottom
|
|
38
38
|
? "1px solid ".concat(props.borderColor || ((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.light))
|
|
39
39
|
: 0;
|
|
40
|
-
}, function (props) {
|
|
40
|
+
}, function (props) {
|
|
41
|
+
return props.strikeThrough ? 'line-through' : 'none';
|
|
42
|
+
}, function (props) {
|
|
41
43
|
var _a, _b;
|
|
42
44
|
return props.strikeThrough
|
|
43
45
|
? (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.dark
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Table.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useDetectDevice } from '@citygross/utils';
|
|
3
|
-
import { H3, BodyText } from '@citygross/typography';
|
|
4
2
|
import { theme } from '@citygross/design-tokens';
|
|
3
|
+
import { H3, BodyText } from '@citygross/typography';
|
|
4
|
+
import { useDetectDevice } from '@citygross/utils';
|
|
5
5
|
import { Dot } from '../DotIndicator/DotIndicator.js';
|
|
6
6
|
import { BaseTimeline, TimeLineH3, BaseTimelineList, BaseTimelineItem } from './Timeline.styles.js';
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
2
|
import { H3 } from '@citygross/typography';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
4
|
|
|
5
5
|
var BaseTimelineItem = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n gap: ", "px;\n align-items: center;\n padding: ", "px 0;\n position: relative;\n > * {\n &:nth-child(2) {\n flex-grow: 1;\n }\n }\n"], ["\n display: flex;\n gap: ", "px;\n align-items: center;\n padding: ", "px 0;\n position: relative;\n > * {\n &:nth-child(2) {\n flex-grow: 1;\n }\n }\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.md; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; });
|
|
6
6
|
var BaseTimeline = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n"], ["\n display: flex;\n flex-direction: column;\n"])));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
|
|
4
|
-
var BaseToolTip = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background: white;\n box-shadow
|
|
4
|
+
var BaseToolTip = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background: white;\n box-shadow:\n 0px 16px 24px rgba(0, 0, 0, 0.06),\n 0px 2px 6px rgba(0, 0, 0, 0.04),\n 0px 0px 1px rgba(0, 0, 0, 0.04);\n border-radius: 10px;\n position: relative;\n padding: ", "px;\n text-align: initial;\n\n &::after {\n content: '';\n position: absolute;\n bottom: -8px;\n left: 50%;\n width: 17px;\n height: 17px;\n border-radius: 0 0 2px 0;\n transform: rotate(45deg) translate(-8px, 50%);\n background: linear-gradient(-45deg, white 50%, transparent 50%);\n }\n"], ["\n background: white;\n box-shadow:\n 0px 16px 24px rgba(0, 0, 0, 0.06),\n 0px 2px 6px rgba(0, 0, 0, 0.04),\n 0px 0px 1px rgba(0, 0, 0, 0.04);\n border-radius: 10px;\n position: relative;\n padding: ", "px;\n text-align: initial;\n\n &::after {\n content: '';\n position: absolute;\n bottom: -8px;\n left: 50%;\n width: 17px;\n height: 17px;\n border-radius: 0 0 2px 0;\n transform: rotate(45deg) translate(-8px, 50%);\n background: linear-gradient(-45deg, white 50%, transparent 50%);\n }\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; });
|
|
5
5
|
var ToolTipWrapper = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: absolute;\n bottom: 130%;\n width: ", ";\n ", "\n"], ["\n position: absolute;\n bottom: 130%;\n width: ", ";\n ", "\n"])), function (props) { return props.width; }, function (props) {
|
|
6
6
|
return props.align === 'left'
|
|
7
7
|
? 'left: 0'
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { WarningIndicator, IconWrapper, BodyTextStyled } from './WarningLabel.styles.js';
|
|
3
2
|
import { TextTypes } from '@citygross/typography';
|
|
3
|
+
import { WarningIndicator, IconWrapper, BodyTextStyled } from './WarningLabel.styles.js';
|
|
4
4
|
|
|
5
5
|
function WarningLabel(_a) {
|
|
6
6
|
var text = _a.text, background = _a.background, icon = _a.icon;
|
|
7
7
|
return (React.createElement(WarningIndicator, { background: background },
|
|
8
|
-
icon &&
|
|
8
|
+
icon && React.createElement(IconWrapper, null, icon),
|
|
9
9
|
React.createElement(BodyTextStyled, { size: TextTypes.TextSize.TINY }, text)));
|
|
10
10
|
}
|
|
11
11
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
2
|
import { BodyText } from '@citygross/typography';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
4
|
|
|
5
5
|
var WarningIndicator = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: ", "px\n ", "px;\n background-color: ", ";\n border-radius: ", "px;\n position: relative;\n display: flex;\n align-items: center;\n gap: ", "px;\n width: fit-content;\n"], ["\n padding: ", "px\n ", "px;\n background-color: ", ";\n border-radius: ", "px;\n position: relative;\n display: flex;\n align-items: center;\n gap: ", "px;\n width: fit-content;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; }, function (props) { return props.background; }, function (props) { var _a; return (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.borderRadius.big; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs; });
|
|
6
6
|
var IconWrapper = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n"])));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __makeTemplateObject } from '../../../_virtual/_tslib.js';
|
|
2
2
|
import { css } from 'styled-components';
|
|
3
3
|
|
|
4
|
-
var focusVisible = css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n &:focus-visible {\n outline: none;\n box-shadow
|
|
4
|
+
var focusVisible = css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n &:focus-visible {\n outline: none;\n box-shadow:\n 0 0 0 2px #fff,\n 0 0 0 4px #000,\n 0 0 0 6px #fff;\n transition: all 0.1s ease-in-out;\n }\n"], ["\n &:focus-visible {\n outline: none;\n box-shadow:\n 0 0 0 2px #fff,\n 0 0 0 4px #000,\n 0 0 0 6px #fff;\n transition: all 0.1s ease-in-out;\n }\n"])));
|
|
5
5
|
var templateObject_1;
|
|
6
6
|
|
|
7
7
|
export { focusVisible };
|
|
@@ -216,6 +216,14 @@ var spacings = {
|
|
|
216
216
|
// xxx: 72, 88, 120, 152 ?
|
|
217
217
|
};
|
|
218
218
|
|
|
219
|
+
var animations = {
|
|
220
|
+
tapScale: 0.9,
|
|
221
|
+
hoverScale: 1.1,
|
|
222
|
+
buttonTransition: 'all 250ms cubic-bezier(0.165, 0.84, 0.44, 1)',
|
|
223
|
+
rippleTransition: '750ms cubic-bezier(0.19, 1, 0.22, 1)',
|
|
224
|
+
saveButtonAnimationComplete: 600
|
|
225
|
+
};
|
|
226
|
+
|
|
219
227
|
var typography = {
|
|
220
228
|
type: {
|
|
221
229
|
primary: '"Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif',
|
|
@@ -260,14 +268,6 @@ var typography = {
|
|
|
260
268
|
}
|
|
261
269
|
};
|
|
262
270
|
|
|
263
|
-
var animations = {
|
|
264
|
-
tapScale: 0.9,
|
|
265
|
-
hoverScale: 1.1,
|
|
266
|
-
buttonTransition: 'all 250ms cubic-bezier(0.165, 0.84, 0.44, 1)',
|
|
267
|
-
rippleTransition: '750ms cubic-bezier(0.19, 1, 0.22, 1)',
|
|
268
|
-
saveButtonAnimationComplete: 600
|
|
269
|
-
};
|
|
270
|
-
|
|
271
271
|
var createTheme = function (_a) {
|
|
272
272
|
var palette = _a.palette, typography = _a.typography, attributes = _a.attributes, breakpoints = _a.breakpoints, spacings = _a.spacings, constants = _a.constants, animations = _a.animations;
|
|
273
273
|
return ({
|