@thecb/components 7.3.2-beta.1 → 7.3.2-beta.3

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.esm.js CHANGED
@@ -16047,6 +16047,45 @@ var ProfileImage = function ProfileImage() {
16047
16047
  }));
16048
16048
  };
16049
16049
 
16050
+ var FindIconSmall = function FindIconSmall(_ref) {
16051
+ var themeValues = _ref.themeValues;
16052
+ return /*#__PURE__*/React.createElement("svg", {
16053
+ width: "20",
16054
+ height: "20",
16055
+ viewBox: "0 0 20 20",
16056
+ fill: "none",
16057
+ xmlns: "http://www.w3.org/2000/svg"
16058
+ }, /*#__PURE__*/React.createElement("path", {
16059
+ fillRule: "evenodd",
16060
+ clipRule: "evenodd",
16061
+ 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",
16062
+ fill: themeValues.singleIconColor
16063
+ }), /*#__PURE__*/React.createElement("mask", {
16064
+ id: "mask0_0_1287",
16065
+ style: {
16066
+ maskType: "alpha"
16067
+ },
16068
+ maskUnits: "userSpaceOnUse",
16069
+ x: "2",
16070
+ y: "2",
16071
+ width: "15",
16072
+ height: "14"
16073
+ }, /*#__PURE__*/React.createElement("path", {
16074
+ fillRule: "evenodd",
16075
+ clipRule: "evenodd",
16076
+ 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",
16077
+ fill: "white"
16078
+ })), /*#__PURE__*/React.createElement("g", {
16079
+ mask: "url(#mask0_0_1287)"
16080
+ }, /*#__PURE__*/React.createElement("rect", {
16081
+ width: "20",
16082
+ height: "20",
16083
+ fill: themeValues.singleIconColor
16084
+ })));
16085
+ };
16086
+
16087
+ var FindIconSmall$1 = themeComponent(FindIconSmall, "Icons", fallbackValues$2, "primary");
16088
+
16050
16089
  var color$2 = "#15749D";
16051
16090
  var hoverColor$1 = "#116285";
16052
16091
  var activeColor$1 = "#0E506D";
@@ -24622,6 +24661,64 @@ var ProcessingFee = function ProcessingFee(_ref) {
24622
24661
 
24623
24662
  var ProcessingFee$1 = themeComponent(ProcessingFee, "ProcessingFee", fallbackValues$r, "default");
24624
24663
 
24664
+
24665
+
24666
+ var index$5 = /*#__PURE__*/Object.freeze({
24667
+ __proto__: null,
24668
+ colors: colors,
24669
+ fontWeights: style_constants
24670
+ });
24671
+
24672
+ var HiddenRadioInput = styled.input.withConfig({
24673
+ displayName: "RadioButtonWithLabel__HiddenRadioInput",
24674
+ componentId: "sc-1m9whwg-0"
24675
+ })(["position:absolute;opacity:0;margin:0;"]);
24676
+ var Circle = styled.div.withConfig({
24677
+ displayName: "RadioButtonWithLabel__Circle",
24678
+ componentId: "sc-1m9whwg-1"
24679
+ })(["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);
24680
+ var InputAndLabelContainer = styled(Cluster).withConfig({
24681
+ displayName: "RadioButtonWithLabel__InputAndLabelContainer",
24682
+ componentId: "sc-1m9whwg-2"
24683
+ })(["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);
24684
+
24685
+ var RadioButtonWithLabel = function RadioButtonWithLabel(_ref) {
24686
+ var _ref$id = _ref.id,
24687
+ id = _ref$id === void 0 ? "" : _ref$id,
24688
+ _ref$value = _ref.value,
24689
+ value = _ref$value === void 0 ? "" : _ref$value,
24690
+ _ref$labelText = _ref.labelText,
24691
+ labelText = _ref$labelText === void 0 ? "" : _ref$labelText,
24692
+ groupName = _ref.groupName,
24693
+ setValue = _ref.setValue,
24694
+ ariaInvalid = _ref.ariaInvalid,
24695
+ index = _ref.index,
24696
+ _ref$handleChange = _ref.handleChange,
24697
+ handleChange = _ref$handleChange === void 0 ? noop : _ref$handleChange;
24698
+ return /*#__PURE__*/React.createElement(InputAndLabelContainer, {
24699
+ align: "center",
24700
+ childGap: "0.5rem"
24701
+ }, /*#__PURE__*/React.createElement(HiddenRadioInput, {
24702
+ "aria-invalid": ariaInvalid,
24703
+ style: {
24704
+ marginTop: 0
24705
+ },
24706
+ type: "radio",
24707
+ name: groupName,
24708
+ id: id,
24709
+ value: value,
24710
+ onChange: function onChange(e) {
24711
+ setValue(e.target.value);
24712
+ handleChange(e);
24713
+ },
24714
+ defaultChecked: index === 0
24715
+ }), /*#__PURE__*/React.createElement(Text$1, {
24716
+ as: "label",
24717
+ htmlFor: id,
24718
+ extraStyles: "\n font-size: 1rem;\n display: flex; \n width: 100%;\n :hover {\n cursor: pointer;\n }\n "
24719
+ }, /*#__PURE__*/React.createElement(Circle, null), labelText));
24720
+ };
24721
+
24625
24722
  var activeColor$5 = "".concat(MATISSE_BLUE);
24626
24723
  var inactiveColor = "".concat(GREY_CHATEAU);
24627
24724
  var fallbackValues$s = {
@@ -24631,7 +24728,7 @@ var fallbackValues$s = {
24631
24728
 
24632
24729
  var HiddenRadioButton = styled.input.withConfig({
24633
24730
  displayName: "RadioButton__HiddenRadioButton",
24634
- componentId: "sc-v6hie9-0"
24731
+ componentId: "sc-1jed2i-0"
24635
24732
  })(["opacity:0;position:absolute;cursor:", ";"], function (_ref) {
24636
24733
  var disabled = _ref.disabled;
24637
24734
  return disabled ? "auto" : "pointer";
@@ -35835,14 +35932,6 @@ var NavTabs = function NavTabs(_ref) {
35835
35932
  }, tabs)));
35836
35933
  };
35837
35934
 
35838
-
35839
-
35840
- var index$5 = /*#__PURE__*/Object.freeze({
35841
- __proto__: null,
35842
- colors: colors,
35843
- fontWeights: style_constants
35844
- });
35845
-
35846
35935
  var shineFrames = keyframes$3(["{0{background-position:0 0;}20%{background-position:100% 100%;}100%{background-position:100% 100%;}}"]);
35847
35936
  var LoadingPill = styled.div.withConfig({
35848
35937
  displayName: "LoadingPillstyled__LoadingPill",
@@ -46266,6 +46355,55 @@ PhoneForm.reducer = reducer$9;
46266
46355
  PhoneForm.mapStateToProps = mapStateToProps$a;
46267
46356
  PhoneForm.mapDispatchToProps = mapDispatchToProps$9;
46268
46357
 
46358
+ var DefaultHeading = styled.div.withConfig({
46359
+ displayName: "RadioGroup__DefaultHeading",
46360
+ componentId: "sc-7lqrl8-0"
46361
+ })(["font-size:0.875rem;color:", " margin:0;padding:8px 0px;"], CHARADE_GREY);
46362
+ var StyledFieldset = styled.fieldset.withConfig({
46363
+ displayName: "RadioGroup__StyledFieldset",
46364
+ componentId: "sc-7lqrl8-1"
46365
+ })(["", ""], function (props) {
46366
+ return props.$extraStyles;
46367
+ });
46368
+
46369
+ var RadioGroup = function RadioGroup(_ref) {
46370
+ var headingText = _ref.headingText,
46371
+ groupName = _ref.groupName,
46372
+ _ref$heading = _ref.heading,
46373
+ Heading = _ref$heading === void 0 ? /*#__PURE__*/React.createElement(DefaultHeading, {
46374
+ role: "heading",
46375
+ id: "radio-group-".concat(groupName, "-heading")
46376
+ }, headingText) : _ref$heading,
46377
+ config = _ref.config,
46378
+ extraStyles = _ref.extraStyles,
46379
+ _ref$handleChange = _ref.handleChange,
46380
+ handleChange = _ref$handleChange === void 0 ? noop : _ref$handleChange,
46381
+ field = _ref.field,
46382
+ fieldActions = _ref.fieldActions;
46383
+
46384
+ var setValue = function setValue(value) {
46385
+ return fieldActions.set(value);
46386
+ };
46387
+
46388
+ return /*#__PURE__*/React.createElement(StyledFieldset, {
46389
+ role: "radiogroup",
46390
+ "aria-labelledby": "radio-group-".concat(groupName, "-heading"),
46391
+ $extraStyles: extraStyles
46392
+ }, Heading !== null && Heading, /*#__PURE__*/React.createElement(Stack, {
46393
+ childGap: "4px"
46394
+ }, config.map(function (c, idx) {
46395
+ return /*#__PURE__*/React.createElement(RadioButtonWithLabel, _extends({
46396
+ index: idx,
46397
+ key: c.id
46398
+ }, c, {
46399
+ groupName: groupName,
46400
+ setValue: setValue,
46401
+ handleChange: handleChange,
46402
+ "aria-invalid": field.dirty && field.hasErrors || field.hasErrors && showErrors
46403
+ }));
46404
+ })));
46405
+ };
46406
+
46269
46407
  var headingBackgroundColor$1 = "".concat(WHITE);
46270
46408
  var headingDisabledColor = "".concat(ATHENS_GREY);
46271
46409
  var bodyBackgroundColor$1 = "#eeeeee";
@@ -47177,19 +47315,20 @@ var WorkflowTile = function WorkflowTile(_ref) {
47177
47315
  color: STORM_GREY
47178
47316
  }, workflowDescription)), /*#__PURE__*/React.createElement(Box, {
47179
47317
  padding: "1.5rem 1rem",
47180
- background: GRECIAN_GREY
47318
+ background: ATHENS_GREY,
47319
+ borderColor: GRECIAN_GREY,
47320
+ borderWidthOverride: "2px 0 0 0"
47181
47321
  }, /*#__PURE__*/React.createElement(ButtonWithLink, {
47182
47322
  variant: buttonVariant,
47183
47323
  primary: buttonVariant == "primary",
47184
47324
  primaryBG: MATISSE_BLUE,
47185
47325
  fontWeight: FONT_WEIGHT_SEMIBOLD,
47186
47326
  fontSize: "1.125rem",
47187
- borderRadius: "0px",
47188
47327
  text: workflowActionName,
47189
47328
  minWidth: "100%",
47190
47329
  url: "/service/".concat(slug),
47191
- extraStyles: "width: 100%;",
47192
- linkExtraStyles: "justify-content: center;",
47330
+ extraStyles: "width: 100%; margin: 0;",
47331
+ linkExtraStyles: "justify-content: center",
47193
47332
  dataQa: slug
47194
47333
  }))));
47195
47334
  };
@@ -47456,5 +47595,5 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
47456
47595
 
47457
47596
  var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$N));
47458
47597
 
47459
- export { AccountNumberImage, AccountsAddIcon$1 as AccountsAddIcon, AccountsIcon$1 as AccountsIcon, AccountsIconSmall$1 as AccountsIconSmall, AchReturnIcon, AddObligation$1 as AddObligation, AddressForm, Alert$1 as Alert, AllocatedIcon, AmountCallout$1 as AmountCallout, AutopayOnIcon, BankIcon, Banner$1 as Banner, Box, BoxWithShadow$1 as BoxWithShadow, Breadcrumbs as Breadcrumb, ButtonWithAction, ButtonWithLink, CalendarIcon, Card$1 as Card, CarrotIcon$1 as CarrotIcon, CashIcon, Center, CenterSingle$1 as CenterSingle, CenterStack$1 as CenterStack, ChangePasswordForm, ChargebackIcon, ChargebackReversalIcon, CheckIcon, Checkbox$1 as Checkbox, CheckboxList$1 as CheckboxList, CheckmarkIcon, ChevronIcon$1 as ChevronIcon, Cluster, CollapsibleSection$1 as CollapsibleSection, Copyable, CountryDropdown, Cover, CustomerSearchIcon, DefaultPageTemplate, Detail$1 as Detail, DisplayBox$1 as DisplayBox, DisplayCard, Dropdown$1 as Dropdown, DuplicateIcon, EditNameForm, EditableList, EditableTable, EmailForm, EmptyCartIcon$1 as EmptyCartIcon, ErroredIcon, ExternalLink, ExternalLinkIcon, FailedIcon, FooterWithSubfooter$1 as FooterWithSubfooter, ForgotPasswordForm, ForgotPasswordIcon$1 as ForgotPasswordIcon, FormContainer$1 as FormContainer, FormFooterPanel$1 as FormFooterPanel, FormInput$1 as FormInput, FormInputColumn, FormInputRow, FormSelect$1 as FormSelect, FormattedAddress$1 as FormattedAddress, FormattedCreditCard$1 as FormattedCreditCard, Frame, GenericCard, GenericCardLarge, GoToEmailIcon$1 as GoToEmailIcon, Grid, GuidedCheckoutImage, HamburgerButton, Heading$1 as Heading, HighlightTabRow$1 as HighlightTabRow, IconAdd, IconQuitLarge, Imposter, InternalLink, InternalUserInfoForm, Jumbo$1 as Jumbo, LabeledAmount$1 as LabeledAmount, LineItem$1 as LineItem, Loading, LoadingLine, LoginForm, Modal$1 as Modal, Module$1 as Module, Motion, NavFooter, NavHeader, NavMenuDesktop$1 as NavMenuDesktop, NavMenuMobile$1 as NavMenuMobile, NavTabs, NoCustomerResultsIcon, NoPaymentResultsIcon, NotFoundIcon, Obligation, iconsMap as ObligationIcons, Pagination, Paragraph$1 as Paragraph, PartialAmountForm, PasswordRequirements, PaymentButtonBar, PaymentDetails$1 as PaymentDetails, PaymentFormACH, PaymentFormCard$1 as PaymentFormCard, PaymentIcon, PaymentMethodAddIcon$1 as PaymentMethodAddIcon, PaymentMethodIcon$1 as PaymentMethodIcon, PaymentSearchIcon, PaymentsIconSmall$1 as PaymentsIconSmall, PendingIcon, PeriscopeDashboardIframe, PeriscopeFailedIcon, PhoneForm, Placeholder$1 as Placeholder, Popover$1 as Popover, ProcessingFee$1 as ProcessingFee, ProfileIcon$1 as ProfileIcon, ProfileIconSmall$1 as ProfileIconSmall, ProfileImage, PropertiesAddIcon$1 as PropertiesAddIcon, PropertiesIconSmall$1 as PropertiesIconSmall, RadioButton$2 as RadioButton, RadioSection$1 as RadioSection, Reel, RefundIcon, RegistrationForm, RejectedIcon, RejectedVelocityIcon, ResetConfirmationForm$1 as ResetConfirmationForm, ResetPasswordForm, ResetPasswordIcon, ResetPasswordSuccess, RoutingNumberImage, SearchIcon, SearchableSelect$1 as SearchableSelect, SettingsIconSmall$1 as SettingsIconSmall, ShoppingCartIcon, Sidebar, SidebarSingleContent$1 as SidebarSingleContent, SidebarStackContent$1 as SidebarStackContent, SolidDivider$1 as SolidDivider, Spinner$2 as Spinner, Stack, StandardCheckoutImage, FormStateDropdown as StateProvinceDropdown, StatusUnknownIcon, SuccessfulIcon, Switcher, TabSidebar$1 as TabSidebar, TableListItem, Tabs$1 as Tabs, TermsAndConditions, TermsAndConditionsModal$1 as TermsAndConditionsModal, Text$1 as Text, Timeout$1 as Timeout, TimeoutImage, Title$1 as Title, ToggleSwitch$1 as ToggleSwitch, TrashIcon$1 as TrashIcon, TypeaheadInput, VerifiedEmailIcon$1 as VerifiedEmailIcon, VoidedIcon, WalletBannerIcon$1 as WalletBannerIcon, WalletIcon$1 as WalletIcon, WalletIconSmall$1 as WalletIconSmall, WarningIconXS, WelcomeModule$1 as WelcomeModule, WorkflowTile, cardRegistry, index$5 as constants, createPartialAmountFormState, index$4 as util, withWindowSize };
47598
+ export { AccountNumberImage, AccountsAddIcon$1 as AccountsAddIcon, AccountsIcon$1 as AccountsIcon, AccountsIconSmall$1 as AccountsIconSmall, AchReturnIcon, AddObligation$1 as AddObligation, AddressForm, Alert$1 as Alert, AllocatedIcon, AmountCallout$1 as AmountCallout, AutopayOnIcon, BankIcon, Banner$1 as Banner, Box, BoxWithShadow$1 as BoxWithShadow, Breadcrumbs as Breadcrumb, ButtonWithAction, ButtonWithLink, CalendarIcon, Card$1 as Card, CarrotIcon$1 as CarrotIcon, CashIcon, Center, CenterSingle$1 as CenterSingle, CenterStack$1 as CenterStack, ChangePasswordForm, ChargebackIcon, ChargebackReversalIcon, CheckIcon, Checkbox$1 as Checkbox, CheckboxList$1 as CheckboxList, CheckmarkIcon, ChevronIcon$1 as ChevronIcon, Cluster, CollapsibleSection$1 as CollapsibleSection, Copyable, CountryDropdown, Cover, CustomerSearchIcon, DefaultPageTemplate, Detail$1 as Detail, DisplayBox$1 as DisplayBox, DisplayCard, Dropdown$1 as Dropdown, DuplicateIcon, EditNameForm, EditableList, EditableTable, EmailForm, EmptyCartIcon$1 as EmptyCartIcon, ErroredIcon, ExternalLink, ExternalLinkIcon, FailedIcon, FindIconSmall$1 as FindIconSmall, FooterWithSubfooter$1 as FooterWithSubfooter, ForgotPasswordForm, ForgotPasswordIcon$1 as ForgotPasswordIcon, FormContainer$1 as FormContainer, FormFooterPanel$1 as FormFooterPanel, FormInput$1 as FormInput, FormInputColumn, FormInputRow, FormSelect$1 as FormSelect, FormattedAddress$1 as FormattedAddress, FormattedCreditCard$1 as FormattedCreditCard, Frame, GenericCard, GenericCardLarge, GoToEmailIcon$1 as GoToEmailIcon, Grid, GuidedCheckoutImage, HamburgerButton, Heading$1 as Heading, HighlightTabRow$1 as HighlightTabRow, IconAdd, IconQuitLarge, Imposter, InternalLink, InternalUserInfoForm, Jumbo$1 as Jumbo, LabeledAmount$1 as LabeledAmount, LineItem$1 as LineItem, Loading, LoadingLine, LoginForm, Modal$1 as Modal, Module$1 as Module, Motion, NavFooter, NavHeader, NavMenuDesktop$1 as NavMenuDesktop, NavMenuMobile$1 as NavMenuMobile, NavTabs, NoCustomerResultsIcon, NoPaymentResultsIcon, NotFoundIcon, Obligation, iconsMap as ObligationIcons, Pagination, Paragraph$1 as Paragraph, PartialAmountForm, PasswordRequirements, PaymentButtonBar, PaymentDetails$1 as PaymentDetails, PaymentFormACH, PaymentFormCard$1 as PaymentFormCard, PaymentIcon, PaymentMethodAddIcon$1 as PaymentMethodAddIcon, PaymentMethodIcon$1 as PaymentMethodIcon, PaymentSearchIcon, PaymentsIconSmall$1 as PaymentsIconSmall, PendingIcon, PeriscopeDashboardIframe, PeriscopeFailedIcon, PhoneForm, Placeholder$1 as Placeholder, Popover$1 as Popover, ProcessingFee$1 as ProcessingFee, ProfileIcon$1 as ProfileIcon, ProfileIconSmall$1 as ProfileIconSmall, ProfileImage, PropertiesAddIcon$1 as PropertiesAddIcon, PropertiesIconSmall$1 as PropertiesIconSmall, RadioButton$2 as RadioButton, RadioButtonWithLabel, RadioGroup, RadioSection$1 as RadioSection, Reel, RefundIcon, RegistrationForm, RejectedIcon, RejectedVelocityIcon, ResetConfirmationForm$1 as ResetConfirmationForm, ResetPasswordForm, ResetPasswordIcon, ResetPasswordSuccess, RoutingNumberImage, SearchIcon, SearchableSelect$1 as SearchableSelect, SettingsIconSmall$1 as SettingsIconSmall, ShoppingCartIcon, Sidebar, SidebarSingleContent$1 as SidebarSingleContent, SidebarStackContent$1 as SidebarStackContent, SolidDivider$1 as SolidDivider, Spinner$2 as Spinner, Stack, StandardCheckoutImage, FormStateDropdown as StateProvinceDropdown, StatusUnknownIcon, SuccessfulIcon, Switcher, TabSidebar$1 as TabSidebar, TableListItem, Tabs$1 as Tabs, TermsAndConditions, TermsAndConditionsModal$1 as TermsAndConditionsModal, Text$1 as Text, Timeout$1 as Timeout, TimeoutImage, Title$1 as Title, ToggleSwitch$1 as ToggleSwitch, TrashIcon$1 as TrashIcon, TypeaheadInput, VerifiedEmailIcon$1 as VerifiedEmailIcon, VoidedIcon, WalletBannerIcon$1 as WalletBannerIcon, WalletIcon$1 as WalletIcon, WalletIconSmall$1 as WalletIconSmall, WarningIconXS, WelcomeModule$1 as WelcomeModule, WorkflowTile, cardRegistry, index$5 as constants, createPartialAmountFormState, index$4 as util, withWindowSize };
47460
47599
  //# sourceMappingURL=index.esm.js.map