@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.
Files changed (96) hide show
  1. package/build/Colors.d.ts +37 -37
  2. package/build/Colors.js +38 -38
  3. package/build/Colors.js.map +1 -1
  4. package/build/components/AddressSearchDropdown.d.ts +31 -31
  5. package/build/components/AddressSearchDropdown.js +101 -101
  6. package/build/components/AddressSearchDropdown.js.map +1 -1
  7. package/build/components/Button.d.ts +51 -51
  8. package/build/components/Button.js +252 -267
  9. package/build/components/Button.js.map +1 -1
  10. package/build/components/CodeInput.d.ts +22 -22
  11. package/build/components/CodeInput.js +90 -91
  12. package/build/components/CodeInput.js.map +1 -1
  13. package/build/components/Counter.d.ts +9 -9
  14. package/build/components/Counter.js +17 -18
  15. package/build/components/Counter.js.map +1 -1
  16. package/build/components/Dropdown.d.ts +40 -40
  17. package/build/components/Dropdown.js +41 -44
  18. package/build/components/Dropdown.js.map +1 -1
  19. package/build/components/Flex.d.ts +14 -14
  20. package/build/components/Flex.js +6 -6
  21. package/build/components/Flex.js.map +1 -1
  22. package/build/components/FormattedInput.d.ts +34 -34
  23. package/build/components/FormattedInput.js +66 -70
  24. package/build/components/FormattedInput.js.map +1 -1
  25. package/build/components/FormattedfullInput.d.ts +32 -32
  26. package/build/components/FormattedfullInput.js +66 -70
  27. package/build/components/FormattedfullInput.js.map +1 -1
  28. package/build/components/Icon.d.ts +219 -219
  29. package/build/components/Icon.js +28 -29
  30. package/build/components/Icon.js.map +1 -1
  31. package/build/components/Icons.d.ts +190 -190
  32. package/build/components/Icons.js +189 -189
  33. package/build/components/Icons.js.map +1 -1
  34. package/build/components/Input.d.ts +77 -77
  35. package/build/components/Input.js +165 -176
  36. package/build/components/Input.js.map +1 -1
  37. package/build/components/InputOld.d.ts +23 -23
  38. package/build/components/Label.d.ts +16 -16
  39. package/build/components/Label.js +14 -14
  40. package/build/components/Label.js.map +1 -1
  41. package/build/components/Loader.d.ts +14 -14
  42. package/build/components/Loader.js +29 -29
  43. package/build/components/Loader.js.map +1 -1
  44. package/build/components/MaxLength.d.ts +8 -8
  45. package/build/components/MaxLength.js +12 -12
  46. package/build/components/MaxLength.js.map +1 -1
  47. package/build/components/Motion.d.ts +30 -30
  48. package/build/components/Motion.js +33 -33
  49. package/build/components/Motion.js.map +1 -1
  50. package/build/components/PhoneNumberInput.d.ts +36 -36
  51. package/build/components/PhoneNumberInput.js +37 -40
  52. package/build/components/PhoneNumberInput.js.map +1 -1
  53. package/build/components/Product.d.ts +35 -35
  54. package/build/components/Product.js +111 -110
  55. package/build/components/Product.js.map +1 -1
  56. package/build/components/SearchDropdown.d.ts +41 -41
  57. package/build/components/SearchDropdown.js +60 -59
  58. package/build/components/SearchDropdown.js.map +1 -1
  59. package/build/components/SvgIcons.d.ts +15 -15
  60. package/build/components/SvgIcons.js +35 -35
  61. package/build/components/SvgIcons.js.map +1 -1
  62. package/build/components/SvgRendrer.d.ts +5 -5
  63. package/build/components/SvgRendrer.js +14 -14
  64. package/build/components/SvgRendrer.js.map +1 -1
  65. package/build/components/TextButton.d.ts +21 -21
  66. package/build/components/TextButton.js +39 -40
  67. package/build/components/TextButton.js.map +1 -1
  68. package/build/components/Tip.d.ts +7 -7
  69. package/build/components/Tip.js +10 -10
  70. package/build/components/Tip.js.map +1 -1
  71. package/build/components/UserImage.d.ts +13 -13
  72. package/build/components/UserImage.js +28 -29
  73. package/build/components/UserImage.js.map +1 -1
  74. package/build/components/UserInfo.d.ts +24 -24
  75. package/build/components/UserInfo.js +31 -31
  76. package/build/components/UserInfo.js.map +1 -1
  77. package/build/components/ValidationError.d.ts +7 -7
  78. package/build/components/ValidationError.js +17 -17
  79. package/build/components/ValidationError.js.map +1 -1
  80. package/build/index.d.ts +29 -29
  81. package/build/node_modules/tslib/tslib.es6.js +97 -0
  82. package/build/node_modules/tslib/tslib.es6.js.map +1 -0
  83. package/build/utils/ErrorUtil.d.ts +1 -1
  84. package/build/utils/ErrorUtil.js +15 -15
  85. package/build/utils/ErrorUtil.js.map +1 -1
  86. package/build/utils/MediaQuery.d.ts +18 -18
  87. package/build/utils/MediaQuery.js +59 -59
  88. package/build/utils/MediaQuery.js.map +1 -1
  89. package/build/utils/Validation.d.ts +6 -6
  90. package/build/utils/Validation.js +44 -44
  91. package/build/utils/Validation.js.map +1 -1
  92. package/build/utils/makeEventHandler.d.ts +1 -1
  93. package/build/utils/makeEventHandler.js +8 -8
  94. package/build/utils/makeEventHandler.js.map +1 -1
  95. package/package.json +6 -6
  96. 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
- declare 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
+ 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 '../_virtual/_tslib.js';
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
- ";\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
- if (props.size === TextButtonSizes.Large)
17
- return "1.8rem";
18
- if (props.size === TextButtonSizes.Regular)
19
- return "1.4rem";
20
- if (props.size === TextButtonSizes.Small)
21
- return "1.2rem";
22
- return "1.4rem";
23
- }, function (props) { return props.color; }, function (props) { return props.fontFamily; });
24
- var TextWithoutLink = styled.span(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n padding-right: 2px;\n"], ["\n padding-right: 2px;\n"])));
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
- 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, fontFamily = _a.fontFamily, iconMargin = _a.iconMargin;
28
- var iconSize = (function () {
29
- if (size === TextButtonSizes.Large) {
30
- return 14;
31
- }
32
- if (size === TextButtonSizes.Regular) {
33
- return 12;
34
- }
35
- if (size === TextButtonSizes.Small) {
36
- return 10;
37
- }
38
- return 12;
39
- })();
40
- return (React.createElement(Container, { margin: margin },
41
- React.createElement(InnerContainer, { onClick: onClick ? onClick : function () { } },
42
- icon && (React.createElement(Icon, { icon: icon, size: iconSize, color: color, margin: iconMargin || "0 7px 0 0", rotation: iconRotation })),
43
- React.createElement(TextWithoutLink, null, textWithoutLink),
44
- React.createElement(Text, { size: size, color: color, fontFamily: fontFamily }, children))));
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":["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,C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UAAA,CAAA;IAGV,IAAM,QAAQ,GAAG,CAAC,YAAA;AAChB,QAAA,IAAI,IAAI,KAAK,eAAe,CAAC,KAAK,EAAE;AAClC,YAAA,OAAO,EAAE,CAAC;AACX,SAAA;AACD,QAAA,IAAI,IAAI,KAAK,eAAe,CAAC,OAAO,EAAE;AACpC,YAAA,OAAO,EAAE,CAAC;AACX,SAAA;AACD,QAAA,IAAI,IAAI,KAAK,eAAe,CAAC,KAAK,EAAE;AAClC,YAAA,OAAO,EAAE,CAAC;AACX,SAAA;AACD,QAAA,OAAO,EAAE,CAAC;KACX,GAAG,CAAC;AAEL,IAAA,QACE,KAAC,CAAA,aAAA,CAAA,SAAS,EAAC,EAAA,MAAM,EAAE,MAAM,EAAA;AACvB,QAAA,KAAA,CAAA,aAAA,CAAC,cAAc,EAAA,EAAC,OAAO,EAAE,OAAO,GAAG,OAAO,GAAG,eAAS,EAAA;YACnD,IAAI,KACH,KAAA,CAAA,aAAA,CAAC,IAAI,EAAA,EACH,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,QAAQ,EACd,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,UAAU,IAAG,WAAW,EAChC,QAAQ,EAAE,YAAY,EAAA,CACtB,CACH;YACD,KAAC,CAAA,aAAA,CAAA,eAAe,EAAE,IAAA,EAAA,eAAe,CAAmB;AACpD,YAAA,KAAA,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
- declare type TipProps = {
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;
@@ -1,18 +1,18 @@
1
- import { __makeTemplateObject } from '../_virtual/_tslib.js';
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":["import React, { useLayoutEffect } from \"react\";\nimport styled from \"styled-components\";\nimport { Colors } from \"../Colors\";\nimport Icon, { Icons } from './Icon';\n// import ReactTooltip from \"react-tooltip\";\n\ntype ContainerProps = {\n margin?: string;\n};\n\nconst Container = styled.div<ContainerProps>`\n margin: ${(props) => props.margin};\n`;\n\ntype TipProps = {\n tip?: string;\n margin?: string;\n};\n\nconst Tip: React.FC<TipProps> = ({\n tip,\n margin,\n}) => {\n useLayoutEffect(() => {\n // ReactTooltip.rebuild();\n }, []);\n return (\n <Container margin={margin} data-tip={tip}>\n <Icon icon={Icons.InfotipSolid} color={Colors.Grey4} size={12} />\n </Container>\n );\n};\n\nexport default Tip;\n"],"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
+ {"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
- declare 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
+ 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 '../_virtual/_tslib.js';
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
- ";\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) {
9
- if (props.src) {
10
- if (props.invert) {
11
- return Colors.Grey6;
12
- }
13
- else {
14
- return Colors.Grey6;
15
- }
16
- }
17
- else if (props.invert) {
18
- return Colors.White;
19
- }
20
- else {
21
- return Colors.Grey1;
22
- }
23
- }, 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(" + props.src + ")"; });
24
- var UserImage = function (_a) {
25
- 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;
26
- if (!imageUrl) {
27
- var userInitials = '';
28
- if (firstName && lastName) {
29
- userInitials = "" + firstName.split('')[0] + lastName.split('')[0];
30
- }
31
- 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 }))));
32
- }
33
- return (React.createElement(UserImageDiv, { src: imageUrl, height: height, margin: margin, circle: circle }));
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":["import React from 'react';\nimport styled from 'styled-components';\nimport { Colors } from \"../Colors\";\nimport Icon, { Icons } from './Icon';\n\ntype ImageProps = {\n src?: string;\n height?: string;\n margin?: string;\n circle?: boolean;\n invert?: boolean;\n size?: string;\n};\nconst UserImageDiv = styled.div<ImageProps>`\n background-color: ${props => {\n if(props.src) {\n if(props.invert) {\n return Colors.Grey6;\n } else {\n return Colors.Grey6;\n }\n } else if(props.invert){\n return Colors.White;\n } else {\n return Colors.Grey1;\n }\n }};\n height: ${props => props.height};\n width: ${props => props.height};\n min-height: ${props => props.height};\n min-width: ${props => props.height};\n border-radius: ${props => (props.circle ? '50%' : '0')};\n color: ${props => (props.invert ? Colors.Grey1 : Colors.White)};\n font-size: ${props => props.size};\n font-weight: 600;\n display: flex;\n justify-content: center;\n align-items: center;\n margin: ${props => props.margin || '0px 10px 0px 0px'};\n background-image: ${props => `url(${props.src})`};\n background-position: center;\n background-size: cover;\n`;\n\ntype PropTypes = {\n imageUrl?: string;\n height?: string;\n size?: string;\n firstName: string;\n lastName: string;\n margin?: string;\n invert?: boolean;\n circle?: boolean;\n};\nconst UserImage: React.FC<PropTypes> = ({\n imageUrl,\n height = '45px',\n size = '1.8rem',\n firstName,\n lastName,\n margin,\n invert,\n circle = true,\n}) => {\n if (!imageUrl) {\n let userInitials = '';\n\n if (firstName && lastName) {\n userInitials = `${firstName.split('')[0]}${lastName.split('')[0]}`;\n }\n\n return (\n <UserImageDiv\n height={height}\n margin={margin}\n invert={invert}\n size={size}\n circle={circle}\n >\n {userInitials ? userInitials : (\n <Icon\n icon={Icons.UserSolid}\n color={invert ? Colors.Grey1 : Colors.White}\n size={16}\n />\n )}\n </UserImageDiv>\n );\n }\n\n return (\n <UserImageDiv\n src={imageUrl}\n height={height}\n margin={margin}\n circle={circle}\n />\n );\n}\n\nexport default UserImage;\n"],"names":[],"mappings":";;;;;;AAaA,IAAM,YAAY,GAAG,MAAM,CAAC,GAAG,0aAAY,wBACrB;IAYnB,eACS,EAAqB,cACtB,EAAqB,mBAChB,EAAqB,kBACtB,EAAqB,sBACjB,EAAqC,cAC7C,E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pE,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
- declare type UserInfoPropTypes = {
11
- user?: any;
12
- size?: UserInfoSizeEnum;
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;
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 '../_virtual/_tslib.js';
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 = (_e === void 0 ? {} : _e).imageUrl, imageUrl = _f === void 0 ? '' : _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":["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}&nbsp;{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,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,CAFU,CAAA,CAAA,EAAA,UAAC,K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AACJ,EAAC;;;;;"}
@@ -1,7 +1,7 @@
1
- import React from 'react';
2
- declare type ValidationErrorProps = {
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 '../_virtual/_tslib.js';
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":["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 </F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