@mvf/external-components 3.11.3 → 3.11.4
Sign up to get free protection for your applications and to get access to all the features.
- package/Assets/BrandLogos/ExpertMarketLogo.d.ts +1 -1
- package/Assets/BrandLogos/ExpertReviewsLogo.d.ts +1 -1
- package/Assets/BrandLogos/GoWizardLogo.d.ts +1 -1
- package/Assets/BrandLogos/HearClearLogo.d.ts +1 -1
- package/Assets/BrandLogos/LasikEyesLogo.d.ts +1 -1
- package/Assets/BrandLogos/StartupsLogo.d.ts +1 -1
- package/Assets/BrandLogos/TechcoLogo.d.ts +1 -1
- package/Assets/BrandLogos/TheEcoExpertsLogo.d.ts +1 -1
- package/Assets/BrandLogos/WebsiteBuilderExpertLogo.d.ts +1 -1
- package/Assets/BrandLogos/brandLogos.d.ts +1 -1
- package/Assets/CustomIcons/CheckboxIcon.d.ts +1 -1
- package/Assets/CustomIcons/RadioIcon.d.ts +1 -1
- package/Assets/svgs/svgs.d.ts +1 -1
- package/Components/Atoms/AnimationWrapper/AnimationWrapperStory.d.ts +1 -1
- package/Components/Atoms/AnimationWrapper/makeAnimationWrapperStyling.d.ts +1 -1
- package/Components/Atoms/Button/Button.d.ts +1 -1
- package/Components/Atoms/Button/ButtonStory.d.ts +1 -1
- package/Components/Atoms/Button/makeButtonStyling.d.ts +1 -1
- package/Components/Atoms/CardButton/CardButton.d.ts +1 -1
- package/Components/Atoms/CardButton/CardButtonStory.d.ts +1 -1
- package/Components/Atoms/CardButton/makeCardButtonStyling.d.ts +2 -2
- package/Components/Atoms/CircularProgress/makeCircularProgressStyling.d.ts +1 -1
- package/Components/Atoms/ErrorMessage/ErrorMessage.d.ts +1 -1
- package/Components/Atoms/ErrorMessage/ErrorMessageStory.d.ts +1 -1
- package/Components/Atoms/ErrorMessage/makeErrorMessageStyles.d.ts +1 -1
- package/Components/Atoms/ErrorMessageProvider/ErrorMessageProvider.d.ts +3 -3
- package/Components/Atoms/FormControl/FormControl.d.ts +1 -1
- package/Components/Atoms/FormControl/FormControlStory.d.ts +1 -1
- package/Components/Atoms/FormControl/makeFormControlStyles.d.ts +1 -1
- package/Components/Atoms/IconButton/IconButton.d.ts +1 -1
- package/Components/Atoms/IconButton/IconButtonStory.d.ts +1 -1
- package/Components/Atoms/IconButton/makeIconButtonStyling.d.ts +1 -1
- package/Components/Atoms/InfoPanel/InfoPanel.d.ts +1 -1
- package/Components/Atoms/InfoPanel/InfoPanelStory.d.ts +1 -1
- package/Components/Atoms/InfoPanel/makeInfoPanelStyling.d.ts +5 -5
- package/Components/Atoms/Input/Input.d.ts +1 -1
- package/Components/Atoms/Input/InputStory.d.ts +1 -1
- package/Components/Atoms/Input/makeInputStyles.d.ts +4 -4
- package/Components/Atoms/InputLabel/InputLabel.d.ts +1 -1
- package/Components/Atoms/InputLabel/InputLabelStory.d.ts +1 -1
- package/Components/Atoms/InputLabel/makeInputLabelStyles.d.ts +1 -1
- package/Components/Atoms/InsetCheckbox/InsetCheckbox.d.ts +2 -2
- package/Components/Atoms/InsetCheckbox/InsetCheckboxStory.d.ts +1 -1
- package/Components/Atoms/Link/Link.d.ts +1 -1
- package/Components/Atoms/Link/LinkStory.d.ts +1 -1
- package/Components/Atoms/Link/makeLinkStyling.d.ts +1 -1
- package/Components/Atoms/LoadingIndicator/LoadingIndicator.d.ts +1 -1
- package/Components/Atoms/LoadingIndicator/makeLinearProgressStyling.d.ts +1 -1
- package/Components/Atoms/Modal/Modal.d.ts +1 -1
- package/Components/Atoms/Modal/ModalStory.d.ts +1 -1
- package/Components/Atoms/Modal/makeModalStylings.d.ts +3 -3
- package/Components/Atoms/ProgressBar/ProgressBar.d.ts +1 -1
- package/Components/Atoms/ProgressBar/ProgressBarStory.d.ts +1 -1
- package/Components/Atoms/ProgressBar/makeProgressBarStyling.d.ts +3 -3
- package/Components/Atoms/Text/Text.d.ts +1 -1
- package/Components/Atoms/Text/TextStory.d.ts +1 -1
- package/Components/Atoms/Text/makeTextStyling.d.ts +1 -1
- package/Components/Molecules/CheckBox/CheckBox.d.ts +1 -1
- package/Components/Molecules/CheckBox/CheckBox.test.js +1 -1
- package/Components/Molecules/CheckBox/CheckBoxStory.d.ts +1 -1
- package/Components/Molecules/CheckBox/makeCheckBoxStyling.d.ts +10 -10
- package/Components/Molecules/DatePicker/DatePicker.d.ts +1 -1
- package/Components/Molecules/DatePicker/DatePickerStory.d.ts +1 -1
- package/Components/Molecules/DatePicker/DatePickerTextFieldType.d.ts +1 -1
- package/Components/Molecules/DatePicker/__tests__/DatePicker.test.js +1 -1
- package/Components/Molecules/DatePicker/makeDatePickerStyling.d.ts +3 -3
- package/Components/Molecules/DropDownSelect/DropDownSelect.d.ts +1 -1
- package/Components/Molecules/DropDownSelect/DropDownSelectStory.d.ts +1 -1
- package/Components/Molecules/DropDownSelect/makeDropDownSelectStyling.d.ts +3 -3
- package/Components/Molecules/IconTileCheckBox/IconTileCheckBox.d.ts +1 -1
- package/Components/Molecules/IconTileCheckBox/IconTileCheckBoxStory.d.ts +1 -1
- package/Components/Molecules/IconTileCheckBox/makeIconTileCheckBoxStyling.d.ts +5 -5
- package/Components/Molecules/IconTileRadioButton/IconTileRadioButton.d.ts +1 -1
- package/Components/Molecules/IconTileRadioButton/IconTileRadioButton.test.js +1 -1
- package/Components/Molecules/IconTileRadioButton/IconTileRadioButtonStory.d.ts +1 -1
- package/Components/Molecules/IconTileRadioButton/makeIconTileRadioButtonStyling.d.ts +4 -4
- package/Components/Molecules/NavBar/NavBar.d.ts +1 -1
- package/Components/Molecules/NavBar/NavBarStory.d.ts +1 -1
- package/Components/Molecules/NavBar/makeNavBarStyles.d.ts +4 -4
- package/Components/Molecules/PhoneNumberTextField/PhoneNumberTextField.d.ts +1 -1
- package/Components/Molecules/PhoneNumberTextField/PhoneNumberTextFieldStory.d.ts +1 -1
- package/Components/Molecules/PhoneNumberTextField/makeFormControlPhoneNumberStyling.d.ts +1 -1
- package/Components/Molecules/RadioButton/RadioButton.d.ts +1 -1
- package/Components/Molecules/RadioButton/RadioButtonStory.d.ts +1 -1
- package/Components/Molecules/RadioButton/makeRadioButtonStyling.d.ts +7 -7
- package/Components/Molecules/ScrollContainer/ScrollContainer.test.js +1 -1
- package/Components/Molecules/ScrollContainer/ScrollContainerStory.d.ts +1 -1
- package/Components/Molecules/ScrollContainer/ScrollContainerTypes.d.ts +2 -2
- package/Components/Molecules/ScrollContainer/makeScrollContainerStyling.d.ts +3 -3
- package/Components/Molecules/SupplierCard/ISupplierCardProps.d.ts +1 -1
- package/Components/Molecules/SupplierCard/SupplierCard.d.ts +1 -1
- package/Components/Molecules/SupplierCard/SupplierCard.js +3 -2
- package/Components/Molecules/SupplierCard/SupplierCard.js.map +1 -1
- package/Components/Molecules/SupplierCard/SupplierCardStory.d.ts +2 -1
- package/Components/Molecules/SupplierCard/SupplierCardStory.js +2 -2
- package/Components/Molecules/SupplierCard/SupplierCardStory.js.map +1 -1
- package/Components/Molecules/SupplierCard/defaultProps.d.ts +0 -1
- package/Components/Molecules/SupplierCard/defaultProps.js +0 -1
- package/Components/Molecules/SupplierCard/defaultProps.js.map +1 -1
- package/Components/Molecules/SupplierCard/makeSupplierCardStyling.d.ts +20 -13
- package/Components/Molecules/SupplierCard/makeSupplierCardStyling.js +46 -30
- package/Components/Molecules/SupplierCard/makeSupplierCardStyling.js.map +1 -1
- package/Components/Molecules/TextField/TextField.d.ts +1 -1
- package/Components/Molecules/TextField/TextFieldStory.d.ts +1 -1
- package/Components/Molecules/ThankYouBanner/ThankYouBanner.d.ts +1 -1
- package/Components/Molecules/ThankYouBanner/ThankYouBannerStory.d.ts +1 -1
- package/Components/Molecules/ThankYouBanner/makeThankYouBannerStyling.d.ts +2 -2
- package/Components/Organisms/ListLayout/ListLayout.d.ts +1 -1
- package/Components/Organisms/ListLayout/ListLayoutStory.d.ts +1 -1
- package/Components/Organisms/ListLayout/makeListLayoutStyling.d.ts +2 -2
- package/Components/Organisms/RadioGroup/RadioGroup.d.ts +1 -1
- package/Components/Organisms/RadioGroup/RadioGroup.test.js +1 -1
- package/Components/Organisms/RadioGroup/RadioGroupContext.d.ts +1 -1
- package/Components/Organisms/RadioGroup/RadioGroupStory.d.ts +1 -1
- package/Components/Organisms/TileLayout/IconTileCheckBoxStory.d.ts +1 -1
- package/Components/Organisms/TileLayout/IconTileRadioButtonStory.d.ts +1 -1
- package/Components/Organisms/TileLayout/TileLayout.d.ts +1 -1
- package/Components/Organisms/TileLayout/makeTileLayoutStyling.d.ts +3 -3
- package/Helpers/React/FunctionComponentWithDefaultProps.d.ts +1 -1
- package/Helpers/React/css.d.ts +1 -1
- package/Helpers/icons.d.ts +1 -1
- package/Helpers/useThrottle.d.ts +1 -1
- package/Themes/StoryThemeWrapper.d.ts +1 -1
- package/Themes/themes.d.ts +2 -2
- package/package.json +1 -1
@@ -1,6 +1,6 @@
|
|
1
1
|
import { FunctionComponentWithDefaultProps } from '../../../Helpers/React';
|
2
2
|
import IComponentProps from './IComponentProps';
|
3
3
|
import defaultProps from './defaultProps';
|
4
|
-
|
4
|
+
type DropDownSelectType = FunctionComponentWithDefaultProps<IComponentProps, typeof defaultProps>;
|
5
5
|
declare const DropDownSelect: DropDownSelectType;
|
6
6
|
export default DropDownSelect;
|
@@ -4,8 +4,8 @@ interface IDropDownSelectStyleProps {
|
|
4
4
|
isError: boolean;
|
5
5
|
}
|
6
6
|
declare const useDropDownSelectStyles: ({ isIconPresent, isDisabled, isError, }: IDropDownSelectStyleProps) => {
|
7
|
-
listItems: import("@emotion/
|
8
|
-
formControl: import("@emotion/
|
9
|
-
label: import("@emotion/
|
7
|
+
listItems: import("@emotion/utils").SerializedStyles;
|
8
|
+
formControl: import("@emotion/utils").SerializedStyles;
|
9
|
+
label: import("@emotion/utils").SerializedStyles;
|
10
10
|
};
|
11
11
|
export default useDropDownSelectStyles;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { FunctionComponentWithDefaultProps } from '../../../Helpers/React/FunctionComponentWithDefaultProps';
|
2
2
|
import IComponentProps from './IComponentProps';
|
3
3
|
import defaultProps from './defaultProps';
|
4
|
-
|
4
|
+
type IconTileCheckBoxType = FunctionComponentWithDefaultProps<IComponentProps, typeof defaultProps>;
|
5
5
|
declare const IconTileCheckBox: IconTileCheckBoxType;
|
6
6
|
export default IconTileCheckBox;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { ISvgs } from '../../../Assets/svgs/svgs';
|
3
|
-
|
3
|
+
type IconTileCheckBoxStoryType = React.FunctionComponent<{
|
4
4
|
error: boolean;
|
5
5
|
iconType: keyof ISvgs;
|
6
6
|
isOtherOption: boolean;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
declare const makeIconTileCheckBoxStyling: ({ showText }: {
|
2
2
|
showText: boolean;
|
3
3
|
}) => {
|
4
|
-
container: import("@emotion/
|
5
|
-
icon: import("@emotion/
|
6
|
-
checkbox: import("@emotion/
|
7
|
-
otherInput: import("@emotion/
|
8
|
-
imgDiv: import("@emotion/
|
4
|
+
container: import("@emotion/utils").SerializedStyles;
|
5
|
+
icon: import("@emotion/utils").SerializedStyles;
|
6
|
+
checkbox: import("@emotion/utils").SerializedStyles;
|
7
|
+
otherInput: import("@emotion/utils").SerializedStyles;
|
8
|
+
imgDiv: import("@emotion/utils").SerializedStyles;
|
9
9
|
};
|
10
10
|
export default makeIconTileCheckBoxStyling;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { FunctionComponentWithDefaultProps } from '../../../Helpers/React/FunctionComponentWithDefaultProps';
|
2
2
|
import IComponentProps from './IComponentProps';
|
3
3
|
import defaultProps from './defaultProps';
|
4
|
-
|
4
|
+
type IconTileRadioButtonType = FunctionComponentWithDefaultProps<IComponentProps, typeof defaultProps>;
|
5
5
|
declare const IconTileRadioButton: IconTileRadioButtonType;
|
6
6
|
export default IconTileRadioButton;
|
@@ -48,7 +48,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
48
48
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
49
49
|
function step(op) {
|
50
50
|
if (f) throw new TypeError("Generator is already executing.");
|
51
|
-
while (_) try {
|
51
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
52
52
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
53
53
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
54
54
|
switch (op[0]) {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { ISvgs } from '../../../Assets/svgs/svgs';
|
3
|
-
|
3
|
+
type IconTileRadioButtonStoryType = React.FunctionComponent<{
|
4
4
|
error: boolean;
|
5
5
|
iconType: keyof ISvgs;
|
6
6
|
isOtherOption: boolean;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
declare const makeIconTileRadioButtonStyling: () => {
|
2
|
-
container: import("@emotion/
|
3
|
-
icon: import("@emotion/
|
4
|
-
otherInput: import("@emotion/
|
5
|
-
imgDiv: import("@emotion/
|
2
|
+
container: import("@emotion/utils").SerializedStyles;
|
3
|
+
icon: import("@emotion/utils").SerializedStyles;
|
4
|
+
otherInput: import("@emotion/utils").SerializedStyles;
|
5
|
+
imgDiv: import("@emotion/utils").SerializedStyles;
|
6
6
|
};
|
7
7
|
export default makeIconTileRadioButtonStyling;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { FunctionComponentWithDefaultProps } from '../../../Helpers/React/FunctionComponentWithDefaultProps';
|
2
2
|
import defaultProps from './defaultProps';
|
3
3
|
import IComponentProps from './IComponentProps';
|
4
|
-
|
4
|
+
type NavBarType = FunctionComponentWithDefaultProps<IComponentProps, typeof defaultProps>;
|
5
5
|
declare const NavBar: NavBarType;
|
6
6
|
export default NavBar;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
declare const makeNavBarStyles: () => {
|
2
|
-
container: import("@emotion/
|
3
|
-
space: import("@emotion/
|
4
|
-
continueButton: import("@emotion/
|
5
|
-
backButton: import("@emotion/
|
2
|
+
container: import("@emotion/utils").SerializedStyles;
|
3
|
+
space: import("@emotion/utils").SerializedStyles;
|
4
|
+
continueButton: import("@emotion/utils").SerializedStyles;
|
5
|
+
backButton: import("@emotion/utils").SerializedStyles;
|
6
6
|
};
|
7
7
|
export default makeNavBarStyles;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { FunctionComponentWithDefaultProps } from '../../../Helpers/React';
|
2
2
|
import IPhoneNumberTextFieldProps from './IPhoneNumberTextFieldProps';
|
3
3
|
import defaultProps from './defaultProps';
|
4
|
-
|
4
|
+
type PhoneNumberTextFieldType = FunctionComponentWithDefaultProps<IPhoneNumberTextFieldProps, typeof defaultProps>;
|
5
5
|
declare const PhoneNumberTextField: PhoneNumberTextFieldType;
|
6
6
|
export default PhoneNumberTextField;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
interface IMakeFormControlPhoneNumberStylingProps {
|
2
2
|
isAnswered: boolean;
|
3
3
|
}
|
4
|
-
declare const makeFormControlPhoneNumberStyling: ({ isAnswered, }: IMakeFormControlPhoneNumberStylingProps) => import("@emotion/
|
4
|
+
declare const makeFormControlPhoneNumberStyling: ({ isAnswered, }: IMakeFormControlPhoneNumberStylingProps) => import("@emotion/utils").SerializedStyles;
|
5
5
|
export default makeFormControlPhoneNumberStyling;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { FunctionComponentWithDefaultProps } from '../../../Helpers/React/FunctionComponentWithDefaultProps';
|
2
2
|
import IComponentProps from './IRadioButtonProps';
|
3
3
|
import defaultProps from './defaultProps';
|
4
|
-
|
4
|
+
type RadioButtonType = FunctionComponentWithDefaultProps<IComponentProps, typeof defaultProps>;
|
5
5
|
declare const RadioButton: RadioButtonType;
|
6
6
|
export default RadioButton;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ISvgs } from '../../../Assets/svgs/svgs';
|
3
|
-
|
3
|
+
type RadioButtonStoryType = React.FunctionComponent<{
|
4
4
|
error: boolean;
|
5
5
|
iconType: keyof ISvgs | 'none';
|
6
6
|
otherInputError: boolean;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
declare const makeRadioButtonStyling: () => {
|
2
|
-
radio: import("@emotion/
|
3
|
-
grid: import("@emotion/
|
4
|
-
icon: import("@emotion/
|
5
|
-
imgDiv: import("@emotion/
|
6
|
-
innerGrid: import("@emotion/
|
7
|
-
textGrid: import("@emotion/
|
8
|
-
otherInput: import("@emotion/
|
2
|
+
radio: import("@emotion/utils").SerializedStyles;
|
3
|
+
grid: import("@emotion/utils").SerializedStyles;
|
4
|
+
icon: import("@emotion/utils").SerializedStyles;
|
5
|
+
imgDiv: import("@emotion/utils").SerializedStyles;
|
6
|
+
innerGrid: import("@emotion/utils").SerializedStyles;
|
7
|
+
textGrid: import("@emotion/utils").SerializedStyles;
|
8
|
+
otherInput: import("@emotion/utils").SerializedStyles;
|
9
9
|
};
|
10
10
|
export default makeRadioButtonStyling;
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
15
15
|
function step(op) {
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
17
|
-
while (_) try {
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
20
20
|
switch (op[0]) {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import IScrollContainerProps from './IScrollContainerProps';
|
3
|
-
export
|
4
|
-
export
|
3
|
+
export type ScrollContainerType = React.FunctionComponent<IScrollContainerProps>;
|
4
|
+
export type ScrollDetails = {
|
5
5
|
scrollHeight: number;
|
6
6
|
clientHeight: number;
|
7
7
|
offsetTop: number;
|
@@ -5,8 +5,8 @@ interface IScrollContainerStyleProps {
|
|
5
5
|
export declare const SCROLL_BUFFER_HEIGHT = 17;
|
6
6
|
export declare const SCROLL_PADDING_HEIGHT: number;
|
7
7
|
declare const makeScrollContainerStyling: ({ scrollBufferOffset, scrollBufferOpacity, }: IScrollContainerStyleProps) => {
|
8
|
-
scrollBox: import("@emotion/
|
9
|
-
scrollPadding: import("@emotion/
|
10
|
-
scrollBuffer: import("@emotion/
|
8
|
+
scrollBox: import("@emotion/utils").SerializedStyles;
|
9
|
+
scrollPadding: import("@emotion/utils").SerializedStyles;
|
10
|
+
scrollBuffer: import("@emotion/utils").SerializedStyles;
|
11
11
|
};
|
12
12
|
export default makeScrollContainerStyling;
|
@@ -13,7 +13,7 @@ interface ISupplierCardProps {
|
|
13
13
|
id: string;
|
14
14
|
includeCta: boolean;
|
15
15
|
invertCtaColors: boolean;
|
16
|
-
onClick
|
16
|
+
onClick?: (item: ISupplierCardCallbackParams) => void;
|
17
17
|
onClickCta: () => void;
|
18
18
|
selected: boolean;
|
19
19
|
includeCheckbox: boolean;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { FunctionComponentWithDefaultProps } from '../../../Helpers/React/FunctionComponentWithDefaultProps';
|
2
2
|
import ISupplierCardProps from './ISupplierCardProps';
|
3
3
|
import defaultProps from './defaultProps';
|
4
|
-
|
4
|
+
type SupplierCardType = FunctionComponentWithDefaultProps<ISupplierCardProps, typeof defaultProps>;
|
5
5
|
declare const SupplierCard: SupplierCardType;
|
6
6
|
export default SupplierCard;
|
@@ -25,9 +25,10 @@ var Text_1 = __importDefault(require("../../Atoms/Text/Text"));
|
|
25
25
|
var InsetCheckbox_1 = __importDefault(require("../../Atoms/InsetCheckbox/InsetCheckbox"));
|
26
26
|
var SupplierCard = function (_a) {
|
27
27
|
var SupplierLogo = _a.SupplierLogo, supplierName = _a.supplierName, badgeText = _a.badgeText, children = _a.children, CtaIcon = _a.CtaIcon, ctaText = _a.ctaText, dataTestId = _a.dataTestId, id = _a.id, includeCheckbox = _a.includeCheckbox, includeCta = _a.includeCta, invertCtaColors = _a.invertCtaColors, onClick = _a.onClick, onClickCta = _a.onClickCta, selected = _a.selected;
|
28
|
-
var
|
28
|
+
var isClickable = typeof onClick === 'function';
|
29
|
+
var styles = (0, makeSupplierCardStyling_1.default)({ isClickable: isClickable });
|
29
30
|
var ctaBoxInUse = Boolean(includeCta || ctaText);
|
30
|
-
return ((0, jsx_runtime_1.jsxs)(CardButton_1.default, __assign({ onClick: function () { return onClick({ id: id, selected: selected }); }, "data-testid": dataTestId, selected: !!selected }, { children: [includeCheckbox && includeCta === false && ((0, jsx_runtime_1.jsx)(InsetCheckbox_1.default, { checked: selected, customCss: styles.topRightCheckbox, dataTestId: dataTestId ? "".concat(dataTestId, "-topRightCheckbox") : undefined })), badgeText && ((0, jsx_runtime_1.jsx)(material_1.Box, __assign({ css: styles.badge }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ css: styles.badgeText, "data-testid": dataTestId ? "".concat(dataTestId, "-badge") : undefined }, { children: badgeText })) }))), (0, jsx_runtime_1.jsxs)(material_1.Grid, __assign({ container: true, direction: "row", alignItems: "center", css: styles.cardContainer }, { children: [(0, jsx_runtime_1.jsx)(material_1.Grid, __assign({ item: true, xs: 12, tabletSmall: 3 }, { children: (0, jsx_runtime_1.jsxs)(material_1.Grid, __assign({ container: true, alignItems: "center", justifyContent: "center", direction: "column", css: styles.logoGridContainer }, { children: [SupplierLogo && ((0, jsx_runtime_1.jsx)(material_1.Grid, __assign({ item: true, css: styles.logoGridItem }, { children: SupplierLogo }))), supplierName && ((0, jsx_runtime_1.jsx)(material_1.Grid, __assign({ item: true }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ id: "".concat(id, "-supplierName"), css: styles.supplierName, "data-testid": dataTestId ? "".concat(dataTestId, "-supplierName") : undefined }, { children: supplierName })) })))] })) })), (0, jsx_runtime_1.jsx)(material_1.Grid, __assign({ item: true, xs: 12, tabletSmall: ctaBoxInUse || includeCheckbox ? 6 : 8 }, { children: (0, jsx_runtime_1.jsx)(material_1.Grid, __assign({ container: true, direction: "column", justifyContent: "center", css: styles.textGridItem }, { children: (0, jsx_runtime_1.jsx)(material_1.Grid, __assign({ item: true, xs: 12 }, { children: (0, jsx_runtime_1.jsx)(Text_1.default, __assign({ id: "".concat(id, "-mainText"), align: "left", variant: "tickedList", "data-testid": dataTestId ? "".concat(dataTestId, "-mainText") : undefined }, { children: children })) })) })) })), (0, jsx_runtime_1.jsx)(material_1.Grid, __assign({ item: true, xs: 12, tabletSmall: ctaBoxInUse || includeCheckbox ? 3 : 0 }, { children: includeCta ? ((0, jsx_runtime_1.jsx)(material_1.Box, __assign({ css: styles.buttonContainer }, { children: (0, jsx_runtime_1.jsx)(Button_1.default, { label: ctaText || '', onClick: onClickCta, selected: includeCheckbox ? selected : undefined, Icon: CtaIcon, invertColors: invertCtaColors, dataTestId: dataTestId ? "".concat(dataTestId, "-cta") : undefined }) }))) : ((0, jsx_runtime_1.jsxs)(material_1.Grid, __assign({ container: true, alignItems: "center", justifyContent: "center" }, { children: [includeCheckbox && ((0, jsx_runtime_1.jsx)(material_1.Grid, __assign({ item: true }, { children: (0, jsx_runtime_1.jsx)(InsetCheckbox_1.default, { checked: selected, customCss: styles.rightCheckbox, dataTestId: dataTestId ? "".concat(dataTestId, "-rightCheckbox") : undefined }) }))), ctaText && ((0, jsx_runtime_1.jsx)(material_1.Grid, __assign({ item: true }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ css: styles.rightText, "data-testid": dataTestId ? "".concat(dataTestId, "-rightText") : undefined }, { children: ctaText })) })))] }))) }))] }))] })));
|
31
|
+
return ((0, jsx_runtime_1.jsx)("div", __assign({ css: styles.container }, { children: (0, jsx_runtime_1.jsxs)(CardButton_1.default, __assign({ onClick: isClickable ? function () { return onClick({ id: id, selected: selected }); } : undefined, "data-testid": dataTestId, selected: !!selected }, { children: [includeCheckbox && includeCta === false && ((0, jsx_runtime_1.jsx)(InsetCheckbox_1.default, { checked: selected, customCss: styles.topRightCheckbox, dataTestId: dataTestId ? "".concat(dataTestId, "-topRightCheckbox") : undefined })), badgeText && ((0, jsx_runtime_1.jsx)(material_1.Box, __assign({ css: styles.badge }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ css: styles.badgeText, "data-testid": dataTestId ? "".concat(dataTestId, "-badge") : undefined }, { children: badgeText })) }))), (0, jsx_runtime_1.jsxs)(material_1.Grid, __assign({ container: true, direction: "row", alignItems: "center", css: styles.cardContainer }, { children: [(0, jsx_runtime_1.jsx)(material_1.Grid, __assign({ item: true, xs: 12, tabletSmall: 3 }, { children: (0, jsx_runtime_1.jsxs)(material_1.Grid, __assign({ container: true, alignItems: "center", justifyContent: "center", direction: "column", css: styles.logoGridContainer }, { children: [SupplierLogo && ((0, jsx_runtime_1.jsx)(material_1.Grid, __assign({ item: true, css: styles.logoGridItem }, { children: SupplierLogo }))), supplierName && ((0, jsx_runtime_1.jsx)(material_1.Grid, __assign({ item: true }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ id: "".concat(id, "-supplierName"), css: styles.supplierName, "data-testid": dataTestId ? "".concat(dataTestId, "-supplierName") : undefined }, { children: supplierName })) })))] })) })), (0, jsx_runtime_1.jsx)(material_1.Grid, __assign({ item: true, xs: 12, tabletSmall: ctaBoxInUse || includeCheckbox ? 6 : 8 }, { children: (0, jsx_runtime_1.jsx)(material_1.Grid, __assign({ container: true, direction: "column", justifyContent: "center", css: styles.textGridItem }, { children: (0, jsx_runtime_1.jsx)(material_1.Grid, __assign({ item: true, xs: 12 }, { children: (0, jsx_runtime_1.jsx)(Text_1.default, __assign({ id: "".concat(id, "-mainText"), align: "left", variant: "tickedList", "data-testid": dataTestId ? "".concat(dataTestId, "-mainText") : undefined }, { children: children })) })) })) })), (0, jsx_runtime_1.jsx)(material_1.Grid, __assign({ item: true, xs: 12, tabletSmall: ctaBoxInUse || includeCheckbox ? 3 : 0 }, { children: includeCta ? ((0, jsx_runtime_1.jsx)(material_1.Box, __assign({ css: styles.buttonContainer }, { children: (0, jsx_runtime_1.jsx)(Button_1.default, { label: ctaText || '', onClick: onClickCta, selected: includeCheckbox ? selected : undefined, Icon: CtaIcon, invertColors: invertCtaColors, dataTestId: dataTestId ? "".concat(dataTestId, "-cta") : undefined }) }))) : ((0, jsx_runtime_1.jsxs)(material_1.Grid, __assign({ container: true, alignItems: "center", justifyContent: "center" }, { children: [includeCheckbox && ((0, jsx_runtime_1.jsx)(material_1.Grid, __assign({ item: true }, { children: (0, jsx_runtime_1.jsx)(InsetCheckbox_1.default, { checked: selected, customCss: styles.rightCheckbox, dataTestId: dataTestId ? "".concat(dataTestId, "-rightCheckbox") : undefined }) }))), ctaText && ((0, jsx_runtime_1.jsx)(material_1.Grid, __assign({ item: true }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ css: styles.rightText, "data-testid": dataTestId ? "".concat(dataTestId, "-rightText") : undefined }, { children: ctaText })) })))] }))) }))] }))] })) })));
|
31
32
|
};
|
32
33
|
SupplierCard.defaultProps = defaultProps_1.default;
|
33
34
|
exports.default = SupplierCard;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SupplierCard.js","sourceRoot":"","sources":["../../../../src/Components/Molecules/SupplierCard/SupplierCard.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,sCAAsC;AACtC,qEAA+C;AAE/C,iFAA2D;AAE3D,gEAA0C;AAC1C,0CAAsD;AACtD,sFAAgE;AAChE,+DAAyC;AACzC,0FAAoE;AAMpE,IAAM,YAAY,GAAqB,UAAC,EAevC;QAdC,YAAY,kBAAA,EACZ,YAAY,kBAAA,EACZ,SAAS,eAAA,EACT,QAAQ,cAAA,EACR,OAAO,aAAA,EACP,OAAO,aAAA,EACP,UAAU,gBAAA,EACV,EAAE,QAAA,EACF,eAAe,qBAAA,EACf,UAAU,gBAAA,EACV,eAAe,qBAAA,EACf,OAAO,aAAA,EACP,UAAU,gBAAA,EACV,QAAQ,cAAA;IAER,IAAM,MAAM,GAAG,IAAA,iCAAuB,
|
1
|
+
{"version":3,"file":"SupplierCard.js","sourceRoot":"","sources":["../../../../src/Components/Molecules/SupplierCard/SupplierCard.tsx"],"names":[],"mappings":"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"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import supplierLogos from '../../../Assets/SupplierLogos/supplierLogos';
|
3
|
-
|
3
|
+
type SupplierCardStoryType = React.FunctionComponent<{
|
4
4
|
ctaText: string;
|
5
5
|
badgeText?: string;
|
6
6
|
includeCheckbox: boolean;
|
@@ -14,6 +14,7 @@ declare type SupplierCardStoryType = React.FunctionComponent<{
|
|
14
14
|
id: string;
|
15
15
|
includeCta?: boolean;
|
16
16
|
invertCtaColors: boolean;
|
17
|
+
disableClick: boolean;
|
17
18
|
}>;
|
18
19
|
declare const SupplierCardStory: SupplierCardStoryType;
|
19
20
|
export default SupplierCardStory;
|
@@ -26,7 +26,7 @@ var icons = {
|
|
26
26
|
phone: (0, jsx_runtime_1.jsx)(icons_material_1.Phone, {}),
|
27
27
|
};
|
28
28
|
var SupplierCardStory = function (_a) {
|
29
|
-
var badgeText = _a.badgeText, includeCheckbox = _a.includeCheckbox, selected = _a.selected, supplierLogoName = _a.supplierLogoName, supplierNameText = _a.supplierNameText, bulletOneText = _a.bulletOneText, bulletTwoText = _a.bulletTwoText, bulletThreeText = _a.bulletThreeText, ctaIcon = _a.ctaIcon, ctaText = _a.ctaText, id = _a.id, includeCta = _a.includeCta, invertCtaColors = _a.invertCtaColors;
|
29
|
+
var badgeText = _a.badgeText, includeCheckbox = _a.includeCheckbox, selected = _a.selected, supplierLogoName = _a.supplierLogoName, supplierNameText = _a.supplierNameText, bulletOneText = _a.bulletOneText, bulletTwoText = _a.bulletTwoText, bulletThreeText = _a.bulletThreeText, ctaIcon = _a.ctaIcon, ctaText = _a.ctaText, id = _a.id, includeCta = _a.includeCta, invertCtaColors = _a.invertCtaColors, disableClick = _a.disableClick;
|
30
30
|
var _b = (0, react_1.useState)(selected), currentlySelected = _b[0], setCurrentlySelected = _b[1];
|
31
31
|
var handleClickCard = function (eventProps) {
|
32
32
|
(0, addon_actions_1.action)('Clicked Card')(eventProps);
|
@@ -42,7 +42,7 @@ var SupplierCardStory = function (_a) {
|
|
42
42
|
(0, react_1.useEffect)(function () {
|
43
43
|
setCurrentlySelected(selected);
|
44
44
|
}, [selected]);
|
45
|
-
return ((0, jsx_runtime_1.jsx)("div", __assign({ style: { maxWidth: 668 } }, { children: (0, jsx_runtime_1.jsx)(SupplierCard_1.default, __assign({ badgeText: badgeText, SupplierLogo: SupplierLogo, supplierName: supplierNameText, CtaIcon: icons[ctaIcon], ctaText: ctaText, id: id, includeCta: includeCta, invertCtaColors: invertCtaColors, onClick: handleClickCard, onClickCta: handleClickCta, selected: currentlySelected, includeCheckbox: includeCheckbox }, { children: (0, jsx_runtime_1.jsx)("span", { dangerouslySetInnerHTML: { __html: bulletList } }) })) })));
|
45
|
+
return ((0, jsx_runtime_1.jsx)("div", __assign({ style: { maxWidth: 668 } }, { children: (0, jsx_runtime_1.jsx)(SupplierCard_1.default, __assign({ badgeText: badgeText, SupplierLogo: SupplierLogo, supplierName: supplierNameText, CtaIcon: icons[ctaIcon], ctaText: ctaText, id: id, includeCta: includeCta, invertCtaColors: invertCtaColors, onClick: !disableClick ? handleClickCard : undefined, onClickCta: handleClickCta, selected: currentlySelected, includeCheckbox: includeCheckbox }, { children: (0, jsx_runtime_1.jsx)("span", { dangerouslySetInnerHTML: { __html: bulletList } }) })) })));
|
46
46
|
};
|
47
47
|
exports.default = SupplierCardStory;
|
48
48
|
//# sourceMappingURL=SupplierCardStory.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SupplierCardStory.js","sourceRoot":"","sources":["../../../../src/Components/Molecules/SupplierCard/SupplierCardStory.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,0DAAkD;AAClD,gEAA0C;AAE1C,+BAA4C;AAC5C,sDAAmD;AACnD,8FAAwE;AAExE,IAAM,KAAK,GAAG;IACZ,KAAK,EAAE,uBAAC,sBAAK,KAAG;IAChB,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,uBAAC,sBAAK,KAAG;CACjB,CAAC;
|
1
|
+
{"version":3,"file":"SupplierCardStory.js","sourceRoot":"","sources":["../../../../src/Components/Molecules/SupplierCard/SupplierCardStory.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,0DAAkD;AAClD,gEAA0C;AAE1C,+BAA4C;AAC5C,sDAAmD;AACnD,8FAAwE;AAExE,IAAM,KAAK,GAAG;IACZ,KAAK,EAAE,uBAAC,sBAAK,KAAG;IAChB,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,uBAAC,sBAAK,KAAG;CACjB,CAAC;AAmBF,IAAM,iBAAiB,GAA0B,UAAC,EAejD;QAdC,SAAS,eAAA,EACT,eAAe,qBAAA,EACf,QAAQ,cAAA,EACR,gBAAgB,sBAAA,EAChB,gBAAgB,sBAAA,EAChB,aAAa,mBAAA,EACb,aAAa,mBAAA,EACb,eAAe,qBAAA,EACf,OAAO,aAAA,EACP,OAAO,aAAA,EACP,EAAE,QAAA,EACF,UAAU,gBAAA,EACV,eAAe,qBAAA,EACf,YAAY,kBAAA;IAEN,IAAA,KAA4C,IAAA,gBAAQ,EAAC,QAAQ,CAAC,EAA7D,iBAAiB,QAAA,EAAE,oBAAoB,QAAsB,CAAC;IAErE,IAAM,eAAe,GAAG,UAAC,UAAuC;QAC9D,IAAA,sBAAM,EAAC,cAAc,CAAC,CAAC,UAAU,CAAC,CAAC;QACnC,IAAI,eAAe,EAAE;YACnB,oBAAoB,CAAC,CAAC,iBAAiB,CAAC,CAAC;SAC1C;IACH,CAAC,CAAC;IACF,IAAM,cAAc,GAAG;QACrB,IAAA,sBAAM,EAAC,aAAa,CAAC,EAAE,CAAC;IAC1B,CAAC,CAAC;IAEF,IAAM,UAAU,GAAG,gCAET,aAAa,8BACb,aAAa,8BACb,eAAe,yBAExB,CAAC;IAEF,IAAM,YAAY,GAChB,gBAAgB,KAAK,MAAM,CAAC,CAAC,CAAC,CAC5B,gCACE,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,uBAAa,CAAC,gBAAgB,CAAC,EACpC,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAC3C,CACH,CAAC,CAAC,CAAC,SAAS,CAAC;IAEhB,IAAA,iBAAS,EAAC;QACR,oBAAoB,CAAC,QAAQ,CAAC,CAAC;IACjC,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf,OAAO,CACL,yCAAK,KAAK,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,gBAC3B,uBAAC,sBAAY,aACX,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,gBAAgB,EAC9B,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,EACvB,OAAO,EAAE,OAAO,EAChB,EAAE,EAAE,EAAE,EACN,UAAU,EAAE,UAAU,EACtB,eAAe,EAAE,eAAe,EAChC,OAAO,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,EACpD,UAAU,EAAE,cAAc,EAC1B,QAAQ,EAAE,iBAAiB,EAC3B,eAAe,EAAE,eAAe,gBAEhC,iCAAM,uBAAuB,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,GAAI,IAC5C,IACX,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,iBAAiB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"defaultProps.js","sourceRoot":"","sources":["../../../../src/Components/Molecules/SupplierCard/defaultProps.ts"],"names":[],"mappings":";;AAAA,IAAM,YAAY,GAAG;IACnB,UAAU,EAAE,IAAI;IAChB,eAAe,EAAE,KAAK;IACtB,
|
1
|
+
{"version":3,"file":"defaultProps.js","sourceRoot":"","sources":["../../../../src/Components/Molecules/SupplierCard/defaultProps.ts"],"names":[],"mappings":";;AAAA,IAAM,YAAY,GAAG;IACnB,UAAU,EAAE,IAAI;IAChB,eAAe,EAAE,KAAK;IACtB,UAAU,EAAE,cAAa,CAAC;IAC1B,eAAe,EAAE,KAAK;IACtB,QAAQ,EAAE,KAAK;CAChB,CAAC;AAEF,kBAAe,YAAY,CAAC"}
|
@@ -1,15 +1,22 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
1
|
+
interface ISupplierCardStyleProps {
|
2
|
+
isClickable: boolean;
|
3
|
+
}
|
4
|
+
declare const makeSupplierCardStyling: ({ isClickable }: ISupplierCardStyleProps) => {
|
5
|
+
container: {
|
6
|
+
cursor?: string | undefined;
|
7
|
+
pointerEvents?: import("csstype").Property.PointerEvents | undefined;
|
8
|
+
};
|
9
|
+
badge: import("@emotion/utils").SerializedStyles;
|
10
|
+
badgeText: import("@emotion/utils").SerializedStyles;
|
11
|
+
supplierName: import("@emotion/utils").SerializedStyles;
|
12
|
+
supplierNameText: import("@emotion/utils").SerializedStyles;
|
13
|
+
buttonContainer: import("@emotion/utils").SerializedStyles;
|
14
|
+
cardContainer: import("@emotion/utils").SerializedStyles;
|
15
|
+
logoGridContainer: import("@emotion/utils").SerializedStyles;
|
16
|
+
logoGridItem: import("@emotion/utils").SerializedStyles;
|
17
|
+
rightCheckbox: import("@emotion/utils").SerializedStyles;
|
18
|
+
rightText: import("@emotion/utils").SerializedStyles;
|
19
|
+
textGridItem: import("@emotion/utils").SerializedStyles;
|
20
|
+
topRightCheckbox: import("@emotion/utils").SerializedStyles;
|
14
21
|
};
|
15
22
|
export default makeSupplierCardStyling;
|
@@ -1,14 +1,30 @@
|
|
1
1
|
"use strict";
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
3
|
+
__assign = Object.assign || function(t) {
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
5
|
+
s = arguments[i];
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
7
|
+
t[p] = s[p];
|
8
|
+
}
|
9
|
+
return t;
|
10
|
+
};
|
11
|
+
return __assign.apply(this, arguments);
|
12
|
+
};
|
2
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
14
|
var react_1 = require("@emotion/react");
|
4
15
|
var material_1 = require("@mui/material");
|
5
|
-
var makeSupplierCardStyling = function () {
|
6
|
-
var
|
7
|
-
var
|
16
|
+
var makeSupplierCardStyling = function (_a) {
|
17
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
18
|
+
var isClickable = _a.isClickable;
|
19
|
+
var _l = (0, react_1.useTheme)(), breakpoints = _l.breakpoints, mvf = _l.mvf;
|
8
20
|
var fontSize = mvf.fontSize, typography = mvf.typography, palette = mvf.palette, filters = mvf.filters, border = mvf.border;
|
9
21
|
var weight = typography.weight;
|
10
22
|
return {
|
11
|
-
|
23
|
+
container: __assign({}, (!isClickable && {
|
24
|
+
cursor: 'default',
|
25
|
+
pointerEvents: 'none',
|
26
|
+
})),
|
27
|
+
badge: (0, react_1.css)((_b = {
|
12
28
|
position: 'absolute',
|
13
29
|
top: 0,
|
14
30
|
left: 0,
|
@@ -16,21 +32,21 @@ var makeSupplierCardStyling = function () {
|
|
16
32
|
padding: '1px 14px',
|
17
33
|
borderTopLeftRadius: border.radius
|
18
34
|
},
|
19
|
-
|
35
|
+
_b[breakpoints.up('tabletSmall')] = {
|
20
36
|
padding: '5px 16px 3px 16px',
|
21
37
|
},
|
22
|
-
|
23
|
-
badgeText: (0, react_1.css)((
|
38
|
+
_b)),
|
39
|
+
badgeText: (0, react_1.css)((_c = {
|
24
40
|
fontFamily: typography.fontFamily,
|
25
41
|
letterSpacing: 'inherit',
|
26
42
|
color: palette.text.continueButtonTextColor,
|
27
43
|
fontSize: fontSize.mini,
|
28
44
|
fontWeight: weight.thick
|
29
45
|
},
|
30
|
-
|
46
|
+
_c[breakpoints.up('tabletSmall')] = {
|
31
47
|
fontSize: fontSize.small,
|
32
48
|
},
|
33
|
-
|
49
|
+
_c)),
|
34
50
|
supplierName: (0, react_1.css)({
|
35
51
|
color: palette.text.primaryTextColor,
|
36
52
|
}),
|
@@ -41,27 +57,27 @@ var makeSupplierCardStyling = function () {
|
|
41
57
|
fontSize: fontSize.medium,
|
42
58
|
fontWeight: weight.thick,
|
43
59
|
}),
|
44
|
-
buttonContainer: (0, react_1.css)((
|
60
|
+
buttonContainer: (0, react_1.css)((_d = {
|
45
61
|
maxWidth: 230,
|
46
62
|
height: 44,
|
47
63
|
margin: '10px auto',
|
48
64
|
paddingLeft: 10,
|
49
65
|
paddingRight: 10
|
50
66
|
},
|
51
|
-
|
67
|
+
_d[breakpoints.up('tabletSmall')] = {
|
52
68
|
height: 55,
|
53
69
|
},
|
54
|
-
|
55
|
-
cardContainer: (0, react_1.css)((
|
70
|
+
_d)),
|
71
|
+
cardContainer: (0, react_1.css)((_e = {
|
56
72
|
minHeight: 260,
|
57
73
|
paddingTop: 10,
|
58
74
|
paddingBottom: 10
|
59
75
|
},
|
60
|
-
|
76
|
+
_e[breakpoints.up('tabletSmall')] = {
|
61
77
|
minHeight: 150,
|
62
78
|
},
|
63
|
-
|
64
|
-
logoGridContainer: (0, react_1.css)((
|
79
|
+
_e)),
|
80
|
+
logoGridContainer: (0, react_1.css)((_f = {
|
65
81
|
height: '100%',
|
66
82
|
margin: 'auto',
|
67
83
|
paddingBottom: 10,
|
@@ -70,26 +86,26 @@ var makeSupplierCardStyling = function () {
|
|
70
86
|
borderBottomColor: (0, material_1.lighten)(palette.component.answerUnselectedColor, filters.lighten.medium),
|
71
87
|
borderBottomWidth: border.width.thin
|
72
88
|
},
|
73
|
-
|
89
|
+
_f[breakpoints.up('tabletSmall')] = {
|
74
90
|
borderBottom: 'none',
|
75
91
|
padding: 0,
|
76
92
|
minHeight: 120,
|
77
93
|
},
|
78
|
-
|
94
|
+
_f)),
|
79
95
|
logoGridItem: (0, react_1.css)({
|
80
96
|
width: 100,
|
81
97
|
maxHeight: 50,
|
82
98
|
}),
|
83
|
-
rightCheckbox: (0, react_1.css)((
|
99
|
+
rightCheckbox: (0, react_1.css)((_g = {
|
84
100
|
display: 'none'
|
85
101
|
},
|
86
|
-
|
102
|
+
_g[breakpoints.up('tabletSmall')] = {
|
87
103
|
display: 'block',
|
88
104
|
margin: 0,
|
89
105
|
padding: 0,
|
90
106
|
},
|
91
|
-
|
92
|
-
rightText: (0, react_1.css)((
|
107
|
+
_g)),
|
108
|
+
rightText: (0, react_1.css)((_h = {
|
93
109
|
fontFamily: typography.fontFamily,
|
94
110
|
letterSpacing: 'inherit',
|
95
111
|
color: palette.component.answerSelectedColor,
|
@@ -97,18 +113,18 @@ var makeSupplierCardStyling = function () {
|
|
97
113
|
fontWeight: weight.thick,
|
98
114
|
textAlign: 'center'
|
99
115
|
},
|
100
|
-
|
116
|
+
_h[breakpoints.up('tabletSmall')] = {
|
101
117
|
fontSize: fontSize.medium,
|
102
118
|
},
|
103
|
-
|
104
|
-
textGridItem: (0, react_1.css)((
|
119
|
+
_h)),
|
120
|
+
textGridItem: (0, react_1.css)((_j = {
|
105
121
|
width: '100%',
|
106
122
|
height: '100%',
|
107
123
|
margin: '10px auto',
|
108
124
|
paddingLeft: 10,
|
109
125
|
paddingRight: 10
|
110
126
|
},
|
111
|
-
|
127
|
+
_j[breakpoints.up('tabletSmall')] = {
|
112
128
|
paddingLeft: 10,
|
113
129
|
paddingRight: 5,
|
114
130
|
borderLeft: 'solid',
|
@@ -116,8 +132,8 @@ var makeSupplierCardStyling = function () {
|
|
116
132
|
borderLeftWidth: border.width.thin,
|
117
133
|
minHeight: 120,
|
118
134
|
},
|
119
|
-
|
120
|
-
topRightCheckbox: (0, react_1.css)((
|
135
|
+
_j)),
|
136
|
+
topRightCheckbox: (0, react_1.css)((_k = {
|
121
137
|
position: 'absolute',
|
122
138
|
top: 0,
|
123
139
|
right: 0,
|
@@ -125,10 +141,10 @@ var makeSupplierCardStyling = function () {
|
|
125
141
|
padding: 0,
|
126
142
|
display: 'block'
|
127
143
|
},
|
128
|
-
|
144
|
+
_k[breakpoints.up('tabletSmall')] = {
|
129
145
|
display: 'none',
|
130
146
|
},
|
131
|
-
|
147
|
+
_k)),
|
132
148
|
};
|
133
149
|
};
|
134
150
|
exports.default = makeSupplierCardStyling;
|