@astryxdesign/core 0.2.0-canary.33d4e98 → 0.2.0-canary.7c59787

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.
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownMenuSubMenu.d.ts","sourceRoot":"","sources":["../../src/DropdownMenu/DropdownMenuSubMenu.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,OAAc,EAMZ,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAEf,OAAO,EAAuB,KAAK,QAAQ,EAAC,MAAM,SAAS,CAAC;AAoB5D,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AA8F5C,UAAU,4BAA6B,SAAQ,IAAI,CACjD,SAAS,EACT,QAAQ,GAAG,WAAW,GAAG,OAAO,CACjC;IACC,2DAA2D;IAC3D,IAAI,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC5B,8CAA8C;IAC9C,KAAK,EAAE,SAAS,CAAC;IACjB,4DAA4D;IAC5D,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,8CAA8C;IAC9C,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,mCAAmC;IACnC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mCAAmC;IACnC,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,wBAAyB,SAAQ,4BAA4B;IAC5E;;;;;;;;OAQG;IACH,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,mBAAmB,CAC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@ import { mergeProps } from "../utils/index.js";
53
53
  import { themeProps } from "../utils/themeProps.js";
54
54
  import { MENU_ITEM_ROLES, MENU_ITEM_SELECTOR, MENU_BOUNDARY_SELECTOR } from "./menuItemRoles.js";
55
55
  import { DropdownMenuContext, useDropdownMenuContext } from "./DropdownMenuContext.js";
56
+ import { focusMenuItemOnHover } from "./menuItemHover.js";
56
57
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
57
58
  const triggerStyles = {
58
59
  root: {
@@ -65,7 +66,6 @@ const triggerStyles = {
65
66
  kGuDYH: "xcr08ib",
66
67
  kMwMTN: "x1tgivj0",
67
68
  kWkggS: "xjbqb8w x1c52tdz",
68
- kHE3J0: "xe9uy6x",
69
69
  kkrTdU: "x1ypdohk",
70
70
  k9WMMc: "x1yc453h",
71
71
  kI3sdo: "x1a2a7pz",
@@ -281,6 +281,13 @@ export function DropdownMenuSubMenu(props) {
281
281
  }
282
282
  }, [isDisabled, open]);
283
283
 
284
+ // Move the single focus-driven highlight onto the trigger as the pointer
285
+ // enters it, so a sibling item that still holds focus doesn't stay
286
+ // highlighted alongside the hovered trigger. This is separate from the
287
+ // hover-open intent (onMouseEnter/onMouseLeave) — the flyout still opens on
288
+ // the hover delay; this only keeps the highlight single.
289
+ const handlePointerMove = useCallback(e => focusMenuItemOnHover(e, isDisabled), [isDisabled]);
290
+
284
291
  // Enter/Space activate the focused row; typeahead jumps by first character;
285
292
  // the close key (Left, or Right in RTL) returns focus to the trigger;
286
293
  // arrows/Home/End defer to useListFocus (RTL-aware).
@@ -378,6 +385,7 @@ export function DropdownMenuSubMenu(props) {
378
385
  "data-testid": testId,
379
386
  onMouseEnter: triggerProps.onMouseEnter,
380
387
  onMouseLeave: triggerProps.onMouseLeave,
388
+ onPointerMove: handlePointerMove,
381
389
  startContent: icon ? renderIconSlot(icon, {
382
390
  size: 'sm',
383
391
  color: 'secondary'
@@ -12,6 +12,7 @@
12
12
  * - /packages/core/src/DropdownMenu/DropdownMenuItem.tsx
13
13
  * - /packages/core/src/DropdownMenu/DropdownMenuCheckboxItem.tsx
14
14
  * - /packages/core/src/DropdownMenu/DropdownMenuRadioItem.tsx
15
+ * - /packages/core/src/DropdownMenu/DropdownMenuSubMenu.tsx
15
16
  */
16
17
  import type { PointerEvent } from 'react';
17
18
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"menuItemHover.d.ts","sourceRoot":"","sources":["../../src/DropdownMenu/menuItemHover.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,OAAO,CAAC;AAExC;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,EAC5B,UAAU,CAAC,EAAE,OAAO,GACnB,IAAI,CAQN"}
1
+ {"version":3,"file":"menuItemHover.d.ts","sourceRoot":"","sources":["../../src/DropdownMenu/menuItemHover.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,OAAO,CAAC;AAExC;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,EAC5B,UAAU,CAAC,EAAE,OAAO,GACnB,IAAI,CAQN"}
@@ -16,6 +16,7 @@
16
16
  * - /packages/core/src/DropdownMenu/DropdownMenuItem.tsx
17
17
  * - /packages/core/src/DropdownMenu/DropdownMenuCheckboxItem.tsx
18
18
  * - /packages/core/src/DropdownMenu/DropdownMenuRadioItem.tsx
19
+ * - /packages/core/src/DropdownMenu/DropdownMenuSubMenu.tsx
19
20
  */
20
21
  /**
21
22
  * Move focus to a menu item as the pointer moves over it, so hover and
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @file FieldLabel.tsx
3
- * @input Uses React, Icon, IconType
3
+ * @input Uses React, Icon, IconType, useTranslator
4
4
  * @output Exports FieldLabel component, FieldLabelProps
5
5
  * @position Core label implementation; used by Field, CheckboxInput, Switch
6
6
  *
@@ -8,6 +8,7 @@
8
8
  * - /packages/core/src/Field/Field.doc.mjs (props table, features, implementation notes)
9
9
  * - /packages/core/src/Field/index.ts (exports if types change)
10
10
  * - /packages/cli/templates/blocks/components/Field/ (showcase blocks)
11
+ * - /packages/core/locales/en.json (@astryx.field.required / @astryx.field.optional)
11
12
  */
12
13
  import type { ReactNode } from 'react';
13
14
  import type { BaseProps } from '../BaseProps';
@@ -1 +1 @@
1
- {"version":3,"file":"FieldLabel.d.ts","sourceRoot":"","sources":["../../src/Field/FieldLabel.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAErC,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAU5C,OAAO,EAAuB,KAAK,QAAQ,EAAC,MAAM,SAAS,CAAC;AAkD5D,MAAM,WAAW,eAAgB,SAAQ,SAAS,CAAC,gBAAgB,CAAC;IAClE,wCAAwC;IACxC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAClC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;;;;OAQG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IACjC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACt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CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IACjC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,OAAO,EACP,OAAO,EACP,YAAoB,EACpB,aAAqB,EACrB,UAAkB,EAClB,UAAkB,EAClB,UAAkB,EAClB,SAAS,EACT,YAAY,EACZ,WAAW,EACX,aAAa,EACb,SAAS,EACT,KAAK,EACL,MAAM,EACN,GAAG,EACH,GAAG,IAAI,EACR,EAAE,eAAe,+BA+DjB;yBAjFe,UAAU"}
@@ -1,8 +1,10 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
+ 'use client';
4
+
3
5
  /**
4
6
  * @file FieldLabel.tsx
5
- * @input Uses React, Icon, IconType
7
+ * @input Uses React, Icon, IconType, useTranslator
6
8
  * @output Exports FieldLabel component, FieldLabelProps
7
9
  * @position Core label implementation; used by Field, CheckboxInput, Switch
8
10
  *
@@ -10,14 +12,15 @@
10
12
  * - /packages/core/src/Field/Field.doc.mjs (props table, features, implementation notes)
11
13
  * - /packages/core/src/Field/index.ts (exports if types change)
12
14
  * - /packages/cli/templates/blocks/components/Field/ (showcase blocks)
15
+ * - /packages/core/locales/en.json (@astryx.field.required / @astryx.field.optional)
13
16
  */
14
-
15
17
  import * as stylex from '@stylexjs/stylex';
16
18
  import { mergeProps } from "../utils/index.js";
17
19
  import "../theme/tokens.stylex.js";
18
20
  import { colorVars, fontWeightVars, spacingVars, typographyVars, typeScaleVars } from "../theme/tokens.stylex.js";
19
21
  import { Icon, renderIconSlot } from "../Icon/index.js";
20
22
  import { Tooltip } from "../Tooltip/index.js";
23
+ import { useTranslator } from "../i18n/index.js";
21
24
  import { themeProps } from "../utils/themeProps.js";
22
25
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
23
26
  const styles = {
@@ -87,7 +90,8 @@ export function FieldLabel({
87
90
  ref,
88
91
  ...rest
89
92
  }) {
90
- const statusText = isOptional ? 'Optional' : isRequired ? 'Required' : null;
93
+ const t = useTranslator();
94
+ const statusText = isOptional ? t('@astryx.field.optional') : isRequired ? t('@astryx.field.required') : null;
91
95
 
92
96
  // A group label (e.g. for a radiogroup) must not be a literal `<label>`
93
97
  // element: a `<label>` semantically names a single form control and can't be
@@ -1 +1 @@
1
- {"version":3,"file":"FieldStatus.d.ts","sourceRoot":"","sources":["../../src/FieldStatus/FieldStatus.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAU5C,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,gBAAgB,CAAC;AAoEpD;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,IAAI,CAAC;IACf,QAAQ,EAAE,IAAI,CAAC;IACf,OAAO,EAAE,IAAI,CAAC;CACf;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,qBAAqB,CAAC;AAE7D,MAAM,WAAW,gBAAiB,SAAQ,SAAS,CAAC,cAAc,CAAC;IACjE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAChC;;OAEG;IACH,IAAI,EAAE,eAAe,CAAC;IACtB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;CAC9B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,WAAW,CAAC,EAC1B,GAAG,EACH,IAAI,EACJ,OAAO,EACP,EAAE,EACF,OAAoB,EACpB,MAAM,EACN,SAAS,EACT,KAAK,EACL,GAAG,IAAI,EACR,EAAE,gBAAgB,qBA2ClB;yBArDe,WAAW"}
1
+ {"version":3,"file":"FieldStatus.d.ts","sourceRoot":"","sources":["../../src/FieldStatus/FieldStatus.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAU5C,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,gBAAgB,CAAC;AAoEpD;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,IAAI,CAAC;IACf,QAAQ,EAAE,IAAI,CAAC;IACf,OAAO,EAAE,IAAI,CAAC;CACf;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,qBAAqB,CAAC;AAE7D,MAAM,WAAW,gBAAiB,SAAQ,SAAS,CAAC,cAAc,CAAC;IACjE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAChC;;OAEG;IACH,IAAI,EAAE,eAAe,CAAC;IACtB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;CAC9B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,WAAW,CAAC,EAC1B,GAAG,EACH,IAAI,EACJ,OAAO,EACP,EAAE,EACF,OAAoB,EACpB,MAAM,EACN,SAAS,EACT,KAAK,EACL,GAAG,IAAI,EACR,EAAE,gBAAgB,qBAsDlB;yBAhEe,WAAW"}
@@ -48,8 +48,8 @@ const styles = {
48
48
  kLKAdn: "x1ak3mig",
49
49
  kGO01o: "x1wesfrj",
50
50
  kg3NbH: "xf314gf",
51
- kqGeR4: "x14lggfu",
52
- kYm2EN: "xtufxuj",
51
+ kVL7Gh: "xquck67",
52
+ kT0f0o: "x14i3lts",
53
53
  $$css: true
54
54
  },
55
55
  detached: {
@@ -172,6 +172,16 @@ export function FieldStatus({
172
172
  icon: statusIconMap[type],
173
173
  size: "sm",
174
174
  color: "inherit"
175
+ // Stable theme target on the detached message box's leading glyph
176
+ // itself, so a theme can restyle just this icon (color, size) —
177
+ // and each status — via `defineTheme`. Same-element rules in
178
+ // @layer astryx-theme win over the icon's own base
179
+ // width/height/fontSize, which a field-level target could not
180
+ // reach.
181
+ ,
182
+ ...themeProps('field-status-icon', {
183
+ type
184
+ })
175
185
  })
176
186
  }), /*#__PURE__*/_jsx("span", {
177
187
  children: message
@@ -1 +1 @@
1
- {"version":3,"file":"TopNavMegaMenu.d.ts","sourceRoot":"","sources":["../../src/TopNav/TopNavMegaMenu.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,EAKZ,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAiBf,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAmK5C,MAAM,WAAW,mBAAoB,SAAQ,SAAS,CAAC,iBAAiB,CAAC;IACvE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IACnC,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,gEAAgE;IAChE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;CAC1C;AAMD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,wBAAgB,cAAc,CAAC,EAC7B,GAAG,EACH,KAAK,EACL,KAAK,EACL,QAAQ,EACR,KAAW,EACX,SAAe,EACf,YAAY,GACb,EAAE,mBAAmB,4BA+BrB;yBAvCe,cAAc"}
1
+ {"version":3,"file":"TopNavMegaMenu.d.ts","sourceRoot":"","sources":["../../src/TopNav/TopNavMegaMenu.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,EAKZ,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAiBf,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AA2L5C,MAAM,WAAW,mBAAoB,SAAQ,SAAS,CAAC,iBAAiB,CAAC;IACvE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IACnC,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,gEAAgE;IAChE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;CAC1C;AAMD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,wBAAgB,cAAc,CAAC,EAC7B,GAAG,EACH,KAAK,EACL,KAAK,EACL,QAAQ,EACR,KAAW,EACX,SAAe,EACf,YAAY,GACb,EAAE,mBAAmB,4BA+BrB;yBAvCe,cAAc"}
@@ -51,6 +51,12 @@ const styles = {
51
51
  k1tdAh: "x12p7p72",
52
52
  $$css: true
53
53
  },
54
+ panelViewportFit: {
55
+ k1xSpc: "x78zum5",
56
+ kXwgrk: "xdt5ytf",
57
+ kskxy: "xbhvqqn",
58
+ $$css: true
59
+ },
54
60
  drawerHeader: {
55
61
  kjj79g: "x1qughib",
56
62
  $$css: true
@@ -288,11 +294,11 @@ function DefaultMegaMenu({
288
294
  onMouseEnter: handleMouseEnter,
289
295
  onMouseLeave: handleMouseLeave,
290
296
  ...{
291
- className: "x1prclbq x11xkdxz x13fuv20 x1pc3f07 x1hviunn x1i5ehqx xb3r6kr"
297
+ className: "x1prclbq x11xkdxz x13fuv20 x1pc3f07 x1hviunn x1i5ehqx xb3r6kr x78zum5 xdt5ytf x2lwn1j"
292
298
  },
293
299
  children: /*#__PURE__*/_jsxs("div", {
294
300
  ...{
295
- className: "x78zum5 x1a02dak x1qh66ti x8o8v82 xrrkdod xyzno7u"
301
+ className: "x78zum5 x1a02dak x1qh66ti x8o8v82 xrrkdod x1m1aaou x9f619 x1odjw0f xish69e"
296
302
  },
297
303
  children: [items != null && /*#__PURE__*/_jsx("div", {
298
304
  ...{
@@ -313,7 +319,7 @@ function DefaultMegaMenu({
313
319
  }), {
314
320
  placement: 'below',
315
321
  alignment: slot,
316
- xstyle: styles.panelAnimation
322
+ xstyle: [styles.panelAnimation, styles.panelViewportFit]
317
323
  })]
318
324
  });
319
325
  }
package/dist/astryx.css CHANGED
@@ -594,9 +594,11 @@
594
594
  .x18o3ruo:not(#\#):not(#\#):not(#\#){background-image:none}
595
595
  .x1mwwwfo:not(#\#):not(#\#):not(#\#){border-collapse:collapse}
596
596
  .x16uus16:not(#\#):not(#\#):not(#\#){border-end-end-radius:0}
597
+ .x14i3lts:not(#\#):not(#\#):not(#\#){border-end-end-radius:var(--radius-element)}
597
598
  .x1dgc8on:not(#\#):not(#\#):not(#\#){border-end-end-radius:var(--radius-full)}
598
599
  .x1whkvtz:not(#\#):not(#\#):not(#\#){border-end-end-radius:var(--radius-inner)}
599
600
  .xbiv7yw:not(#\#):not(#\#):not(#\#){border-end-start-radius:0}
601
+ .xquck67:not(#\#):not(#\#):not(#\#){border-end-start-radius:var(--radius-element)}
600
602
  .x1wc3881:not(#\#):not(#\#):not(#\#){border-end-start-radius:var(--radius-full)}
601
603
  .xrfs2vl:not(#\#):not(#\#):not(#\#){border-end-start-radius:var(--radius-inner)}
602
604
  .xl0t3rv:not(#\#):not(#\#):not(#\#){border-inline-end-color:var(--color-border-emphasized)}
@@ -1232,11 +1234,9 @@
1232
1234
  .xfrllxf:not(#\#):not(#\#):not(#\#):not(#\#){border-bottom-left-radius:0}
1233
1235
  .x6bqyzk:not(#\#):not(#\#):not(#\#):not(#\#){border-bottom-left-radius:var(--_chat-composer-radius)}
1234
1236
  .xv76oww:not(#\#):not(#\#):not(#\#):not(#\#){border-bottom-left-radius:var(--radius-container)}
1235
- .x14lggfu:not(#\#):not(#\#):not(#\#):not(#\#){border-bottom-left-radius:var(--radius-element)}
1236
1237
  .xjppbhk:not(#\#):not(#\#):not(#\#):not(#\#){border-bottom-right-radius:0}
1237
1238
  .x2gnncy:not(#\#):not(#\#):not(#\#):not(#\#){border-bottom-right-radius:var(--_chat-composer-radius)}
1238
1239
  .x1padx2d:not(#\#):not(#\#):not(#\#):not(#\#){border-bottom-right-radius:var(--radius-container)}
1239
- .xtufxuj:not(#\#):not(#\#):not(#\#):not(#\#){border-bottom-right-radius:var(--radius-element)}
1240
1240
  .x1q0q8m5:not(#\#):not(#\#):not(#\#):not(#\#){border-bottom-style:solid}
1241
1241
  .xso031l:not(#\#):not(#\#):not(#\#):not(#\#){border-bottom-width:1px}
1242
1242
  .xlxy82:not(#\#):not(#\#):not(#\#):not(#\#){border-bottom-width:2px}
@@ -1348,6 +1348,7 @@
1348
1348
  .x18s7i0i:not(#\#):not(#\#):not(#\#):not(#\#){max-height:176px}
1349
1349
  .x1xiyphd:not(#\#):not(#\#):not(#\#):not(#\#){max-height:240px}
1350
1350
  .xuyqlj2:not(#\#):not(#\#):not(#\#):not(#\#){max-height:300px}
1351
+ .xbhvqqn:not(#\#):not(#\#):not(#\#):not(#\#){max-height:calc(100% - var(--spacing-3))}
1351
1352
  .x7ab17h:not(#\#):not(#\#):not(#\#):not(#\#){max-height:none}
1352
1353
  .xenllk4:not(#\#):not(#\#):not(#\#):not(#\#){max-height:var(--container-max-height,none)}
1353
1354
  .x1jols5v:not(#\#):not(#\#):not(#\#):not(#\#){max-height:var(--x-maxHeight)}
@@ -1364,9 +1365,9 @@
1364
1365
  .x1ap80js:not(#\#):not(#\#):not(#\#):not(#\#){max-width:800px}
1365
1366
  .xq8v1hd:not(#\#):not(#\#):not(#\#):not(#\#){max-width:90%}
1366
1367
  .x95b5qq:not(#\#):not(#\#):not(#\#):not(#\#){max-width:90vw}
1367
- .xyzno7u:not(#\#):not(#\#):not(#\#):not(#\#){max-width:960px}
1368
1368
  .xl6temz:not(#\#):not(#\#):not(#\#):not(#\#){max-width:max(80%,280px)}
1369
1369
  .xxtfdz8:not(#\#):not(#\#):not(#\#):not(#\#){max-width:min(100%,calc(100vw - 32px))}
1370
+ .x1m1aaou:not(#\#):not(#\#):not(#\#):not(#\#){max-width:min(960px,calc(100dvw - var(--spacing-4)))}
1370
1371
  .x1x1rfll:not(#\#):not(#\#):not(#\#):not(#\#){max-width:none}
1371
1372
  .xjl2t3p:not(#\#):not(#\#):not(#\#):not(#\#){max-width:var(--layout-content-width,none)}
1372
1373
  .xf68679:not(#\#):not(#\#):not(#\#):not(#\#){max-width:var(--x-maxWidth)}