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