@thecb/components 11.2.0 → 11.2.1

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
@@ -16162,7 +16162,7 @@ var ExternalLinkIcon = function ExternalLinkIcon(_ref) {
16162
16162
  x: "-0.0864258",
16163
16163
  width: "14",
16164
16164
  height: "14",
16165
- fill: linkColor
16165
+ fill: "none"
16166
16166
  })));
16167
16167
  };
16168
16168
 
@@ -50080,11 +50080,13 @@ var fallbackValues$X = {
50080
50080
  var TabSidebar = function TabSidebar(_ref) {
50081
50081
  var links = _ref.links,
50082
50082
  isMobile = _ref.isMobile,
50083
- themeValues = _ref.themeValues;
50083
+ themeValues = _ref.themeValues,
50084
+ _ref$minHeight = _ref.minHeight,
50085
+ minHeight = _ref$minHeight === void 0 ? "100%" : _ref$minHeight;
50084
50086
  return /*#__PURE__*/React.createElement(Box, {
50085
50087
  padding: "0",
50086
50088
  background: COOL_GREY_05,
50087
- minHeight: "100%",
50089
+ minHeight: minHeight,
50088
50090
  role: "region",
50089
50091
  "aria-label": "Profile tabs",
50090
50092
  boxShadow: isMobile && "inset 0px -1px 0px 0px rgb(202, 206, 216)"
@@ -51271,6 +51273,116 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
51271
51273
  };
51272
51274
  var MultipleSelectFilter$1 = themeComponent(MultipleSelectFilter, "MultipleSelectFilter", fallbackValues$$);
51273
51275
 
51276
+ var Container$1 = styled(Box).withConfig({
51277
+ displayName: "ContactCardstyled__Container",
51278
+ componentId: "sc-1v62a1n-0"
51279
+ })(["height:fit-content;display:flex;padding:1rem;flex-direction:column;align-items:flex-start;gap:1.5rem;border-radius:8px;"]);
51280
+ var Title$3 = styled(Heading$1).withConfig({
51281
+ displayName: "ContactCardstyled__Title",
51282
+ componentId: "sc-1v62a1n-1"
51283
+ })(["display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;align-self:stretch;overflow:hidden;text-overflow:ellipsis;background-color:transparent;font-weight:", ";"], FONT_WEIGHT_SEMIBOLD);
51284
+ var Content = styled(Box).withConfig({
51285
+ displayName: "ContactCardstyled__Content",
51286
+ componentId: "sc-1v62a1n-2"
51287
+ })(["padding:0;font-size:", ";line-height:1.313rem;overflow-wrap:normal;letter-spacing:0.14px;"], FONT_SIZE.SM);
51288
+ var Footer$1 = styled(Stack).withConfig({
51289
+ displayName: "ContactCardstyled__Footer",
51290
+ componentId: "sc-1v62a1n-3"
51291
+ })(["width:100%;"]);
51292
+ var Divider = styled(Box).withConfig({
51293
+ displayName: "ContactCardstyled__Divider",
51294
+ componentId: "sc-1v62a1n-4"
51295
+ })(["padding:0;height:1px;width:100%;"]);
51296
+
51297
+ var ContactCard = function ContactCard(_ref) {
51298
+ var title = _ref.title,
51299
+ _ref$secondTitle = _ref.secondTitle,
51300
+ secondTitle = _ref$secondTitle === void 0 ? "Helpful Links" : _ref$secondTitle,
51301
+ _ref$content = _ref.content,
51302
+ content = _ref$content === void 0 ? "" : _ref$content,
51303
+ _ref$links = _ref.links,
51304
+ links = _ref$links === void 0 ? [] : _ref$links,
51305
+ _ref$extraStyles = _ref.extraStyles,
51306
+ extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles,
51307
+ _ref$titleVariant = _ref.titleVariant,
51308
+ titleVariant = _ref$titleVariant === void 0 ? "h3" : _ref$titleVariant,
51309
+ _ref$ariaLabel = _ref.ariaLabel,
51310
+ ariaLabel = _ref$ariaLabel === void 0 ? "Contact Information" : _ref$ariaLabel,
51311
+ _ref$linkVariant = _ref.linkVariant,
51312
+ linkVariant = _ref$linkVariant === void 0 ? "primary" : _ref$linkVariant;
51313
+ var themeContext = useContext(ThemeContext);
51314
+ var isMobile = themeContext.isMobile;
51315
+ var linkFallbackValues = {
51316
+ externalLinkColor: ROYAL_BLUE_VIVID
51317
+ };
51318
+ var linkThemeValues = createThemeValues(themeContext, linkFallbackValues, "Link", linkVariant);
51319
+ return /*#__PURE__*/React.createElement(Container$1, {
51320
+ borderRadius: "8px",
51321
+ boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.25)",
51322
+ dataQa: createIdFromString(title, "contact-card"),
51323
+ maxWidth: isMobile ? "100%" : "208px",
51324
+ minWidth: isMobile ? "240px" : "208px",
51325
+ minHeight: "141px",
51326
+ padding: "1.5rem",
51327
+ extraStyles: extraStyles,
51328
+ role: "complementary",
51329
+ "aria-label": ariaLabel
51330
+ }, /*#__PURE__*/React.createElement(Stack, {
51331
+ childGap: "8px",
51332
+ bottomItem: 3,
51333
+ justify: "space-between",
51334
+ style: {
51335
+ width: "100%"
51336
+ },
51337
+ fullHeight: true
51338
+ }, /*#__PURE__*/React.createElement(Box, {
51339
+ padding: 0,
51340
+ width: "100%"
51341
+ }, /*#__PURE__*/React.createElement(Title$3, {
51342
+ variant: titleVariant,
51343
+ margin: 0,
51344
+ fontSize: FONT_SIZE.MD
51345
+ }, title)), /*#__PURE__*/React.createElement(Box, {
51346
+ padding: "0",
51347
+ width: "100%"
51348
+ }, /*#__PURE__*/React.createElement(Content, null, content))), links.length > 0 && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SolidDivider$1, {
51349
+ "aria-hidden": true
51350
+ }), /*#__PURE__*/React.createElement(Stack, {
51351
+ childGap: "8px",
51352
+ bottomItem: 3,
51353
+ justify: "space-between",
51354
+ style: {
51355
+ width: "100%"
51356
+ },
51357
+ fullHeight: true
51358
+ }, /*#__PURE__*/React.createElement(Title$3, {
51359
+ variant: titleVariant,
51360
+ margin: 0,
51361
+ fontSize: FONT_SIZE.MD
51362
+ }, secondTitle), /*#__PURE__*/React.createElement(Stack, {
51363
+ childGap: "4px",
51364
+ justify: "space-between",
51365
+ style: {
51366
+ width: "100%"
51367
+ },
51368
+ fullHeight: true
51369
+ }, links.map(function (link) {
51370
+ var linkID = createIdFromString(link.text, "contact-card-link");
51371
+ return /*#__PURE__*/React.createElement(ExternalLink, {
51372
+ key: linkID,
51373
+ dataQa: linkID,
51374
+ href: link.link,
51375
+ newTab: true,
51376
+ extraStyles: "\n flex-direction: row;\n align-items: center;\n align-content: flex-start;\n justify-content: space-between;\n ",
51377
+ size: FONT_SIZE.SM,
51378
+ lineHeight: "1.313rem"
51379
+ }, link.text, /*#__PURE__*/React.createElement(ExternalLinkIcon, {
51380
+ linkColor: linkThemeValues.externalLinkColor,
51381
+ text: link.text
51382
+ }));
51383
+ })))));
51384
+ };
51385
+
51274
51386
  var pageBackground = "#FBFCFD";
51275
51387
  var fallbackValues$10 = {
51276
51388
  pageBackground: pageBackground
@@ -51603,5 +51715,5 @@ var index$6 = /*#__PURE__*/Object.freeze({
51603
51715
  useLogoutTimers: useLogoutTimers
51604
51716
  });
51605
51717
 
51606
- export { AccountNumberImage, AccountsAddIcon$1 as AccountsAddIcon, AccountsIcon$1 as AccountsIcon, AccountsIconSmall$1 as AccountsIconSmall, AchReturnIcon, AddObligation$1 as AddObligation, AddressForm, AgencyIcon, Alert$1 as Alert, AllocatedIcon, AmountCallout$1 as AmountCallout, ArrowDownCircleIconSmall, ArrowLeftCircleIconMedium, ArrowLeftCircleIconSmall, ArrowRightCircleIconSmall, ArrowRightIcon, ArrowUpCircleIconSmall, AutopayIcon, AutopayOnIcon, Badge$1 as Badge, BankIcon, BankIconLarge, Banner$1 as Banner, Box, BoxWithShadow$1 as BoxWithShadow, Breadcrumbs as Breadcrumb, ButtonWithAction, ButtonWithLink, CalendarIcon, Card$1 as Card, CaretArrowDown$1 as CaretArrowDown, CaretArrowUp$1 as CaretArrowUp, CarrotIcon$1 as CarrotIcon, CashIcon, Center, CenterSingle$1 as CenterSingle, CenterStack$1 as CenterStack, ChangePasswordForm, ChargebackIcon, ChargebackIconMedium, ChargebackIconSmall, ChargebackReversalIcon, ChargebackReversalIconMedium, ChargebackReversalIconSmall, CheckIcon, Checkbox$1 as Checkbox, CheckboxList$1 as CheckboxList, CheckmarkIcon, ChevronIcon$1 as ChevronIcon, CloseIcon, Cluster, CollapsibleSection$1 as CollapsibleSection, Copyable, CountryDropdown, Cover, CustomerSearchIcon, DefaultPageTemplate, Detail$1 as Detail, DisabledAccountsAddIcon, DisabledPaymentMethodsAddIcon, DisabledPropertiesAddIcon, DisplayBox$1 as DisplayBox, DisplayCard, Dropdown$1 as Dropdown, DuplicateIcon, EditNameForm, EditableList, EditableTable, EmailForm, EmptyCartIcon$1 as EmptyCartIcon, EmptyCartIconV2$1 as EmptyCartIconV2, 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, FormattedBankAccount$1 as FormattedBankAccount, FormattedCreditCard$1 as FormattedCreditCard, Frame, GenericCard, GenericCardLarge, GenericErrorIcon, GoToEmailIcon$1 as GoToEmailIcon, Grid, GuidedCheckoutImage, HamburgerButton, Heading$1 as Heading, HighlightTabRow$1 as HighlightTabRow, HistoryIconSmall$1 as HistoryIconSmall, IconAdd, IconQuitLarge, IdleModal, ImageBox, Imposter, InternalLink, Jumbo$1 as Jumbo, KebabMenuIcon, KioskImage, LabeledAmount$1 as LabeledAmount, LineItem$1 as LineItem, LinkCard$1 as LinkCard, Loading, LoadingLine, LoginForm, Modal$3 as Modal, Module$1 as Module, Motion, MultiCartIcon, MultipleSelectFilter$1 as MultipleSelectFilter, NavFooter, NavHeader, NavMenuDesktop$1 as NavMenuDesktop, NavMenuMobile$1 as NavMenuMobile, NavTabs, NoResultsIcon, NotFoundIcon, Obligation$1 as Obligation, iconsMap as ObligationIcons, OverageIcon, Pagination$1 as Pagination, Paragraph$1 as Paragraph, PartialAmountForm, PasswordRequirements, PaymentButtonBar, PaymentDetails$1 as PaymentDetails, PaymentFormACH, PaymentFormCard$1 as PaymentFormCard, PaymentMethodAddIcon$1 as PaymentMethodAddIcon, PaymentMethodIcon$1 as PaymentMethodIcon, PaymentSearchIcon, PaymentStatusIcon, PaymentsIconSmall$1 as PaymentsIconSmall, PencilIcon$1 as PencilIcon, PendingIcon, PeriscopeDashboardIframe, PeriscopeFailedIcon, PersonIcon, PhoneForm, Placeholder$1 as Placeholder, PlusCircleIcon, PointOfSaleImage, Popover$1 as Popover, PopupMenu$1 as PopupMenu, 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$1 as RadioButtonWithLabel, RadioGroup, RadioSection$1 as RadioSection, Reel, RefundIcon, RefundIconMedium, RefundIconSmall, RegistrationForm, RejectedIcon, RejectedVelocityIcon, ResetConfirmationForm$1 as ResetConfirmationForm, ResetPasswordForm, ResetPasswordIcon, ResetPasswordSuccess$1 as ResetPasswordSuccess, RevenueManagementImage, ReversalNeededIcon, RoutingNumberImage, Search$1 as Search, SearchIcon, SearchableSelect$1 as SearchableSelect, SettingsIconSmall$1 as SettingsIconSmall, ShoppingCartIcon, ShortageIcon, Sidebar, SidebarSingleContent$1 as SidebarSingleContent, SidebarStackContent$1 as SidebarStackContent, SolidDivider$1 as SolidDivider, SortableTableHeading$1 as SortableTableHeading, Spinner$2 as Spinner, Stack, StandardCheckoutImage, FormStateDropdown as StateProvinceDropdown, StatusUnknownIcon, SuccessfulIcon, SuccessfulIconMedium, SuccessfulIconSmall, Switcher, TabSidebar$1 as TabSidebar, Table_styled as Table, TableBody_styled as TableBody, TableCell_styled as TableCell, TableHead$1 as TableHead, TableHeading, TableListItem, TableRow$1 as TableRow, Tabs$1 as Tabs, TermsAndConditions, TermsAndConditionsModal$1 as TermsAndConditionsModal, Text$1 as Text, Timeout$1 as Timeout, TimeoutImage, Title$1 as Title, ToastNotification, ToggleSwitch$1 as ToggleSwitch, TrashIcon$1 as TrashIcon, TrashIconV2$1 as TrashIconV2, TypeaheadInput, VerifiedEmailIcon$1 as VerifiedEmailIcon, VoidedIcon, WalletBannerIcon$1 as WalletBannerIcon, WalletIcon$1 as WalletIcon, WalletIconSmall$1 as WalletIconSmall, WalletName, WarningIconXS, WelcomeModule$1 as WelcomeModule, WorkflowTile, XCircleIconMedium, XCircleIconSmall, cardRegistry, index$4 as constants, createPartialAmountFormState, createPartialAmountFormValidators, index$5 as hooks, index$6 as util, withWindowSize };
51718
+ export { AccountNumberImage, AccountsAddIcon$1 as AccountsAddIcon, AccountsIcon$1 as AccountsIcon, AccountsIconSmall$1 as AccountsIconSmall, AchReturnIcon, AddObligation$1 as AddObligation, AddressForm, AgencyIcon, Alert$1 as Alert, AllocatedIcon, AmountCallout$1 as AmountCallout, ArrowDownCircleIconSmall, ArrowLeftCircleIconMedium, ArrowLeftCircleIconSmall, ArrowRightCircleIconSmall, ArrowRightIcon, ArrowUpCircleIconSmall, AutopayIcon, AutopayOnIcon, Badge$1 as Badge, BankIcon, BankIconLarge, Banner$1 as Banner, Box, BoxWithShadow$1 as BoxWithShadow, Breadcrumbs as Breadcrumb, ButtonWithAction, ButtonWithLink, CalendarIcon, Card$1 as Card, CaretArrowDown$1 as CaretArrowDown, CaretArrowUp$1 as CaretArrowUp, CarrotIcon$1 as CarrotIcon, CashIcon, Center, CenterSingle$1 as CenterSingle, CenterStack$1 as CenterStack, ChangePasswordForm, ChargebackIcon, ChargebackIconMedium, ChargebackIconSmall, ChargebackReversalIcon, ChargebackReversalIconMedium, ChargebackReversalIconSmall, CheckIcon, Checkbox$1 as Checkbox, CheckboxList$1 as CheckboxList, CheckmarkIcon, ChevronIcon$1 as ChevronIcon, CloseIcon, Cluster, CollapsibleSection$1 as CollapsibleSection, ContactCard, Copyable, CountryDropdown, Cover, CustomerSearchIcon, DefaultPageTemplate, Detail$1 as Detail, DisabledAccountsAddIcon, DisabledPaymentMethodsAddIcon, DisabledPropertiesAddIcon, DisplayBox$1 as DisplayBox, DisplayCard, Dropdown$1 as Dropdown, DuplicateIcon, EditNameForm, EditableList, EditableTable, EmailForm, EmptyCartIcon$1 as EmptyCartIcon, EmptyCartIconV2$1 as EmptyCartIconV2, 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, FormattedBankAccount$1 as FormattedBankAccount, FormattedCreditCard$1 as FormattedCreditCard, Frame, GenericCard, GenericCardLarge, GenericErrorIcon, GoToEmailIcon$1 as GoToEmailIcon, Grid, GuidedCheckoutImage, HamburgerButton, Heading$1 as Heading, HighlightTabRow$1 as HighlightTabRow, HistoryIconSmall$1 as HistoryIconSmall, IconAdd, IconQuitLarge, IdleModal, ImageBox, Imposter, InternalLink, Jumbo$1 as Jumbo, KebabMenuIcon, KioskImage, LabeledAmount$1 as LabeledAmount, LineItem$1 as LineItem, LinkCard$1 as LinkCard, Loading, LoadingLine, LoginForm, Modal$3 as Modal, Module$1 as Module, Motion, MultiCartIcon, MultipleSelectFilter$1 as MultipleSelectFilter, NavFooter, NavHeader, NavMenuDesktop$1 as NavMenuDesktop, NavMenuMobile$1 as NavMenuMobile, NavTabs, NoResultsIcon, NotFoundIcon, Obligation$1 as Obligation, iconsMap as ObligationIcons, OverageIcon, Pagination$1 as Pagination, Paragraph$1 as Paragraph, PartialAmountForm, PasswordRequirements, PaymentButtonBar, PaymentDetails$1 as PaymentDetails, PaymentFormACH, PaymentFormCard$1 as PaymentFormCard, PaymentMethodAddIcon$1 as PaymentMethodAddIcon, PaymentMethodIcon$1 as PaymentMethodIcon, PaymentSearchIcon, PaymentStatusIcon, PaymentsIconSmall$1 as PaymentsIconSmall, PencilIcon$1 as PencilIcon, PendingIcon, PeriscopeDashboardIframe, PeriscopeFailedIcon, PersonIcon, PhoneForm, Placeholder$1 as Placeholder, PlusCircleIcon, PointOfSaleImage, Popover$1 as Popover, PopupMenu$1 as PopupMenu, 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$1 as RadioButtonWithLabel, RadioGroup, RadioSection$1 as RadioSection, Reel, RefundIcon, RefundIconMedium, RefundIconSmall, RegistrationForm, RejectedIcon, RejectedVelocityIcon, ResetConfirmationForm$1 as ResetConfirmationForm, ResetPasswordForm, ResetPasswordIcon, ResetPasswordSuccess$1 as ResetPasswordSuccess, RevenueManagementImage, ReversalNeededIcon, RoutingNumberImage, Search$1 as Search, SearchIcon, SearchableSelect$1 as SearchableSelect, SettingsIconSmall$1 as SettingsIconSmall, ShoppingCartIcon, ShortageIcon, Sidebar, SidebarSingleContent$1 as SidebarSingleContent, SidebarStackContent$1 as SidebarStackContent, SolidDivider$1 as SolidDivider, SortableTableHeading$1 as SortableTableHeading, Spinner$2 as Spinner, Stack, StandardCheckoutImage, FormStateDropdown as StateProvinceDropdown, StatusUnknownIcon, SuccessfulIcon, SuccessfulIconMedium, SuccessfulIconSmall, Switcher, TabSidebar$1 as TabSidebar, Table_styled as Table, TableBody_styled as TableBody, TableCell_styled as TableCell, TableHead$1 as TableHead, TableHeading, TableListItem, TableRow$1 as TableRow, Tabs$1 as Tabs, TermsAndConditions, TermsAndConditionsModal$1 as TermsAndConditionsModal, Text$1 as Text, Timeout$1 as Timeout, TimeoutImage, Title$1 as Title, ToastNotification, ToggleSwitch$1 as ToggleSwitch, TrashIcon$1 as TrashIcon, TrashIconV2$1 as TrashIconV2, TypeaheadInput, VerifiedEmailIcon$1 as VerifiedEmailIcon, VoidedIcon, WalletBannerIcon$1 as WalletBannerIcon, WalletIcon$1 as WalletIcon, WalletIconSmall$1 as WalletIconSmall, WalletName, WarningIconXS, WelcomeModule$1 as WelcomeModule, WorkflowTile, XCircleIconMedium, XCircleIconSmall, cardRegistry, index$4 as constants, createPartialAmountFormState, createPartialAmountFormValidators, index$5 as hooks, index$6 as util, withWindowSize };
51607
51719
  //# sourceMappingURL=index.esm.js.map