@citygross/components 0.7.199 → 0.7.201
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/DeliverySlotItem/DeliverySlotItem.d.ts +2 -2
- package/build/@types/components/DeliverySlotItem/DeliverySlotItem.styles.d.ts +0 -1
- package/build/@types/components/RadioListItem/RadioListItem.d.ts +2 -7
- package/build/@types/components/RadioListItem/RadioListItem.styles.d.ts +6 -4
- package/build/@types/components/Slider/Slider.d.ts +3 -1
- package/build/@types/components/Slider/Slider.stories.d.ts +1 -1
- package/build/cjs/components/src/components/AddressBlock/AddressBlock.js +1 -0
- package/build/cjs/components/src/components/AddressBlock/AddressBlock.js.map +1 -1
- package/build/cjs/components/src/components/DeliverySlotItem/DeliverySlotItem.js +15 -21
- package/build/cjs/components/src/components/DeliverySlotItem/DeliverySlotItem.js.map +1 -1
- package/build/cjs/components/src/components/DeliverySlotItem/DeliverySlotItem.styles.js +10 -12
- package/build/cjs/components/src/components/DeliverySlotItem/DeliverySlotItem.styles.js.map +1 -1
- package/build/cjs/components/src/components/RadioGroup/RadioGroup.styles.js +2 -2
- package/build/cjs/components/src/components/RadioListItem/RadioListItem.js +6 -20
- package/build/cjs/components/src/components/RadioListItem/RadioListItem.js.map +1 -1
- package/build/cjs/components/src/components/RadioListItem/RadioListItem.styles.js +15 -6
- package/build/cjs/components/src/components/RadioListItem/RadioListItem.styles.js.map +1 -1
- package/build/cjs/components/src/components/Slider/Slider.js +28 -59
- package/build/cjs/components/src/components/Slider/Slider.js.map +1 -1
- package/build/cjs/components/src/components/Slider/Slider.styles.js +5 -7
- package/build/cjs/components/src/components/Slider/Slider.styles.js.map +1 -1
- package/build/cjs/components/src/components/WarningLabel/WarningLabel.js +1 -0
- package/build/cjs/components/src/components/WarningLabel/WarningLabel.js.map +1 -1
- package/build/es/components/src/components/AddressBlock/AddressBlock.js +1 -0
- package/build/es/components/src/components/AddressBlock/AddressBlock.js.map +1 -1
- package/build/es/components/src/components/DeliverySlotItem/DeliverySlotItem.js +18 -24
- package/build/es/components/src/components/DeliverySlotItem/DeliverySlotItem.js.map +1 -1
- package/build/es/components/src/components/DeliverySlotItem/DeliverySlotItem.styles.js +11 -12
- package/build/es/components/src/components/DeliverySlotItem/DeliverySlotItem.styles.js.map +1 -1
- package/build/es/components/src/components/RadioGroup/RadioGroup.styles.js +2 -2
- package/build/es/components/src/components/RadioListItem/RadioListItem.js +7 -21
- package/build/es/components/src/components/RadioListItem/RadioListItem.js.map +1 -1
- package/build/es/components/src/components/RadioListItem/RadioListItem.styles.js +15 -6
- package/build/es/components/src/components/RadioListItem/RadioListItem.styles.js.map +1 -1
- package/build/es/components/src/components/Slider/Slider.js +29 -61
- package/build/es/components/src/components/Slider/Slider.js.map +1 -1
- package/build/es/components/src/components/Slider/Slider.styles.js +6 -6
- package/build/es/components/src/components/WarningLabel/WarningLabel.js +1 -0
- package/build/es/components/src/components/WarningLabel/WarningLabel.js.map +1 -1
- package/package.json +6 -3
|
@@ -2,8 +2,8 @@ import React from 'react';
|
|
|
2
2
|
export declare type TDeliverySlotItem = {
|
|
3
3
|
date: string;
|
|
4
4
|
selected: boolean;
|
|
5
|
-
disabled: boolean;
|
|
6
5
|
children: React.ReactNode;
|
|
7
6
|
onSelect: () => void;
|
|
7
|
+
icon?: React.ReactNode;
|
|
8
8
|
};
|
|
9
|
-
export declare function DeliverySlotItem({ date, selected,
|
|
9
|
+
export declare function DeliverySlotItem({ date, selected, children, onSelect, icon }: TDeliverySlotItem): JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
declare type TDeliverySlotItem = {
|
|
2
2
|
selected?: boolean;
|
|
3
|
-
disabled?: boolean;
|
|
4
3
|
isVisible?: boolean;
|
|
5
4
|
};
|
|
6
5
|
export declare const DeliverySlotItemContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TDeliverySlotItem, never>;
|
|
@@ -1,23 +1,18 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { TRadioColor } from '../FormElements/Radio/Radio';
|
|
3
|
-
import { TDot } from '../DotIndicator/DotIndicator';
|
|
4
2
|
import * as styles from './RadioListItem.styles';
|
|
5
3
|
export declare type TRadioListItemProps = styles.TBaseRadioItemInputWrapper & {
|
|
6
4
|
onClick: (value: string | number) => void;
|
|
7
|
-
radioColor?: keyof TRadioColor;
|
|
8
|
-
name: string;
|
|
9
5
|
selected?: boolean;
|
|
10
6
|
defaultDisabledString?: string;
|
|
11
|
-
dotIndicator?: TDot;
|
|
12
7
|
transparent?: boolean;
|
|
13
8
|
noPadding?: boolean;
|
|
14
9
|
label: string;
|
|
15
10
|
secondaryLabel?: string;
|
|
16
11
|
isDisabled?: boolean;
|
|
17
12
|
disabledText?: string;
|
|
18
|
-
textOnSelected?: string;
|
|
19
13
|
value: string | number;
|
|
20
14
|
wrapMobile?: boolean;
|
|
21
15
|
children?: JSX.Element;
|
|
16
|
+
additionalInfo?: JSX.Element;
|
|
22
17
|
};
|
|
23
|
-
export declare function RadioListItem({ onClick, selected,
|
|
18
|
+
export declare function RadioListItem({ onClick, selected, defaultDisabledString, flexGrow, isDisabled, transparent, noPadding, label, disabledText, value, wrapMobile, additionalInfo, children }: TRadioListItemProps): JSX.Element;
|
|
@@ -6,8 +6,10 @@ export declare type TBaseRadioItemInputWrapper = {
|
|
|
6
6
|
center?: boolean;
|
|
7
7
|
};
|
|
8
8
|
export declare type TBaseRadiolistItemcontainer = {
|
|
9
|
-
background?: string;
|
|
10
9
|
noPadding?: boolean;
|
|
10
|
+
transparent?: boolean;
|
|
11
|
+
isDisabled?: boolean;
|
|
12
|
+
selected?: boolean;
|
|
11
13
|
};
|
|
12
14
|
export declare type TWrapMobile = {
|
|
13
15
|
wrapMobile?: boolean;
|
|
@@ -16,15 +18,15 @@ export declare const BaseRadioListItemContainer: import("styled-components").Sty
|
|
|
16
18
|
export declare const BaseRadioItemLeftWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TBaseRadioItemInputWrapper, never>;
|
|
17
19
|
export declare const StyledH3: import("styled-components").StyledComponent<({ children, lineThrough, color, fontWeight, ...props }: import("@citygross/typography/build/headers/h3/h3").IH3) => JSX.Element, import("styled-components").DefaultTheme, {
|
|
18
20
|
as: string;
|
|
19
|
-
}, "as">;
|
|
20
|
-
export declare const
|
|
21
|
+
} & TBaseRadioItemInputWrapper, "as">;
|
|
22
|
+
export declare const RadioRightWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
21
23
|
export declare const DisableText: import("styled-components").StyledComponent<({ size, color, children, lineThrough, fontWeight, textAlign, ...props }: {
|
|
22
24
|
children: import("react").ReactNode;
|
|
23
25
|
size?: import("@citygross/typography/build/types/textTypes").TextSize | undefined;
|
|
24
26
|
color?: string | undefined;
|
|
25
27
|
lineThrough?: boolean | undefined;
|
|
26
28
|
fontWeight?: "bold" | "regular" | "medium" | "semiBold" | undefined;
|
|
27
|
-
textAlign?: "
|
|
29
|
+
textAlign?: "left" | "center" | "right" | undefined;
|
|
28
30
|
}) => JSX.Element, import("styled-components").DefaultTheme, TWrapMobile, never>;
|
|
29
31
|
export declare const RadioFlex: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TWrapMobile, never>;
|
|
30
32
|
export declare const SecondaryColumn: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TButtonColor } from '../Button/Button';
|
|
3
|
+
import { Settings } from 'react-slick';
|
|
3
4
|
export declare type TSlider = {
|
|
4
5
|
customSlideAmount: number;
|
|
5
6
|
children: React.ReactNode;
|
|
@@ -7,5 +8,6 @@ export declare type TSlider = {
|
|
|
7
8
|
iconHeight?: number;
|
|
8
9
|
iconWidth?: number;
|
|
9
10
|
iconColor?: TButtonColor;
|
|
11
|
+
sliderSettings: Settings;
|
|
10
12
|
};
|
|
11
|
-
export declare const Slider: ({ children,
|
|
13
|
+
export declare const Slider: ({ children, iconHeight, iconWidth, iconColor, sliderSettings }: TSlider) => JSX.Element;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Story } from '@storybook/react';
|
|
3
3
|
import { TSlider } from './Slider';
|
|
4
4
|
declare const _default: {
|
|
5
|
-
component: ({ children,
|
|
5
|
+
component: ({ children, iconHeight, iconWidth, iconColor, sliderSettings }: TSlider) => JSX.Element;
|
|
6
6
|
title: string;
|
|
7
7
|
};
|
|
8
8
|
export default _default;
|
|
@@ -30,6 +30,7 @@ require('../CustomerInfoBlock/CustomerInfoBlock.styles.js');
|
|
|
30
30
|
require('../Collapsable/Collapsable.styles.js');
|
|
31
31
|
require('../DeliverySlotItem/DeliverySlotItem.styles.js');
|
|
32
32
|
require('../Slider/Slider.styles.js');
|
|
33
|
+
require('react-slick');
|
|
33
34
|
require('../DeliveryTimeBlock/DeliveryTimeBlock.styles.js');
|
|
34
35
|
require('../Menu/Menu.styles.js');
|
|
35
36
|
require('../DateBox/DateBox.styles.js');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddressBlock.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AddressBlock.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var designTokens = require('@citygross/design-tokens');
|
|
7
6
|
var utils = require('@citygross/utils');
|
|
8
7
|
var typography = require('@citygross/typography');
|
|
9
8
|
var DeliverySlotItem_styles = require('./DeliverySlotItem.styles.js');
|
|
@@ -13,23 +12,17 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
13
12
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
14
13
|
|
|
15
14
|
function DeliverySlotItem(_a) {
|
|
16
|
-
var
|
|
17
|
-
var date = _a.date, selected = _a.selected, disabled = _a.disabled, children = _a.children, onSelect = _a.onSelect;
|
|
15
|
+
var date = _a.date, selected = _a.selected, children = _a.children, onSelect = _a.onSelect, icon = _a.icon;
|
|
18
16
|
var momentDate = utils.moment(date);
|
|
19
17
|
var width = utils.useWindowSize().width;
|
|
20
|
-
var
|
|
21
|
-
.format(width < (((_b = designTokens.theme.breakpoints) === null || _b === void 0 ? void 0 : _b.md) || 768) ? 'ddd' : 'dddd')
|
|
22
|
-
.toLocaleLowerCase()), weekDay = _c[0], setWeekDay = _c[1];
|
|
18
|
+
var _b = React.useState(momentDate.format('dddd').toLocaleLowerCase()), weekDay = _b[0], setWeekDay = _b[1];
|
|
23
19
|
var dayNumber = momentDate.format('D');
|
|
24
|
-
var month = momentDate.format('
|
|
20
|
+
var month = momentDate.format('MMMM').toLocaleLowerCase();
|
|
25
21
|
React.useEffect(function () {
|
|
26
|
-
|
|
27
|
-
setWeekDay(momentDate
|
|
28
|
-
.format(width < (((_a = designTokens.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.md) || 768) ? 'ddd' : 'dddd')
|
|
29
|
-
.toLocaleLowerCase());
|
|
22
|
+
setWeekDay(momentDate.format('dddd').toLocaleLowerCase());
|
|
30
23
|
}, [width]);
|
|
31
24
|
var slotRef = React.useRef(null);
|
|
32
|
-
var
|
|
25
|
+
var _c = React.useState(true), isVisible = _c[0], setIsVisible = _c[1];
|
|
33
26
|
var callbackFn = function (entries) {
|
|
34
27
|
var entry = entries[0];
|
|
35
28
|
// gets zoom level
|
|
@@ -79,15 +72,16 @@ function DeliverySlotItem(_a) {
|
|
|
79
72
|
}
|
|
80
73
|
};
|
|
81
74
|
}, [slotRef, options]);
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
75
|
+
return (React__default["default"].createElement(DeliverySlotItem_styles.DeliverySlotItemContainer, { onClick: onSelect, isVisible: isVisible, ref: slotRef, selected: selected },
|
|
76
|
+
React__default["default"].createElement(DeliverySlotItem_styles.DeliverySlotContainer, { selected: selected },
|
|
77
|
+
React__default["default"].createElement(DeliverySlotItem_styles.DeliverySlotHeaderText, null,
|
|
78
|
+
React__default["default"].createElement(typography.BodyText, { fontWeight: 'medium' }, utils.capitalizeFirstLetter(weekDay)),
|
|
79
|
+
icon && icon),
|
|
80
|
+
React__default["default"].createElement(DeliverySlotItem_styles.DeliverySlotBody, null,
|
|
81
|
+
React__default["default"].createElement(typography.BodyText, { color: 'darkest', size: typography.TextTypes.TextSize.SMALL },
|
|
82
|
+
utils.formatLeadingZero(dayNumber),
|
|
83
|
+
" ",
|
|
84
|
+
utils.capitalizeFirstLetter(month))),
|
|
91
85
|
children)));
|
|
92
86
|
}
|
|
93
87
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeliverySlotItem.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DeliverySlotItem.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -9,31 +9,29 @@ 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["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:
|
|
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 margin: 0 ", "px;\n border: solid 1px\n ", ";\n border-radius: ", "px;\n overflow: hidden;\n width: ", "px;\n max-width: ", "px;\n min-height: ", "px;\n\n @media (min-width: ", "px) {\n min-width: ", "px;\n }\n\n &:hover {\n cursor: pointer;\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 margin: 0 ", "px;\n border: solid 1px\n ", ";\n border-radius: ", "px;\n overflow: hidden;\n width: ", "px;\n max-width: ", "px;\n min-height: ", "px;\n\n @media (min-width: ", "px) {\n min-width: ", "px;\n }\n\n &:hover {\n cursor: pointer;\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) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs; }, 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
|
-
}, 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.
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
return props.
|
|
21
|
-
? (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.brandBlue
|
|
22
|
-
: (_b = props.theme.palette) === null || _b === void 0 ? void 0 : _b.lightest;
|
|
23
|
-
});
|
|
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) {
|
|
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.constants) === null || _a === void 0 ? void 0 : _a.deliverySlotItemWidth; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.deliverySlotItemWidth; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.deliverySlotItemHeight; }, 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; });
|
|
18
|
+
styled__default["default"].div(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n display: flex;\n width: 100%;\n"], ["\n display: flex;\n width: 100%;\n"])));
|
|
19
|
+
var DeliverySlotHeaderText = 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"])));
|
|
20
|
+
var DeliverySlotContainer = styled__default["default"].div(templateObject_4 || (templateObject_4 = _tslib.__makeTemplateObject(["\n padding: ", "px;\n flex: 1;\n width: stretch;\n background: ", ";\n &:hover {\n cursor: pointer;\n ", ";\n }\n"], ["\n padding: ", "px;\n flex: 1;\n width: stretch;\n background: ", ";\n &:hover {\n cursor: pointer;\n ", ";\n }\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs2; }, function (props) {
|
|
26
21
|
var _a, _b;
|
|
27
22
|
return props.selected
|
|
28
23
|
? (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.blueLight
|
|
29
24
|
: (_b = props.theme.palette) === null || _b === void 0 ? void 0 : _b.white;
|
|
25
|
+
}, function (props) {
|
|
26
|
+
var _a;
|
|
27
|
+
return !props.selected &&
|
|
28
|
+
"\n background:".concat((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.lighter);
|
|
30
29
|
});
|
|
31
|
-
var DeliverySlotBody = styled__default["default"].div(templateObject_5 || (templateObject_5 = _tslib.__makeTemplateObject(["\n
|
|
30
|
+
var DeliverySlotBody = styled__default["default"].div(templateObject_5 || (templateObject_5 = _tslib.__makeTemplateObject(["\n margin-top: ", "px;\n margin-bottom: ", "px;\n"], ["\n margin-top: ", "px;\n margin-bottom: ", "px;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxxs; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs; });
|
|
32
31
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
33
32
|
|
|
34
33
|
exports.DeliverySlotBody = DeliverySlotBody;
|
|
35
34
|
exports.DeliverySlotContainer = DeliverySlotContainer;
|
|
36
|
-
exports.DeliverySlotHeaderContainer = DeliverySlotHeaderContainer;
|
|
37
35
|
exports.DeliverySlotHeaderText = DeliverySlotHeaderText;
|
|
38
36
|
exports.DeliverySlotItemContainer = DeliverySlotItemContainer;
|
|
39
37
|
//# sourceMappingURL=DeliverySlotItem.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeliverySlotItem.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DeliverySlotItem.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -9,11 +9,11 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
9
9
|
|
|
10
10
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
11
11
|
|
|
12
|
-
var BaseRadioGroup = styled__default["default"].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
12
|
+
var BaseRadioGroup = styled__default["default"].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n ", "\n display:flex;\n flex-direction: column;\n gap: ", "px;\n"], ["\n ", "\n display:flex;\n flex-direction: column;\n gap: ", "px;\n"])), function (props) {
|
|
13
13
|
var _a;
|
|
14
14
|
return props.header &&
|
|
15
15
|
"\n > :first-child{\n margin-bottom: ".concat((_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.md, "px;\n text-align: initial;\n }\n ");
|
|
16
|
-
});
|
|
16
|
+
}, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; });
|
|
17
17
|
var StyledDiv = styled__default["default"].div(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n background: ", ";\n border-radius: ", ";\n"], ["\n background: ", ";\n border-radius: ", ";\n"])), function (props) { var _a, _b; return (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.palette) === null || _b === void 0 ? void 0 : _b.white; }, function (props) { return (props.rounded ? '5px' : '0'); });
|
|
18
18
|
var templateObject_1, templateObject_2;
|
|
19
19
|
|
|
@@ -3,10 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var typography = require('@citygross/typography');
|
|
7
|
-
var Radio = require('../FormElements/Radio/Radio.js');
|
|
8
|
-
var DotIndicator = require('../DotIndicator/DotIndicator.js');
|
|
9
|
-
var designTokens = require('@citygross/design-tokens');
|
|
10
6
|
var RadioListItem_styles = require('./RadioListItem.styles.js');
|
|
11
7
|
|
|
12
8
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -14,24 +10,14 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
14
10
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
15
11
|
|
|
16
12
|
function RadioListItem(_a) {
|
|
17
|
-
var _b,
|
|
18
|
-
|
|
19
|
-
return (React__default["default"].createElement(RadioListItem_styles.BaseRadioListItemContainer, { background: transparent
|
|
20
|
-
? (_b = designTokens.theme.palette) === null || _b === void 0 ? void 0 : _b.transparent
|
|
21
|
-
: designTokens.theme && designTokens.theme.palette
|
|
22
|
-
? selected
|
|
23
|
-
? (_c = designTokens.theme.palette) === null || _c === void 0 ? void 0 : _c.blueLight
|
|
24
|
-
: (_d = designTokens.theme.palette) === null || _d === void 0 ? void 0 : _d.white
|
|
25
|
-
: 'white', noPadding: noPadding, onClick: isDisabled ? function () { } : function () { return onClick(value); } },
|
|
13
|
+
var onClick = _a.onClick, selected = _a.selected, defaultDisabledString = _a.defaultDisabledString, _b = _a.flexGrow, flexGrow = _b === void 0 ? 1 : _b, isDisabled = _a.isDisabled, transparent = _a.transparent, noPadding = _a.noPadding, label = _a.label, disabledText = _a.disabledText, value = _a.value, wrapMobile = _a.wrapMobile, additionalInfo = _a.additionalInfo, children = _a.children;
|
|
14
|
+
return (React__default["default"].createElement(RadioListItem_styles.BaseRadioListItemContainer, { transparent: transparent, isDisabled: isDisabled, noPadding: noPadding, selected: selected, onClick: isDisabled ? function () { } : function () { return onClick(value); } },
|
|
26
15
|
React__default["default"].createElement(RadioListItem_styles.RadioFlex, { wrapMobile: wrapMobile },
|
|
27
|
-
React__default["default"].createElement(RadioListItem_styles.BaseRadioItemLeftWrapper, { isDisabled: isDisabled, flexGrow: flexGrow
|
|
28
|
-
React__default["default"].createElement(Radio.Radio, { customColor: radioColor, checked: selected, disabled: isDisabled, name: name, onChange: function () { return onClick(value); }, value: value }),
|
|
16
|
+
React__default["default"].createElement(RadioListItem_styles.BaseRadioItemLeftWrapper, { isDisabled: isDisabled, flexGrow: flexGrow },
|
|
29
17
|
React__default["default"].createElement("div", null,
|
|
30
|
-
React__default["default"].createElement(RadioListItem_styles.StyledH3, {
|
|
31
|
-
|
|
32
|
-
React__default["default"].createElement(RadioListItem_styles.
|
|
33
|
-
React__default["default"].createElement("span", null, dotIndicator && selected && (React__default["default"].createElement(DotIndicator.Dot, { color: dotIndicator.color, shadow: dotIndicator.shadow }))),
|
|
34
|
-
isDisabled ? (React__default["default"].createElement(RadioListItem_styles.DisableText, null, disabledText || defaultDisabledString)) : (children || secondaryLabel)))));
|
|
18
|
+
React__default["default"].createElement(RadioListItem_styles.StyledH3, { isDisabled: isDisabled }, label),
|
|
19
|
+
additionalInfo && additionalInfo)),
|
|
20
|
+
React__default["default"].createElement(RadioListItem_styles.RadioRightWrapper, null, isDisabled ? (React__default["default"].createElement(RadioListItem_styles.DisableText, null, disabledText || defaultDisabledString)) : (children)))));
|
|
35
21
|
}
|
|
36
22
|
|
|
37
23
|
exports.RadioListItem = RadioListItem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioListItem.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RadioListItem.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -10,11 +10,20 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
10
10
|
|
|
11
11
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
12
12
|
|
|
13
|
-
var BaseRadioListItemContainer = styled__default["default"].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n padding: ", "px;\n align-items: center;\n cursor:
|
|
14
|
-
var
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
var BaseRadioListItemContainer = styled__default["default"].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n padding: ", "px;\n align-items: center;\n cursor: ", ";\n flex-wrap: wrap;\n border-radius: ", "px;\n background: ", ";\n transition: background-color 250ms ease;\n border: 1px solid ", ";\n > p:first-of-type {\n margin-left: ", "px;\n }\n"], ["\n padding: ", "px;\n align-items: center;\n cursor: ", ";\n flex-wrap: wrap;\n border-radius: ", "px;\n background: ", ";\n transition: background-color 250ms ease;\n border: 1px solid ", ";\n > p:first-of-type {\n margin-left: ", "px;\n }\n"])), function (props) { var _a; return (props.noPadding ? 0 : (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs2); }, function (props) { return (props.isDisabled ? 'cursor' : 'pointer'); }, function (props) { var _a; return (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.borderRadius.small; }, function (props) {
|
|
14
|
+
var _a, _b, _c, _d;
|
|
15
|
+
return props.isDisabled
|
|
16
|
+
? (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.lightest
|
|
17
|
+
: props.transparent
|
|
18
|
+
? (_b = props.theme.palette) === null || _b === void 0 ? void 0 : _b.transparent
|
|
19
|
+
: props.selected
|
|
20
|
+
? (_c = props.theme.palette) === null || _c === void 0 ? void 0 : _c.blueLight
|
|
21
|
+
: (_d = props.theme.palette) === null || _d === void 0 ? void 0 : _d.white;
|
|
22
|
+
}, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.medium; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; });
|
|
23
|
+
var BaseRadioItemLeftWrapper = styled__default["default"].div(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n display: flex;\n flex: 5;\n align-items: flex-start;\n ", ";\n > * {\n &:first-child {\n margin-right: ", "px;\n }\n }\n"], ["\n display: flex;\n flex: 5;\n align-items: flex-start;\n ", ";\n > * {\n &:first-child {\n margin-right: ", "px;\n }\n }\n"])), function (props) { return props.flexGrow && "flex-grow: ".concat(props.flexGrow); }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; });
|
|
24
|
+
var StyledH3 = styled__default["default"](typography.H3).attrs({ as: 'label' })(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n cursor: pointer;\n white-space: nowrap;\n display: block;\n ", ";\n"], ["\n cursor: pointer;\n white-space: nowrap;\n display: block;\n ", ";\n"])), function (props) { var _a; return props.isDisabled && "color:".concat((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.dark); });
|
|
25
|
+
var RadioRightWrapper = styled__default["default"].div(templateObject_4 || (templateObject_4 = _tslib.__makeTemplateObject(["\n display: flex;\n gap: ", "px;\n justify-content: flex-end;\n text-align: right;\n font-size: ", "px;\n > p {\n line-height: unset;\n }\n"], ["\n display: flex;\n gap: ", "px;\n justify-content: flex-end;\n text-align: right;\n font-size: ", "px;\n > p {\n line-height: unset;\n }\n"])), 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.typography) === null || _a === void 0 ? void 0 : _a.size.s2; });
|
|
26
|
+
var DisableText = styled__default["default"](typography.BodyText)(templateObject_5 || (templateObject_5 = _tslib.__makeTemplateObject(["\n font-size: ", "px;\n color: ", ";\n ", "\n @media (min-width: ", "px) {\n font-size: ", "px;\n text-align: inherit;\n }\n"], ["\n font-size: ", "px;\n color: ", ";\n ", "\n @media (min-width: ", "px) {\n font-size: ", "px;\n text-align: inherit;\n }\n"])), function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.s2; }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.darkest; }, function (props) {
|
|
18
27
|
return (props === null || props === void 0 ? void 0 : props.wrapMobile) &&
|
|
19
28
|
"\n text-align: left;\n \n";
|
|
20
29
|
}, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.xs; }, function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.s3; });
|
|
@@ -30,6 +39,6 @@ exports.BaseRadioItemLeftWrapper = BaseRadioItemLeftWrapper;
|
|
|
30
39
|
exports.BaseRadioListItemContainer = BaseRadioListItemContainer;
|
|
31
40
|
exports.DisableText = DisableText;
|
|
32
41
|
exports.RadioFlex = RadioFlex;
|
|
33
|
-
exports.
|
|
42
|
+
exports.RadioRightWrapper = RadioRightWrapper;
|
|
34
43
|
exports.StyledH3 = StyledH3;
|
|
35
44
|
//# sourceMappingURL=RadioListItem.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioListItem.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RadioListItem.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,75 +2,44 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var _tslib = require('../../../../_virtual/_tslib.js');
|
|
5
6
|
var React = require('react');
|
|
6
7
|
var Slider_styles = require('./Slider.styles.js');
|
|
7
8
|
var IconButton = require('../Button/IconButton.js');
|
|
8
9
|
var Icon = require('@citygross/icons');
|
|
9
|
-
var
|
|
10
|
-
var designTokens = require('@citygross/design-tokens');
|
|
10
|
+
var SlickSlider = require('react-slick');
|
|
11
11
|
|
|
12
12
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
13
|
|
|
14
14
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
15
|
+
var SlickSlider__default = /*#__PURE__*/_interopDefaultLegacy(SlickSlider);
|
|
15
16
|
|
|
16
17
|
var Slider = function (_a) {
|
|
17
|
-
var _b
|
|
18
|
-
var children = _a.children,
|
|
19
|
-
var
|
|
20
|
-
var
|
|
21
|
-
var
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
(
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
var scrollIsAtEnd = e.currentTarget.scrollLeft +
|
|
43
|
-
e.currentTarget.getBoundingClientRect().width >=
|
|
44
|
-
e.currentTarget.scrollWidth;
|
|
45
|
-
setIsMax(scrollIsAtEnd);
|
|
46
|
-
}
|
|
47
|
-
function resizeListener() {
|
|
48
|
-
var _a, _b;
|
|
49
|
-
var tmpClientWidth = (_b = (_a = itemsContainer === null || itemsContainer === void 0 ? void 0 : itemsContainer.current) === null || _a === void 0 ? void 0 : _a.clientWidth) !== null && _b !== void 0 ? _b : 0;
|
|
50
|
-
var amountOfItemsToSlide = Math.floor(tmpClientWidth /
|
|
51
|
-
(isMobile
|
|
52
|
-
? designTokens.constants.deliverySlotItemWidth
|
|
53
|
-
: designTokens.constants.deliverySlotItemWidthDesktop));
|
|
54
|
-
setSlideAmount(customSlideAmount !== null && customSlideAmount !== void 0 ? customSlideAmount : amountOfItemsToSlide *
|
|
55
|
-
((isMobile
|
|
56
|
-
? designTokens.constants.deliverySlotItemWidth
|
|
57
|
-
: designTokens.constants.deliverySlotItemWidthDesktop) +
|
|
58
|
-
(itemGap !== null && itemGap !== void 0 ? itemGap : designTokens.constants.itemGap)));
|
|
59
|
-
}
|
|
60
|
-
React.useEffect(function () {
|
|
61
|
-
resizeListener();
|
|
62
|
-
window.addEventListener('resize', resizeListener);
|
|
63
|
-
return function () {
|
|
64
|
-
document.removeEventListener('resize', resizeListener);
|
|
65
|
-
};
|
|
66
|
-
}, []);
|
|
67
|
-
return (React__default["default"].createElement(Slider_styles.Container, null,
|
|
68
|
-
React__default["default"].createElement(Slider_styles.SliderContainer, { ref: itemsContainer, onScroll: function (e) { return onScroll(e); } },
|
|
69
|
-
React__default["default"].createElement(Slider_styles.LeftIconButtonContainer, null,
|
|
70
|
-
React__default["default"].createElement(IconButton.IconButton, { isDisabled: isMin, color: iconColor, icon: React__default["default"].createElement(Icon.Icons.ChevronLeft, { color: 'white' }), height: iconHeight, width: iconWidth, onClick: function () { return slideRight(); }, borderRadius: 100 })),
|
|
71
|
-
React__default["default"].createElement(Slider_styles.ItemsContainer, { itemGap: itemGap }, children),
|
|
72
|
-
React__default["default"].createElement(Slider_styles.RightIconButtonContainer, null,
|
|
73
|
-
React__default["default"].createElement(IconButton.IconButton, { isDisabled: isMax || notScrollable, color: iconColor, icon: React__default["default"].createElement(Icon.Icons.ChevronRight, { color: 'white' }), height: iconHeight, width: iconWidth, onClick: function () { return slideLeft(); }, borderRadius: 100 })))));
|
|
18
|
+
var _b;
|
|
19
|
+
var children = _a.children, _c = _a.iconHeight, iconHeight = _c === void 0 ? 32 : _c, _d = _a.iconWidth, iconWidth = _d === void 0 ? 32 : _d, _e = _a.iconColor, iconColor = _e === void 0 ? 'darkest' : _e, sliderSettings = _a.sliderSettings;
|
|
20
|
+
var _f = React.useState(false), isMax = _f[0], setIsMax = _f[1];
|
|
21
|
+
var _g = React.useState(true), isMin = _g[0], setIsMin = _g[1];
|
|
22
|
+
var childs = (_b = React__default["default"].Children) === null || _b === void 0 ? void 0 : _b.map(children, function (child) { return child; });
|
|
23
|
+
var settings = _tslib.__assign({ speed: 500, slidesToShow: 7, infinite: false, slidesToScroll: 7, variableWidth: true, initialSlide: 0, nextArrow: (React__default["default"].createElement(Slider_styles.RightIconButtonContainer, null,
|
|
24
|
+
React__default["default"].createElement(IconButton.IconButton, { isDisabled: isMax, color: iconColor, icon: React__default["default"].createElement(Icon.Icons.ChevronRight, { color: 'white' }), height: iconHeight, width: iconWidth, borderRadius: 100 }))), prevArrow: (React__default["default"].createElement(Slider_styles.LeftIconButtonContainer, null,
|
|
25
|
+
React__default["default"].createElement(IconButton.IconButton, { isDisabled: isMin, color: iconColor, icon: React__default["default"].createElement(Icon.Icons.ChevronLeft, { color: 'white' }), height: iconHeight, width: iconWidth, borderRadius: 100 }))), beforeChange: function (_, next) {
|
|
26
|
+
var _a, _b;
|
|
27
|
+
var totalPages = (_b = Math.ceil((_a = (childs && (childs === null || childs === void 0 ? void 0 : childs.length) / 7)) !== null && _a !== void 0 ? _a : 0)) !== null && _b !== void 0 ? _b : 0;
|
|
28
|
+
var curPage = Math.round(next / totalPages);
|
|
29
|
+
if (curPage === 0) {
|
|
30
|
+
setIsMin(true);
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
if (curPage === totalPages) {
|
|
34
|
+
setIsMax(true);
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
setIsMax(false);
|
|
38
|
+
setIsMin(false);
|
|
39
|
+
} }, sliderSettings);
|
|
40
|
+
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
41
|
+
React__default["default"].createElement(Slider_styles.Container, null,
|
|
42
|
+
React__default["default"].createElement(SlickSlider__default["default"], _tslib.__assign({}, settings), children))));
|
|
74
43
|
};
|
|
75
44
|
|
|
76
45
|
exports.Slider = Slider;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Slider.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -9,16 +9,14 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
9
9
|
|
|
10
10
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
11
11
|
|
|
12
|
-
var Container = styled__default["default"].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n position: relative;\n"], ["\n position: relative;\n"])));
|
|
13
|
-
|
|
14
|
-
var LeftIconButtonContainer = styled__default["default"].div(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n display: flex;\n position: absolute;\n left: -", "px;\n z-index: 1;\n @media (min-width: ", "px) {\n left: -", "px;\n }\n"], ["\n display: flex;\n position: absolute;\n left: -", "px;\n z-index: 1;\n @media (min-width: ", "px) {\n left: -", "px;\n }\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.
|
|
15
|
-
var RightIconButtonContainer = styled__default["default"].div(templateObject_4 || (templateObject_4 = _tslib.__makeTemplateObject(["\n display: flex;\n position: absolute;\n right: -", "px;\n @media (min-width: ", "px) {\n right: -", "px;\n }\n"], ["\n display: flex;\n position: absolute;\n right: -", "px;\n @media (min-width: ", "px) {\n right: -", "px;\n }\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.
|
|
16
|
-
|
|
12
|
+
var Container = styled__default["default"].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n position: relative;\n\n @media (min-width: ", "px) {\n padding: 0 32px;\n }\n"], ["\n position: relative;\n\n @media (min-width: ", "px) {\n padding: 0 32px;\n }\n"])), function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.md; });
|
|
13
|
+
styled__default["default"].div(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n display: flex;\n align-items: center;\n overflow: scroll;\n scroll-behavior: smooth;\n margin: 0 -", "px;\n overflow-y: hidden;\n -ms-overflow-style: none; /* IE and Edge */\n scrollbar-width: none; /* Firefox */\n\n &::-webkit-scrollbar {\n display: none;\n }\n\n @media (pointer: fine) {\n overflow-x: hidden;\n }\n @media (min-width: ", "px) {\n margin: 0 -", "px;\n }\n"], ["\n display: flex;\n align-items: center;\n overflow: scroll;\n scroll-behavior: smooth;\n margin: 0 -", "px;\n overflow-y: hidden;\n -ms-overflow-style: none; /* IE and Edge */\n scrollbar-width: none; /* Firefox */\n\n &::-webkit-scrollbar {\n display: none;\n }\n\n @media (pointer: fine) {\n overflow-x: hidden;\n }\n @media (min-width: ", "px) {\n margin: 0 -", "px;\n }\n"])), 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.breakpoints) === null || _a === void 0 ? void 0 : _a.md; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.lg; });
|
|
14
|
+
var LeftIconButtonContainer = styled__default["default"].div(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n display: flex;\n position: absolute;\n left: -", "px;\n top: 50%;\n transform: translateY(-50%);\n z-index: 1;\n @media (max-width: ", "px) {\n display: none !important;\n }\n @media (min-width: ", "px) {\n display: block;\n left: -", "px;\n }\n"], ["\n display: flex;\n position: absolute;\n left: -", "px;\n top: 50%;\n transform: translateY(-50%);\n z-index: 1;\n @media (max-width: ", "px) {\n display: none !important;\n }\n @media (min-width: ", "px) {\n display: block;\n left: -", "px;\n }\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.md; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.md; }, 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.spacings) === null || _a === void 0 ? void 0 : _a.xl; });
|
|
15
|
+
var RightIconButtonContainer = styled__default["default"].div(templateObject_4 || (templateObject_4 = _tslib.__makeTemplateObject(["\n display: flex;\n\n top: 50%;\n transform: translateY(-50%);\n position: absolute;\n right: -", "px;\n\n @media (max-width: ", "px) {\n display: none !important;\n }\n\n @media (min-width: ", "px) {\n display: block;\n right: -", "px;\n }\n"], ["\n display: flex;\n\n top: 50%;\n transform: translateY(-50%);\n position: absolute;\n right: -", "px;\n\n @media (max-width: ", "px) {\n display: none !important;\n }\n\n @media (min-width: ", "px) {\n display: block;\n right: -", "px;\n }\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.md; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.md; }, 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.spacings) === null || _a === void 0 ? void 0 : _a.xl; });
|
|
16
|
+
styled__default["default"].div(templateObject_5 || (templateObject_5 = _tslib.__makeTemplateObject(["\n display: flex;\n flex-direction: row;\n gap: ", "px;\n padding: 0 ", "px;\n @media (min-width: ", "px) {\n padding: 0 ", "px;\n gap: ", "px;\n }\n"], ["\n display: flex;\n flex-direction: row;\n gap: ", "px;\n padding: 0 ", "px;\n @media (min-width: ", "px) {\n padding: 0 ", "px;\n gap: ", "px;\n }\n"])), function (props) { var _a, _b; return (_a = props.itemGap) !== null && _a !== void 0 ? _a : (_b = props.theme.spacings) === null || _b === void 0 ? void 0 : _b.xxs; }, 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.breakpoints) === null || _a === void 0 ? void 0 : _a.md; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.lg; }, function (props) { var _a, _b; return (_a = props.itemGap) !== null && _a !== void 0 ? _a : (_b = props.theme.spacings) === null || _b === void 0 ? void 0 : _b.xs; });
|
|
17
17
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
18
18
|
|
|
19
19
|
exports.Container = Container;
|
|
20
|
-
exports.ItemsContainer = ItemsContainer;
|
|
21
20
|
exports.LeftIconButtonContainer = LeftIconButtonContainer;
|
|
22
21
|
exports.RightIconButtonContainer = RightIconButtonContainer;
|
|
23
|
-
exports.SliderContainer = SliderContainer;
|
|
24
22
|
//# sourceMappingURL=Slider.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Slider.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -30,6 +30,7 @@ require('../CustomerInfoBlock/CustomerInfoBlock.styles.js');
|
|
|
30
30
|
require('../Collapsable/Collapsable.styles.js');
|
|
31
31
|
require('../DeliverySlotItem/DeliverySlotItem.styles.js');
|
|
32
32
|
require('../Slider/Slider.styles.js');
|
|
33
|
+
require('react-slick');
|
|
33
34
|
require('../DeliveryTimeBlock/DeliveryTimeBlock.styles.js');
|
|
34
35
|
require('../Menu/Menu.styles.js');
|
|
35
36
|
require('../DateBox/DateBox.styles.js');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WarningLabel.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WarningLabel.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -26,6 +26,7 @@ import '../CustomerInfoBlock/CustomerInfoBlock.styles.js';
|
|
|
26
26
|
import '../Collapsable/Collapsable.styles.js';
|
|
27
27
|
import '../DeliverySlotItem/DeliverySlotItem.styles.js';
|
|
28
28
|
import '../Slider/Slider.styles.js';
|
|
29
|
+
import 'react-slick';
|
|
29
30
|
import '../DeliveryTimeBlock/DeliveryTimeBlock.styles.js';
|
|
30
31
|
import '../Menu/Menu.styles.js';
|
|
31
32
|
import '../DateBox/DateBox.styles.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddressBlock.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AddressBlock.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,27 +1,20 @@
|
|
|
1
1
|
import React, { useState, useEffect, useRef } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { DeliverySlotItemContainer, DeliverySlotHeaderContainer, DeliverySlotHeaderText, DeliverySlotContainer, DeliverySlotBody } from './DeliverySlotItem.styles.js';
|
|
2
|
+
import { moment, useWindowSize, capitalizeFirstLetter, formatLeadingZero } from '@citygross/utils';
|
|
3
|
+
import { BodyText, TextTypes } from '@citygross/typography';
|
|
4
|
+
import { DeliverySlotItemContainer, DeliverySlotContainer, DeliverySlotHeaderText, DeliverySlotBody } from './DeliverySlotItem.styles.js';
|
|
6
5
|
|
|
7
6
|
function DeliverySlotItem(_a) {
|
|
8
|
-
var
|
|
9
|
-
var date = _a.date, selected = _a.selected, disabled = _a.disabled, children = _a.children, onSelect = _a.onSelect;
|
|
7
|
+
var date = _a.date, selected = _a.selected, children = _a.children, onSelect = _a.onSelect, icon = _a.icon;
|
|
10
8
|
var momentDate = moment(date);
|
|
11
9
|
var width = useWindowSize().width;
|
|
12
|
-
var
|
|
13
|
-
.format(width < (((_b = theme.breakpoints) === null || _b === void 0 ? void 0 : _b.md) || 768) ? 'ddd' : 'dddd')
|
|
14
|
-
.toLocaleLowerCase()), weekDay = _c[0], setWeekDay = _c[1];
|
|
10
|
+
var _b = useState(momentDate.format('dddd').toLocaleLowerCase()), weekDay = _b[0], setWeekDay = _b[1];
|
|
15
11
|
var dayNumber = momentDate.format('D');
|
|
16
|
-
var month = momentDate.format('
|
|
12
|
+
var month = momentDate.format('MMMM').toLocaleLowerCase();
|
|
17
13
|
useEffect(function () {
|
|
18
|
-
|
|
19
|
-
setWeekDay(momentDate
|
|
20
|
-
.format(width < (((_a = theme.breakpoints) === null || _a === void 0 ? void 0 : _a.md) || 768) ? 'ddd' : 'dddd')
|
|
21
|
-
.toLocaleLowerCase());
|
|
14
|
+
setWeekDay(momentDate.format('dddd').toLocaleLowerCase());
|
|
22
15
|
}, [width]);
|
|
23
16
|
var slotRef = useRef(null);
|
|
24
|
-
var
|
|
17
|
+
var _c = useState(true), isVisible = _c[0], setIsVisible = _c[1];
|
|
25
18
|
var callbackFn = function (entries) {
|
|
26
19
|
var entry = entries[0];
|
|
27
20
|
// gets zoom level
|
|
@@ -71,15 +64,16 @@ function DeliverySlotItem(_a) {
|
|
|
71
64
|
}
|
|
72
65
|
};
|
|
73
66
|
}, [slotRef, options]);
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
67
|
+
return (React.createElement(DeliverySlotItemContainer, { onClick: onSelect, isVisible: isVisible, ref: slotRef, selected: selected },
|
|
68
|
+
React.createElement(DeliverySlotContainer, { selected: selected },
|
|
69
|
+
React.createElement(DeliverySlotHeaderText, null,
|
|
70
|
+
React.createElement(BodyText, { fontWeight: 'medium' }, capitalizeFirstLetter(weekDay)),
|
|
71
|
+
icon && icon),
|
|
72
|
+
React.createElement(DeliverySlotBody, null,
|
|
73
|
+
React.createElement(BodyText, { color: 'darkest', size: TextTypes.TextSize.SMALL },
|
|
74
|
+
formatLeadingZero(dayNumber),
|
|
75
|
+
" ",
|
|
76
|
+
capitalizeFirstLetter(month))),
|
|
83
77
|
children)));
|
|
84
78
|
}
|
|
85
79
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeliverySlotItem.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DeliverySlotItem.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
|
|
4
|
-
var DeliverySlotItemContainer = styled.div(templateObject_1 || (templateObject_1 = __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:
|
|
4
|
+
var DeliverySlotItemContainer = styled.div(templateObject_1 || (templateObject_1 = __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 margin: 0 ", "px;\n border: solid 1px\n ", ";\n border-radius: ", "px;\n overflow: hidden;\n width: ", "px;\n max-width: ", "px;\n min-height: ", "px;\n\n @media (min-width: ", "px) {\n min-width: ", "px;\n }\n\n &:hover {\n cursor: pointer;\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 margin: 0 ", "px;\n border: solid 1px\n ", ";\n border-radius: ", "px;\n overflow: hidden;\n width: ", "px;\n max-width: ", "px;\n min-height: ", "px;\n\n @media (min-width: ", "px) {\n min-width: ", "px;\n }\n\n &:hover {\n cursor: pointer;\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) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs; }, function (props) {
|
|
5
5
|
var _a, _b;
|
|
6
6
|
return props.selected
|
|
7
7
|
? (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.brandBlue
|
|
8
8
|
: (_b = props.theme.palette) === null || _b === void 0 ? void 0 : _b.medium;
|
|
9
|
-
}, 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.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
return props.
|
|
13
|
-
? (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.brandBlue
|
|
14
|
-
: (_b = props.theme.palette) === null || _b === void 0 ? void 0 : _b.lightest;
|
|
15
|
-
});
|
|
16
|
-
var DeliverySlotHeaderText = styled.div(templateObject_3 || (templateObject_3 = __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'; });
|
|
17
|
-
var DeliverySlotContainer = styled.div(templateObject_4 || (templateObject_4 = __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) {
|
|
9
|
+
}, 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.constants) === null || _a === void 0 ? void 0 : _a.deliverySlotItemWidth; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.deliverySlotItemWidth; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.deliverySlotItemHeight; }, 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; });
|
|
10
|
+
styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n width: 100%;\n"], ["\n display: flex;\n width: 100%;\n"])));
|
|
11
|
+
var DeliverySlotHeaderText = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n"], ["\n display: flex;\n justify-content: space-between;\n"])));
|
|
12
|
+
var DeliverySlotContainer = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n padding: ", "px;\n flex: 1;\n width: stretch;\n background: ", ";\n &:hover {\n cursor: pointer;\n ", ";\n }\n"], ["\n padding: ", "px;\n flex: 1;\n width: stretch;\n background: ", ";\n &:hover {\n cursor: pointer;\n ", ";\n }\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs2; }, function (props) {
|
|
18
13
|
var _a, _b;
|
|
19
14
|
return props.selected
|
|
20
15
|
? (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.blueLight
|
|
21
16
|
: (_b = props.theme.palette) === null || _b === void 0 ? void 0 : _b.white;
|
|
17
|
+
}, function (props) {
|
|
18
|
+
var _a;
|
|
19
|
+
return !props.selected &&
|
|
20
|
+
"\n background:".concat((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.lighter);
|
|
22
21
|
});
|
|
23
|
-
var DeliverySlotBody = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n
|
|
22
|
+
var DeliverySlotBody = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n margin-top: ", "px;\n margin-bottom: ", "px;\n"], ["\n margin-top: ", "px;\n margin-bottom: ", "px;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxxs; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs; });
|
|
24
23
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
25
24
|
|
|
26
|
-
export { DeliverySlotBody, DeliverySlotContainer,
|
|
25
|
+
export { DeliverySlotBody, DeliverySlotContainer, DeliverySlotHeaderText, DeliverySlotItemContainer };
|
|
27
26
|
//# sourceMappingURL=DeliverySlotItem.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeliverySlotItem.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DeliverySlotItem.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
|
|
4
|
-
var BaseRadioGroup = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
4
|
+
var BaseRadioGroup = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n display:flex;\n flex-direction: column;\n gap: ", "px;\n"], ["\n ", "\n display:flex;\n flex-direction: column;\n gap: ", "px;\n"])), function (props) {
|
|
5
5
|
var _a;
|
|
6
6
|
return props.header &&
|
|
7
7
|
"\n > :first-child{\n margin-bottom: ".concat((_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.md, "px;\n text-align: initial;\n }\n ");
|
|
8
|
-
});
|
|
8
|
+
}, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; });
|
|
9
9
|
var StyledDiv = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background: ", ";\n border-radius: ", ";\n"], ["\n background: ", ";\n border-radius: ", ";\n"])), function (props) { var _a, _b; return (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.palette) === null || _b === void 0 ? void 0 : _b.white; }, function (props) { return (props.rounded ? '5px' : '0'); });
|
|
10
10
|
var templateObject_1, templateObject_2;
|
|
11
11
|
|
|
@@ -1,29 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { Radio } from '../FormElements/Radio/Radio.js';
|
|
4
|
-
import { Dot } from '../DotIndicator/DotIndicator.js';
|
|
5
|
-
import { theme } from '@citygross/design-tokens';
|
|
6
|
-
import { BaseRadioListItemContainer, RadioFlex, BaseRadioItemLeftWrapper, StyledH3, RadioSecondaryWrapper, DisableText } from './RadioListItem.styles.js';
|
|
2
|
+
import { BaseRadioListItemContainer, RadioFlex, BaseRadioItemLeftWrapper, StyledH3, RadioRightWrapper, DisableText } from './RadioListItem.styles.js';
|
|
7
3
|
|
|
8
4
|
function RadioListItem(_a) {
|
|
9
|
-
var _b,
|
|
10
|
-
|
|
11
|
-
return (React.createElement(BaseRadioListItemContainer, { background: transparent
|
|
12
|
-
? (_b = theme.palette) === null || _b === void 0 ? void 0 : _b.transparent
|
|
13
|
-
: theme && theme.palette
|
|
14
|
-
? selected
|
|
15
|
-
? (_c = theme.palette) === null || _c === void 0 ? void 0 : _c.blueLight
|
|
16
|
-
: (_d = theme.palette) === null || _d === void 0 ? void 0 : _d.white
|
|
17
|
-
: 'white', noPadding: noPadding, onClick: isDisabled ? function () { } : function () { return onClick(value); } },
|
|
5
|
+
var onClick = _a.onClick, selected = _a.selected, defaultDisabledString = _a.defaultDisabledString, _b = _a.flexGrow, flexGrow = _b === void 0 ? 1 : _b, isDisabled = _a.isDisabled, transparent = _a.transparent, noPadding = _a.noPadding, label = _a.label, disabledText = _a.disabledText, value = _a.value, wrapMobile = _a.wrapMobile, additionalInfo = _a.additionalInfo, children = _a.children;
|
|
6
|
+
return (React.createElement(BaseRadioListItemContainer, { transparent: transparent, isDisabled: isDisabled, noPadding: noPadding, selected: selected, onClick: isDisabled ? function () { } : function () { return onClick(value); } },
|
|
18
7
|
React.createElement(RadioFlex, { wrapMobile: wrapMobile },
|
|
19
|
-
React.createElement(BaseRadioItemLeftWrapper, { isDisabled: isDisabled, flexGrow: flexGrow
|
|
20
|
-
React.createElement(Radio, { customColor: radioColor, checked: selected, disabled: isDisabled, name: name, onChange: function () { return onClick(value); }, value: value }),
|
|
8
|
+
React.createElement(BaseRadioItemLeftWrapper, { isDisabled: isDisabled, flexGrow: flexGrow },
|
|
21
9
|
React.createElement("div", null,
|
|
22
|
-
React.createElement(StyledH3, {
|
|
23
|
-
|
|
24
|
-
React.createElement(
|
|
25
|
-
React.createElement("span", null, dotIndicator && selected && (React.createElement(Dot, { color: dotIndicator.color, shadow: dotIndicator.shadow }))),
|
|
26
|
-
isDisabled ? (React.createElement(DisableText, null, disabledText || defaultDisabledString)) : (children || secondaryLabel)))));
|
|
10
|
+
React.createElement(StyledH3, { isDisabled: isDisabled }, label),
|
|
11
|
+
additionalInfo && additionalInfo)),
|
|
12
|
+
React.createElement(RadioRightWrapper, null, isDisabled ? (React.createElement(DisableText, null, disabledText || defaultDisabledString)) : (children)))));
|
|
27
13
|
}
|
|
28
14
|
|
|
29
15
|
export { RadioListItem };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioListItem.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RadioListItem.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
|
|
@@ -2,11 +2,20 @@ import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
|
|
|
2
2
|
import { H3, BodyText } from '@citygross/typography';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
|
|
5
|
-
var BaseRadioListItemContainer = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: ", "px;\n align-items: center;\n cursor:
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
var BaseRadioListItemContainer = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: ", "px;\n align-items: center;\n cursor: ", ";\n flex-wrap: wrap;\n border-radius: ", "px;\n background: ", ";\n transition: background-color 250ms ease;\n border: 1px solid ", ";\n > p:first-of-type {\n margin-left: ", "px;\n }\n"], ["\n padding: ", "px;\n align-items: center;\n cursor: ", ";\n flex-wrap: wrap;\n border-radius: ", "px;\n background: ", ";\n transition: background-color 250ms ease;\n border: 1px solid ", ";\n > p:first-of-type {\n margin-left: ", "px;\n }\n"])), function (props) { var _a; return (props.noPadding ? 0 : (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs2); }, function (props) { return (props.isDisabled ? 'cursor' : 'pointer'); }, function (props) { var _a; return (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.borderRadius.small; }, function (props) {
|
|
6
|
+
var _a, _b, _c, _d;
|
|
7
|
+
return props.isDisabled
|
|
8
|
+
? (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.lightest
|
|
9
|
+
: props.transparent
|
|
10
|
+
? (_b = props.theme.palette) === null || _b === void 0 ? void 0 : _b.transparent
|
|
11
|
+
: props.selected
|
|
12
|
+
? (_c = props.theme.palette) === null || _c === void 0 ? void 0 : _c.blueLight
|
|
13
|
+
: (_d = props.theme.palette) === null || _d === void 0 ? void 0 : _d.white;
|
|
14
|
+
}, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.medium; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; });
|
|
15
|
+
var BaseRadioItemLeftWrapper = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex: 5;\n align-items: flex-start;\n ", ";\n > * {\n &:first-child {\n margin-right: ", "px;\n }\n }\n"], ["\n display: flex;\n flex: 5;\n align-items: flex-start;\n ", ";\n > * {\n &:first-child {\n margin-right: ", "px;\n }\n }\n"])), function (props) { return props.flexGrow && "flex-grow: ".concat(props.flexGrow); }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; });
|
|
16
|
+
var StyledH3 = styled(H3).attrs({ as: 'label' })(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n cursor: pointer;\n white-space: nowrap;\n display: block;\n ", ";\n"], ["\n cursor: pointer;\n white-space: nowrap;\n display: block;\n ", ";\n"])), function (props) { var _a; return props.isDisabled && "color:".concat((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.dark); });
|
|
17
|
+
var RadioRightWrapper = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n gap: ", "px;\n justify-content: flex-end;\n text-align: right;\n font-size: ", "px;\n > p {\n line-height: unset;\n }\n"], ["\n display: flex;\n gap: ", "px;\n justify-content: flex-end;\n text-align: right;\n font-size: ", "px;\n > p {\n line-height: unset;\n }\n"])), 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.typography) === null || _a === void 0 ? void 0 : _a.size.s2; });
|
|
18
|
+
var DisableText = styled(BodyText)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n font-size: ", "px;\n color: ", ";\n ", "\n @media (min-width: ", "px) {\n font-size: ", "px;\n text-align: inherit;\n }\n"], ["\n font-size: ", "px;\n color: ", ";\n ", "\n @media (min-width: ", "px) {\n font-size: ", "px;\n text-align: inherit;\n }\n"])), function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.s2; }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.darkest; }, function (props) {
|
|
10
19
|
return (props === null || props === void 0 ? void 0 : props.wrapMobile) &&
|
|
11
20
|
"\n text-align: left;\n \n";
|
|
12
21
|
}, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.xs; }, function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.s3; });
|
|
@@ -18,5 +27,5 @@ var RadioFlex = styled.div(templateObject_6 || (templateObject_6 = __makeTemplat
|
|
|
18
27
|
styled.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n"], ["\n display: flex;\n flex-direction: column;\n"])));
|
|
19
28
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
|
|
20
29
|
|
|
21
|
-
export { BaseRadioItemLeftWrapper, BaseRadioListItemContainer, DisableText, RadioFlex,
|
|
30
|
+
export { BaseRadioItemLeftWrapper, BaseRadioListItemContainer, DisableText, RadioFlex, RadioRightWrapper, StyledH3 };
|
|
22
31
|
//# sourceMappingURL=RadioListItem.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioListItem.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RadioListItem.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,68 +1,36 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { __assign } from '../../../../_virtual/_tslib.js';
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
|
+
import { RightIconButtonContainer, LeftIconButtonContainer, Container } from './Slider.styles.js';
|
|
3
4
|
import { IconButton } from '../Button/IconButton.js';
|
|
4
5
|
import { Icons } from '@citygross/icons';
|
|
5
|
-
import
|
|
6
|
-
import { constants } from '@citygross/design-tokens';
|
|
6
|
+
import SlickSlider from 'react-slick';
|
|
7
7
|
|
|
8
8
|
var Slider = function (_a) {
|
|
9
|
-
var _b
|
|
10
|
-
var children = _a.children,
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
var scrollIsAtEnd = e.currentTarget.scrollLeft +
|
|
35
|
-
e.currentTarget.getBoundingClientRect().width >=
|
|
36
|
-
e.currentTarget.scrollWidth;
|
|
37
|
-
setIsMax(scrollIsAtEnd);
|
|
38
|
-
}
|
|
39
|
-
function resizeListener() {
|
|
40
|
-
var _a, _b;
|
|
41
|
-
var tmpClientWidth = (_b = (_a = itemsContainer === null || itemsContainer === void 0 ? void 0 : itemsContainer.current) === null || _a === void 0 ? void 0 : _a.clientWidth) !== null && _b !== void 0 ? _b : 0;
|
|
42
|
-
var amountOfItemsToSlide = Math.floor(tmpClientWidth /
|
|
43
|
-
(isMobile
|
|
44
|
-
? constants.deliverySlotItemWidth
|
|
45
|
-
: constants.deliverySlotItemWidthDesktop));
|
|
46
|
-
setSlideAmount(customSlideAmount !== null && customSlideAmount !== void 0 ? customSlideAmount : amountOfItemsToSlide *
|
|
47
|
-
((isMobile
|
|
48
|
-
? constants.deliverySlotItemWidth
|
|
49
|
-
: constants.deliverySlotItemWidthDesktop) +
|
|
50
|
-
(itemGap !== null && itemGap !== void 0 ? itemGap : constants.itemGap)));
|
|
51
|
-
}
|
|
52
|
-
useEffect(function () {
|
|
53
|
-
resizeListener();
|
|
54
|
-
window.addEventListener('resize', resizeListener);
|
|
55
|
-
return function () {
|
|
56
|
-
document.removeEventListener('resize', resizeListener);
|
|
57
|
-
};
|
|
58
|
-
}, []);
|
|
59
|
-
return (React.createElement(Container, null,
|
|
60
|
-
React.createElement(SliderContainer, { ref: itemsContainer, onScroll: function (e) { return onScroll(e); } },
|
|
61
|
-
React.createElement(LeftIconButtonContainer, null,
|
|
62
|
-
React.createElement(IconButton, { isDisabled: isMin, color: iconColor, icon: React.createElement(Icons.ChevronLeft, { color: 'white' }), height: iconHeight, width: iconWidth, onClick: function () { return slideRight(); }, borderRadius: 100 })),
|
|
63
|
-
React.createElement(ItemsContainer, { itemGap: itemGap }, children),
|
|
64
|
-
React.createElement(RightIconButtonContainer, null,
|
|
65
|
-
React.createElement(IconButton, { isDisabled: isMax || notScrollable, color: iconColor, icon: React.createElement(Icons.ChevronRight, { color: 'white' }), height: iconHeight, width: iconWidth, onClick: function () { return slideLeft(); }, borderRadius: 100 })))));
|
|
9
|
+
var _b;
|
|
10
|
+
var children = _a.children, _c = _a.iconHeight, iconHeight = _c === void 0 ? 32 : _c, _d = _a.iconWidth, iconWidth = _d === void 0 ? 32 : _d, _e = _a.iconColor, iconColor = _e === void 0 ? 'darkest' : _e, sliderSettings = _a.sliderSettings;
|
|
11
|
+
var _f = useState(false), isMax = _f[0], setIsMax = _f[1];
|
|
12
|
+
var _g = useState(true), isMin = _g[0], setIsMin = _g[1];
|
|
13
|
+
var childs = (_b = React.Children) === null || _b === void 0 ? void 0 : _b.map(children, function (child) { return child; });
|
|
14
|
+
var settings = __assign({ speed: 500, slidesToShow: 7, infinite: false, slidesToScroll: 7, variableWidth: true, initialSlide: 0, nextArrow: (React.createElement(RightIconButtonContainer, null,
|
|
15
|
+
React.createElement(IconButton, { isDisabled: isMax, color: iconColor, icon: React.createElement(Icons.ChevronRight, { color: 'white' }), height: iconHeight, width: iconWidth, borderRadius: 100 }))), prevArrow: (React.createElement(LeftIconButtonContainer, null,
|
|
16
|
+
React.createElement(IconButton, { isDisabled: isMin, color: iconColor, icon: React.createElement(Icons.ChevronLeft, { color: 'white' }), height: iconHeight, width: iconWidth, borderRadius: 100 }))), beforeChange: function (_, next) {
|
|
17
|
+
var _a, _b;
|
|
18
|
+
var totalPages = (_b = Math.ceil((_a = (childs && (childs === null || childs === void 0 ? void 0 : childs.length) / 7)) !== null && _a !== void 0 ? _a : 0)) !== null && _b !== void 0 ? _b : 0;
|
|
19
|
+
var curPage = Math.round(next / totalPages);
|
|
20
|
+
if (curPage === 0) {
|
|
21
|
+
setIsMin(true);
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
if (curPage === totalPages) {
|
|
25
|
+
setIsMax(true);
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
setIsMax(false);
|
|
29
|
+
setIsMin(false);
|
|
30
|
+
} }, sliderSettings);
|
|
31
|
+
return (React.createElement(React.Fragment, null,
|
|
32
|
+
React.createElement(Container, null,
|
|
33
|
+
React.createElement(SlickSlider, __assign({}, settings), children))));
|
|
66
34
|
};
|
|
67
35
|
|
|
68
36
|
export { Slider };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Slider.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
|
|
4
|
-
var Container = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n"], ["\n position: relative;\n"])));
|
|
5
|
-
|
|
6
|
-
var LeftIconButtonContainer = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n position: absolute;\n left: -", "px;\n z-index: 1;\n @media (min-width: ", "px) {\n left: -", "px;\n }\n"], ["\n display: flex;\n position: absolute;\n left: -", "px;\n z-index: 1;\n @media (min-width: ", "px) {\n left: -", "px;\n }\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.
|
|
7
|
-
var RightIconButtonContainer = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n position: absolute;\n right: -", "px;\n @media (min-width: ", "px) {\n right: -", "px;\n }\n"], ["\n display: flex;\n position: absolute;\n right: -", "px;\n @media (min-width: ", "px) {\n right: -", "px;\n }\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.
|
|
8
|
-
|
|
4
|
+
var Container = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n\n @media (min-width: ", "px) {\n padding: 0 32px;\n }\n"], ["\n position: relative;\n\n @media (min-width: ", "px) {\n padding: 0 32px;\n }\n"])), function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.md; });
|
|
5
|
+
styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n overflow: scroll;\n scroll-behavior: smooth;\n margin: 0 -", "px;\n overflow-y: hidden;\n -ms-overflow-style: none; /* IE and Edge */\n scrollbar-width: none; /* Firefox */\n\n &::-webkit-scrollbar {\n display: none;\n }\n\n @media (pointer: fine) {\n overflow-x: hidden;\n }\n @media (min-width: ", "px) {\n margin: 0 -", "px;\n }\n"], ["\n display: flex;\n align-items: center;\n overflow: scroll;\n scroll-behavior: smooth;\n margin: 0 -", "px;\n overflow-y: hidden;\n -ms-overflow-style: none; /* IE and Edge */\n scrollbar-width: none; /* Firefox */\n\n &::-webkit-scrollbar {\n display: none;\n }\n\n @media (pointer: fine) {\n overflow-x: hidden;\n }\n @media (min-width: ", "px) {\n margin: 0 -", "px;\n }\n"])), 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.breakpoints) === null || _a === void 0 ? void 0 : _a.md; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.lg; });
|
|
6
|
+
var LeftIconButtonContainer = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n position: absolute;\n left: -", "px;\n top: 50%;\n transform: translateY(-50%);\n z-index: 1;\n @media (max-width: ", "px) {\n display: none !important;\n }\n @media (min-width: ", "px) {\n display: block;\n left: -", "px;\n }\n"], ["\n display: flex;\n position: absolute;\n left: -", "px;\n top: 50%;\n transform: translateY(-50%);\n z-index: 1;\n @media (max-width: ", "px) {\n display: none !important;\n }\n @media (min-width: ", "px) {\n display: block;\n left: -", "px;\n }\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.md; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.md; }, 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.spacings) === null || _a === void 0 ? void 0 : _a.xl; });
|
|
7
|
+
var RightIconButtonContainer = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n\n top: 50%;\n transform: translateY(-50%);\n position: absolute;\n right: -", "px;\n\n @media (max-width: ", "px) {\n display: none !important;\n }\n\n @media (min-width: ", "px) {\n display: block;\n right: -", "px;\n }\n"], ["\n display: flex;\n\n top: 50%;\n transform: translateY(-50%);\n position: absolute;\n right: -", "px;\n\n @media (max-width: ", "px) {\n display: none !important;\n }\n\n @media (min-width: ", "px) {\n display: block;\n right: -", "px;\n }\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.md; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.md; }, 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.spacings) === null || _a === void 0 ? void 0 : _a.xl; });
|
|
8
|
+
styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n gap: ", "px;\n padding: 0 ", "px;\n @media (min-width: ", "px) {\n padding: 0 ", "px;\n gap: ", "px;\n }\n"], ["\n display: flex;\n flex-direction: row;\n gap: ", "px;\n padding: 0 ", "px;\n @media (min-width: ", "px) {\n padding: 0 ", "px;\n gap: ", "px;\n }\n"])), function (props) { var _a, _b; return (_a = props.itemGap) !== null && _a !== void 0 ? _a : (_b = props.theme.spacings) === null || _b === void 0 ? void 0 : _b.xxs; }, 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.breakpoints) === null || _a === void 0 ? void 0 : _a.md; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.lg; }, function (props) { var _a, _b; return (_a = props.itemGap) !== null && _a !== void 0 ? _a : (_b = props.theme.spacings) === null || _b === void 0 ? void 0 : _b.xs; });
|
|
9
9
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
10
10
|
|
|
11
|
-
export { Container,
|
|
11
|
+
export { Container, LeftIconButtonContainer, RightIconButtonContainer };
|
|
12
12
|
//# sourceMappingURL=Slider.styles.js.map
|
|
@@ -26,6 +26,7 @@ import '../CustomerInfoBlock/CustomerInfoBlock.styles.js';
|
|
|
26
26
|
import '../Collapsable/Collapsable.styles.js';
|
|
27
27
|
import '../DeliverySlotItem/DeliverySlotItem.styles.js';
|
|
28
28
|
import '../Slider/Slider.styles.js';
|
|
29
|
+
import 'react-slick';
|
|
29
30
|
import '../DeliveryTimeBlock/DeliveryTimeBlock.styles.js';
|
|
30
31
|
import '../Menu/Menu.styles.js';
|
|
31
32
|
import '../DateBox/DateBox.styles.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WarningLabel.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WarningLabel.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@citygross/components",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.201",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./build/cjs/components/src/index.js",
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"@types/react": "^17.0.0",
|
|
45
45
|
"@types/react-dom": "^17.0.0",
|
|
46
46
|
"@types/react-router-dom": "^5.1.7",
|
|
47
|
+
"@types/react-slick": "^0.23.13",
|
|
47
48
|
"@types/styled-components": "^5.1.5",
|
|
48
49
|
"awesome-typescript-loader": "^5.2.1",
|
|
49
50
|
"copyfiles": "^2.4.1",
|
|
@@ -69,7 +70,9 @@
|
|
|
69
70
|
"@citygross/utils": "^0.0.27",
|
|
70
71
|
"framer-motion": "^4.1.17",
|
|
71
72
|
"moment": "^2.29.1",
|
|
72
|
-
"react-loading-skeleton": "^2.2.0"
|
|
73
|
+
"react-loading-skeleton": "^2.2.0",
|
|
74
|
+
"react-slick": "^0.30.1",
|
|
75
|
+
"slick-carousel": "^1.8.1"
|
|
73
76
|
},
|
|
74
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "f3c9c6b8c964f99e9a8e4c0e1df803dfb14c8bd7"
|
|
75
78
|
}
|