@mechane-ai/elements 0.17.1 → 0.18.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/README.md CHANGED
@@ -99,6 +99,9 @@ Detail titles wrap; list metadata truncates. Sidebar items share contiguous hit
99
99
  navigation and reserve the divided sidebar footer for persistent account controls. Use
100
100
  `SidebarFooter layout="navigation"` for a group of commands; its intrinsic height keeps the scrolling navigation clear.
101
101
 
102
+ Navigation closes the mobile drawer and preserves focus set by the destination. Use
103
+ `NavigationItem shouldCloseOnActivate={false}` for menu triggers.
104
+
102
105
  `AppShell shouldFocus` temporarily hides navigation while retaining its expansion state. `ViewStack.Panel` keeps
103
106
  inactive content mounted and measurable but removes it from keyboard and assistive-technology navigation. The
104
107
  application owns which view is active and when to unmount it; use this for a draft or reading position that must survive
@@ -1,5 +1,5 @@
1
- import { n as e, s as t } from "./chart-frame-Bf1l_7-R.js";
2
- import { n } from "./chart-input-fBuRm0Lc.js";
1
+ import { n as e, s as t } from "./chart-frame-vwS7YVgv.js";
2
+ import { n } from "./chart-input-D6Fw2UGV.js";
3
3
  import * as r from "@stylexjs/stylex";
4
4
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
5
5
  // packages/charts/src/categorical-values.tsx
@@ -110,12 +110,18 @@ function d({ title: e, description: t, children: n, actions: r, footer: s }) {
110
110
  ]
111
111
  });
112
112
  }
113
- function f({ items: e, label: t = "Legend" }) {
113
+ function f({ items: e, label: t = "Legend", isScrollable: n = !1 }) {
114
114
  return /* @__PURE__ */ a("ul", {
115
115
  "aria-label": t,
116
- className: "x78zum5 x1a02dak x8zbtdt x1gkm1c7 xe8uvvx x1ghz6dp x1717udv x153jb6y x1hz01jw xy8obcc xas2l8k",
116
+ ...{
117
+ 0: { className: "x78zum5 x1a02dak x8zbtdt x1gkm1c7 xe8uvvx x1ghz6dp x1717udv x153jb6y x1hz01jw xy8obcc xas2l8k" },
118
+ 1: { className: "x78zum5 x8zbtdt x1gkm1c7 xe8uvvx x1ghz6dp x1717udv x153jb6y x1hz01jw xy8obcc xas2l8k xozqiw3 xw2csxc x1mqbd49" }
119
+ }[!!n | 0],
117
120
  children: e.map((e) => /* @__PURE__ */ o("li", {
118
- className: "x3nfvp2 x6s0dn4 xunmzkg xeuugli x193iq5w xj0a0fe",
121
+ ...{
122
+ 0: { className: "x3nfvp2 x6s0dn4 xunmzkg xeuugli x193iq5w xj0a0fe" },
123
+ 1: { className: "x3nfvp2 x6s0dn4 xunmzkg xeuugli xj0a0fe x2lah0s x1x1rfll xuxw1ft" }
124
+ }[!!n | 0],
119
125
  children: [/* @__PURE__ */ a("span", {
120
126
  "aria-hidden": !0,
121
127
  ...r.props(u.swatch(s[e.tone]))
@@ -1,5 +1,5 @@
1
1
  import { m as e } from "./src-BVsyKLQ8.js";
2
- import { r as t } from "./chart-frame-Bf1l_7-R.js";
2
+ import { r as t } from "./chart-frame-vwS7YVgv.js";
3
3
  import { jsx as n } from "react/jsx-runtime";
4
4
  // packages/charts/src/chart-input.tsx
5
5
  function r(e) {