@citygross/components 0.7.77 → 0.7.79
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.d.ts +2 -1
- package/build/@types/components/Button/Button.stories.d.ts +1 -0
- package/build/@types/components/Button/Button.styles.d.ts +10 -0
- package/build/@types/components/IconText/IconText.d.ts +9 -0
- package/build/@types/components/IconText/IconText.stories.d.ts +9 -0
- package/build/@types/components/IconText/IconText.styles.d.ts +5 -0
- package/build/@types/components/Nav/Nav.d.ts +20 -0
- package/build/@types/components/Nav/Nav.stories.d.ts +14 -0
- package/build/@types/components/Nav/Nav.styles.d.ts +19 -0
- package/build/@types/components/NavMainLink/NavMainLink.d.ts +9 -0
- package/build/@types/components/NavMainLink/NavMainLink.stories.d.ts +8 -0
- package/build/@types/components/NavMainLink/NavMainLink.styled.d.ts +6 -0
- package/build/@types/components/Pagination/Pagination.d.ts +2 -1
- package/build/@types/components/SearchBar/SearchBar.d.ts +13 -0
- package/build/@types/components/SearchBar/SearchBar.stories.d.ts +23 -0
- package/build/@types/components/SearchBar/SearchBar.styles.d.ts +19 -0
- package/build/@types/components/Timeline/Timeline.d.ts +2 -3
- package/build/@types/components/Timeline/Timeline.stories.d.ts +4 -12
- package/build/cjs/_virtual/{index.js_commonjs-exports → index.js} +1 -1
- package/build/cjs/_virtual/index.js.map +1 -0
- package/build/cjs/_virtual/{index2.js_commonjs-exports → index2.js} +1 -1
- package/build/cjs/_virtual/index2.js.map +1 -0
- package/build/cjs/components/src/components/AddressBlock/AddressBlock.js +15 -15
- package/build/cjs/components/src/components/AddressBlock/AddressBlock.styles.js +1 -1
- package/build/cjs/components/src/components/AlertBox/AlertBox.js +4 -4
- package/build/cjs/components/src/components/AlertBox/AlertBox.styles.js +2 -2
- package/build/cjs/components/src/components/BackButton/BackButton.js +4 -4
- package/build/cjs/components/src/components/BackButton/BackButton.styles.js +2 -2
- package/build/cjs/components/src/components/BackgroundImage/BackgroundImage.js +5 -5
- package/build/cjs/components/src/components/BackgroundImage/BackgroundImage.styles.js +5 -5
- package/build/cjs/components/src/components/Badge/Badge.js +1 -1
- package/build/cjs/components/src/components/Badge/Badge.styles.js +1 -1
- package/build/cjs/components/src/components/Box/Box.js +3 -3
- package/build/cjs/components/src/components/Box/Box.styles.js +1 -1
- package/build/cjs/components/src/components/BoxArrow/BoxArrow.js +2 -2
- package/build/cjs/components/src/components/BoxArrow/BoxArrow.styles.js +1 -1
- package/build/cjs/components/src/components/Button/Button.js +9 -8
- package/build/cjs/components/src/components/Button/Button.js.map +1 -1
- package/build/cjs/components/src/components/Button/Button.styles.js +21 -10
- package/build/cjs/components/src/components/Button/Button.styles.js.map +1 -1
- package/build/cjs/components/src/components/Button/IconButton.js +5 -5
- package/build/cjs/components/src/components/Button/PaginationButton.js +5 -5
- package/build/cjs/components/src/components/CartItemSummary/CartItemSummary.js +7 -7
- package/build/cjs/components/src/components/CartItemSummary/CartItemSummary.styles.js +4 -4
- package/build/cjs/components/src/components/CartSummary/CartSummary.js +35 -35
- package/build/cjs/components/src/components/CartSummary/CartSummary.styles.js +7 -7
- package/build/cjs/components/src/components/Chips/Chip.js +4 -4
- package/build/cjs/components/src/components/Chips/Chip.styles.js +3 -3
- package/build/cjs/components/src/components/Collapsable/Collapsable.js +7 -7
- package/build/cjs/components/src/components/Collapsable/Collapsable.styles.js +4 -4
- package/build/cjs/components/src/components/CustomerInfoBlock/CustomerInfoBlock.js +2 -2
- package/build/cjs/components/src/components/CustomerInfoBlock/CustomerInfoBlock.styles.js +1 -1
- package/build/cjs/components/src/components/DateBox/DateBox.js +4 -4
- package/build/cjs/components/src/components/DateBox/DateBox.styles.js +4 -4
- package/build/cjs/components/src/components/DeliverySlotItem/DeliverySlotItem.js +8 -8
- package/build/cjs/components/src/components/DeliverySlotItem/DeliverySlotItem.styles.js +5 -5
- package/build/cjs/components/src/components/DeliveryTimeBlock/DeliveryTimeBlock.js +5 -5
- package/build/cjs/components/src/components/DeliveryTimeBlock/DeliveryTimeBlock.styles.js +2 -2
- package/build/cjs/components/src/components/Divider/Divider.js +1 -1
- package/build/cjs/components/src/components/Divider/Divider.styles.js +1 -1
- package/build/cjs/components/src/components/DotIndicator/DotIndicator.js +1 -1
- package/build/cjs/components/src/components/DotIndicator/DotIndicator.styles.js +1 -1
- package/build/cjs/components/src/components/Form/Form.js +2 -2
- package/build/cjs/components/src/components/Form/Form.styles.js +2 -2
- package/build/cjs/components/src/components/FormControl/FormControl.js +4 -4
- package/build/cjs/components/src/components/FormControl/FormControl.styles.js +2 -2
- package/build/cjs/components/src/components/FormElements/Checkbox/Checkbox.js +4 -4
- package/build/cjs/components/src/components/FormElements/Checkbox/Checkbox.styles.js +3 -3
- package/build/cjs/components/src/components/FormElements/Input/Input.js +1 -1
- package/build/cjs/components/src/components/FormElements/Input/Input.styles.js +1 -1
- package/build/cjs/components/src/components/FormElements/Radio/Radio.js +3 -3
- package/build/cjs/components/src/components/FormElements/Radio/Radio.styles.js +3 -3
- package/build/cjs/components/src/components/FormElements/Switch/Switch.js +4 -4
- package/build/cjs/components/src/components/FormElements/Switch/Switch.styles.js +4 -4
- package/build/cjs/components/src/components/FormElements/TextArea/TextArea.js +1 -1
- package/build/cjs/components/src/components/FormElements/TextArea/TextArea.styles.js +1 -1
- package/build/cjs/components/src/components/FormGroup/FormGroup.js +1 -1
- package/build/cjs/components/src/components/FormGroup/FormGroup.styles.js +1 -1
- package/build/cjs/components/src/components/GridContainer/GridContainer.js +1 -1
- package/build/cjs/components/src/components/GridContainer/GridContainer.styles.js +1 -1
- package/build/cjs/components/src/components/Header/Header.js +7 -7
- package/build/cjs/components/src/components/Header/Header.styles.js +4 -4
- package/build/cjs/components/src/components/HeaderLink/HeaderLink.js +3 -3
- package/build/cjs/components/src/components/HeaderLink/HeaderLink.styles.js +3 -3
- package/build/cjs/components/src/components/HighlightBox/HighlightBox.js +1 -1
- package/build/cjs/components/src/components/HighlightBox/HighlightBox.styles.js +1 -1
- package/build/cjs/components/src/components/IconToolTip/IconToolTip.js +10 -10
- package/build/cjs/components/src/components/IconToolTip/IconToolTip.styles.js +5 -5
- package/build/cjs/components/src/components/InfoTextBlock/InfoTextBlock.js +6 -6
- package/build/cjs/components/src/components/InfoTextBlock/InfoTextBlock.styles.js +5 -5
- package/build/cjs/components/src/components/LayoutBox/LayoutBox.js +1 -1
- package/build/cjs/components/src/components/LayoutBox/LayoutBox.styles.js +1 -1
- package/build/cjs/components/src/components/Links/Link.js +3 -3
- package/build/cjs/components/src/components/Links/Link.styles.js +2 -2
- package/build/cjs/components/src/components/ListItem/ListItem.js +10 -10
- package/build/cjs/components/src/components/ListItem/ListItem.styles.js +6 -6
- package/build/cjs/components/src/components/ListItemWithRadio/ListItemWithRadio.js +14 -14
- package/build/cjs/components/src/components/ListItemWithRadio/ListItemWithRadio.styles.js +7 -7
- package/build/cjs/components/src/components/Logo/Logo.js +1 -1
- package/build/cjs/components/src/components/Logo/Logo.styles.js +1 -1
- package/build/cjs/components/src/components/Menu/Menu.js +3 -3
- package/build/cjs/components/src/components/Menu/Menu.styles.js +3 -3
- package/build/cjs/components/src/components/Menu/MenuItem.js +1 -1
- package/build/cjs/components/src/components/MobileTable/MobileTable.styles.js +3 -3
- package/build/cjs/components/src/components/Modal/Modal.js +14 -14
- package/build/cjs/components/src/components/Modal/Modal.styles.js +7 -7
- package/build/cjs/components/src/components/Pagination/Pagination.js +11 -8
- package/build/cjs/components/src/components/Pagination/Pagination.js.map +1 -1
- package/build/cjs/components/src/components/Pagination/Pagination.styles.js +2 -2
- package/build/cjs/components/src/components/ProgressBar/ProgressBar.js +2 -2
- package/build/cjs/components/src/components/ProgressBar/ProgressBar.styled.js +2 -2
- package/build/cjs/components/src/components/QuantitySelector/QuantitySelector.js +9 -11
- package/build/cjs/components/src/components/QuantitySelector/QuantitySelector.js.map +1 -1
- package/build/cjs/components/src/components/QuantitySelector/QuantitySelector.styles.js +3 -3
- package/build/cjs/components/src/components/RadioBox/RadioBoxItem.js +2 -2
- package/build/cjs/components/src/components/RadioBox/RadioBoxItem.styles.js +1 -1
- package/build/cjs/components/src/components/RadioBox/RadioBoxList.js +8 -8
- package/build/cjs/components/src/components/RadioBox/RadioBoxList.styles.js +4 -4
- package/build/cjs/components/src/components/RadioGroup/RadioGroup.js +3 -3
- package/build/cjs/components/src/components/RadioGroup/RadioGroup.styles.js +2 -2
- package/build/cjs/components/src/components/RadioListItem/RadioListItem.js +10 -10
- package/build/cjs/components/src/components/RadioListItem/RadioListItem.styles.js +7 -7
- package/build/cjs/components/src/components/RippleContainer/RippleContainer.js +1 -1
- package/build/cjs/components/src/components/RippleContainer/RippleContainer.styles.js +1 -1
- package/build/cjs/components/src/components/Select/Select.js +2 -2
- package/build/cjs/components/src/components/Select/Select.styles.js +2 -2
- package/build/cjs/components/src/components/Slider/Slider.js +7 -7
- package/build/cjs/components/src/components/Slider/Slider.styles.js +5 -5
- package/build/cjs/components/src/components/Spacer/Spacer.js +1 -1
- package/build/cjs/components/src/components/Spacer/Spacer.styles.js +1 -1
- package/build/cjs/components/src/components/Spinner/Spinner.js +1 -1
- package/build/cjs/components/src/components/Spinner/Spinner.styles.js +1 -1
- package/build/cjs/components/src/components/Stepper/Stepper.styles.js +4 -4
- package/build/cjs/components/src/components/Stepper/StepperList.js +4 -4
- package/build/cjs/components/src/components/Stepper/StepperListItem.js +6 -6
- package/build/cjs/components/src/components/StepperMobile/StepperMobile.js +8 -8
- package/build/cjs/components/src/components/StepperMobile/StepperMobile.styles.js +2 -2
- package/build/cjs/components/src/components/Table/Table.styles.js +5 -5
- package/build/cjs/components/src/components/Timeline/Timeline.js +12 -15
- package/build/cjs/components/src/components/Timeline/Timeline.js.map +1 -1
- package/build/cjs/components/src/components/Timeline/Timeline.styles.js +4 -4
- package/build/cjs/components/src/components/ToolTip/ToolTip.js +3 -3
- package/build/cjs/components/src/components/ToolTip/ToolTip.styles.js +2 -2
- package/build/cjs/components/src/components/UnorderedList/UnorderedList.styles.js +2 -2
- 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/containers/PageContainer/PageContainer.js +2 -2
- package/build/cjs/components/src/containers/PageContainer/PageContainer.styles.js +2 -2
- package/build/cjs/components/src/containers/TwoColumnsContainer/TwoColumnsPageContainer.js +4 -4
- package/build/cjs/components/src/containers/TwoColumnsContainer/TwoColumnsPageContainer.styles.js +4 -4
- package/build/cjs/components/src/index.js +6 -18
- package/build/cjs/components/src/index.js.map +1 -1
- package/build/cjs/design-tokens/build/index.js +11 -2
- package/build/cjs/design-tokens/build/index.js.map +1 -1
- package/build/cjs/utils/build/index.js +5 -5
- package/build/cjs/utils/build/index.js.map +1 -1
- package/build/es/_virtual/index.js +4 -0
- package/build/es/_virtual/index.js.map +1 -0
- package/build/es/_virtual/index2.js +4 -0
- package/build/es/_virtual/index2.js.map +1 -0
- package/build/es/components/src/components/BoxArrow/BoxArrow.js +1 -1
- package/build/es/components/src/components/Button/Button.js +6 -5
- package/build/es/components/src/components/Button/Button.js.map +1 -1
- package/build/es/components/src/components/Button/Button.styles.js +20 -11
- package/build/es/components/src/components/Button/Button.styles.js.map +1 -1
- package/build/es/components/src/components/ListItem/assets/fallback_grocery.svg.js +1 -1
- package/build/es/components/src/components/Pagination/Pagination.js +5 -2
- package/build/es/components/src/components/Pagination/Pagination.js.map +1 -1
- package/build/es/components/src/components/Timeline/Timeline.js +12 -15
- package/build/es/components/src/components/Timeline/Timeline.js.map +1 -1
- package/build/es/design-tokens/build/index.js +11 -2
- package/build/es/design-tokens/build/index.js.map +1 -1
- package/build/es/utils/build/index.js +4 -4
- package/build/es/utils/build/index.js.map +1 -1
- package/package.json +7 -7
- package/build/cjs/_virtual/index.js_commonjs-exports.map +0 -1
- package/build/cjs/_virtual/index2.js_commonjs-exports.map +0 -1
- package/build/es/_virtual/index.js_commonjs-exports +0 -4
- package/build/es/_virtual/index.js_commonjs-exports.map +0 -1
- package/build/es/_virtual/index2.js_commonjs-exports +0 -4
- package/build/es/_virtual/index2.js_commonjs-exports.map +0 -1
|
@@ -62,15 +62,15 @@ var SpinnerSize = function (size) {
|
|
|
62
62
|
return '26px';
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
|
-
var BaseButton = styled__default[
|
|
65
|
+
var BaseButton = styled__default["default"].button(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n /* reset */\n outline: none;\n border: none;\n\n backface-visibility: hidden;\n cursor: pointer;\n border-radius: ", "px;\n /* overflow: hidden; */\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 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: 1;\n }\n }\n &:active {\n ::before {\n opacity: 1;\n }\n ::after {\n opacity: 0;\n }\n }\n /* Media Queries */\n\n @media (max-width: ", "px) {\n align-self: ", ";\n }\n"], ["\n /* reset */\n outline: none;\n border: none;\n\n backface-visibility: hidden;\n cursor: pointer;\n border-radius: ", "px;\n /* overflow: hidden; */\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 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: 1;\n }\n }\n &:active {\n ::before {\n opacity: 1;\n }\n ::after {\n opacity: 0;\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) {
|
|
66
66
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
67
67
|
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) ||
|
|
68
68
|
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) ||
|
|
69
69
|
props.isDisabled
|
|
70
70
|
? (_f = (_e = props === null || props === void 0 ? void 0 : props.theme) === null || _e === void 0 ? void 0 : _e.palette) === null || _f === void 0 ? void 0 : _f.white
|
|
71
71
|
: (_h = (_g = props === null || props === void 0 ? void 0 : props.theme) === null || _g === void 0 ? void 0 : _g.palette) === null || _h === void 0 ? void 0 : _h.darkest;
|
|
72
|
-
}, function (props) { return (props.fullWidth ? '100%' : 'auto'); }, function (props) { var _a; return (_a = props.theme.attributes) === null ||
|
|
73
|
-
var BasePrimaryButton = styled__default[
|
|
72
|
+
}, function (props) { return (props.fullWidth ? '100%' : 'auto'); }, 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) { var _a; return (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.boxShadow.buttonHover; }, function (props) { var _a; return (_a = props.theme.animations) === null || _a === void 0 ? void 0 : _a.buttonTransition; }, function (props) { var _a; return (_a = props.theme.animations) === null || _a === void 0 ? void 0 : _a.buttonTransition; }, 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) { var _a; return (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.boxShadow.buttonActive; }, function (props) { var _a; return (_a = props.theme.animations) === null || _a === void 0 ? void 0 : _a.buttonTransition; }, function (props) { var _a; return (_a = props.theme.animations) === null || _a === void 0 ? void 0 : _a.buttonTransition; }, 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'); });
|
|
73
|
+
var BasePrimaryButton = styled__default["default"](BaseButton)(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n /* TypoGraphy */\n\n font-size: ", ";\n line-height: ", ";\n\n /* shadow */\n\n box-shadow: ", ";\n\n /* Padding */\n\n padding: ", ";\n\n @media (min-width: ", "px) {\n font-size: ", ";\n\n padding: ", ";\n\n box-shadow: ", ";\n }\n"], ["\n /* TypoGraphy */\n\n font-size: ", ";\n line-height: ", ";\n\n /* shadow */\n\n box-shadow: ", ";\n\n /* Padding */\n\n padding: ", ";\n\n @media (min-width: ", "px) {\n font-size: ", ";\n\n padding: ", ";\n\n box-shadow: ", ";\n }\n"])), function (props) { return ButtonFontSize(props.xsSize || props.size); }, function (props) {
|
|
74
74
|
var _a, _b;
|
|
75
75
|
return props.size === 'small'
|
|
76
76
|
? ((_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.lineHeight.s2) + "px"
|
|
@@ -104,11 +104,19 @@ var BasePrimaryButton = styled__default['default'](BaseButton)(templateObject_2
|
|
|
104
104
|
props.color === ((_k = (_j = props === null || props === void 0 ? void 0 : props.theme) === null || _j === void 0 ? void 0 : _j.palette) === null || _k === void 0 ? void 0 : _k.lightest)
|
|
105
105
|
? "inset 0px 0px 0px 1px " + ((_l = props.theme.palette) === null || _l === void 0 ? void 0 : _l.medium)
|
|
106
106
|
: 'none';
|
|
107
|
-
}
|
|
108
|
-
var
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
107
|
+
});
|
|
108
|
+
var ButtonChildContainer = styled__default["default"].div(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n display: flex;\n flex-direction: ", ";\n width: 100%;\n gap: ", "px;\n align-items: center;\n justify-content: center;\n flex-wrap: ", ";\n"], ["\n display: flex;\n flex-direction: ", ";\n width: 100%;\n gap: ", "px;\n align-items: center;\n justify-content: center;\n flex-wrap: ", ";\n"])), function (props) { return (props.flexReverse ? 'row-reverse' : 'row'); }, function (props) {
|
|
109
|
+
var _a, _b;
|
|
110
|
+
return props.childGap
|
|
111
|
+
? props.childGap
|
|
112
|
+
: props.size === 'small'
|
|
113
|
+
? (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.buttonChildSmallGap
|
|
114
|
+
: (_b = props.theme.constants) === null || _b === void 0 ? void 0 : _b.buttonChildGap;
|
|
115
|
+
}, function (props) { return (props.noWrap ? 'nowrap' : 'wrap'); });
|
|
116
|
+
var Loading = styled__default["default"].div(templateObject_4 || (templateObject_4 = _tslib.__makeTemplateObject(["\n position: absolute;\n z-index: 3;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n"], ["\n position: absolute;\n z-index: 3;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n"])));
|
|
117
|
+
var LoadingContainer = styled__default["default"].div(templateObject_5 || (templateObject_5 = _tslib.__makeTemplateObject(["\n width: ", ";\n height: ", ";\n\n @media (min-width: ", "px) {\n width: ", ";\n height: ", ";\n }\n"], ["\n width: ", ";\n height: ", ";\n\n @media (min-width: ", "px) {\n width: ", ";\n height: ", ";\n }\n"])), function (props) { return SpinnerSize(props.xsSize || props.size); }, function (props) { return SpinnerSize(props.xsSize || props.size); }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.xs; }, function (props) { return SpinnerSize(props.size); }, function (props) { return SpinnerSize(props.size); });
|
|
118
|
+
var LoadingSpinner = styled__default["default"](Spinner.Spinner)(templateObject_6 || (templateObject_6 = _tslib.__makeTemplateObject(["\n width: 100%;\n height: 100%;\n"], ["\n width: 100%;\n height: 100%;\n"])));
|
|
119
|
+
var BaseIconButton = styled__default["default"](BaseButton)(templateObject_7 || (templateObject_7 = _tslib.__makeTemplateObject(["\n padding: ", "px;\n border-radius: 50%;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n margin: 0;\n height: ", "px;\n width: ", "px;\n min-width: ", "px;\n ", ";\n\n &::after {\n border-radius: 50%;\n box-shadow: ", ";\n }\n &::before {\n border-radius: 50%;\n }\n"], ["\n padding: ", "px;\n border-radius: 50%;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n margin: 0;\n height: ", "px;\n width: ", "px;\n min-width: ", "px;\n ", ";\n\n &::after {\n border-radius: 50%;\n box-shadow: ", ";\n }\n &::before {\n border-radius: 50%;\n }\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs; }, function (props) { return props.height || 32; }, function (props) { return props.width || 32; }, function (props) { return props.width || 32; }, function (props) {
|
|
112
120
|
var _a;
|
|
113
121
|
return props.shadow && props.border
|
|
114
122
|
? "box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.15), inset 0px 0px 0px 1px " + ((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.medium)
|
|
@@ -118,18 +126,21 @@ var BaseIconButton = styled__default['default'](BaseButton)(templateObject_6 ||
|
|
|
118
126
|
? "box-shadow: inset 0px 0px 0px 1px " + props.border
|
|
119
127
|
: '';
|
|
120
128
|
}, function (props) { var _a, _b; return (_b = (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.boxShadow) === null || _b === void 0 ? void 0 : _b.iconButtonHover; });
|
|
121
|
-
var BasePaginationButton = styled__default[
|
|
129
|
+
var BasePaginationButton = styled__default["default"](BaseButton)(templateObject_8 || (templateObject_8 = _tslib.__makeTemplateObject(["\n height: ", "px;\n width: ", "px;\n min-width: ", "px;\n text-align: center;\n ", ";\n display: inline-flex;\n align-items: center;\n justify-content: center;\n"], ["\n height: ", "px;\n width: ", "px;\n min-width: ", "px;\n text-align: center;\n ", ";\n display: inline-flex;\n align-items: center;\n justify-content: center;\n"])), function (props) { return props.height || 36; }, function (props) { return props.width || 36; }, function (props) { return props.width || 36; }, function (props) {
|
|
122
130
|
var _a, _b, _c;
|
|
123
131
|
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.white)
|
|
124
132
|
? 'box-shadow: inset 0px -1px 0px rgba(0, 0, 0, 0.15)'
|
|
125
133
|
: "box-shadow: inset 0px 0px 0px 1px " + ((_c = props.theme.palette) === null || _c === void 0 ? void 0 : _c.medium);
|
|
126
134
|
});
|
|
127
|
-
var
|
|
135
|
+
var ButtonBadge = styled__default["default"].div(templateObject_9 || (templateObject_9 = _tslib.__makeTemplateObject(["\n position: absolute;\n top: ", "px;\n right: ", "px;\n padding: 0 7px;\n background: black;\n color: white;\n width: fit-content;\n border-radius: 100px;\n font-size: ", "px;\n line-height: ", "px;\n"], ["\n position: absolute;\n top: ", "px;\n right: ", "px;\n padding: 0 7px;\n background: black;\n color: white;\n width: fit-content;\n border-radius: 100px;\n font-size: ", "px;\n line-height: ", "px;\n"])), function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.buttonBadgeTopPosition; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.buttonBadgeRightPosition; }, function (props) { var _a, _b; return (_b = (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size) === null || _b === void 0 ? void 0 : _b.xs; }, 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; });
|
|
136
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9;
|
|
128
137
|
|
|
129
138
|
exports.BaseButton = BaseButton;
|
|
130
139
|
exports.BaseIconButton = BaseIconButton;
|
|
131
140
|
exports.BasePaginationButton = BasePaginationButton;
|
|
132
141
|
exports.BasePrimaryButton = BasePrimaryButton;
|
|
142
|
+
exports.ButtonBadge = ButtonBadge;
|
|
143
|
+
exports.ButtonChildContainer = ButtonChildContainer;
|
|
133
144
|
exports.Loading = Loading;
|
|
134
145
|
exports.LoadingContainer = LoadingContainer;
|
|
135
146
|
exports.LoadingSpinner = LoadingSpinner;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Button.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -12,12 +12,12 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
12
12
|
|
|
13
13
|
function IconButton(_a) {
|
|
14
14
|
var _b = _a.color, color = _b === void 0 ? 'darkest' : _b, height = _a.height, icon = _a.icon, isDisabled = _a.isDisabled, loading = _a.loading, noWrap = _a.noWrap, onClick = _a.onClick, border = _a.border, shadow = _a.shadow, width = _a.width;
|
|
15
|
-
return (React__default[
|
|
16
|
-
loading && (React__default[
|
|
17
|
-
React__default[
|
|
18
|
-
React__default[
|
|
15
|
+
return (React__default["default"].createElement(Button_styles.BaseIconButton, { color: designTokens.theme && designTokens.theme.palette ? designTokens.theme === null || designTokens.theme === void 0 ? void 0 : designTokens.theme.palette[color] : '#333333', height: height, icon: icon, isDisabled: loading || isDisabled, loading: loading || null, noWrap: noWrap, onClick: function (e) { return onClick && onClick(e); }, width: width, border: border, shadow: shadow },
|
|
16
|
+
loading && (React__default["default"].createElement(Button_styles.Loading, null,
|
|
17
|
+
React__default["default"].createElement(Button_styles.LoadingContainer, null,
|
|
18
|
+
React__default["default"].createElement(Button_styles.LoadingSpinner, null)))),
|
|
19
19
|
icon,
|
|
20
|
-
React__default[
|
|
20
|
+
React__default["default"].createElement("span", { className: "ripple" })));
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
exports.IconButton = IconButton;
|
|
@@ -12,12 +12,12 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
12
12
|
|
|
13
13
|
function PaginationButton(_a) {
|
|
14
14
|
var _b = _a.color, color = _b === void 0 ? 'primary' : _b, height = _a.height, icon = _a.icon, isDisabled = _a.isDisabled, loading = _a.loading, noWrap = _a.noWrap, onClick = _a.onClick, width = _a.width, children = _a.children;
|
|
15
|
-
return (React__default[
|
|
16
|
-
loading && (React__default[
|
|
17
|
-
React__default[
|
|
18
|
-
React__default[
|
|
15
|
+
return (React__default["default"].createElement(Button_styles.BasePaginationButton, { color: designTokens.theme && designTokens.theme.palette ? designTokens.theme === null || designTokens.theme === void 0 ? void 0 : designTokens.theme.palette[color] : 'white', height: height, icon: icon, isDisabled: loading || isDisabled, loading: loading || null, noWrap: noWrap, onClick: function (e) { return onClick && onClick(e); }, width: width },
|
|
16
|
+
loading && (React__default["default"].createElement(Button_styles.Loading, null,
|
|
17
|
+
React__default["default"].createElement(Button_styles.LoadingContainer, null,
|
|
18
|
+
React__default["default"].createElement(Button_styles.LoadingSpinner, null)))),
|
|
19
19
|
icon || children,
|
|
20
|
-
React__default[
|
|
20
|
+
React__default["default"].createElement("span", { className: "ripple" })));
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
exports.PaginationButton = PaginationButton;
|
|
@@ -15,16 +15,16 @@ var Skeleton__default = /*#__PURE__*/_interopDefaultLegacy(Skeleton);
|
|
|
15
15
|
|
|
16
16
|
function CartItemSummary(_a) {
|
|
17
17
|
var product = _a.product, withParenthesis = _a.withParenthesis, _b = _a.unit, unit = _b === void 0 ? "st" : _b;
|
|
18
|
-
return (React__default[
|
|
18
|
+
return (React__default["default"].createElement(CartItemSummary_styles.CartItemSummaryWrapper, null,
|
|
19
19
|
product &&
|
|
20
20
|
(product.amount === 0 || product.amount) &&
|
|
21
21
|
(product === null || product === void 0 ? void 0 : product.cancelledQuantity) !== 0 &&
|
|
22
|
-
(product === null || product === void 0 ? void 0 : product.cancelledQuantity) && (React__default[
|
|
23
|
-
React__default[
|
|
24
|
-
React__default[
|
|
25
|
-
React__default[
|
|
26
|
-
React__default[
|
|
27
|
-
React__default[
|
|
22
|
+
(product === null || product === void 0 ? void 0 : product.cancelledQuantity) && (React__default["default"].createElement(CartItemSummary_styles.CancelledWrapper, null,
|
|
23
|
+
React__default["default"].createElement(typography.BodyText, { size: typography.TextTypes.TextSize.SMALL, lineThrough: true }, (product === null || product === void 0 ? void 0 : product.cancelledQuantity) ? (product.cancelledQuantity + " st") : (React__default["default"].createElement(Skeleton__default["default"], { width: 100 }))),
|
|
24
|
+
React__default["default"].createElement(CartItemSummary_styles.AmountText, { lineThrough: true, fontWeight: withParenthesis ? 'regular' : 'semiBold' }, product ? (utils.formatPrice(product.cancelledAmount, withParenthesis)) : (React__default["default"].createElement(Skeleton__default["default"], { width: 100 }))))),
|
|
25
|
+
React__default["default"].createElement(CartItemSummary_styles.ItemInformationContainer, null,
|
|
26
|
+
React__default["default"].createElement(typography.BodyText, { size: typography.TextTypes.TextSize.SMALL }, (product === null || product === void 0 ? void 0 : product.quantity) || (product === null || product === void 0 ? void 0 : product.quantity) === 0 ? (product.quantity + " " + unit) : (React__default["default"].createElement(Skeleton__default["default"], { width: 100 }))),
|
|
27
|
+
React__default["default"].createElement(CartItemSummary_styles.AmountText, { fontWeight: withParenthesis ? 'regular' : 'semiBold' }, product ? (utils.formatPrice(product.amount, withParenthesis)) : (React__default["default"].createElement(Skeleton__default["default"], { width: 100 }))))));
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
exports.CartItemSummary = CartItemSummary;
|
|
@@ -10,10 +10,10 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
10
10
|
|
|
11
11
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
12
12
|
|
|
13
|
-
var CartItemSummaryWrapper = styled__default[
|
|
14
|
-
var CancelledWrapper = styled__default[
|
|
15
|
-
var ItemInformationContainer = styled__default[
|
|
16
|
-
var AmountText = styled__default[
|
|
13
|
+
var CartItemSummaryWrapper = styled__default["default"].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: 20px;\n @media (min-width: ", "px) {\n flex-direction: row;\n }\n"], ["\n display: flex;\n flex-direction: column;\n gap: 20px;\n @media (min-width: ", "px) {\n flex-direction: row;\n }\n"])), function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.xs; });
|
|
14
|
+
var CancelledWrapper = styled__default["default"].div(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n"])));
|
|
15
|
+
var ItemInformationContainer = styled__default["default"].div(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n"])));
|
|
16
|
+
var AmountText = styled__default["default"](typography.H3)(templateObject_4 || (templateObject_4 = _tslib.__makeTemplateObject(["\n white-space: nowrap;\n"], ["\n white-space: nowrap;\n"])));
|
|
17
17
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
18
18
|
|
|
19
19
|
exports.AmountText = AmountText;
|
|
@@ -39,51 +39,51 @@ function CartSummary(_a) {
|
|
|
39
39
|
var groceries = (_d = cartSummary.groceries) !== null && _d !== void 0 ? _d : [];
|
|
40
40
|
var sumOfBags = calculateSummaryLine(bags);
|
|
41
41
|
var sumOfGroceries = calculateSummaryLine(groceries);
|
|
42
|
-
return (React__default[
|
|
43
|
-
React__default[
|
|
44
|
-
cartSummary.title && (React__default[
|
|
45
|
-
React__default[
|
|
46
|
-
React__default[
|
|
47
|
-
React__default[
|
|
48
|
-
bags.length > 0 && (React__default[
|
|
49
|
-
React__default[
|
|
42
|
+
return (React__default["default"].createElement(CartSummary_styles.CartSummaryContainer, null,
|
|
43
|
+
React__default["default"].createElement(CartSummary_styles.CartPaymentContainer, null,
|
|
44
|
+
cartSummary.title && (React__default["default"].createElement(CartSummary_styles.CartSummaryTitle, null,
|
|
45
|
+
React__default["default"].createElement(typography.H3, null, cartSummary.title),
|
|
46
|
+
React__default["default"].createElement(typography.BodyText, null, cartSummary.subTitle))),
|
|
47
|
+
React__default["default"].createElement(CartSummary_styles.CartSummaryHeader, { title: cartSummary.title },
|
|
48
|
+
bags.length > 0 && (React__default["default"].createElement(CartSummary_styles.CartLine, null,
|
|
49
|
+
React__default["default"].createElement(typography.BodyText, null,
|
|
50
50
|
"matkassar ",
|
|
51
51
|
sumOfBags.quantity,
|
|
52
52
|
" st"),
|
|
53
|
-
React__default[
|
|
54
|
-
sumOfBags.cancelledAmount > 0 && (React__default[
|
|
55
|
-
React__default[
|
|
56
|
-
groceries.length > 0 && (React__default[
|
|
57
|
-
React__default[
|
|
53
|
+
React__default["default"].createElement(CartSummary_styles.AmountWrapper, null,
|
|
54
|
+
sumOfBags.cancelledAmount > 0 && (React__default["default"].createElement(typography.BodyText, { lineThrough: true, color: (_e = index.theme === null || index.theme === void 0 ? void 0 : index.theme.palette) === null || _e === void 0 ? void 0 : _e.dark }, utils.formatPrice(sumOfBags.cancelledAmount))),
|
|
55
|
+
React__default["default"].createElement(typography.H3, { fontWeight: 'semiBold' }, utils.formatPrice(sumOfBags.amount))))),
|
|
56
|
+
groceries.length > 0 && (React__default["default"].createElement(CartSummary_styles.CartLine, null,
|
|
57
|
+
React__default["default"].createElement(typography.BodyText, null,
|
|
58
58
|
"matvaror ",
|
|
59
59
|
sumOfGroceries.quantity,
|
|
60
60
|
" st"),
|
|
61
|
-
React__default[
|
|
62
|
-
sumOfGroceries.cancelledAmount > 0 && (React__default[
|
|
63
|
-
React__default[
|
|
64
|
-
(charges === null || charges === void 0 ? void 0 : charges.length) > 0 && (React__default[
|
|
61
|
+
React__default["default"].createElement(CartSummary_styles.AmountWrapper, null,
|
|
62
|
+
sumOfGroceries.cancelledAmount > 0 && (React__default["default"].createElement(typography.BodyText, { lineThrough: true, color: (_f = index.theme === null || index.theme === void 0 ? void 0 : index.theme.palette) === null || _f === void 0 ? void 0 : _f.dark }, utils.formatPrice(sumOfGroceries.cancelledAmount))),
|
|
63
|
+
React__default["default"].createElement(typography.H3, { fontWeight: 'semiBold' }, utils.formatPrice(sumOfGroceries.amount))))),
|
|
64
|
+
(charges === null || charges === void 0 ? void 0 : charges.length) > 0 && (React__default["default"].createElement(Divider.Divider, { xsSpacing: (_g = index.theme.spacings) === null || _g === void 0 ? void 0 : _g.xs, lgSpacing: (_h = index.theme.spacings) === null || _h === void 0 ? void 0 : _h.xs })), charges === null || charges === void 0 ? void 0 :
|
|
65
65
|
charges.map(function (charge) {
|
|
66
66
|
var _a, _b;
|
|
67
|
-
return (React__default[
|
|
68
|
-
React__default[
|
|
69
|
-
React__default[
|
|
70
|
-
charge.cancelledAmount > 0 && (React__default[
|
|
71
|
-
React__default[
|
|
67
|
+
return (React__default["default"].createElement(CartSummary_styles.CartLine, { key: charge.name },
|
|
68
|
+
React__default["default"].createElement(typography.BodyText, null, (_a = charge === null || charge === void 0 ? void 0 : charge.name) === null || _a === void 0 ? void 0 : _a.toLowerCase()),
|
|
69
|
+
React__default["default"].createElement(CartSummary_styles.AmountWrapper, null,
|
|
70
|
+
charge.cancelledAmount > 0 && (React__default["default"].createElement(typography.BodyText, { lineThrough: true, color: (_b = index.theme === null || index.theme === void 0 ? void 0 : index.theme.palette) === null || _b === void 0 ? void 0 : _b.dark }, utils.formatPrice(charge.cancelledAmount))),
|
|
71
|
+
React__default["default"].createElement(typography.BodyText, null, utils.formatPrice(charge.amount)))));
|
|
72
72
|
}),
|
|
73
|
-
cartSummary.totalDiscount > 0 && (React__default[
|
|
74
|
-
React__default[
|
|
75
|
-
React__default[
|
|
76
|
-
React__default[
|
|
73
|
+
cartSummary.totalDiscount > 0 && (React__default["default"].createElement(CartSummary_styles.CartLine, null,
|
|
74
|
+
React__default["default"].createElement(typography.BodyText, { color: (_j = index.theme === null || index.theme === void 0 ? void 0 : index.theme.palette) === null || _j === void 0 ? void 0 : _j.alertRed }, saveLabel),
|
|
75
|
+
React__default["default"].createElement(typography.BodyText, { color: (_k = index.theme === null || index.theme === void 0 ? void 0 : index.theme.palette) === null || _k === void 0 ? void 0 : _k.alertRed }, utils.formatPrice(cartSummary.totalDiscount))))),
|
|
76
|
+
React__default["default"].createElement(CartSummary_styles.CartSummaryFooter, null,
|
|
77
77
|
((_l = cartSummary.deliveryFee) === null || _l === void 0 ? void 0 : _l.amount) &&
|
|
78
|
-
cartSummary.deliveryFee.amount > 0 && (React__default[
|
|
79
|
-
React__default[
|
|
80
|
-
React__default[
|
|
81
|
-
React__default[
|
|
82
|
-
React__default[
|
|
83
|
-
React__default[
|
|
84
|
-
React__default[
|
|
85
|
-
React__default[
|
|
86
|
-
React__default[
|
|
78
|
+
cartSummary.deliveryFee.amount > 0 && (React__default["default"].createElement(CartSummary_styles.CartLine, null,
|
|
79
|
+
React__default["default"].createElement(typography.BodyText, null, shippingLabel),
|
|
80
|
+
React__default["default"].createElement(typography.BodyText, null, utils.formatPrice(cartSummary.deliveryFee.amount)))),
|
|
81
|
+
React__default["default"].createElement(CartSummary_styles.CartLine, null,
|
|
82
|
+
React__default["default"].createElement(typography.H3, { fontWeight: 'semiBold' }, totalLabel),
|
|
83
|
+
React__default["default"].createElement(typography.H3, { fontWeight: 'semiBold' }, utils.formatPrice(cartSummary.totalAmount))),
|
|
84
|
+
React__default["default"].createElement(CartSummary_styles.CartLine, null,
|
|
85
|
+
React__default["default"].createElement(typography.BodyText, null, taxLabel),
|
|
86
|
+
React__default["default"].createElement(typography.BodyText, null, utils.formatPrice(cartSummary.totalTaxAmount)))))));
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
exports.CartSummary = CartSummary;
|
|
@@ -9,13 +9,13 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
9
9
|
|
|
10
10
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
11
11
|
|
|
12
|
-
var CartSummaryContainer = styled__default[
|
|
13
|
-
var CartPaymentContainer = styled__default[
|
|
14
|
-
var CartSummaryHeader = styled__default[
|
|
15
|
-
var CartSummaryFooter = styled__default[
|
|
16
|
-
var CartLine = styled__default[
|
|
17
|
-
var AmountWrapper = styled__default[
|
|
18
|
-
var CartSummaryTitle = styled__default[
|
|
12
|
+
var CartSummaryContainer = styled__default["default"].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject([""], [""])));
|
|
13
|
+
var CartPaymentContainer = styled__default["default"].div(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n background: ", ";\n"], ["\n background: ", ";\n"])), function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.yellowLighter; });
|
|
14
|
+
var CartSummaryHeader = styled__default["default"].div(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n padding: ", "px;\n ", ";\n display: flex;\n flex-direction: column;\n gap: ", "px;\n"], ["\n padding: ", "px;\n ", ";\n display: flex;\n flex-direction: column;\n gap: ", "px;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.md; }, function (props) { var _a; return props.title && "padding-top: " + ((_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm) + "px"; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; });
|
|
15
|
+
var CartSummaryFooter = styled__default["default"].div(templateObject_4 || (templateObject_4 = _tslib.__makeTemplateObject(["\n padding: ", "px;\n background: ", ";\n display: flex;\n flex-direction: column;\n gap: ", "px;\n"], ["\n padding: ", "px;\n background: ", ";\n display: flex;\n flex-direction: column;\n gap: ", "px;\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.palette) === null || _a === void 0 ? void 0 : _a.yellowLight; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; });
|
|
16
|
+
var CartLine = styled__default["default"].div(templateObject_5 || (templateObject_5 = _tslib.__makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n text-decoration: ", ";\n"], ["\n display: flex;\n justify-content: space-between;\n text-decoration: ", ";\n"])), function (props) { return props.cancelled && 'line-through'; });
|
|
17
|
+
var AmountWrapper = styled__default["default"].div(templateObject_6 || (templateObject_6 = _tslib.__makeTemplateObject(["\n display: flex;\n gap: ", "px;\n"], ["\n display: flex;\n gap: ", "px;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; });
|
|
18
|
+
var CartSummaryTitle = styled__default["default"].div(templateObject_7 || (templateObject_7 = _tslib.__makeTemplateObject(["\n padding: ", "px 0\n ", "px;\n margin: 0 ", "px;\n display: flex;\n gap: ", "px;\n border-bottom: 1px solid ", ";\n"], ["\n padding: ", "px 0\n ", "px;\n margin: 0 ", "px;\n display: flex;\n gap: ", "px;\n border-bottom: 1px solid ", ";\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.sm; }, 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; }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.light; });
|
|
19
19
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
|
|
20
20
|
|
|
21
21
|
exports.AmountWrapper = AmountWrapper;
|
|
@@ -16,10 +16,10 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
16
16
|
function Chip(_a) {
|
|
17
17
|
var _b, _c, _d;
|
|
18
18
|
var label = _a.label, checked = _a.checked, onClick = _a.onClick, _e = _a.background, background = _e === void 0 ? (_b = designTokens.theme.palette) === null || _b === void 0 ? void 0 : _b.lighter : _e, _f = _a.activeBackground, activeBackground = _f === void 0 ? (_c = designTokens.theme.palette) === null || _c === void 0 ? void 0 : _c.white : _f, loading = _a.loading;
|
|
19
|
-
return (React__default[
|
|
20
|
-
loading ? (React__default[
|
|
21
|
-
React__default[
|
|
22
|
-
React__default[
|
|
19
|
+
return (React__default["default"].createElement(Chip_styles.BaseChip, { checked: checked, onClick: onClick, background: background, activeBackground: activeBackground, loading: loading },
|
|
20
|
+
loading ? (React__default["default"].createElement(Spinner.Spinner, { size: 12 })) : (React__default["default"].createElement(React__default["default"].Fragment, null, checked ? (React__default["default"].createElement(Chip_styles.ChipCheckbox, null,
|
|
21
|
+
React__default["default"].createElement(Icon.Icons.CheckMark, { color: (_d = designTokens.theme === null || designTokens.theme === void 0 ? void 0 : designTokens.theme.palette) === null || _d === void 0 ? void 0 : _d.alertGreen, width: 12, height: 12, viewBox: '0 0 25 25' }))) : (React__default["default"].createElement(Chip_styles.ChipCheckbox, null)))),
|
|
22
|
+
React__default["default"].createElement(Chip_styles.ChipLabel, { forwardedAs: 'label', size: typography.TextTypes.TextSize.SMALL }, label)));
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
exports.Chip = Chip;
|
|
@@ -10,7 +10,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
10
10
|
|
|
11
11
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
12
12
|
|
|
13
|
-
var BaseChip = styled__default[
|
|
13
|
+
var BaseChip = styled__default["default"].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n gap: ", "px;\n border-radius: ", "px;\n background: ", ";\n /* static for height of chip */\n padding: ", "px\n ", "px;\n ", ";\n cursor: pointer;\n"], ["\n display: inline-flex;\n align-items: center;\n gap: ", "px;\n border-radius: ", "px;\n background: ", ";\n /* static for height of chip */\n padding: ", "px\n ", "px;\n ", ";\n cursor: pointer;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; }, 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) {
|
|
14
14
|
return props.checked
|
|
15
15
|
? props.activeBackground && props.activeBackground
|
|
16
16
|
: props.background && props.background;
|
|
@@ -19,8 +19,8 @@ var BaseChip = styled__default['default'].div(templateObject_1 || (templateObjec
|
|
|
19
19
|
return props.checked &&
|
|
20
20
|
"box-shadow: 0 0 0 1px inset " + ((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.alertGreen);
|
|
21
21
|
});
|
|
22
|
-
var ChipCheckbox = styled__default[
|
|
23
|
-
var ChipLabel = styled__default[
|
|
22
|
+
var ChipCheckbox = styled__default["default"].span(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n display: flex;\n height: ", "px;\n width: ", "px;\n background: white;\n border: 1px solid ", ";\n border-radius: ", "px;\n"], ["\n display: flex;\n height: ", "px;\n width: ", "px;\n background: white;\n border: 1px solid ", ";\n border-radius: ", "px;\n"])), function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.chipCheckBox; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.chipCheckBox; }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.medium; }, 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.extraSmall; });
|
|
23
|
+
var ChipLabel = styled__default["default"](typography.BodyText)(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n pointer-events: none;\n"], ["\n pointer-events: none;\n"])));
|
|
24
24
|
var templateObject_1, templateObject_2, templateObject_3;
|
|
25
25
|
|
|
26
26
|
exports.BaseChip = BaseChip;
|
|
@@ -15,13 +15,13 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
15
15
|
var Collapsable = function (_a) {
|
|
16
16
|
var heading = _a.heading, backgroundColor = _a.backgroundColor, children = _a.children;
|
|
17
17
|
var _b = React.useState(false), open = _b[0], setOpen = _b[1];
|
|
18
|
-
return (React__default[
|
|
19
|
-
React__default[
|
|
20
|
-
React__default[
|
|
21
|
-
React__default[
|
|
22
|
-
React__default[
|
|
23
|
-
open ? React__default[
|
|
24
|
-
React__default[
|
|
18
|
+
return (React__default["default"].createElement(Collapsable_styles.Collapsable, { backgroundColor: backgroundColor },
|
|
19
|
+
React__default["default"].createElement(Collapsable_styles.PreviewContainer, { onClick: function () { return setOpen(!open); } },
|
|
20
|
+
React__default["default"].createElement(Box.Box, null,
|
|
21
|
+
React__default["default"].createElement(Collapsable_styles.PreviewInner, null,
|
|
22
|
+
React__default["default"].createElement(typography.H2, null, heading),
|
|
23
|
+
open ? React__default["default"].createElement(Icon.Icons.ChevronUp, null) : React__default["default"].createElement(Icon.Icons.ChevronDown, null)))),
|
|
24
|
+
React__default["default"].createElement(Collapsable_styles.CollapsedContainer, { open: open }, children)));
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
exports.Collapsable = Collapsable;
|
|
@@ -9,10 +9,10 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
9
9
|
|
|
10
10
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
11
11
|
|
|
12
|
-
var Collapsable = styled__default[
|
|
13
|
-
var PreviewContainer = styled__default[
|
|
14
|
-
var PreviewInner = styled__default[
|
|
15
|
-
var CollapsedContainer = styled__default[
|
|
12
|
+
var Collapsable = styled__default["default"].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) { return props.backgroundColor && "background: " + props.backgroundColor; });
|
|
13
|
+
var PreviewContainer = styled__default["default"].div(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n cursor: pointer;\n border-bottom: 1px solid ", ";\n"], ["\n cursor: pointer;\n border-bottom: 1px solid ", ";\n"])), function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.light; });
|
|
14
|
+
var PreviewInner = styled__default["default"].div(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n"], ["\n display: flex;\n justify-content: space-between;\n"])));
|
|
15
|
+
var CollapsedContainer = styled__default["default"].div(templateObject_4 || (templateObject_4 = _tslib.__makeTemplateObject(["\n display: ", ";\n"], ["\n display: ", ";\n"])), function (props) { return (props.open ? 'block' : 'none'); });
|
|
16
16
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
17
17
|
|
|
18
18
|
exports.Collapsable = Collapsable;
|
|
@@ -12,8 +12,8 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
12
12
|
|
|
13
13
|
function CustomerInfoBlock(_a) {
|
|
14
14
|
var _b = _a.title, title = _b === void 0 ? 'Dina Uppgifter' : _b, _c = _a.boldTitle, boldTitle = _c === void 0 ? true : _c, children = _a.children;
|
|
15
|
-
return (React__default[
|
|
16
|
-
React__default[
|
|
15
|
+
return (React__default["default"].createElement(CustomerInfoBlock_styles.CustomerInfoBlock, null,
|
|
16
|
+
React__default["default"].createElement(typography.H3, { fontWeight: boldTitle ? 'semiBold' : 'regular' }, title),
|
|
17
17
|
children));
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -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 CustomerInfoBlock = styled__default[
|
|
12
|
+
var CustomerInfoBlock = styled__default["default"].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: ", "px;\n"], ["\n display: flex;\n flex-direction: column;\n gap: ", "px;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; });
|
|
13
13
|
var templateObject_1;
|
|
14
14
|
|
|
15
15
|
exports.CustomerInfoBlock = CustomerInfoBlock;
|
|
@@ -11,10 +11,10 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
11
11
|
|
|
12
12
|
function DateBox(_a) {
|
|
13
13
|
var dateHeader = _a.dateHeader, labelBackground = _a.labelBackground, children = _a.children;
|
|
14
|
-
return (React__default[
|
|
15
|
-
React__default[
|
|
16
|
-
React__default[
|
|
17
|
-
React__default[
|
|
14
|
+
return (React__default["default"].createElement(DateBox_styles.StyledDateBox, null,
|
|
15
|
+
React__default["default"].createElement(DateBox_styles.WeekBox, { labelBackground: labelBackground },
|
|
16
|
+
React__default["default"].createElement(DateBox_styles.DateHeader, null, dateHeader)),
|
|
17
|
+
React__default["default"].createElement(DateBox_styles.WeekNumber, null, children)));
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
exports.DateBox = DateBox;
|
|
@@ -9,10 +9,10 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
9
9
|
|
|
10
10
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
11
11
|
|
|
12
|
-
var StyledDateBox = styled__default[
|
|
13
|
-
var WeekBox = styled__default[
|
|
14
|
-
var WeekNumber = styled__default[
|
|
15
|
-
var DateHeader = styled__default[
|
|
12
|
+
var StyledDateBox = styled__default["default"].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n display: inline-block;\n background-color: ", ";\n"], ["\n display: inline-block;\n background-color: ", ";\n"])), function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.white; });
|
|
13
|
+
var WeekBox = styled__default["default"].div(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n background-color: ", ";\n color: ", ";\n padding: ", ";\n text-align: center;\n"], ["\n background-color: ", ";\n color: ", ";\n padding: ", ";\n text-align: center;\n"])), function (props) { var _a; return props.labelBackground || ((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.brandBlue); }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.white; }, function (props) { var _a, _b; return ((_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs) + "px " + ((_b = props.theme.constants) === null || _b === void 0 ? void 0 : _b.dateBoxHorizontalPadding) + "px"; });
|
|
14
|
+
var WeekNumber = styled__default["default"].div(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n padding: ", "px 0;\n text-align: center;\n"], ["\n padding: ", "px 0;\n text-align: center;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; });
|
|
15
|
+
var DateHeader = styled__default["default"].div(templateObject_4 || (templateObject_4 = _tslib.__makeTemplateObject(["\n text-align: center;\n"], ["\n text-align: center;\n"])));
|
|
16
16
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
17
17
|
|
|
18
18
|
exports.DateHeader = DateHeader;
|
|
@@ -80,14 +80,14 @@ function DeliverySlotItem(_a) {
|
|
|
80
80
|
};
|
|
81
81
|
}, [slotRef, options]);
|
|
82
82
|
var removeLeadingZero = function (day) { return day.replace(/^0+/, ''); };
|
|
83
|
-
return (React__default[
|
|
84
|
-
React__default[
|
|
85
|
-
React__default[
|
|
86
|
-
React__default[
|
|
87
|
-
React__default[
|
|
88
|
-
React__default[
|
|
89
|
-
React__default[
|
|
90
|
-
React__default[
|
|
83
|
+
return (React__default["default"].createElement(DeliverySlotItem_styles.DeliverySlotItemContainer, { onClick: !disabled ? onSelect : function () { return null; }, disabled: disabled, isVisible: isVisible, ref: slotRef, selected: selected },
|
|
84
|
+
React__default["default"].createElement(DeliverySlotItem_styles.DeliverySlotHeaderContainer, { disabled: disabled, selected: selected },
|
|
85
|
+
React__default["default"].createElement(DeliverySlotItem_styles.DeliverySlotHeaderText, { disabled: disabled },
|
|
86
|
+
React__default["default"].createElement(typography.BodyText, { color: selected ? 'white' : 'black' }, utils.capitalizeFirstLetter(weekDay)))),
|
|
87
|
+
React__default["default"].createElement(DeliverySlotItem_styles.DeliverySlotContainer, { selected: selected, disabled: disabled },
|
|
88
|
+
React__default["default"].createElement(DeliverySlotItem_styles.DeliverySlotBody, { disabled: disabled },
|
|
89
|
+
React__default["default"].createElement(typography.H2, { color: 'darkest' }, removeLeadingZero(dayNumber)),
|
|
90
|
+
React__default["default"].createElement(typography.BodyText, { color: 'darker' }, utils.capitalizeFirstLetter(month))),
|
|
91
91
|
children)));
|
|
92
92
|
}
|
|
93
93
|
|
|
@@ -9,26 +9,26 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
9
9
|
|
|
10
10
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
11
11
|
|
|
12
|
-
var DeliverySlotItemContainer = styled__default[
|
|
12
|
+
var DeliverySlotItemContainer = styled__default["default"].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-self: center;\n opacity: ", ";\n transition: opacity ", ";\n min-width: ", "px;\n border: solid 1px\n ", ";\n border-radius: ", "px;\n overflow: hidden;\n\n @media (min-width: ", "px) {\n min-width: ", "px;\n }\n\n &:hover {\n cursor: ", ";\n }\n"], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-self: center;\n opacity: ", ";\n transition: opacity ", ";\n min-width: ", "px;\n border: solid 1px\n ", ";\n border-radius: ", "px;\n overflow: hidden;\n\n @media (min-width: ", "px) {\n min-width: ", "px;\n }\n\n &:hover {\n cursor: ", ";\n }\n"])), function (props) { return (props.isVisible ? 1 : 0.4); }, function (props) { var _a, _b; return (_b = (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.transition) === null || _b === void 0 ? void 0 : _b.t1; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.deliverySlotItemWidth; }, function (props) {
|
|
13
13
|
var _a, _b;
|
|
14
14
|
return props.selected
|
|
15
15
|
? (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.brandBlue
|
|
16
16
|
: (_b = props.theme.palette) === null || _b === void 0 ? void 0 : _b.medium;
|
|
17
17
|
}, function (props) { var _a; return (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.borderRadius.small; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.md; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.deliverySlotItemWidthDesktop; }, function (props) { return (props.disabled ? 'default' : 'pointer'); });
|
|
18
|
-
var DeliverySlotHeaderContainer = styled__default[
|
|
18
|
+
var DeliverySlotHeaderContainer = styled__default["default"].div(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n display: flex;\n width: 100%;\n align-items: center;\n justify-content: center;\n background: ", ";\n"], ["\n display: flex;\n width: 100%;\n align-items: center;\n justify-content: center;\n background: ", ";\n"])), function (props) {
|
|
19
19
|
var _a, _b;
|
|
20
20
|
return props.selected
|
|
21
21
|
? (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.brandBlue
|
|
22
22
|
: (_b = props.theme.palette) === null || _b === void 0 ? void 0 : _b.lightest;
|
|
23
23
|
});
|
|
24
|
-
var DeliverySlotHeaderText = styled__default[
|
|
25
|
-
var DeliverySlotContainer = styled__default[
|
|
24
|
+
var DeliverySlotHeaderText = styled__default["default"].div(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n padding: ", "px;\n ", ";\n"], ["\n padding: ", "px;\n ", ";\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { return props.disabled && 'opacity: 0.4'; });
|
|
25
|
+
var DeliverySlotContainer = styled__default["default"].div(templateObject_4 || (templateObject_4 = _tslib.__makeTemplateObject(["\n padding: ", "px 0;\n flex: 1;\n width: stretch;\n background: ", ";\n"], ["\n padding: ", "px 0;\n flex: 1;\n width: stretch;\n background: ", ";\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) {
|
|
26
26
|
var _a, _b;
|
|
27
27
|
return props.selected
|
|
28
28
|
? (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.blueLight
|
|
29
29
|
: (_b = props.theme.palette) === null || _b === void 0 ? void 0 : _b.white;
|
|
30
30
|
});
|
|
31
|
-
var DeliverySlotBody = styled__default[
|
|
31
|
+
var DeliverySlotBody = styled__default["default"].div(templateObject_5 || (templateObject_5 = _tslib.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n ", ";\n"], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n ", ";\n"])), function (props) { return props.disabled && 'opacity: 0.4'; });
|
|
32
32
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
33
33
|
|
|
34
34
|
exports.DeliverySlotBody = DeliverySlotBody;
|