@thecb/components 7.3.2-beta.1 → 7.3.2-beta.2
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/dist/index.cjs.js
CHANGED
|
@@ -16055,6 +16055,45 @@ var ProfileImage = function ProfileImage() {
|
|
|
16055
16055
|
}));
|
|
16056
16056
|
};
|
|
16057
16057
|
|
|
16058
|
+
var FindIconSmall = function FindIconSmall(_ref) {
|
|
16059
|
+
var themeValues = _ref.themeValues;
|
|
16060
|
+
return /*#__PURE__*/React__default.createElement("svg", {
|
|
16061
|
+
width: "20",
|
|
16062
|
+
height: "20",
|
|
16063
|
+
viewBox: "0 0 20 20",
|
|
16064
|
+
fill: "none",
|
|
16065
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
16066
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
16067
|
+
fillRule: "evenodd",
|
|
16068
|
+
clipRule: "evenodd",
|
|
16069
|
+
d: "M11.4142 4.34313C13.1295 6.05839 13.338 8.70983 12.0397 10.6527L15.9968 14.6098C16.1921 14.805 16.1921 15.1216 15.9968 15.3169L15.4665 15.8472C15.2712 16.0425 14.9546 16.0425 14.7594 15.8472L10.8287 11.9165C8.87269 13.3493 6.1108 13.1818 4.34315 11.4142C2.39053 9.46157 2.39053 6.29575 4.34315 4.34313C6.29577 2.39051 9.4616 2.39051 11.4142 4.34313ZM10.4246 10.4246C11.7915 9.05777 11.7915 6.84169 10.4246 5.47486C9.05779 4.10802 6.84171 4.10802 5.47488 5.47486C4.10804 6.84169 4.10804 9.05777 5.47488 10.4246C6.84171 11.7914 9.05779 11.7914 10.4246 10.4246Z",
|
|
16070
|
+
fill: themeValues.singleIconColor
|
|
16071
|
+
}), /*#__PURE__*/React__default.createElement("mask", {
|
|
16072
|
+
id: "mask0_0_1287",
|
|
16073
|
+
style: {
|
|
16074
|
+
maskType: "alpha"
|
|
16075
|
+
},
|
|
16076
|
+
maskUnits: "userSpaceOnUse",
|
|
16077
|
+
x: "2",
|
|
16078
|
+
y: "2",
|
|
16079
|
+
width: "15",
|
|
16080
|
+
height: "14"
|
|
16081
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
16082
|
+
fillRule: "evenodd",
|
|
16083
|
+
clipRule: "evenodd",
|
|
16084
|
+
d: "M11.4142 4.34313C13.1295 6.05839 13.338 8.70983 12.0397 10.6527L15.9968 14.6098C16.1921 14.805 16.1921 15.1216 15.9968 15.3169L15.4665 15.8472C15.2712 16.0425 14.9546 16.0425 14.7594 15.8472L10.8287 11.9165C8.87269 13.3493 6.1108 13.1818 4.34315 11.4142C2.39053 9.46157 2.39053 6.29575 4.34315 4.34313C6.29577 2.39051 9.4616 2.39051 11.4142 4.34313ZM10.4246 10.4246C11.7915 9.05777 11.7915 6.84169 10.4246 5.47486C9.05779 4.10802 6.84171 4.10802 5.47488 5.47486C4.10804 6.84169 4.10804 9.05777 5.47488 10.4246C6.84171 11.7914 9.05779 11.7914 10.4246 10.4246Z",
|
|
16085
|
+
fill: "white"
|
|
16086
|
+
})), /*#__PURE__*/React__default.createElement("g", {
|
|
16087
|
+
mask: "url(#mask0_0_1287)"
|
|
16088
|
+
}, /*#__PURE__*/React__default.createElement("rect", {
|
|
16089
|
+
width: "20",
|
|
16090
|
+
height: "20",
|
|
16091
|
+
fill: themeValues.singleIconColor
|
|
16092
|
+
})));
|
|
16093
|
+
};
|
|
16094
|
+
|
|
16095
|
+
var FindIconSmall$1 = themeComponent(FindIconSmall, "Icons", fallbackValues$2, "primary");
|
|
16096
|
+
|
|
16058
16097
|
var color$2 = "#15749D";
|
|
16059
16098
|
var hoverColor$1 = "#116285";
|
|
16060
16099
|
var activeColor$1 = "#0E506D";
|
|
@@ -24630,6 +24669,64 @@ var ProcessingFee = function ProcessingFee(_ref) {
|
|
|
24630
24669
|
|
|
24631
24670
|
var ProcessingFee$1 = themeComponent(ProcessingFee, "ProcessingFee", fallbackValues$r, "default");
|
|
24632
24671
|
|
|
24672
|
+
|
|
24673
|
+
|
|
24674
|
+
var index$5 = /*#__PURE__*/Object.freeze({
|
|
24675
|
+
__proto__: null,
|
|
24676
|
+
colors: colors,
|
|
24677
|
+
fontWeights: style_constants
|
|
24678
|
+
});
|
|
24679
|
+
|
|
24680
|
+
var HiddenRadioInput = styled__default.input.withConfig({
|
|
24681
|
+
displayName: "RadioButtonWithLabel__HiddenRadioInput",
|
|
24682
|
+
componentId: "sc-1m9whwg-0"
|
|
24683
|
+
})(["position:absolute;opacity:0;margin:0;"]);
|
|
24684
|
+
var Circle = styled__default.div.withConfig({
|
|
24685
|
+
displayName: "RadioButtonWithLabel__Circle",
|
|
24686
|
+
componentId: "sc-1m9whwg-1"
|
|
24687
|
+
})(["flex-shrink:0;margin-right:8px;width:1.5rem;height 1.5rem;border:1px solid ", ";border-radius:50%;box-sizing:border-box;padding:2px;:after{content:\"\";width:100%;height:100%;display:block;background:", ";border-radius:50%;transform:scale(0);}"], GREY_CHATEAU, MATISSE_BLUE);
|
|
24688
|
+
var InputAndLabelContainer = styled__default(Cluster).withConfig({
|
|
24689
|
+
displayName: "RadioButtonWithLabel__InputAndLabelContainer",
|
|
24690
|
+
componentId: "sc-1m9whwg-2"
|
|
24691
|
+
})(["overflow:visible;", ":checked + label ", ":after{transform:scale(0.85);transition:transform 0.15s;}", ":checked + label ", "{border:1px solid ", ";}", ":focus + label ", "{{box-shadow:0px 0px 2px 1px ", ";}"], HiddenRadioInput, Circle, HiddenRadioInput, Circle, MATISSE_BLUE, HiddenRadioInput, Circle, MATISSE_BLUE);
|
|
24692
|
+
|
|
24693
|
+
var RadioButtonWithLabel = function RadioButtonWithLabel(_ref) {
|
|
24694
|
+
var _ref$id = _ref.id,
|
|
24695
|
+
id = _ref$id === void 0 ? "" : _ref$id,
|
|
24696
|
+
_ref$value = _ref.value,
|
|
24697
|
+
value = _ref$value === void 0 ? "" : _ref$value,
|
|
24698
|
+
_ref$labelText = _ref.labelText,
|
|
24699
|
+
labelText = _ref$labelText === void 0 ? "" : _ref$labelText,
|
|
24700
|
+
groupName = _ref.groupName,
|
|
24701
|
+
setValue = _ref.setValue,
|
|
24702
|
+
ariaInvalid = _ref.ariaInvalid,
|
|
24703
|
+
index = _ref.index,
|
|
24704
|
+
_ref$handleChange = _ref.handleChange,
|
|
24705
|
+
handleChange = _ref$handleChange === void 0 ? noop : _ref$handleChange;
|
|
24706
|
+
return /*#__PURE__*/React__default.createElement(InputAndLabelContainer, {
|
|
24707
|
+
align: "center",
|
|
24708
|
+
childGap: "0.5rem"
|
|
24709
|
+
}, /*#__PURE__*/React__default.createElement(HiddenRadioInput, {
|
|
24710
|
+
"aria-invalid": ariaInvalid,
|
|
24711
|
+
style: {
|
|
24712
|
+
marginTop: 0
|
|
24713
|
+
},
|
|
24714
|
+
type: "radio",
|
|
24715
|
+
name: groupName,
|
|
24716
|
+
id: id,
|
|
24717
|
+
value: value,
|
|
24718
|
+
onChange: function onChange(e) {
|
|
24719
|
+
setValue(e.target.value);
|
|
24720
|
+
handleChange(e);
|
|
24721
|
+
},
|
|
24722
|
+
defaultChecked: index === 0
|
|
24723
|
+
}), /*#__PURE__*/React__default.createElement(Text$1, {
|
|
24724
|
+
as: "label",
|
|
24725
|
+
htmlFor: id,
|
|
24726
|
+
extraStyles: "\n font-size: 1rem;\n display: flex; \n width: 100%;\n :hover {\n cursor: pointer;\n }\n "
|
|
24727
|
+
}, /*#__PURE__*/React__default.createElement(Circle, null), labelText));
|
|
24728
|
+
};
|
|
24729
|
+
|
|
24633
24730
|
var activeColor$5 = "".concat(MATISSE_BLUE);
|
|
24634
24731
|
var inactiveColor = "".concat(GREY_CHATEAU);
|
|
24635
24732
|
var fallbackValues$s = {
|
|
@@ -24639,7 +24736,7 @@ var fallbackValues$s = {
|
|
|
24639
24736
|
|
|
24640
24737
|
var HiddenRadioButton = styled__default.input.withConfig({
|
|
24641
24738
|
displayName: "RadioButton__HiddenRadioButton",
|
|
24642
|
-
componentId: "sc-
|
|
24739
|
+
componentId: "sc-1jed2i-0"
|
|
24643
24740
|
})(["opacity:0;position:absolute;cursor:", ";"], function (_ref) {
|
|
24644
24741
|
var disabled = _ref.disabled;
|
|
24645
24742
|
return disabled ? "auto" : "pointer";
|
|
@@ -35843,14 +35940,6 @@ var NavTabs = function NavTabs(_ref) {
|
|
|
35843
35940
|
}, tabs)));
|
|
35844
35941
|
};
|
|
35845
35942
|
|
|
35846
|
-
|
|
35847
|
-
|
|
35848
|
-
var index$5 = /*#__PURE__*/Object.freeze({
|
|
35849
|
-
__proto__: null,
|
|
35850
|
-
colors: colors,
|
|
35851
|
-
fontWeights: style_constants
|
|
35852
|
-
});
|
|
35853
|
-
|
|
35854
35943
|
var shineFrames = styled.keyframes(["{0{background-position:0 0;}20%{background-position:100% 100%;}100%{background-position:100% 100%;}}"]);
|
|
35855
35944
|
var LoadingPill = styled__default.div.withConfig({
|
|
35856
35945
|
displayName: "LoadingPillstyled__LoadingPill",
|
|
@@ -46274,6 +46363,55 @@ PhoneForm.reducer = reducer$9;
|
|
|
46274
46363
|
PhoneForm.mapStateToProps = mapStateToProps$a;
|
|
46275
46364
|
PhoneForm.mapDispatchToProps = mapDispatchToProps$9;
|
|
46276
46365
|
|
|
46366
|
+
var DefaultHeading = styled__default.div.withConfig({
|
|
46367
|
+
displayName: "RadioGroup__DefaultHeading",
|
|
46368
|
+
componentId: "sc-7lqrl8-0"
|
|
46369
|
+
})(["font-size:0.875rem;color:", " margin:0;padding:8px 0px;"], CHARADE_GREY);
|
|
46370
|
+
var StyledFieldset = styled__default.fieldset.withConfig({
|
|
46371
|
+
displayName: "RadioGroup__StyledFieldset",
|
|
46372
|
+
componentId: "sc-7lqrl8-1"
|
|
46373
|
+
})(["", ""], function (props) {
|
|
46374
|
+
return props.$extraStyles;
|
|
46375
|
+
});
|
|
46376
|
+
|
|
46377
|
+
var RadioGroup = function RadioGroup(_ref) {
|
|
46378
|
+
var headingText = _ref.headingText,
|
|
46379
|
+
groupName = _ref.groupName,
|
|
46380
|
+
_ref$heading = _ref.heading,
|
|
46381
|
+
Heading = _ref$heading === void 0 ? /*#__PURE__*/React__default.createElement(DefaultHeading, {
|
|
46382
|
+
role: "heading",
|
|
46383
|
+
id: "radio-group-".concat(groupName, "-heading")
|
|
46384
|
+
}, headingText) : _ref$heading,
|
|
46385
|
+
config = _ref.config,
|
|
46386
|
+
extraStyles = _ref.extraStyles,
|
|
46387
|
+
_ref$handleChange = _ref.handleChange,
|
|
46388
|
+
handleChange = _ref$handleChange === void 0 ? noop : _ref$handleChange,
|
|
46389
|
+
field = _ref.field,
|
|
46390
|
+
fieldActions = _ref.fieldActions;
|
|
46391
|
+
|
|
46392
|
+
var setValue = function setValue(value) {
|
|
46393
|
+
return fieldActions.set(value);
|
|
46394
|
+
};
|
|
46395
|
+
|
|
46396
|
+
return /*#__PURE__*/React__default.createElement(StyledFieldset, {
|
|
46397
|
+
role: "radiogroup",
|
|
46398
|
+
"aria-labelledby": "radio-group-".concat(groupName, "-heading"),
|
|
46399
|
+
$extraStyles: extraStyles
|
|
46400
|
+
}, Heading !== null && Heading, /*#__PURE__*/React__default.createElement(Stack, {
|
|
46401
|
+
childGap: "4px"
|
|
46402
|
+
}, config.map(function (c, idx) {
|
|
46403
|
+
return /*#__PURE__*/React__default.createElement(RadioButtonWithLabel, _extends({
|
|
46404
|
+
index: idx,
|
|
46405
|
+
key: c.id
|
|
46406
|
+
}, c, {
|
|
46407
|
+
groupName: groupName,
|
|
46408
|
+
setValue: setValue,
|
|
46409
|
+
handleChange: handleChange,
|
|
46410
|
+
"aria-invalid": field.dirty && field.hasErrors || field.hasErrors && showErrors
|
|
46411
|
+
}));
|
|
46412
|
+
})));
|
|
46413
|
+
};
|
|
46414
|
+
|
|
46277
46415
|
var headingBackgroundColor$1 = "".concat(WHITE);
|
|
46278
46416
|
var headingDisabledColor = "".concat(ATHENS_GREY);
|
|
46279
46417
|
var bodyBackgroundColor$1 = "#eeeeee";
|
|
@@ -47518,6 +47656,7 @@ exports.ErroredIcon = ErroredIcon;
|
|
|
47518
47656
|
exports.ExternalLink = ExternalLink;
|
|
47519
47657
|
exports.ExternalLinkIcon = ExternalLinkIcon;
|
|
47520
47658
|
exports.FailedIcon = FailedIcon;
|
|
47659
|
+
exports.FindIconSmall = FindIconSmall$1;
|
|
47521
47660
|
exports.FooterWithSubfooter = FooterWithSubfooter$1;
|
|
47522
47661
|
exports.ForgotPasswordForm = ForgotPasswordForm;
|
|
47523
47662
|
exports.ForgotPasswordIcon = ForgotPasswordIcon$1;
|
|
@@ -47588,6 +47727,8 @@ exports.ProfileImage = ProfileImage;
|
|
|
47588
47727
|
exports.PropertiesAddIcon = PropertiesAddIcon$1;
|
|
47589
47728
|
exports.PropertiesIconSmall = PropertiesIconSmall$1;
|
|
47590
47729
|
exports.RadioButton = RadioButton$2;
|
|
47730
|
+
exports.RadioButtonWithLabel = RadioButtonWithLabel;
|
|
47731
|
+
exports.RadioGroup = RadioGroup;
|
|
47591
47732
|
exports.RadioSection = RadioSection$1;
|
|
47592
47733
|
exports.Reel = Reel;
|
|
47593
47734
|
exports.RefundIcon = RefundIcon;
|