@knpkv/rly 0.13.0 → 0.15.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.
Files changed (51) hide show
  1. package/README.md +73 -1
  2. package/dist/{Dialog-B9Ub_gMT.js → Dialog-CU66FqWD.js} +325 -257
  3. package/dist/Dialog-CU66FqWD.js.map +1 -0
  4. package/dist/{PortalProvider-CN_81Fy3.js → PortalProvider-op07u8na.js} +20 -18
  5. package/dist/PortalProvider-op07u8na.js.map +1 -0
  6. package/dist/assets/relay-mark.svg +9 -0
  7. package/dist/components.css +1 -1
  8. package/dist/dts/foundations/Icon.d.ts +1 -1
  9. package/dist/dts/foundations/Icon.d.ts.map +1 -1
  10. package/dist/dts/internal/composedFocus.d.ts +11 -0
  11. package/dist/dts/internal/composedFocus.d.ts.map +1 -0
  12. package/dist/dts/internal/relaySummon.d.ts +50 -0
  13. package/dist/dts/internal/relaySummon.d.ts.map +1 -0
  14. package/dist/dts/patterns/Region.d.ts +2 -2
  15. package/dist/dts/patterns/Region.d.ts.map +1 -1
  16. package/dist/dts/patterns/RelayComposer.d.ts +65 -0
  17. package/dist/dts/patterns/RelayComposer.d.ts.map +1 -0
  18. package/dist/dts/patterns/RelayDock.d.ts.map +1 -1
  19. package/dist/dts/patterns/RelayLauncher.d.ts +67 -0
  20. package/dist/dts/patterns/RelayLauncher.d.ts.map +1 -0
  21. package/dist/dts/patterns/RelayMark.d.ts +35 -0
  22. package/dist/dts/patterns/RelayMark.d.ts.map +1 -0
  23. package/dist/dts/patterns/RelayPanel.d.ts +91 -0
  24. package/dist/dts/patterns/RelayPanel.d.ts.map +1 -0
  25. package/dist/dts/patterns/index.d.ts +8 -0
  26. package/dist/dts/patterns/index.d.ts.map +1 -1
  27. package/dist/dts/tokens/fonts.d.ts +13 -0
  28. package/dist/dts/tokens/fonts.d.ts.map +1 -0
  29. package/dist/dts/tokens/index.d.ts +2 -0
  30. package/dist/dts/tokens/index.d.ts.map +1 -1
  31. package/dist/fonts.css +83 -2
  32. package/dist/foundations/index.js +1 -1
  33. package/dist/generated-tokens.css +2 -2
  34. package/dist/index.js +6 -6
  35. package/dist/patterns/index.js +2 -2
  36. package/dist/{patterns-DPd5YlSW.js → patterns-CDBnXTUD.js} +1258 -756
  37. package/dist/patterns-CDBnXTUD.js.map +1 -0
  38. package/dist/primitives/index.js +3 -3
  39. package/dist/{primitives-Bd6WhE78.js → primitives-DgQybTyq.js} +254 -322
  40. package/dist/primitives-DgQybTyq.js.map +1 -0
  41. package/dist/tokens/index.js +2 -2
  42. package/dist/{tokens-B075JP3Z.js → tokens-Cf0jXIRg.js} +14 -8
  43. package/dist/tokens-Cf0jXIRg.js.map +1 -0
  44. package/package.json +2 -1
  45. package/registry/components.json +373 -0
  46. package/registry/search.json +88 -0
  47. package/dist/Dialog-B9Ub_gMT.js.map +0 -1
  48. package/dist/PortalProvider-CN_81Fy3.js.map +0 -1
  49. package/dist/patterns-DPd5YlSW.js.map +0 -1
  50. package/dist/primitives-Bd6WhE78.js.map +0 -1
  51. package/dist/tokens-B075JP3Z.js.map +0 -1
@@ -1,15 +1,15 @@
1
1
  import { r as e, t } from "./ThemeProvider-BFeldMeE.js";
2
- import { i as n } from "./PortalProvider-CN_81Fy3.js";
2
+ import { i as n } from "./PortalProvider-op07u8na.js";
3
3
  import { i as r, n as i, o as a, r as o, t as s } from "./component-DKy8kjZl.js";
4
- import { h as c, i as l, p as u } from "./Dialog-B9Ub_gMT.js";
5
- import { RadioGroup as d, Tabs as f } from "radix-ui";
6
- import { createElement as p, useCallback as m, useEffect as h, useId as g, useLayoutEffect as _, useMemo as v, useRef as y, useState as b } from "react";
7
- import { Fragment as ee, jsx as x, jsxs as S } from "react/jsx-runtime";
8
- var C = {
4
+ import { g as c, s as l, v as u } from "./Dialog-CU66FqWD.js";
5
+ import { RadioGroup as d } from "radix-ui";
6
+ import { createElement as f, useCallback as p, useEffect as m, useId as ee, useLayoutEffect as h, useMemo as g, useRef as _, useState as v } from "react";
7
+ import { Fragment as te, jsx as y, jsxs as b } from "react/jsx-runtime";
8
+ var x = {
9
9
  root: "rly_ChartLegend-module__root",
10
10
  item: "rly_ChartLegend-module__item",
11
11
  swatch: "rly_ChartLegend-module__swatch"
12
- }, w = (e) => i(C, e), T = [
12
+ }, S = (e) => i(x, e), ne = [
13
13
  1,
14
14
  2,
15
15
  3,
@@ -19,135 +19,135 @@ var C = {
19
19
  7,
20
20
  8,
21
21
  "other"
22
- ], te = (e) => `var(--rly-color-series-${e})`, ne = (e) => {
22
+ ], re = (e) => `var(--rly-color-series-${e})`, C = (e) => {
23
23
  let t = /* @__PURE__ */ new Set();
24
24
  for (let n of e) {
25
25
  let e = r(n.id, "ChartLegend item id");
26
26
  if (t.has(e)) throw Error(`ChartLegend item ids must be unique: ${e}`);
27
27
  t.add(e);
28
28
  }
29
- }, re = ({ className: e, items: t, label: n, ...i }) => (ne(t), t.length === 0 ? null : /* @__PURE__ */ x("ul", {
29
+ }, ie = ({ className: e, items: t, label: n, ...i }) => (C(t), t.length === 0 ? null : /* @__PURE__ */ y("ul", {
30
30
  ...i,
31
31
  "aria-label": r(n, "ChartLegend label"),
32
- className: s(w("root"), e),
32
+ className: s(S("root"), e),
33
33
  role: "list",
34
- children: t.map((e) => /* @__PURE__ */ S("li", {
35
- className: w("item"),
36
- children: [/* @__PURE__ */ x("span", {
34
+ children: t.map((e) => /* @__PURE__ */ b("li", {
35
+ className: S("item"),
36
+ children: [/* @__PURE__ */ y("span", {
37
37
  "aria-hidden": "true",
38
- className: w("swatch"),
38
+ className: S("swatch"),
39
39
  "data-series": String(e.series),
40
- style: { background: te(e.series) }
40
+ style: { background: re(e.series) }
41
41
  }), r(e.label, "ChartLegend item label")]
42
42
  }, e.id))
43
- })), E = {
43
+ })), ae = {
44
44
  root: "rly_Divider-module__root",
45
45
  horizontal: "rly_Divider-module__horizontal",
46
46
  vertical: "rly_Divider-module__vertical",
47
47
  subtle: "rly_Divider-module__subtle",
48
48
  strong: "rly_Divider-module__strong"
49
- }, D = (e) => i(E, e), O = o({
49
+ }, w = (e) => i(ae, e), T = o({
50
50
  orientation: {
51
51
  horizontal: {
52
- className: D("horizontal"),
52
+ className: w("horizontal"),
53
53
  purpose: "Separate stacked content",
54
54
  tokens: ["space-0"]
55
55
  },
56
56
  vertical: {
57
- className: D("vertical"),
57
+ className: w("vertical"),
58
58
  purpose: "Separate adjacent content",
59
59
  tokens: ["space-0"]
60
60
  }
61
61
  },
62
62
  strength: {
63
63
  subtle: {
64
- className: D("subtle"),
64
+ className: w("subtle"),
65
65
  purpose: "Quiet structural boundary",
66
66
  tokens: ["color-border-1"]
67
67
  },
68
68
  strong: {
69
- className: D("strong"),
69
+ className: w("strong"),
70
70
  purpose: "Explicit structural boundary",
71
71
  tokens: ["color-border-2"]
72
72
  }
73
73
  }
74
- }), k = o({
74
+ }), oe = o({
75
75
  orientation: "horizontal",
76
76
  strength: "subtle"
77
- }), ie = ({ className: e, decorative: t = !0, label: n, orientation: i = "horizontal", strength: a = "subtle", ...o }) => {
77
+ }), E = ({ className: e, decorative: t = !0, label: n, orientation: i = "horizontal", strength: a = "subtle", ...o }) => {
78
78
  if (!t && n === void 0) throw Error("Semantic Divider label must contain visible text");
79
79
  let c = t || n === void 0 ? void 0 : r(n, "Semantic Divider label");
80
- return /* @__PURE__ */ x("div", {
80
+ return /* @__PURE__ */ y("div", {
81
81
  ...o,
82
82
  "aria-hidden": t ? "true" : void 0,
83
83
  "aria-label": c,
84
84
  "aria-orientation": t ? void 0 : i,
85
- className: s(D("root"), O.orientation[i].className, O.strength[a].className, e),
85
+ className: s(w("root"), T.orientation[i].className, T.strength[a].className, e),
86
86
  role: t ? "presentation" : "separator"
87
87
  });
88
- }, ae = {
88
+ }, se = {
89
89
  root: "rly_LimitTrack-module__root",
90
90
  defaultSize: "rly_LimitTrack-module__defaultSize",
91
91
  slim: "rly_LimitTrack-module__slim",
92
92
  fill: "rly_LimitTrack-module__fill",
93
93
  projection: "rly_LimitTrack-module__projection",
94
94
  near: "rly_LimitTrack-module__near"
95
- }, A = (e) => i(ae, e), j = o({ size: {
95
+ }, D = (e) => i(se, e), O = o({ size: {
96
96
  default: {
97
- className: A("defaultSize"),
97
+ className: D("defaultSize"),
98
98
  purpose: "A limit beside its numbers",
99
99
  tokens: ["space-12", "radius-tag"]
100
100
  },
101
101
  slim: {
102
- className: A("slim"),
102
+ className: D("slim"),
103
103
  purpose: "A limit inside a dense row",
104
104
  tokens: ["space-6", "radius-tag"]
105
105
  }
106
- } }), oe = o({ size: "default" }), M = (e) => e !== null && Number.isFinite(e) ? e : null, N = (e, t) => {
106
+ } }), k = o({ size: "default" }), A = (e) => e !== null && Number.isFinite(e) ? e : null, j = (e, t) => {
107
107
  if (!Number.isFinite(e)) throw Error(`${t} must be a finite number`);
108
108
  return e;
109
- }, se = (e, t) => {
110
- let n = N(t, "limitTrackTone near"), r = M(e);
109
+ }, M = (e, t) => {
110
+ let n = j(t, "limitTrackTone near"), r = A(e);
111
111
  return r === null ? "unknown" : r >= 100 ? "full" : r >= n ? "near" : "ok";
112
- }, P = (e) => Math.min(100, Math.max(0, e)), F = ({ className: e, decorative: t = !0, label: n, near: i = 80, projected: a, size: o = oe.size, stale: c = !1, value: l, valueText: u, ...d }) => {
113
- let f = M(l), p = N(i, "LimitTrack near"), m = !t, h = m ? r(n ?? "", "LimitTrack label") : void 0, g = m ? r(u ?? "", "LimitTrack valueText") : void 0, _ = m && f !== null, v = f !== null && a !== void 0 && Number.isFinite(a) && a > f ? {
114
- start: P(f),
115
- length: P(a) - P(f)
112
+ }, N = (e) => Math.min(100, Math.max(0, e)), ce = ({ className: e, decorative: t = !0, label: n, near: i = 80, projected: a, size: o = k.size, stale: c = !1, value: l, valueText: u, ...d }) => {
113
+ let f = A(l), p = j(i, "LimitTrack near"), m = !t, ee = m ? r(n ?? "", "LimitTrack label") : void 0, h = m ? r(u ?? "", "LimitTrack valueText") : void 0, g = m && f !== null, _ = f !== null && a !== void 0 && Number.isFinite(a) && a > f ? {
114
+ start: N(f),
115
+ length: N(a) - N(f)
116
116
  } : null;
117
- return /* @__PURE__ */ S("span", {
117
+ return /* @__PURE__ */ b("span", {
118
118
  ...d,
119
119
  "aria-hidden": m ? void 0 : "true",
120
- "aria-label": m && !_ ? `${h}: ${g}` : h,
121
- "aria-valuemax": _ ? 100 : void 0,
122
- "aria-valuemin": _ ? 0 : void 0,
123
- "aria-valuenow": _ && f !== null ? P(f) : void 0,
124
- "aria-valuetext": _ ? g : void 0,
125
- className: s(A("root"), j.size[o].className, e),
120
+ "aria-label": m && !g ? `${ee}: ${h}` : ee,
121
+ "aria-valuemax": g ? 100 : void 0,
122
+ "aria-valuemin": g ? 0 : void 0,
123
+ "aria-valuenow": g && f !== null ? N(f) : void 0,
124
+ "aria-valuetext": g ? h : void 0,
125
+ className: s(D("root"), O.size[o].className, e),
126
126
  "data-stale": c ? "true" : void 0,
127
- "data-tone": se(f, p),
128
- role: m ? _ ? "meter" : "img" : void 0,
127
+ "data-tone": M(f, p),
128
+ role: m ? g ? "meter" : "img" : void 0,
129
129
  children: [
130
- f === null ? null : /* @__PURE__ */ x("span", {
131
- className: A("fill"),
130
+ f === null ? null : /* @__PURE__ */ y("span", {
131
+ className: D("fill"),
132
132
  "data-part": "fill",
133
- style: { inlineSize: `${P(f)}%` }
133
+ style: { inlineSize: `${N(f)}%` }
134
134
  }),
135
- v === null ? null : /* @__PURE__ */ x("span", {
136
- className: A("projection"),
135
+ _ === null ? null : /* @__PURE__ */ y("span", {
136
+ className: D("projection"),
137
137
  "data-part": "projection",
138
138
  style: {
139
- inlineSize: `${v.length}%`,
140
- insetInlineStart: `${v.start}%`
139
+ inlineSize: `${_.length}%`,
140
+ insetInlineStart: `${_.start}%`
141
141
  }
142
142
  }),
143
- /* @__PURE__ */ x("span", {
144
- className: A("near"),
143
+ /* @__PURE__ */ y("span", {
144
+ className: D("near"),
145
145
  "data-part": "near",
146
- style: { insetInlineStart: `min(${P(p)}%, 100% - 1px)` }
146
+ style: { insetInlineStart: `min(${N(p)}%, 100% - 1px)` }
147
147
  })
148
148
  ]
149
149
  });
150
- }, I = {
150
+ }, P = {
151
151
  root: "rly_Notice-module__root",
152
152
  neutral: "rly_Notice-module__neutral",
153
153
  positive: "rly_Notice-module__positive",
@@ -158,29 +158,29 @@ var C = {
158
158
  lead: "rly_Notice-module__lead",
159
159
  message: "rly_Notice-module__message",
160
160
  action: "rly_Notice-module__action"
161
- }, L = (e) => i(I, e), ce = o({ tone: {
161
+ }, F = (e) => i(P, e), I = o({ tone: {
162
162
  neutral: {
163
- className: L("neutral"),
163
+ className: F("neutral"),
164
164
  purpose: "Neutral context",
165
165
  tokens: ["color-text-2", "color-border-1"]
166
166
  },
167
167
  positive: {
168
- className: L("positive"),
168
+ className: F("positive"),
169
169
  purpose: "Completed outcome",
170
170
  tokens: ["color-success-ink"]
171
171
  },
172
172
  critical: {
173
- className: L("critical"),
173
+ className: F("critical"),
174
174
  purpose: "Failure that needs attention",
175
175
  tokens: ["color-blocked-ink"]
176
176
  },
177
177
  caution: {
178
- className: L("caution"),
178
+ className: F("caution"),
179
179
  purpose: "Limitation or warning",
180
180
  tokens: ["color-held-ink"]
181
181
  },
182
182
  progress: {
183
- className: L("progress"),
183
+ className: F("progress"),
184
184
  purpose: "Work in progress",
185
185
  tokens: ["color-deploying-ink"]
186
186
  }
@@ -192,27 +192,27 @@ var C = {
192
192
  progress: "loader"
193
193
  }, de = ({ action: e, announce: t = "off", children: r, className: i, icon: a, tone: o = "neutral", ...c }) => {
194
194
  let l = a ?? ue[o], u = t === "assertive" ? "alert" : t === "polite" ? "status" : c.role;
195
- return /* @__PURE__ */ S("div", {
195
+ return /* @__PURE__ */ b("div", {
196
196
  ...c,
197
197
  "aria-live": t === "off" ? void 0 : t,
198
- className: s(L("root"), ce.tone[o].className, i),
198
+ className: s(F("root"), I.tone[o].className, i),
199
199
  role: u,
200
- children: [/* @__PURE__ */ S("div", {
201
- className: L("lead"),
202
- children: [l === void 0 ? null : /* @__PURE__ */ x("span", {
200
+ children: [/* @__PURE__ */ b("div", {
201
+ className: F("lead"),
202
+ children: [l === void 0 ? null : /* @__PURE__ */ y("span", {
203
203
  "aria-hidden": "true",
204
- className: L("icon"),
205
- children: /* @__PURE__ */ x(n, {
204
+ className: F("icon"),
205
+ children: /* @__PURE__ */ y(n, {
206
206
  decorative: !0,
207
207
  name: l,
208
208
  size: "small"
209
209
  })
210
- }), /* @__PURE__ */ x("div", {
211
- className: L("message"),
210
+ }), /* @__PURE__ */ y("div", {
211
+ className: F("message"),
212
212
  children: r
213
213
  })]
214
- }), e === void 0 ? null : /* @__PURE__ */ x("div", {
215
- className: L("action"),
214
+ }), e === void 0 ? null : /* @__PURE__ */ y("div", {
215
+ className: F("action"),
216
216
  children: e
217
217
  })]
218
218
  });
@@ -223,7 +223,7 @@ var C = {
223
223
  6,
224
224
  12,
225
225
  24
226
- ], R = 24, z = (e, t) => {
226
+ ], L = 24, R = (e, t) => {
227
227
  let n = [];
228
228
  for (let r = 0; r < e; r += t) n.push(r);
229
229
  return e % t > 0 && n.length > 1 && n.pop(), n;
@@ -232,28 +232,28 @@ var C = {
232
232
  let r = e[t - 1];
233
233
  if (n.end < n.start || r !== void 0 && n.start < r.end) throw Error(`StackedBars columns must be in time order without overlaps; column ${t} is not`);
234
234
  }
235
- }, me = (e) => {
235
+ }, z = (e) => {
236
236
  let t = /* @__PURE__ */ new Map();
237
237
  for (let n of e) for (let e of n.segments) t.has(e.id) || t.set(e.id, t.size);
238
238
  return t;
239
- }, he = (e, t, n) => {
240
- let r = e[0]?.start ?? 0, i = Math.max(1, (e[e.length - 1]?.end ?? r) - r), a = z(e.length, t), o = Infinity;
239
+ }, me = (e, t, n) => {
240
+ let r = e[0]?.start ?? 0, i = Math.max(1, (e[e.length - 1]?.end ?? r) - r), a = R(e.length, t), o = Infinity;
241
241
  for (let [t, s] of a.entries()) {
242
242
  let c = (a[t + 1] ?? e.length) - 1;
243
243
  o = Math.min(o, ((e[c]?.end ?? r) - (e[s]?.start ?? r)) / i * n);
244
244
  }
245
245
  return o;
246
- }, ge = (e, t, n = 6) => {
246
+ }, he = (e, t, n = 6) => {
247
247
  if (t.length === 0) return 1;
248
- let r = fe.find((r) => he(t, r, e) >= n);
248
+ let r = fe.find((r) => me(t, r, e) >= n);
249
249
  if (r !== void 0) return r;
250
- for (let r = 2; r * R < t.length; r += 1) if (he(t, r * R, e) >= n) return r * R;
250
+ for (let r = 2; r * L < t.length; r += 1) if (me(t, r * L, e) >= n) return r * L;
251
251
  return t.length;
252
- }, _e = (e, t, n) => {
252
+ }, ge = (e, t, n) => {
253
253
  let r = Math.max(1, t.reduce((e, t) => e + Math.max(0, t.end - t.start), 0)) / Math.max(1, t.length);
254
254
  return e.map((e) => r * n / Math.max(1, e.end - e.start));
255
- }, ve = (e, t) => {
256
- let n = [], r = me(e), i = z(e.length, t);
255
+ }, _e = (e, t) => {
256
+ let n = [], r = z(e), i = R(e.length, t);
257
257
  for (let [t, a] of i.entries()) {
258
258
  let o = e.slice(a, i[t + 1] ?? e.length), s = /* @__PURE__ */ new Map();
259
259
  for (let e of o.flatMap((e) => e.segments)) {
@@ -278,7 +278,7 @@ var C = {
278
278
  });
279
279
  }
280
280
  return n;
281
- }, ye = (e, t, n, r) => {
281
+ }, ve = (e, t, n, r) => {
282
282
  let i = t[n];
283
283
  return i === void 0 ? e : !r || e === null ? {
284
284
  from: i.first,
@@ -287,7 +287,7 @@ var C = {
287
287
  from: Math.min(e.from, i.first),
288
288
  to: Math.max(e.to, i.last)
289
289
  };
290
- }, be = (e, t, n) => {
290
+ }, ye = (e, t, n) => {
291
291
  let r = (e) => Math.max(0, Math.min(n, e));
292
292
  switch (e) {
293
293
  case "ArrowLeft": return r(t - 1);
@@ -296,7 +296,7 @@ var C = {
296
296
  case "End": return n;
297
297
  default: return null;
298
298
  }
299
- }, xe = (e, t, n) => e.length === 0 ? [] : e.length === 1 ? t >= 2 * n ? [{
299
+ }, be = (e, t, n) => e.length === 0 ? [] : e.length === 1 ? t >= 2 * n ? [{
300
300
  anchor: "start",
301
301
  index: 0
302
302
  }, { anchor: "end" }] : [{
@@ -308,7 +308,7 @@ var C = {
308
308
  anchor: "start",
309
309
  index: a
310
310
  }] : r;
311
- }, []), { anchor: "end" }], Se = {
311
+ }, []), { anchor: "end" }], xe = {
312
312
  root: "rly_StackedBars-module__root",
313
313
  band: "rly_StackedBars-module__band",
314
314
  bandLabel: "rly_StackedBars-module__bandLabel",
@@ -336,7 +336,7 @@ var C = {
336
336
  axis: "rly_StackedBars-module__axis",
337
337
  barsClip: "rly_StackedBars-module__barsClip",
338
338
  hidden: "rly_StackedBars-module__hidden"
339
- }, B = (e) => i(Se, e), Ce = 72, we = 8, Te = 500, Ee = 24, De = (e, t) => {
339
+ }, B = (e) => i(xe, e), Se = 72, Ce = 8, we = 500, Te = 24, Ee = (e, t) => {
340
340
  if (a(e)) {
341
341
  let n = e(t);
342
342
  return a(n) ? n : () => e(null);
@@ -344,35 +344,35 @@ var C = {
344
344
  return e == null ? () => void 0 : (e.current = t, () => {
345
345
  e.current = null;
346
346
  });
347
- }, Oe = (e, t) => {
348
- let [n, r] = b(e);
349
- return [n, m((e) => {
347
+ }, De = (e, t) => {
348
+ let [n, r] = v(e);
349
+ return [n, p((e) => {
350
350
  if (e === null) return;
351
- let n = De(t, e), i = new ResizeObserver(([e]) => {
351
+ let n = Ee(t, e), i = new ResizeObserver(([e]) => {
352
352
  e !== void 0 && r(e.contentRect.width);
353
353
  });
354
354
  return i.observe(e), () => {
355
355
  i.disconnect(), n();
356
356
  };
357
357
  }, [t])];
358
- }, ke = (e) => Number.isFinite(e) ? Math.min(100, Math.max(0, e)) : null, V = (e) => {
358
+ }, Oe = (e) => Number.isFinite(e) ? Math.min(100, Math.max(0, e)) : null, ke = (e) => {
359
359
  if (!Number.isFinite(e)) throw Error("StackedBars near level must be a finite percentage");
360
360
  return Math.min(100, Math.max(0, e));
361
361
  }, Ae = (e, t, n) => Math.max(0, Math.min(1, (e - t) / Math.max(1, n - t))), je = ({ band: e, from: t, to: n, window: i }) => {
362
- let a = (e) => Ae(e, t, n) * 1e3, o = e.near === void 0 ? void 0 : V(e.near.level);
363
- return /* @__PURE__ */ S("div", {
362
+ let a = (e) => Ae(e, t, n) * 1e3, o = e.near === void 0 ? void 0 : ke(e.near.level);
363
+ return /* @__PURE__ */ b("div", {
364
364
  className: B("band"),
365
365
  "data-band": e.id,
366
- children: [/* @__PURE__ */ x("span", {
366
+ children: [/* @__PURE__ */ y("span", {
367
367
  className: B("bandLabel"),
368
368
  children: r(e.label, "StackedBars band label")
369
- }), /* @__PURE__ */ S("svg", {
369
+ }), /* @__PURE__ */ b("svg", {
370
370
  "aria-hidden": "true",
371
371
  className: B("bandPlot"),
372
372
  preserveAspectRatio: "none",
373
373
  viewBox: "0 0 1000 100",
374
374
  children: [
375
- i === void 0 ? null : /* @__PURE__ */ x("rect", {
375
+ i === void 0 ? null : /* @__PURE__ */ y("rect", {
376
376
  className: B("window"),
377
377
  "data-part": "window",
378
378
  height: 100,
@@ -382,15 +382,15 @@ var C = {
382
382
  e.segments.map((e, t) => {
383
383
  let n = a(e.from), r = a(e.to) - n;
384
384
  if (r <= 0) return null;
385
- let i = e.level === null ? null : ke(e.level);
386
- if (i === null) return /* @__PURE__ */ x("rect", {
385
+ let i = e.level === null ? null : Oe(e.level);
386
+ if (i === null) return /* @__PURE__ */ y("rect", {
387
387
  className: B("unknown"),
388
388
  height: 100,
389
389
  width: r,
390
390
  x: n
391
391
  }, `${t}:${e.from}`);
392
392
  let s = i;
393
- return /* @__PURE__ */ x("rect", {
393
+ return /* @__PURE__ */ y("rect", {
394
394
  className: B("level"),
395
395
  "data-tone": s >= 100 ? "full" : o !== void 0 && s >= o ? "near" : "ok",
396
396
  height: s,
@@ -399,14 +399,14 @@ var C = {
399
399
  y: 100 - s
400
400
  }, `${t}:${e.from}`);
401
401
  }),
402
- o === void 0 ? null : /* @__PURE__ */ x("line", {
402
+ o === void 0 ? null : /* @__PURE__ */ y("line", {
403
403
  className: B("near"),
404
404
  x1: 0,
405
405
  x2: 1e3,
406
406
  y1: 100 - o,
407
407
  y2: 100 - o
408
408
  }),
409
- i === void 0 ? null : /* @__PURE__ */ x("rect", {
409
+ i === void 0 ? null : /* @__PURE__ */ y("rect", {
410
410
  className: B("windowEdge"),
411
411
  "data-part": "window-edge",
412
412
  height: 100,
@@ -416,124 +416,124 @@ var C = {
416
416
  ]
417
417
  })]
418
418
  });
419
- }, H = ({ bands: e = [], className: t, columns: n, describeSelection: i, formatScale: a, formatTick: o, height: c = 180, instructions: l, label: u, noReadingLabel: d, onSelectionChange: f, ref: p, selection: m, window: C, ...w }) => {
419
+ }, V = ({ bands: e = [], className: t, columns: n, describeSelection: i, formatScale: a, formatTick: o, height: c = 180, instructions: l, label: u, noReadingLabel: d, onSelectionChange: f, ref: p, selection: x, window: S, ...ne }) => {
420
420
  pe(n);
421
- let [T, ne] = Oe(720, p), re = g(), E = ge(T, n, Ee), D = v(() => ve(n, E), [n, E]), O = _e(D, n, E), k = Math.max(0, ...D.map(({ total: e }, t) => e * (O[t] ?? 1))), ie = [...new Set(e.flatMap((e) => e.near === void 0 ? [] : [r(e.near.label, "StackedBars near label")]))], ae = e.some((e) => e.segments.some((e) => e.level === null || ke(e.level) === null)) ? r(d ?? "", "StackedBars noReadingLabel (a band has a stretch with no reading)") : void 0, A = n[0]?.start ?? 0, j = n[n.length - 1]?.end ?? A, [oe, M] = b(Ce), N = y(null), se = xe(D.map((e) => Ae(e.start, A, j) * T), T, oe), [P, F] = b(null), [I, L] = b(null), ce = y("mouse"), le = y(m), [ue, de] = b(0), fe = (e) => {
422
- le.current = e, de((e) => e + 1), f(e);
423
- }, R = m?.from, z = m?.to;
424
- h(() => {
425
- let e = le.current;
426
- (e === null ? R !== void 0 : e.from !== R || e.to !== z) && (F(null), L(null)), le.current = R === void 0 || z === void 0 ? null : {
421
+ let [C, ie] = De(720, p), ae = ee(), w = he(C, n, Te), T = g(() => _e(n, w), [n, w]), oe = ge(T, n, w), E = Math.max(0, ...T.map(({ total: e }, t) => e * (oe[t] ?? 1))), se = [...new Set(e.flatMap((e) => e.near === void 0 ? [] : [r(e.near.label, "StackedBars near label")]))], D = e.some((e) => e.segments.some((e) => e.level === null || Oe(e.level) === null)) ? r(d ?? "", "StackedBars noReadingLabel (a band has a stretch with no reading)") : void 0, O = n[0]?.start ?? 0, k = n[n.length - 1]?.end ?? O, [A, j] = v(Se), M = _(null), N = be(T.map((e) => Ae(e.start, O, k) * C), C, A), [ce, P] = v(null), [F, I] = v(null), le = _("mouse"), ue = _(x), [de, fe] = v(0), L = (e) => {
422
+ ue.current = e, fe((e) => e + 1), f(e);
423
+ }, R = x?.from, z = x?.to;
424
+ m(() => {
425
+ let e = ue.current;
426
+ (e === null ? R !== void 0 : e.from !== R || e.to !== z) && (P(null), I(null)), ue.current = R === void 0 || z === void 0 ? null : {
427
427
  from: R,
428
428
  to: z
429
429
  };
430
430
  }, [R, z]);
431
- let [me, he] = b(""), Se = y("");
432
- Se.current = i(m);
433
- let De = (e) => Math.min(D.length - 1, Math.floor(e / E)), V = P === null ? null : De(P);
434
- h(() => {
435
- if (ue === 0) return;
436
- he("");
437
- let e = setTimeout(() => he(Se.current), Te);
431
+ let [me, xe] = v(""), Ee = _("");
432
+ Ee.current = i(x);
433
+ let ke = (e) => Math.min(T.length - 1, Math.floor(e / w)), V = ce === null ? null : ke(ce);
434
+ m(() => {
435
+ if (de === 0) return;
436
+ xe("");
437
+ let e = setTimeout(() => xe(Ee.current), we);
438
438
  return () => clearTimeout(e);
439
- }, [ue]), _(() => {
440
- M(Ce);
439
+ }, [de]), h(() => {
440
+ j(Se);
441
441
  }, [
442
- E,
443
- A,
444
- j
442
+ w,
443
+ O,
444
+ k
445
445
  ]);
446
- let [H, Me] = b(void 0);
447
- _(() => {
448
- let e = [...N.current?.querySelectorAll("[data-anchor]") ?? []], t = Math.max(0, ...e.map((e) => e.scrollWidth));
449
- t + we > oe && M(t + we);
446
+ let [H, U] = v(void 0);
447
+ h(() => {
448
+ let e = [...M.current?.querySelectorAll("[data-anchor]") ?? []], t = Math.max(0, ...e.map((e) => e.scrollWidth));
449
+ t + Ce > A && j(t + Ce);
450
450
  let n = Math.max(0, ...e.map((e) => e.offsetHeight));
451
- n > 0 && n !== H && Me(n);
451
+ n > 0 && n !== H && U(n);
452
452
  });
453
- let U = (e) => {
453
+ let W = (e) => {
454
454
  if (e.key === "Escape") {
455
- if (m === null) return;
456
- e.preventDefault(), F(null), L(null), fe(null);
455
+ if (x === null) return;
456
+ e.preventDefault(), P(null), I(null), L(null);
457
457
  return;
458
458
  }
459
- if (D.length === 0) return;
460
- let t = V ?? (m === null ? D.length - 1 : De(m.to)), n = be(e.key, t, D.length - 1);
461
- n !== null && (e.preventDefault(), F(D[n]?.first ?? null), L(null), fe(ye(m, D, n, e.shiftKey)));
462
- }, W = n[0]?.start ?? 0, Ne = n[n.length - 1]?.end ?? W, G = (e) => Ae(e, W, Ne) * 1e3, K = (e, t) => ({
463
- width: Math.max(0, G(t) - G(e)),
464
- x: G(e)
465
- }), q = C === void 0 ? null : K(C.from, C.to), J = m === null ? void 0 : n[Math.max(0, m.from)], Pe = m === null ? void 0 : n[Math.min(n.length - 1, m.to)], Y = J === void 0 || Pe === void 0 ? null : K(J.start, Pe.end), Fe = V === null ? void 0 : D[V], Ie = Math.max(Ee, c), X = 1e3 / Math.max(1, T), Z = 100 / Ie, Q = Fe === void 0 ? null : K(Fe.start, Fe.end);
466
- return /* @__PURE__ */ S("div", {
467
- ...w,
459
+ if (T.length === 0) return;
460
+ let t = V ?? (x === null ? T.length - 1 : ke(x.to)), n = ye(e.key, t, T.length - 1);
461
+ n !== null && (e.preventDefault(), P(T[n]?.first ?? null), I(null), L(ve(x, T, n, e.shiftKey)));
462
+ }, G = n[0]?.start ?? 0, Me = n[n.length - 1]?.end ?? G, K = (e) => Ae(e, G, Me) * 1e3, q = (e, t) => ({
463
+ width: Math.max(0, K(t) - K(e)),
464
+ x: K(e)
465
+ }), J = S === void 0 ? null : q(S.from, S.to), Y = x === null ? void 0 : n[Math.max(0, x.from)], Ne = x === null ? void 0 : n[Math.min(n.length - 1, x.to)], X = Y === void 0 || Ne === void 0 ? null : q(Y.start, Ne.end), Z = V === null ? void 0 : T[V], Pe = Math.max(Te, c), Q = 1e3 / Math.max(1, C), Fe = 100 / Pe, Ie = Z === void 0 ? null : q(Z.start, Z.end);
466
+ return /* @__PURE__ */ b("div", {
467
+ ...ne,
468
468
  className: s(B("root"), t),
469
- ref: ne,
469
+ ref: ie,
470
470
  children: [
471
- e.map((e) => /* @__PURE__ */ x(je, {
471
+ e.map((e) => /* @__PURE__ */ y(je, {
472
472
  band: e,
473
- from: W,
474
- to: Ne,
475
- window: C
473
+ from: G,
474
+ to: Me,
475
+ window: S
476
476
  }, e.id)),
477
- /* @__PURE__ */ x("span", {
477
+ /* @__PURE__ */ y("span", {
478
478
  className: B("scale"),
479
- children: a(k, E)
479
+ children: a(E, w)
480
480
  }),
481
- /* @__PURE__ */ x("div", {
482
- "aria-describedby": re,
481
+ /* @__PURE__ */ y("div", {
482
+ "aria-describedby": ae,
483
483
  "aria-label": r(u, "StackedBars label"),
484
484
  "aria-roledescription": "chart",
485
485
  className: B("plot"),
486
- onBlur: () => F(null),
487
- onKeyDown: U,
486
+ onBlur: () => P(null),
487
+ onKeyDown: W,
488
488
  role: "group",
489
- style: { blockSize: `${Ie}px` },
489
+ style: { blockSize: `${Pe}px` },
490
490
  tabIndex: 0,
491
- children: /* @__PURE__ */ S("svg", {
491
+ children: /* @__PURE__ */ b("svg", {
492
492
  "aria-hidden": "true",
493
493
  className: B("bars"),
494
494
  preserveAspectRatio: "none",
495
495
  viewBox: "0 0 1000 100",
496
496
  children: [
497
- q === null || q.width <= 0 ? null : /* @__PURE__ */ x("rect", {
497
+ J === null || J.width <= 0 ? null : /* @__PURE__ */ y("rect", {
498
498
  className: B("window"),
499
499
  "data-part": "window",
500
500
  height: 100,
501
- width: q.width,
502
- x: q.x
501
+ width: J.width,
502
+ x: J.x
503
503
  }),
504
- Y === null || Y.width <= 0 ? null : /* @__PURE__ */ x("rect", {
504
+ X === null || X.width <= 0 ? null : /* @__PURE__ */ y("rect", {
505
505
  className: B("selection"),
506
506
  "data-part": "selection",
507
507
  height: 100,
508
- width: Y.width,
509
- x: Y.x
508
+ width: X.width,
509
+ x: X.x
510
510
  }),
511
- /* @__PURE__ */ x("g", {
511
+ /* @__PURE__ */ y("g", {
512
512
  className: B("barsClip"),
513
- children: D.map((e, t) => {
514
- let n = K(e.start, e.end), r = m !== null && e.last >= m.from && e.first <= m.to;
515
- return /* @__PURE__ */ S("g", {
513
+ children: T.map((e, t) => {
514
+ let n = q(e.start, e.end), r = x !== null && e.last >= x.from && e.first <= x.to;
515
+ return /* @__PURE__ */ b("g", {
516
516
  "data-bin": t,
517
517
  "data-focused": V === t ? "true" : void 0,
518
518
  "data-selected": r ? "true" : void 0,
519
519
  onClick: (n) => {
520
- let r = ce.current === "touch", i = n.shiftKey || r && m !== null && I !== null && I >= m.from && I <= m.to && (I < e.first || I > e.last);
521
- fe(ye(m, D, t, i)), F(e.first), L(r && !i ? e.first : null);
520
+ let r = le.current === "touch", i = n.shiftKey || r && x !== null && F !== null && F >= x.from && F <= x.to && (F < e.first || F > e.last);
521
+ L(ve(x, T, t, i)), P(e.first), I(r && !i ? e.first : null);
522
522
  },
523
523
  onPointerDown: (e) => {
524
- ce.current = e.pointerType;
524
+ le.current = e.pointerType;
525
525
  },
526
- children: [/* @__PURE__ */ x("rect", {
526
+ children: [/* @__PURE__ */ y("rect", {
527
527
  className: B("hit"),
528
528
  height: 100,
529
529
  width: n.width,
530
530
  x: n.x
531
531
  }), e.segments.map((e) => {
532
- let r = O[t] ?? 1, i = k === 0 ? 0 : (e.offset + e.value) * r / k * 88, a = k === 0 ? 0 : e.value * r / k * 88;
533
- return /* @__PURE__ */ x("rect", {
532
+ let r = oe[t] ?? 1, i = E === 0 ? 0 : (e.offset + e.value) * r / E * 88, a = E === 0 ? 0 : e.value * r / E * 88;
533
+ return /* @__PURE__ */ y("rect", {
534
534
  className: B("segment"),
535
535
  "data-series": String(e.series),
536
- fill: te(e.series),
536
+ fill: re(e.series),
537
537
  height: a,
538
538
  width: n.width,
539
539
  x: n.x,
@@ -543,92 +543,92 @@ var C = {
543
543
  }, e.first);
544
544
  })
545
545
  }),
546
- Y === null || Y.width <= 0 ? null : /* @__PURE__ */ S(ee, { children: [/* @__PURE__ */ x("rect", {
546
+ X === null || X.width <= 0 ? null : /* @__PURE__ */ b(te, { children: [/* @__PURE__ */ y("rect", {
547
547
  className: B("selectionHalo"),
548
548
  "data-part": "selection-halo",
549
549
  height: 100,
550
- width: Y.width,
551
- x: Y.x
552
- }), /* @__PURE__ */ x("rect", {
550
+ width: X.width,
551
+ x: X.x
552
+ }), /* @__PURE__ */ y("rect", {
553
553
  className: B("selectionEdge"),
554
554
  "data-part": "selection-edge",
555
555
  height: 100,
556
- width: Y.width,
557
- x: Y.x
556
+ width: X.width,
557
+ x: X.x
558
558
  })] }),
559
- q === null || q.width <= 0 ? null : /* @__PURE__ */ x("rect", {
559
+ J === null || J.width <= 0 ? null : /* @__PURE__ */ y("rect", {
560
560
  className: B("windowEdge"),
561
561
  "data-part": "window-edge",
562
562
  height: 100,
563
- width: q.width,
564
- x: q.x
563
+ width: J.width,
564
+ x: J.x
565
565
  }),
566
- Q === null ? null : /* @__PURE__ */ x("rect", {
566
+ Ie === null ? null : /* @__PURE__ */ y("rect", {
567
567
  className: B("focusRing"),
568
568
  "data-part": "focus-ring",
569
- height: Math.max(0, 100 - 2 * Z),
570
- width: Math.max(0, Q.width - 2 * X),
571
- x: Q.x + X,
572
- y: Z
569
+ height: Math.max(0, 100 - 2 * Fe),
570
+ width: Math.max(0, Ie.width - 2 * Q),
571
+ x: Ie.x + Q,
572
+ y: Fe
573
573
  })
574
574
  ]
575
575
  })
576
576
  }),
577
- /* @__PURE__ */ x("div", {
577
+ /* @__PURE__ */ y("div", {
578
578
  "aria-hidden": "true",
579
579
  className: B("axis"),
580
- ref: N,
580
+ ref: M,
581
581
  style: H === void 0 ? void 0 : { blockSize: `${H}px` },
582
- children: se.map((e) => {
583
- let t = e.anchor === "end" ? j : D[e.index]?.start;
584
- return t === void 0 ? null : /* @__PURE__ */ x("span", {
582
+ children: N.map((e) => {
583
+ let t = e.anchor === "end" ? k : T[e.index]?.start;
584
+ return t === void 0 ? null : /* @__PURE__ */ y("span", {
585
585
  className: B("tick"),
586
586
  "data-anchor": e.anchor,
587
- style: e.anchor === "end" ? { right: 0 } : { left: `${G(t) / 10}%` },
588
- children: o(t, E)
587
+ style: e.anchor === "end" ? { right: 0 } : { left: `${K(t) / 10}%` },
588
+ children: o(t, w)
589
589
  }, e.anchor === "end" ? "end" : e.index);
590
590
  })
591
591
  }),
592
- C === void 0 && ie.length === 0 && ae === void 0 ? null : /* @__PURE__ */ S("ul", {
592
+ S === void 0 && se.length === 0 && D === void 0 ? null : /* @__PURE__ */ b("ul", {
593
593
  className: B("keys"),
594
594
  role: "list",
595
595
  children: [
596
- C === void 0 ? null : /* @__PURE__ */ S("li", {
596
+ S === void 0 ? null : /* @__PURE__ */ b("li", {
597
597
  className: B("windowKey"),
598
- children: [/* @__PURE__ */ x("span", {
598
+ children: [/* @__PURE__ */ y("span", {
599
599
  "aria-hidden": "true",
600
600
  className: B("windowSwatch")
601
- }), r(C.label, "StackedBars window label")]
601
+ }), r(S.label, "StackedBars window label")]
602
602
  }),
603
- ie.map((e) => /* @__PURE__ */ S("li", {
603
+ se.map((e) => /* @__PURE__ */ b("li", {
604
604
  className: B("windowKey"),
605
- children: [/* @__PURE__ */ x("span", {
605
+ children: [/* @__PURE__ */ y("span", {
606
606
  "aria-hidden": "true",
607
607
  className: B("nearSwatch")
608
608
  }), e]
609
609
  }, e)),
610
- ae === void 0 ? null : /* @__PURE__ */ S("li", {
610
+ D === void 0 ? null : /* @__PURE__ */ b("li", {
611
611
  className: B("windowKey"),
612
- children: [/* @__PURE__ */ x("span", {
612
+ children: [/* @__PURE__ */ y("span", {
613
613
  "aria-hidden": "true",
614
614
  className: B("unknownSwatch")
615
- }), ae]
615
+ }), D]
616
616
  })
617
617
  ]
618
618
  }),
619
- /* @__PURE__ */ x("p", {
619
+ /* @__PURE__ */ y("p", {
620
620
  className: B("hidden"),
621
- id: re,
621
+ id: ae,
622
622
  children: r(l, "StackedBars instructions")
623
623
  }),
624
- /* @__PURE__ */ x("p", {
624
+ /* @__PURE__ */ y("p", {
625
625
  "aria-live": "polite",
626
626
  className: B("hidden"),
627
627
  children: me
628
628
  })
629
629
  ]
630
630
  });
631
- }, Me = {
631
+ }, H = {
632
632
  root: "rly_Surface-module__root",
633
633
  tonePrimary: "rly_Surface-module__tonePrimary",
634
634
  toneSecondary: "rly_Surface-module__toneSecondary",
@@ -639,7 +639,7 @@ var C = {
639
639
  paddingCompact: "rly_Surface-module__paddingCompact",
640
640
  paddingDefault: "rly_Surface-module__paddingDefault",
641
641
  paddingSpacious: "rly_Surface-module__paddingSpacious"
642
- }, U = (e) => i(Me, e), W = o({
642
+ }, U = (e) => i(H, e), W = o({
643
643
  tone: {
644
644
  primary: {
645
645
  className: U("tonePrimary"),
@@ -691,83 +691,15 @@ var C = {
691
691
  tokens: ["space-32"]
692
692
  }
693
693
  }
694
- }), Ne = o({
694
+ }), G = o({
695
695
  tone: "primary",
696
696
  form: "card",
697
697
  padding: "default"
698
- }), G = ({ as: e, children: t, className: n, form: r = "card", padding: i = "default", ref: a, tone: o = "primary", ...c }) => p(e ?? "div", {
698
+ }), Me = ({ as: e, children: t, className: n, form: r = "card", padding: i = "default", ref: a, tone: o = "primary", ...c }) => f(e ?? "div", {
699
699
  ...c,
700
700
  className: s(U("root"), W.tone[o].className, W.form[r].className, W.padding[i].className, n),
701
701
  ref: a
702
702
  }, t), K = {
703
- root: "rly_Tabs-module__root",
704
- list: "rly_Tabs-module__list",
705
- trigger: "rly_Tabs-module__trigger",
706
- defaultSize: "rly_Tabs-module__defaultSize",
707
- large: "rly_Tabs-module__large",
708
- panel: "rly_Tabs-module__panel"
709
- }, q = (e) => i(K, e), J = o({ size: {
710
- default: {
711
- className: q("defaultSize"),
712
- purpose: "Standard section navigation",
713
- tokens: [
714
- "type-label",
715
- "space-40",
716
- "space-4"
717
- ]
718
- },
719
- large: {
720
- className: q("large"),
721
- purpose: "Prominent page-level navigation",
722
- tokens: ["type-body", "space-48"]
723
- }
724
- } }), Pe = o({ size: "default" }), Y = (e) => {
725
- if (e.length === 0) throw Error("Tabs items must contain at least one enabled tab");
726
- let t = /* @__PURE__ */ new Set(), n;
727
- for (let i of e) {
728
- let e = r(i.value, "Tab value");
729
- if (r(i.label, `Tab label for ${e}`), t.has(e)) throw Error(`Tabs item values must be unique: ${e}`);
730
- t.add(e), !i.disabled && n === void 0 && (n = i);
731
- }
732
- if (n === void 0) throw Error("Tabs items must contain at least one enabled tab");
733
- return n;
734
- }, Fe = ({ "aria-label": e, className: t, defaultValue: n, direction: i, items: a, onValueChange: o, ref: c, size: l = "default", value: u, ...d }) => {
735
- let m = r(e, "Tabs aria-label"), h = Y(a), g = u ?? n ?? h.value, _ = a.find((e) => e.value === g);
736
- if (_ === void 0 || _.disabled) throw Error(`Tabs selected value must identify an enabled tab: ${g}`);
737
- let v = u === void 0 ? o === void 0 ? { defaultValue: g } : {
738
- defaultValue: g,
739
- onValueChange: o
740
- } : {
741
- onValueChange: o,
742
- value: u
743
- }, y = i === void 0 ? {} : { dir: i };
744
- return /* @__PURE__ */ S(f.Root, {
745
- ...d,
746
- ...v,
747
- ...y,
748
- activationMode: "automatic",
749
- className: s(q("root"), J.size[l].className, t),
750
- orientation: "horizontal",
751
- ref: c,
752
- children: [/* @__PURE__ */ x(f.List, {
753
- "aria-label": m,
754
- className: q("list"),
755
- loop: !0,
756
- children: a.map((e) => /* @__PURE__ */ x(f.Trigger, {
757
- className: q("trigger"),
758
- "data-tab-value": e.value,
759
- disabled: e.disabled,
760
- value: e.value,
761
- children: e.label
762
- }, e.value))
763
- }), a.map((e) => /* @__PURE__ */ p(f.Content, {
764
- className: q("panel"),
765
- ...e.forceMount === void 0 ? {} : { forceMount: e.forceMount },
766
- key: e.value,
767
- value: e.value
768
- }, e.content))]
769
- });
770
- }, Ie = {
771
703
  root: "rly_Text-module__root",
772
704
  verdict: "rly_Text-module__verdict",
773
705
  pageTitle: "rly_Text-module__pageTitle",
@@ -782,121 +714,121 @@ var C = {
782
714
  toneSecondary: "rly_Text-module__toneSecondary",
783
715
  toneTertiary: "rly_Text-module__toneTertiary",
784
716
  toneInherit: "rly_Text-module__toneInherit"
785
- }, X = (e) => i(Ie, e), Z = o({
717
+ }, q = (e) => i(K, e), J = o({
786
718
  variant: {
787
719
  verdict: {
788
- className: X("verdict"),
720
+ className: q("verdict"),
789
721
  purpose: "One restrained verdict thesis",
790
722
  tokens: ["type-verdict"]
791
723
  },
792
724
  "page-title": {
793
- className: X("pageTitle"),
725
+ className: q("pageTitle"),
794
726
  purpose: "Primary page title",
795
727
  tokens: ["type-page-title"]
796
728
  },
797
729
  "section-title": {
798
- className: X("sectionTitle"),
730
+ className: q("sectionTitle"),
799
731
  purpose: "Section heading",
800
732
  tokens: ["type-section-title"]
801
733
  },
802
734
  "card-title": {
803
- className: X("cardTitle"),
735
+ className: q("cardTitle"),
804
736
  purpose: "Card or panel heading",
805
737
  tokens: ["type-card-title"]
806
738
  },
807
739
  "body-large": {
808
- className: X("bodyLarge"),
740
+ className: q("bodyLarge"),
809
741
  purpose: "Leading explanatory copy",
810
742
  tokens: ["type-body-large"]
811
743
  },
812
744
  body: {
813
- className: X("body"),
745
+ className: q("body"),
814
746
  purpose: "Default interface copy",
815
747
  tokens: ["type-body"]
816
748
  },
817
749
  label: {
818
- className: X("label"),
750
+ className: q("label"),
819
751
  purpose: "Control and metadata labels",
820
752
  tokens: ["type-label"]
821
753
  },
822
754
  meta: {
823
- className: X("meta"),
755
+ className: q("meta"),
824
756
  purpose: "Supporting metadata",
825
757
  tokens: ["type-meta"]
826
758
  },
827
759
  code: {
828
- className: X("code"),
760
+ className: q("code"),
829
761
  purpose: "Code and tabular data",
830
762
  tokens: ["type-code"]
831
763
  }
832
764
  },
833
765
  tone: {
834
766
  primary: {
835
- className: X("tonePrimary"),
767
+ className: q("tonePrimary"),
836
768
  purpose: "Primary readable text",
837
769
  tokens: ["color-text-1"]
838
770
  },
839
771
  secondary: {
840
- className: X("toneSecondary"),
772
+ className: q("toneSecondary"),
841
773
  purpose: "Supporting text",
842
774
  tokens: ["color-text-2"]
843
775
  },
844
776
  tertiary: {
845
- className: X("toneTertiary"),
777
+ className: q("toneTertiary"),
846
778
  purpose: "Restricted tertiary text",
847
779
  tokens: ["color-text-3"]
848
780
  },
849
781
  inherit: {
850
- className: X("toneInherit"),
782
+ className: q("toneInherit"),
851
783
  purpose: "Inherit semantic context",
852
784
  tokens: []
853
785
  }
854
786
  }
855
- }), Q = o({
787
+ }), Y = o({
856
788
  variant: "body",
857
789
  tone: "primary"
858
- }), Le = (e) => e === "code" ? "code" : e === "verdict" ? "p" : e === "label" || e === "meta" ? "span" : "p", Re = ({ as: e, children: t, className: n, ref: r, tone: i = Q.tone, variant: a = Q.variant, ...o }) => p(e ?? Le(a), {
790
+ }), Ne = (e) => e === "code" ? "code" : e === "verdict" ? "p" : e === "label" || e === "meta" ? "span" : "p", X = ({ as: e, children: t, className: n, ref: r, tone: i = Y.tone, variant: a = Y.variant, ...o }) => f(e ?? Ne(a), {
859
791
  ...o,
860
- className: s(X("root"), Z.variant[a].className, Z.tone[i].className, n),
792
+ className: s(q("root"), J.variant[a].className, J.tone[i].className, n),
861
793
  ref: r
862
- }, t), ze = { intrinsic: "rly_ThemeSelect-module__intrinsic" }, Be = {
794
+ }, t), Z = { intrinsic: "rly_ThemeSelect-module__intrinsic" }, Pe = {
863
795
  system: "System",
864
796
  light: "Light",
865
797
  dark: "Dark"
866
- }, Ve = t.map((e) => ({
867
- label: Be[e],
798
+ }, Q = t.map((e) => ({
799
+ label: Pe[e],
868
800
  value: e
869
- })), He = ({ className: t, label: n = "Appearance", labelVisibility: r = "visible", onValueChange: a, size: o = u.size, value: d }) => {
801
+ })), Fe = ({ className: t, label: n = "Appearance", labelVisibility: r = "visible", onValueChange: a, size: o = c.size, value: d }) => {
870
802
  let f = (t) => {
871
803
  let n = e(t);
872
804
  n !== void 0 && a(n);
873
805
  };
874
- return r === "hidden" ? /* @__PURE__ */ x(c, {
806
+ return r === "hidden" ? /* @__PURE__ */ y(u, {
875
807
  "aria-label": n,
876
- className: s(i(ze, "intrinsic"), t),
808
+ className: s(i(Z, "intrinsic"), t),
877
809
  onValueChange: f,
878
- options: Ve,
810
+ options: Q,
879
811
  size: o,
880
812
  value: d
881
- }) : /* @__PURE__ */ x(l, {
813
+ }) : /* @__PURE__ */ y(l, {
882
814
  ...t === void 0 ? {} : { className: t },
883
815
  label: n,
884
816
  size: o,
885
- children: (e) => /* @__PURE__ */ x(c, {
817
+ children: (e) => /* @__PURE__ */ y(u, {
886
818
  ...e,
887
819
  onValueChange: f,
888
- options: Ve,
820
+ options: Q,
889
821
  size: o,
890
822
  value: d
891
823
  })
892
824
  });
893
- }, Ue = {
825
+ }, Ie = {
894
826
  root: "rly_ToggleGroup-module__root",
895
827
  item: "rly_ToggleGroup-module__item",
896
828
  dense: "rly_ToggleGroup-module__dense",
897
829
  compact: "rly_ToggleGroup-module__compact",
898
830
  defaultSize: "rly_ToggleGroup-module__defaultSize"
899
- }, $ = (e) => i(Ue, e), We = o({ size: {
831
+ }, $ = (e) => i(Ie, e), Le = o({ size: {
900
832
  dense: {
901
833
  className: $("dense"),
902
834
  purpose: "Tool-density choice beside dense controls; the default",
@@ -924,7 +856,7 @@ var C = {
924
856
  "radius-tag"
925
857
  ]
926
858
  }
927
- } }), Ge = o({ size: "dense" }), Ke = (e) => e === "ArrowLeft" || e === "ArrowUp" ? -1 : e === "ArrowRight" || e === "ArrowDown" ? 1 : null, qe = (e, t) => {
859
+ } }), Re = o({ size: "dense" }), ze = (e) => e === "ArrowLeft" || e === "ArrowUp" ? -1 : e === "ArrowRight" || e === "ArrowDown" ? 1 : null, Be = (e, t) => {
928
860
  let n = /* @__PURE__ */ new Set();
929
861
  for (let t of e) {
930
862
  let e = r(t.value, "ToggleGroup item value");
@@ -932,26 +864,26 @@ var C = {
932
864
  n.add(e);
933
865
  }
934
866
  if (!n.has(t)) throw Error(`ToggleGroup value must identify an option: ${t}`);
935
- }, Je = ({ "aria-label": e, className: t, items: n, onValueChange: i, ref: a, size: o = Ge.size, value: c, ...l }) => {
867
+ }, Ve = ({ "aria-label": e, className: t, items: n, onValueChange: i, ref: a, size: o = Re.size, value: c, ...l }) => {
936
868
  let u = r(e, "ToggleGroup aria-label");
937
- qe(n, c);
938
- let f = y(/* @__PURE__ */ new Map()), p = (e, t) => {
939
- let r = Ke(e.key);
869
+ Be(n, c);
870
+ let f = _(/* @__PURE__ */ new Map()), p = (e, t) => {
871
+ let r = ze(e.key);
940
872
  if (r === null) return;
941
873
  e.preventDefault();
942
874
  let a = n[(t + r + n.length) % n.length];
943
875
  a !== void 0 && (a.value !== c && i(a.value), f.current.get(a.value)?.focus());
944
876
  };
945
- return /* @__PURE__ */ x(d.Root, {
877
+ return /* @__PURE__ */ y(d.Root, {
946
878
  ...l,
947
879
  "aria-label": u,
948
- className: s($("root"), We.size[o].className, t),
880
+ className: s($("root"), Le.size[o].className, t),
949
881
  loop: !0,
950
882
  onValueChange: i,
951
883
  orientation: "horizontal",
952
884
  ref: a,
953
885
  value: c,
954
- children: n.map((e, t) => /* @__PURE__ */ x(d.Item, {
886
+ children: n.map((e, t) => /* @__PURE__ */ y(d.Item, {
955
887
  className: $("item"),
956
888
  onKeyDown: (e) => p(e, t),
957
889
  ref: (t) => {
@@ -961,41 +893,41 @@ var C = {
961
893
  children: e.label
962
894
  }, e.value))
963
895
  });
964
- }, Ye = {
896
+ }, He = {
965
897
  root: "rly_TrackKey-module__root",
966
898
  item: "rly_TrackKey-module__item",
967
899
  near: "rly_TrackKey-module__near",
968
900
  projected: "rly_TrackKey-module__projected",
969
901
  stale: "rly_TrackKey-module__stale",
970
902
  unknown: "rly_TrackKey-module__unknown"
971
- }, Xe = (e) => i(Ye, e), Ze = [
903
+ }, Ue = (e) => i(He, e), We = [
972
904
  "near",
973
905
  "projected",
974
906
  "stale",
975
907
  "unknown"
976
- ], Qe = ({ className: e, items: t, label: n, ...i }) => {
908
+ ], Ge = ({ className: e, items: t, label: n, ...i }) => {
977
909
  if (t.length === 0) throw Error("TrackKey needs at least one mark to explain");
978
910
  let a = /* @__PURE__ */ new Set();
979
911
  for (let e of t) {
980
912
  if (a.has(e.mark)) throw Error(`TrackKey marks must be unique: ${e.mark}`);
981
913
  a.add(e.mark);
982
914
  }
983
- return /* @__PURE__ */ x("ul", {
915
+ return /* @__PURE__ */ y("ul", {
984
916
  ...i,
985
917
  "aria-label": r(n, "TrackKey label"),
986
- className: s(Xe("root"), e),
918
+ className: s(Ue("root"), e),
987
919
  role: "list",
988
- children: t.map((e) => /* @__PURE__ */ S("li", {
989
- className: Xe("item"),
990
- children: [/* @__PURE__ */ x("span", {
920
+ children: t.map((e) => /* @__PURE__ */ b("li", {
921
+ className: Ue("item"),
922
+ children: [/* @__PURE__ */ y("span", {
991
923
  "aria-hidden": "true",
992
- className: Xe(e.mark),
924
+ className: Ue(e.mark),
993
925
  "data-mark": e.mark
994
926
  }), r(e.label, "TrackKey item label")]
995
927
  }, e.mark))
996
928
  });
997
929
  };
998
930
  //#endregion
999
- export { se as C, re as D, O as E, T as O, j as S, k as T, de as _, Je as a, F as b, Z as c, J as d, Fe as f, H as g, G as h, We as i, te as k, Re as l, W as m, Qe as n, He as o, Ne as p, Ge as r, Q as s, Ze as t, Pe as u, le as v, ie as w, oe as x, ce as y };
931
+ export { T as C, re as E, oe as S, ne as T, ce as _, Ve as a, M as b, J as c, W as d, Me as f, I as g, le as h, Le as i, X as l, de as m, Ge as n, Fe as o, V as p, Re as r, Y as s, We as t, G as u, k as v, ie as w, E as x, O as y };
1000
932
 
1001
- //# sourceMappingURL=primitives-Bd6WhE78.js.map
933
+ //# sourceMappingURL=primitives-DgQybTyq.js.map