@citygross/components 0.7.51 → 0.7.55

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.
Files changed (32) hide show
  1. package/build/@types/components/DateBox/DateBox.d.ts +5 -3
  2. package/build/@types/components/DateBox/DateBox.stories.d.ts +12 -0
  3. package/build/@types/components/DateBox/DateBox.styles.d.ts +7 -3
  4. package/build/@types/components/Header/Header.d.ts +1 -1
  5. package/build/@types/components/Logo/Logo.d.ts +1 -1
  6. package/build/@types/components/WarningLabel/WarningLabel.d.ts +7 -0
  7. package/build/@types/components/WarningLabel/WarningLabel.stories.d.ts +18 -0
  8. package/build/@types/components/WarningLabel/WarningLabel.styles.d.ts +6 -0
  9. package/build/@types/index.d.ts +1 -0
  10. package/build/cjs/components/src/components/DateBox/DateBox.js +3 -3
  11. package/build/cjs/components/src/components/DateBox/DateBox.styles.js +3 -3
  12. package/build/cjs/components/src/components/Header/Header.js +3 -3
  13. package/build/cjs/components/src/components/Logo/Logo.styles.js +1 -1
  14. package/build/cjs/components/src/components/Menu/Menu.styles.js +1 -1
  15. package/build/cjs/components/src/components/WarningLabel/WarningLabel.js +85 -0
  16. package/build/cjs/components/src/components/WarningLabel/WarningLabel.js.map +1 -0
  17. package/build/cjs/components/src/components/WarningLabel/WarningLabel.styles.js +19 -0
  18. package/build/cjs/components/src/components/WarningLabel/WarningLabel.styles.js.map +1 -0
  19. package/build/cjs/components/src/index.js +2 -0
  20. package/build/cjs/components/src/index.js.map +1 -1
  21. package/build/es/components/src/components/DateBox/DateBox.js +3 -3
  22. package/build/es/components/src/components/DateBox/DateBox.styles.js +3 -3
  23. package/build/es/components/src/components/Header/Header.js +3 -3
  24. package/build/es/components/src/components/Logo/Logo.styles.js +1 -1
  25. package/build/es/components/src/components/Menu/Menu.styles.js +1 -1
  26. package/build/es/components/src/components/WarningLabel/WarningLabel.js +77 -0
  27. package/build/es/components/src/components/WarningLabel/WarningLabel.js.map +1 -0
  28. package/build/es/components/src/components/WarningLabel/WarningLabel.styles.js +11 -0
  29. package/build/es/components/src/components/WarningLabel/WarningLabel.styles.js.map +1 -0
  30. package/build/es/components/src/index.js +1 -0
  31. package/build/es/components/src/index.js.map +1 -1
  32. package/package.json +3 -3
@@ -1,5 +1,7 @@
1
+ import React from 'react';
1
2
  export declare type TDateBox = {
2
- dateHeader?: string;
3
- dateText?: string;
3
+ dateHeader?: React.ReactNode;
4
+ children?: React.ReactNode;
5
+ labelBackground?: string;
4
6
  };
5
- export declare function DateBox({ dateHeader, dateText }: TDateBox): JSX.Element;
7
+ export declare function DateBox({ dateHeader, labelBackground, children }: TDateBox): JSX.Element;
@@ -3,6 +3,18 @@ import { DateBox, TDateBox } from './DateBox';
3
3
  declare const _default: {
4
4
  component: typeof DateBox;
5
5
  title: string;
6
+ argTypes: {
7
+ labelBackground: {
8
+ options: string[];
9
+ mapping: import("@citygross/design-tokens").Palette | never[];
10
+ control: {
11
+ type: string;
12
+ };
13
+ };
14
+ };
15
+ args: {
16
+ labelBackground: string | undefined;
17
+ };
6
18
  };
7
19
  export default _default;
8
20
  export declare const Default: Story<TDateBox>;
@@ -1,4 +1,8 @@
1
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>;
4
- export declare const DateHeader: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, {}, never>;
2
+ declare type TWeekBox = {
3
+ labelBackground?: string;
4
+ };
5
+ export declare const WeekBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TWeekBox, never>;
6
+ export declare const WeekNumber: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
7
+ export declare const DateHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
8
+ export {};
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  export declare type THeader = {
3
- logoImage: JSX.Element;
3
+ logoImage?: JSX.Element;
4
4
  logOut?: () => void;
5
5
  logOutLabel?: string;
6
6
  children?: ReactNode;
@@ -1,4 +1,4 @@
1
1
  export declare type TLogo = {
2
- logoImage: JSX.Element;
2
+ logoImage?: JSX.Element;
3
3
  };
4
4
  export declare function Logo({ logoImage }: TLogo): JSX.Element;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export declare type TWarningLabel = {
3
+ children: React.ReactNode;
4
+ background: string;
5
+ toolTip?: React.ReactNode;
6
+ };
7
+ export declare function WarningLabel({ children, background, toolTip }: TWarningLabel): JSX.Element;
@@ -0,0 +1,18 @@
1
+ import { Story } from '@storybook/react';
2
+ import { WarningLabel, TWarningLabel } from './WarningLabel';
3
+ declare const _default: {
4
+ component: typeof WarningLabel;
5
+ title: string;
6
+ argTypes: {
7
+ background: {
8
+ options: string[];
9
+ mapping: import("@citygross/design-tokens").Palette | never[];
10
+ control: {
11
+ type: string;
12
+ };
13
+ };
14
+ };
15
+ };
16
+ export default _default;
17
+ export declare const Default: Story<TWarningLabel>;
18
+ export declare const withIcon: Story<TWarningLabel>;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export declare type TWarningIndicator = {
3
+ background?: string;
4
+ toolTip?: React.ReactNode;
5
+ };
6
+ export declare const WarningIndicator: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TWarningIndicator, never>;
@@ -55,3 +55,4 @@ export * from './components/Pagination/Pagination';
55
55
  export * from './containers/PageContainer/PageContainer';
56
56
  export * from './containers/TwoColumnsContainer/TwoColumnsPageContainer';
57
57
  export * from './components/UnorderedList';
58
+ export * from './components/WarningLabel/WarningLabel';
@@ -10,11 +10,11 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
10
10
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
11
11
 
12
12
  function DateBox(_a) {
13
- var _b = _a.dateHeader, dateHeader = _b === void 0 ? 'vecka' : _b, dateText = _a.dateText;
13
+ var dateHeader = _a.dateHeader, labelBackground = _a.labelBackground, children = _a.children;
14
14
  return (React__default['default'].createElement(DateBox_styles.StyledDateBox, null,
15
- React__default['default'].createElement(DateBox_styles.WeekBox, null,
15
+ React__default['default'].createElement(DateBox_styles.WeekBox, { labelBackground: labelBackground },
16
16
  React__default['default'].createElement(DateBox_styles.DateHeader, null, dateHeader)),
17
- React__default['default'].createElement(DateBox_styles.WeekNumber, null, dateText)));
17
+ React__default['default'].createElement(DateBox_styles.WeekNumber, null, children)));
18
18
  }
19
19
 
20
20
  exports.DateBox = DateBox;
@@ -10,9 +10,9 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
10
10
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
11
11
 
12
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.constants) === null || _b === void 0 ? void 0 : _b.dateBoxHorizontalPadding) + "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: ", ";\n"], ["\n padding: ", "px 0;\n text-align: center;\n font-size: ", "px;\n font-weight: ", ";\n font-family: ", ";\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; }, function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.type.primary; });
15
- var DateHeader = styled__default['default'].p(templateObject_4 || (templateObject_4 = _tslib.__makeTemplateObject(["\n font-size: ", "px;\n font-weight: ", ";\n font-family: ", ";\n text-align: center;\n color: ", ";\n"], ["\n font-size: ", "px;\n font-weight: ", ";\n font-family: ", ";\n text-align: center;\n color: ", ";\n"])), function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.xs; }, function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.weight.semiBold; }, function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.type.primary; }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.white; });
13
+ var WeekBox = styled__default['default'].div(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n background-color: ", ";\n color: ", ";\n padding: ", ";\n text-align: center;\n"], ["\n background-color: ", ";\n color: ", ";\n padding: ", ";\n text-align: center;\n"])), function (props) { var _a; return props.labelBackground || ((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.brandBlue); }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.white; }, function (props) { var _a, _b; return ((_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs) + "px " + ((_b = props.theme.constants) === null || _b === void 0 ? void 0 : _b.dateBoxHorizontalPadding) + "px"; });
14
+ var WeekNumber = styled__default['default'].div(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n padding: ", "px 0;\n text-align: center;\n"], ["\n padding: ", "px 0;\n text-align: center;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; });
15
+ var DateHeader = styled__default['default'].div(templateObject_4 || (templateObject_4 = _tslib.__makeTemplateObject(["\n text-align: center;\n"], ["\n text-align: center;\n"])));
16
16
  var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
17
17
 
18
18
  exports.DateHeader = DateHeader;
@@ -21,10 +21,10 @@ function Header(_a) {
21
21
  var device = utils.useDetectDevice();
22
22
  return (React__default['default'].createElement(Header_styles.Wrapper, null,
23
23
  topLinkLabel && topLinkHref && (React__default['default'].createElement(HeaderLink.HeaderLink, { linkHref: topLinkHref, icon: React__default['default'].createElement(Icon.Icons.ChevronLeft, { width: 20, height: 20, color: (_c = designTokens.theme.palette) === null || _c === void 0 ? void 0 : _c.white }), linkLabel: topLinkLabel })),
24
- React__default['default'].createElement(Header_styles.HeaderWrapper, null,
24
+ (logoImage || logOutLabel) && (React__default['default'].createElement(Header_styles.HeaderWrapper, null,
25
25
  React__default['default'].createElement(Header_styles.HeaderContainer, { maxWidth: lowerContainerMaxWidth },
26
- React__default['default'].createElement(Logo.Logo, { logoImage: logoImage }),
27
- logOut && (React__default['default'].createElement(Button.Button, { onClick: function () { return logOut && logOut(); }, color: 'white', size: device.isMobile ? 'medium' : 'large' }, logOutLabel)))),
26
+ logoImage && React__default['default'].createElement(Logo.Logo, { logoImage: logoImage }),
27
+ logOut && (React__default['default'].createElement(Button.Button, { onClick: function () { return logOut && logOut(); }, color: 'white', size: device.isMobile ? 'medium' : 'large' }, logOutLabel))))),
28
28
  children && React__default['default'].createElement(Header_styles.MenuContainer, null, children)));
29
29
  }
30
30
 
@@ -9,7 +9,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
9
9
 
10
10
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
11
11
 
12
- var Logo = styled__default['default'].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n display: flex;\n align-items: center;\n position: relative;\n\n width: 163px;\n height: 62px;\n"], ["\n display: flex;\n align-items: center;\n position: relative;\n\n width: 163px;\n height: 62px;\n"])));
12
+ var Logo = styled__default['default'].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n display: flex;\n align-items: center;\n position: relative;\n"], ["\n display: flex;\n align-items: center;\n position: relative;\n"])));
13
13
  var templateObject_1;
14
14
 
15
15
  exports.Logo = Logo;
@@ -10,7 +10,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
10
10
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
11
11
 
12
12
  var 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; });
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.semiBold; }, 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
 
@@ -0,0 +1,85 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var React = require('react');
6
+ require('@citygross/typography');
7
+ require('../AddressBlock/AddressBlock.styles.js');
8
+ require('../../../../design-tokens/build/index.js');
9
+ require('../AlertBox/AlertBox.styles.js');
10
+ require('../Button/Button.js');
11
+ require('@citygross/utils');
12
+ require('@citygross/design-tokens');
13
+ require('@citygross/icons');
14
+ require('../Logo/Logo.styles.js');
15
+ require('../Header/Header.styles.js');
16
+ require('../HeaderLink/HeaderLink.styles.js');
17
+ require('../BackgroundImage/BackgroundImage.styles.js');
18
+ require('../Badge/Badge.styles.js');
19
+ require('../Box/Box.styles.js');
20
+ require('../Button/Button.styles.js');
21
+ require('../BackButton/BackButton.styles.js');
22
+ require('react-loading-skeleton');
23
+ require('../CartItemSummary/CartItemSummary.styles.js');
24
+ require('../Divider/Divider.styles.js');
25
+ require('../CartSummary/CartSummary.styles.js');
26
+ require('../CustomerInfoBlock/CustomerInfoBlock.styles.js');
27
+ require('../Collapsable/Collapsable.styles.js');
28
+ require('../DeliverySlotItem/DeliverySlotItem.styles.js');
29
+ require('../Slider/Slider.styles.js');
30
+ require('../DeliveryTimeBlock/DeliveryTimeBlock.styles.js');
31
+ require('../Menu/Menu.styles.js');
32
+ require('../DateBox/DateBox.styles.js');
33
+ require('../DotIndicator/DotIndicator.styles.js');
34
+ require('../Form/Form.styles.js');
35
+ require('../FormControl/FormControl.js');
36
+ require('../FormElements/Checkbox/Checkbox.styles.js');
37
+ require('../FormElements/Input/Input.styles.js');
38
+ require('../FormElements/Radio/Radio.styles.js');
39
+ require('../FormElements/Switch/Switch.styles.js');
40
+ require('../FormGroup/FormGroup.styles.js');
41
+ require('../GridContainer/GridContainer.styles.js');
42
+ require('../HighlightBox/HighlightBox.styles.js');
43
+ require('../IconToolTip/IconToolTip.styles.js');
44
+ require('../Spacer/Spacer.styles.js');
45
+ require('../InfoTextBlock/InfoTextBlock.styles.js');
46
+ require('../LayoutBox/LayoutBox.styles.js');
47
+ require('../ListItem/ListItem.styles.js');
48
+ require('../ListItemWithRadio/ListItemWithRadio.styles.js');
49
+ require('../Links/Link.js');
50
+ require('react-dom');
51
+ require('../Modal/Modal.styles.js');
52
+ require('../RadioBox/RadioBoxItem.styles.js');
53
+ require('../RadioBox/RadioBoxList.styles.js');
54
+ require('../RadioGroup/RadioGroup.styles.js');
55
+ require('../RadioListItem/RadioListItem.styles.js');
56
+ require('../RippleContainer/RippleContainer.styles.js');
57
+ require('../Select/Select.styles.js');
58
+ require('../Spinner/Spinner.styles.js');
59
+ require('../Stepper/Stepper.styles.js');
60
+ var ToolTip = require('../ToolTip/ToolTip.js');
61
+ require('../StepperMobile/StepperMobile.styles.js');
62
+ require('../FormElements/TextArea/TextArea.styles.js');
63
+ require('../Table/Table.styles.js');
64
+ require('../Timeline/Timeline.styles.js');
65
+ require('../QuantitySelector/QuantitySelector.styles.js');
66
+ require('../Pagination/Pagination.styles.js');
67
+ require('../../containers/PageContainer/PageContainer.styles.js');
68
+ require('../../../../utils/build/index.js');
69
+ require('../../containers/TwoColumnsContainer/TwoColumnsPageContainer.styles.js');
70
+ require('../UnorderedList/UnorderedList.styles.js');
71
+ var WarningLabel_styles = require('./WarningLabel.styles.js');
72
+
73
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
74
+
75
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
76
+
77
+ function WarningLabel(_a) {
78
+ var children = _a.children, background = _a.background, toolTip = _a.toolTip;
79
+ return (React__default['default'].createElement(WarningLabel_styles.WarningIndicator, { background: background, toolTip: toolTip },
80
+ toolTip && React__default['default'].createElement(ToolTip.ToolTip, null, toolTip),
81
+ children));
82
+ }
83
+
84
+ exports.WarningLabel = WarningLabel;
85
+ //# sourceMappingURL=WarningLabel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WarningLabel.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,19 @@
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 WarningIndicator = styled__default['default'].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n padding: ", "px\n ", "px;\n background-color: ", ";\n border-radius: ", "px;\n display: inline-block;\n position: relative;\n ", ";\n"], ["\n padding: ", "px\n ", "px;\n background-color: ", ";\n border-radius: ", "px;\n display: inline-block;\n position: relative;\n ", ";\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; }, function (props) { return props.background; }, function (props) { var _a; return (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.borderRadius.big; }, function (props) {
13
+ return props.toolTip &&
14
+ "\n > {\n &:first-child {\n display: none;\n }\n }\n\n &:hover {\n > {\n &:first-child {\n display: block;\n }\n }\n }\n ";
15
+ });
16
+ var templateObject_1;
17
+
18
+ exports.WarningIndicator = WarningIndicator;
19
+ //# sourceMappingURL=WarningLabel.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WarningLabel.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
@@ -60,6 +60,7 @@ var Pagination = require('./components/Pagination/Pagination.js');
60
60
  var PageContainer = require('./containers/PageContainer/PageContainer.js');
61
61
  var TwoColumnsPageContainer = require('./containers/TwoColumnsContainer/TwoColumnsPageContainer.js');
62
62
  var UnorderedList_styles = require('./components/UnorderedList/UnorderedList.styles.js');
63
+ var WarningLabel = require('./components/WarningLabel/WarningLabel.js');
63
64
 
64
65
 
65
66
 
@@ -156,4 +157,5 @@ exports.PageContainer = PageContainer.PageContainer;
156
157
  exports.TwoColumnsPageContainer = TwoColumnsPageContainer.TwoColumnsPageContainer;
157
158
  exports.UnorderedList = UnorderedList_styles.UnorderedList;
158
159
  exports.UnorderedListItem = UnorderedList_styles.UnorderedListItem;
160
+ exports.WarningLabel = WarningLabel.WarningLabel;
159
161
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -2,11 +2,11 @@ import React from 'react';
2
2
  import { StyledDateBox, WeekBox, DateHeader, WeekNumber } from './DateBox.styles.js';
3
3
 
4
4
  function DateBox(_a) {
5
- var _b = _a.dateHeader, dateHeader = _b === void 0 ? 'vecka' : _b, dateText = _a.dateText;
5
+ var dateHeader = _a.dateHeader, labelBackground = _a.labelBackground, children = _a.children;
6
6
  return (React.createElement(StyledDateBox, null,
7
- React.createElement(WeekBox, null,
7
+ React.createElement(WeekBox, { labelBackground: labelBackground },
8
8
  React.createElement(DateHeader, null, dateHeader)),
9
- React.createElement(WeekNumber, null, dateText)));
9
+ React.createElement(WeekNumber, null, children)));
10
10
  }
11
11
 
12
12
  export { DateBox };
@@ -2,9 +2,9 @@ import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
2
2
  import styled from 'styled-components';
3
3
 
4
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.constants) === null || _b === void 0 ? void 0 : _b.dateBoxHorizontalPadding) + "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: ", ";\n"], ["\n padding: ", "px 0;\n text-align: center;\n font-size: ", "px;\n font-weight: ", ";\n font-family: ", ";\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; }, function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.type.primary; });
7
- var DateHeader = styled.p(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n font-size: ", "px;\n font-weight: ", ";\n font-family: ", ";\n text-align: center;\n color: ", ";\n"], ["\n font-size: ", "px;\n font-weight: ", ";\n font-family: ", ";\n text-align: center;\n color: ", ";\n"])), function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.xs; }, function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.weight.semiBold; }, function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.type.primary; }, 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 props.labelBackground || ((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.brandBlue); }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.white; }, function (props) { var _a, _b; return ((_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs) + "px " + ((_b = props.theme.constants) === null || _b === void 0 ? void 0 : _b.dateBoxHorizontalPadding) + "px"; });
6
+ var WeekNumber = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n padding: ", "px 0;\n text-align: center;\n"], ["\n padding: ", "px 0;\n text-align: center;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; });
7
+ var DateHeader = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n text-align: center;\n"], ["\n text-align: center;\n"])));
8
8
  var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
9
9
 
10
10
  export { DateHeader, StyledDateBox, WeekBox, WeekNumber };
@@ -13,10 +13,10 @@ function Header(_a) {
13
13
  var device = useDetectDevice();
14
14
  return (React.createElement(Wrapper, null,
15
15
  topLinkLabel && topLinkHref && (React.createElement(HeaderLink, { linkHref: topLinkHref, icon: React.createElement(Icons.ChevronLeft, { width: 20, height: 20, color: (_c = theme.palette) === null || _c === void 0 ? void 0 : _c.white }), linkLabel: topLinkLabel })),
16
- React.createElement(HeaderWrapper, null,
16
+ (logoImage || logOutLabel) && (React.createElement(HeaderWrapper, null,
17
17
  React.createElement(HeaderContainer, { maxWidth: lowerContainerMaxWidth },
18
- React.createElement(Logo, { logoImage: logoImage }),
19
- logOut && (React.createElement(Button, { onClick: function () { return logOut && logOut(); }, color: 'white', size: device.isMobile ? 'medium' : 'large' }, logOutLabel)))),
18
+ logoImage && React.createElement(Logo, { logoImage: logoImage }),
19
+ logOut && (React.createElement(Button, { onClick: function () { return logOut && logOut(); }, color: 'white', size: device.isMobile ? 'medium' : 'large' }, logOutLabel))))),
20
20
  children && React.createElement(MenuContainer, null, children)));
21
21
  }
22
22
 
@@ -1,7 +1,7 @@
1
1
  import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
2
2
  import styled from 'styled-components';
3
3
 
4
- var Logo = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n position: relative;\n\n width: 163px;\n height: 62px;\n"], ["\n display: flex;\n align-items: center;\n position: relative;\n\n width: 163px;\n height: 62px;\n"])));
4
+ var Logo = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n position: relative;\n"], ["\n display: flex;\n align-items: center;\n position: relative;\n"])));
5
5
  var templateObject_1;
6
6
 
7
7
  export { Logo };
@@ -2,7 +2,7 @@ import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
2
2
  import styled from 'styled-components';
3
3
 
4
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; });
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.semiBold; }, 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
 
@@ -0,0 +1,77 @@
1
+ import React from 'react';
2
+ import '@citygross/typography';
3
+ import '../AddressBlock/AddressBlock.styles.js';
4
+ import '../../../../design-tokens/build/index.js';
5
+ import '../AlertBox/AlertBox.styles.js';
6
+ import '../Button/Button.js';
7
+ import '@citygross/utils';
8
+ import '@citygross/design-tokens';
9
+ import '@citygross/icons';
10
+ import '../Logo/Logo.styles.js';
11
+ import '../Header/Header.styles.js';
12
+ import '../HeaderLink/HeaderLink.styles.js';
13
+ import '../BackgroundImage/BackgroundImage.styles.js';
14
+ import '../Badge/Badge.styles.js';
15
+ import '../Box/Box.styles.js';
16
+ import '../Button/Button.styles.js';
17
+ import '../BackButton/BackButton.styles.js';
18
+ import 'react-loading-skeleton';
19
+ import '../CartItemSummary/CartItemSummary.styles.js';
20
+ import '../Divider/Divider.styles.js';
21
+ import '../CartSummary/CartSummary.styles.js';
22
+ import '../CustomerInfoBlock/CustomerInfoBlock.styles.js';
23
+ import '../Collapsable/Collapsable.styles.js';
24
+ import '../DeliverySlotItem/DeliverySlotItem.styles.js';
25
+ import '../Slider/Slider.styles.js';
26
+ import '../DeliveryTimeBlock/DeliveryTimeBlock.styles.js';
27
+ import '../Menu/Menu.styles.js';
28
+ import '../DateBox/DateBox.styles.js';
29
+ import '../DotIndicator/DotIndicator.styles.js';
30
+ import '../Form/Form.styles.js';
31
+ import '../FormControl/FormControl.js';
32
+ import '../FormElements/Checkbox/Checkbox.styles.js';
33
+ import '../FormElements/Input/Input.styles.js';
34
+ import '../FormElements/Radio/Radio.styles.js';
35
+ import '../FormElements/Switch/Switch.styles.js';
36
+ import '../FormGroup/FormGroup.styles.js';
37
+ import '../GridContainer/GridContainer.styles.js';
38
+ import '../HighlightBox/HighlightBox.styles.js';
39
+ import '../IconToolTip/IconToolTip.styles.js';
40
+ import '../Spacer/Spacer.styles.js';
41
+ import '../InfoTextBlock/InfoTextBlock.styles.js';
42
+ import '../LayoutBox/LayoutBox.styles.js';
43
+ import '../ListItem/ListItem.styles.js';
44
+ import '../ListItemWithRadio/ListItemWithRadio.styles.js';
45
+ import '../Links/Link.js';
46
+ import 'react-dom';
47
+ import '../Modal/Modal.styles.js';
48
+ import '../RadioBox/RadioBoxItem.styles.js';
49
+ import '../RadioBox/RadioBoxList.styles.js';
50
+ import '../RadioGroup/RadioGroup.styles.js';
51
+ import '../RadioListItem/RadioListItem.styles.js';
52
+ import '../RippleContainer/RippleContainer.styles.js';
53
+ import '../Select/Select.styles.js';
54
+ import '../Spinner/Spinner.styles.js';
55
+ import '../Stepper/Stepper.styles.js';
56
+ import { ToolTip } from '../ToolTip/ToolTip.js';
57
+ import '../StepperMobile/StepperMobile.styles.js';
58
+ import '../FormElements/TextArea/TextArea.styles.js';
59
+ import '../Table/Table.styles.js';
60
+ import '../Timeline/Timeline.styles.js';
61
+ import '../QuantitySelector/QuantitySelector.styles.js';
62
+ import '../Pagination/Pagination.styles.js';
63
+ import '../../containers/PageContainer/PageContainer.styles.js';
64
+ import '../../../../utils/build/index.js';
65
+ import '../../containers/TwoColumnsContainer/TwoColumnsPageContainer.styles.js';
66
+ import '../UnorderedList/UnorderedList.styles.js';
67
+ import { WarningIndicator } from './WarningLabel.styles.js';
68
+
69
+ function WarningLabel(_a) {
70
+ var children = _a.children, background = _a.background, toolTip = _a.toolTip;
71
+ return (React.createElement(WarningIndicator, { background: background, toolTip: toolTip },
72
+ toolTip && React.createElement(ToolTip, null, toolTip),
73
+ children));
74
+ }
75
+
76
+ export { WarningLabel };
77
+ //# sourceMappingURL=WarningLabel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WarningLabel.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,11 @@
1
+ import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
2
+ import styled from 'styled-components';
3
+
4
+ var WarningIndicator = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: ", "px\n ", "px;\n background-color: ", ";\n border-radius: ", "px;\n display: inline-block;\n position: relative;\n ", ";\n"], ["\n padding: ", "px\n ", "px;\n background-color: ", ";\n border-radius: ", "px;\n display: inline-block;\n position: relative;\n ", ";\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; }, function (props) { return props.background; }, function (props) { var _a; return (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.borderRadius.big; }, function (props) {
5
+ return props.toolTip &&
6
+ "\n > {\n &:first-child {\n display: none;\n }\n }\n\n &:hover {\n > {\n &:first-child {\n display: block;\n }\n }\n }\n ";
7
+ });
8
+ var templateObject_1;
9
+
10
+ export { WarningIndicator };
11
+ //# sourceMappingURL=WarningLabel.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WarningLabel.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
@@ -56,4 +56,5 @@ export { Pagination } from './components/Pagination/Pagination.js';
56
56
  export { PageContainer } from './containers/PageContainer/PageContainer.js';
57
57
  export { TwoColumnsPageContainer } from './containers/TwoColumnsContainer/TwoColumnsPageContainer.js';
58
58
  export { UnorderedList, UnorderedListItem } from './components/UnorderedList/UnorderedList.styles.js';
59
+ export { WarningLabel } from './components/WarningLabel/WarningLabel.js';
59
60
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citygross/components",
3
- "version": "0.7.51",
3
+ "version": "0.7.55",
4
4
  "license": "ISC",
5
5
  "sideEffects": false,
6
6
  "main": "./build/cjs/components/src/index.js",
@@ -65,11 +65,11 @@
65
65
  "@citygross/design-tokens": "^0.2.21",
66
66
  "@citygross/icons": "^0.1.3",
67
67
  "@citygross/react-use-bg-wizard": "^0.0.8",
68
- "@citygross/typography": "^0.0.48",
68
+ "@citygross/typography": "^0.0.49",
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": "37f894928c880603c0ddb714df11d946f0bc266b"
74
+ "gitHead": "83703785d1062220ea4b23d9238241a028c83b71"
75
75
  }