@citygross/components 0.7.43 → 0.7.47
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/BackgroundImage/BackgroundImage.d.ts +8 -0
- package/build/@types/components/BackgroundImage/BackgroundImage.stories.d.ts +9 -0
- package/build/@types/components/BackgroundImage/BackgroundImage.styles.d.ts +7 -0
- package/build/@types/components/DateBox/DateBox.d.ts +5 -0
- package/build/@types/components/DateBox/DateBox.stories.d.ts +8 -0
- package/build/@types/components/DateBox/DateBox.styles.d.ts +3 -0
- package/build/@types/components/HighlightBox/HighlighBox.stories.d.ts +8 -0
- package/build/@types/components/HighlightBox/HighlightBox.d.ts +5 -0
- package/build/@types/components/HighlightBox/HighlightBox.styles.d.ts +4 -0
- package/build/@types/components/Menu/Menu.styles.d.ts +2 -0
- package/build/@types/components/Menu/MenuItem.d.ts +3 -1
- package/build/@types/index.d.ts +3 -0
- package/build/cjs/components/src/components/BackgroundImage/BackgroundImage.js +20 -0
- package/build/cjs/components/src/components/BackgroundImage/BackgroundImage.js.map +1 -0
- package/build/cjs/components/src/components/BackgroundImage/BackgroundImage.styles.js +22 -0
- package/build/cjs/components/src/components/BackgroundImage/BackgroundImage.styles.js.map +1 -0
- package/build/cjs/components/src/components/DateBox/DateBox.js +24 -0
- package/build/cjs/components/src/components/DateBox/DateBox.js.map +1 -0
- package/build/cjs/components/src/components/DateBox/DateBox.styles.js +20 -0
- package/build/cjs/components/src/components/DateBox/DateBox.styles.js.map +1 -0
- package/build/cjs/components/src/components/HighlightBox/HighlightBox.js +18 -0
- package/build/cjs/components/src/components/HighlightBox/HighlightBox.js.map +1 -0
- package/build/cjs/components/src/components/HighlightBox/HighlightBox.styles.js +26 -0
- package/build/cjs/components/src/components/HighlightBox/HighlightBox.styles.js.map +1 -0
- package/build/cjs/components/src/components/Menu/Menu.styles.js +2 -2
- package/build/cjs/components/src/components/Menu/MenuItem.js +2 -2
- package/build/cjs/components/src/index.js +6 -0
- package/build/cjs/components/src/index.js.map +1 -1
- package/build/cjs/design-tokens/build/index.js +5 -2
- package/build/cjs/design-tokens/build/index.js.map +1 -1
- package/build/es/components/src/components/BackgroundImage/BackgroundImage.js +12 -0
- package/build/es/components/src/components/BackgroundImage/BackgroundImage.js.map +1 -0
- package/build/es/components/src/components/BackgroundImage/BackgroundImage.styles.js +13 -0
- package/build/es/components/src/components/BackgroundImage/BackgroundImage.styles.js.map +1 -0
- package/build/es/components/src/components/DateBox/DateBox.js +16 -0
- package/build/es/components/src/components/DateBox/DateBox.js.map +1 -0
- package/build/es/components/src/components/DateBox/DateBox.styles.js +10 -0
- package/build/es/components/src/components/DateBox/DateBox.styles.js.map +1 -0
- package/build/es/components/src/components/HighlightBox/HighlightBox.js +10 -0
- package/build/es/components/src/components/HighlightBox/HighlightBox.js.map +1 -0
- package/build/es/components/src/components/HighlightBox/HighlightBox.styles.js +18 -0
- package/build/es/components/src/components/HighlightBox/HighlightBox.styles.js.map +1 -0
- package/build/es/components/src/components/Menu/Menu.styles.js +2 -2
- package/build/es/components/src/components/Menu/MenuItem.js +2 -2
- package/build/es/components/src/index.js +3 -0
- package/build/es/components/src/index.js.map +1 -1
- package/build/es/design-tokens/build/index.js +5 -2
- package/build/es/design-tokens/build/index.js.map +1 -1
- package/package.json +5 -5
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare type TBackgroundImage = {
|
|
2
|
+
image?: JSX.Element;
|
|
3
|
+
children?: JSX.Element;
|
|
4
|
+
height?: number;
|
|
5
|
+
width?: number;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
};
|
|
8
|
+
export declare function BackgroundImage({ image, height, width, onClick, children }: TBackgroundImage): JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Story } from '@storybook/react';
|
|
2
|
+
import { BackgroundImage, TBackgroundImage } from './BackgroundImage';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
component: typeof BackgroundImage;
|
|
5
|
+
title: string;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const Default: Story<TBackgroundImage>;
|
|
9
|
+
export declare const withDate: Story<TBackgroundImage>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare type TBackgroundContainer = {
|
|
2
|
+
height?: number;
|
|
3
|
+
width?: number;
|
|
4
|
+
onClick?: () => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const BackgroundContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TBackgroundContainer, never>;
|
|
7
|
+
export declare const BackgroundImgContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const StyledDateBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
+
export declare const WeekBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export declare const WeekNumber: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export declare const MenuContainer: import("styled-components").StyledComponent<"nav", import("styled-components").DefaultTheme, {}, never>;
|
|
2
2
|
export declare type TMenuItem = {
|
|
3
3
|
active?: boolean;
|
|
4
|
+
isFirstChild?: boolean;
|
|
5
|
+
isLastChild?: boolean;
|
|
4
6
|
};
|
|
5
7
|
export declare type FadeProps = {
|
|
6
8
|
readonly isVisible?: boolean;
|
|
@@ -2,5 +2,7 @@ import React, { AnchorHTMLAttributes } from 'react';
|
|
|
2
2
|
export declare type TMenuItem = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
active?: boolean;
|
|
5
|
+
isFirstChild?: boolean;
|
|
6
|
+
isLastChild?: boolean;
|
|
5
7
|
};
|
|
6
|
-
export declare function MenuItem({ active, children, ...props }: TMenuItem): JSX.Element;
|
|
8
|
+
export declare function MenuItem({ active, isFirstChild, isLastChild, children, ...props }: TMenuItem): JSX.Element;
|
package/build/@types/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from './components/AddressBlock/AddressBlock';
|
|
|
2
2
|
export * from './components/AlertBox/AlertBox';
|
|
3
3
|
export * from './components/Button/Button';
|
|
4
4
|
export * from './components/Header/Header';
|
|
5
|
+
export * from './components/BackgroundImage/BackgroundImage';
|
|
5
6
|
export * from './components/Badge/Badge';
|
|
6
7
|
export * from './components/Box/Box';
|
|
7
8
|
export * from './components/Button';
|
|
@@ -15,6 +16,7 @@ export * from './components/Slider/Slider';
|
|
|
15
16
|
export * from './components/DeliveryTimeBlock/DeliveryTimeBlock';
|
|
16
17
|
export * from './components/Menu/Menu';
|
|
17
18
|
export * from './components/Menu/MenuItem';
|
|
19
|
+
export * from './components/DateBox/DateBox';
|
|
18
20
|
export * from './components/Divider/Divider';
|
|
19
21
|
export * from './components/DotIndicator/DotIndicator';
|
|
20
22
|
export * from './components/Form/Form';
|
|
@@ -25,6 +27,7 @@ export * from './components/FormElements/Radio/Radio';
|
|
|
25
27
|
export * from './components/FormElements/Switch/Switch';
|
|
26
28
|
export * from './components/FormGroup/FormGroup';
|
|
27
29
|
export * from './components/GridContainer/GridContainer';
|
|
30
|
+
export * from './components/HighlightBox/HighlightBox';
|
|
28
31
|
export * from './components/Header/Header';
|
|
29
32
|
export * from './components/IconToolTip/IconToolTip';
|
|
30
33
|
export * from './components/InfoTextBlock/InfoTextBlock';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var BackgroundImage_styles = require('./BackgroundImage.styles.js');
|
|
7
|
+
|
|
8
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
+
|
|
10
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
11
|
+
|
|
12
|
+
function BackgroundImage(_a) {
|
|
13
|
+
var image = _a.image, height = _a.height, width = _a.width, onClick = _a.onClick, children = _a.children;
|
|
14
|
+
return (React__default['default'].createElement(BackgroundImage_styles.BackgroundContainer, { height: height, width: width, onClick: onClick },
|
|
15
|
+
React__default['default'].createElement(BackgroundImage_styles.BackgroundImgContainer, null, image),
|
|
16
|
+
children));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
exports.BackgroundImage = BackgroundImage;
|
|
20
|
+
//# sourceMappingURL=BackgroundImage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackgroundImage.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _tslib = require('../../../../_virtual/_tslib.js');
|
|
6
|
+
var styled = require('styled-components');
|
|
7
|
+
|
|
8
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
+
|
|
10
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
11
|
+
|
|
12
|
+
var BackgroundContainer = styled__default['default'].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n position: relative;\n height: ", ";\n width: ", ";\n border-radius: ", "px;\n overflow: hidden;\n box-shadow: ", ";\n display: flex;\n align-items: center;\n ", "\n"], ["\n position: relative;\n height: ", ";\n width: ", ";\n border-radius: ", "px;\n overflow: hidden;\n box-shadow: ", ";\n display: flex;\n align-items: center;\n ", "\n"])), function (props) { return (props.height ? props.height + "px" : 'auto'); }, function (props) { return (props.height ? props.width + "px" : 'auto'); }, function (props) { var _a; return (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.borderRadius.extraSmall; }, function (props) { var _a; return (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.boxShadow.layoutShadow; }, function (props) {
|
|
13
|
+
var _a;
|
|
14
|
+
return props.onClick &&
|
|
15
|
+
" \n cursor: pointer;\n &:hover {\n box-shadow: " + ((_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.boxShadow.buttonHover) + ";\n }";
|
|
16
|
+
});
|
|
17
|
+
var BackgroundImgContainer = styled__default['default'].div(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n width: 100%;\n height: 100%;\n position: absolute;\n z-index: -1;\n"], ["\n width: 100%;\n height: 100%;\n position: absolute;\n z-index: -1;\n"])));
|
|
18
|
+
var templateObject_1, templateObject_2;
|
|
19
|
+
|
|
20
|
+
exports.BackgroundContainer = BackgroundContainer;
|
|
21
|
+
exports.BackgroundImgContainer = BackgroundImgContainer;
|
|
22
|
+
//# sourceMappingURL=BackgroundImage.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackgroundImage.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var typography = require('@citygross/typography');
|
|
7
|
+
var DateBox_styles = require('./DateBox.styles.js');
|
|
8
|
+
var index = require('../../../../design-tokens/build/index.js');
|
|
9
|
+
|
|
10
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
|
+
|
|
12
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
13
|
+
|
|
14
|
+
function DateBox(_a) {
|
|
15
|
+
var _b;
|
|
16
|
+
var _c = _a.dateHeader, dateHeader = _c === void 0 ? 'vecka' : _c, dateText = _a.dateText;
|
|
17
|
+
return (React__default['default'].createElement(DateBox_styles.StyledDateBox, null,
|
|
18
|
+
React__default['default'].createElement(DateBox_styles.WeekBox, null,
|
|
19
|
+
React__default['default'].createElement(typography.BodyText, { size: typography.TextTypes.TextSize.EXTRASMALL, color: (_b = index.theme.palette) === null || _b === void 0 ? void 0 : _b.white, fontWeight: 'semiBold' }, dateHeader)),
|
|
20
|
+
React__default['default'].createElement(DateBox_styles.WeekNumber, null, dateText)));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
exports.DateBox = DateBox;
|
|
24
|
+
//# sourceMappingURL=DateBox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateBox.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _tslib = require('../../../../_virtual/_tslib.js');
|
|
6
|
+
var styled = require('styled-components');
|
|
7
|
+
|
|
8
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
+
|
|
10
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
11
|
+
|
|
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 (_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.spacings) === null || _b === void 0 ? void 0 : _b.xs) + "px"; });
|
|
14
|
+
var WeekNumber = styled__default['default'].p(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n padding: ", "px 0;\n text-align: center;\n font-size: ", "px;\n font-weight: ", ";\n font-family: 'Poppins';\n"], ["\n padding: ", "px 0;\n text-align: center;\n font-size: ", "px;\n font-weight: ", ";\n font-family: 'Poppins';\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.s4; }, function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.weight.bold; });
|
|
15
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
16
|
+
|
|
17
|
+
exports.StyledDateBox = StyledDateBox;
|
|
18
|
+
exports.WeekBox = WeekBox;
|
|
19
|
+
exports.WeekNumber = WeekNumber;
|
|
20
|
+
//# sourceMappingURL=DateBox.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateBox.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var HighlightBox_styles = require('./HighlightBox.styles.js');
|
|
7
|
+
|
|
8
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
+
|
|
10
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
11
|
+
|
|
12
|
+
function HighlightBox(_a) {
|
|
13
|
+
var cancelled = _a.cancelled, children = _a.children;
|
|
14
|
+
return (React__default['default'].createElement(HighlightBox_styles.HighlightBoxContainer, { cancelled: cancelled }, children));
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
exports.HighlightBox = HighlightBox;
|
|
18
|
+
//# sourceMappingURL=HighlightBox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HighlightBox.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _tslib = require('../../../../_virtual/_tslib.js');
|
|
6
|
+
var styled = require('styled-components');
|
|
7
|
+
|
|
8
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
+
|
|
10
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
11
|
+
|
|
12
|
+
var HighlightBoxContainer = styled__default['default'].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n padding: ", "px;\n background-color: ", ";\n border: 1px solid;\n border-color: ", ";\n border-radius: ", "px;\n box-shadow: ", ";\n"], ["\n padding: ", "px;\n background-color: ", ";\n border: 1px solid;\n border-color: ", ";\n border-radius: ", "px;\n box-shadow: ", ";\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { var _a; return props.cancelled ? (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.lightest : 'inherit'; }, function (props) {
|
|
13
|
+
var _a, _b;
|
|
14
|
+
return props.cancelled
|
|
15
|
+
? (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.light
|
|
16
|
+
: (_b = props.theme.palette) === null || _b === void 0 ? void 0 : _b.blueMedium;
|
|
17
|
+
}, function (props) { var _a; return (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.borderRadius.extraSmall; }, function (props) {
|
|
18
|
+
var _a;
|
|
19
|
+
return props.cancelled
|
|
20
|
+
? ''
|
|
21
|
+
: (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.boxShadow.highlightBoxShadow;
|
|
22
|
+
});
|
|
23
|
+
var templateObject_1;
|
|
24
|
+
|
|
25
|
+
exports.HighlightBoxContainer = HighlightBoxContainer;
|
|
26
|
+
//# sourceMappingURL=HighlightBox.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HighlightBox.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -9,8 +9,8 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
9
9
|
|
|
10
10
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
11
11
|
|
|
12
|
-
var MenuContainer = styled__default['default'].nav(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n position: relative;\n display: flex;\n flex-wrap: nowrap;\n overflow-x: auto;\n overflow-y: hidden;\n
|
|
13
|
-
var MenuItem = styled__default['default'].a(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n flex: 0 0 auto;\n font-weight: ", ";\n padding: ", "px 0;\n display: block;\n border-bottom: ", "px solid;\n border-bottom-color: ", ";\n cursor: pointer;\n font-size: ", "px;\n\n &:last-child {\n position: relative;\n &::after {\n position: absolute;\n content: '';\n right: -", "px;\n width: ", "px;\n height: 100%;\n }\n }\n @media (min-width: ", "px) {\n &:hover {\n border-bottom-color: ", ";\n }\n }\n"], ["\n flex: 0 0 auto;\n font-weight: ", ";\n padding: ", "px 0;\n display: block;\n border-bottom: ", "px solid;\n border-bottom-color: ", ";\n cursor: pointer;\n font-size: ", "px;\n\n &:last-child {\n position: relative;\n &::after {\n position: absolute;\n content: '';\n right: -", "px;\n width: ", "px;\n height: 100%;\n }\n }\n @media (min-width: ", "px) {\n &:hover {\n border-bottom-color: ", ";\n }\n }\n"])), function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.weight.bold; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.tableHeaderVerticalPadding; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs; }, function (props) { var _a; return props.active ? "" + ((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.primary) : 'transparent'; }, function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.s3; }, 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.sm; }, 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.palette) === null || _a === void 0 ? void 0 : _a.primary; });
|
|
12
|
+
var MenuContainer = styled__default['default'].nav(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n position: relative;\n display: flex;\n flex-wrap: nowrap;\n overflow-x: auto;\n overflow-y: hidden;\n -webkit-overflow-scrolling: touch;\n -ms-overflow-style: -ms-autohiding-scrollbar;\n\n ::-webkit-scrollbar {\n background: ", ";\n height: 2px;\n }\n\n ::-webkit-scrollbar-thumb {\n border-radius: ", "px;\n background-color: ", ";\n }\n /* for mozilla */\n scrollbar-width: thin;\n scrollbar-color: ", ";\n\n @media (min-width: ", "px) {\n /* for mozila scroll bar */\n width: calc(100% - 40px);\n }\n"], ["\n position: relative;\n display: flex;\n flex-wrap: nowrap;\n overflow-x: auto;\n overflow-y: hidden;\n -webkit-overflow-scrolling: touch;\n -ms-overflow-style: -ms-autohiding-scrollbar;\n\n ::-webkit-scrollbar {\n background: ", ";\n height: 2px;\n }\n\n ::-webkit-scrollbar-thumb {\n border-radius: ", "px;\n background-color: ", ";\n }\n /* for mozilla */\n scrollbar-width: thin;\n scrollbar-color: ", ";\n\n @media (min-width: ", "px) {\n /* for mozila scroll bar */\n width: calc(100% - 40px);\n }\n"])), function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.white; }, function (props) { var _a; return (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.borderRadius.default; }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.dark; }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.dark; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.xs; });
|
|
13
|
+
var MenuItem = styled__default['default'].a(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n flex: 0 0 auto;\n font-weight: ", ";\n padding: ", "px 0;\n display: block;\n border-bottom: ", "px solid;\n border-bottom-color: ", ";\n cursor: pointer;\n font-size: ", "px;\n margin-left: ", "px;\n margin-right: ", "px;\n\n &:last-child {\n position: relative;\n &::after {\n position: absolute;\n content: '';\n right: -", "px;\n width: ", "px;\n height: 100%;\n }\n }\n @media (min-width: ", "px) {\n &:hover {\n border-bottom-color: ", ";\n }\n }\n"], ["\n flex: 0 0 auto;\n font-weight: ", ";\n padding: ", "px 0;\n display: block;\n border-bottom: ", "px solid;\n border-bottom-color: ", ";\n cursor: pointer;\n font-size: ", "px;\n margin-left: ", "px;\n margin-right: ", "px;\n\n &:last-child {\n position: relative;\n &::after {\n position: absolute;\n content: '';\n right: -", "px;\n width: ", "px;\n height: 100%;\n }\n }\n @media (min-width: ", "px) {\n &:hover {\n border-bottom-color: ", ";\n }\n }\n"])), function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.weight.bold; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.tableHeaderVerticalPadding; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs; }, function (props) { var _a; return props.active ? "" + ((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.primary) : 'transparent'; }, function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.s3; }, function (props) { var _a; return props.isFirstChild ? 0 : (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.menuHorizontalMargin; }, function (props) { var _a; return props.isLastChild ? 0 : (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.menuHorizontalMargin; }, 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.sm; }, 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.palette) === null || _a === void 0 ? void 0 : _a.primary; });
|
|
14
14
|
var Fade = styled__default['default'].div(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n pointer-events: none;\n position: absolute;\n top: 0;\n right: 0;\n width: 100%;\n height: 100%;\n background: linear-gradient(\n to right,\n rgba(255, 255, 255, 0) 80%,\n rgba(255, 255, 255, 1)\n );\n transition: all 0.5s;\n opacity: ", ";\n"], ["\n pointer-events: none;\n position: absolute;\n top: 0;\n right: 0;\n width: 100%;\n height: 100%;\n background: linear-gradient(\n to right,\n rgba(255, 255, 255, 0) 80%,\n rgba(255, 255, 255, 1)\n );\n transition: all 0.5s;\n opacity: ", ";\n"])), function (props) { return ((props === null || props === void 0 ? void 0 : props.isVisible) ? '1' : '0'); });
|
|
15
15
|
var templateObject_1, templateObject_2, templateObject_3;
|
|
16
16
|
|
|
@@ -11,8 +11,8 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
11
11
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
12
12
|
|
|
13
13
|
function MenuItem(_a) {
|
|
14
|
-
var active = _a.active, children = _a.children, props = _tslib.__rest(_a, ["active", "children"]);
|
|
15
|
-
return (React__default['default'].createElement(Menu_styles.MenuItem, _tslib.__assign({}, props, { active: active }), children));
|
|
14
|
+
var active = _a.active, isFirstChild = _a.isFirstChild, isLastChild = _a.isLastChild, children = _a.children, props = _tslib.__rest(_a, ["active", "isFirstChild", "isLastChild", "children"]);
|
|
15
|
+
return (React__default['default'].createElement(Menu_styles.MenuItem, _tslib.__assign({}, props, { isFirstChild: isFirstChild, isLastChild: isLastChild, active: active }), children));
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
exports.MenuItem = MenuItem;
|
|
@@ -6,6 +6,7 @@ var AddressBlock = require('./components/AddressBlock/AddressBlock.js');
|
|
|
6
6
|
var AlertBox = require('./components/AlertBox/AlertBox.js');
|
|
7
7
|
var Button = require('./components/Button/Button.js');
|
|
8
8
|
var Header = require('./components/Header/Header.js');
|
|
9
|
+
var BackgroundImage = require('./components/BackgroundImage/BackgroundImage.js');
|
|
9
10
|
var Badge = require('./components/Badge/Badge.js');
|
|
10
11
|
var Box = require('./components/Box/Box.js');
|
|
11
12
|
var IconButton = require('./components/Button/IconButton.js');
|
|
@@ -20,6 +21,7 @@ var Slider = require('./components/Slider/Slider.js');
|
|
|
20
21
|
var DeliveryTimeBlock = require('./components/DeliveryTimeBlock/DeliveryTimeBlock.js');
|
|
21
22
|
var Menu = require('./components/Menu/Menu.js');
|
|
22
23
|
var MenuItem = require('./components/Menu/MenuItem.js');
|
|
24
|
+
var DateBox = require('./components/DateBox/DateBox.js');
|
|
23
25
|
var Divider = require('./components/Divider/Divider.js');
|
|
24
26
|
var DotIndicator = require('./components/DotIndicator/DotIndicator.js');
|
|
25
27
|
var Form = require('./components/Form/Form.js');
|
|
@@ -30,6 +32,7 @@ var Radio = require('./components/FormElements/Radio/Radio.js');
|
|
|
30
32
|
var Switch = require('./components/FormElements/Switch/Switch.js');
|
|
31
33
|
var FormGroup = require('./components/FormGroup/FormGroup.js');
|
|
32
34
|
var GridContainer = require('./components/GridContainer/GridContainer.js');
|
|
35
|
+
var HighlightBox = require('./components/HighlightBox/HighlightBox.js');
|
|
33
36
|
var IconToolTip = require('./components/IconToolTip/IconToolTip.js');
|
|
34
37
|
var InfoTextBlock = require('./components/InfoTextBlock/InfoTextBlock.js');
|
|
35
38
|
var LayoutBox = require('./components/LayoutBox/LayoutBox.js');
|
|
@@ -75,6 +78,7 @@ Object.defineProperty(exports, 'ButtonSize', {
|
|
|
75
78
|
}
|
|
76
79
|
});
|
|
77
80
|
exports.Header = Header.Header;
|
|
81
|
+
exports.BackgroundImage = BackgroundImage.BackgroundImage;
|
|
78
82
|
exports.Badge = Badge.Badge;
|
|
79
83
|
exports.Box = Box.Box;
|
|
80
84
|
exports.IconButton = IconButton.IconButton;
|
|
@@ -89,6 +93,7 @@ exports.Slider = Slider.Slider;
|
|
|
89
93
|
exports.DeliveryTimeBlock = DeliveryTimeBlock.DeliveryTimeBlock;
|
|
90
94
|
exports.Menu = Menu.Menu;
|
|
91
95
|
exports.MenuItem = MenuItem.MenuItem;
|
|
96
|
+
exports.DateBox = DateBox.DateBox;
|
|
92
97
|
exports.Divider = Divider.Divider;
|
|
93
98
|
exports.Dot = DotIndicator.Dot;
|
|
94
99
|
exports.Form = Form.Form;
|
|
@@ -105,6 +110,7 @@ exports.Radio = Radio.Radio;
|
|
|
105
110
|
exports.Switch = Switch.Switch;
|
|
106
111
|
exports.FormGroup = FormGroup.FormGroup;
|
|
107
112
|
exports.GridContainer = GridContainer.GridContainer;
|
|
113
|
+
exports.HighlightBox = HighlightBox.HighlightBox;
|
|
108
114
|
exports.IconToolTip = IconToolTip.IconToolTip;
|
|
109
115
|
exports.InfoWithButtonBlock = InfoTextBlock.InfoWithButtonBlock;
|
|
110
116
|
exports.LayoutBox = LayoutBox.LayoutBox;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -21,7 +21,8 @@ var attributes = {
|
|
|
21
21
|
iconButtonHover: '0 1px 8px rgba(0, 0, 0, 0.35)',
|
|
22
22
|
layoutShadowInset: 'inset 0 -1px 0 rgba(0, 0, 0, 0.15)',
|
|
23
23
|
layoutShadow: '0 1px 0 rgba(0, 0, 0, 0.15)',
|
|
24
|
-
stepperShadow: '0px -5px 20px rgba(0, 0, 0, 0.04), 0px -2px 6px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04)'
|
|
24
|
+
stepperShadow: '0px -5px 20px rgba(0, 0, 0, 0.04), 0px -2px 6px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04)',
|
|
25
|
+
highlightBoxShadow: '0 2px 5px 0 rgba(7,52,99,0.15)'
|
|
25
26
|
},
|
|
26
27
|
zIndex: {
|
|
27
28
|
modal: 5,
|
|
@@ -63,11 +64,12 @@ var constants = {
|
|
|
63
64
|
tableRowVerticalPadding: 16,
|
|
64
65
|
tableRowHorizontalPadding: 14,
|
|
65
66
|
tableHeaderVerticalPadding: 12,
|
|
67
|
+
menuHorizontalMargin: 12,
|
|
66
68
|
headerWrapperVerticalPadding: 20,
|
|
67
69
|
iconToolTipArrowLeft: 2.5,
|
|
68
70
|
iconToolTipArrowTop: 32,
|
|
69
71
|
iconToolTipBoxWidth: 300,
|
|
70
|
-
iconToolTipTop: 36
|
|
72
|
+
iconToolTipTop: 36,
|
|
71
73
|
};
|
|
72
74
|
|
|
73
75
|
var palette = {
|
|
@@ -85,6 +87,7 @@ var palette = {
|
|
|
85
87
|
blueMedium: '#92B9D3',
|
|
86
88
|
greenLight: '#F2FDF2',
|
|
87
89
|
greenMedium: '#BEE5BE',
|
|
90
|
+
redLight: '#FCE9E9',
|
|
88
91
|
// link same as alert blue
|
|
89
92
|
link: '#0072BB',
|
|
90
93
|
// black / white
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../design-tokens/build/index.js"],"sourcesContent":["'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar attributes = {\n borderRadius: {\n extraSmall: 2,\n small: 5,\n default: 10,\n big: 20\n },\n boxShadow: {\n small: '0 0 46px 0 rgba(0, 0, 0, 0.13)',\n hover: '0 0 15px 0 rgba(0, 0, 0, 0.13)',\n buttonHover: '0 1px 5px rgba(0, 0, 0, 0.35)',\n buttonActive: 'inset 0 0px 5px rgba(0, 0, 0, 0.15)',\n iconButtonHover: '0 1px 8px rgba(0, 0, 0, 0.35)',\n layoutShadowInset: 'inset 0 -1px 0 rgba(0, 0, 0, 0.15)',\n layoutShadow: '0 1px 0 rgba(0, 0, 0, 0.15)',\n stepperShadow: '0px -5px 20px rgba(0, 0, 0, 0.04), 0px -2px 6px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04)'\n },\n zIndex: {\n modal: 5,\n footer: 4,\n high: 3,\n middle: 2,\n low: 1\n },\n transition: {\n t1: '550ms cubic-bezier(0.19, 1, 0.22, 1)',\n inputTransition: 'box-shadow 250ms ease'\n }\n};\n\nvar breakpoints = {\n xs: 480,\n sm: 576,\n md: 768,\n lg: 960,\n xl: 1060,\n xxl: 1280,\n xxxl: 1400\n};\n\nvar constants = {\n headerScrollFadeRange: 50,\n modalContainerMaxWidth: 615,\n modalConfirmMaxWidth: 480,\n pageContainerMaxWidth: 776,\n twoColumnsContainerMaxWidth: 1024,\n deliverySlotItemWidth: 80,\n deliverySlotItemWidthDesktop: 120,\n itemGap: 2,\n ListImageMaxWidth: 64,\n infoBlockImageMaxWidthDesktop: 100,\n chipCheckBox: 12,\n pageContentMaxWidth: 1232,\n infoBlockBorderWidth: 4,\n tableRowVerticalPadding: 16,\n tableRowHorizontalPadding: 14,\n tableHeaderVerticalPadding: 12,\n headerWrapperVerticalPadding: 20,\n iconToolTipArrowLeft: 2.5,\n iconToolTipArrowTop: 32,\n iconToolTipBoxWidth: 300,\n iconToolTipTop: 36
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../design-tokens/build/index.js"],"sourcesContent":["'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar attributes = {\n borderRadius: {\n extraSmall: 2,\n small: 5,\n default: 10,\n big: 20\n },\n boxShadow: {\n small: '0 0 46px 0 rgba(0, 0, 0, 0.13)',\n hover: '0 0 15px 0 rgba(0, 0, 0, 0.13)',\n buttonHover: '0 1px 5px rgba(0, 0, 0, 0.35)',\n buttonActive: 'inset 0 0px 5px rgba(0, 0, 0, 0.15)',\n iconButtonHover: '0 1px 8px rgba(0, 0, 0, 0.35)',\n layoutShadowInset: 'inset 0 -1px 0 rgba(0, 0, 0, 0.15)',\n layoutShadow: '0 1px 0 rgba(0, 0, 0, 0.15)',\n stepperShadow: '0px -5px 20px rgba(0, 0, 0, 0.04), 0px -2px 6px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04)',\n highlightBoxShadow: '0 2px 5px 0 rgba(7,52,99,0.15)'\n },\n zIndex: {\n modal: 5,\n footer: 4,\n high: 3,\n middle: 2,\n low: 1\n },\n transition: {\n t1: '550ms cubic-bezier(0.19, 1, 0.22, 1)',\n inputTransition: 'box-shadow 250ms ease'\n }\n};\n\nvar breakpoints = {\n xs: 480,\n sm: 576,\n md: 768,\n lg: 960,\n xl: 1060,\n xxl: 1280,\n xxxl: 1400\n};\n\nvar constants = {\n headerScrollFadeRange: 50,\n modalContainerMaxWidth: 615,\n modalConfirmMaxWidth: 480,\n pageContainerMaxWidth: 776,\n twoColumnsContainerMaxWidth: 1024,\n deliverySlotItemWidth: 80,\n deliverySlotItemWidthDesktop: 120,\n itemGap: 2,\n ListImageMaxWidth: 64,\n infoBlockImageMaxWidthDesktop: 100,\n chipCheckBox: 12,\n pageContentMaxWidth: 1232,\n infoBlockBorderWidth: 4,\n tableRowVerticalPadding: 16,\n tableRowHorizontalPadding: 14,\n tableHeaderVerticalPadding: 12,\n menuHorizontalMargin: 12,\n headerWrapperVerticalPadding: 20,\n iconToolTipArrowLeft: 2.5,\n iconToolTipArrowTop: 32,\n iconToolTipBoxWidth: 300,\n iconToolTipTop: 36,\n};\n\nvar palette = {\n // pallette same as brand colors\n primary: '#FFE522',\n secondary: '#0069AE',\n // brand colors\n brandYellow: '#FFE522',\n brandBlue: '#0069AE',\n brandPurple: '#A71680',\n // shades\n yellowLighter: '#FFFBE7',\n yellowLight: '#FFF7D1',\n blueLight: '#ECF7FE',\n blueMedium: '#92B9D3',\n greenLight: '#F2FDF2',\n greenMedium: '#BEE5BE',\n redLight: '#FCE9E9',\n // link same as alert blue\n link: '#0072BB',\n // black / white\n white: '#FFFFFF',\n black: '#000000',\n // grayscale\n lightest: '#F7F7F7',\n lighter: '#F1F1F1',\n light: '#E8E8E8',\n medium: '#DBDBDB',\n dark: '#979797',\n darker: '#4A4A4A',\n darkest: '#333333',\n border: '#0069AE',\n boxShadow: '#E1E1E1',\n boxShadowActive: 'rgba(7, 52, 99, 0.15)',\n // Alerts\n alertRed: '#E02721',\n alertBlue: '#0072BB',\n alertGreen: '#3F9A3C',\n // overlay\n darkOverlay: 'rgba(0, 0, 0, 0.6)',\n // transparent\n transparent: '#ffffff00',\n none: 'none'\n};\n\nvar spacings = {\n xxs: 4,\n xs: 8,\n sm: 16,\n md: 24,\n lg: 32,\n xl: 40,\n xxl: 56\n // More in figma, but talk with Johan to generalize it more.\n // xxx: 72, 88, 120, 152 ?\n};\n\nvar typography = {\n type: {\n primary: '\"Poppins\", \"Helvetica Neue\", Helvetica, Arial, sans-serif',\n code: '\"SFMono-Regular\", Consolas, \"Liberation Mono\", Menlo, Courier, monospace'\n },\n weight: {\n regular: '400',\n medium: '500',\n semiBold: '600',\n bold: '700'\n },\n size: {\n // s all from 0-20\n s1: 12,\n s2: 13,\n s3: 15,\n s4: 18,\n // m all from 21-40\n m1: 24,\n m2: 30,\n // l all from 41 >\n code: 90\n },\n lineHeight: {\n // s all from 0-20\n s1: 18,\n s2: 19,\n // m all from 21-40\n m1: 22,\n m2: 27,\n m3: 36,\n // l all from 41 >\n l1: 45\n }\n};\n\nvar animations = {\n tapScale: 0.9,\n hoverScale: 1.1,\n buttonTransition: 'all 250ms cubic-bezier(0.165, 0.84, 0.44, 1)',\n rippleTransition: '750ms cubic-bezier(0.19, 1, 0.22, 1)'\n};\n\nvar createTheme = function (_a) {\n var palette = _a.palette, typography = _a.typography, attributes = _a.attributes, breakpoints = _a.breakpoints, spacings = _a.spacings, constants = _a.constants, animations = _a.animations;\n return ({\n palette: palette,\n typography: typography,\n attributes: attributes,\n breakpoints: breakpoints,\n spacings: spacings,\n constants: constants,\n animations: animations\n });\n};\nvar theme = createTheme({\n palette: palette,\n typography: typography,\n attributes: attributes,\n breakpoints: breakpoints,\n spacings: spacings,\n constants: constants,\n animations: animations\n});\n\nexports.animations = animations;\nexports.attributes = attributes;\nexports.breakpoints = breakpoints;\nexports.constants = constants;\nexports.palette = palette;\nexports.spacings = spacings;\nexports.theme = theme;\nexports.typography = typography;\n//# sourceMappingURL=index.js.map\n"],"names":["build"],"mappings":";;;;;;AAEA,MAAM,CAAC,cAAc,CAACA,eAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D;AACA,IAAI,UAAU,GAAG;AACjB,IAAI,YAAY,EAAE;AAClB,QAAQ,UAAU,EAAE,CAAC;AACrB,QAAQ,KAAK,EAAE,CAAC;AAChB,QAAQ,OAAO,EAAE,EAAE;AACnB,QAAQ,GAAG,EAAE,EAAE;AACf,KAAK;AACL,IAAI,SAAS,EAAE;AACf,QAAQ,KAAK,EAAE,gCAAgC;AAC/C,QAAQ,KA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
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BackgroundContainer, BackgroundImgContainer } from './BackgroundImage.styles.js';
|
|
3
|
+
|
|
4
|
+
function BackgroundImage(_a) {
|
|
5
|
+
var image = _a.image, height = _a.height, width = _a.width, onClick = _a.onClick, children = _a.children;
|
|
6
|
+
return (React.createElement(BackgroundContainer, { height: height, width: width, onClick: onClick },
|
|
7
|
+
React.createElement(BackgroundImgContainer, null, image),
|
|
8
|
+
children));
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { BackgroundImage };
|
|
12
|
+
//# sourceMappingURL=BackgroundImage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackgroundImage.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
|
|
4
|
+
var BackgroundContainer = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n height: ", ";\n width: ", ";\n border-radius: ", "px;\n overflow: hidden;\n box-shadow: ", ";\n display: flex;\n align-items: center;\n ", "\n"], ["\n position: relative;\n height: ", ";\n width: ", ";\n border-radius: ", "px;\n overflow: hidden;\n box-shadow: ", ";\n display: flex;\n align-items: center;\n ", "\n"])), function (props) { return (props.height ? props.height + "px" : 'auto'); }, function (props) { return (props.height ? props.width + "px" : 'auto'); }, function (props) { var _a; return (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.borderRadius.extraSmall; }, function (props) { var _a; return (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.boxShadow.layoutShadow; }, function (props) {
|
|
5
|
+
var _a;
|
|
6
|
+
return props.onClick &&
|
|
7
|
+
" \n cursor: pointer;\n &:hover {\n box-shadow: " + ((_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.boxShadow.buttonHover) + ";\n }";
|
|
8
|
+
});
|
|
9
|
+
var BackgroundImgContainer = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n width: 100%;\n height: 100%;\n position: absolute;\n z-index: -1;\n"], ["\n width: 100%;\n height: 100%;\n position: absolute;\n z-index: -1;\n"])));
|
|
10
|
+
var templateObject_1, templateObject_2;
|
|
11
|
+
|
|
12
|
+
export { BackgroundContainer, BackgroundImgContainer };
|
|
13
|
+
//# sourceMappingURL=BackgroundImage.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackgroundImage.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BodyText, TextTypes } from '@citygross/typography';
|
|
3
|
+
import { StyledDateBox, WeekBox, WeekNumber } from './DateBox.styles.js';
|
|
4
|
+
import { theme as theme_1 } from '../../../../design-tokens/build/index.js';
|
|
5
|
+
|
|
6
|
+
function DateBox(_a) {
|
|
7
|
+
var _b;
|
|
8
|
+
var _c = _a.dateHeader, dateHeader = _c === void 0 ? 'vecka' : _c, dateText = _a.dateText;
|
|
9
|
+
return (React.createElement(StyledDateBox, null,
|
|
10
|
+
React.createElement(WeekBox, null,
|
|
11
|
+
React.createElement(BodyText, { size: TextTypes.TextSize.EXTRASMALL, color: (_b = theme_1.palette) === null || _b === void 0 ? void 0 : _b.white, fontWeight: 'semiBold' }, dateHeader)),
|
|
12
|
+
React.createElement(WeekNumber, null, dateText)));
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { DateBox };
|
|
16
|
+
//# sourceMappingURL=DateBox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateBox.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
|
|
4
|
+
var StyledDateBox = styled.div(templateObject_1 || (templateObject_1 = __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; });
|
|
5
|
+
var WeekBox = styled.div(templateObject_2 || (templateObject_2 = __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 (_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.spacings) === null || _b === void 0 ? void 0 : _b.xs) + "px"; });
|
|
6
|
+
var WeekNumber = styled.p(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n padding: ", "px 0;\n text-align: center;\n font-size: ", "px;\n font-weight: ", ";\n font-family: 'Poppins';\n"], ["\n padding: ", "px 0;\n text-align: center;\n font-size: ", "px;\n font-weight: ", ";\n font-family: 'Poppins';\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.s4; }, function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.weight.bold; });
|
|
7
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
8
|
+
|
|
9
|
+
export { StyledDateBox, WeekBox, WeekNumber };
|
|
10
|
+
//# sourceMappingURL=DateBox.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateBox.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { HighlightBoxContainer } from './HighlightBox.styles.js';
|
|
3
|
+
|
|
4
|
+
function HighlightBox(_a) {
|
|
5
|
+
var cancelled = _a.cancelled, children = _a.children;
|
|
6
|
+
return (React.createElement(HighlightBoxContainer, { cancelled: cancelled }, children));
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export { HighlightBox };
|
|
10
|
+
//# sourceMappingURL=HighlightBox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HighlightBox.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
|
|
4
|
+
var HighlightBoxContainer = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: ", "px;\n background-color: ", ";\n border: 1px solid;\n border-color: ", ";\n border-radius: ", "px;\n box-shadow: ", ";\n"], ["\n padding: ", "px;\n background-color: ", ";\n border: 1px solid;\n border-color: ", ";\n border-radius: ", "px;\n box-shadow: ", ";\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) { var _a; return props.cancelled ? (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.lightest : 'inherit'; }, function (props) {
|
|
5
|
+
var _a, _b;
|
|
6
|
+
return props.cancelled
|
|
7
|
+
? (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.light
|
|
8
|
+
: (_b = props.theme.palette) === null || _b === void 0 ? void 0 : _b.blueMedium;
|
|
9
|
+
}, function (props) { var _a; return (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.borderRadius.extraSmall; }, function (props) {
|
|
10
|
+
var _a;
|
|
11
|
+
return props.cancelled
|
|
12
|
+
? ''
|
|
13
|
+
: (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.boxShadow.highlightBoxShadow;
|
|
14
|
+
});
|
|
15
|
+
var templateObject_1;
|
|
16
|
+
|
|
17
|
+
export { HighlightBoxContainer };
|
|
18
|
+
//# sourceMappingURL=HighlightBox.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HighlightBox.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
|
|
4
|
-
var MenuContainer = styled.nav(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n display: flex;\n flex-wrap: nowrap;\n overflow-x: auto;\n overflow-y: hidden;\n
|
|
5
|
-
var MenuItem = styled.a(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n flex: 0 0 auto;\n font-weight: ", ";\n padding: ", "px 0;\n display: block;\n border-bottom: ", "px solid;\n border-bottom-color: ", ";\n cursor: pointer;\n font-size: ", "px;\n\n &:last-child {\n position: relative;\n &::after {\n position: absolute;\n content: '';\n right: -", "px;\n width: ", "px;\n height: 100%;\n }\n }\n @media (min-width: ", "px) {\n &:hover {\n border-bottom-color: ", ";\n }\n }\n"], ["\n flex: 0 0 auto;\n font-weight: ", ";\n padding: ", "px 0;\n display: block;\n border-bottom: ", "px solid;\n border-bottom-color: ", ";\n cursor: pointer;\n font-size: ", "px;\n\n &:last-child {\n position: relative;\n &::after {\n position: absolute;\n content: '';\n right: -", "px;\n width: ", "px;\n height: 100%;\n }\n }\n @media (min-width: ", "px) {\n &:hover {\n border-bottom-color: ", ";\n }\n }\n"])), function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.weight.bold; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.tableHeaderVerticalPadding; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs; }, function (props) { var _a; return props.active ? "" + ((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.primary) : 'transparent'; }, function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.s3; }, 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.sm; }, 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.palette) === null || _a === void 0 ? void 0 : _a.primary; });
|
|
4
|
+
var MenuContainer = styled.nav(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n display: flex;\n flex-wrap: nowrap;\n overflow-x: auto;\n overflow-y: hidden;\n -webkit-overflow-scrolling: touch;\n -ms-overflow-style: -ms-autohiding-scrollbar;\n\n ::-webkit-scrollbar {\n background: ", ";\n height: 2px;\n }\n\n ::-webkit-scrollbar-thumb {\n border-radius: ", "px;\n background-color: ", ";\n }\n /* for mozilla */\n scrollbar-width: thin;\n scrollbar-color: ", ";\n\n @media (min-width: ", "px) {\n /* for mozila scroll bar */\n width: calc(100% - 40px);\n }\n"], ["\n position: relative;\n display: flex;\n flex-wrap: nowrap;\n overflow-x: auto;\n overflow-y: hidden;\n -webkit-overflow-scrolling: touch;\n -ms-overflow-style: -ms-autohiding-scrollbar;\n\n ::-webkit-scrollbar {\n background: ", ";\n height: 2px;\n }\n\n ::-webkit-scrollbar-thumb {\n border-radius: ", "px;\n background-color: ", ";\n }\n /* for mozilla */\n scrollbar-width: thin;\n scrollbar-color: ", ";\n\n @media (min-width: ", "px) {\n /* for mozila scroll bar */\n width: calc(100% - 40px);\n }\n"])), function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.white; }, function (props) { var _a; return (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.borderRadius.default; }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.dark; }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.dark; }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.xs; });
|
|
5
|
+
var MenuItem = styled.a(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n flex: 0 0 auto;\n font-weight: ", ";\n padding: ", "px 0;\n display: block;\n border-bottom: ", "px solid;\n border-bottom-color: ", ";\n cursor: pointer;\n font-size: ", "px;\n margin-left: ", "px;\n margin-right: ", "px;\n\n &:last-child {\n position: relative;\n &::after {\n position: absolute;\n content: '';\n right: -", "px;\n width: ", "px;\n height: 100%;\n }\n }\n @media (min-width: ", "px) {\n &:hover {\n border-bottom-color: ", ";\n }\n }\n"], ["\n flex: 0 0 auto;\n font-weight: ", ";\n padding: ", "px 0;\n display: block;\n border-bottom: ", "px solid;\n border-bottom-color: ", ";\n cursor: pointer;\n font-size: ", "px;\n margin-left: ", "px;\n margin-right: ", "px;\n\n &:last-child {\n position: relative;\n &::after {\n position: absolute;\n content: '';\n right: -", "px;\n width: ", "px;\n height: 100%;\n }\n }\n @media (min-width: ", "px) {\n &:hover {\n border-bottom-color: ", ";\n }\n }\n"])), function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.weight.bold; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.tableHeaderVerticalPadding; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs; }, function (props) { var _a; return props.active ? "" + ((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.primary) : 'transparent'; }, function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.s3; }, function (props) { var _a; return props.isFirstChild ? 0 : (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.menuHorizontalMargin; }, function (props) { var _a; return props.isLastChild ? 0 : (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.menuHorizontalMargin; }, 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.sm; }, 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.palette) === null || _a === void 0 ? void 0 : _a.primary; });
|
|
6
6
|
var Fade = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n pointer-events: none;\n position: absolute;\n top: 0;\n right: 0;\n width: 100%;\n height: 100%;\n background: linear-gradient(\n to right,\n rgba(255, 255, 255, 0) 80%,\n rgba(255, 255, 255, 1)\n );\n transition: all 0.5s;\n opacity: ", ";\n"], ["\n pointer-events: none;\n position: absolute;\n top: 0;\n right: 0;\n width: 100%;\n height: 100%;\n background: linear-gradient(\n to right,\n rgba(255, 255, 255, 0) 80%,\n rgba(255, 255, 255, 1)\n );\n transition: all 0.5s;\n opacity: ", ";\n"])), function (props) { return ((props === null || props === void 0 ? void 0 : props.isVisible) ? '1' : '0'); });
|
|
7
7
|
var templateObject_1, templateObject_2, templateObject_3;
|
|
8
8
|
|
|
@@ -3,8 +3,8 @@ import React from 'react';
|
|
|
3
3
|
import { MenuItem as MenuItem$1 } from './Menu.styles.js';
|
|
4
4
|
|
|
5
5
|
function MenuItem(_a) {
|
|
6
|
-
var active = _a.active, children = _a.children, props = __rest(_a, ["active", "children"]);
|
|
7
|
-
return (React.createElement(MenuItem$1, __assign({}, props, { active: active }), children));
|
|
6
|
+
var active = _a.active, isFirstChild = _a.isFirstChild, isLastChild = _a.isLastChild, children = _a.children, props = __rest(_a, ["active", "isFirstChild", "isLastChild", "children"]);
|
|
7
|
+
return (React.createElement(MenuItem$1, __assign({}, props, { isFirstChild: isFirstChild, isLastChild: isLastChild, active: active }), children));
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export { MenuItem };
|
|
@@ -2,6 +2,7 @@ export { AddressBlock } from './components/AddressBlock/AddressBlock.js';
|
|
|
2
2
|
export { AlertBox } from './components/AlertBox/AlertBox.js';
|
|
3
3
|
export { Button, ButtonColor, ButtonSize } from './components/Button/Button.js';
|
|
4
4
|
export { Header } from './components/Header/Header.js';
|
|
5
|
+
export { BackgroundImage } from './components/BackgroundImage/BackgroundImage.js';
|
|
5
6
|
export { Badge } from './components/Badge/Badge.js';
|
|
6
7
|
export { Box } from './components/Box/Box.js';
|
|
7
8
|
export { IconButton } from './components/Button/IconButton.js';
|
|
@@ -16,6 +17,7 @@ export { Slider } from './components/Slider/Slider.js';
|
|
|
16
17
|
export { DeliveryTimeBlock } from './components/DeliveryTimeBlock/DeliveryTimeBlock.js';
|
|
17
18
|
export { Menu } from './components/Menu/Menu.js';
|
|
18
19
|
export { MenuItem } from './components/Menu/MenuItem.js';
|
|
20
|
+
export { DateBox } from './components/DateBox/DateBox.js';
|
|
19
21
|
export { Divider } from './components/Divider/Divider.js';
|
|
20
22
|
export { Dot } from './components/DotIndicator/DotIndicator.js';
|
|
21
23
|
export { Form } from './components/Form/Form.js';
|
|
@@ -26,6 +28,7 @@ export { Radio } from './components/FormElements/Radio/Radio.js';
|
|
|
26
28
|
export { Switch } from './components/FormElements/Switch/Switch.js';
|
|
27
29
|
export { FormGroup } from './components/FormGroup/FormGroup.js';
|
|
28
30
|
export { GridContainer } from './components/GridContainer/GridContainer.js';
|
|
31
|
+
export { HighlightBox } from './components/HighlightBox/HighlightBox.js';
|
|
29
32
|
export { IconToolTip } from './components/IconToolTip/IconToolTip.js';
|
|
30
33
|
export { InfoWithButtonBlock } from './components/InfoTextBlock/InfoTextBlock.js';
|
|
31
34
|
export { LayoutBox } from './components/LayoutBox/LayoutBox.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -18,7 +18,8 @@ var attributes = {
|
|
|
18
18
|
iconButtonHover: '0 1px 8px rgba(0, 0, 0, 0.35)',
|
|
19
19
|
layoutShadowInset: 'inset 0 -1px 0 rgba(0, 0, 0, 0.15)',
|
|
20
20
|
layoutShadow: '0 1px 0 rgba(0, 0, 0, 0.15)',
|
|
21
|
-
stepperShadow: '0px -5px 20px rgba(0, 0, 0, 0.04), 0px -2px 6px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04)'
|
|
21
|
+
stepperShadow: '0px -5px 20px rgba(0, 0, 0, 0.04), 0px -2px 6px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04)',
|
|
22
|
+
highlightBoxShadow: '0 2px 5px 0 rgba(7,52,99,0.15)'
|
|
22
23
|
},
|
|
23
24
|
zIndex: {
|
|
24
25
|
modal: 5,
|
|
@@ -60,11 +61,12 @@ var constants = {
|
|
|
60
61
|
tableRowVerticalPadding: 16,
|
|
61
62
|
tableRowHorizontalPadding: 14,
|
|
62
63
|
tableHeaderVerticalPadding: 12,
|
|
64
|
+
menuHorizontalMargin: 12,
|
|
63
65
|
headerWrapperVerticalPadding: 20,
|
|
64
66
|
iconToolTipArrowLeft: 2.5,
|
|
65
67
|
iconToolTipArrowTop: 32,
|
|
66
68
|
iconToolTipBoxWidth: 300,
|
|
67
|
-
iconToolTipTop: 36
|
|
69
|
+
iconToolTipTop: 36,
|
|
68
70
|
};
|
|
69
71
|
|
|
70
72
|
var palette = {
|
|
@@ -82,6 +84,7 @@ var palette = {
|
|
|
82
84
|
blueMedium: '#92B9D3',
|
|
83
85
|
greenLight: '#F2FDF2',
|
|
84
86
|
greenMedium: '#BEE5BE',
|
|
87
|
+
redLight: '#FCE9E9',
|
|
85
88
|
// link same as alert blue
|
|
86
89
|
link: '#0072BB',
|
|
87
90
|
// black / white
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../design-tokens/build/index.js"],"sourcesContent":["'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar attributes = {\n borderRadius: {\n extraSmall: 2,\n small: 5,\n default: 10,\n big: 20\n },\n boxShadow: {\n small: '0 0 46px 0 rgba(0, 0, 0, 0.13)',\n hover: '0 0 15px 0 rgba(0, 0, 0, 0.13)',\n buttonHover: '0 1px 5px rgba(0, 0, 0, 0.35)',\n buttonActive: 'inset 0 0px 5px rgba(0, 0, 0, 0.15)',\n iconButtonHover: '0 1px 8px rgba(0, 0, 0, 0.35)',\n layoutShadowInset: 'inset 0 -1px 0 rgba(0, 0, 0, 0.15)',\n layoutShadow: '0 1px 0 rgba(0, 0, 0, 0.15)',\n stepperShadow: '0px -5px 20px rgba(0, 0, 0, 0.04), 0px -2px 6px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04)'\n },\n zIndex: {\n modal: 5,\n footer: 4,\n high: 3,\n middle: 2,\n low: 1\n },\n transition: {\n t1: '550ms cubic-bezier(0.19, 1, 0.22, 1)',\n inputTransition: 'box-shadow 250ms ease'\n }\n};\n\nvar breakpoints = {\n xs: 480,\n sm: 576,\n md: 768,\n lg: 960,\n xl: 1060,\n xxl: 1280,\n xxxl: 1400\n};\n\nvar constants = {\n headerScrollFadeRange: 50,\n modalContainerMaxWidth: 615,\n modalConfirmMaxWidth: 480,\n pageContainerMaxWidth: 776,\n twoColumnsContainerMaxWidth: 1024,\n deliverySlotItemWidth: 80,\n deliverySlotItemWidthDesktop: 120,\n itemGap: 2,\n ListImageMaxWidth: 64,\n infoBlockImageMaxWidthDesktop: 100,\n chipCheckBox: 12,\n pageContentMaxWidth: 1232,\n infoBlockBorderWidth: 4,\n tableRowVerticalPadding: 16,\n tableRowHorizontalPadding: 14,\n tableHeaderVerticalPadding: 12,\n headerWrapperVerticalPadding: 20,\n iconToolTipArrowLeft: 2.5,\n iconToolTipArrowTop: 32,\n iconToolTipBoxWidth: 300,\n iconToolTipTop: 36
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../design-tokens/build/index.js"],"sourcesContent":["'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar attributes = {\n borderRadius: {\n extraSmall: 2,\n small: 5,\n default: 10,\n big: 20\n },\n boxShadow: {\n small: '0 0 46px 0 rgba(0, 0, 0, 0.13)',\n hover: '0 0 15px 0 rgba(0, 0, 0, 0.13)',\n buttonHover: '0 1px 5px rgba(0, 0, 0, 0.35)',\n buttonActive: 'inset 0 0px 5px rgba(0, 0, 0, 0.15)',\n iconButtonHover: '0 1px 8px rgba(0, 0, 0, 0.35)',\n layoutShadowInset: 'inset 0 -1px 0 rgba(0, 0, 0, 0.15)',\n layoutShadow: '0 1px 0 rgba(0, 0, 0, 0.15)',\n stepperShadow: '0px -5px 20px rgba(0, 0, 0, 0.04), 0px -2px 6px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04)',\n highlightBoxShadow: '0 2px 5px 0 rgba(7,52,99,0.15)'\n },\n zIndex: {\n modal: 5,\n footer: 4,\n high: 3,\n middle: 2,\n low: 1\n },\n transition: {\n t1: '550ms cubic-bezier(0.19, 1, 0.22, 1)',\n inputTransition: 'box-shadow 250ms ease'\n }\n};\n\nvar breakpoints = {\n xs: 480,\n sm: 576,\n md: 768,\n lg: 960,\n xl: 1060,\n xxl: 1280,\n xxxl: 1400\n};\n\nvar constants = {\n headerScrollFadeRange: 50,\n modalContainerMaxWidth: 615,\n modalConfirmMaxWidth: 480,\n pageContainerMaxWidth: 776,\n twoColumnsContainerMaxWidth: 1024,\n deliverySlotItemWidth: 80,\n deliverySlotItemWidthDesktop: 120,\n itemGap: 2,\n ListImageMaxWidth: 64,\n infoBlockImageMaxWidthDesktop: 100,\n chipCheckBox: 12,\n pageContentMaxWidth: 1232,\n infoBlockBorderWidth: 4,\n tableRowVerticalPadding: 16,\n tableRowHorizontalPadding: 14,\n tableHeaderVerticalPadding: 12,\n menuHorizontalMargin: 12,\n headerWrapperVerticalPadding: 20,\n iconToolTipArrowLeft: 2.5,\n iconToolTipArrowTop: 32,\n iconToolTipBoxWidth: 300,\n iconToolTipTop: 36,\n};\n\nvar palette = {\n // pallette same as brand colors\n primary: '#FFE522',\n secondary: '#0069AE',\n // brand colors\n brandYellow: '#FFE522',\n brandBlue: '#0069AE',\n brandPurple: '#A71680',\n // shades\n yellowLighter: '#FFFBE7',\n yellowLight: '#FFF7D1',\n blueLight: '#ECF7FE',\n blueMedium: '#92B9D3',\n greenLight: '#F2FDF2',\n greenMedium: '#BEE5BE',\n redLight: '#FCE9E9',\n // link same as alert blue\n link: '#0072BB',\n // black / white\n white: '#FFFFFF',\n black: '#000000',\n // grayscale\n lightest: '#F7F7F7',\n lighter: '#F1F1F1',\n light: '#E8E8E8',\n medium: '#DBDBDB',\n dark: '#979797',\n darker: '#4A4A4A',\n darkest: '#333333',\n border: '#0069AE',\n boxShadow: '#E1E1E1',\n boxShadowActive: 'rgba(7, 52, 99, 0.15)',\n // Alerts\n alertRed: '#E02721',\n alertBlue: '#0072BB',\n alertGreen: '#3F9A3C',\n // overlay\n darkOverlay: 'rgba(0, 0, 0, 0.6)',\n // transparent\n transparent: '#ffffff00',\n none: 'none'\n};\n\nvar spacings = {\n xxs: 4,\n xs: 8,\n sm: 16,\n md: 24,\n lg: 32,\n xl: 40,\n xxl: 56\n // More in figma, but talk with Johan to generalize it more.\n // xxx: 72, 88, 120, 152 ?\n};\n\nvar typography = {\n type: {\n primary: '\"Poppins\", \"Helvetica Neue\", Helvetica, Arial, sans-serif',\n code: '\"SFMono-Regular\", Consolas, \"Liberation Mono\", Menlo, Courier, monospace'\n },\n weight: {\n regular: '400',\n medium: '500',\n semiBold: '600',\n bold: '700'\n },\n size: {\n // s all from 0-20\n s1: 12,\n s2: 13,\n s3: 15,\n s4: 18,\n // m all from 21-40\n m1: 24,\n m2: 30,\n // l all from 41 >\n code: 90\n },\n lineHeight: {\n // s all from 0-20\n s1: 18,\n s2: 19,\n // m all from 21-40\n m1: 22,\n m2: 27,\n m3: 36,\n // l all from 41 >\n l1: 45\n }\n};\n\nvar animations = {\n tapScale: 0.9,\n hoverScale: 1.1,\n buttonTransition: 'all 250ms cubic-bezier(0.165, 0.84, 0.44, 1)',\n rippleTransition: '750ms cubic-bezier(0.19, 1, 0.22, 1)'\n};\n\nvar createTheme = function (_a) {\n var palette = _a.palette, typography = _a.typography, attributes = _a.attributes, breakpoints = _a.breakpoints, spacings = _a.spacings, constants = _a.constants, animations = _a.animations;\n return ({\n palette: palette,\n typography: typography,\n attributes: attributes,\n breakpoints: breakpoints,\n spacings: spacings,\n constants: constants,\n animations: animations\n });\n};\nvar theme = createTheme({\n palette: palette,\n typography: typography,\n attributes: attributes,\n breakpoints: breakpoints,\n spacings: spacings,\n constants: constants,\n animations: animations\n});\n\nexports.animations = animations;\nexports.attributes = attributes;\nexports.breakpoints = breakpoints;\nexports.constants = constants;\nexports.palette = palette;\nexports.spacings = spacings;\nexports.theme = theme;\nexports.typography = typography;\n//# sourceMappingURL=index.js.map\n"],"names":[],"mappings":";;;AAEA,MAAM,CAAC,cAAc,CAAC,KAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D;AACA,IAAI,UAAU,GAAG;AACjB,IAAI,YAAY,EAAE;AAClB,QAAQ,UAAU,EAAE,CAAC;AACrB,QAAQ,KAAK,EAAE,CAAC;AAChB,QAAQ,OAAO,EAAE,EAAE;AACnB,QAAQ,GAAG,EAAE,EAAE;AACf,KAAK;AACL,IAAI,SAAS,EAAE;AACf,QAAQ,KAAK,EAAE,gCAAgC;AAC/C,QAAQ,KAAK,EAAE,gCAAgC;AAC/C,QAAQ,WAAW,EAAE,+BAA+B;AACpD,QAAQ,YAAY,EAAE,qCAAqC;AAC3D,QAAQ,eAAe,EAAE,+B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license": "ISC",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./build/cjs/components/src/index.js",
|
|
@@ -62,14 +62,14 @@
|
|
|
62
62
|
"styled-components": "^5.2.1"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@citygross/design-tokens": "^0.2.
|
|
66
|
-
"@citygross/icons": "^0.1.
|
|
65
|
+
"@citygross/design-tokens": "^0.2.18",
|
|
66
|
+
"@citygross/icons": "^0.1.3",
|
|
67
67
|
"@citygross/react-use-bg-wizard": "^0.0.8",
|
|
68
|
-
"@citygross/typography": "^0.0.
|
|
68
|
+
"@citygross/typography": "^0.0.45",
|
|
69
69
|
"@citygross/utils": "^0.0.19",
|
|
70
70
|
"framer-motion": "^4.1.17",
|
|
71
71
|
"moment": "^2.29.1",
|
|
72
72
|
"react-loading-skeleton": "^2.2.0"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "a5ef92801d44c025872fba940c54dc95320cd3f2"
|
|
75
75
|
}
|