@cerebruminc/cerebellum 13.0.3 → 13.1.0
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/lib/cjs/Avatar-7853412b.js +57 -0
- package/lib/cjs/Avatar-7853412b.js.map +1 -0
- package/lib/cjs/Avatar.cjs +1 -1
- package/lib/cjs/Form.cjs +2 -2
- package/lib/cjs/{FormStyles-91ec9d95.js → FormStyles-32ed485a.js} +9 -3
- package/lib/cjs/{FormStyles-91ec9d95.js.map → FormStyles-32ed485a.js.map} +1 -1
- package/lib/cjs/FormWrapper.cjs +1 -1
- package/lib/cjs/{FormikContainer-2566c74f.js → FormikContainer-0693d658.js} +21 -6
- package/lib/{esm/FormikContainer-a2570f47.js.map → cjs/FormikContainer-0693d658.js.map} +1 -1
- package/lib/cjs/{LogoSidebar-0bf2f163.js → LogoSidebar-0dcda0c6.js} +2 -2
- package/lib/cjs/LogoSidebar-0dcda0c6.js.map +1 -0
- package/lib/cjs/LogoSidebar.cjs +2 -2
- package/lib/cjs/{RJSForm-0eab2678.js → RJSForm-41ffb951.js} +2 -2
- package/lib/cjs/{RJSForm-0eab2678.js.map → RJSForm-41ffb951.js.map} +1 -1
- package/lib/cjs/RJSForm.cjs +2 -2
- package/lib/cjs/UserCard.cjs +1 -1
- package/lib/cjs/UserCardModal.cjs +1 -1
- package/lib/cjs/{UserInformationCard-d3ac00b2.js → UserInformationCard-7bc7953d.js} +9 -6
- package/lib/{esm/UserInformationCard-cce874e4.js.map → cjs/UserInformationCard-7bc7953d.js.map} +1 -1
- package/lib/cjs/UserInformationCard.cjs +2 -2
- package/lib/cjs/index.cjs +6 -6
- package/lib/esm/{Avatar-5871e463.js → Avatar-8566fcdb.js} +16 -6
- package/lib/esm/Avatar-8566fcdb.js.map +1 -0
- package/lib/esm/Avatar.js +1 -1
- package/lib/esm/Form.js +2 -2
- package/lib/esm/{FormStyles-6cb7c6ff.js → FormStyles-dc1864ed.js} +9 -3
- package/lib/esm/{FormStyles-6cb7c6ff.js.map → FormStyles-dc1864ed.js.map} +1 -1
- package/lib/esm/FormWrapper.js +1 -1
- package/lib/esm/{FormikContainer-a2570f47.js → FormikContainer-0040cee3.js} +23 -8
- package/lib/{cjs/FormikContainer-2566c74f.js.map → esm/FormikContainer-0040cee3.js.map} +1 -1
- package/lib/esm/{LogoSidebar-afdfe6f3.js → LogoSidebar-0903b0b7.js} +2 -2
- package/lib/esm/LogoSidebar-0903b0b7.js.map +1 -0
- package/lib/esm/LogoSidebar.js +2 -2
- package/lib/esm/{RJSForm-9962f5d7.js → RJSForm-27c455a6.js} +2 -2
- package/lib/esm/{RJSForm-9962f5d7.js.map → RJSForm-27c455a6.js.map} +1 -1
- package/lib/esm/RJSForm.js +2 -2
- package/lib/esm/UserCard.js +1 -1
- package/lib/esm/UserCardModal.js +1 -1
- package/lib/esm/{UserInformationCard-cce874e4.js → UserInformationCard-d25a7d83.js} +10 -7
- package/lib/{cjs/UserInformationCard-d3ac00b2.js.map → esm/UserInformationCard-d25a7d83.js.map} +1 -1
- package/lib/esm/UserInformationCard.js +2 -2
- package/lib/esm/index.js +7 -7
- package/lib/types/src/components/Avatar/AvatarStyles.d.ts +2 -1
- package/lib/types/src/components/Avatar/types.d.ts +6 -0
- package/lib/types/src/components/Form/fields/SectionHeader/SectionHeaderStyles.d.ts +9 -0
- package/lib/types/src/components/Form/types.d.ts +9 -1
- package/lib/types/src/components/UserInformationCard/types.d.ts +8 -0
- package/package.json +1 -1
- package/lib/cjs/Avatar-01129ec7.js +0 -47
- package/lib/cjs/Avatar-01129ec7.js.map +0 -1
- package/lib/cjs/LogoSidebar-0bf2f163.js.map +0 -1
- package/lib/esm/Avatar-5871e463.js.map +0 -1
- package/lib/esm/LogoSidebar-afdfe6f3.js.map +0 -1
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var _tslib = require('./_tslib-955e611e.js');
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
+
var pressedEnter = require('./pressedEnter.cjs');
|
|
6
|
+
var styled = require('styled-components');
|
|
7
|
+
var getInitialsOnly = require('./getInitialsOnly.cjs');
|
|
8
|
+
|
|
9
|
+
var Base = styled.styled.div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n width: ", "px;\n height: ", "px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: ", ";\n background: url(", ") no-repeat center,\n ", ";\n background-size: ", ";\n position: relative;\n"], ["\n width: ", "px;\n height: ", "px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: ", ";\n background: url(", ") no-repeat center,\n ", ";\n background-size: ", ";\n position: relative;\n"])), function (_a) {
|
|
10
|
+
var $themeOverride = _a.$themeOverride, theme = _a.theme;
|
|
11
|
+
return ($themeOverride === null || $themeOverride === void 0 ? void 0 : $themeOverride.size) || theme.avatar.size;
|
|
12
|
+
}, function (_a) {
|
|
13
|
+
var $themeOverride = _a.$themeOverride, theme = _a.theme;
|
|
14
|
+
return ($themeOverride === null || $themeOverride === void 0 ? void 0 : $themeOverride.size) || theme.avatar.size;
|
|
15
|
+
}, function (_a) {
|
|
16
|
+
var $square = _a.$square, $themeOverride = _a.$themeOverride;
|
|
17
|
+
return ($themeOverride === null || $themeOverride === void 0 ? void 0 : $themeOverride.borderRadius) ? "".concat($themeOverride.borderRadius, "px") : $square ? "0px" : "50%";
|
|
18
|
+
}, function (_a) {
|
|
19
|
+
var $imageUrl = _a.$imageUrl;
|
|
20
|
+
return $imageUrl;
|
|
21
|
+
}, function (_a) {
|
|
22
|
+
var $backgroundGradient = _a.$backgroundGradient, $themeOverride = _a.$themeOverride, theme = _a.theme;
|
|
23
|
+
return $backgroundGradient || ($themeOverride === null || $themeOverride === void 0 ? void 0 : $themeOverride.backgroundColor) || theme.avatar.backgroundColor;
|
|
24
|
+
}, function (_a) {
|
|
25
|
+
var $logo = _a.$logo;
|
|
26
|
+
return ($logo ? "contain" : "cover");
|
|
27
|
+
});
|
|
28
|
+
var Initials = styled.styled.h2(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n color: ", ";\n font-size: ", "px;\n position: relative;\n top: 2px;\n"], ["\n color: ", ";\n font-size: ", "px;\n position: relative;\n top: 2px;\n"])), function (_a) {
|
|
29
|
+
var $placeholderInitialsColorOverride = _a.$placeholderInitialsColorOverride;
|
|
30
|
+
return $placeholderInitialsColorOverride;
|
|
31
|
+
}, function (_a) {
|
|
32
|
+
var _b;
|
|
33
|
+
var $themeOverride = _a.$themeOverride, theme = _a.theme;
|
|
34
|
+
return ((_b = $themeOverride === null || $themeOverride === void 0 ? void 0 : $themeOverride.size) !== null && _b !== void 0 ? _b : theme.avatar.size) / 3.13;
|
|
35
|
+
});
|
|
36
|
+
var Badge = styled.styled.div(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n background: url(", ") no-repeat;\n background-size: contain;\n border-radius: 50%;\n bottom: 0;\n height: ", "px;\n left: 50%;\n position: absolute;\n transform: translate(-46%, 40%);\n width: ", "px;\n z-index: 10;\n"], ["\n background: url(", ") no-repeat;\n background-size: contain;\n border-radius: 50%;\n bottom: 0;\n height: ", "px;\n left: 50%;\n position: absolute;\n transform: translate(-46%, 40%);\n width: ", "px;\n z-index: 10;\n"])), function (_a) {
|
|
37
|
+
var $badgeUrl = _a.$badgeUrl;
|
|
38
|
+
return $badgeUrl;
|
|
39
|
+
}, function (_a) {
|
|
40
|
+
var $themeOverride = _a.$themeOverride, theme = _a.theme;
|
|
41
|
+
return (($themeOverride === null || $themeOverride === void 0 ? void 0 : $themeOverride.size) ? $themeOverride.size * 0.28 : theme.avatar.size * 0.28);
|
|
42
|
+
}, function (_a) {
|
|
43
|
+
var $themeOverride = _a.$themeOverride, theme = _a.theme;
|
|
44
|
+
return (($themeOverride === null || $themeOverride === void 0 ? void 0 : $themeOverride.size) ? $themeOverride.size * 0.28 : theme.avatar.size * 0.28);
|
|
45
|
+
});
|
|
46
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
47
|
+
|
|
48
|
+
var Avatar = function (_a) {
|
|
49
|
+
var backgroundGradient = _a.backgroundGradient, badgeUrl = _a.badgeUrl, imageUrl = _a.imageUrl, logo = _a.logo, placeholderInitials = _a.placeholderInitials, placeholderInitialsColorOverride = _a.placeholderInitialsColorOverride, square = _a.square, themeOverride = _a.themeOverride;
|
|
50
|
+
var theme = styled.useTheme();
|
|
51
|
+
var bgColor = (themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.backgroundColor) || theme.avatar.backgroundColor;
|
|
52
|
+
return (jsxRuntime.jsxs(Base, _tslib.__assign({ "data-testid": "bg-base", "$backgroundGradient": backgroundGradient, "$imageUrl": imageUrl, "$logo": logo, "$themeOverride": themeOverride, "$square": square }, { children: [!imageUrl && (jsxRuntime.jsx(Initials, _tslib.__assign({ "$placeholderInitialsColorOverride": placeholderInitialsColorOverride || pressedEnter.higherContrast({ color: bgColor, preferHigh: true }), "$themeOverride": themeOverride }, { children: getInitialsOnly.getInitialsOnly(placeholderInitials) }), void 0)), badgeUrl && jsxRuntime.jsx(Badge, { "$badgeUrl": badgeUrl, "$themeOverride": themeOverride }, void 0)] }), void 0));
|
|
53
|
+
};
|
|
54
|
+
Avatar.defaultProps = {};
|
|
55
|
+
|
|
56
|
+
exports.Avatar = Avatar;
|
|
57
|
+
//# sourceMappingURL=Avatar-7853412b.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Avatar-7853412b.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/cjs/Avatar.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Avatar = require('./Avatar-
|
|
5
|
+
var Avatar = require('./Avatar-7853412b.js');
|
|
6
6
|
var getInitialsOnly = require('./getInitialsOnly.cjs');
|
|
7
7
|
require('./_tslib-955e611e.js');
|
|
8
8
|
require('react/jsx-runtime');
|
package/lib/cjs/Form.cjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var FormikContainer = require('./FormikContainer-
|
|
6
|
-
var FormWrapper = require('./FormStyles-
|
|
5
|
+
var FormikContainer = require('./FormikContainer-0693d658.js');
|
|
6
|
+
var FormWrapper = require('./FormStyles-32ed485a.js');
|
|
7
7
|
var FormFieldTypeEnum = require('./FormFieldTypeEnum.cjs');
|
|
8
8
|
require('./_tslib-955e611e.js');
|
|
9
9
|
require('react/jsx-runtime');
|
|
@@ -537,7 +537,7 @@ var ClearFormButtonWrap = styled.styled.div(templateObject_5 || (templateObject_
|
|
|
537
537
|
var $clickable = _a.$clickable;
|
|
538
538
|
return ($clickable ? 1 : 0);
|
|
539
539
|
});
|
|
540
|
-
var FieldBox = styled.styled.div(templateObject_6 || (templateObject_6 = _tslib.__makeTemplateObject(["\n display: ", ";\n column-gap: 12px;\n grid-template-columns: ", ";\n margin-bottom: ", "px;\n max-width: ", ";\n opacity: ", ";\n"], ["\n display: ", ";\n column-gap: 12px;\n grid-template-columns: ", ";\n margin-bottom: ", "px;\n max-width: ", ";\n opacity: ", ";\n"])), function (_a) {
|
|
540
|
+
var FieldBox = styled.styled.div(templateObject_6 || (templateObject_6 = _tslib.__makeTemplateObject(["\n display: ", ";\n column-gap: 12px;\n grid-template-columns: ", ";\n margin-bottom: ", "px;\n max-width: ", ";\n margin: ", ";\n opacity: ", ";\n"], ["\n display: ", ";\n column-gap: 12px;\n grid-template-columns: ", ";\n margin-bottom: ", "px;\n max-width: ", ";\n margin: ", ";\n opacity: ", ";\n"])), function (_a) {
|
|
541
541
|
var $leftLabelLayout = _a.$leftLabelLayout;
|
|
542
542
|
return ($leftLabelLayout ? "grid" : "block");
|
|
543
543
|
}, function (_a) {
|
|
@@ -549,6 +549,9 @@ var FieldBox = styled.styled.div(templateObject_6 || (templateObject_6 = _tslib.
|
|
|
549
549
|
}, function (_a) {
|
|
550
550
|
var $fieldWidth = _a.$fieldWidth;
|
|
551
551
|
return ($fieldWidth ? "".concat($fieldWidth, "px") : "inherit");
|
|
552
|
+
}, function (_a) {
|
|
553
|
+
var $marginString = _a.$marginString;
|
|
554
|
+
return $marginString;
|
|
552
555
|
}, function (_a) {
|
|
553
556
|
var $fade = _a.$fade;
|
|
554
557
|
return ($fade ? 0 : 1);
|
|
@@ -680,7 +683,10 @@ var SubHeader = styled.styled(BodyLEmphasis.BodyXSEmphasis)(templateObject_27 ||
|
|
|
680
683
|
var $maxWidth = _a.$maxWidth;
|
|
681
684
|
return $maxWidth !== null && $maxWidth !== void 0 ? $maxWidth : 700;
|
|
682
685
|
});
|
|
683
|
-
var Separator = styled.styled.hr(templateObject_28 || (templateObject_28 = _tslib.__makeTemplateObject(["\n margin: ", ";\n border: none;\n background-color: ", ";\n height: 1px;\n"], ["\n margin: ", ";\n border: none;\n background-color: ", ";\n height: 1px;\n"])), function (_a) {
|
|
686
|
+
var Separator = styled.styled.hr(templateObject_28 || (templateObject_28 = _tslib.__makeTemplateObject(["\n width: calc(100% + ", "px);\n margin: ", ";\n border: none;\n background-color: ", ";\n height: 1px;\n"], ["\n width: calc(100% + ", "px);\n margin: ", ";\n border: none;\n background-color: ", ";\n height: 1px;\n"])), function (_a) {
|
|
687
|
+
var $seperatorOverflow = _a.$seperatorOverflow;
|
|
688
|
+
return $seperatorOverflow !== null && $seperatorOverflow !== void 0 ? $seperatorOverflow : 0;
|
|
689
|
+
}, function (_a) {
|
|
684
690
|
var $marginString = _a.$marginString;
|
|
685
691
|
return $marginString;
|
|
686
692
|
}, function (_a) {
|
|
@@ -748,4 +754,4 @@ exports.formHasValues = formHasValues;
|
|
|
748
754
|
exports.formatInitialValues = formatInitialValues;
|
|
749
755
|
exports.formatValidation = formatValidation;
|
|
750
756
|
exports.shouldFade = shouldFade;
|
|
751
|
-
//# sourceMappingURL=FormStyles-
|
|
757
|
+
//# sourceMappingURL=FormStyles-32ed485a.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormStyles-
|
|
1
|
+
{"version":3,"file":"FormStyles-32ed485a.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/cjs/FormWrapper.cjs
CHANGED
|
@@ -7,7 +7,7 @@ require('styled-components');
|
|
|
7
7
|
require('./BodyLEmphasis.cjs');
|
|
8
8
|
require('./Inputs-e71bb0b9.js');
|
|
9
9
|
require('./colors.cjs');
|
|
10
|
-
var FormWrapper = require('./FormStyles-
|
|
10
|
+
var FormWrapper = require('./FormStyles-32ed485a.js');
|
|
11
11
|
require('./Loading.cjs');
|
|
12
12
|
require('./Scroller.cjs');
|
|
13
13
|
require('react/jsx-runtime');
|
|
@@ -17,7 +17,7 @@ var usePrevious = require('./usePrevious.cjs');
|
|
|
17
17
|
require('./Loading.cjs');
|
|
18
18
|
var Scroller = require('./Scroller.cjs');
|
|
19
19
|
var ButtonColorFamilyEnum = require('./ButtonColorFamilyEnum.cjs');
|
|
20
|
-
var FormWrapper = require('./FormStyles-
|
|
20
|
+
var FormWrapper = require('./FormStyles-32ed485a.js');
|
|
21
21
|
var FormFieldTypeEnum = require('./FormFieldTypeEnum.cjs');
|
|
22
22
|
var AddressInput = require('./AddressInput-868cf326.js');
|
|
23
23
|
var Inputs = require('./Inputs-e71bb0b9.js');
|
|
@@ -62,7 +62,6 @@ require('./colors.cjs');
|
|
|
62
62
|
require('chroma-js');
|
|
63
63
|
require('./IconComponentStyles-64e1c8e7.js');
|
|
64
64
|
var PlusCircle = require('./PlusCircle.cjs');
|
|
65
|
-
var BodyLEmphasis = require('./BodyLEmphasis.cjs');
|
|
66
65
|
var ToggleItem = require('./ToggleItem-a6e5b1bd.js');
|
|
67
66
|
var InlineTextarea = require('./InlineTextarea.cjs');
|
|
68
67
|
var Textarea = require('./Textarea.cjs');
|
|
@@ -912,17 +911,33 @@ var RemovableField = function (_a) {
|
|
|
912
911
|
}), jsxRuntime.jsx(FormWrapper.RemoveButtonWrapper, { children: jsxRuntime.jsx(TextButton.TextButton, { onClick: handleRemove, text: removeButtonText }, void 0) }, void 0)] }), void 0)) : (jsxRuntime.jsx(FormWrapper.RemovableButtonBox, _tslib.__assign({ "$fade": fade, "$rowGap": rowGap }, { children: jsxRuntime.jsx(TextButton.TextButton, { onClick: function () { return setShowInput(true); }, text: addButtonText, Icon: PlusCircle.PlusCircle, iconGap: 14 }, void 0) }), void 0));
|
|
913
912
|
};
|
|
914
913
|
|
|
914
|
+
var Header = styled.styled.h3(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n color: ", ";\n font-size: ", "px;\n font-weight: ", ";\n letter-spacing: 0.48px;\n line-height: ", "px;\n"], ["\n color: ", ";\n font-size: ", "px;\n font-weight: ", ";\n letter-spacing: 0.48px;\n line-height: ", "px;\n"])), function (_a) {
|
|
915
|
+
var _b;
|
|
916
|
+
var $textColor = _a.$textColor, theme = _a.theme;
|
|
917
|
+
return $textColor || ((_b = theme.text) === null || _b === void 0 ? void 0 : _b.primary);
|
|
918
|
+
}, function (_a) {
|
|
919
|
+
var $fontSize = _a.$fontSize;
|
|
920
|
+
return $fontSize || 22;
|
|
921
|
+
}, function (_a) {
|
|
922
|
+
var $fontWeight = _a.$fontWeight;
|
|
923
|
+
return $fontWeight || 600;
|
|
924
|
+
}, function (_a) {
|
|
925
|
+
var $lineHeight = _a.$lineHeight, $fontSize = _a.$fontSize;
|
|
926
|
+
return $lineHeight || (($fontSize || 22) * 1.6);
|
|
927
|
+
});
|
|
928
|
+
var templateObject_1;
|
|
929
|
+
|
|
915
930
|
var SectionHeader = function (_a) {
|
|
916
931
|
var fade = _a.fade, field = _a.field, fieldIndex = _a.fieldIndex, removeAnimation = _a.removeAnimation, rowGap = _a.rowGap, setIsDeleting = _a.setIsDeleting, themeOverride = _a.themeOverride;
|
|
917
|
-
var header = field.header, nextGap = field.nextGap, separator = field.separator, _b = field.separatorMarginString, separatorMarginString =
|
|
932
|
+
var header = field.header, nextGap = field.nextGap, separatorOverflow = field.separatorOverflow, separator = field.separator, _b = field.separatorPosition, separatorPosition = _b === void 0 ? "top" : _b, _c = field.separatorMarginString, separatorMarginString = _c === void 0 ? "42px 0 26px" : _c, subHeader = field.subHeader, text = field.text, remove = field.remove, _d = field.width, width = _d === void 0 ? 700 : _d;
|
|
918
933
|
var theme = styled.useTheme();
|
|
919
|
-
return (jsxRuntime.jsxs(FormWrapper.FieldBox, _tslib.__assign({ "$fade": fade, "$rowGap": nextGap !== null && nextGap !== void 0 ? nextGap : rowGap }, { children: [separator && (jsxRuntime.jsx(FormWrapper.Separator, { "$marginString": separatorMarginString, "$themeOverride": themeOverride, "data-testid": "SectionHeader_separator" }, void 0)), jsxRuntime.jsxs(FormWrapper.TitleGroup, _tslib.__assign({ "$roomForRemove": !!remove, "$maxWidth": width }, { children: [header && jsxRuntime.jsx(
|
|
934
|
+
return (jsxRuntime.jsxs(FormWrapper.FieldBox, _tslib.__assign({ "$fade": fade, "$rowGap": nextGap !== null && nextGap !== void 0 ? nextGap : rowGap }, { children: [separator && (separatorPosition === "top" || separatorPosition === undefined) && (jsxRuntime.jsx(FormWrapper.Separator, { "$marginString": separatorMarginString, "$themeOverride": themeOverride, "$seperatorOverflow": separatorOverflow, "data-testid": "SectionHeader_separator" }, void 0)), jsxRuntime.jsxs(FormWrapper.TitleGroup, _tslib.__assign({ "$roomForRemove": !!remove, "$maxWidth": width }, { children: [header && jsxRuntime.jsx(Header, _tslib.__assign({ "$fontSize": themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.sectionHeaderFontSize, "$textColor": themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.sectionHeaderColor, "$fontWeight": themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.sectionHeaderFontWeight, "$lineHeight": themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.sectionHeaderLineHeight }, { children: header }), void 0), remove && (jsxRuntime.jsx(TextButton.TextButton, { onClick: function (event) {
|
|
920
935
|
removeAnimation(fieldIndex);
|
|
921
936
|
setTimeout(function () {
|
|
922
937
|
remove(event);
|
|
923
938
|
setIsDeleting(false);
|
|
924
939
|
}, 400);
|
|
925
|
-
}, text: "Remove", colorFamily: (themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.removeButtonColorFamily) || theme.form.removeButtonColorFamily }, void 0))] }), void 0), text && (jsxRuntime.jsx(FormWrapper.Text, _tslib.__assign({ "$textColor": themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.sectionTextColor, "$maxWidth": width }, { children: text }), void 0)), subHeader && (jsxRuntime.jsx(FormWrapper.SubHeader, _tslib.__assign({ "$textColor": themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.sectionSubHeaderColor, "$maxWidth": width }, { children: subHeader }), void 0))] }), void 0));
|
|
940
|
+
}, text: "Remove", colorFamily: (themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.removeButtonColorFamily) || theme.form.removeButtonColorFamily }, void 0))] }), void 0), text && (jsxRuntime.jsx(FormWrapper.Text, _tslib.__assign({ "$textColor": themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.sectionTextColor, "$maxWidth": width }, { children: text }), void 0)), subHeader && (jsxRuntime.jsx(FormWrapper.SubHeader, _tslib.__assign({ "$textColor": themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.sectionSubHeaderColor, "$maxWidth": width }, { children: subHeader }), void 0)), separator && separatorPosition === "bottom" && (jsxRuntime.jsx(FormWrapper.Separator, { "$marginString": separatorMarginString, "$themeOverride": themeOverride, "$seperatorOverflow": separatorOverflow, "data-testid": "SectionHeader_separator" }, void 0))] }), void 0));
|
|
926
941
|
};
|
|
927
942
|
|
|
928
943
|
var ToggleField = function (_a) {
|
|
@@ -1281,4 +1296,4 @@ FormikContainer.defaultProps = {
|
|
|
1281
1296
|
};
|
|
1282
1297
|
|
|
1283
1298
|
exports.FormikContainer = FormikContainer;
|
|
1284
|
-
//# sourceMappingURL=FormikContainer-
|
|
1299
|
+
//# sourceMappingURL=FormikContainer-0693d658.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormikContainer-
|
|
1
|
+
{"version":3,"file":"FormikContainer-0693d658.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -4,7 +4,7 @@ var _tslib = require('./_tslib-955e611e.js');
|
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var styled = require('styled-components');
|
|
7
|
-
var Avatar = require('./Avatar-
|
|
7
|
+
var Avatar = require('./Avatar-7853412b.js');
|
|
8
8
|
var InteriorSidebar = require('./InteriorSidebar-d3b7fa0d.js');
|
|
9
9
|
var useMeasure = require('./useMeasure-99851af4.js');
|
|
10
10
|
var isEmptyObject = require('./isEmptyObject.cjs');
|
|
@@ -56,4 +56,4 @@ var LogoSidebar = function (_a) {
|
|
|
56
56
|
LogoSidebar.defaultProps = {};
|
|
57
57
|
|
|
58
58
|
exports.LogoSidebar = LogoSidebar;
|
|
59
|
-
//# sourceMappingURL=LogoSidebar-
|
|
59
|
+
//# sourceMappingURL=LogoSidebar-0dcda0c6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LogoSidebar-0dcda0c6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/cjs/LogoSidebar.cjs
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var LogoSidebar = require('./LogoSidebar-
|
|
5
|
+
var LogoSidebar = require('./LogoSidebar-0dcda0c6.js');
|
|
6
6
|
require('./_tslib-955e611e.js');
|
|
7
7
|
require('react/jsx-runtime');
|
|
8
8
|
require('react');
|
|
9
9
|
require('styled-components');
|
|
10
|
-
require('./Avatar-
|
|
10
|
+
require('./Avatar-7853412b.js');
|
|
11
11
|
require('./pressedEnter.cjs');
|
|
12
12
|
require('chroma-js');
|
|
13
13
|
require('./getInitialsOnly.cjs');
|
|
@@ -22,7 +22,7 @@ require('./Button.cjs');
|
|
|
22
22
|
var PrimaryButton = require('./PrimaryButton.cjs');
|
|
23
23
|
require('./ButtonVariantEnum.cjs');
|
|
24
24
|
var isEmptyObject = require('./isEmptyObject.cjs');
|
|
25
|
-
var FormWrapper = require('./FormStyles-
|
|
25
|
+
var FormWrapper = require('./FormStyles-32ed485a.js');
|
|
26
26
|
var BodyLEmphasis = require('./BodyLEmphasis.cjs');
|
|
27
27
|
var TextButton = require('./TextButton.cjs');
|
|
28
28
|
var AddButton = require('./AddButton-91ec6c74.js');
|
|
@@ -373,4 +373,4 @@ RJSForm.defaultProps = {
|
|
|
373
373
|
};
|
|
374
374
|
|
|
375
375
|
exports.RJSForm = RJSForm;
|
|
376
|
-
//# sourceMappingURL=RJSForm-
|
|
376
|
+
//# sourceMappingURL=RJSForm-41ffb951.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RJSForm-
|
|
1
|
+
{"version":3,"file":"RJSForm-41ffb951.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/cjs/RJSForm.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var RJSForm = require('./RJSForm-
|
|
5
|
+
var RJSForm = require('./RJSForm-41ffb951.js');
|
|
6
6
|
var types = require('./types-92e1c1ae.js');
|
|
7
7
|
require('./_tslib-955e611e.js');
|
|
8
8
|
require('react/jsx-runtime');
|
|
@@ -81,7 +81,7 @@ require('./Close-e7de6f54.js');
|
|
|
81
81
|
require('./useMeasureWatchResize-1bef92e8.js');
|
|
82
82
|
require('./DropdownInputStyles-13901ba5.js');
|
|
83
83
|
require('./PrimaryButton.cjs');
|
|
84
|
-
require('./FormStyles-
|
|
84
|
+
require('./FormStyles-32ed485a.js');
|
|
85
85
|
require('yup');
|
|
86
86
|
require('./FormFieldTypeEnum.cjs');
|
|
87
87
|
require('./northAmericanNumberingPlanRegex.cjs');
|
package/lib/cjs/UserCard.cjs
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var _tslib = require('./_tslib-955e611e.js');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
var React = require('react');
|
|
8
|
-
var Avatar = require('./Avatar-
|
|
8
|
+
var Avatar = require('./Avatar-7853412b.js');
|
|
9
9
|
var getInitialsOnly = require('./getInitialsOnly.cjs');
|
|
10
10
|
var colors = require('./colors.cjs');
|
|
11
11
|
var pressedEnter = require('./pressedEnter.cjs');
|
|
@@ -11,7 +11,7 @@ require('react');
|
|
|
11
11
|
require('react-dom');
|
|
12
12
|
require('./position-0d230ab8.js');
|
|
13
13
|
require('./isEmptyObject.cjs');
|
|
14
|
-
require('./Avatar-
|
|
14
|
+
require('./Avatar-7853412b.js');
|
|
15
15
|
require('./pressedEnter.cjs');
|
|
16
16
|
require('chroma-js');
|
|
17
17
|
require('./getInitialsOnly.cjs');
|
|
@@ -5,7 +5,7 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var colors = require('./colors.cjs');
|
|
7
7
|
var isEmptyObject = require('./isEmptyObject.cjs');
|
|
8
|
-
var Avatar = require('./Avatar-
|
|
8
|
+
var Avatar = require('./Avatar-7853412b.js');
|
|
9
9
|
var useMeasure = require('./useMeasure-99851af4.js');
|
|
10
10
|
var TruncatePicker = require('./TruncatePicker-36c3071c.js');
|
|
11
11
|
var BodyLEmphasis = require('./BodyLEmphasis.cjs');
|
|
@@ -105,7 +105,7 @@ var TextWithLoader = styled.styled(BodyLEmphasis.BodyMPrimary)(templateObject_9
|
|
|
105
105
|
var $isLoading = _a.$isLoading;
|
|
106
106
|
return $isLoading && Loading.loadingPseudo({ loadingColor: colors.colors.COOL_GREY_15, bgColor: colors.colors.COOL_GREY_4, borderRadius: 6, topOffset: 2 });
|
|
107
107
|
});
|
|
108
|
-
var TitleWithLoader = styled.styled(BodyLEmphasis.BodyLEmphasis)(templateObject_10 || (templateObject_10 = _tslib.__makeTemplateObject(["\n color: ", ";\n overflow-wrap: anywhere;\n line-height: ", "px;\n display: ", ";\n max-width: ", ";\n ", ";\n"], ["\n color: ", ";\n overflow-wrap: anywhere;\n line-height: ", "px;\n display: ", ";\n max-width: ", ";\n ", ";\n"])), function (_a) {
|
|
108
|
+
var TitleWithLoader = styled.styled(BodyLEmphasis.BodyLEmphasis)(templateObject_10 || (templateObject_10 = _tslib.__makeTemplateObject(["\n color: ", ";\n overflow-wrap: anywhere;\n line-height: ", "px;\n display: ", ";\n max-width: ", ";\n ", ";\n text-align: ", ";\n"], ["\n color: ", ";\n overflow-wrap: anywhere;\n line-height: ", "px;\n display: ", ";\n max-width: ", ";\n ", ";\n text-align: ", ";\n"])), function (_a) {
|
|
109
109
|
var $textColor = _a.$textColor;
|
|
110
110
|
return $textColor !== null && $textColor !== void 0 ? $textColor : colors.colors.BLACK;
|
|
111
111
|
}, function (_a) {
|
|
@@ -120,6 +120,9 @@ var TitleWithLoader = styled.styled(BodyLEmphasis.BodyLEmphasis)(templateObject_
|
|
|
120
120
|
}, function (_a) {
|
|
121
121
|
var isLoading = _a.$isLoading;
|
|
122
122
|
return isLoading && Loading.loadingPseudo({ loadingColor: colors.colors.COOL_GREY_15, bgColor: colors.colors.COOL_GREY_4, borderRadius: 6, topOffset: 2 });
|
|
123
|
+
}, function (_a) {
|
|
124
|
+
var $centerName = _a.$centerName, $horizontal = _a.$horizontal;
|
|
125
|
+
return ($centerName && !$horizontal ? "center" : "left");
|
|
123
126
|
});
|
|
124
127
|
var ChildWrapper = styled.styled.div(templateObject_11 || (templateObject_11 = _tslib.__makeTemplateObject(["\n padding: 0 42px 52px 42px;\n"], ["\n padding: 0 42px 52px 42px;\n"])));
|
|
125
128
|
var Divider = styled.styled.hr(templateObject_12 || (templateObject_12 = _tslib.__makeTemplateObject(["\n background-color: ", ";\n border: none;\n height: 1px;\n margin: 0 -9px 8px;\n"], ["\n background-color: ", ";\n border: none;\n height: 1px;\n margin: 0 -9px 8px;\n"])), function (_a) {
|
|
@@ -131,7 +134,7 @@ var ClearableTagWrapper = styled.styled.div(templateObject_13 || (templateObject
|
|
|
131
134
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13;
|
|
132
135
|
|
|
133
136
|
var UserInformationCard = function (_a) {
|
|
134
|
-
var
|
|
137
|
+
var address1 = _a.address1, address2 = _a.address2, avatarBadgeUrl = _a.avatarBadgeUrl, avatarImageUrl = _a.avatarImageUrl, boxShadowString = _a.boxShadowString, centerName = _a.centerName, children = _a.children, city = _a.city, clearableMessage = _a.clearableMessage, ClearableMessageIcon = _a.ClearableMessageIcon, dob = _a.dob, firstName = _a.firstName, horizontal = _a.horizontal, isLoading = _a.isLoading, lastName = _a.lastName, maxHeightInternalCalcString = _a.maxHeightInternalCalcString, middleName = _a.middleName, orderType = _a.orderType, removeConsumerLabel = _a.removeConsumerLabel, squareAvatar = _a.squareAvatar, state = _a.state, ssn = _a.ssn, themeOverride = _a.themeOverride, width = _a.width, zip = _a.zip;
|
|
135
138
|
var _b = useMeasure.useMeasure(), dataWrapperRef = _b[0], dataWrapperMeasure = _b[1];
|
|
136
139
|
var _c = useMeasure.useMeasure(), avatarWrapperRef = _c[0], avatarWrapperMeasure = _c[1];
|
|
137
140
|
var _d = React.useState(186), orderTagMaxWidth = _d[0], setOrderTagMaxWidth = _d[1];
|
|
@@ -212,7 +215,7 @@ var UserInformationCard = function (_a) {
|
|
|
212
215
|
React.useEffect(function () {
|
|
213
216
|
setOrderTagMaxWidth(avatarWrapperMeasure.width);
|
|
214
217
|
}, [avatarWrapperMeasure.width]);
|
|
215
|
-
return (jsxRuntime.jsxs(CardBox, _tslib.__assign({ "$boxShadowString": boxShadowString, "$horizontal": horizontal, "$maxHeightInternalCalcString": maxHeightInternalCalcString, "$width": width }, { children: [jsxRuntime.jsxs(AvatarWrapper, _tslib.__assign({ ref: avatarWrapperRef, "$horizontal": horizontal, "$themeOverride": themeOverride }, { children: [jsxRuntime.jsx(OrderTag, _tslib.__assign({ "$width": orderTagMaxWidth }, { children: jsxRuntime.jsx(TruncatePicker.TruncatePicker, { children: orderType }, void 0) }), void 0), jsxRuntime.jsx(Avatar.Avatar, { backgroundGradient: (themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.avatarBackgroundColor) || gradients.gradients.avatar, imageUrl: avatarImageUrl, square: squareAvatar, themeOverride: avatarOverride, placeholderInitials: fullName }, void 0)] }), void 0), jsxRuntime.jsx(HorizontalMeasure, _tslib.__assign({}, (horizontal ? { ref: dataWrapperRef } : {}), { children: jsxRuntime.jsxs(ScrollBox, _tslib.__assign({ "$maxHeightInternalCalcString": maxHeightInternalCalcString, "$horizontal": horizontal }, { children: [jsxRuntime.jsxs(DataWrapper, _tslib.__assign({ "$hasChildren": hasChildren, "$horizontal": horizontal, "$breakSSN": breakSSN, "$breakLayout": breakLayout }, { children: [clearableMessage && showClearableMessage && (jsxRuntime.jsx(ClearableTagWrapper, { children: jsxRuntime.jsx(ClearableTag.ClearableTag, { noXShadow: true, colorFamily: ButtonColorFamilyEnum.ButtonColorFamilyEnum.Purple, tag: {
|
|
218
|
+
return (jsxRuntime.jsxs(CardBox, _tslib.__assign({ "$boxShadowString": boxShadowString, "$horizontal": horizontal, "$maxHeightInternalCalcString": maxHeightInternalCalcString, "$width": width }, { children: [jsxRuntime.jsxs(AvatarWrapper, _tslib.__assign({ ref: avatarWrapperRef, "$horizontal": horizontal, "$themeOverride": themeOverride }, { children: [orderType && (jsxRuntime.jsx(OrderTag, _tslib.__assign({ "$width": orderTagMaxWidth }, { children: jsxRuntime.jsx(TruncatePicker.TruncatePicker, { children: orderType }, void 0) }), void 0)), jsxRuntime.jsx(Avatar.Avatar, { backgroundGradient: (themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.avatarBackgroundColor) || gradients.gradients.avatar, badgeUrl: avatarBadgeUrl, imageUrl: avatarImageUrl, square: squareAvatar, themeOverride: avatarOverride, placeholderInitials: fullName }, void 0)] }), void 0), jsxRuntime.jsx(HorizontalMeasure, _tslib.__assign({}, (horizontal ? { ref: dataWrapperRef } : {}), { children: jsxRuntime.jsxs(ScrollBox, _tslib.__assign({ "$maxHeightInternalCalcString": maxHeightInternalCalcString, "$horizontal": horizontal }, { children: [jsxRuntime.jsxs(DataWrapper, _tslib.__assign({ "$hasChildren": hasChildren, "$horizontal": horizontal, "$breakSSN": breakSSN, "$breakLayout": breakLayout }, { children: [clearableMessage && showClearableMessage && (jsxRuntime.jsx(ClearableTagWrapper, { children: jsxRuntime.jsx(ClearableTag.ClearableTag, { noXShadow: true, colorFamily: ButtonColorFamilyEnum.ButtonColorFamilyEnum.Purple, tag: {
|
|
216
219
|
Icon: ClearableMessageIcon,
|
|
217
220
|
id: "clearable-tag",
|
|
218
221
|
label: clearableMessage || "",
|
|
@@ -220,8 +223,8 @@ var UserInformationCard = function (_a) {
|
|
|
220
223
|
fontSize: 13,
|
|
221
224
|
}, xClick: function () {
|
|
222
225
|
setShowClearableMessage(false);
|
|
223
|
-
} }, void 0) }, void 0)), jsxRuntime.jsxs(Item, _tslib.__assign({ "$gridArea": "name" }, { children: [jsxRuntime.jsx(Label, { children: "Consumer" }, void 0), jsxRuntime.jsx(TitleWithLoader, _tslib.__assign({ "$isLoading": isLoading, "$lineHeight": 24 }, { children: displayName }), void 0)] }), void 0), jsxRuntime.jsxs(Item, _tslib.__assign({ "$gridArea": "address" }, { children: [jsxRuntime.jsx(Label, { children: "Address" }, void 0), addressLineOne && (jsxRuntime.jsx(TextWithLoader, _tslib.__assign({ "$isLoading": isLoading, "$long": true, "$textColor": colors.colors.COOL_GREY_100 }, { children: addressLineOne }), void 0)), addressLineTwo && (jsxRuntime.jsx(TextWithLoader, _tslib.__assign({ "$isLoading": isLoading, "$long": true, "$textColor": colors.colors.COOL_GREY_100 }, { children: addressLineTwo }), void 0)),
|
|
226
|
+
} }, void 0) }, void 0)), jsxRuntime.jsxs(Item, _tslib.__assign({ "$gridArea": "name" }, { children: [!removeConsumerLabel && jsxRuntime.jsx(Label, { children: "Consumer" }, void 0), jsxRuntime.jsx(TitleWithLoader, _tslib.__assign({ "$centerName": centerName, "$horizontal": horizontal, "$isLoading": isLoading, "$lineHeight": 24 }, { children: displayName }), void 0)] }), void 0), jsxRuntime.jsxs(Item, _tslib.__assign({ "$gridArea": "address" }, { children: [jsxRuntime.jsx(Label, { children: "Address" }, void 0), addressLineOne || addressLineTwo ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [addressLineOne && (jsxRuntime.jsx(TextWithLoader, _tslib.__assign({ "$isLoading": isLoading, "$long": true, "$textColor": colors.colors.COOL_GREY_100 }, { children: addressLineOne }), void 0)), addressLineTwo && (jsxRuntime.jsx(TextWithLoader, _tslib.__assign({ "$isLoading": isLoading, "$long": true, "$textColor": colors.colors.COOL_GREY_100 }, { children: addressLineTwo }), void 0))] }, void 0)) : (jsxRuntime.jsx(TextWithLoader, _tslib.__assign({ "$isLoading": isLoading, "$long": true, "$textColor": colors.colors.COOL_GREY_100 }, { children: "N/A" }), void 0))] }), void 0), dob != null && (jsxRuntime.jsxs(Item, _tslib.__assign({ "$gridArea": "dob" }, { children: [jsxRuntime.jsx(Label, { children: "DOB" }, void 0), jsxRuntime.jsx(TextWithLoader, _tslib.__assign({ "$isLoading": isLoading, "$loadingLength": 140, "$textColor": colors.colors.COOL_GREY_100 }, { children: dob === "" ? "N/A" : dob }), void 0)] }), void 0)), ssn != null && (jsxRuntime.jsxs(Item, _tslib.__assign({ "$gridArea": "ssn" }, { children: [jsxRuntime.jsx(Label, { children: "SSN" }, void 0), jsxRuntime.jsx(TextWithLoader, _tslib.__assign({ "$isLoading": isLoading, "$loadingLength": 120, "$textColor": colors.colors.COOL_GREY_100 }, { children: ssn === "" ? "N/A" : applySsnMask.applySsnMask({ numberValue: ssn }) }), void 0)] }), void 0))] }), void 0), hasChildren && !horizontal && (jsxRuntime.jsxs(ChildWrapper, { children: [jsxRuntime.jsx(Divider, { "$themeOverride": themeOverride }, void 0), children] }, void 0))] }), void 0) }), void 0)] }), void 0));
|
|
224
227
|
};
|
|
225
228
|
|
|
226
229
|
exports.UserInformationCard = UserInformationCard;
|
|
227
|
-
//# sourceMappingURL=UserInformationCard-
|
|
230
|
+
//# sourceMappingURL=UserInformationCard-7bc7953d.js.map
|
package/lib/{esm/UserInformationCard-cce874e4.js.map → cjs/UserInformationCard-7bc7953d.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserInformationCard-
|
|
1
|
+
{"version":3,"file":"UserInformationCard-7bc7953d.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var UserInformationCard = require('./UserInformationCard-
|
|
5
|
+
var UserInformationCard = require('./UserInformationCard-7bc7953d.js');
|
|
6
6
|
require('./_tslib-955e611e.js');
|
|
7
7
|
require('react/jsx-runtime');
|
|
8
8
|
require('react');
|
|
9
9
|
require('./colors.cjs');
|
|
10
10
|
require('./isEmptyObject.cjs');
|
|
11
|
-
require('./Avatar-
|
|
11
|
+
require('./Avatar-7853412b.js');
|
|
12
12
|
require('./pressedEnter.cjs');
|
|
13
13
|
require('chroma-js');
|
|
14
14
|
require('styled-components');
|
package/lib/cjs/index.cjs
CHANGED
|
@@ -7,10 +7,10 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var Drawer = require('./Drawer-09efe2ea.js');
|
|
9
9
|
var styled = require('styled-components');
|
|
10
|
-
var FormWrapper = require('./FormStyles-
|
|
10
|
+
var FormWrapper = require('./FormStyles-32ed485a.js');
|
|
11
11
|
var AlertCount = require('./AlertCount-66fb29b9.js');
|
|
12
12
|
var AddressInput = require('./AddressInput-868cf326.js');
|
|
13
|
-
var Avatar = require('./Avatar-
|
|
13
|
+
var Avatar = require('./Avatar-7853412b.js');
|
|
14
14
|
var getInitialsOnly = require('./getInitialsOnly.cjs');
|
|
15
15
|
var BoxedButton = require('./BoxedButton.cjs');
|
|
16
16
|
var BoxedOutlineButton = require('./BoxedOutlineButton.cjs');
|
|
@@ -46,7 +46,7 @@ var helpers = require('./helpers-b07f14f3.js');
|
|
|
46
46
|
var DrawerDivider = require('./DrawerDivider-8f1e423f.js');
|
|
47
47
|
var EmailInput = require('./EmailInput-08b54599.js');
|
|
48
48
|
var Footer = require('./Footer.cjs');
|
|
49
|
-
var FormikContainer = require('./FormikContainer-
|
|
49
|
+
var FormikContainer = require('./FormikContainer-0693d658.js');
|
|
50
50
|
var FormFieldTypeEnum = require('./FormFieldTypeEnum.cjs');
|
|
51
51
|
var FiltersBar = require('./FiltersBar-0c09771a.js');
|
|
52
52
|
var HorizontalTabMenu = require('./HorizontalTabMenu-64d6e3a1.js');
|
|
@@ -67,7 +67,7 @@ var Loading = require('./Loading.cjs');
|
|
|
67
67
|
var focusAfter = require('./focusAfter.cjs');
|
|
68
68
|
var Scroller = require('./Scroller.cjs');
|
|
69
69
|
var LoadingEllipsis = require('./LoadingEllipsis-b9895744.js');
|
|
70
|
-
var LogoSidebar = require('./LogoSidebar-
|
|
70
|
+
var LogoSidebar = require('./LogoSidebar-0dcda0c6.js');
|
|
71
71
|
var Modal = require('./Modal-c16dd7a7.js');
|
|
72
72
|
var PasswordInput = require('./PasswordInput.cjs');
|
|
73
73
|
var InlinePasswordInput = require('./InlinePasswordInput.cjs');
|
|
@@ -76,7 +76,7 @@ var PieChart = require('./PieChart-b221fe62.js');
|
|
|
76
76
|
var Radio = require('./Radio-eb69f788.js');
|
|
77
77
|
var RadioGroup = require('./RadioGroup-2654ae70.js');
|
|
78
78
|
var RadioItem = require('./RadioItem-d4d9b513.js');
|
|
79
|
-
var RJSForm = require('./RJSForm-
|
|
79
|
+
var RJSForm = require('./RJSForm-41ffb951.js');
|
|
80
80
|
require('./types-92e1c1ae.js');
|
|
81
81
|
var RJSFormRenderer = require('./RJSFormRenderer-0ea1d6a2.js');
|
|
82
82
|
require('react-dom');
|
|
@@ -116,7 +116,7 @@ var UploadDropzone = require('./UploadDropzone-554e6c21.js');
|
|
|
116
116
|
var DropzoneColorFamilyEnum = require('./DropzoneColorFamilyEnum.cjs');
|
|
117
117
|
var UserCard = require('./UserCard.cjs');
|
|
118
118
|
var UserCardModal = require('./UserCardModal.cjs');
|
|
119
|
-
var UserInformationCard = require('./UserInformationCard-
|
|
119
|
+
var UserInformationCard = require('./UserInformationCard-7bc7953d.js');
|
|
120
120
|
var ZipCodeInput = require('./ZipCodeInput.cjs');
|
|
121
121
|
var InlineZipCodeInput = require('./InlineZipCodeInput.cjs');
|
|
122
122
|
var applyZipCodeMask = require('./applyZipCodeMask.cjs');
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as __makeTemplateObject, _ as __assign } from './_tslib-1a4c929e.js';
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { higherContrast } from './pressedEnter.js';
|
|
4
4
|
import { styled, useTheme } from 'styled-components';
|
|
5
5
|
import { getInitialsOnly } from './getInitialsOnly.js';
|
|
6
6
|
|
|
7
|
-
var Base = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: ", "px;\n height: ", "px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: ", ";\n background: url(", ") no-repeat center,\n ", ";\n background-size: ", ";\n"], ["\n width: ", "px;\n height: ", "px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: ", ";\n background: url(", ") no-repeat center,\n ", ";\n background-size: ", ";\n"])), function (_a) {
|
|
7
|
+
var Base = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: ", "px;\n height: ", "px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: ", ";\n background: url(", ") no-repeat center,\n ", ";\n background-size: ", ";\n position: relative;\n"], ["\n width: ", "px;\n height: ", "px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: ", ";\n background: url(", ") no-repeat center,\n ", ";\n background-size: ", ";\n position: relative;\n"])), function (_a) {
|
|
8
8
|
var $themeOverride = _a.$themeOverride, theme = _a.theme;
|
|
9
9
|
return ($themeOverride === null || $themeOverride === void 0 ? void 0 : $themeOverride.size) || theme.avatar.size;
|
|
10
10
|
}, function (_a) {
|
|
@@ -31,15 +31,25 @@ var Initials = styled.h2(templateObject_2 || (templateObject_2 = __makeTemplateO
|
|
|
31
31
|
var $themeOverride = _a.$themeOverride, theme = _a.theme;
|
|
32
32
|
return ((_b = $themeOverride === null || $themeOverride === void 0 ? void 0 : $themeOverride.size) !== null && _b !== void 0 ? _b : theme.avatar.size) / 3.13;
|
|
33
33
|
});
|
|
34
|
-
var
|
|
34
|
+
var Badge = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background: url(", ") no-repeat;\n background-size: contain;\n border-radius: 50%;\n bottom: 0;\n height: ", "px;\n left: 50%;\n position: absolute;\n transform: translate(-46%, 40%);\n width: ", "px;\n z-index: 10;\n"], ["\n background: url(", ") no-repeat;\n background-size: contain;\n border-radius: 50%;\n bottom: 0;\n height: ", "px;\n left: 50%;\n position: absolute;\n transform: translate(-46%, 40%);\n width: ", "px;\n z-index: 10;\n"])), function (_a) {
|
|
35
|
+
var $badgeUrl = _a.$badgeUrl;
|
|
36
|
+
return $badgeUrl;
|
|
37
|
+
}, function (_a) {
|
|
38
|
+
var $themeOverride = _a.$themeOverride, theme = _a.theme;
|
|
39
|
+
return (($themeOverride === null || $themeOverride === void 0 ? void 0 : $themeOverride.size) ? $themeOverride.size * 0.28 : theme.avatar.size * 0.28);
|
|
40
|
+
}, function (_a) {
|
|
41
|
+
var $themeOverride = _a.$themeOverride, theme = _a.theme;
|
|
42
|
+
return (($themeOverride === null || $themeOverride === void 0 ? void 0 : $themeOverride.size) ? $themeOverride.size * 0.28 : theme.avatar.size * 0.28);
|
|
43
|
+
});
|
|
44
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
35
45
|
|
|
36
46
|
var Avatar = function (_a) {
|
|
37
|
-
var backgroundGradient = _a.backgroundGradient, imageUrl = _a.imageUrl, logo = _a.logo, placeholderInitials = _a.placeholderInitials, placeholderInitialsColorOverride = _a.placeholderInitialsColorOverride, square = _a.square, themeOverride = _a.themeOverride;
|
|
47
|
+
var backgroundGradient = _a.backgroundGradient, badgeUrl = _a.badgeUrl, imageUrl = _a.imageUrl, logo = _a.logo, placeholderInitials = _a.placeholderInitials, placeholderInitialsColorOverride = _a.placeholderInitialsColorOverride, square = _a.square, themeOverride = _a.themeOverride;
|
|
38
48
|
var theme = useTheme();
|
|
39
49
|
var bgColor = (themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.backgroundColor) || theme.avatar.backgroundColor;
|
|
40
|
-
return (
|
|
50
|
+
return (jsxs(Base, __assign({ "data-testid": "bg-base", "$backgroundGradient": backgroundGradient, "$imageUrl": imageUrl, "$logo": logo, "$themeOverride": themeOverride, "$square": square }, { children: [!imageUrl && (jsx(Initials, __assign({ "$placeholderInitialsColorOverride": placeholderInitialsColorOverride || higherContrast({ color: bgColor, preferHigh: true }), "$themeOverride": themeOverride }, { children: getInitialsOnly(placeholderInitials) }), void 0)), badgeUrl && jsx(Badge, { "$badgeUrl": badgeUrl, "$themeOverride": themeOverride }, void 0)] }), void 0));
|
|
41
51
|
};
|
|
42
52
|
Avatar.defaultProps = {};
|
|
43
53
|
|
|
44
54
|
export { Avatar as A };
|
|
45
|
-
//# sourceMappingURL=Avatar-
|
|
55
|
+
//# sourceMappingURL=Avatar-8566fcdb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Avatar-8566fcdb.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/esm/Avatar.js
CHANGED
package/lib/esm/Form.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { F as Form } from './FormikContainer-
|
|
2
|
-
export { F as FormWrapper } from './FormStyles-
|
|
1
|
+
export { F as Form } from './FormikContainer-0040cee3.js';
|
|
2
|
+
export { F as FormWrapper } from './FormStyles-dc1864ed.js';
|
|
3
3
|
export { FormFieldTypeEnum, RemovableFieldTypeEnum } from './FormFieldTypeEnum.js';
|
|
4
4
|
import './_tslib-1a4c929e.js';
|
|
5
5
|
import 'react/jsx-runtime';
|
|
@@ -515,7 +515,7 @@ var ClearFormButtonWrap = styled.div(templateObject_5 || (templateObject_5 = __m
|
|
|
515
515
|
var $clickable = _a.$clickable;
|
|
516
516
|
return ($clickable ? 1 : 0);
|
|
517
517
|
});
|
|
518
|
-
var FieldBox = styled.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n display: ", ";\n column-gap: 12px;\n grid-template-columns: ", ";\n margin-bottom: ", "px;\n max-width: ", ";\n opacity: ", ";\n"], ["\n display: ", ";\n column-gap: 12px;\n grid-template-columns: ", ";\n margin-bottom: ", "px;\n max-width: ", ";\n opacity: ", ";\n"])), function (_a) {
|
|
518
|
+
var FieldBox = styled.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n display: ", ";\n column-gap: 12px;\n grid-template-columns: ", ";\n margin-bottom: ", "px;\n max-width: ", ";\n margin: ", ";\n opacity: ", ";\n"], ["\n display: ", ";\n column-gap: 12px;\n grid-template-columns: ", ";\n margin-bottom: ", "px;\n max-width: ", ";\n margin: ", ";\n opacity: ", ";\n"])), function (_a) {
|
|
519
519
|
var $leftLabelLayout = _a.$leftLabelLayout;
|
|
520
520
|
return ($leftLabelLayout ? "grid" : "block");
|
|
521
521
|
}, function (_a) {
|
|
@@ -527,6 +527,9 @@ var FieldBox = styled.div(templateObject_6 || (templateObject_6 = __makeTemplate
|
|
|
527
527
|
}, function (_a) {
|
|
528
528
|
var $fieldWidth = _a.$fieldWidth;
|
|
529
529
|
return ($fieldWidth ? "".concat($fieldWidth, "px") : "inherit");
|
|
530
|
+
}, function (_a) {
|
|
531
|
+
var $marginString = _a.$marginString;
|
|
532
|
+
return $marginString;
|
|
530
533
|
}, function (_a) {
|
|
531
534
|
var $fade = _a.$fade;
|
|
532
535
|
return ($fade ? 0 : 1);
|
|
@@ -658,7 +661,10 @@ var SubHeader = styled(BodyXSEmphasis)(templateObject_27 || (templateObject_27 =
|
|
|
658
661
|
var $maxWidth = _a.$maxWidth;
|
|
659
662
|
return $maxWidth !== null && $maxWidth !== void 0 ? $maxWidth : 700;
|
|
660
663
|
});
|
|
661
|
-
var Separator = styled.hr(templateObject_28 || (templateObject_28 = __makeTemplateObject(["\n margin: ", ";\n border: none;\n background-color: ", ";\n height: 1px;\n"], ["\n margin: ", ";\n border: none;\n background-color: ", ";\n height: 1px;\n"])), function (_a) {
|
|
664
|
+
var Separator = styled.hr(templateObject_28 || (templateObject_28 = __makeTemplateObject(["\n width: calc(100% + ", "px);\n margin: ", ";\n border: none;\n background-color: ", ";\n height: 1px;\n"], ["\n width: calc(100% + ", "px);\n margin: ", ";\n border: none;\n background-color: ", ";\n height: 1px;\n"])), function (_a) {
|
|
665
|
+
var $seperatorOverflow = _a.$seperatorOverflow;
|
|
666
|
+
return $seperatorOverflow !== null && $seperatorOverflow !== void 0 ? $seperatorOverflow : 0;
|
|
667
|
+
}, function (_a) {
|
|
662
668
|
var $marginString = _a.$marginString;
|
|
663
669
|
return $marginString;
|
|
664
670
|
}, function (_a) {
|
|
@@ -691,4 +697,4 @@ var LoadingInput = styled.div(templateObject_32 || (templateObject_32 = __makeTe
|
|
|
691
697
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29, templateObject_30, templateObject_31, templateObject_32;
|
|
692
698
|
|
|
693
699
|
export { AddButtonGroup as A, ButtonGroup as B, CenterCheckbox as C, DefaultPixelWidth as D, FormWrapper as F, HelperTextGrid as H, InputBox as I, LeftGutter as L, RightGutter as R, Separator as S, TitleGroup as T, ValidationTextGrid as V, FieldBox as a, LeftLabel as b, RemovableFieldBox as c, RemoveButtonWrapper as d, RemovableButtonBox as e, formHasValues as f, Text as g, SubHeader as h, InlineFieldGrid as i, InlineFieldCell as j, CenterToggle as k, LoadingBase as l, LoadingBox as m, LoadingLabel as n, LoadingInput as o, FormGroup as p, FormTitleGroup as q, Title as r, ClearFormButtonWrap as s, shouldFade as t, AddButtonBox as u, SubmitButton as v, CancelButton as w, formatInitialValues as x, formatValidation as y };
|
|
694
|
-
//# sourceMappingURL=FormStyles-
|
|
700
|
+
//# sourceMappingURL=FormStyles-dc1864ed.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormStyles-
|
|
1
|
+
{"version":3,"file":"FormStyles-dc1864ed.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/esm/FormWrapper.js
CHANGED
|
@@ -3,7 +3,7 @@ import 'styled-components';
|
|
|
3
3
|
import './BodyLEmphasis.js';
|
|
4
4
|
import './Inputs-34227839.js';
|
|
5
5
|
import './colors.js';
|
|
6
|
-
export { u as AddButtonBox, A as AddButtonGroup, B as ButtonGroup, w as CancelButton, C as CenterCheckbox, k as CenterToggle, s as ClearFormButtonWrap, a as FieldBox, p as FormGroup, q as FormTitleGroup, F as FormWrapper, H as HelperTextGrid, j as InlineFieldCell, i as InlineFieldGrid, I as InputBox, L as LeftGutter, b as LeftLabel, l as LoadingBase, m as LoadingBox, o as LoadingInput, n as LoadingLabel, e as RemovableButtonBox, c as RemovableFieldBox, d as RemoveButtonWrapper, R as RightGutter, S as Separator, h as SubHeader, v as SubmitButton, g as Text, r as Title, T as TitleGroup, V as ValidationTextGrid } from './FormStyles-
|
|
6
|
+
export { u as AddButtonBox, A as AddButtonGroup, B as ButtonGroup, w as CancelButton, C as CenterCheckbox, k as CenterToggle, s as ClearFormButtonWrap, a as FieldBox, p as FormGroup, q as FormTitleGroup, F as FormWrapper, H as HelperTextGrid, j as InlineFieldCell, i as InlineFieldGrid, I as InputBox, L as LeftGutter, b as LeftLabel, l as LoadingBase, m as LoadingBox, o as LoadingInput, n as LoadingLabel, e as RemovableButtonBox, c as RemovableFieldBox, d as RemoveButtonWrapper, R as RightGutter, S as Separator, h as SubHeader, v as SubmitButton, g as Text, r as Title, T as TitleGroup, V as ValidationTextGrid } from './FormStyles-dc1864ed.js';
|
|
7
7
|
import './Loading.js';
|
|
8
8
|
import './Scroller.js';
|
|
9
9
|
import 'react/jsx-runtime';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as __assign, f as __spreadArray } from './_tslib-1a4c929e.js';
|
|
1
|
+
import { _ as __assign, f as __spreadArray, a as __makeTemplateObject } from './_tslib-1a4c929e.js';
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { Fragment, useState, useEffect, useCallback } from 'react';
|
|
4
4
|
import { Formik, useFormikContext } from 'formik';
|
|
5
|
-
import { useTheme } from 'styled-components';
|
|
5
|
+
import { useTheme, styled } from 'styled-components';
|
|
6
6
|
import { A as AddButton } from './AddButton-59c22abc.js';
|
|
7
7
|
import './Button.js';
|
|
8
8
|
import { PrimaryButton } from './PrimaryButton.js';
|
|
@@ -15,7 +15,7 @@ import { usePrevious } from './usePrevious.js';
|
|
|
15
15
|
import './Loading.js';
|
|
16
16
|
import { ShortScroller } from './Scroller.js';
|
|
17
17
|
import { USStatesEnum, CreditCardTypes, TextStyleEnum } from './ButtonColorFamilyEnum.js';
|
|
18
|
-
import { a as FieldBox, L as LeftGutter, b as LeftLabel, H as HelperTextGrid, R as RightGutter, V as ValidationTextGrid, I as InputBox, f as formHasValues, D as DefaultPixelWidth, c as RemovableFieldBox, d as RemoveButtonWrapper, e as RemovableButtonBox, S as Separator, T as TitleGroup, g as Text, h as SubHeader, i as InlineFieldGrid, j as InlineFieldCell, C as CenterCheckbox, k as CenterToggle, l as LoadingBase, m as LoadingBox, n as LoadingLabel, o as LoadingInput, p as FormGroup, q as FormTitleGroup, r as Title, s as ClearFormButtonWrap, t as shouldFade, A as AddButtonGroup, u as AddButtonBox, B as ButtonGroup, v as SubmitButton, w as CancelButton, x as formatInitialValues, y as formatValidation } from './FormStyles-
|
|
18
|
+
import { a as FieldBox, L as LeftGutter, b as LeftLabel, H as HelperTextGrid, R as RightGutter, V as ValidationTextGrid, I as InputBox, f as formHasValues, D as DefaultPixelWidth, c as RemovableFieldBox, d as RemoveButtonWrapper, e as RemovableButtonBox, S as Separator, T as TitleGroup, g as Text, h as SubHeader, i as InlineFieldGrid, j as InlineFieldCell, C as CenterCheckbox, k as CenterToggle, l as LoadingBase, m as LoadingBox, n as LoadingLabel, o as LoadingInput, p as FormGroup, q as FormTitleGroup, r as Title, s as ClearFormButtonWrap, t as shouldFade, A as AddButtonGroup, u as AddButtonBox, B as ButtonGroup, v as SubmitButton, w as CancelButton, x as formatInitialValues, y as formatValidation } from './FormStyles-dc1864ed.js';
|
|
19
19
|
import { isSelectOptionType, isSwitchMenuOptionsType, isArrayOfSelectOptionsType, isAddress, isCountrySelect, isCountySelect, isCreditCard, isCurrency, isDatePicker, isDescriptiveDropdownInput, isEmail, isMultiSelect, isNumber, isPassword, isPhone, isSelect, isSocialSecurity, isStateSelect, isZipCode, isText, RemovableFieldTypeEnum, isSplitLine, isSectionHeader, isCheckbox, isImagePicker, isToggle, isFormFieldType, isCheckboxGroup, isConfigurableInput, isHidden, isRadioGroup, isRemovable, isTextarea, isToggleGroup } from './FormFieldTypeEnum.js';
|
|
20
20
|
import { A as AddressInput } from './AddressInput-53f61e14.js';
|
|
21
21
|
import { A as Asterisk } from './Inputs-34227839.js';
|
|
@@ -60,7 +60,6 @@ import './colors.js';
|
|
|
60
60
|
import 'chroma-js';
|
|
61
61
|
import './IconComponentStyles-091931ba.js';
|
|
62
62
|
import { PlusCircle } from './PlusCircle.js';
|
|
63
|
-
import { HeadingH3 } from './BodyLEmphasis.js';
|
|
64
63
|
import { T as ToggleItem } from './ToggleItem-29649e46.js';
|
|
65
64
|
import { InlineTextarea } from './InlineTextarea.js';
|
|
66
65
|
import { Textarea } from './Textarea.js';
|
|
@@ -910,17 +909,33 @@ var RemovableField = function (_a) {
|
|
|
910
909
|
}), jsx(RemoveButtonWrapper, { children: jsx(TextButton, { onClick: handleRemove, text: removeButtonText }, void 0) }, void 0)] }), void 0)) : (jsx(RemovableButtonBox, __assign({ "$fade": fade, "$rowGap": rowGap }, { children: jsx(TextButton, { onClick: function () { return setShowInput(true); }, text: addButtonText, Icon: PlusCircle, iconGap: 14 }, void 0) }), void 0));
|
|
911
910
|
};
|
|
912
911
|
|
|
912
|
+
var Header = styled.h3(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n font-size: ", "px;\n font-weight: ", ";\n letter-spacing: 0.48px;\n line-height: ", "px;\n"], ["\n color: ", ";\n font-size: ", "px;\n font-weight: ", ";\n letter-spacing: 0.48px;\n line-height: ", "px;\n"])), function (_a) {
|
|
913
|
+
var _b;
|
|
914
|
+
var $textColor = _a.$textColor, theme = _a.theme;
|
|
915
|
+
return $textColor || ((_b = theme.text) === null || _b === void 0 ? void 0 : _b.primary);
|
|
916
|
+
}, function (_a) {
|
|
917
|
+
var $fontSize = _a.$fontSize;
|
|
918
|
+
return $fontSize || 22;
|
|
919
|
+
}, function (_a) {
|
|
920
|
+
var $fontWeight = _a.$fontWeight;
|
|
921
|
+
return $fontWeight || 600;
|
|
922
|
+
}, function (_a) {
|
|
923
|
+
var $lineHeight = _a.$lineHeight, $fontSize = _a.$fontSize;
|
|
924
|
+
return $lineHeight || (($fontSize || 22) * 1.6);
|
|
925
|
+
});
|
|
926
|
+
var templateObject_1;
|
|
927
|
+
|
|
913
928
|
var SectionHeader = function (_a) {
|
|
914
929
|
var fade = _a.fade, field = _a.field, fieldIndex = _a.fieldIndex, removeAnimation = _a.removeAnimation, rowGap = _a.rowGap, setIsDeleting = _a.setIsDeleting, themeOverride = _a.themeOverride;
|
|
915
|
-
var header = field.header, nextGap = field.nextGap, separator = field.separator, _b = field.separatorMarginString, separatorMarginString =
|
|
930
|
+
var header = field.header, nextGap = field.nextGap, separatorOverflow = field.separatorOverflow, separator = field.separator, _b = field.separatorPosition, separatorPosition = _b === void 0 ? "top" : _b, _c = field.separatorMarginString, separatorMarginString = _c === void 0 ? "42px 0 26px" : _c, subHeader = field.subHeader, text = field.text, remove = field.remove, _d = field.width, width = _d === void 0 ? 700 : _d;
|
|
916
931
|
var theme = useTheme();
|
|
917
|
-
return (jsxs(FieldBox, __assign({ "$fade": fade, "$rowGap": nextGap !== null && nextGap !== void 0 ? nextGap : rowGap }, { children: [separator && (jsx(Separator, { "$marginString": separatorMarginString, "$themeOverride": themeOverride, "data-testid": "SectionHeader_separator" }, void 0)), jsxs(TitleGroup, __assign({ "$roomForRemove": !!remove, "$maxWidth": width }, { children: [header && jsx(
|
|
932
|
+
return (jsxs(FieldBox, __assign({ "$fade": fade, "$rowGap": nextGap !== null && nextGap !== void 0 ? nextGap : rowGap }, { children: [separator && (separatorPosition === "top" || separatorPosition === undefined) && (jsx(Separator, { "$marginString": separatorMarginString, "$themeOverride": themeOverride, "$seperatorOverflow": separatorOverflow, "data-testid": "SectionHeader_separator" }, void 0)), jsxs(TitleGroup, __assign({ "$roomForRemove": !!remove, "$maxWidth": width }, { children: [header && jsx(Header, __assign({ "$fontSize": themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.sectionHeaderFontSize, "$textColor": themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.sectionHeaderColor, "$fontWeight": themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.sectionHeaderFontWeight, "$lineHeight": themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.sectionHeaderLineHeight }, { children: header }), void 0), remove && (jsx(TextButton, { onClick: function (event) {
|
|
918
933
|
removeAnimation(fieldIndex);
|
|
919
934
|
setTimeout(function () {
|
|
920
935
|
remove(event);
|
|
921
936
|
setIsDeleting(false);
|
|
922
937
|
}, 400);
|
|
923
|
-
}, text: "Remove", colorFamily: (themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.removeButtonColorFamily) || theme.form.removeButtonColorFamily }, void 0))] }), void 0), text && (jsx(Text, __assign({ "$textColor": themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.sectionTextColor, "$maxWidth": width }, { children: text }), void 0)), subHeader && (jsx(SubHeader, __assign({ "$textColor": themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.sectionSubHeaderColor, "$maxWidth": width }, { children: subHeader }), void 0))] }), void 0));
|
|
938
|
+
}, text: "Remove", colorFamily: (themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.removeButtonColorFamily) || theme.form.removeButtonColorFamily }, void 0))] }), void 0), text && (jsx(Text, __assign({ "$textColor": themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.sectionTextColor, "$maxWidth": width }, { children: text }), void 0)), subHeader && (jsx(SubHeader, __assign({ "$textColor": themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.sectionSubHeaderColor, "$maxWidth": width }, { children: subHeader }), void 0)), separator && separatorPosition === "bottom" && (jsx(Separator, { "$marginString": separatorMarginString, "$themeOverride": themeOverride, "$seperatorOverflow": separatorOverflow, "data-testid": "SectionHeader_separator" }, void 0))] }), void 0));
|
|
924
939
|
};
|
|
925
940
|
|
|
926
941
|
var ToggleField = function (_a) {
|
|
@@ -1279,4 +1294,4 @@ FormikContainer.defaultProps = {
|
|
|
1279
1294
|
};
|
|
1280
1295
|
|
|
1281
1296
|
export { FormikContainer as F };
|
|
1282
|
-
//# sourceMappingURL=FormikContainer-
|
|
1297
|
+
//# sourceMappingURL=FormikContainer-0040cee3.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormikContainer-
|
|
1
|
+
{"version":3,"file":"FormikContainer-0040cee3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,7 +2,7 @@ import { a as __makeTemplateObject, _ as __assign } from './_tslib-1a4c929e.js';
|
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { useCallback } from 'react';
|
|
4
4
|
import { styled, useTheme } from 'styled-components';
|
|
5
|
-
import { A as Avatar } from './Avatar-
|
|
5
|
+
import { A as Avatar } from './Avatar-8566fcdb.js';
|
|
6
6
|
import { I as InteriorSidebar } from './InteriorSidebar-89187e84.js';
|
|
7
7
|
import { u as useMeasure } from './useMeasure-22bc3b9f.js';
|
|
8
8
|
import { isBrowser } from './isEmptyObject.js';
|
|
@@ -54,4 +54,4 @@ var LogoSidebar = function (_a) {
|
|
|
54
54
|
LogoSidebar.defaultProps = {};
|
|
55
55
|
|
|
56
56
|
export { LogoSidebar as L };
|
|
57
|
-
//# sourceMappingURL=LogoSidebar-
|
|
57
|
+
//# sourceMappingURL=LogoSidebar-0903b0b7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LogoSidebar-0903b0b7.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/esm/LogoSidebar.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { L as LogoSidebar } from './LogoSidebar-
|
|
1
|
+
export { L as LogoSidebar } from './LogoSidebar-0903b0b7.js';
|
|
2
2
|
import './_tslib-1a4c929e.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'styled-components';
|
|
6
|
-
import './Avatar-
|
|
6
|
+
import './Avatar-8566fcdb.js';
|
|
7
7
|
import './pressedEnter.js';
|
|
8
8
|
import 'chroma-js';
|
|
9
9
|
import './getInitialsOnly.js';
|
|
@@ -20,7 +20,7 @@ import './Button.js';
|
|
|
20
20
|
import { PrimaryButton } from './PrimaryButton.js';
|
|
21
21
|
import './ButtonVariantEnum.js';
|
|
22
22
|
import { noop } from './isEmptyObject.js';
|
|
23
|
-
import { S as Separator, T as TitleGroup } from './FormStyles-
|
|
23
|
+
import { S as Separator, T as TitleGroup } from './FormStyles-dc1864ed.js';
|
|
24
24
|
import { HeadingH3 } from './BodyLEmphasis.js';
|
|
25
25
|
import { TextButton } from './TextButton.js';
|
|
26
26
|
import { A as AddButton } from './AddButton-59c22abc.js';
|
|
@@ -365,4 +365,4 @@ RJSForm.defaultProps = {
|
|
|
365
365
|
};
|
|
366
366
|
|
|
367
367
|
export { RJSForm as R };
|
|
368
|
-
//# sourceMappingURL=RJSForm-
|
|
368
|
+
//# sourceMappingURL=RJSForm-27c455a6.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RJSForm-
|
|
1
|
+
{"version":3,"file":"RJSForm-27c455a6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/esm/RJSForm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { R as RJSForm } from './RJSForm-
|
|
1
|
+
export { R as RJSForm } from './RJSForm-27c455a6.js';
|
|
2
2
|
export { R as RJSFormFields } from './types-20c5eba5.js';
|
|
3
3
|
import './_tslib-1a4c929e.js';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
@@ -77,7 +77,7 @@ import './Close-8d7dda02.js';
|
|
|
77
77
|
import './useMeasureWatchResize-eae7908b.js';
|
|
78
78
|
import './DropdownInputStyles-fab99b6a.js';
|
|
79
79
|
import './PrimaryButton.js';
|
|
80
|
-
import './FormStyles-
|
|
80
|
+
import './FormStyles-dc1864ed.js';
|
|
81
81
|
import 'yup';
|
|
82
82
|
import './FormFieldTypeEnum.js';
|
|
83
83
|
import './northAmericanNumberingPlanRegex.js';
|
package/lib/esm/UserCard.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as __makeTemplateObject, _ as __assign } from './_tslib-1a4c929e.js';
|
|
2
2
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
3
3
|
import React__default, { useRef, useEffect } from 'react';
|
|
4
|
-
import { A as Avatar } from './Avatar-
|
|
4
|
+
import { A as Avatar } from './Avatar-8566fcdb.js';
|
|
5
5
|
import { getInitialsOnly } from './getInitialsOnly.js';
|
|
6
6
|
import { colors } from './colors.js';
|
|
7
7
|
import { pressedEnter } from './pressedEnter.js';
|
package/lib/esm/UserCardModal.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as __makeTemplateObject, _ as __assign } from './_tslib-1a4c929e.js';
|
|
2
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
3
3
|
import { useState, useEffect } from 'react';
|
|
4
4
|
import { colors } from './colors.js';
|
|
5
5
|
import { getTextWidth } from './isEmptyObject.js';
|
|
6
|
-
import { A as Avatar } from './Avatar-
|
|
6
|
+
import { A as Avatar } from './Avatar-8566fcdb.js';
|
|
7
7
|
import { u as useMeasure } from './useMeasure-22bc3b9f.js';
|
|
8
8
|
import { T as TruncatePicker } from './TruncatePicker-c7931408.js';
|
|
9
9
|
import { BodyMPrimary, BodyLEmphasis } from './BodyLEmphasis.js';
|
|
@@ -103,7 +103,7 @@ var TextWithLoader = styled(BodyMPrimary)(templateObject_9 || (templateObject_9
|
|
|
103
103
|
var $isLoading = _a.$isLoading;
|
|
104
104
|
return $isLoading && loadingPseudo({ loadingColor: colors.COOL_GREY_15, bgColor: colors.COOL_GREY_4, borderRadius: 6, topOffset: 2 });
|
|
105
105
|
});
|
|
106
|
-
var TitleWithLoader = styled(BodyLEmphasis)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n color: ", ";\n overflow-wrap: anywhere;\n line-height: ", "px;\n display: ", ";\n max-width: ", ";\n ", ";\n"], ["\n color: ", ";\n overflow-wrap: anywhere;\n line-height: ", "px;\n display: ", ";\n max-width: ", ";\n ", ";\n"])), function (_a) {
|
|
106
|
+
var TitleWithLoader = styled(BodyLEmphasis)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n color: ", ";\n overflow-wrap: anywhere;\n line-height: ", "px;\n display: ", ";\n max-width: ", ";\n ", ";\n text-align: ", ";\n"], ["\n color: ", ";\n overflow-wrap: anywhere;\n line-height: ", "px;\n display: ", ";\n max-width: ", ";\n ", ";\n text-align: ", ";\n"])), function (_a) {
|
|
107
107
|
var $textColor = _a.$textColor;
|
|
108
108
|
return $textColor !== null && $textColor !== void 0 ? $textColor : colors.BLACK;
|
|
109
109
|
}, function (_a) {
|
|
@@ -118,6 +118,9 @@ var TitleWithLoader = styled(BodyLEmphasis)(templateObject_10 || (templateObject
|
|
|
118
118
|
}, function (_a) {
|
|
119
119
|
var isLoading = _a.$isLoading;
|
|
120
120
|
return isLoading && loadingPseudo({ loadingColor: colors.COOL_GREY_15, bgColor: colors.COOL_GREY_4, borderRadius: 6, topOffset: 2 });
|
|
121
|
+
}, function (_a) {
|
|
122
|
+
var $centerName = _a.$centerName, $horizontal = _a.$horizontal;
|
|
123
|
+
return ($centerName && !$horizontal ? "center" : "left");
|
|
121
124
|
});
|
|
122
125
|
var ChildWrapper = styled.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n padding: 0 42px 52px 42px;\n"], ["\n padding: 0 42px 52px 42px;\n"])));
|
|
123
126
|
var Divider = styled.hr(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n background-color: ", ";\n border: none;\n height: 1px;\n margin: 0 -9px 8px;\n"], ["\n background-color: ", ";\n border: none;\n height: 1px;\n margin: 0 -9px 8px;\n"])), function (_a) {
|
|
@@ -129,7 +132,7 @@ var ClearableTagWrapper = styled.div(templateObject_13 || (templateObject_13 = _
|
|
|
129
132
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13;
|
|
130
133
|
|
|
131
134
|
var UserInformationCard = function (_a) {
|
|
132
|
-
var
|
|
135
|
+
var address1 = _a.address1, address2 = _a.address2, avatarBadgeUrl = _a.avatarBadgeUrl, avatarImageUrl = _a.avatarImageUrl, boxShadowString = _a.boxShadowString, centerName = _a.centerName, children = _a.children, city = _a.city, clearableMessage = _a.clearableMessage, ClearableMessageIcon = _a.ClearableMessageIcon, dob = _a.dob, firstName = _a.firstName, horizontal = _a.horizontal, isLoading = _a.isLoading, lastName = _a.lastName, maxHeightInternalCalcString = _a.maxHeightInternalCalcString, middleName = _a.middleName, orderType = _a.orderType, removeConsumerLabel = _a.removeConsumerLabel, squareAvatar = _a.squareAvatar, state = _a.state, ssn = _a.ssn, themeOverride = _a.themeOverride, width = _a.width, zip = _a.zip;
|
|
133
136
|
var _b = useMeasure(), dataWrapperRef = _b[0], dataWrapperMeasure = _b[1];
|
|
134
137
|
var _c = useMeasure(), avatarWrapperRef = _c[0], avatarWrapperMeasure = _c[1];
|
|
135
138
|
var _d = useState(186), orderTagMaxWidth = _d[0], setOrderTagMaxWidth = _d[1];
|
|
@@ -210,7 +213,7 @@ var UserInformationCard = function (_a) {
|
|
|
210
213
|
useEffect(function () {
|
|
211
214
|
setOrderTagMaxWidth(avatarWrapperMeasure.width);
|
|
212
215
|
}, [avatarWrapperMeasure.width]);
|
|
213
|
-
return (jsxs(CardBox, __assign({ "$boxShadowString": boxShadowString, "$horizontal": horizontal, "$maxHeightInternalCalcString": maxHeightInternalCalcString, "$width": width }, { children: [jsxs(AvatarWrapper, __assign({ ref: avatarWrapperRef, "$horizontal": horizontal, "$themeOverride": themeOverride }, { children: [jsx(OrderTag, __assign({ "$width": orderTagMaxWidth }, { children: jsx(TruncatePicker, { children: orderType }, void 0) }), void 0), jsx(Avatar, { backgroundGradient: (themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.avatarBackgroundColor) || gradients.avatar, imageUrl: avatarImageUrl, square: squareAvatar, themeOverride: avatarOverride, placeholderInitials: fullName }, void 0)] }), void 0), jsx(HorizontalMeasure, __assign({}, (horizontal ? { ref: dataWrapperRef } : {}), { children: jsxs(ScrollBox, __assign({ "$maxHeightInternalCalcString": maxHeightInternalCalcString, "$horizontal": horizontal }, { children: [jsxs(DataWrapper, __assign({ "$hasChildren": hasChildren, "$horizontal": horizontal, "$breakSSN": breakSSN, "$breakLayout": breakLayout }, { children: [clearableMessage && showClearableMessage && (jsx(ClearableTagWrapper, { children: jsx(ClearableTag, { noXShadow: true, colorFamily: ButtonColorFamilyEnum.Purple, tag: {
|
|
216
|
+
return (jsxs(CardBox, __assign({ "$boxShadowString": boxShadowString, "$horizontal": horizontal, "$maxHeightInternalCalcString": maxHeightInternalCalcString, "$width": width }, { children: [jsxs(AvatarWrapper, __assign({ ref: avatarWrapperRef, "$horizontal": horizontal, "$themeOverride": themeOverride }, { children: [orderType && (jsx(OrderTag, __assign({ "$width": orderTagMaxWidth }, { children: jsx(TruncatePicker, { children: orderType }, void 0) }), void 0)), jsx(Avatar, { backgroundGradient: (themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.avatarBackgroundColor) || gradients.avatar, badgeUrl: avatarBadgeUrl, imageUrl: avatarImageUrl, square: squareAvatar, themeOverride: avatarOverride, placeholderInitials: fullName }, void 0)] }), void 0), jsx(HorizontalMeasure, __assign({}, (horizontal ? { ref: dataWrapperRef } : {}), { children: jsxs(ScrollBox, __assign({ "$maxHeightInternalCalcString": maxHeightInternalCalcString, "$horizontal": horizontal }, { children: [jsxs(DataWrapper, __assign({ "$hasChildren": hasChildren, "$horizontal": horizontal, "$breakSSN": breakSSN, "$breakLayout": breakLayout }, { children: [clearableMessage && showClearableMessage && (jsx(ClearableTagWrapper, { children: jsx(ClearableTag, { noXShadow: true, colorFamily: ButtonColorFamilyEnum.Purple, tag: {
|
|
214
217
|
Icon: ClearableMessageIcon,
|
|
215
218
|
id: "clearable-tag",
|
|
216
219
|
label: clearableMessage || "",
|
|
@@ -218,8 +221,8 @@ var UserInformationCard = function (_a) {
|
|
|
218
221
|
fontSize: 13,
|
|
219
222
|
}, xClick: function () {
|
|
220
223
|
setShowClearableMessage(false);
|
|
221
|
-
} }, void 0) }, void 0)), jsxs(Item, __assign({ "$gridArea": "name" }, { children: [jsx(Label, { children: "Consumer" }, void 0), jsx(TitleWithLoader, __assign({ "$isLoading": isLoading, "$lineHeight": 24 }, { children: displayName }), void 0)] }), void 0), jsxs(Item, __assign({ "$gridArea": "address" }, { children: [jsx(Label, { children: "Address" }, void 0), addressLineOne && (jsx(TextWithLoader, __assign({ "$isLoading": isLoading, "$long": true, "$textColor": colors.COOL_GREY_100 }, { children: addressLineOne }), void 0)), addressLineTwo && (jsx(TextWithLoader, __assign({ "$isLoading": isLoading, "$long": true, "$textColor": colors.COOL_GREY_100 }, { children: addressLineTwo }), void 0)),
|
|
224
|
+
} }, void 0) }, void 0)), jsxs(Item, __assign({ "$gridArea": "name" }, { children: [!removeConsumerLabel && jsx(Label, { children: "Consumer" }, void 0), jsx(TitleWithLoader, __assign({ "$centerName": centerName, "$horizontal": horizontal, "$isLoading": isLoading, "$lineHeight": 24 }, { children: displayName }), void 0)] }), void 0), jsxs(Item, __assign({ "$gridArea": "address" }, { children: [jsx(Label, { children: "Address" }, void 0), addressLineOne || addressLineTwo ? (jsxs(Fragment, { children: [addressLineOne && (jsx(TextWithLoader, __assign({ "$isLoading": isLoading, "$long": true, "$textColor": colors.COOL_GREY_100 }, { children: addressLineOne }), void 0)), addressLineTwo && (jsx(TextWithLoader, __assign({ "$isLoading": isLoading, "$long": true, "$textColor": colors.COOL_GREY_100 }, { children: addressLineTwo }), void 0))] }, void 0)) : (jsx(TextWithLoader, __assign({ "$isLoading": isLoading, "$long": true, "$textColor": colors.COOL_GREY_100 }, { children: "N/A" }), void 0))] }), void 0), dob != null && (jsxs(Item, __assign({ "$gridArea": "dob" }, { children: [jsx(Label, { children: "DOB" }, void 0), jsx(TextWithLoader, __assign({ "$isLoading": isLoading, "$loadingLength": 140, "$textColor": colors.COOL_GREY_100 }, { children: dob === "" ? "N/A" : dob }), void 0)] }), void 0)), ssn != null && (jsxs(Item, __assign({ "$gridArea": "ssn" }, { children: [jsx(Label, { children: "SSN" }, void 0), jsx(TextWithLoader, __assign({ "$isLoading": isLoading, "$loadingLength": 120, "$textColor": colors.COOL_GREY_100 }, { children: ssn === "" ? "N/A" : applySsnMask({ numberValue: ssn }) }), void 0)] }), void 0))] }), void 0), hasChildren && !horizontal && (jsxs(ChildWrapper, { children: [jsx(Divider, { "$themeOverride": themeOverride }, void 0), children] }, void 0))] }), void 0) }), void 0)] }), void 0));
|
|
222
225
|
};
|
|
223
226
|
|
|
224
227
|
export { UserInformationCard as U };
|
|
225
|
-
//# sourceMappingURL=UserInformationCard-
|
|
228
|
+
//# sourceMappingURL=UserInformationCard-d25a7d83.js.map
|
package/lib/{cjs/UserInformationCard-d3ac00b2.js.map → esm/UserInformationCard-d25a7d83.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserInformationCard-
|
|
1
|
+
{"version":3,"file":"UserInformationCard-d25a7d83.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { U as UserInformationCard } from './UserInformationCard-
|
|
1
|
+
export { U as UserInformationCard } from './UserInformationCard-d25a7d83.js';
|
|
2
2
|
import './_tslib-1a4c929e.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
5
|
import './colors.js';
|
|
6
6
|
import './isEmptyObject.js';
|
|
7
|
-
import './Avatar-
|
|
7
|
+
import './Avatar-8566fcdb.js';
|
|
8
8
|
import './pressedEnter.js';
|
|
9
9
|
import 'chroma-js';
|
|
10
10
|
import 'styled-components';
|
package/lib/esm/index.js
CHANGED
|
@@ -4,11 +4,11 @@ import React__default, { useState, useRef, useEffect } from 'react';
|
|
|
4
4
|
import { D as Drawer } from './Drawer-6fd06d3a.js';
|
|
5
5
|
export { D as Drawer } from './Drawer-6fd06d3a.js';
|
|
6
6
|
import { styled, useTheme } from 'styled-components';
|
|
7
|
-
import { S as Separator } from './FormStyles-
|
|
8
|
-
export { F as FormWrapper } from './FormStyles-
|
|
7
|
+
import { S as Separator } from './FormStyles-dc1864ed.js';
|
|
8
|
+
export { F as FormWrapper } from './FormStyles-dc1864ed.js';
|
|
9
9
|
export { A as AlertCount } from './AlertCount-5c367a1f.js';
|
|
10
10
|
export { A as AddressInput } from './AddressInput-53f61e14.js';
|
|
11
|
-
export { A as Avatar } from './Avatar-
|
|
11
|
+
export { A as Avatar } from './Avatar-8566fcdb.js';
|
|
12
12
|
export { getInitialsOnly } from './getInitialsOnly.js';
|
|
13
13
|
export { BoxedButton } from './BoxedButton.js';
|
|
14
14
|
export { BoxedOutlineButton } from './BoxedOutlineButton.js';
|
|
@@ -47,7 +47,7 @@ import { A as ASTERISK_OFFSET_SPACE } from './helpers-e2f33583.js';
|
|
|
47
47
|
export { D as DrawerDivider } from './DrawerDivider-5b10a31b.js';
|
|
48
48
|
export { E as EmailInput } from './EmailInput-7c2c993b.js';
|
|
49
49
|
export { Footer } from './Footer.js';
|
|
50
|
-
export { F as Form } from './FormikContainer-
|
|
50
|
+
export { F as Form } from './FormikContainer-0040cee3.js';
|
|
51
51
|
export { FormFieldTypeEnum, RemovableFieldTypeEnum } from './FormFieldTypeEnum.js';
|
|
52
52
|
export { F as FiltersBar } from './FiltersBar-a6dbd832.js';
|
|
53
53
|
export { H as HorizontalTabMenu } from './HorizontalTabMenu-417ead69.js';
|
|
@@ -71,7 +71,7 @@ import { focusAfter } from './focusAfter.js';
|
|
|
71
71
|
export { focusAfter } from './focusAfter.js';
|
|
72
72
|
export { Scroller, ShortScroller } from './Scroller.js';
|
|
73
73
|
export { L as LoadingEllipsis } from './LoadingEllipsis-505a407e.js';
|
|
74
|
-
export { L as LogoSidebar } from './LogoSidebar-
|
|
74
|
+
export { L as LogoSidebar } from './LogoSidebar-0903b0b7.js';
|
|
75
75
|
export { M as Modal } from './Modal-84eaf0a9.js';
|
|
76
76
|
export { PasswordInput } from './PasswordInput.js';
|
|
77
77
|
export { InlinePasswordInput } from './InlinePasswordInput.js';
|
|
@@ -80,7 +80,7 @@ export { P as PieChart } from './PieChart-cbdf1de9.js';
|
|
|
80
80
|
export { R as Radio } from './Radio-a25910f6.js';
|
|
81
81
|
export { R as RadioGroup } from './RadioGroup-5deefd5f.js';
|
|
82
82
|
export { R as RadioItem } from './RadioItem-5cbc814b.js';
|
|
83
|
-
export { R as RJSForm } from './RJSForm-
|
|
83
|
+
export { R as RJSForm } from './RJSForm-27c455a6.js';
|
|
84
84
|
import './types-20c5eba5.js';
|
|
85
85
|
export { R as RJSFormRenderer } from './RJSFormRenderer-0cda19b4.js';
|
|
86
86
|
import 'react-dom';
|
|
@@ -120,7 +120,7 @@ export { U as UploadDropzone } from './UploadDropzone-530529b4.js';
|
|
|
120
120
|
export { DropzoneColorFamilyEnum } from './DropzoneColorFamilyEnum.js';
|
|
121
121
|
export { UserCard } from './UserCard.js';
|
|
122
122
|
export { UserCardModal } from './UserCardModal.js';
|
|
123
|
-
export { U as UserInformationCard } from './UserInformationCard-
|
|
123
|
+
export { U as UserInformationCard } from './UserInformationCard-d25a7d83.js';
|
|
124
124
|
export { ZipCodeInput } from './ZipCodeInput.js';
|
|
125
125
|
export { InlineZipCodeInput } from './InlineZipCodeInput.js';
|
|
126
126
|
export { applyZipCodeMask } from './applyZipCodeMask.js';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BaseProps, InitialsProps } from "./types";
|
|
2
|
+
import { BadgeProps, BaseProps, InitialsProps } from "./types";
|
|
3
3
|
export declare const Base: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, BaseProps>>;
|
|
4
4
|
export declare const Initials: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, InitialsProps>>;
|
|
5
|
+
export declare const Badge: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, BadgeProps>>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export interface AvatarType {
|
|
2
2
|
/** A string gradient style for the Avatar background. Nothing will be applied if this is not passed. */
|
|
3
3
|
backgroundGradient?: string;
|
|
4
|
+
/** Passing badgeUrl will render a small badge under the Avatar. */
|
|
5
|
+
badgeUrl?: string;
|
|
4
6
|
/** URL to the image to be displayed. It's highly recommended the images are square and the size matches the component size. */
|
|
5
7
|
imageUrl?: string;
|
|
6
8
|
/** Will format the image to work with a logo. Mainly, this means no cropping. */
|
|
@@ -30,3 +32,7 @@ export interface InitialsProps {
|
|
|
30
32
|
$placeholderInitialsColorOverride?: string;
|
|
31
33
|
$themeOverride?: ThemeOverride;
|
|
32
34
|
}
|
|
35
|
+
export interface BadgeProps {
|
|
36
|
+
$badgeUrl: string;
|
|
37
|
+
$themeOverride?: ThemeOverride;
|
|
38
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type SectionHeaderProps = {
|
|
3
|
+
$textColor?: string;
|
|
4
|
+
$lineHeight?: number;
|
|
5
|
+
$fontSize?: number;
|
|
6
|
+
$fontWeight?: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const Header: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, SectionHeaderProps>>;
|
|
9
|
+
export {};
|
|
@@ -93,6 +93,9 @@ export interface ThemeOverride {
|
|
|
93
93
|
clearButtonColorFamily?: ButtonColorFamilyEnum;
|
|
94
94
|
removeButtonColorFamily?: ButtonColorFamilyEnum;
|
|
95
95
|
sectionHeaderColor?: string;
|
|
96
|
+
sectionHeaderFontSize?: number;
|
|
97
|
+
sectionHeaderFontWeight?: number;
|
|
98
|
+
sectionHeaderLineHeight?: number;
|
|
96
99
|
sectionSeparatorColor?: string;
|
|
97
100
|
sectionSubHeaderColor?: string;
|
|
98
101
|
sectionTextColor?: string;
|
|
@@ -940,15 +943,18 @@ export interface RemovableFieldProps {
|
|
|
940
943
|
}
|
|
941
944
|
export interface SectionHeaderType {
|
|
942
945
|
header?: string;
|
|
943
|
-
remove?: (event: KeyboardEvent<HTMLButtonElement> | MouseEvent<HTMLButtonElement>) => void;
|
|
944
946
|
nextGap?: number;
|
|
947
|
+
remove?: (event: KeyboardEvent<HTMLButtonElement> | MouseEvent<HTMLButtonElement>) => void;
|
|
945
948
|
separator?: boolean;
|
|
946
949
|
separatorMarginString?: string;
|
|
950
|
+
separatorOverflow?: number;
|
|
951
|
+
separatorPosition?: "top" | "bottom";
|
|
947
952
|
showIf?: ({ values }: {
|
|
948
953
|
values: any;
|
|
949
954
|
}) => boolean;
|
|
950
955
|
subHeader?: string;
|
|
951
956
|
text?: string;
|
|
957
|
+
themeOverride?: ThemeOverride;
|
|
952
958
|
type: FormFieldTypeEnum;
|
|
953
959
|
width?: number;
|
|
954
960
|
}
|
|
@@ -1179,6 +1185,7 @@ export interface FieldBoxProps {
|
|
|
1179
1185
|
$leftLabelsRightGutter?: number;
|
|
1180
1186
|
$leftLabelWidth?: number;
|
|
1181
1187
|
$rowGap?: number;
|
|
1188
|
+
$marginString?: string;
|
|
1182
1189
|
}
|
|
1183
1190
|
export interface RemovableFieldBoxProps {
|
|
1184
1191
|
$fade?: boolean;
|
|
@@ -1213,6 +1220,7 @@ export interface ButtonGroupProps {
|
|
|
1213
1220
|
}
|
|
1214
1221
|
export interface SeparatorProps {
|
|
1215
1222
|
$marginString: string;
|
|
1223
|
+
$seperatorOverflow?: number;
|
|
1216
1224
|
$themeOverride?: ThemeOverride;
|
|
1217
1225
|
}
|
|
1218
1226
|
export interface LoadingBaseProps {
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
import { IconType } from "../Icons";
|
|
3
3
|
export interface UserInformationCardType {
|
|
4
|
+
/** Possible badge URL to be sent to the Avatar component */
|
|
5
|
+
avatarBadgeUrl?: string;
|
|
4
6
|
/** Possible URL to be sent to the Avatar component */
|
|
5
7
|
avatarImageUrl?: string;
|
|
6
8
|
/** Overrides the default box shadow */
|
|
7
9
|
boxShadowString?: string;
|
|
10
|
+
/** Changes the style of the name to act like the title of UserInformationCard, displayed without a label at the center. */
|
|
11
|
+
centerName?: boolean;
|
|
8
12
|
/** `UserInformationCard` supports children */
|
|
9
13
|
children?: ReactNode;
|
|
10
14
|
/** Sets the component to horizontal mode */
|
|
@@ -33,6 +37,8 @@ export interface UserInformationCardType {
|
|
|
33
37
|
dob?: string;
|
|
34
38
|
/** User's SSN */
|
|
35
39
|
ssn?: string;
|
|
40
|
+
/** It's possible to remove the "Consumer" label */
|
|
41
|
+
removeConsumerLabel?: boolean;
|
|
36
42
|
/** Type of order. This is usually Standard, vID or Rapid Request. */
|
|
37
43
|
orderType?: string;
|
|
38
44
|
/** Card width override. Grows to fill the parent otherwise. */
|
|
@@ -73,6 +79,8 @@ export interface CardTextProps {
|
|
|
73
79
|
lineHeight?: number;
|
|
74
80
|
$long?: boolean;
|
|
75
81
|
$loadingLength?: number;
|
|
82
|
+
$centerName?: boolean;
|
|
83
|
+
$horizontal?: boolean;
|
|
76
84
|
}
|
|
77
85
|
export interface DataWrapperProps {
|
|
78
86
|
$breakLayout?: boolean;
|
package/package.json
CHANGED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var _tslib = require('./_tslib-955e611e.js');
|
|
4
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
-
var pressedEnter = require('./pressedEnter.cjs');
|
|
6
|
-
var styled = require('styled-components');
|
|
7
|
-
var getInitialsOnly = require('./getInitialsOnly.cjs');
|
|
8
|
-
|
|
9
|
-
var Base = styled.styled.div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n width: ", "px;\n height: ", "px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: ", ";\n background: url(", ") no-repeat center,\n ", ";\n background-size: ", ";\n"], ["\n width: ", "px;\n height: ", "px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: ", ";\n background: url(", ") no-repeat center,\n ", ";\n background-size: ", ";\n"])), function (_a) {
|
|
10
|
-
var $themeOverride = _a.$themeOverride, theme = _a.theme;
|
|
11
|
-
return ($themeOverride === null || $themeOverride === void 0 ? void 0 : $themeOverride.size) || theme.avatar.size;
|
|
12
|
-
}, function (_a) {
|
|
13
|
-
var $themeOverride = _a.$themeOverride, theme = _a.theme;
|
|
14
|
-
return ($themeOverride === null || $themeOverride === void 0 ? void 0 : $themeOverride.size) || theme.avatar.size;
|
|
15
|
-
}, function (_a) {
|
|
16
|
-
var $square = _a.$square, $themeOverride = _a.$themeOverride;
|
|
17
|
-
return ($themeOverride === null || $themeOverride === void 0 ? void 0 : $themeOverride.borderRadius) ? "".concat($themeOverride.borderRadius, "px") : $square ? "0px" : "50%";
|
|
18
|
-
}, function (_a) {
|
|
19
|
-
var $imageUrl = _a.$imageUrl;
|
|
20
|
-
return $imageUrl;
|
|
21
|
-
}, function (_a) {
|
|
22
|
-
var $backgroundGradient = _a.$backgroundGradient, $themeOverride = _a.$themeOverride, theme = _a.theme;
|
|
23
|
-
return $backgroundGradient || ($themeOverride === null || $themeOverride === void 0 ? void 0 : $themeOverride.backgroundColor) || theme.avatar.backgroundColor;
|
|
24
|
-
}, function (_a) {
|
|
25
|
-
var $logo = _a.$logo;
|
|
26
|
-
return ($logo ? "contain" : "cover");
|
|
27
|
-
});
|
|
28
|
-
var Initials = styled.styled.h2(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n color: ", ";\n font-size: ", "px;\n position: relative;\n top: 2px;\n"], ["\n color: ", ";\n font-size: ", "px;\n position: relative;\n top: 2px;\n"])), function (_a) {
|
|
29
|
-
var $placeholderInitialsColorOverride = _a.$placeholderInitialsColorOverride;
|
|
30
|
-
return $placeholderInitialsColorOverride;
|
|
31
|
-
}, function (_a) {
|
|
32
|
-
var _b;
|
|
33
|
-
var $themeOverride = _a.$themeOverride, theme = _a.theme;
|
|
34
|
-
return ((_b = $themeOverride === null || $themeOverride === void 0 ? void 0 : $themeOverride.size) !== null && _b !== void 0 ? _b : theme.avatar.size) / 3.13;
|
|
35
|
-
});
|
|
36
|
-
var templateObject_1, templateObject_2;
|
|
37
|
-
|
|
38
|
-
var Avatar = function (_a) {
|
|
39
|
-
var backgroundGradient = _a.backgroundGradient, imageUrl = _a.imageUrl, logo = _a.logo, placeholderInitials = _a.placeholderInitials, placeholderInitialsColorOverride = _a.placeholderInitialsColorOverride, square = _a.square, themeOverride = _a.themeOverride;
|
|
40
|
-
var theme = styled.useTheme();
|
|
41
|
-
var bgColor = (themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.backgroundColor) || theme.avatar.backgroundColor;
|
|
42
|
-
return (jsxRuntime.jsx(Base, _tslib.__assign({ "data-testid": "bg-base", "$backgroundGradient": backgroundGradient, "$imageUrl": imageUrl, "$logo": logo, "$themeOverride": themeOverride, "$square": square }, { children: !imageUrl && (jsxRuntime.jsx(Initials, _tslib.__assign({ "$placeholderInitialsColorOverride": placeholderInitialsColorOverride || pressedEnter.higherContrast({ color: bgColor, preferHigh: true }), "$themeOverride": themeOverride }, { children: getInitialsOnly.getInitialsOnly(placeholderInitials) }), void 0)) }), void 0));
|
|
43
|
-
};
|
|
44
|
-
Avatar.defaultProps = {};
|
|
45
|
-
|
|
46
|
-
exports.Avatar = Avatar;
|
|
47
|
-
//# sourceMappingURL=Avatar-01129ec7.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar-01129ec7.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LogoSidebar-0bf2f163.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar-5871e463.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LogoSidebar-afdfe6f3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|