@thecb/components 11.2.1-beta.0 → 11.2.2-beta.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/dist/index.cjs.js CHANGED
@@ -16170,7 +16170,7 @@ var ExternalLinkIcon = function ExternalLinkIcon(_ref) {
16170
16170
  x: "-0.0864258",
16171
16171
  width: "14",
16172
16172
  height: "14",
16173
- fill: "none"
16173
+ fill: linkColor
16174
16174
  })));
16175
16175
  };
16176
16176
 
@@ -51279,116 +51279,6 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
51279
51279
  };
51280
51280
  var MultipleSelectFilter$1 = themeComponent(MultipleSelectFilter, "MultipleSelectFilter", fallbackValues$$);
51281
51281
 
51282
- var Container$1 = styled__default(Box).withConfig({
51283
- displayName: "ContactCardstyled__Container",
51284
- componentId: "sc-1v62a1n-0"
51285
- })(["display:flex;padding:1rem;flex-direction:column;align-items:flex-start;gap:1.5rem;border-radius:8px;"]);
51286
- var Title$3 = styled__default(Heading$1).withConfig({
51287
- displayName: "ContactCardstyled__Title",
51288
- componentId: "sc-1v62a1n-1"
51289
- })(["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);
51290
- var Content = styled__default(Box).withConfig({
51291
- displayName: "ContactCardstyled__Content",
51292
- componentId: "sc-1v62a1n-2"
51293
- })(["padding:0;font-size:", ";line-height:1.313rem;overflow-wrap:normal;letter-spacing:0.14px;"], FONT_SIZE.SM);
51294
- var Footer$1 = styled__default(Stack).withConfig({
51295
- displayName: "ContactCardstyled__Footer",
51296
- componentId: "sc-1v62a1n-3"
51297
- })(["width:100%;"]);
51298
- var Divider = styled__default(Box).withConfig({
51299
- displayName: "ContactCardstyled__Divider",
51300
- componentId: "sc-1v62a1n-4"
51301
- })(["padding:0;height:1px;width:100%;"]);
51302
-
51303
- var ContactCard = function ContactCard(_ref) {
51304
- var title = _ref.title,
51305
- _ref$secondTitle = _ref.secondTitle,
51306
- secondTitle = _ref$secondTitle === void 0 ? "Helpful Links" : _ref$secondTitle,
51307
- _ref$content = _ref.content,
51308
- content = _ref$content === void 0 ? "" : _ref$content,
51309
- _ref$links = _ref.links,
51310
- links = _ref$links === void 0 ? [] : _ref$links,
51311
- _ref$extraStyles = _ref.extraStyles,
51312
- extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles,
51313
- _ref$titleVariant = _ref.titleVariant,
51314
- titleVariant = _ref$titleVariant === void 0 ? "h3" : _ref$titleVariant,
51315
- _ref$ariaLabel = _ref.ariaLabel,
51316
- ariaLabel = _ref$ariaLabel === void 0 ? "Contact Information" : _ref$ariaLabel,
51317
- _ref$linkVariant = _ref.linkVariant,
51318
- linkVariant = _ref$linkVariant === void 0 ? "primary" : _ref$linkVariant;
51319
- var themeContext = React.useContext(styled.ThemeContext);
51320
- var isMobile = themeContext.isMobile;
51321
- var linkFallbackValues = {
51322
- externalLinkColor: ROYAL_BLUE_VIVID
51323
- };
51324
- var linkThemeValues = createThemeValues(themeContext, linkFallbackValues, "Link", linkVariant);
51325
- return /*#__PURE__*/React__default.createElement(Container$1, {
51326
- borderRadius: "8px",
51327
- boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.25)",
51328
- dataQa: createIdFromString(title, "contact-card"),
51329
- maxWidth: isMobile ? "100%" : "208px",
51330
- minWidth: isMobile ? "240px" : "208px",
51331
- minHeight: "141px",
51332
- padding: "1.5rem",
51333
- extraStyles: extraStyles,
51334
- role: "complementary",
51335
- "aria-label": ariaLabel
51336
- }, /*#__PURE__*/React__default.createElement(Stack, {
51337
- childGap: "8px",
51338
- bottomItem: 3,
51339
- justify: "space-between",
51340
- style: {
51341
- width: "100%"
51342
- },
51343
- fullHeight: true
51344
- }, /*#__PURE__*/React__default.createElement(Box, {
51345
- padding: 0,
51346
- width: "100%"
51347
- }, /*#__PURE__*/React__default.createElement(Title$3, {
51348
- variant: titleVariant,
51349
- margin: 0,
51350
- fontSize: FONT_SIZE.MD
51351
- }, title)), /*#__PURE__*/React__default.createElement(Box, {
51352
- padding: "0",
51353
- width: "100%"
51354
- }, /*#__PURE__*/React__default.createElement(Content, null, content))), links.length > 0 && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(SolidDivider$1, {
51355
- "aria-hidden": true
51356
- }), /*#__PURE__*/React__default.createElement(Stack, {
51357
- childGap: "8px",
51358
- bottomItem: 3,
51359
- justify: "space-between",
51360
- style: {
51361
- width: "100%"
51362
- },
51363
- fullHeight: true
51364
- }, /*#__PURE__*/React__default.createElement(Title$3, {
51365
- variant: titleVariant,
51366
- margin: 0,
51367
- fontSize: FONT_SIZE.MD
51368
- }, secondTitle), /*#__PURE__*/React__default.createElement(Stack, {
51369
- childGap: "4px",
51370
- justify: "space-between",
51371
- style: {
51372
- width: "100%"
51373
- },
51374
- fullHeight: true
51375
- }, links.map(function (link) {
51376
- var linkID = createIdFromString(link.text, "contact-card-link");
51377
- return /*#__PURE__*/React__default.createElement(ExternalLink, {
51378
- key: linkID,
51379
- dataQa: linkID,
51380
- href: link.link,
51381
- newTab: true,
51382
- extraStyles: "\n flex-direction: row;\n align-items: center;\n align-content: flex-start;\n justify-content: space-between;\n ",
51383
- size: FONT_SIZE.SM,
51384
- lineHeight: "1.313rem"
51385
- }, link.text, /*#__PURE__*/React__default.createElement(ExternalLinkIcon, {
51386
- linkColor: linkThemeValues.externalLinkColor,
51387
- text: link.text
51388
- }));
51389
- })))));
51390
- };
51391
-
51392
51282
  var pageBackground = "#FBFCFD";
51393
51283
  var fallbackValues$10 = {
51394
51284
  pageBackground: pageBackground
@@ -51773,7 +51663,6 @@ exports.ChevronIcon = ChevronIcon$1;
51773
51663
  exports.CloseIcon = CloseIcon;
51774
51664
  exports.Cluster = Cluster;
51775
51665
  exports.CollapsibleSection = CollapsibleSection$1;
51776
- exports.ContactCard = ContactCard;
51777
51666
  exports.Copyable = Copyable;
51778
51667
  exports.CountryDropdown = CountryDropdown;
51779
51668
  exports.Cover = Cover;