@mechane-ai/elements 0.32.0 → 0.32.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.
@@ -1,5 +1,5 @@
1
- import { n as e, s as t } from "./chart-frame-Degqwy_z.js";
2
- import { n } from "./chart-input-B12En69_.js";
1
+ import { n as e, s as t } from "./chart-frame-DepdezdL.js";
2
+ import { n } from "./chart-input-8sNm47Rp.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
@@ -4,9 +4,9 @@ import { d as r, m as i } from "./src-BjmKVOb2.js";
4
4
  import { n as a, r as o } from "./tokens.stylex-CJbIDPB9.js";
5
5
  import * as s from "@stylexjs/stylex";
6
6
  import { Children as c, useId as l } from "react";
7
- import { jsx as u, jsxs as d } from "react/jsx-runtime";
7
+ import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
8
8
  // packages/charts/src/chart-heading.tsx
9
- var f = { root: {
9
+ var p = { root: {
10
10
  k1C7PZ: "x8zbtdt",
11
11
  khm7nJ: "x1gkm1c7",
12
12
  kMwMTN: "xbixft",
@@ -15,28 +15,28 @@ var f = { root: {
15
15
  kLWn49: "x1778rvt",
16
16
  $$css: !0
17
17
  } };
18
- function p({ title: t, id: n, meta: r, actions: i }) {
19
- let a = c.toArray(r).length > 0, o = c.toArray(i).length > 0, l = a || o, p = a && /* @__PURE__ */ u("div", {
18
+ function m({ title: t, id: n, meta: r, actions: i }) {
19
+ let a = c.toArray(r).length > 0, o = c.toArray(i).length > 0, l = a || o, u = a && /* @__PURE__ */ d("div", {
20
20
  ...s.props(e.meta),
21
21
  children: r
22
- }), m = o && /* @__PURE__ */ u("div", {
22
+ }), m = o && /* @__PURE__ */ d("div", {
23
23
  ...s.props(e.actions),
24
24
  children: i
25
25
  });
26
- return /* @__PURE__ */ d("div", {
27
- ...s.props(e.row, e.reportRow, f.root),
28
- children: [/* @__PURE__ */ u("p", {
26
+ return /* @__PURE__ */ f("div", {
27
+ ...s.props(e.row, e.reportRow, p.root),
28
+ children: [/* @__PURE__ */ d("p", {
29
29
  id: n,
30
30
  ...s.props(e.title),
31
31
  children: t
32
- }), l && /* @__PURE__ */ d("div", {
32
+ }), l && /* @__PURE__ */ f("div", {
33
33
  ...s.props(e.trailing),
34
- children: [p, m]
34
+ children: [u, m]
35
35
  })]
36
36
  });
37
37
  }
38
38
  // packages/charts/src/chart-theme.ts
39
- var m = {
39
+ var h = {
40
40
  series1: a.series1,
41
41
  series2: a.series2,
42
42
  series3: a.series3,
@@ -46,7 +46,7 @@ var m = {
46
46
  positive: a.positive,
47
47
  negative: a.negative,
48
48
  neutral: o.muted
49
- }, h = {
49
+ }, g = {
50
50
  plot: {
51
51
  k7Eaqz: "xeuugli",
52
52
  kVQacm: "xb3r6kr",
@@ -94,86 +94,86 @@ var m = {
94
94
  k3XXqK: "x1t137rt",
95
95
  $$css: !0
96
96
  }
97
- }, g = {
97
+ }, _ = {
98
98
  kzqmXN: "x1xc55vz",
99
99
  kZKoxP: "xdk7pt",
100
100
  kmuXW: "x2lah0s",
101
101
  $$css: !0
102
- }, _ = { swatch: (e) => [
103
- g,
102
+ }, v = { swatch: (e) => [
103
+ _,
104
104
  {
105
105
  kWkggS: e == null ? e : "xl8spv7",
106
106
  $$css: !0
107
107
  },
108
108
  { "--x-backgroundColor": e ?? void 0 }
109
109
  ] };
110
- function v({ series: e, values: t }) {
111
- return Object.keys(t).length === e.length && e.every((e) => Object.hasOwn(t, e.id)) ? /* @__PURE__ */ u("dl", {
110
+ function y({ series: e, values: t }) {
111
+ return Object.keys(t).length === e.length && e.every((e) => Object.hasOwn(t, e.id)) ? /* @__PURE__ */ d("dl", {
112
112
  "aria-label": "Period summary",
113
113
  className: "x78zum5 x1a02dak xaml1ju x1ghz6dp xeuugli",
114
- children: e.map((e, n) => /* @__PURE__ */ d("div", {
114
+ children: e.map((e, n) => /* @__PURE__ */ f("div", {
115
115
  ...{
116
116
  0: { className: "xeuugli" },
117
117
  1: { className: "xeuugli xo02m6d xpilrb4 x1t7ytsu x97x49r" }
118
118
  }[n > 0 | 0],
119
- children: [/* @__PURE__ */ d("dt", {
119
+ children: [/* @__PURE__ */ f("dt", {
120
120
  className: "x78zum5 x6s0dn4 xunmzkg x153jb6y xy8obcc",
121
- children: [/* @__PURE__ */ u("span", {
121
+ children: [/* @__PURE__ */ d("span", {
122
122
  "aria-hidden": !0,
123
- ...s.props(_.swatch(m[e.tone]))
123
+ ...s.props(v.swatch(h[e.tone]))
124
124
  }), e.label]
125
- }), /* @__PURE__ */ u("dd", {
125
+ }), /* @__PURE__ */ d("dd", {
126
126
  className: "x1ghz6dp xbixft x71lla1 xgkpprq xk4h15q x1wjjqco xss6m8b xj0a0fe",
127
- children: t[e.id] === void 0 ? /* @__PURE__ */ u(r, { width: "6ch" }) : t[e.id]
127
+ children: t[e.id] === void 0 ? /* @__PURE__ */ d(r, { width: "6ch" }) : t[e.id]
128
128
  })]
129
129
  }, e.id))
130
- }) : /* @__PURE__ */ u(i, {
130
+ }) : /* @__PURE__ */ d(i, {
131
131
  hasError: !0,
132
132
  children: "Period values must match the chart series identifiers."
133
133
  });
134
134
  }
135
135
  // packages/charts/src/chart-frame.tsx
136
- var y = {
136
+ var b = {
137
137
  kzqmXN: "x1xc55vz",
138
138
  kZKoxP: "xdk7pt",
139
139
  kmuXW: "x2lah0s",
140
140
  $$css: !0
141
- }, b = { swatch: (e) => [
142
- y,
141
+ }, x = { swatch: (e) => [
142
+ b,
143
143
  {
144
144
  kWkggS: e == null ? e : "xl8spv7",
145
145
  $$css: !0
146
146
  },
147
147
  { "--x-backgroundColor": e ?? void 0 }
148
148
  ] };
149
- function x({ title: t, description: n, children: r, actions: i, footer: a, report: o, series: c = [] }) {
150
- let f = l();
149
+ function S({ title: t, description: n, children: r, actions: i, footer: a, report: o, series: p = [] }) {
150
+ let h = l();
151
151
  if (o !== void 0) {
152
- let e = o.seriesValues === void 0 ? o.summary : /* @__PURE__ */ u(v, {
153
- series: c,
152
+ let e = o.seriesValues === void 0 ? o.summary : /* @__PURE__ */ d(y, {
153
+ series: p,
154
154
  values: o.seriesValues
155
- }), s = e != null && e !== !1;
156
- return /* @__PURE__ */ d("figure", {
157
- "aria-labelledby": f,
155
+ }), s = e != null && e !== !1, l = c.toArray([o.actions, i]).length > 0, g = /* @__PURE__ */ f(u, { children: [o.actions, i] });
156
+ return /* @__PURE__ */ f("figure", {
157
+ "aria-labelledby": h,
158
158
  className: "xeuugli x1ghz6dp xbixft xpvm0e4 x1hz01jw xtqrqnz xj57cvi x1778rvt xmkeg23 x1y0btm7 x1ey3b81",
159
- children: [/* @__PURE__ */ u("figcaption", { children: /* @__PURE__ */ u(p, {
160
- id: f,
159
+ children: [/* @__PURE__ */ d("figcaption", { children: /* @__PURE__ */ d(m, {
160
+ id: h,
161
161
  title: t,
162
162
  meta: o.meta,
163
- actions: [o.actions, i]
164
- }) }), /* @__PURE__ */ d("div", {
163
+ actions: l && g
164
+ }) }), /* @__PURE__ */ f("div", {
165
165
  className: "xeuugli xg7ukam",
166
166
  children: [
167
- s && /* @__PURE__ */ u("div", {
167
+ s && /* @__PURE__ */ d("div", {
168
168
  className: "x1xxlxpq xeuugli",
169
169
  children: e
170
170
  }),
171
- n !== void 0 && /* @__PURE__ */ u("p", {
171
+ n !== void 0 && /* @__PURE__ */ d("p", {
172
172
  className: "x1ghz6dp x1c87qhr x153jb6y xy8obcc xas2l8k",
173
173
  children: n
174
174
  }),
175
175
  r,
176
- a !== void 0 && /* @__PURE__ */ u("div", {
176
+ a !== void 0 && /* @__PURE__ */ d("div", {
177
177
  className: "x1xxf3xd xeuugli x153jb6y xy8obcc xas2l8k xj0a0fe",
178
178
  children: a
179
179
  })
@@ -181,59 +181,59 @@ function x({ title: t, description: n, children: r, actions: i, footer: a, repor
181
181
  })]
182
182
  });
183
183
  }
184
- return /* @__PURE__ */ d("figure", {
185
- "aria-labelledby": f,
184
+ return /* @__PURE__ */ f("figure", {
185
+ "aria-labelledby": h,
186
186
  className: "xeuugli x1ghz6dp xbixft xpvm0e4 x1hz01jw xtqrqnz xj57cvi x1778rvt",
187
187
  children: [
188
- /* @__PURE__ */ d("figcaption", {
188
+ /* @__PURE__ */ f("figcaption", {
189
189
  className: "x78zum5 x1a02dak x1qughib x7a106z x1n8ia3y x1wv5www",
190
- children: [/* @__PURE__ */ d("div", {
190
+ children: [/* @__PURE__ */ f("div", {
191
191
  className: "x1cqoux5 xeuugli xj0a0fe",
192
- children: [/* @__PURE__ */ u("p", {
193
- id: f,
192
+ children: [/* @__PURE__ */ d("p", {
193
+ id: h,
194
194
  className: "x1ghz6dp x12myhf4 x1778rvt xk4h15q",
195
195
  children: t
196
- }), n !== void 0 && /* @__PURE__ */ u("p", {
196
+ }), n !== void 0 && /* @__PURE__ */ d("p", {
197
197
  className: "x1ghz6dp x1c87qhr x153jb6y xy8obcc xas2l8k",
198
198
  children: n
199
199
  })]
200
- }), i !== void 0 && /* @__PURE__ */ u("div", {
200
+ }), i !== void 0 && /* @__PURE__ */ d("div", {
201
201
  ...s.props(e.actions),
202
202
  children: i
203
203
  })]
204
204
  }),
205
205
  r,
206
- a !== void 0 && /* @__PURE__ */ u("div", {
206
+ a !== void 0 && /* @__PURE__ */ d("div", {
207
207
  className: "x1xxf3xd xeuugli x153jb6y xy8obcc xas2l8k xj0a0fe",
208
208
  children: a
209
209
  })
210
210
  ]
211
211
  });
212
212
  }
213
- function S({ items: e, label: t = "Legend", isScrollable: n = !1 }) {
214
- return /* @__PURE__ */ u("ul", {
213
+ function C({ items: e, label: t = "Legend", isScrollable: n = !1 }) {
214
+ return /* @__PURE__ */ d("ul", {
215
215
  "aria-label": t,
216
216
  ...{
217
217
  0: { className: "x78zum5 x1a02dak x8zbtdt x1gkm1c7 xe8uvvx x1ghz6dp x1717udv x153jb6y x1hz01jw xy8obcc xas2l8k" },
218
218
  1: { className: "x78zum5 x8zbtdt x1gkm1c7 xe8uvvx x1ghz6dp x1717udv x153jb6y x1hz01jw xy8obcc xas2l8k xozqiw3 xw2csxc x1mqbd49" }
219
219
  }[!!n | 0],
220
- children: e.map((e) => /* @__PURE__ */ d("li", {
220
+ children: e.map((e) => /* @__PURE__ */ f("li", {
221
221
  ...{
222
222
  0: { className: "x3nfvp2 x6s0dn4 xunmzkg xeuugli x193iq5w xj0a0fe" },
223
223
  1: { className: "x3nfvp2 x6s0dn4 xunmzkg xeuugli xj0a0fe x2lah0s x1x1rfll xuxw1ft" }
224
224
  }[!!n | 0],
225
- children: [/* @__PURE__ */ u("span", {
225
+ children: [/* @__PURE__ */ d("span", {
226
226
  "aria-hidden": !0,
227
- ...s.props(b.swatch(m[e.tone]))
227
+ ...s.props(x.swatch(h[e.tone]))
228
228
  }), e.label]
229
229
  }, e.id))
230
230
  });
231
231
  }
232
- function C({ label: e, isSelected: t = !1, onSelect: n, children: r }) {
233
- return n === void 0 ? /* @__PURE__ */ u("div", {
232
+ function w({ label: e, isSelected: t = !1, onSelect: n, children: r }) {
233
+ return n === void 0 ? /* @__PURE__ */ d("div", {
234
234
  className: "x78zum5 x1a02dak x6s0dn4 x1qughib x8zbtdt x1gkm1c7 xeuugli x17tes2r x17oiadl x9f619 xh8yej3 xc342km x1hmw7ec x5g2kb4 x1hz01jw xtqrqnz xj57cvi x1778rvt x1yc453h xj0a0fe xbixft xpvm0e4 xss6m8b",
235
235
  children: r
236
- }) : /* @__PURE__ */ u("button", {
236
+ }) : /* @__PURE__ */ d("button", {
237
237
  type: "button",
238
238
  "aria-label": e,
239
239
  "aria-pressed": t,
@@ -245,18 +245,18 @@ function C({ label: e, isSelected: t = !1, onSelect: n, children: r }) {
245
245
  children: r
246
246
  });
247
247
  }
248
- function w({ children: e }) {
249
- return /* @__PURE__ */ u("p", {
248
+ function T({ children: e }) {
249
+ return /* @__PURE__ */ d("p", {
250
250
  "aria-live": "polite",
251
251
  className: "x1ghz6dp xeuugli x1mqbd49 xbixft xy8obcc xas2l8k xss6m8b xj0a0fe",
252
252
  children: e
253
253
  });
254
254
  }
255
- function T({ children: e, label: r = "View data" }) {
255
+ function E({ children: e, label: r = "View data" }) {
256
256
  let i = n();
257
- return /* @__PURE__ */ u("div", {
257
+ return /* @__PURE__ */ d("div", {
258
258
  className: "x1xxf3xd x178xt8z x13fuv20 xhjagg4",
259
- children: /* @__PURE__ */ d(t.Root, { children: [/* @__PURE__ */ u(t.Trigger, { children: r }), /* @__PURE__ */ u(t.Panel, { children: /* @__PURE__ */ u("div", {
259
+ children: /* @__PURE__ */ f(t.Root, { children: [/* @__PURE__ */ d(t.Trigger, { children: r }), /* @__PURE__ */ d(t.Panel, { children: /* @__PURE__ */ d("div", {
260
260
  ref: i.ref,
261
261
  role: "region",
262
262
  "aria-label": r,
@@ -266,4 +266,4 @@ function T({ children: e, label: r = "View data" }) {
266
266
  }) })] })
267
267
  });
268
268
  }
269
- export { w as a, S as i, C as n, h as o, x as r, m as s, T as t };
269
+ export { T as a, C as i, w as n, g as o, S as r, h as s, E as t };
@@ -1,5 +1,5 @@
1
1
  import { m as e } from "./src-BjmKVOb2.js";
2
- import { r as t } from "./chart-frame-Degqwy_z.js";
2
+ import { r as t } from "./chart-frame-DepdezdL.js";
3
3
  import { jsx as n } from "react/jsx-runtime";
4
4
  // packages/charts/src/chart-input.tsx
5
5
  function r(e) {
@@ -1,10 +1,10 @@
1
1
  import { d as e, u as t } from "../src-BjmKVOb2.js";
2
- import { i as n, n as r, r as i, t as a } from "../categorical-values-BXPE0Cjs.js";
2
+ import { i as n, n as r, r as i, t as a } from "../categorical-values-Devj1xYe.js";
3
3
  import { O as o } from "../src-CALHXF-U.js";
4
4
  import { t as s } from "../use-scroll-tab-index-Dxpdh4W7.js";
5
5
  import { s as c } from "../src-d7EAi61b.js";
6
- import { a as l, n as u, o as d, r as f, s as p, t as m } from "../chart-frame-Degqwy_z.js";
7
- import { n as h, r as g, t as _ } from "../chart-input-B12En69_.js";
6
+ import { a as l, n as u, o as d, r as f, s as p, t as m } from "../chart-frame-DepdezdL.js";
7
+ import { n as h, r as g, t as _ } from "../chart-input-8sNm47Rp.js";
8
8
  import { r as v } from "../tokens.stylex-CJbIDPB9.js";
9
9
  import { t as y } from "../plot-width--OgdohB5.js";
10
10
  import { g as b } from "../src-BPIIuMeE.js";
@@ -1,5 +1,5 @@
1
- import { a as e, n as t, r as n, s as r, t as i } from "../chart-frame-Degqwy_z.js";
2
- import { n as a, r as o, t as s } from "../chart-input-B12En69_.js";
1
+ import { a as e, n as t, r as n, s as r, t as i } from "../chart-frame-DepdezdL.js";
2
+ import { n as a, r as o, t as s } from "../chart-input-8sNm47Rp.js";
3
3
  import { t as c } from "../plot-width--OgdohB5.js";
4
4
  import * as l from "@stylexjs/stylex";
5
5
  import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "../use-scroll-tab-index-Dxpdh4W7.js";
2
- import { a as t, n, r, s as i, t as a } from "../chart-frame-Degqwy_z.js";
3
- import { n as o, t as s } from "../chart-input-B12En69_.js";
2
+ import { a as t, n, r, s as i, t as a } from "../chart-frame-DepdezdL.js";
3
+ import { n as o, t as s } from "../chart-input-8sNm47Rp.js";
4
4
  import * as c from "@stylexjs/stylex";
5
5
  import { useId as l } from "react";
6
6
  import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
@@ -1,6 +1,6 @@
1
- import { i as e, r as t, t as n } from "../categorical-values-BXPE0Cjs.js";
2
- import { o as r, r as i, s as a } from "../chart-frame-Degqwy_z.js";
3
- import { t as o } from "../chart-input-B12En69_.js";
1
+ import { i as e, r as t, t as n } from "../categorical-values-Devj1xYe.js";
2
+ import { o as r, r as i, s as a } from "../chart-frame-DepdezdL.js";
3
+ import { t as o } from "../chart-input-8sNm47Rp.js";
4
4
  import { t as s } from "../plot-width--OgdohB5.js";
5
5
  import * as c from "@stylexjs/stylex";
6
6
  import { jsx as l, jsxs as u } from "react/jsx-runtime";
@@ -1,6 +1,6 @@
1
1
  import { r as e } from "../tokens.stylex-CJbIDPB9.js";
2
- import { n as t, r as n, t as r } from "../chart-input-B12En69_.js";
3
- import { a as i, n as a, r as o, s, t as c } from "../chart-frame-Degqwy_z.js";
2
+ import { n as t, r as n, t as r } from "../chart-input-8sNm47Rp.js";
3
+ import { a as i, n as a, r as o, s, t as c } from "../chart-frame-DepdezdL.js";
4
4
  import { t as l } from "../use-scroll-tab-index-Dxpdh4W7.js";
5
5
  import * as u from "@stylexjs/stylex";
6
6
  import { jsx as d, jsxs as f } from "react/jsx-runtime";
@@ -1,6 +1,6 @@
1
1
  import { c as e } from "../src-CALHXF-U.js";
2
- import { r as t } from "../chart-frame-Degqwy_z.js";
3
- import { n, t as r } from "../chart-input-B12En69_.js";
2
+ import { r as t } from "../chart-frame-DepdezdL.js";
3
+ import { n, t as r } from "../chart-input-8sNm47Rp.js";
4
4
  import * as i from "@stylexjs/stylex";
5
5
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
6
6
  import { scaleLinear as s } from "@visx/scale";
package/dist/charts.js CHANGED
@@ -1 +1 @@
1
- export { r as ChartFrame, i as ChartLegend, s as chartToneColors } from "./chart-frame-Degqwy_z.js";
1
+ export { r as ChartFrame, i as ChartLegend, s as chartToneColors } from "./chart-frame-DepdezdL.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mechane-ai/elements",
3
- "version": "0.32.0",
3
+ "version": "0.32.1",
4
4
  "description": "Elements by Mechane — React components for applications, AI interfaces, and analytical graphics",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {