@sellout/ui 0.0.300 → 0.0.301
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/Colors.d.ts +15 -1
- package/build/Colors.js +14 -0
- package/build/Colors.js.map +1 -1
- package/build/components/AddressSearchDropdown.d.ts +8 -2
- package/build/components/AddressSearchDropdown.js +2 -4
- package/build/components/AddressSearchDropdown.js.map +1 -1
- package/build/components/Button.d.ts +19 -2
- package/build/components/Button.js +76 -11
- package/build/components/Button.js.map +1 -1
- package/build/components/CodeInput.d.ts +14 -1
- package/build/components/CodeInput.js +30 -21
- package/build/components/CodeInput.js.map +1 -1
- package/build/components/Counter.js +6 -8
- package/build/components/Counter.js.map +1 -1
- package/build/components/Dropdown.d.ts +12 -1
- package/build/components/Dropdown.js +15 -11
- package/build/components/Dropdown.js.map +1 -1
- package/build/components/Flex.d.ts +2 -0
- package/build/components/Flex.js +3 -3
- package/build/components/Flex.js.map +1 -1
- package/build/components/Icon.d.ts +11 -1
- package/build/components/Icon.js +6 -6
- package/build/components/Icon.js.map +1 -1
- package/build/components/Input.d.ts +29 -3
- package/build/components/Input.js +38 -25
- package/build/components/Input.js.map +1 -1
- package/build/components/Label.d.ts +7 -0
- package/build/components/Label.js +6 -6
- package/build/components/Label.js.map +1 -1
- package/build/components/Loader.js.map +1 -1
- package/build/components/MaxLength.d.ts +1 -0
- package/build/components/MaxLength.js +4 -1
- package/build/components/MaxLength.js.map +1 -1
- package/build/components/PhoneNumberInput.d.ts +15 -1
- package/build/components/PhoneNumberInput.js +14 -6
- package/build/components/PhoneNumberInput.js.map +1 -1
- package/build/components/Product.d.ts +7 -2
- package/build/components/Product.js +47 -34
- package/build/components/Product.js.map +1 -1
- package/build/components/SearchDropdown.d.ts +8 -1
- package/build/components/SearchDropdown.js +12 -15
- package/build/components/SearchDropdown.js.map +1 -1
- package/build/components/SvgIcons.d.ts +15 -0
- package/build/components/SvgIcons.js +41 -0
- package/build/components/SvgIcons.js.map +1 -0
- package/build/components/SvgRendrer.d.ts +5 -0
- package/build/components/SvgRendrer.js +21 -0
- package/build/components/SvgRendrer.js.map +1 -0
- package/build/components/TextButton.d.ts +2 -0
- package/build/components/TextButton.js +6 -6
- package/build/components/TextButton.js.map +1 -1
- package/build/components/UserInfo.d.ts +10 -2
- package/build/components/UserInfo.js +9 -7
- package/build/components/UserInfo.js.map +1 -1
- package/build/components/ValidationError.d.ts +1 -0
- package/build/components/ValidationError.js +4 -1
- package/build/components/ValidationError.js.map +1 -1
- package/build/index.d.ts +2 -1
- package/build/index.js +1 -0
- package/build/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -14,6 +14,8 @@ declare type TextButtonProps = {
|
|
|
14
14
|
iconRotation?: number;
|
|
15
15
|
color?: Colors;
|
|
16
16
|
textWithoutLink?: string | React.ReactNode;
|
|
17
|
+
fontFamily?: string;
|
|
18
|
+
iconMargin?: string;
|
|
17
19
|
};
|
|
18
20
|
declare const TextButton: React.FC<TextButtonProps>;
|
|
19
21
|
export default TextButton;
|
|
@@ -11,8 +11,8 @@ var TextButtonSizes;
|
|
|
11
11
|
TextButtonSizes["Small"] = "Small";
|
|
12
12
|
})(TextButtonSizes || (TextButtonSizes = {}));
|
|
13
13
|
var Container = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n align-items: center;\n margin: ", ";\n"], ["\n display: flex;\n flex-direction: row;\n align-items: center;\n margin: ", ";\n"])), function (props) { return props.margin; });
|
|
14
|
-
var Text = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n font-size: ", ";\n color: ", ";\n text-decoration: underline;\n cursor: pointer;\n font-weight: 500;\n &:hover {\n text-decoration: none;\n }\n"], ["\n font-size: ",
|
|
15
|
-
";\n color: ", ";\n text-decoration: underline;\n cursor: pointer;\n font-weight: 500;\n &:hover {\n text-decoration: none;\n }\n"])), function (props) {
|
|
14
|
+
var Text = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n font-size: ", ";\n color: ", ";\n font-family:", ";\n text-decoration: underline;\n cursor: pointer;\n font-weight: 500;\n &:hover {\n text-decoration: none;\n }\n"], ["\n font-size: ",
|
|
15
|
+
";\n color: ", ";\n font-family:", ";\n text-decoration: underline;\n cursor: pointer;\n font-weight: 500;\n &:hover {\n text-decoration: none;\n }\n"])), function (props) {
|
|
16
16
|
if (props.size === TextButtonSizes.Large)
|
|
17
17
|
return "1.8rem";
|
|
18
18
|
if (props.size === TextButtonSizes.Regular)
|
|
@@ -20,11 +20,11 @@ var Text = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObje
|
|
|
20
20
|
if (props.size === TextButtonSizes.Small)
|
|
21
21
|
return "1.2rem";
|
|
22
22
|
return "1.4rem";
|
|
23
|
-
}, function (props) { return props.color; });
|
|
23
|
+
}, function (props) { return props.color; }, function (props) { return props.fontFamily; });
|
|
24
24
|
var TextWithoutLink = styled.span(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n padding-right: 2px;\n"], ["\n padding-right: 2px;\n"])));
|
|
25
25
|
var InnerContainer = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n}"], ["\n display: flex;\n align-items: center;\n}"])));
|
|
26
26
|
var TextButton = function (_a) {
|
|
27
|
-
var children = _a.children, _b = _a.size, size = _b === void 0 ? TextButtonSizes.Regular : _b, onClick = _a.onClick, margin = _a.margin, icon = _a.icon, iconRotation = _a.iconRotation, _c = _a.color, color = _c === void 0 ? Colors.Orange : _c, textWithoutLink = _a.textWithoutLink;
|
|
27
|
+
var children = _a.children, _b = _a.size, size = _b === void 0 ? TextButtonSizes.Regular : _b, onClick = _a.onClick, margin = _a.margin, icon = _a.icon, iconRotation = _a.iconRotation, _c = _a.color, color = _c === void 0 ? Colors.Orange : _c, textWithoutLink = _a.textWithoutLink, fontFamily = _a.fontFamily, iconMargin = _a.iconMargin;
|
|
28
28
|
var iconSize = (function () {
|
|
29
29
|
if (size === TextButtonSizes.Large) {
|
|
30
30
|
return 14;
|
|
@@ -39,9 +39,9 @@ var TextButton = function (_a) {
|
|
|
39
39
|
})();
|
|
40
40
|
return (React.createElement(Container, { margin: margin },
|
|
41
41
|
React.createElement(InnerContainer, { onClick: onClick ? onClick : function () { } },
|
|
42
|
-
icon && (React.createElement(Icon, { icon: icon, size: iconSize, color: color, margin: "0 7px 0 0", rotation: iconRotation })),
|
|
42
|
+
icon && (React.createElement(Icon, { icon: icon, size: iconSize, color: color, margin: iconMargin || "0 7px 0 0", rotation: iconRotation })),
|
|
43
43
|
React.createElement(TextWithoutLink, null, textWithoutLink),
|
|
44
|
-
React.createElement(Text, { size: size, color: color }, children))));
|
|
44
|
+
React.createElement(Text, { size: size, color: color, fontFamily: fontFamily }, children))));
|
|
45
45
|
};
|
|
46
46
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
47
47
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextButton.js","sources":["../../src/components/TextButton.tsx"],"sourcesContent":["import React from \"react\";\nimport styled from \"styled-components\";\nimport { Colors } from '../Colors';\nimport Icon from './Icon';\n\nexport enum TextButtonSizes {\n Large = \"Large\",\n Regular = \"Regular\",\n Small = \"Small\",\n}\n\ntype ContainerProps = {\n margin?: string;\n};\n\nconst Container = styled.div<ContainerProps>`\n display: flex;\n flex-direction: row;\n align-items: center;\n margin: ${(props) => props.margin};\n`;\n\ntype TextProps = {\n size: TextButtonSizes;\n color: Colors;\n};\n\nconst Text = styled.div<TextProps>`\n font-size: ${(props) => {\n if (props.size === TextButtonSizes.Large) return \"1.8rem\";\n if (props.size === TextButtonSizes.Regular) return \"1.4rem\";\n if (props.size === TextButtonSizes.Small) return \"1.2rem\";\n return \"1.4rem\";\n }};\n color: ${props => props.color};\n text-decoration: underline;\n cursor: pointer;\n font-weight: 500;\n &:hover {\n text-decoration: none;\n }\n`;\n\nconst TextWithoutLink = styled.span`\n padding-right: 2px;\n`;\n\nconst InnerContainer = styled.div`\n display: flex;\n align-items: center;\n}`;\n\ntype TextButtonProps = {\n children: string | React.ReactNode;\n size?: TextButtonSizes;\n onClick?: (event: React.MouseEvent<HTMLElement>) => void;\n margin?: string;\n icon?: any;\n iconRotation?: number;\n color?: Colors;\n textWithoutLink?:string| React.ReactNode;\n};\n\nconst TextButton: React.FC<TextButtonProps> = ({\n children,\n size = TextButtonSizes.Regular,\n onClick,\n margin,\n icon,\n iconRotation,\n color = Colors.Orange,\n textWithoutLink,\n}) => {\n\n const iconSize = (() => {\n if (size === TextButtonSizes.Large) {\n return 14;\n }\n if (size === TextButtonSizes.Regular) {\n return 12;\n }\n if (size === TextButtonSizes.Small) {\n return 10;\n }\n return 12;\n })();\n\n return (\n <Container margin={margin}>\n <InnerContainer onClick={onClick ? onClick : () => { }}>\n {icon && (\n <Icon\n icon={icon}\n size={iconSize}\n color={color}\n margin
|
|
1
|
+
{"version":3,"file":"TextButton.js","sources":["../../src/components/TextButton.tsx"],"sourcesContent":["import React from \"react\";\nimport styled from \"styled-components\";\nimport { Colors } from '../Colors';\nimport Icon from './Icon';\n\nexport enum TextButtonSizes {\n Large = \"Large\",\n Regular = \"Regular\",\n Small = \"Small\",\n}\n\ntype ContainerProps = {\n margin?: string;\n};\n\nconst Container = styled.div<ContainerProps>`\n display: flex;\n flex-direction: row;\n align-items: center;\n margin: ${(props) => props.margin};\n`;\n\ntype TextProps = {\n size: TextButtonSizes;\n color: Colors;\n fontFamily?:string;\n};\n\nconst Text = styled.div<TextProps>`\n font-size: ${(props) => {\n if (props.size === TextButtonSizes.Large) return \"1.8rem\";\n if (props.size === TextButtonSizes.Regular) return \"1.4rem\";\n if (props.size === TextButtonSizes.Small) return \"1.2rem\";\n return \"1.4rem\";\n }};\n color: ${props => props.color};\n font-family:${props => props.fontFamily};\n text-decoration: underline;\n cursor: pointer;\n font-weight: 500;\n &:hover {\n text-decoration: none;\n }\n`;\n\nconst TextWithoutLink = styled.span`\n padding-right: 2px;\n`;\n\nconst InnerContainer = styled.div`\n display: flex;\n align-items: center;\n}`;\n\ntype TextButtonProps = {\n children: string | React.ReactNode;\n size?: TextButtonSizes;\n onClick?: (event: React.MouseEvent<HTMLElement>) => void;\n margin?: string;\n icon?: any;\n iconRotation?: number;\n color?: Colors;\n textWithoutLink?:string| React.ReactNode;\n fontFamily?:string;\n iconMargin?:string;\n};\n\nconst TextButton: React.FC<TextButtonProps> = ({\n children,\n size = TextButtonSizes.Regular,\n onClick,\n margin,\n icon,\n iconRotation,\n color = Colors.Orange,\n textWithoutLink,\n fontFamily,\n iconMargin\n}) => {\n\n const iconSize = (() => {\n if (size === TextButtonSizes.Large) {\n return 14;\n }\n if (size === TextButtonSizes.Regular) {\n return 12;\n }\n if (size === TextButtonSizes.Small) {\n return 10;\n }\n return 12;\n })();\n\n return (\n <Container margin={margin}>\n <InnerContainer onClick={onClick ? onClick : () => { }}>\n {icon && (\n <Icon\n icon={icon}\n size={iconSize}\n color={color}\n margin={iconMargin ||\"0 7px 0 0\"}\n rotation={iconRotation}\n />\n )}\n <TextWithoutLink>{textWithoutLink}</TextWithoutLink>\n <Text size={size} color={color} fontFamily={fontFamily}>\n {children}\n </Text>\n </InnerContainer>\n </Container>\n );\n};\n\nexport default TextButton;\n"],"names":[],"mappings":";;;;;;IAKY,gBAIX;AAJD,CAAA,UAAY,eAAe,EAAA;AACzB,IAAA,eAAA,CAAA,OAAA,CAAA,GAAA,OAAe,CAAA;AACf,IAAA,eAAA,CAAA,SAAA,CAAA,GAAA,SAAmB,CAAA;AACnB,IAAA,eAAA,CAAA,OAAA,CAAA,GAAA,OAAe,CAAA;AACjB,CAAC,EAJW,eAAe,KAAf,eAAe,GAI1B,EAAA,CAAA,CAAA,CAAA;AAMD,IAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAgB,gBAAA,KAAA,gBAAA,GAAA,oBAAA,CAAA,CAAA,gFAAA,EAAA,KAAA,CAAA,EAAA,CAAA,gFAIhC,EAAuB,KAClC,CAAA,CAAA,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;AACJ,EAAE;;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
3
|
export declare const Details: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
-
export declare const Name: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").
|
|
5
|
-
export declare const Email: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").
|
|
4
|
+
export declare const Name: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, NameProps>> & string;
|
|
5
|
+
export declare const Email: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, EmailProps>> & string;
|
|
6
6
|
export declare enum UserInfoSizeEnum {
|
|
7
7
|
Regular = "Regular",
|
|
8
8
|
Large = "Large"
|
|
@@ -11,6 +11,14 @@ declare type UserInfoPropTypes = {
|
|
|
11
11
|
user?: any;
|
|
12
12
|
size?: UserInfoSizeEnum;
|
|
13
13
|
invert?: boolean;
|
|
14
|
+
nameColor?: string;
|
|
15
|
+
fontFamily?: string;
|
|
16
|
+
};
|
|
17
|
+
declare type NameProps = {
|
|
18
|
+
fontFamily?: string;
|
|
19
|
+
};
|
|
20
|
+
declare type EmailProps = {
|
|
21
|
+
fontFamily?: string;
|
|
14
22
|
};
|
|
15
23
|
declare const UserInfo: React.FC<UserInfoPropTypes>;
|
|
16
24
|
export default UserInfo;
|
|
@@ -6,24 +6,26 @@ import UserImage from './UserImage.js';
|
|
|
6
6
|
|
|
7
7
|
var Container = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
|
|
8
8
|
var Details = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n"], ["\n display: flex;\n flex-direction: column;\n justify-content: center;\n"])));
|
|
9
|
-
var Name = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n font-size: 1.4rem;\n color: ", ";\n font-weight: 600;\n"], ["\n font-size: 1.4rem;\n color: ", ";\n font-weight: 600;\n"])), Colors.Grey1);
|
|
10
|
-
var Email = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n font-size: 1.2rem;\n color: ", ";\n"], ["\n font-size: 1.2rem;\n color: ", ";\n"])), Colors.
|
|
11
|
-
var PhoneNumber = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n font-size: 1.2rem;\n color: ", ";\n"], ["\n font-size: 1.2rem;\n color: ", ";\n"])), Colors.
|
|
9
|
+
var Name = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n font-size: 1.4rem;\n color: ", ";\n font-weight: 600;\n font-family:", ";\n"], ["\n font-size: 1.4rem;\n color: ", ";\n font-weight: 600;\n font-family:", ";\n"])), function (props) { return props.color || Colors.Grey1; }, function (props) { return props.fontFamily; });
|
|
10
|
+
var Email = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n font-size: 1.2rem;\n color: ", ";\n font-family:", ";\n"], ["\n font-size: 1.2rem;\n color: ", ";\n font-family:", ";\n"])), function (props) { return props.color || Colors.Grey1; }, function (props) { return props.fontFamily; });
|
|
11
|
+
var PhoneNumber = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n font-size: 1.2rem;\n color: ", ";\n font-family:", ";\n"], ["\n font-size: 1.2rem;\n color: ", ";\n font-family:", ";\n"])), function (props) { return props.color || Colors.Grey1; }, function (props) { return props.fontFamily; });
|
|
12
12
|
var UserInfoSizeEnum;
|
|
13
13
|
(function (UserInfoSizeEnum) {
|
|
14
14
|
UserInfoSizeEnum["Regular"] = "Regular";
|
|
15
15
|
UserInfoSizeEnum["Large"] = "Large";
|
|
16
16
|
})(UserInfoSizeEnum || (UserInfoSizeEnum = {}));
|
|
17
17
|
var UserInfo = function (_a) {
|
|
18
|
-
var _b = _a.user, user = _b === void 0 ? {} : _b, _c = _a.size, size = _c === void 0 ? UserInfoSizeEnum.Regular : _c, _d = _a.invert, invert = _d === void 0 ? false : _d;
|
|
18
|
+
var _b = _a.user, user = _b === void 0 ? {} : _b, _c = _a.size, size = _c === void 0 ? UserInfoSizeEnum.Regular : _c, _d = _a.invert, invert = _d === void 0 ? false : _d, nameColor = _a.nameColor, fontFamily = _a.fontFamily;
|
|
19
19
|
var firstName = user.firstName, lastName = user.lastName, email = user.email, phoneNumber = user.phoneNumber, _e = user.userProfile, _f = (_e === void 0 ? {} : _e).imageUrl, imageUrl = _f === void 0 ? '' : _f;
|
|
20
20
|
var isLarge = size === UserInfoSizeEnum.Large;
|
|
21
|
-
var UserName = React.memo(function () { return React.createElement(Name,
|
|
21
|
+
var UserName = React.memo(function () { return React.createElement(Name, { color: nameColor, fontFamily: fontFamily },
|
|
22
22
|
firstName,
|
|
23
23
|
"\u00A0",
|
|
24
24
|
lastName); });
|
|
25
|
-
var UserEmail = React.memo(function () { return React.createElement(Email,
|
|
26
|
-
var UserPhoneNumber = React.memo(function () { return React.createElement(PhoneNumber,
|
|
25
|
+
var UserEmail = React.memo(function () { return React.createElement(Email, { color: nameColor, fontFamily: fontFamily }, email); });
|
|
26
|
+
var UserPhoneNumber = React.memo(function () { return React.createElement(PhoneNumber, { fontFamily: fontFamily, color: nameColor },
|
|
27
|
+
phoneNumber,
|
|
28
|
+
" "); });
|
|
27
29
|
var height = isLarge ? '50px' : '36px';
|
|
28
30
|
return (React.createElement(Container, null,
|
|
29
31
|
React.createElement(UserImage, { imageUrl: imageUrl, height: height, size: isLarge ? "1.8rem" : "1.4rem", firstName: firstName, lastName: lastName, invert: invert }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserInfo.js","sources":["../../src/components/UserInfo.tsx"],"sourcesContent":["import React from 'react';\nimport styled from 'styled-components';\nimport { Colors } from \"../Colors\";\nimport UserImage from './UserImage';\n\nexport const Container = styled.div`\n display: flex;\n`;\n\nexport const Details = styled.div`\n display: flex;\n flex-direction: column;\n justify-content: center;\n`;\n\nexport const Name = styled.div
|
|
1
|
+
{"version":3,"file":"UserInfo.js","sources":["../../src/components/UserInfo.tsx"],"sourcesContent":["import React from 'react';\nimport styled from 'styled-components';\nimport { Colors } from \"../Colors\";\nimport UserImage from './UserImage';\n\nexport const Container = styled.div`\n display: flex;\n`;\n\nexport const Details = styled.div`\n display: flex;\n flex-direction: column;\n justify-content: center;\n`;\n\nexport const Name = styled.div<NameProps>`\n font-size: 1.4rem;\n color: ${(props) => props.color || Colors.Grey1};\n font-weight: 600;\n font-family:${(props) => props.fontFamily};\n`;\n\nexport const Email = styled.div<EmailProps>`\n font-size: 1.2rem;\n color: ${(props) => props.color || Colors.Grey1};\n font-family:${(props) => props.fontFamily};\n`;\n\nconst PhoneNumber = styled.div<PhoneNumberProps>`\n font-size: 1.2rem;\n color: ${(props) => props.color || Colors.Grey1};\n font-family:${(props) => props.fontFamily};\n`;\n\nexport enum UserInfoSizeEnum {\n Regular = 'Regular',\n Large = 'Large',\n};\n\ntype UserInfoPropTypes = {\n user?: any;\n size?: UserInfoSizeEnum;\n invert?: boolean;\n nameColor?:string;\n fontFamily?:string;\n};\ntype NameProps = {\n fontFamily?:string;\n};\ntype EmailProps = {\n fontFamily?:string;\n};\ntype PhoneNumberProps = {\n fontFamily?:string;\n};\nconst UserInfo: React.FC<UserInfoPropTypes> = ({\n user = {},\n size = UserInfoSizeEnum.Regular,\n invert = false,\n nameColor,\n fontFamily\n}) => {\n const {\n firstName,\n lastName,\n email,\n phoneNumber,\n userProfile: {\n imageUrl = '',\n } = {},\n } = user;\n const isLarge = size === UserInfoSizeEnum.Large;\n const UserName = React.memo(() => <Name color={nameColor} fontFamily={fontFamily}>{firstName} {lastName}</Name>);\n const UserEmail = React.memo(() => <Email color={nameColor} fontFamily={fontFamily}>{email}</Email>);\n const UserPhoneNumber = React.memo(() => <PhoneNumber fontFamily={fontFamily} color={nameColor}>{phoneNumber} </PhoneNumber>);\n const height = isLarge ? '50px' : '36px';\n return (\n <Container>\n <UserImage\n imageUrl={imageUrl}\n height={height}\n size={isLarge ? \"1.8rem\" : \"1.4rem\"}\n firstName={firstName}\n lastName={lastName}\n invert={invert}\n />\n <Details>\n {firstName && lastName && <UserName />}\n {email && <UserEmail />}\n {isLarge && phoneNumber && <UserPhoneNumber />}\n </Details>\n </Container>\n );\n}\n\nexport default UserInfo;\n\n"],"names":[],"mappings":";;;;;;AAKa,IAAA,SAAS,GAAG,MAAM,CAAC,GAAG,CAAA,gBAAA,KAAA,gBAAA,GAAA,oBAAA,CAAA,CAAA,sBAAA,CAAA,EAAA,CAAA,sBAElC,CAAA,CAAA,CAAA,EAAC;AAEW,IAAA,OAAO,GAAG,MAAM,CAAC,GAAG,CAAA,gBAAA,KAAA,gBAAA,GAAA,oBAAA,CAAA,CAAA,6EAAA,CAAA,EAAA,CAAA,6EAIhC,CAAA,CAAA,CAAA,EAAC;AAEW,IAAA,IAAI,GAAG,MAAM,CAAC,GAAG,CAAA,gBAAA,KAAA,gBAAA,GAAA,oBAAA,CAAA,CAAA,mCAAA,EAAA,wCAAA,EAAA,KAAA,CAAA,EAAA,CAAW,mCAE9B,EAAsC,wCAEjC,EAA2B,KAC1C,KAHU,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,CAAA,EAAA,EAEjC,UAAC,KAAK,EAAA,EAAK,OAAA,KAAK,CAAC,UAAU,CAAhB,EAAgB,EACzC;AAEW,IAAA,KAAK,GAAG,MAAM,CAAC,GAAG,CAAA,gBAAA,KAAA,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AAQ,GAAG,QAAQ,EACnC,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,CAAA;AACF,QAAA,KAAA,CAAA,aAAA,CAAC,OAAO,EAAA,IAAA;AACL,YAAA,SAAS,IAAI,QAAQ,IAAI,KAAA,CAAA,aAAA,CAAC,QAAQ,EAAG,IAAA,CAAA;YACrC,KAAK,IAAI,KAAC,CAAA,aAAA,CAAA,SAAS,EAAG,IAAA,CAAA;YACtB,OAAO,IAAI,WAAW,IAAI,KAAA,CAAA,aAAA,CAAC,eAAe,EAAG,IAAA,CAAA,CACtC,CACA,EACZ;AACJ,EAAC;;;;;"}
|
|
@@ -10,7 +10,10 @@ var ValidationErrorAbsolute = styled.div(templateObject_2 || (templateObject_2 =
|
|
|
10
10
|
var ValidationErrorBox = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background: ", ";\n border: 1px solid ", ";\n box-sizing: border-box;\n box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.1);\n border-radius: 10px;\n display: flex;\n align-items: center;\n margin-top: 5px;\n padding: 10px 15px;\n width: fit-content;\n justify-content: center;\n"], ["\n background: ", ";\n border: 1px solid ", ";\n box-sizing: border-box;\n box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.1);\n border-radius: 10px;\n display: flex;\n align-items: center;\n margin-top: 5px;\n padding: 10px 15px;\n width: fit-content;\n justify-content: center;\n"])), Colors.White, Colors.Grey5);
|
|
11
11
|
var ValidationErrorText = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n margin-left: 10px;\n font-weight: 500;\n color: ", ";\n"], ["\n margin-left: 10px;\n font-weight: 500;\n color: ", ";\n"])), Colors.Grey2);
|
|
12
12
|
var ValidationError = function (_a) {
|
|
13
|
-
var validationError = _a.validationError;
|
|
13
|
+
var validationError = _a.validationError, disableValidationErrorBox = _a.disableValidationErrorBox;
|
|
14
|
+
if (disableValidationErrorBox) {
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
14
17
|
return (React.createElement(ValidationErrorRelative, null,
|
|
15
18
|
React.createElement(ValidationErrorAbsolute, null,
|
|
16
19
|
React.createElement(FadeIn, null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValidationError.js","sources":["../../src/components/ValidationError.tsx"],"sourcesContent":["import React from 'react';\nimport styled from 'styled-components';\nimport { Colors } from \"../Colors\";\nimport Icon, { Icons } from './Icon';\nimport { FadeIn } from './Motion';\n\nconst ValidationErrorRelative = styled.div`\n position: relative;\n`;\n\nconst ValidationErrorAbsolute = styled.div`\n position: absolute;\n z-index: 700;\n width: fit-content;\n height: 50px;\n`;\n\nconst ValidationErrorBox = styled.div`\n background: ${Colors.White};\n border: 1px solid ${Colors.Grey5};\n box-sizing: border-box;\n box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.1);\n border-radius: 10px;\n display: flex;\n align-items: center;\n margin-top: 5px;\n padding: 10px 15px;\n width: fit-content;\n justify-content: center;\n`;\n\nconst ValidationErrorText = styled.div`\n margin-left: 10px;\n font-weight: 500;\n color: ${Colors.Grey2};\n`;\n\ntype ValidationErrorProps = {\n validationError: string;\n}\n\nconst ValidationError: React.FC<ValidationErrorProps> = ({ validationError}) => {\n return (\n <ValidationErrorRelative>\n <ValidationErrorAbsolute>\n <FadeIn>\n <ValidationErrorBox>\n <Icon icon={Icons.Warning} size={16} color={Colors.Yellow} />\n <ValidationErrorText>{validationError}</ValidationErrorText>\n </ValidationErrorBox>\n </FadeIn>\n </ValidationErrorAbsolute>\n </ValidationErrorRelative>\n );\n};\n\nexport default ValidationError;\n"],"names":[],"mappings":";;;;;;;AAMA,IAAM,uBAAuB,GAAG,MAAM,CAAC,GAAG,CAAA,gBAAA,KAAA,gBAAA,GAAA,oBAAA,CAAA,CAAA,2BAAA,CAAA,EAAA,CAAA,2BAEzC,IAAA,CAAC;AAEF,IAAM,uBAAuB,GAAG,MAAM,CAAC,GAAG,CAAA,gBAAA,KAAA,gBAAA,GAAA,oBAAA,CAAA,CAAA,oFAAA,CAAA,EAAA,CAAA,oFAKzC,IAAA,CAAC;AAEF,IAAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAAA,gBAAA,KAAA,gBAAA,GAAA,oBAAA,CAAA,CAAA,kBAAA,EAAA,yBAAA,EAAA,iPAAA,CAAA,EAAA,CAAA,kBACrB,EAAY,yBACN,EAAY,iPAUjC,CAXe,CAAA,CAAA,EAAA,MAAM,CAAC,KAAK,EACN,MAAM,CAAC,KAAK,CAUjC,CAAC;AAEF,IAAM,mBAAmB,GAAG,MAAM,CAAC,GAAG,CAAA,gBAAA,KAAA,gBAAA,GAAA,oBAAA,CAAA,CAAA,wDAAA,EAAA,KAAA,CAAA,EAAA,CAAA,wDAG3B,EAAY,KACtB,CADU,CAAA,CAAA,EAAA,MAAM,CAAC,KAAK,CACtB,CAAC;
|
|
1
|
+
{"version":3,"file":"ValidationError.js","sources":["../../src/components/ValidationError.tsx"],"sourcesContent":["import React from 'react';\nimport styled from 'styled-components';\nimport { Colors } from \"../Colors\";\nimport Icon, { Icons } from './Icon';\nimport { FadeIn } from './Motion';\n\nconst ValidationErrorRelative = styled.div`\n position: relative;\n`;\n\nconst ValidationErrorAbsolute = styled.div`\n position: absolute;\n z-index: 700;\n width: fit-content;\n height: 50px;\n`;\n\nconst ValidationErrorBox = styled.div`\n background: ${Colors.White};\n border: 1px solid ${Colors.Grey5};\n box-sizing: border-box;\n box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.1);\n border-radius: 10px;\n display: flex;\n align-items: center;\n margin-top: 5px;\n padding: 10px 15px;\n width: fit-content;\n justify-content: center;\n`;\n\nconst ValidationErrorText = styled.div`\n margin-left: 10px;\n font-weight: 500;\n color: ${Colors.Grey2};\n`;\n\ntype ValidationErrorProps = {\n validationError: string;\n disableValidationErrorBox?:boolean;\n}\n\nconst ValidationError: React.FC<ValidationErrorProps> = ({ validationError,disableValidationErrorBox}) => {\n if (disableValidationErrorBox) {\n return null;\n }\n return (\n <ValidationErrorRelative>\n <ValidationErrorAbsolute>\n <FadeIn>\n <ValidationErrorBox>\n <Icon icon={Icons.Warning} size={16} color={Colors.Yellow} />\n <ValidationErrorText>{validationError}</ValidationErrorText>\n </ValidationErrorBox>\n </FadeIn>\n </ValidationErrorAbsolute>\n </ValidationErrorRelative>\n );\n};\n\nexport default ValidationError;\n"],"names":[],"mappings":";;;;;;;AAMA,IAAM,uBAAuB,GAAG,MAAM,CAAC,GAAG,CAAA,gBAAA,KAAA,gBAAA,GAAA,oBAAA,CAAA,CAAA,2BAAA,CAAA,EAAA,CAAA,2BAEzC,IAAA,CAAC;AAEF,IAAM,uBAAuB,GAAG,MAAM,CAAC,GAAG,CAAA,gBAAA,KAAA,gBAAA,GAAA,oBAAA,CAAA,CAAA,oFAAA,CAAA,EAAA,CAAA,oFAKzC,IAAA,CAAC;AAEF,IAAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAAA,gBAAA,KAAA,gBAAA,GAAA,oBAAA,CAAA,CAAA,kBAAA,EAAA,yBAAA,EAAA,iPAAA,CAAA,EAAA,CAAA,kBACrB,EAAY,yBACN,EAAY,iPAUjC,CAXe,CAAA,CAAA,EAAA,MAAM,CAAC,KAAK,EACN,MAAM,CAAC,KAAK,CAUjC,CAAC;AAEF,IAAM,mBAAmB,GAAG,MAAM,CAAC,GAAG,CAAA,gBAAA,KAAA,gBAAA,GAAA,oBAAA,CAAA,CAAA,wDAAA,EAAA,KAAA,CAAA,EAAA,CAAA,wDAG3B,EAAY,KACtB,CADU,CAAA,CAAA,EAAA,MAAM,CAAC,KAAK,CACtB,CAAC;AAOI,IAAA,eAAe,GAAmC,UAAC,EAA4C,EAAA;QAA1C,eAAe,GAAA,EAAA,CAAA,eAAA,EAAC,yBAAyB,GAAA,EAAA,CAAA,yBAAA,CAAA;AAClG,IAAA,IAAI,yBAAyB,EAAE;AAC7B,QAAA,OAAO,IAAI,CAAC;AACb,KAAA;IACD,QACE,oBAAC,uBAAuB,EAAA,IAAA;AACtB,QAAA,KAAA,CAAA,aAAA,CAAC,uBAAuB,EAAA,IAAA;AACtB,YAAA,KAAA,CAAA,aAAA,CAAC,MAAM,EAAA,IAAA;AACL,gBAAA,KAAA,CAAA,aAAA,CAAC,kBAAkB,EAAA,IAAA;AACjB,oBAAA,KAAA,CAAA,aAAA,CAAC,IAAI,EAAC,EAAA,IAAI,EAAE,KAAK,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAI,CAAA;oBAC7D,KAAC,CAAA,aAAA,CAAA,mBAAmB,QAAE,eAAe,CAAuB,CACzC,CACd,CACe,CACF,EAC1B;AACJ,EAAE;;;;;"}
|
package/build/index.d.ts
CHANGED
|
@@ -21,8 +21,9 @@ import UserInfo from './components/UserInfo';
|
|
|
21
21
|
import ValidationError from './components/ValidationError';
|
|
22
22
|
import AddressSearchDropdown from './components/AddressSearchDropdown';
|
|
23
23
|
import SearchDropdown from './components/SearchDropdown';
|
|
24
|
+
import SvgRenderer from "./components/SvgRendrer";
|
|
24
25
|
import * as ErrorUtil from './utils/ErrorUtil';
|
|
25
26
|
import makeEventHandler from './utils/makeEventHandler';
|
|
26
27
|
import * as MediaQuery from './utils/MediaQuery';
|
|
27
28
|
import * as Validation from './utils/Validation';
|
|
28
|
-
export { Colors, Button, CodeInput, Counter, Dropdown, Flex, FormattedInput, InputFormats, FormattedfullInput, InputfullFormats, Icon, Icons, Input, Label, MaxLength, Loader, LoaderSizes, Motion, PhoneNumberInput, Product, TextButton, Tip, UserImage, UserInfo, ValidationError, ErrorUtil, makeEventHandler, MediaQuery, Validation, AddressSearchDropdown, SearchDropdown };
|
|
29
|
+
export { Colors, Button, CodeInput, Counter, Dropdown, Flex, FormattedInput, InputFormats, FormattedfullInput, InputfullFormats, Icon, Icons, Input, Label, MaxLength, Loader, LoaderSizes, Motion, PhoneNumberInput, Product, TextButton, Tip, UserImage, UserInfo, ValidationError, SvgRenderer, ErrorUtil, makeEventHandler, MediaQuery, Validation, AddressSearchDropdown, SearchDropdown };
|
package/build/index.js
CHANGED
|
@@ -22,6 +22,7 @@ export { default as UserInfo } from './components/UserInfo.js';
|
|
|
22
22
|
export { default as ValidationError } from './components/ValidationError.js';
|
|
23
23
|
export { default as AddressSearchDropdown } from './components/AddressSearchDropdown.js';
|
|
24
24
|
export { default as SearchDropdown } from './components/SearchDropdown.js';
|
|
25
|
+
export { default as SvgRenderer } from './components/SvgRendrer.js';
|
|
25
26
|
import * as ErrorUtil from './utils/ErrorUtil.js';
|
|
26
27
|
export { ErrorUtil };
|
|
27
28
|
export { default as makeEventHandler } from './utils/makeEventHandler.js';
|
package/build/index.js.map
CHANGED
|
@@ -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": "@sellout/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.301",
|
|
4
4
|
"main": "build/index.js",
|
|
5
5
|
"module": "build/index.es.js",
|
|
6
6
|
"files": [
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@fortawesome/pro-solid-svg-icons": "^5.15.4",
|
|
54
54
|
"@fortawesome/react-fontawesome": "^0.1.19",
|
|
55
55
|
"@hapi/joi": "^17.1.1",
|
|
56
|
-
"@sellout/utils": "^0.0.
|
|
56
|
+
"@sellout/utils": "^0.0.301",
|
|
57
57
|
"csvtojson": "^2.0.10",
|
|
58
58
|
"framer-motion": "^2.9.5",
|
|
59
59
|
"polished": "^3.7.2",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"rollup-plugin-url": "^3.0.1",
|
|
63
63
|
"use-places-autocomplete": "^1.11.0"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "f8b64fc7e1745271b78083b72f772d0eb52787fe",
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"react": "16.14.0",
|
|
68
68
|
"react-dom": "16.14.0",
|