@landtrustinc/design-system 1.2.50 → 1.2.51-beta.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.d.ts CHANGED
@@ -1156,13 +1156,13 @@ type TopMatchingFieldNoteProps = {
1156
1156
  */
1157
1157
  children?: React__default.ReactNode;
1158
1158
  /**
1159
- * Image width for optimization
1160
- * @default 376
1159
+ * Image width for optimization (2x for retina)
1160
+ * @default 752
1161
1161
  */
1162
1162
  width?: number;
1163
1163
  /**
1164
- * Image height for optimization
1165
- * @default 275
1164
+ * Image height for optimization (2x for retina)
1165
+ * @default 550
1166
1166
  */
1167
1167
  height?: number;
1168
1168
  };
package/dist/index.js CHANGED
@@ -5385,8 +5385,8 @@ var imageStyles = import_react19.css`
5385
5385
  width: 100%;
5386
5386
  height: 275px;
5387
5387
  border-radius: var(--radius-lg);
5388
- background-size: cover;
5389
- background-position: center;
5388
+ object-fit: cover;
5389
+ object-position: center;
5390
5390
  `;
5391
5391
 
5392
5392
  // src/AIResponse/components/TopMatchingFieldNote/TopMatchingFieldNote.tsx
@@ -5399,8 +5399,8 @@ var TopMatchingFieldNote = ({
5399
5399
  title = "Top matching field note",
5400
5400
  className,
5401
5401
  children,
5402
- width: width2 = 376,
5403
- height = 275
5402
+ width: width2 = 752,
5403
+ height = 550
5404
5404
  }) => {
5405
5405
  let parsedImages = [];
5406
5406
  try {
@@ -6387,6 +6387,18 @@ var WidgetRoot = ({
6387
6387
  document.addEventListener("keydown", onKey);
6388
6388
  return () => document.removeEventListener("keydown", onKey);
6389
6389
  }, [isExpanded, setExpanded]);
6390
+ (0, import_react31.useEffect)(() => {
6391
+ if (!isExpanded)
6392
+ return;
6393
+ const isMobile = window.matchMedia("(max-width: 767px)").matches;
6394
+ if (!isMobile)
6395
+ return;
6396
+ const originalOverflow = document.body.style.overflow;
6397
+ document.body.style.overflow = "hidden";
6398
+ return () => {
6399
+ document.body.style.overflow = originalOverflow;
6400
+ };
6401
+ }, [isExpanded]);
6390
6402
  const value = (0, import_react31.useMemo)(
6391
6403
  () => ({
6392
6404
  expanded: isExpanded,
@@ -8965,8 +8977,7 @@ var containerStyles4 = import_react58.css`
8965
8977
  `;
8966
8978
  var headerStyles = import_react58.css`
8967
8979
  display: flex;
8968
- align-items: flex-start;
8969
- justify-content: space-between;
8980
+ flex-direction: column;
8970
8981
  gap: var(--spacing-2);
8971
8982
  `;
8972
8983
  var chipsContainerStyles = import_react58.css`
@@ -9019,14 +9030,14 @@ var ListingChat = ({
9019
9030
  );
9020
9031
  return /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(Box_default, { css: containerStyles4, className, ...rest, children: [
9021
9032
  /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(Box_default, { css: headerStyles, children: [
9022
- /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(Box_default, { children: [
9023
- /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(Box_default, { mb: "var(--spacing-2)", children: /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", children: title }) }),
9024
- /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(Text_default, { size: "md", children: "Get instant answers with Buck, our AI powered assistant." })
9033
+ /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(Box_default, { display: "flex", alignItems: "center", justifyContent: "space-between", children: [
9034
+ /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", children: title }),
9035
+ /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-1)", children: [
9036
+ /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(Icon_default, { variant: "AiMagic", size: "medium" }),
9037
+ /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(Text_default, { size: "sm", children: "Beta" })
9038
+ ] })
9025
9039
  ] }),
9026
- /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-1)", children: [
9027
- /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(Icon_default, { variant: "AiMagic", size: "medium" }),
9028
- /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(Text_default, { size: "sm", children: "Beta" })
9029
- ] })
9040
+ /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(Text_default, { size: "md", textWrap: "wrap", children: "Get instant answers with Buck, our AI powered assistant." })
9030
9041
  ] }),
9031
9042
  /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(Box_default, { css: inputWrapperStyles2, children: /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
9032
9043
  TextArea,