@citygross/components 0.15.8 → 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/ListItem/ListItem.d.ts +1 -0
- 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/Checkbox/Checkbox.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 +18 -13
- 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/Checkbox/Checkbox.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 +18 -13
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import * as styles from './Button.styles';
|
|
3
2
|
import { TButtonColor } from './Button';
|
|
3
|
+
import * as styles from './Button.styles';
|
|
4
4
|
export declare type TIconButton = styles.TBaseSmallButton & {
|
|
5
5
|
color?: TButtonColor;
|
|
6
6
|
icon: JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import * as styles from './Button.styles';
|
|
3
2
|
import { ButtonSize, TButtonColor } from './Button';
|
|
3
|
+
import * as styles from './Button.styles';
|
|
4
4
|
export declare type TNavButton = styles.TButton & styles.TBaseSmallButton & {
|
|
5
5
|
badgeBackground?: string;
|
|
6
6
|
badgeMinWidth?: number;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare type TFieldset = {
|
|
3
|
-
children: React.ReactNode;
|
|
4
3
|
gap?: number;
|
|
5
4
|
legend?: string;
|
|
6
|
-
}
|
|
5
|
+
} & React.HTMLAttributes<HTMLFieldSetElement>;
|
|
7
6
|
export declare const Fieldset: ({ children, gap, legend }: TFieldset) => React.JSX.Element;
|
|
@@ -13,4 +13,4 @@ export declare type TRadioListItemProps = styles.TBaseRadioItemInputWrapper & {
|
|
|
13
13
|
children?: JSX.Element;
|
|
14
14
|
additionalInfo?: JSX.Element;
|
|
15
15
|
};
|
|
16
|
-
export declare function RadioListItem({ onClick, selected, flexGrow, isDisabled, transparent, noPadding, label, value, wrapMobile, additionalInfo, children
|
|
16
|
+
export declare function RadioListItem({ onClick, selected, flexGrow, isDisabled, transparent, noPadding, label, value, wrapMobile, additionalInfo, children }: TRadioListItemProps): React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EPriceSize, EPriceVariant, TPriceTagSizeAttributes, TPriceVariantAttributes } from '../components/PriceTag/PriceTag.types';
|
|
2
1
|
import { TPriceStripeSizeAttributes } from '../components/PriceStripe/PriceStripe';
|
|
2
|
+
import { EPriceSize, EPriceVariant, TPriceTagSizeAttributes, TPriceVariantAttributes } from '../components/PriceTag/PriceTag.types';
|
|
3
3
|
export declare const getPriceStripeAttributes: (priceSize?: EPriceSize, priceVariant?: EPriceVariant) => {
|
|
4
4
|
sizeAttributes: TPriceStripeSizeAttributes;
|
|
5
5
|
variantAttributes: TPriceVariantAttributes;
|
|
@@ -18,12 +18,12 @@ require('../Box/Box.styles.js');
|
|
|
18
18
|
require('../Button/Button.js');
|
|
19
19
|
require('../Button/Button.styles.js');
|
|
20
20
|
require('../Button/NavButton.js');
|
|
21
|
-
require('../CartCard/CartCard.styles.js');
|
|
22
21
|
require('../CgButton/CgButton.js');
|
|
22
|
+
require('../CartCard/CartCard.styles.js');
|
|
23
23
|
require('../CgButton/CgButton.types.js');
|
|
24
24
|
require('../CartCardLabel/CartCardLabel.styles.js');
|
|
25
|
-
require('@citygross/utils');
|
|
26
25
|
require('react-loading-skeleton');
|
|
26
|
+
require('@citygross/utils');
|
|
27
27
|
require('../CartItemSummary/CartItemSummary.styles.js');
|
|
28
28
|
require('../CartSubTotal/CartSubTotal.js');
|
|
29
29
|
require('../../../../design-tokens/build/index.js');
|
|
@@ -32,8 +32,8 @@ require('../ToolTipDialog/ToolTipDialog.styles.js');
|
|
|
32
32
|
require('../CartSummary/CartSummary.styles.js');
|
|
33
33
|
require('../CgButton/ButtonAsLink/ButtonAsLink.styles.js');
|
|
34
34
|
require('../CgButton/CgButton.styles.js');
|
|
35
|
-
require('../Chips/Chip.styles.js');
|
|
36
35
|
require('../Spinner/Spinner.styles.js');
|
|
36
|
+
require('../Chips/Chip.styles.js');
|
|
37
37
|
require('../Collapsable/Collapsable.styles.js');
|
|
38
38
|
require('../CouponCode/CouponCode.js');
|
|
39
39
|
require('../CustomerInfoBlock/CustomerInfoBlock.styles.js');
|
|
@@ -58,14 +58,14 @@ require('../FormElements/Switch/Switch.styles.js');
|
|
|
58
58
|
require('../FormElements/TextArea/TextArea.styles.js');
|
|
59
59
|
require('../FormGroup/FormGroup.styles.js');
|
|
60
60
|
require('../GridContainer/GridContainer.styles.js');
|
|
61
|
+
require('../HeaderLink/HeaderLink.styles.js');
|
|
61
62
|
require('../Logo/Logo.styles.js');
|
|
62
63
|
require('../Header/Header.styles.js');
|
|
63
|
-
require('../HeaderLink/HeaderLink.styles.js');
|
|
64
64
|
require('../MinimalHeader/MinimalHeader.styles.js');
|
|
65
65
|
require('../HighlightBox/HighlightBox.styles.js');
|
|
66
66
|
require('../IconText/IconText.styles.js');
|
|
67
|
-
require('../IconToolTip/IconToolTip.styles.js');
|
|
68
67
|
var Spacer = require('../Spacer/Spacer.js');
|
|
68
|
+
require('../IconToolTip/IconToolTip.styles.js');
|
|
69
69
|
require('../InfoTextBlock/InfoTextBlock.styles.js');
|
|
70
70
|
require('../LayoutBox/LayoutBox.styles.js');
|
|
71
71
|
require('../Links/Link.js');
|
|
@@ -98,8 +98,8 @@ require('../SelectButton/SelectButton.styles.js');
|
|
|
98
98
|
require('../SkipTo/SkipTo.styles.js');
|
|
99
99
|
require('../SideModal/SideModal.js');
|
|
100
100
|
require('../SlideInOutContainer/SlideInOutContainer.styles.js');
|
|
101
|
-
require('../Slider/Slider.styles.js');
|
|
102
101
|
require('react-slick');
|
|
102
|
+
require('../Slider/Slider.styles.js');
|
|
103
103
|
require('../Stepper/Stepper.styles.js');
|
|
104
104
|
require('../ToolTip/ToolTip.styles.js');
|
|
105
105
|
require('../StepperMobile/StepperMobile.styles.js');
|
|
@@ -119,27 +119,27 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
119
119
|
|
|
120
120
|
function AddressBlock(_a) {
|
|
121
121
|
var _b = _a.deliverOption, deliverOption = _b === void 0 ? 'Address' : _b, icon = _a.icon, storeName = _a.storeName, customerName = _a.customerName, street = _a.street, zipCode = _a.zipCode, city = _a.city, doorCode = _a.doorCode, floor = _a.floor, deliveryInstructions = _a.deliveryInstructions, xsSpacing = _a.xsSpacing, lgSpacing = _a.lgSpacing;
|
|
122
|
-
var spacingsDefined =
|
|
122
|
+
var spacingsDefined = xsSpacing || lgSpacing;
|
|
123
123
|
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
124
124
|
React__default["default"].createElement(AddressBlock_styles.AddressOption, null,
|
|
125
125
|
icon && icon,
|
|
126
126
|
deliverOption && React__default["default"].createElement(typography.H3, null, deliverOption)),
|
|
127
|
-
spacingsDefined && React__default["default"].createElement(Spacer.Spacer, { xsSpacing: xsSpacing, lgSpacing: lgSpacing }),
|
|
127
|
+
spacingsDefined && (React__default["default"].createElement(Spacer.Spacer, { xsSpacing: xsSpacing, lgSpacing: lgSpacing })),
|
|
128
128
|
storeName && React__default["default"].createElement(typography.H3, null, storeName),
|
|
129
129
|
customerName && React__default["default"].createElement(typography.BodyText, null, customerName),
|
|
130
|
-
spacingsDefined && React__default["default"].createElement(Spacer.Spacer, { xsSpacing: xsSpacing, lgSpacing: lgSpacing }),
|
|
130
|
+
spacingsDefined && (React__default["default"].createElement(Spacer.Spacer, { xsSpacing: xsSpacing, lgSpacing: lgSpacing })),
|
|
131
131
|
React__default["default"].createElement(typography.BodyText, null, street),
|
|
132
|
-
spacingsDefined && React__default["default"].createElement(Spacer.Spacer, { xsSpacing: xsSpacing, lgSpacing: lgSpacing }),
|
|
132
|
+
spacingsDefined && (React__default["default"].createElement(Spacer.Spacer, { xsSpacing: xsSpacing, lgSpacing: lgSpacing })),
|
|
133
133
|
React__default["default"].createElement(typography.BodyText, null,
|
|
134
134
|
zipCode,
|
|
135
135
|
" ",
|
|
136
136
|
city),
|
|
137
|
-
spacingsDefined && React__default["default"].createElement(Spacer.Spacer, { xsSpacing: xsSpacing, lgSpacing: lgSpacing }),
|
|
138
|
-
doorCode &&
|
|
139
|
-
spacingsDefined && React__default["default"].createElement(Spacer.Spacer, { xsSpacing: xsSpacing, lgSpacing: lgSpacing }),
|
|
140
|
-
floor &&
|
|
141
|
-
spacingsDefined && React__default["default"].createElement(Spacer.Spacer, { xsSpacing: xsSpacing, lgSpacing: lgSpacing }),
|
|
142
|
-
deliveryInstructions &&
|
|
137
|
+
spacingsDefined && (React__default["default"].createElement(Spacer.Spacer, { xsSpacing: xsSpacing, lgSpacing: lgSpacing })),
|
|
138
|
+
doorCode && React__default["default"].createElement(typography.BodyText, null, doorCode),
|
|
139
|
+
spacingsDefined && (React__default["default"].createElement(Spacer.Spacer, { xsSpacing: xsSpacing, lgSpacing: lgSpacing })),
|
|
140
|
+
floor && React__default["default"].createElement(typography.BodyText, null, floor),
|
|
141
|
+
spacingsDefined && (React__default["default"].createElement(Spacer.Spacer, { xsSpacing: xsSpacing, lgSpacing: lgSpacing })),
|
|
142
|
+
deliveryInstructions && deliveryInstructions));
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
exports.AddressBlock = AddressBlock;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var BackButton_styles = require('./BackButton.styles.js');
|
|
7
6
|
var icons = require('@citygross/icons');
|
|
8
7
|
var typography = require('@citygross/typography');
|
|
8
|
+
var BackButton_styles = require('./BackButton.styles.js');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
11
|
|
|
@@ -14,7 +14,7 @@ var BoxContainer = styled__default["default"].div(templateObject_1 || (templateO
|
|
|
14
14
|
return props.padding &&
|
|
15
15
|
"\n @media (min-width: ".concat((_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.lg, "px) {\n padding: ").concat(props.paddingVertical
|
|
16
16
|
? props.paddingVertical
|
|
17
|
-
: (_c = props.padding) !== null && _c !== void 0 ? _c : (_e = (_d = props === null || props === void 0 ? void 0 : props.theme) === null || _d === void 0 ? void 0 : _d.spacings) === null || _e === void 0 ? void 0 : _e.lg, "px ").concat(props.padding ? props.padding : (_g = (_f = props === null || props === void 0 ? void 0 : props.theme) === null || _f === void 0 ? void 0 : _f.spacings) === null || _g === void 0 ? void 0 : _g.lg, "px;\n\n }\n\n padding: ").concat(props.paddingVertical ? props.paddingVertical : props.padding, "px ").concat(props.padding, "px");
|
|
17
|
+
: ((_c = props.padding) !== null && _c !== void 0 ? _c : (_e = (_d = props === null || props === void 0 ? void 0 : props.theme) === null || _d === void 0 ? void 0 : _d.spacings) === null || _e === void 0 ? void 0 : _e.lg), "px ").concat(props.padding ? props.padding : (_g = (_f = props === null || props === void 0 ? void 0 : props.theme) === null || _f === void 0 ? void 0 : _f.spacings) === null || _g === void 0 ? void 0 : _g.lg, "px;\n\n }\n\n padding: ").concat(props.paddingVertical ? props.paddingVertical : props.padding, "px ").concat(props.padding, "px");
|
|
18
18
|
});
|
|
19
19
|
var templateObject_1;
|
|
20
20
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var icons = require('@citygross/icons');
|
|
4
3
|
var React = require('react');
|
|
4
|
+
var icons = require('@citygross/icons');
|
|
5
5
|
var BoxArrow_styles = require('./BoxArrow.styles.js');
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -65,7 +65,7 @@ var SpinnerSize = function (size) {
|
|
|
65
65
|
return '26px';
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
|
-
var BaseButton = styled__default["default"].button(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n /* reset */\n border: none;\n backface-visibility: hidden;\n cursor: pointer;\n border-radius: ", "px;\n pointer-events: ", ";\n -webkit-font-smoothing: antialiased;\n user-select: ", ";\n\n position: relative;\n\n /* typography */\n\n font-family: ", ";\n font-weight: ", ";\n text-align: ", ";\n white-space: ", ";\n\n /* colors */\n\n background: ", ";\n\n color: ", ";\n\n /* Width & Height */\n\n width: ", ";\n\n &::after {\n content: '';\n position: absolute;\n width: 100%;\n height: 100%;\n border-radius: ", "px;\n top: 0;\n left: 0;\n box-shadow: ", ";\n opacity: 0;\n -webkit-transition: ", ";\n transition: ", ";\n }\n\n &::before {\n content: '';\n position: absolute;\n width: 100%;\n height: 100%;\n border-radius: ", "px;\n top: 0;\n left: 0;\n box-shadow: ", ";\n opacity: 0;\n -webkit-transition: ", ";\n transition: ", ";\n }\n\n /* Hover Effect */\n\n &:hover {\n ::after {\n opacity: ", ";\n }\n ", ";\n }\n &:active {\n ::before {\n opacity: ", ";\n }\n ::after {\n opacity: 0;\n }\n }\n
|
|
68
|
+
var BaseButton = styled__default["default"].button(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n /* reset */\n border: none;\n backface-visibility: hidden;\n cursor: pointer;\n border-radius: ", "px;\n pointer-events: ", ";\n -webkit-font-smoothing: antialiased;\n user-select: ", ";\n\n position: relative;\n\n /* typography */\n\n font-family: ", ";\n font-weight: ", ";\n text-align: ", ";\n white-space: ", ";\n\n /* colors */\n\n background: ", ";\n\n color: ", ";\n\n /* Width & Height */\n\n width: ", ";\n\n &::after {\n content: '';\n position: absolute;\n width: 100%;\n height: 100%;\n border-radius: ", "px;\n top: 0;\n left: 0;\n box-shadow: ", ";\n opacity: 0;\n -webkit-transition: ", ";\n transition: ", ";\n }\n\n &::before {\n content: '';\n position: absolute;\n width: 100%;\n height: 100%;\n border-radius: ", "px;\n top: 0;\n left: 0;\n box-shadow: ", ";\n opacity: 0;\n -webkit-transition: ", ";\n transition: ", ";\n }\n\n /* Hover Effect */\n\n &:hover {\n ::after {\n opacity: ", ";\n }\n ", ";\n }\n &:active {\n ::before {\n opacity: ", ";\n }\n ::after {\n opacity: 0;\n }\n }\n ", "\n /* Media Queries */\n\n @media (max-width: ", "px) {\n align-self: ", ";\n }\n"], ["\n /* reset */\n border: none;\n backface-visibility: hidden;\n cursor: pointer;\n border-radius: ", "px;\n pointer-events: ", ";\n -webkit-font-smoothing: antialiased;\n user-select: ", ";\n\n position: relative;\n\n /* typography */\n\n font-family: ", ";\n font-weight: ", ";\n text-align: ", ";\n white-space: ", ";\n\n /* colors */\n\n background: ", ";\n\n color: ", ";\n\n /* Width & Height */\n\n width: ", ";\n\n &::after {\n content: '';\n position: absolute;\n width: 100%;\n height: 100%;\n border-radius: ", "px;\n top: 0;\n left: 0;\n box-shadow: ", ";\n opacity: 0;\n -webkit-transition: ", ";\n transition: ", ";\n }\n\n &::before {\n content: '';\n position: absolute;\n width: 100%;\n height: 100%;\n border-radius: ", "px;\n top: 0;\n left: 0;\n box-shadow: ", ";\n opacity: 0;\n -webkit-transition: ", ";\n transition: ", ";\n }\n\n /* Hover Effect */\n\n &:hover {\n ::after {\n opacity: ", ";\n }\n ", ";\n }\n &:active {\n ::before {\n opacity: ", ";\n }\n ::after {\n opacity: 0;\n }\n }\n ", "\n /* Media Queries */\n\n @media (max-width: ", "px) {\n align-self: ", ";\n }\n"])), function (props) { var _a, _b; return (_a = props.borderRadius) !== null && _a !== void 0 ? _a : (_b = props.theme.attributes) === null || _b === void 0 ? void 0 : _b.borderRadius.extraSmall; }, function (props) { return (props.isDisabled ? 'none' : 'all'); }, function (props) { return props.isDisabled && 'none'; }, function (props) { var _a, _b; return (_b = (_a = props === null || props === void 0 ? void 0 : props.theme) === null || _a === void 0 ? void 0 : _a.typography) === null || _b === void 0 ? void 0 : _b.type.primary; }, function (props) { var _a, _b; return (_b = (_a = props === null || props === void 0 ? void 0 : props.theme) === null || _a === void 0 ? void 0 : _a.typography) === null || _b === void 0 ? void 0 : _b.weight.medium; }, function (props) { return (props.center ? 'center' : 'initial'); }, function (props) { return (props.noWrap ? 'nowrap' : 'normal'); }, function (props) { var _a, _b; return props.isDisabled ? (_b = (_a = props === null || props === void 0 ? void 0 : props.theme) === null || _a === void 0 ? void 0 : _a.palette) === null || _b === void 0 ? void 0 : _b.medium : props.color; }, function (props) {
|
|
69
69
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
70
70
|
return props.color === ((_b = (_a = props === null || props === void 0 ? void 0 : props.theme) === null || _a === void 0 ? void 0 : _a.palette) === null || _b === void 0 ? void 0 : _b.secondary) ||
|
|
71
71
|
props.color === ((_d = (_c = props === null || props === void 0 ? void 0 : props.theme) === null || _c === void 0 ? void 0 : _c.palette) === null || _d === void 0 ? void 0 : _d.darkest) ||
|
|
@@ -79,7 +79,7 @@ var BaseButton = styled__default["default"].button(templateObject_1 || (template
|
|
|
79
79
|
props.hoverBackground &&
|
|
80
80
|
"background: ".concat(props.hoverBackground);
|
|
81
81
|
}, function (props) { return ((props === null || props === void 0 ? void 0 : props.noShadow) ? 0 : 1); }, global_styles.focusVisible, 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) { return (props.center ? 'center' : 'initial'); });
|
|
82
|
-
var BasePrimaryCSS = styled.css(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n font-size: ", ";\n line-height: ", ";\n\n /* shadow */\n", "\n\n /* Padding */\n\n padding: ", ";\n\n @media (min-width: ", "px) {\n font-size: ", ";\n\n padding: ", ";\n ", ";\n }\n"], ["\n font-size: ", ";\n line-height: ", ";\n\n /* shadow */\n", "\n\n /* Padding */\n\n padding: ", ";\n\n @media (min-width: ", "px) {\n font-size: ", ";\n\n padding: ", ";\n ", ";\n }\n"])), function (props) { return ButtonFontSize(props.xsSize || props.size); }, function (props) {
|
|
82
|
+
var BasePrimaryCSS = styled.css(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n font-size: ", ";\n line-height: ", ";\n\n /* shadow */\n ", "\n\n /* Padding */\n\n padding: ", ";\n\n @media (min-width: ", "px) {\n font-size: ", ";\n\n padding: ", ";\n ", ";\n }\n"], ["\n font-size: ", ";\n line-height: ", ";\n\n /* shadow */\n ", "\n\n /* Padding */\n\n padding: ", ";\n\n @media (min-width: ", "px) {\n font-size: ", ";\n\n padding: ", ";\n ", ";\n }\n"])), function (props) { return ButtonFontSize(props.xsSize || props.size); }, function (props) {
|
|
83
83
|
var _a, _b;
|
|
84
84
|
return props.size === 'small'
|
|
85
85
|
? "".concat((_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.lineHeight.s2, "px")
|
|
@@ -167,7 +167,7 @@ var ButtonBadge = styled__default["default"].div(templateObject_14 || (templateO
|
|
|
167
167
|
}, function (props) { var _a; return (_a = props.background) !== null && _a !== void 0 ? _a : 'black'; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.buttonBadgeFontSize; }, function (props) { var _a, _b; return (_b = (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.lineHeight) === null || _b === void 0 ? void 0 : _b.xs; }, function (props) { return props.minWidth && "min-width: ".concat(props.minWidth, "px"); });
|
|
168
168
|
var NavButton = styled__default["default"](BaseButton)(templateObject_15 || (templateObject_15 = _tslib.__makeTemplateObject(["\n @media (max-width: ", "px) {\n ", "\n }\n\n @media (min-width: ", "px) {\n ", "\n }\n ", ";\n"], ["\n @media (max-width: ", "px) {\n ", "\n }\n\n @media (min-width: ", "px) {\n ", "\n }\n ", ";\n"])), function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.headerBreakpoint; }, function (props) { return (props.keepLabel ? BasePrimaryCSS : BaseIconButtonCSS); }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.headerBreakpoint; }, BasePrimaryCSS, function (props) { return props.minWidth && "min-width: ".concat(props.minWidth, "px"); });
|
|
169
169
|
var NavButtonIcon = styled__default["default"].div(templateObject_16 || (templateObject_16 = _tslib.__makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n @media (min-width: ", "px) {\n display: none;\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n @media (min-width: ", "px) {\n display: none;\n }\n"])), function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.headerBreakpoint; });
|
|
170
|
-
var NavButtonChild = styled__default["default"].div(templateObject_17 || (templateObject_17 = _tslib.__makeTemplateObject(["\n ", "\n
|
|
170
|
+
var NavButtonChild = styled__default["default"].div(templateObject_17 || (templateObject_17 = _tslib.__makeTemplateObject(["\n ", "\n @media (min-width: ", "px) {\n ", "\n }\n"], ["\n ", "\n @media (min-width: ", "px) {\n ", "\n }\n"])), function (props) {
|
|
171
171
|
return props.keepLabel
|
|
172
172
|
? ButtonChildContainerCSS
|
|
173
173
|
: "display: none;\n ";
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var _tslib = require('../../../../_virtual/_tslib.js');
|
|
6
6
|
var React = require('react');
|
|
7
|
-
var Button_styles = require('./Button.styles.js');
|
|
8
7
|
var designTokens = require('@citygross/design-tokens');
|
|
8
|
+
var Button_styles = require('./Button.styles.js');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
11
|
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var designTokens = require('@citygross/design-tokens');
|
|
7
|
-
var Button_styles = require('./Button.styles.js');
|
|
8
7
|
var typography = require('@citygross/typography');
|
|
8
|
+
var Button_styles = require('./Button.styles.js');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
11
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var fallback_grocery = require('./assets/fallback_grocery.svg.js');
|
|
7
|
-
var CartCard_styles = require('./CartCard.styles.js');
|
|
8
6
|
var icons = require('@citygross/icons');
|
|
9
7
|
var CgButton = require('../CgButton/CgButton.js');
|
|
8
|
+
var fallback_grocery = require('./assets/fallback_grocery.svg.js');
|
|
9
|
+
var CartCard_styles = require('./CartCard.styles.js');
|
|
10
10
|
var CgButton_types = require('../CgButton/CgButton.types.js');
|
|
11
11
|
|
|
12
12
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
+
var Skeleton = require('react-loading-skeleton');
|
|
6
7
|
var typography = require('@citygross/typography');
|
|
7
8
|
var utils = require('@citygross/utils');
|
|
8
|
-
var Skeleton = require('react-loading-skeleton');
|
|
9
9
|
var CartItemSummary_styles = require('./CartItemSummary.styles.js');
|
|
10
10
|
|
|
11
11
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -14,7 +14,7 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
14
14
|
var Skeleton__default = /*#__PURE__*/_interopDefaultLegacy(Skeleton);
|
|
15
15
|
|
|
16
16
|
function CartItemSummary(_a) {
|
|
17
|
-
var product = _a.product, withParenthesis = _a.withParenthesis, _b = _a.unit, unit = _b === void 0 ?
|
|
17
|
+
var product = _a.product, withParenthesis = _a.withParenthesis, _b = _a.unit, unit = _b === void 0 ? 'st' : _b;
|
|
18
18
|
return (React__default["default"].createElement(CartItemSummary_styles.CartItemSummaryWrapper, null,
|
|
19
19
|
product &&
|
|
20
20
|
(product.amount === 0 || product.amount) &&
|
|
@@ -4,11 +4,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var _tslib = require('../../../../_virtual/_tslib.js');
|
|
6
6
|
var React = require('react');
|
|
7
|
-
var
|
|
7
|
+
var designTokens = require('@citygross/design-tokens');
|
|
8
|
+
var button = require('../../helpers/button.js');
|
|
8
9
|
var Spinner = require('../Spinner/Spinner.js');
|
|
10
|
+
var CgButton_styles = require('./CgButton.styles.js');
|
|
9
11
|
var CgButton_types = require('./CgButton.types.js');
|
|
10
|
-
var button = require('../../helpers/button.js');
|
|
11
|
-
var designTokens = require('@citygross/design-tokens');
|
|
12
12
|
|
|
13
13
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
14
14
|
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var _tslib = require('../../../../../_virtual/_tslib.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var button = require('../../../helpers/button.js');
|
|
8
|
-
var CgButton_types = require('../CgButton.types.js');
|
|
9
8
|
var CgButton_styles = require('../CgButton.styles.js');
|
|
9
|
+
var CgButton_types = require('../CgButton.types.js');
|
|
10
10
|
|
|
11
11
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
12
|
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
+
var designTokens = require('@citygross/design-tokens');
|
|
6
7
|
var icons = require('@citygross/icons');
|
|
7
8
|
var typography = require('@citygross/typography');
|
|
8
|
-
var Chip_styles = require('./Chip.styles.js');
|
|
9
|
-
var designTokens = require('@citygross/design-tokens');
|
|
10
9
|
var Spinner = require('../Spinner/Spinner.js');
|
|
10
|
+
var Chip_styles = require('./Chip.styles.js');
|
|
11
11
|
|
|
12
12
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
13
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var _tslib = require('../../../../_virtual/_tslib.js');
|
|
6
|
-
var styled = require('styled-components');
|
|
7
6
|
var typography = require('@citygross/typography');
|
|
7
|
+
var styled = require('styled-components');
|
|
8
8
|
|
|
9
9
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
10
|
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var Box = require('../Box/Box.js');
|
|
7
6
|
var icons = require('@citygross/icons');
|
|
8
7
|
var typography = require('@citygross/typography');
|
|
8
|
+
var Box = require('../Box/Box.js');
|
|
9
9
|
var Collapsable_styles = require('./Collapsable.styles.js');
|
|
10
10
|
|
|
11
11
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var CouponCode_styles = require('./CouponCode.styles.js');
|
|
7
|
-
var CgButton = require('../CgButton/CgButton.js');
|
|
8
|
-
var CgButton_types = require('../CgButton/CgButton.types.js');
|
|
9
|
-
var icons = require('@citygross/icons');
|
|
10
6
|
var designTokens = require('@citygross/design-tokens');
|
|
11
|
-
var
|
|
7
|
+
var icons = require('@citygross/icons');
|
|
12
8
|
var typography = require('@citygross/typography');
|
|
13
|
-
var
|
|
9
|
+
var CgButton = require('../CgButton/CgButton.js');
|
|
14
10
|
var Flex_styles = require('../Flex/Flex.styles.js');
|
|
11
|
+
var Input = require('../FormElements/Input/Input.js');
|
|
12
|
+
var Link = require('../Links/Link.js');
|
|
13
|
+
var CouponCode_styles = require('./CouponCode.styles.js');
|
|
14
|
+
var CgButton_types = require('../CgButton/CgButton.types.js');
|
|
15
15
|
|
|
16
16
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
17
17
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var utils = require('@citygross/utils');
|
|
7
6
|
var typography = require('@citygross/typography');
|
|
7
|
+
var utils = require('@citygross/utils');
|
|
8
8
|
var DeliverySlotItem_styles = require('./DeliverySlotItem.styles.js');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var utils = require('@citygross/utils');
|
|
7
6
|
var typography = require('@citygross/typography');
|
|
7
|
+
var utils = require('@citygross/utils');
|
|
8
8
|
var DeliveryTimeBlock_styles = require('./DeliveryTimeBlock.styles.js');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -22,7 +22,7 @@ var Checkbox = function (_a) {
|
|
|
22
22
|
React__default["default"].createElement(FormElement_styles.HiddenInput, _tslib.__assign({ checked: checked, disabled: disabled, type: "checkbox" }, props)),
|
|
23
23
|
React__default["default"].createElement(Checkbox_styles.CheckboxContainer, { attributes: attributes },
|
|
24
24
|
React__default["default"].createElement(Checkbox_styles.IconContainer, null,
|
|
25
|
-
React__default["default"].createElement(icons.Icons.CheckMark, { color: iconColor }))),
|
|
25
|
+
React__default["default"].createElement(icons.Icons.CheckMark, { color: iconColor, "aria-hidden": "true" }))),
|
|
26
26
|
hideLabel ? (React__default["default"].createElement(ScreenReader.ScreenReader, { string: label })) : (React__default["default"].createElement(typography.BodyText, { color: labelColor }, label))));
|
|
27
27
|
};
|
|
28
28
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var _tslib = require('../../../../../_virtual/_tslib.js');
|
|
6
|
-
var InputOld_styles = require('./InputOld.styles.js');
|
|
7
6
|
var React = require('react');
|
|
7
|
+
var InputOld_styles = require('./InputOld.styles.js');
|
|
8
8
|
|
|
9
9
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
10
|
|
|
@@ -41,7 +41,7 @@ var RadioContainer = styled__default["default"].div(templateObject_5 || (templat
|
|
|
41
41
|
return !disabled && styled.css(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n background-color: ", ";\n border-radius: ", ";\n content: '';\n height: 70%;\n width: 70%;\n position: absolute;\n top: 15%;\n left: 15%;\n "], ["\n background-color: ", ";\n border-radius: ", ";\n content: '';\n height: 70%;\n width: 70%;\n position: absolute;\n top: 15%;\n left: 15%;\n "])), attributes.backgroundColor, (_c = (_b = theme.attributes) === null || _b === void 0 ? void 0 : _b.borderRadius) === null || _c === void 0 ? void 0 : _c.circle);
|
|
42
42
|
}, function (_a) {
|
|
43
43
|
var disabled = _a.disabled, attributes = _a.attributes, checked = _a.checked;
|
|
44
|
-
return !disabled && styled.css(templateObject_4 || (templateObject_4 = _tslib.__makeTemplateObject(["\n background-color: ", ";\n\n ", "\n "], ["\n background-color: ", ";\n\n ", "\n "])), attributes.hoverBackgroundColor, !checked && styled.css(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n
|
|
44
|
+
return !disabled && styled.css(templateObject_4 || (templateObject_4 = _tslib.__makeTemplateObject(["\n background-color: ", ";\n\n ", "\n "], ["\n background-color: ", ";\n\n ", "\n "])), attributes.hoverBackgroundColor, !checked && styled.css(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n height: 100%;\n width: 100%;\n top: 0;\n left: 0;\n "], ["\n height: 100%;\n width: 100%;\n top: 0;\n left: 0;\n "]))));
|
|
45
45
|
});
|
|
46
46
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
47
47
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var _tslib = require('../../../../../_virtual/_tslib.js');
|
|
6
|
-
var TextArea_styles = require('./TextArea.styles.js');
|
|
7
6
|
var React = require('react');
|
|
7
|
+
var TextArea_styles = require('./TextArea.styles.js');
|
|
8
8
|
|
|
9
9
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
10
|
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var utils = require('@citygross/utils');
|
|
7
6
|
var designTokens = require('@citygross/design-tokens');
|
|
8
7
|
var icons = require('@citygross/icons');
|
|
8
|
+
var utils = require('@citygross/utils');
|
|
9
|
+
var CgButton = require('../CgButton/CgButton.js');
|
|
10
|
+
var HeaderLink = require('../HeaderLink/HeaderLink.js');
|
|
9
11
|
var Logo = require('../Logo/Logo.js');
|
|
10
12
|
var Header_styles = require('./Header.styles.js');
|
|
11
|
-
var HeaderLink = require('../HeaderLink/HeaderLink.js');
|
|
12
|
-
var CgButton = require('../CgButton/CgButton.js');
|
|
13
13
|
var CgButton_types = require('../CgButton/CgButton.types.js');
|
|
14
14
|
|
|
15
15
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var HeaderLink_styles = require('./HeaderLink.styles.js');
|
|
7
6
|
var typography = require('@citygross/typography');
|
|
7
|
+
var HeaderLink_styles = require('./HeaderLink.styles.js');
|
|
8
8
|
|
|
9
9
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
10
|
|
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var icons = require('@citygross/icons');
|
|
7
|
-
var IconToolTip_styles = require('./IconToolTip.styles.js');
|
|
8
|
-
var Spacer = require('../Spacer/Spacer.js');
|
|
9
7
|
var index = require('../../../../design-tokens/build/index.js');
|
|
8
|
+
var Spacer = require('../Spacer/Spacer.js');
|
|
9
|
+
var IconToolTip_styles = require('./IconToolTip.styles.js');
|
|
10
10
|
|
|
11
11
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
12
|
|
|
@@ -10,7 +10,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
10
10
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
11
11
|
|
|
12
12
|
var IconToolTipContainer = styled__default["default"].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n display: inline-flex;\n cursor: pointer;\n position: relative;\n"], ["\n display: inline-flex;\n cursor: pointer;\n position: relative;\n"])));
|
|
13
|
-
var ArrowUp = styled__default["default"].div(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n position: absolute;\n top: ", "px;\n width: 0;\n left: ", "px;\n height: 0;\n border-left: ", "px solid\n transparent;\n border-right: ", "px
|
|
13
|
+
var ArrowUp = styled__default["default"].div(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n position: absolute;\n top: ", "px;\n width: 0;\n left: ", "px;\n height: 0;\n border-left: ", "px solid\n transparent;\n border-right: ", "px\n solid transparent;\n border-bottom: ", "px\n solid ", ";\n"], ["\n position: absolute;\n top: ", "px;\n width: 0;\n left: ", "px;\n height: 0;\n border-left: ", "px solid\n transparent;\n border-right: ", "px\n solid transparent;\n border-bottom: ", "px\n solid ", ";\n"])), function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.iconToolTipArrowTop; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.iconToolTipArrowLeft; }, function (props) { var _a, _b; return (_b = (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.borderRadius) === null || _b === void 0 ? void 0 : _b.small; }, function (props) { var _a, _b; return (_b = (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.borderRadius) === null || _b === void 0 ? void 0 : _b.small; }, function (props) { var _a, _b; return (_b = (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.borderRadius) === null || _b === void 0 ? void 0 : _b.small; }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.darkest; });
|
|
14
14
|
var ToolTipBox = styled__default["default"].div(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n position: absolute;\n top: ", "px;\n ", ";\n width: ", "px;\n background-color: ", ";\n border-radius: ", "px;\n padding: ", "px;\n z-index: 99;\n"], ["\n position: absolute;\n top: ", "px;\n ", ";\n width: ", "px;\n background-color: ", ";\n border-radius: ", "px;\n padding: ", "px;\n z-index: 99;\n"])), function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.iconToolTipTop; }, function (props) {
|
|
15
15
|
return props.right
|
|
16
16
|
? "right: ".concat(props.right, "px")
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
+
var designTokens = require('@citygross/design-tokens');
|
|
6
7
|
var Button = require('../Button/Button.js');
|
|
7
8
|
require('../../../../_virtual/_tslib.js');
|
|
8
|
-
var designTokens = require('@citygross/design-tokens');
|
|
9
9
|
require('../Button/Button.styles.js');
|
|
10
10
|
require('@citygross/typography');
|
|
11
11
|
require('../Button/NavButton.js');
|
|
@@ -9,7 +9,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
9
9
|
|
|
10
10
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
11
11
|
|
|
12
|
-
var InfoBlock = styled__default["default"].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n display: flex;\n flex: 1;\n flex-wrap: wrap;\n gap: ", "px;\n position: relative;\n background: ", ";\n padding: ", ";\n @media (min-width: ", "px) {\n flex-wrap: nowrap;\n align-items: center;\n justify-content: space-between;\n }
|
|
12
|
+
var InfoBlock = styled__default["default"].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n display: flex;\n flex: 1;\n flex-wrap: wrap;\n gap: ", "px;\n position: relative;\n background: ", ";\n padding: ", ";\n @media (min-width: ", "px) {\n flex-wrap: nowrap;\n align-items: center;\n justify-content: space-between;\n }\n"], ["\n display: flex;\n flex: 1;\n flex-wrap: wrap;\n gap: ", "px;\n position: relative;\n background: ", ";\n padding: ", ";\n @media (min-width: ", "px) {\n flex-wrap: nowrap;\n align-items: center;\n justify-content: space-between;\n }\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { return props.background; }, function (props) {
|
|
13
13
|
var _a, _b, _c;
|
|
14
14
|
return props.hasImage
|
|
15
15
|
? "".concat((_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.md, "px")
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var _tslib = require('../../../../_virtual/_tslib.js');
|
|
6
6
|
var styled = require('styled-components');
|
|
7
|
-
var Link = require('./Link.js');
|
|
8
7
|
var global_styles = require('../../shared/global.styles.js');
|
|
8
|
+
var Link = require('./Link.js');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
11
|
|
|
@@ -60,7 +60,7 @@ var mapToType = function (type) {
|
|
|
60
60
|
return PrimaryLink;
|
|
61
61
|
}
|
|
62
62
|
};
|
|
63
|
-
var LinkStyle = styled.css(templateObject_4 || (templateObject_4 = _tslib.__makeTemplateObject(["\n user-select: ", ";\n pointer-events: ", ";\n cursor: pointer;\n /* typography */\n line-height: ", ";\n white-space: ", ";\n ", "\n\n border-radius: ", "px;\n\n", "\n ", "\n"], ["\n user-select: ", ";\n pointer-events: ", ";\n cursor: pointer;\n /* typography */\n line-height: ", ";\n white-space: ", ";\n ", "\n\n border-radius: ", "px;\n\n", "\n ", "\n"])), function (props) { return props.isDisabled && 'none'; }, function (props) { return (props.isDisabled ? 'none' : 'all'); }, function (props) {
|
|
63
|
+
var LinkStyle = styled.css(templateObject_4 || (templateObject_4 = _tslib.__makeTemplateObject(["\n user-select: ", ";\n pointer-events: ", ";\n cursor: pointer;\n /* typography */\n line-height: ", ";\n white-space: ", ";\n ", "\n\n border-radius: ", "px;\n\n ", "\n ", "\n"], ["\n user-select: ", ";\n pointer-events: ", ";\n cursor: pointer;\n /* typography */\n line-height: ", ";\n white-space: ", ";\n ", "\n\n border-radius: ", "px;\n\n ", "\n ", "\n"])), function (props) { return props.isDisabled && 'none'; }, function (props) { return (props.isDisabled ? 'none' : 'all'); }, function (props) {
|
|
64
64
|
var _a, _b;
|
|
65
65
|
return props.size === 'small'
|
|
66
66
|
? ((_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.lineHeight.s2) + 'px'
|