@landtrustinc/design-system 1.2.69 → 1.2.70

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.js CHANGED
@@ -6251,6 +6251,10 @@ var textareaBase = import_react29.css`
6251
6251
  overscroll-behavior: contain;
6252
6252
  overscroll-behavior-y: contain;
6253
6253
 
6254
+ @media (max-width: calc(${screens.lg} - 1px)) {
6255
+ font-size: 16px;
6256
+ }
6257
+
6254
6258
  &::placeholder {
6255
6259
  color: var(--text-secondary);
6256
6260
  }
@@ -7144,9 +7148,9 @@ var panelCard = (width2) => import_react35.css`
7144
7148
  }
7145
7149
 
7146
7150
  @media (max-width: calc(${screens.lg} - 1px)) {
7147
- width: 100vw;
7148
- height: 100dvh;
7149
- max-height: 100dvh;
7151
+ width: 100%;
7152
+ height: 100%;
7153
+ max-height: none;
7150
7154
  border-radius: 0;
7151
7155
  padding: var(--spacing-4);
7152
7156
  padding-bottom: calc(var(--spacing-4) + env(safe-area-inset-bottom));
@@ -7186,18 +7190,51 @@ var WidgetTrigger = () => {
7186
7190
  };
7187
7191
  var WidgetPanel = ({ className, style, children }) => {
7188
7192
  const { expanded, panelWidth } = useWidgetContext();
7193
+ const panelRef = (0, import_react36.useRef)(null);
7194
+ (0, import_react36.useEffect)(() => {
7195
+ if (!expanded)
7196
+ return;
7197
+ const vv = window.visualViewport;
7198
+ if (!vv)
7199
+ return;
7200
+ const onResize = () => {
7201
+ const el = panelRef.current;
7202
+ if (!el)
7203
+ return;
7204
+ const isMobile = window.matchMedia(
7205
+ `(max-width: calc(${screens.lg} - 1px))`
7206
+ ).matches;
7207
+ if (!isMobile) {
7208
+ el.style.height = "";
7209
+ return;
7210
+ }
7211
+ el.style.height = `${vv.height}px`;
7212
+ };
7213
+ vv.addEventListener("resize", onResize);
7214
+ onResize();
7215
+ return () => vv.removeEventListener("resize", onResize);
7216
+ }, [expanded]);
7189
7217
  if (!expanded)
7190
7218
  return null;
7191
- return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)("div", { css: panelContainer, className, style, children: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
7192
- Box_default,
7219
+ return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
7220
+ "div",
7193
7221
  {
7194
- css: panelCard(panelWidth),
7195
- role: "dialog",
7196
- "aria-modal": true,
7197
- "aria-hidden": false,
7198
- children
7222
+ ref: panelRef,
7223
+ css: panelContainer,
7224
+ className,
7225
+ style,
7226
+ children: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
7227
+ Box_default,
7228
+ {
7229
+ css: panelCard(panelWidth),
7230
+ role: "dialog",
7231
+ "aria-modal": true,
7232
+ "aria-hidden": false,
7233
+ children
7234
+ }
7235
+ )
7199
7236
  }
7200
- ) });
7237
+ );
7201
7238
  };
7202
7239
  var WidgetRoot = ({
7203
7240
  ariaLabel,