@landtrustinc/design-system 1.2.30-beta.0 → 1.2.32-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.d.ts CHANGED
@@ -1113,21 +1113,6 @@ type TopMatchingFieldNoteProps = {
1113
1113
  * Children content (used when rendering from markdown)
1114
1114
  */
1115
1115
  children?: React__default.ReactNode;
1116
- /**
1117
- * Whether to use Bytescale image optimization
1118
- * @default true
1119
- */
1120
- isBytescaleImage?: boolean;
1121
- /**
1122
- * Image width for Bytescale optimization
1123
- * @default 376
1124
- */
1125
- width?: number;
1126
- /**
1127
- * Image height for Bytescale optimization
1128
- * @default 275
1129
- */
1130
- height?: number;
1131
1116
  };
1132
1117
  declare const TopMatchingFieldNote: FC<TopMatchingFieldNoteProps>;
1133
1118
 
package/dist/index.js CHANGED
@@ -5230,13 +5230,6 @@ var imageStyles = import_react17.css`
5230
5230
 
5231
5231
  // src/AIResponse/components/TopMatchingFieldNote/TopMatchingFieldNote.tsx
5232
5232
  var import_jsx_runtime217 = require("@emotion/react/jsx-runtime");
5233
- var BYTESCALE_ACCOUNT_ID = "12a1yC2";
5234
- var getImageUrl = (path, width2, height, useBytescale) => {
5235
- if (useBytescale) {
5236
- return `https://upcdn.io/${BYTESCALE_ACCOUNT_ID}/image${path}?w=${width2}&h=${height}&f=auto&cache_perm=auto&cache_ttl=31536000`;
5237
- }
5238
- return path;
5239
- };
5240
5233
  var TopMatchingFieldNote = ({
5241
5234
  author,
5242
5235
  datePosted,
@@ -5244,10 +5237,7 @@ var TopMatchingFieldNote = ({
5244
5237
  images,
5245
5238
  title = "Top matching field note",
5246
5239
  className,
5247
- children,
5248
- isBytescaleImage = true,
5249
- width: width2 = 376,
5250
- height = 275
5240
+ children
5251
5241
  }) => {
5252
5242
  let parsedImages = [];
5253
5243
  try {
@@ -5281,12 +5271,12 @@ var TopMatchingFieldNote = ({
5281
5271
  className,
5282
5272
  children: [
5283
5273
  /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(Text_default, { size: "md", color: "var(--text-primary)", children: displayContent }),
5284
- parsedImages.length > 0 && parsedImages[0] && /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
5274
+ parsedImages.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
5285
5275
  "div",
5286
5276
  {
5287
5277
  css: imageStyles,
5288
5278
  style: {
5289
- backgroundImage: `url('${getImageUrl(parsedImages[0], width2, height, isBytescaleImage)}')`
5279
+ backgroundImage: `url('${parsedImages[0]}')`
5290
5280
  }
5291
5281
  }
5292
5282
  ),
@@ -9007,7 +8997,11 @@ var ScrollingCarousel = ({
9007
8997
  {
9008
8998
  "aria-label": "Previous",
9009
8999
  type: "button",
9010
- onClick: back,
9000
+ onClick: (e) => {
9001
+ e.preventDefault();
9002
+ e.stopPropagation();
9003
+ back(e);
9004
+ },
9011
9005
  css: customLeftButton ? customButtonLeft(buttonsPosition) : buttonLeft(buttonsPosition),
9012
9006
  "data-testid": `scrolling-carousel-button-back-${id}`,
9013
9007
  children: customBackIcon ? customBackIcon : /* @__PURE__ */ (0, import_jsx_runtime252.jsx)("span", { css: iconWrapper, children: /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(Icon_default, { variant: "AngleLeft", css: icon }) })
@@ -9018,7 +9012,11 @@ var ScrollingCarousel = ({
9018
9012
  {
9019
9013
  "aria-label": "Next",
9020
9014
  type: "button",
9021
- onClick: next,
9015
+ onClick: (e) => {
9016
+ e.preventDefault();
9017
+ e.stopPropagation();
9018
+ next(e);
9019
+ },
9022
9020
  css: buttonRight(buttonsPosition),
9023
9021
  "data-testid": `scrolling-carousel-button-next-${id}`,
9024
9022
  children: customNextIcon ? customNextIcon : /* @__PURE__ */ (0, import_jsx_runtime252.jsx)("span", { css: iconWrapper, children: /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(Icon_default, { variant: "AngleRight", css: icon }) })
@@ -9065,7 +9063,11 @@ ScrollingCarousel.displayName = "ScrollingCarousel";
9065
9063
 
9066
9064
  // src/PackageCard/PackageCard.styles.ts
9067
9065
  var import_react58 = require("@emotion/react");
9068
- var cardContainerStyles3 = (orientation, hasContentBackground) => import_react58.css`
9066
+ var cardContainerStyles3 = (orientation, hasContentBackground, hasClickHandler) => import_react58.css`
9067
+ ${hasClickHandler && `
9068
+ cursor: pointer;
9069
+ `}
9070
+
9069
9071
  color: var(--text-primary);
9070
9072
  position: relative;
9071
9073
  width: 100%;
@@ -9229,8 +9231,9 @@ var PackageCard = ({
9229
9231
  Box_default,
9230
9232
  {
9231
9233
  position: "relative",
9232
- css: cardContainerStyles3(orientation, hasContentBackground),
9234
+ css: cardContainerStyles3(orientation, hasContentBackground, !!onClick),
9233
9235
  className,
9236
+ onClick,
9234
9237
  ...rest,
9235
9238
  children: [
9236
9239
  /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
@@ -9261,7 +9264,6 @@ var PackageCard = ({
9261
9264
  ScrollingCarouselStep,
9262
9265
  {
9263
9266
  parentId: carouselId,
9264
- onClick,
9265
9267
  children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
9266
9268
  Box_default,
9267
9269
  {
@@ -9315,7 +9317,6 @@ var PackageCard = ({
9315
9317
  /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
9316
9318
  Box_default,
9317
9319
  {
9318
- onClick,
9319
9320
  display: "flex",
9320
9321
  flexDirection: "column",
9321
9322
  gap: "var(--spacing-1)",