@citygross/components 0.7.41 → 0.7.45
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/DeliverySlotItem/DeliverySlotItem.d.ts +4 -3
- package/build/@types/components/DeliverySlotItem/DeliverySlotItem.styles.d.ts +0 -2
- 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 +6 -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/components/RadioListItem/RadioListItem.d.ts +2 -1
- package/build/@types/components/RadioListItem/RadioListItem.stories.d.ts +1 -0
- package/build/@types/components/RadioListItem/RadioListItem.styles.d.ts +2 -0
- 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/DeliverySlotItem/DeliverySlotItem.js +6 -11
- package/build/cjs/components/src/components/DeliverySlotItem/DeliverySlotItem.js.map +1 -1
- package/build/cjs/components/src/components/DeliverySlotItem/DeliverySlotItem.styles.js +1 -5
- package/build/cjs/components/src/components/DeliverySlotItem/DeliverySlotItem.styles.js.map +1 -1
- 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 +31 -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/components/RadioListItem/RadioListItem.js +4 -7
- package/build/cjs/components/src/components/RadioListItem/RadioListItem.js.map +1 -1
- package/build/cjs/components/src/components/RadioListItem/RadioListItem.styles.js +4 -1
- package/build/cjs/components/src/components/RadioListItem/RadioListItem.styles.js.map +1 -1
- 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 +6 -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/DeliverySlotItem/DeliverySlotItem.js +8 -13
- package/build/es/components/src/components/DeliverySlotItem/DeliverySlotItem.js.map +1 -1
- package/build/es/components/src/components/DeliverySlotItem/DeliverySlotItem.styles.js +2 -4
- package/build/es/components/src/components/DeliverySlotItem/DeliverySlotItem.styles.js.map +1 -1
- 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 +23 -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/components/RadioListItem/RadioListItem.js +5 -8
- package/build/es/components/src/components/RadioListItem/RadioListItem.js.map +1 -1
- package/build/es/components/src/components/RadioListItem/RadioListItem.styles.js +4 -2
- package/build/es/components/src/components/RadioListItem/RadioListItem.styles.js.map +1 -1
- 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 +6 -2
- package/build/es/design-tokens/build/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -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,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
export declare type TDeliverySlotItem = {
|
|
2
3
|
date: string;
|
|
3
4
|
selected: boolean;
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
children: React.ReactNode;
|
|
6
7
|
onSelect: () => void;
|
|
7
8
|
};
|
|
8
|
-
export declare function DeliverySlotItem({ date,
|
|
9
|
+
export declare function DeliverySlotItem({ date, selected, disabled, children, onSelect }: TDeliverySlotItem): JSX.Element;
|
|
@@ -8,6 +8,4 @@ export declare const DeliverySlotHeaderContainer: import("styled-components").St
|
|
|
8
8
|
export declare const DeliverySlotHeaderText: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TDeliverySlotItem, never>;
|
|
9
9
|
export declare const DeliverySlotContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TDeliverySlotItem, never>;
|
|
10
10
|
export declare const DeliverySlotBody: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TDeliverySlotItem, never>;
|
|
11
|
-
export declare const DisabledLabel: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
12
|
-
export declare const DotContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
13
11
|
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare type THighlightBoxContainer = {
|
|
2
|
+
size?: 'small' | 'large';
|
|
3
|
+
isLastChild?: boolean;
|
|
4
|
+
cancelled?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const HighlightBoxContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, THighlightBoxContainer, 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;
|
|
@@ -16,5 +16,6 @@ export declare type TRadioListItemProps = styles.TBaseRadioItemInputWrapper & {
|
|
|
16
16
|
disabledText?: string;
|
|
17
17
|
textOnSelected?: string;
|
|
18
18
|
value: string | number;
|
|
19
|
+
children?: JSX.Element;
|
|
19
20
|
};
|
|
20
|
-
export declare function RadioListItem({ onClick, selected, name, radioColor, defaultDisabledString, flexGrow, isDisabled, dotIndicator, transparent, noPadding, label,
|
|
21
|
+
export declare function RadioListItem({ onClick, selected, name, radioColor, defaultDisabledString, flexGrow, isDisabled, dotIndicator, transparent, noPadding, label, disabledText, secondaryLabel, textOnSelected, value, children }: TRadioListItemProps): JSX.Element;
|
|
@@ -17,3 +17,4 @@ export default _default;
|
|
|
17
17
|
export declare const Default: Story<TRadioListItemProps>;
|
|
18
18
|
export declare const Selected: Story<TRadioListItemProps>;
|
|
19
19
|
export declare const Disabled: Story<TRadioListItemProps>;
|
|
20
|
+
export declare const withChildren: Story<TRadioListItemProps>;
|
|
@@ -14,3 +14,5 @@ export declare const StyledH3: import("styled-components").StyledComponent<({ ch
|
|
|
14
14
|
as: string;
|
|
15
15
|
}, "as">;
|
|
16
16
|
export declare const RadioSecondaryWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
17
|
+
export declare const RadioFlex: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
18
|
+
export declare const SecondaryColumn: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
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":";;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -7,23 +7,21 @@ var designTokens = require('@citygross/design-tokens');
|
|
|
7
7
|
var utils = require('@citygross/utils');
|
|
8
8
|
var typography = require('@citygross/typography');
|
|
9
9
|
var DeliverySlotItem_styles = require('./DeliverySlotItem.styles.js');
|
|
10
|
-
var DotIndicator = require('../DotIndicator/DotIndicator.js');
|
|
11
10
|
|
|
12
11
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
12
|
|
|
14
13
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
15
14
|
|
|
16
15
|
function DeliverySlotItem(_a) {
|
|
17
|
-
var _b
|
|
18
|
-
var date = _a.date,
|
|
16
|
+
var _b;
|
|
17
|
+
var date = _a.date, selected = _a.selected, disabled = _a.disabled, children = _a.children, onSelect = _a.onSelect;
|
|
19
18
|
var momentDate = utils.moment(date);
|
|
20
19
|
var width = utils.useWindowSize().width;
|
|
21
|
-
var
|
|
20
|
+
var _c = React.useState(momentDate
|
|
22
21
|
.format(width < (((_b = designTokens.theme.breakpoints) === null || _b === void 0 ? void 0 : _b.md) || 768) ? 'ddd' : 'dddd')
|
|
23
|
-
.toLocaleLowerCase()), weekDay =
|
|
22
|
+
.toLocaleLowerCase()), weekDay = _c[0], setWeekDay = _c[1];
|
|
24
23
|
var dayNumber = momentDate.format('D');
|
|
25
24
|
var month = momentDate.format('MMM').toLocaleLowerCase();
|
|
26
|
-
var disabled = disabledLabel !== undefined;
|
|
27
25
|
React.useEffect(function () {
|
|
28
26
|
var _a;
|
|
29
27
|
setWeekDay(momentDate
|
|
@@ -31,7 +29,7 @@ function DeliverySlotItem(_a) {
|
|
|
31
29
|
.toLocaleLowerCase());
|
|
32
30
|
}, [width]);
|
|
33
31
|
var slotRef = React.useRef(null);
|
|
34
|
-
var
|
|
32
|
+
var _d = React.useState(true), isVisible = _d[0], setIsVisible = _d[1];
|
|
35
33
|
var callbackFn = function (entries) {
|
|
36
34
|
var entry = entries[0];
|
|
37
35
|
// gets zoom level
|
|
@@ -83,10 +81,7 @@ function DeliverySlotItem(_a) {
|
|
|
83
81
|
React__default['default'].createElement(DeliverySlotItem_styles.DeliverySlotBody, { disabled: disabled },
|
|
84
82
|
React__default['default'].createElement(typography.H2, { color: 'darkest' }, removeLeadingZero(dayNumber)),
|
|
85
83
|
React__default['default'].createElement(typography.BodyText, { color: 'darker' }, utils.capitalizeFirstLetter(month))),
|
|
86
|
-
|
|
87
|
-
React__default['default'].createElement(typography.BodyText, { size: typography.TextTypes.TextSize.EXTRASMALL }, disabledLabel))),
|
|
88
|
-
!disabledLabel && showWarningIndicator && (React__default['default'].createElement(DeliverySlotItem_styles.DotContainer, null,
|
|
89
|
-
React__default['default'].createElement(DotIndicator.Dot, { color: (_c = designTokens.theme === null || designTokens.theme === void 0 ? void 0 : designTokens.theme.palette) === null || _c === void 0 ? void 0 : _c.alertRed }))))));
|
|
84
|
+
children)));
|
|
90
85
|
}
|
|
91
86
|
|
|
92
87
|
exports.DeliverySlotItem = DeliverySlotItem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeliverySlotItem.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DeliverySlotItem.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -29,15 +29,11 @@ var DeliverySlotContainer = styled__default['default'].div(templateObject_4 || (
|
|
|
29
29
|
: (_b = props.theme.palette) === null || _b === void 0 ? void 0 : _b.white;
|
|
30
30
|
});
|
|
31
31
|
var DeliverySlotBody = styled__default['default'].div(templateObject_5 || (templateObject_5 = _tslib.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n ", ";\n"], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n ", ";\n"])), function (props) { return props.disabled && 'opacity: 0.4'; });
|
|
32
|
-
var
|
|
33
|
-
var DotContainer = styled__default['default'].div(templateObject_7 || (templateObject_7 = _tslib.__makeTemplateObject(["\n justify-content: center;\n display: flex;\n padding: ", "px 0;\n"], ["\n justify-content: center;\n display: flex;\n padding: ", "px 0;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; });
|
|
34
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
|
|
32
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
35
33
|
|
|
36
34
|
exports.DeliverySlotBody = DeliverySlotBody;
|
|
37
35
|
exports.DeliverySlotContainer = DeliverySlotContainer;
|
|
38
36
|
exports.DeliverySlotHeaderContainer = DeliverySlotHeaderContainer;
|
|
39
37
|
exports.DeliverySlotHeaderText = DeliverySlotHeaderText;
|
|
40
38
|
exports.DeliverySlotItemContainer = DeliverySlotItemContainer;
|
|
41
|
-
exports.DisabledLabel = DisabledLabel;
|
|
42
|
-
exports.DotContainer = DotContainer;
|
|
43
39
|
//# sourceMappingURL=DeliverySlotItem.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeliverySlotItem.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DeliverySlotItem.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -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, _b = _a.size, size = _b === void 0 ? 'small' : _b, isLastChild = _a.isLastChild, children = _a.children;
|
|
14
|
+
return (React__default['default'].createElement(HighlightBox_styles.HighlightBoxContainer, { cancelled: cancelled, size: size, isLastChild: isLastChild }, 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,31 @@
|
|
|
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 display: flex;\n flex-wrap: ", ";\n width: ", "px;\n margin-right: ", "px;\n align-items: center;\n padding: ", "px;\n background-color: ", ";\n border: 1px solid;\n border-color: ", ";\n border-radius: ", "px;\n box-shadow: ", ";\n\n @media (min-width: ", "px) {\n width: ", ";\n margin-right: 0;\n }\n"], ["\n display: flex;\n flex-wrap: ", ";\n width: ", "px;\n margin-right: ", "px;\n align-items: center;\n padding: ", "px;\n background-color: ", ";\n border: 1px solid;\n border-color: ", ";\n border-radius: ", "px;\n box-shadow: ", ";\n\n @media (min-width: ", "px) {\n width: ", ";\n margin-right: 0;\n }\n"])), function (props) { return (props.size === 'small' ? 'unset' : 'wrap'); }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.highlightBoxWidth; }, function (props) { var _a; return props.isLastChild ? 0 : (_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 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
|
+
}, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.sm; }, function (props) {
|
|
23
|
+
var _a;
|
|
24
|
+
return props.size === 'small'
|
|
25
|
+
? ((_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.highlightBoxWidth) + "px"
|
|
26
|
+
: 'auto';
|
|
27
|
+
});
|
|
28
|
+
var templateObject_1;
|
|
29
|
+
|
|
30
|
+
exports.HighlightBoxContainer = HighlightBoxContainer;
|
|
31
|
+
//# 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;
|
|
@@ -15,7 +15,7 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
15
15
|
|
|
16
16
|
function RadioListItem(_a) {
|
|
17
17
|
var _b, _c, _d, _e;
|
|
18
|
-
var onClick = _a.onClick, selected = _a.selected, name = _a.name, _f = _a.radioColor, radioColor = _f === void 0 ? 'alertBlue' : _f, defaultDisabledString = _a.defaultDisabledString, _g = _a.flexGrow, flexGrow = _g === void 0 ? 1 : _g, isDisabled = _a.isDisabled, dotIndicator = _a.dotIndicator, transparent = _a.transparent, noPadding = _a.noPadding, label = _a.label,
|
|
18
|
+
var onClick = _a.onClick, selected = _a.selected, name = _a.name, _f = _a.radioColor, radioColor = _f === void 0 ? 'alertBlue' : _f, defaultDisabledString = _a.defaultDisabledString, _g = _a.flexGrow, flexGrow = _g === void 0 ? 1 : _g, isDisabled = _a.isDisabled, dotIndicator = _a.dotIndicator, transparent = _a.transparent, noPadding = _a.noPadding, label = _a.label, disabledText = _a.disabledText, secondaryLabel = _a.secondaryLabel, textOnSelected = _a.textOnSelected, value = _a.value, children = _a.children;
|
|
19
19
|
var checked = value === selected;
|
|
20
20
|
return (React__default['default'].createElement(RadioListItem_styles.BaseRadioListItemContainer, { background: transparent
|
|
21
21
|
? (_b = designTokens.theme.palette) === null || _b === void 0 ? void 0 : _b.transparent
|
|
@@ -24,16 +24,13 @@ function RadioListItem(_a) {
|
|
|
24
24
|
? (_c = designTokens.theme.palette) === null || _c === void 0 ? void 0 : _c.blueLight
|
|
25
25
|
: (_d = designTokens.theme.palette) === null || _d === void 0 ? void 0 : _d.white
|
|
26
26
|
: 'white', noPadding: noPadding, onClick: isDisabled ? function () { } : function () { return onClick(value); } },
|
|
27
|
-
React__default['default'].createElement(
|
|
27
|
+
React__default['default'].createElement(RadioListItem_styles.RadioFlex, null,
|
|
28
28
|
React__default['default'].createElement(RadioListItem_styles.BaseRadioItemLeftWrapper, { isDisabled: isDisabled, flexGrow: flexGrow },
|
|
29
29
|
React__default['default'].createElement(Radio.Radio, { customColor: radioColor, checked: checked, disabled: isDisabled, name: name, onChange: function () { return onClick(value); }, value: value }),
|
|
30
30
|
React__default['default'].createElement(RadioListItem_styles.StyledH3, { lineThrough: isDisabled }, label)),
|
|
31
31
|
React__default['default'].createElement(RadioListItem_styles.RadioSecondaryWrapper, null,
|
|
32
|
-
React__default['default'].createElement("
|
|
33
|
-
|
|
34
|
-
isDisabled
|
|
35
|
-
? disabledText || defaultDisabledString
|
|
36
|
-
: secondaryLabel))),
|
|
32
|
+
React__default['default'].createElement("span", null, dotIndicator && checked && (React__default['default'].createElement(DotIndicator.Dot, { color: dotIndicator.color, shadow: dotIndicator.shadow }))),
|
|
33
|
+
isDisabled ? (React__default['default'].createElement(typography.BodyText, null, disabledText || defaultDisabledString)) : (children || secondaryLabel))),
|
|
37
34
|
textOnSelected && checked && (React__default['default'].createElement(RadioListItem_styles.ExtraTextContainer, null,
|
|
38
35
|
React__default['default'].createElement(typography.BodyText, { size: typography.TextTypes.TextSize.SMALL, color: (_e = designTokens.theme.palette) === null || _e === void 0 ? void 0 : _e.dark }, textOnSelected)))));
|
|
39
36
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioListItem.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RadioListItem.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -15,11 +15,14 @@ var BaseRadioItemLeftWrapper = styled__default['default'].div(templateObject_2 |
|
|
|
15
15
|
var ExtraTextContainer = styled__default['default'].div(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n margin-left: ", "px;\n margin-top: ", "px;\n"], ["\n margin-left: ", "px;\n margin-top: ", "px;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xl; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; });
|
|
16
16
|
var StyledH3 = styled__default['default'](typography.H3).attrs({ as: 'label' })(templateObject_4 || (templateObject_4 = _tslib.__makeTemplateObject(["\n cursor: pointer;\n white-space: nowrap;\n"], ["\n cursor: pointer;\n white-space: nowrap;\n"])));
|
|
17
17
|
var RadioSecondaryWrapper = styled__default['default'].div(templateObject_5 || (templateObject_5 = _tslib.__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", "px;\n justify-content: flex-end;\n text-align: right;\n font-size: ", "px;\n"], ["\n display: flex;\n align-items: center;\n gap: ", "px;\n justify-content: flex-end;\n text-align: right;\n font-size: ", "px;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; }, function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.s2; });
|
|
18
|
-
var
|
|
18
|
+
var RadioFlex = styled__default['default'].div(templateObject_6 || (templateObject_6 = _tslib.__makeTemplateObject(["\n display: flex;\n gap: ", "px;\n"], ["\n display: flex;\n gap: ", "px;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; });
|
|
19
|
+
styled__default['default'].div(templateObject_7 || (templateObject_7 = _tslib.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n"], ["\n display: flex;\n flex-direction: column;\n"])));
|
|
20
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
|
|
19
21
|
|
|
20
22
|
exports.BaseRadioItemLeftWrapper = BaseRadioItemLeftWrapper;
|
|
21
23
|
exports.BaseRadioListItemContainer = BaseRadioListItemContainer;
|
|
22
24
|
exports.ExtraTextContainer = ExtraTextContainer;
|
|
25
|
+
exports.RadioFlex = RadioFlex;
|
|
23
26
|
exports.RadioSecondaryWrapper = RadioSecondaryWrapper;
|
|
24
27
|
exports.StyledH3 = StyledH3;
|
|
25
28
|
//# sourceMappingURL=RadioListItem.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioListItem.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RadioListItem.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|