@sellout/ui 0.0.398 → 0.0.400
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 +37 -37
- package/build/Colors.js +38 -38
- package/build/Colors.js.map +1 -1
- package/build/components/AddressSearchDropdown.d.ts +31 -31
- package/build/components/AddressSearchDropdown.js +101 -101
- package/build/components/AddressSearchDropdown.js.map +1 -1
- package/build/components/Button.d.ts +51 -51
- package/build/components/Button.js +252 -267
- package/build/components/Button.js.map +1 -1
- package/build/components/CodeInput.d.ts +22 -22
- package/build/components/CodeInput.js +90 -91
- package/build/components/CodeInput.js.map +1 -1
- package/build/components/Counter.d.ts +9 -9
- package/build/components/Counter.js +17 -18
- package/build/components/Counter.js.map +1 -1
- package/build/components/Dropdown.d.ts +40 -40
- package/build/components/Dropdown.js +41 -44
- package/build/components/Dropdown.js.map +1 -1
- package/build/components/Flex.d.ts +14 -14
- package/build/components/Flex.js +6 -6
- package/build/components/Flex.js.map +1 -1
- package/build/components/FormattedInput.d.ts +34 -34
- package/build/components/FormattedInput.js +66 -70
- package/build/components/FormattedInput.js.map +1 -1
- package/build/components/FormattedfullInput.d.ts +32 -32
- package/build/components/FormattedfullInput.js +66 -70
- package/build/components/FormattedfullInput.js.map +1 -1
- package/build/components/Icon.d.ts +219 -219
- package/build/components/Icon.js +28 -29
- package/build/components/Icon.js.map +1 -1
- package/build/components/Icons.d.ts +190 -190
- package/build/components/Icons.js +189 -189
- package/build/components/Icons.js.map +1 -1
- package/build/components/Input.d.ts +77 -77
- package/build/components/Input.js +165 -176
- package/build/components/Input.js.map +1 -1
- package/build/components/InputOld.d.ts +23 -23
- package/build/components/Label.d.ts +16 -16
- package/build/components/Label.js +14 -14
- package/build/components/Label.js.map +1 -1
- package/build/components/Loader.d.ts +14 -14
- package/build/components/Loader.js +29 -29
- package/build/components/Loader.js.map +1 -1
- package/build/components/MaxLength.d.ts +8 -8
- package/build/components/MaxLength.js +12 -12
- package/build/components/MaxLength.js.map +1 -1
- package/build/components/Motion.d.ts +30 -30
- package/build/components/Motion.js +33 -33
- package/build/components/Motion.js.map +1 -1
- package/build/components/PhoneNumberInput.d.ts +36 -36
- package/build/components/PhoneNumberInput.js +37 -40
- package/build/components/PhoneNumberInput.js.map +1 -1
- package/build/components/Product.d.ts +35 -35
- package/build/components/Product.js +111 -110
- package/build/components/Product.js.map +1 -1
- package/build/components/SearchDropdown.d.ts +41 -41
- package/build/components/SearchDropdown.js +60 -59
- package/build/components/SearchDropdown.js.map +1 -1
- package/build/components/SvgIcons.d.ts +15 -15
- package/build/components/SvgIcons.js +35 -35
- package/build/components/SvgIcons.js.map +1 -1
- package/build/components/SvgRendrer.d.ts +5 -5
- package/build/components/SvgRendrer.js +14 -14
- package/build/components/SvgRendrer.js.map +1 -1
- package/build/components/TextButton.d.ts +21 -21
- package/build/components/TextButton.js +39 -40
- package/build/components/TextButton.js.map +1 -1
- package/build/components/Tip.d.ts +7 -7
- package/build/components/Tip.js +10 -10
- package/build/components/Tip.js.map +1 -1
- package/build/components/UserImage.d.ts +13 -13
- package/build/components/UserImage.js +28 -29
- package/build/components/UserImage.js.map +1 -1
- package/build/components/UserInfo.d.ts +24 -24
- package/build/components/UserInfo.js +31 -31
- package/build/components/UserInfo.js.map +1 -1
- package/build/components/ValidationError.d.ts +7 -7
- package/build/components/ValidationError.js +17 -17
- package/build/components/ValidationError.js.map +1 -1
- package/build/index.d.ts +29 -29
- package/build/node_modules/tslib/tslib.es6.js +97 -0
- package/build/node_modules/tslib/tslib.es6.js.map +1 -0
- package/build/utils/ErrorUtil.d.ts +1 -1
- package/build/utils/ErrorUtil.js +15 -15
- package/build/utils/ErrorUtil.js.map +1 -1
- package/build/utils/MediaQuery.d.ts +18 -18
- package/build/utils/MediaQuery.js +59 -59
- package/build/utils/MediaQuery.js.map +1 -1
- package/build/utils/Validation.d.ts +6 -6
- package/build/utils/Validation.js +44 -44
- package/build/utils/Validation.js.map +1 -1
- package/build/utils/makeEventHandler.d.ts +1 -1
- package/build/utils/makeEventHandler.js +8 -8
- package/build/utils/makeEventHandler.js.map +1 -1
- package/package.json +6 -6
- package/build/_virtual/_tslib.js.map +0 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Colors } from '../Colors';
|
|
3
|
-
export declare enum TextButtonSizes {
|
|
4
|
-
Large = "Large",
|
|
5
|
-
Regular = "Regular",
|
|
6
|
-
Small = "Small"
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
children: string | React.ReactNode;
|
|
10
|
-
size?: TextButtonSizes;
|
|
11
|
-
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
12
|
-
margin?: string;
|
|
13
|
-
icon?: any;
|
|
14
|
-
iconRotation?: number;
|
|
15
|
-
color?: Colors;
|
|
16
|
-
textWithoutLink?: string | React.ReactNode;
|
|
17
|
-
fontFamily?: string;
|
|
18
|
-
iconMargin?: string;
|
|
19
|
-
};
|
|
20
|
-
declare const TextButton: React.FC<TextButtonProps>;
|
|
21
|
-
export default TextButton;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Colors } from '../Colors';
|
|
3
|
+
export declare enum TextButtonSizes {
|
|
4
|
+
Large = "Large",
|
|
5
|
+
Regular = "Regular",
|
|
6
|
+
Small = "Small"
|
|
7
|
+
}
|
|
8
|
+
type TextButtonProps = {
|
|
9
|
+
children: string | React.ReactNode;
|
|
10
|
+
size?: TextButtonSizes;
|
|
11
|
+
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
12
|
+
margin?: string;
|
|
13
|
+
icon?: any;
|
|
14
|
+
iconRotation?: number;
|
|
15
|
+
color?: Colors;
|
|
16
|
+
textWithoutLink?: string | React.ReactNode;
|
|
17
|
+
fontFamily?: string;
|
|
18
|
+
iconMargin?: string;
|
|
19
|
+
};
|
|
20
|
+
declare const TextButton: React.FC<TextButtonProps>;
|
|
21
|
+
export default TextButton;
|
|
@@ -1,48 +1,47 @@
|
|
|
1
|
-
import { __makeTemplateObject } from '../
|
|
1
|
+
import { __makeTemplateObject } from '../node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
import { Colors } from '../Colors.js';
|
|
5
5
|
import Icon from './Icon.js';
|
|
6
6
|
|
|
7
|
-
var TextButtonSizes;
|
|
8
|
-
(function (TextButtonSizes) {
|
|
9
|
-
TextButtonSizes["Large"] = "Large";
|
|
10
|
-
TextButtonSizes["Regular"] = "Regular";
|
|
11
|
-
TextButtonSizes["Small"] = "Small";
|
|
12
|
-
})(TextButtonSizes || (TextButtonSizes = {}));
|
|
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 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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
React.createElement(
|
|
44
|
-
|
|
45
|
-
};
|
|
7
|
+
var TextButtonSizes;
|
|
8
|
+
(function (TextButtonSizes) {
|
|
9
|
+
TextButtonSizes["Large"] = "Large";
|
|
10
|
+
TextButtonSizes["Regular"] = "Regular";
|
|
11
|
+
TextButtonSizes["Small"] = "Small";
|
|
12
|
+
})(TextButtonSizes || (TextButtonSizes = {}));
|
|
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 font-family:", ";\n text-decoration: underline;\n cursor: pointer;\n font-weight: 500;\n &:hover {\n text-decoration: none;\n }\n"], ["\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"])), function (props) {
|
|
15
|
+
if (props.size === TextButtonSizes.Large)
|
|
16
|
+
return "1.8rem";
|
|
17
|
+
if (props.size === TextButtonSizes.Regular)
|
|
18
|
+
return "1.4rem";
|
|
19
|
+
if (props.size === TextButtonSizes.Small)
|
|
20
|
+
return "1.2rem";
|
|
21
|
+
return "1.4rem";
|
|
22
|
+
}, function (props) { return props.color; }, function (props) { return props.fontFamily; });
|
|
23
|
+
var TextWithoutLink = styled.span(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n padding-right: 2px;\n"], ["\n padding-right: 2px;\n"])));
|
|
24
|
+
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}"])));
|
|
25
|
+
var TextButton = function (_a) {
|
|
26
|
+
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;
|
|
27
|
+
var iconSize = (function () {
|
|
28
|
+
if (size === TextButtonSizes.Large) {
|
|
29
|
+
return 14;
|
|
30
|
+
}
|
|
31
|
+
if (size === TextButtonSizes.Regular) {
|
|
32
|
+
return 12;
|
|
33
|
+
}
|
|
34
|
+
if (size === TextButtonSizes.Small) {
|
|
35
|
+
return 10;
|
|
36
|
+
}
|
|
37
|
+
return 12;
|
|
38
|
+
})();
|
|
39
|
+
return (React.createElement(Container, { margin: margin },
|
|
40
|
+
React.createElement(InnerContainer, { onClick: onClick ? onClick : function () { } },
|
|
41
|
+
icon && (React.createElement(Icon, { icon: icon, size: iconSize, color: color, margin: iconMargin || "0 7px 0 0", rotation: iconRotation })),
|
|
42
|
+
React.createElement(TextWithoutLink, null, textWithoutLink),
|
|
43
|
+
React.createElement(Text, { size: size, color: color, fontFamily: fontFamily }, children))));
|
|
44
|
+
};
|
|
46
45
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
47
46
|
|
|
48
47
|
export { TextButtonSizes, TextButton as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextButton.js","sources":["../../src/components/TextButton.tsx"],"sourcesContent":[
|
|
1
|
+
{"version":3,"file":"TextButton.js","sources":["../../src/components/TextButton.tsx"],"sourcesContent":[null],"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,EA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A,CAAA,aAAA,CAAC,IAAI,EAAC,EAAA,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,UAAU,EACnD,EAAA,QAAQ,CACJ,CACQ,CACP,EACZ;AACJ,EAAE;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
tip?: string;
|
|
4
|
-
margin?: string;
|
|
5
|
-
};
|
|
6
|
-
declare const Tip: React.FC<TipProps>;
|
|
7
|
-
export default Tip;
|
|
1
|
+
import React from "react";
|
|
2
|
+
type TipProps = {
|
|
3
|
+
tip?: string;
|
|
4
|
+
margin?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const Tip: React.FC<TipProps>;
|
|
7
|
+
export default Tip;
|
package/build/components/Tip.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { __makeTemplateObject } from '../
|
|
1
|
+
import { __makeTemplateObject } from '../node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import React, { useLayoutEffect } from 'react';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
import { Colors } from '../Colors.js';
|
|
5
5
|
import Icon, { Icons } from './Icon.js';
|
|
6
6
|
|
|
7
|
-
var Container = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin: ", ";\n"], ["\n margin: ", ";\n"])), function (props) { return props.margin; });
|
|
8
|
-
var Tip = function (_a) {
|
|
9
|
-
var tip = _a.tip, margin = _a.margin;
|
|
10
|
-
useLayoutEffect(function () {
|
|
11
|
-
// ReactTooltip.rebuild();
|
|
12
|
-
}, []);
|
|
13
|
-
return (React.createElement(Container, { margin: margin, "data-tip": tip },
|
|
14
|
-
React.createElement(Icon, { icon: Icons.InfotipSolid, color: Colors.Grey4, size: 12 })));
|
|
15
|
-
};
|
|
7
|
+
var Container = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin: ", ";\n"], ["\n margin: ", ";\n"])), function (props) { return props.margin; });
|
|
8
|
+
var Tip = function (_a) {
|
|
9
|
+
var tip = _a.tip, margin = _a.margin;
|
|
10
|
+
useLayoutEffect(function () {
|
|
11
|
+
// ReactTooltip.rebuild();
|
|
12
|
+
}, []);
|
|
13
|
+
return (React.createElement(Container, { margin: margin, "data-tip": tip },
|
|
14
|
+
React.createElement(Icon, { icon: Icons.InfotipSolid, color: Colors.Grey4, size: 12 })));
|
|
15
|
+
};
|
|
16
16
|
var templateObject_1;
|
|
17
17
|
|
|
18
18
|
export { Tip as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tip.js","sources":["../../src/components/Tip.tsx"],"sourcesContent":[
|
|
1
|
+
{"version":3,"file":"Tip.js","sources":["../../src/components/Tip.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAUA,IAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAgB,gBAAA,KAAA,gBAAA,GAAA,oBAAA,CAAA,CAAA,cAAA,EAAA,KAAA,CAAA,EAAA,CAAA,cAChC,EAAuB,KAClC,CAAA,CAAA,CAAA,EADW,UAAC,KAAK,EAAA,EAAK,OAAA,KAAK,CAAC,MAAM,CAAZ,EAAY,CAClC,CAAC;AAOI,IAAA,GAAG,GAAuB,UAAC,EAGhC,EAAA;QAFC,GAAG,GAAA,EAAA,CAAA,GAAA,EACH,MAAM,GAAA,EAAA,CAAA,MAAA,CAAA;AAEN,IAAA,eAAe,CAAC,YAAA;;KAEf,EAAE,EAAE,CAAC,CAAC;IACP,QACE,oBAAC,SAAS,EAAA,EAAC,MAAM,EAAE,MAAM,cAAY,GAAG,EAAA;QACtC,KAAC,CAAA,aAAA,CAAA,IAAI,IAAC,IAAI,EAAE,KAAK,CAAC,YAAY,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,EAAI,CAAA,CACvD,EACZ;AACJ,EAAE;;;;;"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
imageUrl?: string;
|
|
4
|
-
height?: string;
|
|
5
|
-
size?: string;
|
|
6
|
-
firstName: string;
|
|
7
|
-
lastName: string;
|
|
8
|
-
margin?: string;
|
|
9
|
-
invert?: boolean;
|
|
10
|
-
circle?: boolean;
|
|
11
|
-
};
|
|
12
|
-
declare const UserImage: React.FC<PropTypes>;
|
|
13
|
-
export default UserImage;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type PropTypes = {
|
|
3
|
+
imageUrl?: string;
|
|
4
|
+
height?: string;
|
|
5
|
+
size?: string;
|
|
6
|
+
firstName: string;
|
|
7
|
+
lastName: string;
|
|
8
|
+
margin?: string;
|
|
9
|
+
invert?: boolean;
|
|
10
|
+
circle?: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare const UserImage: React.FC<PropTypes>;
|
|
13
|
+
export default UserImage;
|
|
@@ -1,37 +1,36 @@
|
|
|
1
|
-
import { __makeTemplateObject } from '../
|
|
1
|
+
import { __makeTemplateObject } from '../node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
import { Colors } from '../Colors.js';
|
|
5
5
|
import Icon, { Icons } from './Icon.js';
|
|
6
6
|
|
|
7
|
-
var UserImageDiv = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n height: ", ";\n width: ", ";\n min-height: ", ";\n min-width: ", ";\n border-radius: ", ";\n color: ", ";\n font-size: ", ";\n font-weight: 600;\n display: flex;\n justify-content: center;\n align-items: center;\n margin: ", ";\n background-image: ", ";\n background-position: center;\n background-size: cover;\n"], ["\n background-color: ",
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
var
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
};
|
|
7
|
+
var UserImageDiv = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n height: ", ";\n width: ", ";\n min-height: ", ";\n min-width: ", ";\n border-radius: ", ";\n color: ", ";\n font-size: ", ";\n font-weight: 600;\n display: flex;\n justify-content: center;\n align-items: center;\n margin: ", ";\n background-image: ", ";\n background-position: center;\n background-size: cover;\n"], ["\n background-color: ", ";\n height: ", ";\n width: ", ";\n min-height: ", ";\n min-width: ", ";\n border-radius: ", ";\n color: ", ";\n font-size: ", ";\n font-weight: 600;\n display: flex;\n justify-content: center;\n align-items: center;\n margin: ", ";\n background-image: ", ";\n background-position: center;\n background-size: cover;\n"])), function (props) {
|
|
8
|
+
if (props.src) {
|
|
9
|
+
if (props.invert) {
|
|
10
|
+
return Colors.Grey6;
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
return Colors.Grey6;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
else if (props.invert) {
|
|
17
|
+
return Colors.White;
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
return Colors.Grey1;
|
|
21
|
+
}
|
|
22
|
+
}, function (props) { return props.height; }, function (props) { return props.height; }, function (props) { return props.height; }, function (props) { return props.height; }, function (props) { return (props.circle ? '50%' : '0'); }, function (props) { return (props.invert ? Colors.Grey1 : Colors.White); }, function (props) { return props.size; }, function (props) { return props.margin || '0px 10px 0px 0px'; }, function (props) { return "url(".concat(props.src, ")"); });
|
|
23
|
+
var UserImage = function (_a) {
|
|
24
|
+
var imageUrl = _a.imageUrl, _b = _a.height, height = _b === void 0 ? '45px' : _b, _c = _a.size, size = _c === void 0 ? '1.8rem' : _c, firstName = _a.firstName, lastName = _a.lastName, margin = _a.margin, invert = _a.invert, _d = _a.circle, circle = _d === void 0 ? true : _d;
|
|
25
|
+
if (!imageUrl) {
|
|
26
|
+
var userInitials = '';
|
|
27
|
+
if (firstName && lastName) {
|
|
28
|
+
userInitials = "".concat(firstName.split('')[0]).concat(lastName.split('')[0]);
|
|
29
|
+
}
|
|
30
|
+
return (React.createElement(UserImageDiv, { height: height, margin: margin, invert: invert, size: size, circle: circle }, userInitials ? userInitials : (React.createElement(Icon, { icon: Icons.UserSolid, color: invert ? Colors.Grey1 : Colors.White, size: 16 }))));
|
|
31
|
+
}
|
|
32
|
+
return (React.createElement(UserImageDiv, { src: imageUrl, height: height, margin: margin, circle: circle }));
|
|
33
|
+
};
|
|
35
34
|
var templateObject_1;
|
|
36
35
|
|
|
37
36
|
export { UserImage as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserImage.js","sources":["../../src/components/UserImage.tsx"],"sourcesContent":[
|
|
1
|
+
{"version":3,"file":"UserImage.js","sources":["../../src/components/UserImage.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAaA,IAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAA,gBAAA,KAAA,gBAAA,GAAA,oBAAA,CAAA,CAAA,wBAAA,EAAA,eAAA,EAAA,cAAA,EAAA,mBAAA,EAAA,kBAAA,EAAA,sBAAA,EAAA,cAAA,EAAA,kBAAA,EAAA,0GAAA,EAAA,yBAAA,EAAA,gEAAA,CAAA,EAAA,CAAY,wBACrB,EAYnB,eACS,EAAqB,cACtB,EAAqB,mBAChB,EAAqB,kBACtB,EAAqB,sBACjB,EAAqC,cAC7C,EAAqD,kBACjD,EAAmB,0GAKtB,EAA2C,yBACjC,EAA4B,gEAGjD,CAAA,CAAA,CAAA,EA5BqB,UAAA,KAAK,EAAA;IACvB,IAAG,KAAK,CAAC,GAAG,EAAE;QACZ,IAAG,KAAK,CAAC,MAAM,EAAE;YACf,OAAO,MAAM,CAAC,KAAK,CAAC;AACrB,SAAA;AAAM,aAAA;YACL,OAAO,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AAS,GAAA,EAAA,CAAA,SAAA,EACT,QAAQ,GAAA,EAAA,CAAA,QAAA,EACR,MAAM,GAAA,EAAA,CAAA,MAAA,EACN,MAAM,GAAA,EAAA,CAAA,MAAA,EACN,EAAa,GAAA,EAAA,CAAA,MAAA,EAAb,MAAM,GAAA,EAAA,KAAA,KAAA,CAAA,GAAG,IAAI,GAAA,EAAA,CAAA;IAEb,IAAI,CAAC,QAAQ,EAAE;QACb,IAAI,YAAY,GAAG,EAAE,CAAC;QAEtB,IAAI,SAAS,IAAI,QAAQ,EAAE;YACzB,YAAY,GAAG,UAAG,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAG,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAE,CAAC;AACpE,SAAA;AAED,QAAA,QACE,KAAA,CAAA,aAAA,CAAC,YAAY,EAAA,EACX,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EAEb,EAAA,YAAY,GAAG,YAAY,IAC1B,KAAA,CAAA,aAAA,CAAC,IAAI,EAAA,EACH,IAAI,EAAE,KAAK,CAAC,SAAS,EACrB,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,EAC3C,IAAI,EAAE,EAAE,EAAA,CACR,CACH,CACY,EACf;AACH,KAAA;IAED,QACE,oBAAC,YAAY,EAAA,EACX,GAAG,EAAE,QAAQ,EACb,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,CAAA,EACF;AACJ,EAAC;;;;;"}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import React from 'react';
|
|
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
|
-
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/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
|
-
export declare enum UserInfoSizeEnum {
|
|
7
|
-
Regular = "Regular",
|
|
8
|
-
Large = "Large"
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
user?: any;
|
|
12
|
-
size?: UserInfoSizeEnum;
|
|
13
|
-
invert?: boolean;
|
|
14
|
-
nameColor?: string;
|
|
15
|
-
fontFamily?: string;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
fontFamily?: string;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
fontFamily?: string;
|
|
22
|
-
};
|
|
23
|
-
declare const UserInfo: React.FC<UserInfoPropTypes>;
|
|
24
|
-
export default UserInfo;
|
|
1
|
+
import React from 'react';
|
|
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
|
+
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/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
|
+
export declare enum UserInfoSizeEnum {
|
|
7
|
+
Regular = "Regular",
|
|
8
|
+
Large = "Large"
|
|
9
|
+
}
|
|
10
|
+
type UserInfoPropTypes = {
|
|
11
|
+
user?: any;
|
|
12
|
+
size?: UserInfoSizeEnum;
|
|
13
|
+
invert?: boolean;
|
|
14
|
+
nameColor?: string;
|
|
15
|
+
fontFamily?: string;
|
|
16
|
+
};
|
|
17
|
+
type NameProps = {
|
|
18
|
+
fontFamily?: string;
|
|
19
|
+
};
|
|
20
|
+
type EmailProps = {
|
|
21
|
+
fontFamily?: string;
|
|
22
|
+
};
|
|
23
|
+
declare const UserInfo: React.FC<UserInfoPropTypes>;
|
|
24
|
+
export default UserInfo;
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { __makeTemplateObject } from '../
|
|
1
|
+
import { __makeTemplateObject } from '../node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
import { Colors } from '../Colors.js';
|
|
5
5
|
import UserImage from './UserImage.js';
|
|
6
6
|
|
|
7
|
-
var Container = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
|
|
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 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
|
-
var UserInfoSizeEnum;
|
|
13
|
-
(function (UserInfoSizeEnum) {
|
|
14
|
-
UserInfoSizeEnum["Regular"] = "Regular";
|
|
15
|
-
UserInfoSizeEnum["Large"] = "Large";
|
|
16
|
-
})(UserInfoSizeEnum || (UserInfoSizeEnum = {}));
|
|
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, nameColor = _a.nameColor, fontFamily = _a.fontFamily;
|
|
19
|
-
var firstName = user.firstName, lastName = user.lastName, email = user.email, phoneNumber = user.phoneNumber, _e = user.userProfile, _f =
|
|
20
|
-
var isLarge = size === UserInfoSizeEnum.Large;
|
|
21
|
-
var UserName = React.memo(function () { return React.createElement(Name, { color: nameColor, fontFamily: fontFamily },
|
|
22
|
-
firstName,
|
|
23
|
-
"\u00A0",
|
|
24
|
-
lastName); });
|
|
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
|
-
" "); });
|
|
29
|
-
var height = isLarge ? '50px' : '36px';
|
|
30
|
-
return (React.createElement(Container, null,
|
|
31
|
-
React.createElement(UserImage, { imageUrl: imageUrl, height: height, size: isLarge ? "1.8rem" : "1.4rem", firstName: firstName, lastName: lastName, invert: invert }),
|
|
32
|
-
React.createElement(Details, null,
|
|
33
|
-
firstName && lastName && React.createElement(UserName, null),
|
|
34
|
-
email && React.createElement(UserEmail, null),
|
|
35
|
-
isLarge && phoneNumber && React.createElement(UserPhoneNumber, null))));
|
|
36
|
-
};
|
|
7
|
+
var Container = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
|
|
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 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
|
+
var UserInfoSizeEnum;
|
|
13
|
+
(function (UserInfoSizeEnum) {
|
|
14
|
+
UserInfoSizeEnum["Regular"] = "Regular";
|
|
15
|
+
UserInfoSizeEnum["Large"] = "Large";
|
|
16
|
+
})(UserInfoSizeEnum || (UserInfoSizeEnum = {}));
|
|
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, nameColor = _a.nameColor, fontFamily = _a.fontFamily;
|
|
19
|
+
var firstName = user.firstName, lastName = user.lastName, email = user.email, phoneNumber = user.phoneNumber, _e = user.userProfile, _f = _e === void 0 ? {} : _e, _g = _f.imageUrl, imageUrl = _g === void 0 ? '' : _g;
|
|
20
|
+
var isLarge = size === UserInfoSizeEnum.Large;
|
|
21
|
+
var UserName = React.memo(function () { return React.createElement(Name, { color: nameColor, fontFamily: fontFamily },
|
|
22
|
+
firstName,
|
|
23
|
+
"\u00A0",
|
|
24
|
+
lastName); });
|
|
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
|
+
" "); });
|
|
29
|
+
var height = isLarge ? '50px' : '36px';
|
|
30
|
+
return (React.createElement(Container, null,
|
|
31
|
+
React.createElement(UserImage, { imageUrl: imageUrl, height: height, size: isLarge ? "1.8rem" : "1.4rem", firstName: firstName, lastName: lastName, invert: invert }),
|
|
32
|
+
React.createElement(Details, null,
|
|
33
|
+
firstName && lastName && React.createElement(UserName, null),
|
|
34
|
+
email && React.createElement(UserEmail, null),
|
|
35
|
+
isLarge && phoneNumber && React.createElement(UserPhoneNumber, null))));
|
|
36
|
+
};
|
|
37
37
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
38
38
|
|
|
39
39
|
export { Container, Details, Email, Name, UserInfoSizeEnum, UserInfo as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserInfo.js","sources":["../../src/components/UserInfo.tsx"],"sourcesContent":[
|
|
1
|
+
{"version":3,"file":"UserInfo.js","sources":["../../src/components/UserInfo.tsx"],"sourcesContent":[null],"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,gBAAA,GAAA,oBAAA,CAAA,CAAA,mCAAA,EAAA,mBAAA,EAAA,KAAA,CAAA,EAAA,CAAY,mCAEhC,EAAsC,mBACjC,EAA2B,KAC1C,KAFU,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,CAAA,EAAA,EACjC,UAAC,KAAK,EAAA,EAAK,OAAA,KAAK,CAAC,UAAU,CAAhB,EAAgB,EACzC;AAEF,IAAM,WAAW,GAAG,MAAM,CAAC,GAAG,kIAAkB,mCAErC,EAAsC,mBACjC,EAA2B,KAC1C,CA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AAC,eAAe,EAAG,IAAA,CAAA,CACtC,CACA,EACZ;AACJ,EAAC;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
validationError: string;
|
|
4
|
-
disableValidationErrorBox?: boolean;
|
|
5
|
-
};
|
|
6
|
-
declare const ValidationError: React.FC<ValidationErrorProps>;
|
|
7
|
-
export default ValidationError;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type ValidationErrorProps = {
|
|
3
|
+
validationError: string;
|
|
4
|
+
disableValidationErrorBox?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const ValidationError: React.FC<ValidationErrorProps>;
|
|
7
|
+
export default ValidationError;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { __makeTemplateObject } from '../
|
|
1
|
+
import { __makeTemplateObject } from '../node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
import { Colors } from '../Colors.js';
|
|
5
5
|
import Icon, { Icons } from './Icon.js';
|
|
6
6
|
import { FadeIn } from './Motion.js';
|
|
7
7
|
|
|
8
|
-
var ValidationErrorRelative = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n"], ["\n position: relative;\n"])));
|
|
9
|
-
var ValidationErrorAbsolute = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: absolute;\n z-index: 700;\n width: fit-content;\n height: 50px;\n"], ["\n position: absolute;\n z-index: 700;\n width: fit-content;\n height: 50px;\n"])));
|
|
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
|
-
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
|
-
var ValidationError = function (_a) {
|
|
13
|
-
var validationError = _a.validationError, disableValidationErrorBox = _a.disableValidationErrorBox;
|
|
14
|
-
if (disableValidationErrorBox) {
|
|
15
|
-
return null;
|
|
16
|
-
}
|
|
17
|
-
return (React.createElement(ValidationErrorRelative, null,
|
|
18
|
-
React.createElement(ValidationErrorAbsolute, null,
|
|
19
|
-
React.createElement(FadeIn, null,
|
|
20
|
-
React.createElement(ValidationErrorBox, null,
|
|
21
|
-
React.createElement(Icon, { icon: Icons.Warning, size: 16, color: Colors.Yellow }),
|
|
22
|
-
React.createElement(ValidationErrorText, null, validationError))))));
|
|
23
|
-
};
|
|
8
|
+
var ValidationErrorRelative = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n"], ["\n position: relative;\n"])));
|
|
9
|
+
var ValidationErrorAbsolute = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: absolute;\n z-index: 700;\n width: fit-content;\n height: 50px;\n"], ["\n position: absolute;\n z-index: 700;\n width: fit-content;\n height: 50px;\n"])));
|
|
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
|
+
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
|
+
var ValidationError = function (_a) {
|
|
13
|
+
var validationError = _a.validationError, disableValidationErrorBox = _a.disableValidationErrorBox;
|
|
14
|
+
if (disableValidationErrorBox) {
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
return (React.createElement(ValidationErrorRelative, null,
|
|
18
|
+
React.createElement(ValidationErrorAbsolute, null,
|
|
19
|
+
React.createElement(FadeIn, null,
|
|
20
|
+
React.createElement(ValidationErrorBox, null,
|
|
21
|
+
React.createElement(Icon, { icon: Icons.Warning, size: 16, color: Colors.Yellow }),
|
|
22
|
+
React.createElement(ValidationErrorText, null, validationError))))));
|
|
23
|
+
};
|
|
24
24
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
25
25
|
|
|
26
26
|
export { ValidationError as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValidationError.js","sources":["../../src/components/ValidationError.tsx"],"sourcesContent":[
|
|
1
|
+
{"version":3,"file":"ValidationError.js","sources":["../../src/components/ValidationError.tsx"],"sourcesContent":[null],"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,o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