@knpkv/rly 0.9.0 → 0.10.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 +11 -3
- package/dist/{Dialog-_t9OodCK.js → Dialog-B9Ub_gMT.js} +79 -62
- package/dist/Dialog-B9Ub_gMT.js.map +1 -0
- package/dist/components.css +2 -2
- package/dist/diff/bounded/index.js +317 -303
- package/dist/diff/bounded/index.js.map +1 -1
- package/dist/diff/index.js +2436 -2433
- package/dist/diff/index.js.map +1 -1
- package/dist/diff/patch/index.js +188 -186
- package/dist/diff/patch/index.js.map +1 -1
- package/dist/diff/workbench/index.js +1 -1
- package/dist/dts/diff/DiffCodeView.d.ts.map +1 -1
- package/dist/dts/diff/DiffFileTree.d.ts.map +1 -1
- package/dist/dts/diff/DiffFinding.d.ts.map +1 -1
- package/dist/dts/diff/DiffHeader.d.ts.map +1 -1
- package/dist/dts/diff/bounded/BoundedDiffCodeView.d.ts.map +1 -1
- package/dist/dts/diff/patch/PatchDiffView.d.ts.map +1 -1
- package/dist/dts/internal/useNarrowerThan.d.ts +10 -0
- package/dist/dts/internal/useNarrowerThan.d.ts.map +1 -0
- package/dist/dts/patterns/AgentThread.d.ts.map +1 -1
- package/dist/dts/patterns/FreshnessStamp.d.ts.map +1 -1
- package/dist/dts/patterns/ReleaseRelay.d.ts.map +1 -1
- package/dist/dts/patterns/Verdict.d.ts +1 -1
- package/dist/dts/patterns/Verdict.d.ts.map +1 -1
- package/dist/dts/primitives/Button.d.ts +9 -4
- package/dist/dts/primitives/Button.d.ts.map +1 -1
- package/dist/dts/primitives/Field.d.ts +8 -3
- package/dist/dts/primitives/Field.d.ts.map +1 -1
- package/dist/dts/primitives/IconButton.d.ts +9 -4
- package/dist/dts/primitives/IconButton.d.ts.map +1 -1
- package/dist/dts/primitives/Notice.d.ts +5 -5
- package/dist/dts/primitives/Select.d.ts +8 -3
- package/dist/dts/primitives/Select.d.ts.map +1 -1
- package/dist/dts/primitives/StateLabel.d.ts +6 -6
- package/dist/dts/primitives/StateLabel.d.ts.map +1 -1
- package/dist/dts/primitives/StatePanel.d.ts +7 -6
- package/dist/dts/primitives/StatePanel.d.ts.map +1 -1
- package/dist/dts/primitives/ThemeSelect.d.ts +3 -2
- package/dist/dts/primitives/ThemeSelect.d.ts.map +1 -1
- package/dist/dts/primitives/ToggleGroup.d.ts +9 -4
- package/dist/dts/primitives/ToggleGroup.d.ts.map +1 -1
- package/dist/dts/tokens/control.d.ts +27 -0
- package/dist/dts/tokens/control.d.ts.map +1 -0
- package/dist/dts/tokens/index.d.ts +2 -2
- package/dist/dts/tokens/index.d.ts.map +1 -1
- package/dist/dts/tokens/semantic-tokens.d.ts +2 -0
- package/dist/dts/tokens/semantic-tokens.d.ts.map +1 -1
- package/dist/generated-tokens.css +19 -6
- package/dist/index.js +5 -5
- package/dist/patterns/index.js +1 -1
- package/dist/{patterns-lOWLKH70.js → patterns-DTsU3pFo.js} +12 -14
- package/dist/patterns-DTsU3pFo.js.map +1 -0
- package/dist/primitives/index.js +2 -2
- package/dist/{primitives-Dj-qYrUZ.js → primitives-CgvvYKjR.js} +167 -161
- package/dist/primitives-CgvvYKjR.js.map +1 -0
- package/dist/tokens/index.js +2 -2
- package/dist/{tokens-DaF1m6rr.js → tokens-B075JP3Z.js} +7 -2
- package/dist/tokens-B075JP3Z.js.map +1 -0
- package/dist/useNarrowerThan-B1PM32sm.js +21 -0
- package/dist/useNarrowerThan-B1PM32sm.js.map +1 -0
- package/dist/{workbench-4C25n_BY.js → workbench-CHCnYW3G.js} +107 -131
- package/dist/workbench-CHCnYW3G.js.map +1 -0
- package/package.json +5 -3
- package/registry/components.json +68 -13
- package/registry/search.json +9 -0
- package/dist/Dialog-_t9OodCK.js.map +0 -1
- package/dist/patterns-lOWLKH70.js.map +0 -1
- package/dist/primitives-Dj-qYrUZ.js.map +0 -1
- package/dist/tokens-DaF1m6rr.js.map +0 -1
- package/dist/workbench-4C25n_BY.js.map +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { r as e, t } from "./ThemeProvider-BFeldMeE.js";
|
|
2
2
|
import { i as n } from "./PortalProvider-CN_81Fy3.js";
|
|
3
3
|
import { i as r, n as i, r as a, t as o } from "./component-DKy8kjZl.js";
|
|
4
|
-
import { h as s, i as c } from "./Dialog-
|
|
5
|
-
import { RadioGroup as
|
|
6
|
-
import { createElement as
|
|
7
|
-
import { jsx as
|
|
8
|
-
var
|
|
4
|
+
import { h as s, i as c, p as l } from "./Dialog-B9Ub_gMT.js";
|
|
5
|
+
import { RadioGroup as u, Tabs as d } from "radix-ui";
|
|
6
|
+
import { createElement as f, useRef as p } from "react";
|
|
7
|
+
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
8
|
+
var g = {
|
|
9
9
|
root: "rly_ChartLegend-module__root",
|
|
10
10
|
item: "rly_ChartLegend-module__item",
|
|
11
11
|
swatch: "rly_ChartLegend-module__swatch"
|
|
12
|
-
},
|
|
12
|
+
}, _ = (e) => i(g, e), v = [
|
|
13
13
|
1,
|
|
14
14
|
2,
|
|
15
15
|
3,
|
|
@@ -19,34 +19,34 @@ var h = {
|
|
|
19
19
|
7,
|
|
20
20
|
8,
|
|
21
21
|
"other"
|
|
22
|
-
],
|
|
22
|
+
], y = (e) => `var(--rly-color-series-${e})`, b = (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
|
-
},
|
|
29
|
+
}, x = ({ className: e, items: t, label: n, ...i }) => (b(t), t.length === 0 ? null : /* @__PURE__ */ m("ul", {
|
|
30
30
|
...i,
|
|
31
31
|
"aria-label": r(n, "ChartLegend label"),
|
|
32
|
-
className: o(
|
|
32
|
+
className: o(_("root"), e),
|
|
33
33
|
role: "list",
|
|
34
|
-
children: t.map((e) => /* @__PURE__ */
|
|
35
|
-
className:
|
|
36
|
-
children: [/* @__PURE__ */
|
|
34
|
+
children: t.map((e) => /* @__PURE__ */ h("li", {
|
|
35
|
+
className: _("item"),
|
|
36
|
+
children: [/* @__PURE__ */ m("span", {
|
|
37
37
|
"aria-hidden": "true",
|
|
38
|
-
className:
|
|
38
|
+
className: _("swatch"),
|
|
39
39
|
"data-series": String(e.series),
|
|
40
|
-
style: { background:
|
|
40
|
+
style: { background: y(e.series) }
|
|
41
41
|
}), r(e.label, "ChartLegend item label")]
|
|
42
42
|
}, e.id))
|
|
43
|
-
})),
|
|
43
|
+
})), ee = {
|
|
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
|
-
}, S = (e) => i(
|
|
49
|
+
}, S = (e) => i(ee, e), C = a({
|
|
50
50
|
orientation: {
|
|
51
51
|
horizontal: {
|
|
52
52
|
className: S("horizontal"),
|
|
@@ -71,13 +71,13 @@ var h = {
|
|
|
71
71
|
tokens: ["color-border-2"]
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
}),
|
|
74
|
+
}), te = a({
|
|
75
75
|
orientation: "horizontal",
|
|
76
76
|
strength: "subtle"
|
|
77
|
-
}),
|
|
77
|
+
}), ne = ({ className: e, decorative: t = !0, label: n, orientation: i = "horizontal", strength: a = "subtle", ...s }) => {
|
|
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__ */
|
|
80
|
+
return /* @__PURE__ */ m("div", {
|
|
81
81
|
...s,
|
|
82
82
|
"aria-hidden": t ? "true" : void 0,
|
|
83
83
|
"aria-label": c,
|
|
@@ -85,69 +85,69 @@ var h = {
|
|
|
85
85
|
className: o(S("root"), C.orientation[i].className, C.strength[a].className, e),
|
|
86
86
|
role: t ? "presentation" : "separator"
|
|
87
87
|
});
|
|
88
|
-
},
|
|
88
|
+
}, re = {
|
|
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
|
-
},
|
|
95
|
+
}, w = (e) => i(re, e), T = a({ size: {
|
|
96
96
|
default: {
|
|
97
|
-
className:
|
|
97
|
+
className: w("defaultSize"),
|
|
98
98
|
purpose: "A limit beside its numbers",
|
|
99
99
|
tokens: ["space-12", "radius-tag"]
|
|
100
100
|
},
|
|
101
101
|
slim: {
|
|
102
|
-
className:
|
|
102
|
+
className: w("slim"),
|
|
103
103
|
purpose: "A limit inside a dense row",
|
|
104
104
|
tokens: ["space-6", "radius-tag"]
|
|
105
105
|
}
|
|
106
|
-
} }),
|
|
106
|
+
} }), E = a({ size: "default" }), D = (e) => e !== null && Number.isFinite(e) ? e : null, O = (e, t) => {
|
|
107
107
|
if (!Number.isFinite(e)) throw Error(`${t} must be a finite number`);
|
|
108
108
|
return e;
|
|
109
|
-
},
|
|
110
|
-
let n =
|
|
109
|
+
}, k = (e, t) => {
|
|
110
|
+
let n = O(t, "limitTrackTone near"), r = D(e);
|
|
111
111
|
return r === null ? "unknown" : r >= 100 ? "full" : r >= n ? "near" : "ok";
|
|
112
|
-
},
|
|
113
|
-
let f =
|
|
114
|
-
start:
|
|
115
|
-
length:
|
|
112
|
+
}, A = (e) => Math.min(100, Math.max(0, e)), j = ({ className: e, decorative: t = !0, label: n, near: i = 80, projected: a, size: s = E.size, stale: c = !1, value: l, valueText: u, ...d }) => {
|
|
113
|
+
let f = D(l), p = O(i, "LimitTrack near"), g = !t, _ = g ? r(n ?? "", "LimitTrack label") : void 0, v = g ? r(u ?? "", "LimitTrack valueText") : void 0, y = g && f !== null, b = f !== null && a !== void 0 && Number.isFinite(a) && a > f ? {
|
|
114
|
+
start: A(f),
|
|
115
|
+
length: A(a) - A(f)
|
|
116
116
|
} : null;
|
|
117
|
-
return /* @__PURE__ */
|
|
117
|
+
return /* @__PURE__ */ h("span", {
|
|
118
118
|
...d,
|
|
119
119
|
"aria-hidden": g ? void 0 : "true",
|
|
120
120
|
"aria-label": g && !y ? `${_}: ${v}` : _,
|
|
121
121
|
"aria-valuemax": y ? 100 : void 0,
|
|
122
122
|
"aria-valuemin": y ? 0 : void 0,
|
|
123
|
-
"aria-valuenow": y && f !== null ?
|
|
123
|
+
"aria-valuenow": y && f !== null ? A(f) : void 0,
|
|
124
124
|
"aria-valuetext": y ? v : void 0,
|
|
125
|
-
className: o(
|
|
125
|
+
className: o(w("root"), T.size[s].className, e),
|
|
126
126
|
"data-stale": c ? "true" : void 0,
|
|
127
|
-
"data-tone":
|
|
127
|
+
"data-tone": k(f, p),
|
|
128
128
|
role: g ? y ? "meter" : "img" : void 0,
|
|
129
129
|
children: [
|
|
130
|
-
f === null ? null : /* @__PURE__ */
|
|
131
|
-
className:
|
|
130
|
+
f === null ? null : /* @__PURE__ */ m("span", {
|
|
131
|
+
className: w("fill"),
|
|
132
132
|
"data-part": "fill",
|
|
133
|
-
style: { inlineSize: `${
|
|
133
|
+
style: { inlineSize: `${A(f)}%` }
|
|
134
134
|
}),
|
|
135
|
-
b === null ? null : /* @__PURE__ */
|
|
136
|
-
className:
|
|
135
|
+
b === null ? null : /* @__PURE__ */ m("span", {
|
|
136
|
+
className: w("projection"),
|
|
137
137
|
"data-part": "projection",
|
|
138
138
|
style: {
|
|
139
139
|
inlineSize: `${b.length}%`,
|
|
140
140
|
insetInlineStart: `${b.start}%`
|
|
141
141
|
}
|
|
142
142
|
}),
|
|
143
|
-
/* @__PURE__ */
|
|
144
|
-
className:
|
|
143
|
+
/* @__PURE__ */ m("span", {
|
|
144
|
+
className: w("near"),
|
|
145
145
|
"data-part": "near",
|
|
146
|
-
style: { insetInlineStart: `min(${
|
|
146
|
+
style: { insetInlineStart: `min(${A(p)}%, 100% - 1px)` }
|
|
147
147
|
})
|
|
148
148
|
]
|
|
149
149
|
});
|
|
150
|
-
},
|
|
150
|
+
}, M = {
|
|
151
151
|
root: "rly_Notice-module__root",
|
|
152
152
|
neutral: "rly_Notice-module__neutral",
|
|
153
153
|
positive: "rly_Notice-module__positive",
|
|
@@ -158,69 +158,65 @@ var h = {
|
|
|
158
158
|
lead: "rly_Notice-module__lead",
|
|
159
159
|
message: "rly_Notice-module__message",
|
|
160
160
|
action: "rly_Notice-module__action"
|
|
161
|
-
}, N = (e) => i(
|
|
161
|
+
}, N = (e) => i(M, e), P = a({ tone: {
|
|
162
162
|
neutral: {
|
|
163
163
|
className: N("neutral"),
|
|
164
164
|
purpose: "Neutral context",
|
|
165
|
-
tokens: [
|
|
166
|
-
"color-text-2",
|
|
167
|
-
"color-surface-2",
|
|
168
|
-
"color-border-1"
|
|
169
|
-
]
|
|
165
|
+
tokens: ["color-text-2", "color-border-1"]
|
|
170
166
|
},
|
|
171
167
|
positive: {
|
|
172
168
|
className: N("positive"),
|
|
173
169
|
purpose: "Completed outcome",
|
|
174
|
-
tokens: ["color-success-ink"
|
|
170
|
+
tokens: ["color-success-ink"]
|
|
175
171
|
},
|
|
176
172
|
critical: {
|
|
177
173
|
className: N("critical"),
|
|
178
174
|
purpose: "Failure that needs attention",
|
|
179
|
-
tokens: ["color-blocked-ink"
|
|
175
|
+
tokens: ["color-blocked-ink"]
|
|
180
176
|
},
|
|
181
177
|
caution: {
|
|
182
178
|
className: N("caution"),
|
|
183
179
|
purpose: "Limitation or warning",
|
|
184
|
-
tokens: ["color-held-ink"
|
|
180
|
+
tokens: ["color-held-ink"]
|
|
185
181
|
},
|
|
186
182
|
progress: {
|
|
187
183
|
className: N("progress"),
|
|
188
184
|
purpose: "Work in progress",
|
|
189
|
-
tokens: ["color-deploying-ink"
|
|
185
|
+
tokens: ["color-deploying-ink"]
|
|
190
186
|
}
|
|
191
|
-
} }),
|
|
187
|
+
} }), ie = a({ tone: "neutral" }), ae = {
|
|
192
188
|
neutral: void 0,
|
|
193
189
|
positive: "check",
|
|
194
190
|
critical: "alert",
|
|
195
191
|
caution: "clock",
|
|
196
192
|
progress: "loader"
|
|
197
|
-
},
|
|
198
|
-
let l = a ??
|
|
199
|
-
return /* @__PURE__ */
|
|
193
|
+
}, oe = ({ action: e, announce: t = "off", children: r, className: i, icon: a, tone: s = "neutral", ...c }) => {
|
|
194
|
+
let l = a ?? ae[s], u = t === "assertive" ? "alert" : t === "polite" ? "status" : c.role;
|
|
195
|
+
return /* @__PURE__ */ h("div", {
|
|
200
196
|
...c,
|
|
201
197
|
"aria-live": t === "off" ? void 0 : t,
|
|
202
198
|
className: o(N("root"), P.tone[s].className, i),
|
|
203
199
|
role: u,
|
|
204
|
-
children: [/* @__PURE__ */
|
|
200
|
+
children: [/* @__PURE__ */ h("div", {
|
|
205
201
|
className: N("lead"),
|
|
206
|
-
children: [l === void 0 ? null : /* @__PURE__ */
|
|
202
|
+
children: [l === void 0 ? null : /* @__PURE__ */ m("span", {
|
|
207
203
|
"aria-hidden": "true",
|
|
208
204
|
className: N("icon"),
|
|
209
|
-
children: /* @__PURE__ */
|
|
205
|
+
children: /* @__PURE__ */ m(n, {
|
|
210
206
|
decorative: !0,
|
|
211
207
|
name: l,
|
|
212
208
|
size: "small"
|
|
213
209
|
})
|
|
214
|
-
}), /* @__PURE__ */
|
|
210
|
+
}), /* @__PURE__ */ m("div", {
|
|
215
211
|
className: N("message"),
|
|
216
212
|
children: r
|
|
217
213
|
})]
|
|
218
|
-
}), e === void 0 ? null : /* @__PURE__ */
|
|
214
|
+
}), e === void 0 ? null : /* @__PURE__ */ m("div", {
|
|
219
215
|
className: N("action"),
|
|
220
216
|
children: e
|
|
221
217
|
})]
|
|
222
218
|
});
|
|
223
|
-
},
|
|
219
|
+
}, se = {
|
|
224
220
|
root: "rly_Surface-module__root",
|
|
225
221
|
tonePrimary: "rly_Surface-module__tonePrimary",
|
|
226
222
|
toneSecondary: "rly_Surface-module__toneSecondary",
|
|
@@ -231,76 +227,76 @@ var h = {
|
|
|
231
227
|
paddingCompact: "rly_Surface-module__paddingCompact",
|
|
232
228
|
paddingDefault: "rly_Surface-module__paddingDefault",
|
|
233
229
|
paddingSpacious: "rly_Surface-module__paddingSpacious"
|
|
234
|
-
},
|
|
230
|
+
}, F = (e) => i(se, e), I = a({
|
|
235
231
|
tone: {
|
|
236
232
|
primary: {
|
|
237
|
-
className:
|
|
233
|
+
className: F("tonePrimary"),
|
|
238
234
|
purpose: "Primary bordered surface",
|
|
239
235
|
tokens: ["color-surface-1", "color-border-1"]
|
|
240
236
|
},
|
|
241
237
|
secondary: {
|
|
242
|
-
className:
|
|
238
|
+
className: F("toneSecondary"),
|
|
243
239
|
purpose: "Quiet secondary surface",
|
|
244
240
|
tokens: ["color-surface-2"]
|
|
245
241
|
},
|
|
246
242
|
tertiary: {
|
|
247
|
-
className:
|
|
243
|
+
className: F("toneTertiary"),
|
|
248
244
|
purpose: "Inset tertiary surface",
|
|
249
245
|
tokens: ["color-surface-3"]
|
|
250
246
|
}
|
|
251
247
|
},
|
|
252
248
|
form: {
|
|
253
249
|
card: {
|
|
254
|
-
className:
|
|
250
|
+
className: F("shapeCard"),
|
|
255
251
|
purpose: "Standard card geometry",
|
|
256
252
|
tokens: ["radius-control"]
|
|
257
253
|
},
|
|
258
254
|
grouped: {
|
|
259
|
-
className:
|
|
255
|
+
className: F("shapeGrouped"),
|
|
260
256
|
purpose: "Grouped content geometry",
|
|
261
257
|
tokens: ["radius-group"]
|
|
262
258
|
}
|
|
263
259
|
},
|
|
264
260
|
padding: {
|
|
265
261
|
none: {
|
|
266
|
-
className:
|
|
262
|
+
className: F("paddingNone"),
|
|
267
263
|
purpose: "Caller-owned internal layout",
|
|
268
264
|
tokens: ["space-0"]
|
|
269
265
|
},
|
|
270
266
|
compact: {
|
|
271
|
-
className:
|
|
267
|
+
className: F("paddingCompact"),
|
|
272
268
|
purpose: "Dense supporting content",
|
|
273
269
|
tokens: ["space-16"]
|
|
274
270
|
},
|
|
275
271
|
default: {
|
|
276
|
-
className:
|
|
272
|
+
className: F("paddingDefault"),
|
|
277
273
|
purpose: "Standard content",
|
|
278
274
|
tokens: ["space-24"]
|
|
279
275
|
},
|
|
280
276
|
spacious: {
|
|
281
|
-
className:
|
|
277
|
+
className: F("paddingSpacious"),
|
|
282
278
|
purpose: "Prominent grouped content",
|
|
283
279
|
tokens: ["space-32"]
|
|
284
280
|
}
|
|
285
281
|
}
|
|
286
|
-
}),
|
|
282
|
+
}), ce = a({
|
|
287
283
|
tone: "primary",
|
|
288
284
|
form: "card",
|
|
289
285
|
padding: "default"
|
|
290
|
-
}),
|
|
286
|
+
}), L = ({ as: e, children: t, className: n, form: r = "card", padding: i = "default", ref: a, tone: s = "primary", ...c }) => f(e ?? "div", {
|
|
291
287
|
...c,
|
|
292
|
-
className: o(
|
|
288
|
+
className: o(F("root"), I.tone[s].className, I.form[r].className, I.padding[i].className, n),
|
|
293
289
|
ref: a
|
|
294
|
-
}, t),
|
|
290
|
+
}, t), R = {
|
|
295
291
|
root: "rly_Tabs-module__root",
|
|
296
292
|
list: "rly_Tabs-module__list",
|
|
297
293
|
trigger: "rly_Tabs-module__trigger",
|
|
298
294
|
defaultSize: "rly_Tabs-module__defaultSize",
|
|
299
295
|
large: "rly_Tabs-module__large",
|
|
300
296
|
panel: "rly_Tabs-module__panel"
|
|
301
|
-
},
|
|
297
|
+
}, z = (e) => i(R, e), B = a({ size: {
|
|
302
298
|
default: {
|
|
303
|
-
className:
|
|
299
|
+
className: z("defaultSize"),
|
|
304
300
|
purpose: "Standard section navigation",
|
|
305
301
|
tokens: [
|
|
306
302
|
"type-label",
|
|
@@ -309,11 +305,11 @@ var h = {
|
|
|
309
305
|
]
|
|
310
306
|
},
|
|
311
307
|
large: {
|
|
312
|
-
className:
|
|
308
|
+
className: z("large"),
|
|
313
309
|
purpose: "Prominent page-level navigation",
|
|
314
310
|
tokens: ["type-body", "space-48"]
|
|
315
311
|
}
|
|
316
|
-
} }),
|
|
312
|
+
} }), V = a({ size: "default" }), H = (e) => {
|
|
317
313
|
if (e.length === 0) throw Error("Tabs items must contain at least one enabled tab");
|
|
318
314
|
let t = /* @__PURE__ */ new Set(), n;
|
|
319
315
|
for (let i of e) {
|
|
@@ -323,43 +319,43 @@ var h = {
|
|
|
323
319
|
}
|
|
324
320
|
if (n === void 0) throw Error("Tabs items must contain at least one enabled tab");
|
|
325
321
|
return n;
|
|
326
|
-
},
|
|
327
|
-
let g = r(e, "Tabs aria-label"), _ =
|
|
322
|
+
}, U = ({ "aria-label": e, className: t, defaultValue: n, direction: i, items: a, onValueChange: s, ref: c, size: l = "default", value: u, ...p }) => {
|
|
323
|
+
let g = r(e, "Tabs aria-label"), _ = H(a), v = u ?? n ?? _.value, y = a.find((e) => e.value === v);
|
|
328
324
|
if (y === void 0 || y.disabled) throw Error(`Tabs selected value must identify an enabled tab: ${v}`);
|
|
329
|
-
let b =
|
|
325
|
+
let b = u === void 0 ? s === void 0 ? { defaultValue: v } : {
|
|
330
326
|
defaultValue: v,
|
|
331
327
|
onValueChange: s
|
|
332
328
|
} : {
|
|
333
329
|
onValueChange: s,
|
|
334
|
-
value:
|
|
330
|
+
value: u
|
|
335
331
|
}, x = i === void 0 ? {} : { dir: i };
|
|
336
|
-
return /* @__PURE__ */
|
|
337
|
-
...
|
|
332
|
+
return /* @__PURE__ */ h(d.Root, {
|
|
333
|
+
...p,
|
|
338
334
|
...b,
|
|
339
335
|
...x,
|
|
340
336
|
activationMode: "automatic",
|
|
341
|
-
className: o(
|
|
337
|
+
className: o(z("root"), B.size[l].className, t),
|
|
342
338
|
orientation: "horizontal",
|
|
343
339
|
ref: c,
|
|
344
|
-
children: [/* @__PURE__ */
|
|
340
|
+
children: [/* @__PURE__ */ m(d.List, {
|
|
345
341
|
"aria-label": g,
|
|
346
|
-
className:
|
|
342
|
+
className: z("list"),
|
|
347
343
|
loop: !0,
|
|
348
|
-
children: a.map((e) => /* @__PURE__ */
|
|
349
|
-
className:
|
|
344
|
+
children: a.map((e) => /* @__PURE__ */ m(d.Trigger, {
|
|
345
|
+
className: z("trigger"),
|
|
350
346
|
"data-tab-value": e.value,
|
|
351
347
|
disabled: e.disabled,
|
|
352
348
|
value: e.value,
|
|
353
349
|
children: e.label
|
|
354
350
|
}, e.value))
|
|
355
|
-
}), a.map((e) => /* @__PURE__ */ d
|
|
356
|
-
className:
|
|
351
|
+
}), a.map((e) => /* @__PURE__ */ f(d.Content, {
|
|
352
|
+
className: z("panel"),
|
|
357
353
|
...e.forceMount === void 0 ? {} : { forceMount: e.forceMount },
|
|
358
354
|
key: e.value,
|
|
359
355
|
value: e.value
|
|
360
356
|
}, e.content))]
|
|
361
357
|
});
|
|
362
|
-
},
|
|
358
|
+
}, W = {
|
|
363
359
|
root: "rly_Text-module__root",
|
|
364
360
|
verdict: "rly_Text-module__verdict",
|
|
365
361
|
pageTitle: "rly_Text-module__pageTitle",
|
|
@@ -374,139 +370,149 @@ var h = {
|
|
|
374
370
|
toneSecondary: "rly_Text-module__toneSecondary",
|
|
375
371
|
toneTertiary: "rly_Text-module__toneTertiary",
|
|
376
372
|
toneInherit: "rly_Text-module__toneInherit"
|
|
377
|
-
},
|
|
373
|
+
}, G = (e) => i(W, e), K = a({
|
|
378
374
|
variant: {
|
|
379
375
|
verdict: {
|
|
380
|
-
className:
|
|
376
|
+
className: G("verdict"),
|
|
381
377
|
purpose: "One restrained verdict thesis",
|
|
382
378
|
tokens: ["type-verdict"]
|
|
383
379
|
},
|
|
384
380
|
"page-title": {
|
|
385
|
-
className:
|
|
381
|
+
className: G("pageTitle"),
|
|
386
382
|
purpose: "Primary page title",
|
|
387
383
|
tokens: ["type-page-title"]
|
|
388
384
|
},
|
|
389
385
|
"section-title": {
|
|
390
|
-
className:
|
|
386
|
+
className: G("sectionTitle"),
|
|
391
387
|
purpose: "Section heading",
|
|
392
388
|
tokens: ["type-section-title"]
|
|
393
389
|
},
|
|
394
390
|
"card-title": {
|
|
395
|
-
className:
|
|
391
|
+
className: G("cardTitle"),
|
|
396
392
|
purpose: "Card or panel heading",
|
|
397
393
|
tokens: ["type-card-title"]
|
|
398
394
|
},
|
|
399
395
|
"body-large": {
|
|
400
|
-
className:
|
|
396
|
+
className: G("bodyLarge"),
|
|
401
397
|
purpose: "Leading explanatory copy",
|
|
402
398
|
tokens: ["type-body-large"]
|
|
403
399
|
},
|
|
404
400
|
body: {
|
|
405
|
-
className:
|
|
401
|
+
className: G("body"),
|
|
406
402
|
purpose: "Default interface copy",
|
|
407
403
|
tokens: ["type-body"]
|
|
408
404
|
},
|
|
409
405
|
label: {
|
|
410
|
-
className:
|
|
406
|
+
className: G("label"),
|
|
411
407
|
purpose: "Control and metadata labels",
|
|
412
408
|
tokens: ["type-label"]
|
|
413
409
|
},
|
|
414
410
|
meta: {
|
|
415
|
-
className:
|
|
411
|
+
className: G("meta"),
|
|
416
412
|
purpose: "Supporting metadata",
|
|
417
413
|
tokens: ["type-meta"]
|
|
418
414
|
},
|
|
419
415
|
code: {
|
|
420
|
-
className:
|
|
416
|
+
className: G("code"),
|
|
421
417
|
purpose: "Code and tabular data",
|
|
422
418
|
tokens: ["type-code"]
|
|
423
419
|
}
|
|
424
420
|
},
|
|
425
421
|
tone: {
|
|
426
422
|
primary: {
|
|
427
|
-
className:
|
|
423
|
+
className: G("tonePrimary"),
|
|
428
424
|
purpose: "Primary readable text",
|
|
429
425
|
tokens: ["color-text-1"]
|
|
430
426
|
},
|
|
431
427
|
secondary: {
|
|
432
|
-
className:
|
|
428
|
+
className: G("toneSecondary"),
|
|
433
429
|
purpose: "Supporting text",
|
|
434
430
|
tokens: ["color-text-2"]
|
|
435
431
|
},
|
|
436
432
|
tertiary: {
|
|
437
|
-
className:
|
|
433
|
+
className: G("toneTertiary"),
|
|
438
434
|
purpose: "Restricted tertiary text",
|
|
439
435
|
tokens: ["color-text-3"]
|
|
440
436
|
},
|
|
441
437
|
inherit: {
|
|
442
|
-
className:
|
|
438
|
+
className: G("toneInherit"),
|
|
443
439
|
purpose: "Inherit semantic context",
|
|
444
440
|
tokens: []
|
|
445
441
|
}
|
|
446
442
|
}
|
|
447
|
-
}),
|
|
443
|
+
}), q = a({
|
|
448
444
|
variant: "body",
|
|
449
445
|
tone: "primary"
|
|
450
|
-
}),
|
|
446
|
+
}), le = (e) => e === "code" ? "code" : e === "verdict" ? "p" : e === "label" || e === "meta" ? "span" : "p", ue = ({ as: e, children: t, className: n, ref: r, tone: i = q.tone, variant: a = q.variant, ...s }) => f(e ?? le(a), {
|
|
451
447
|
...s,
|
|
452
|
-
className: o(
|
|
448
|
+
className: o(G("root"), K.variant[a].className, K.tone[i].className, n),
|
|
453
449
|
ref: r
|
|
454
|
-
}, t),
|
|
450
|
+
}, t), de = { intrinsic: "rly_ThemeSelect-module__intrinsic" }, fe = {
|
|
455
451
|
system: "System",
|
|
456
452
|
light: "Light",
|
|
457
453
|
dark: "Dark"
|
|
458
|
-
},
|
|
459
|
-
label:
|
|
454
|
+
}, J = t.map((e) => ({
|
|
455
|
+
label: fe[e],
|
|
460
456
|
value: e
|
|
461
|
-
})),
|
|
462
|
-
let
|
|
457
|
+
})), pe = ({ className: t, label: n = "Appearance", labelVisibility: r = "visible", onValueChange: a, size: u = l.size, value: d }) => {
|
|
458
|
+
let f = (t) => {
|
|
463
459
|
let n = e(t);
|
|
464
460
|
n !== void 0 && a(n);
|
|
465
461
|
};
|
|
466
|
-
return r === "hidden" ? /* @__PURE__ */
|
|
462
|
+
return r === "hidden" ? /* @__PURE__ */ m(s, {
|
|
467
463
|
"aria-label": n,
|
|
468
|
-
className: o(i(
|
|
469
|
-
onValueChange:
|
|
470
|
-
options:
|
|
471
|
-
size:
|
|
472
|
-
value:
|
|
473
|
-
}) : /* @__PURE__ */
|
|
464
|
+
className: o(i(de, "intrinsic"), t),
|
|
465
|
+
onValueChange: f,
|
|
466
|
+
options: J,
|
|
467
|
+
size: u,
|
|
468
|
+
value: d
|
|
469
|
+
}) : /* @__PURE__ */ m(c, {
|
|
474
470
|
...t === void 0 ? {} : { className: t },
|
|
475
471
|
label: n,
|
|
476
|
-
size:
|
|
477
|
-
children: (e) => /* @__PURE__ */
|
|
472
|
+
size: u,
|
|
473
|
+
children: (e) => /* @__PURE__ */ m(s, {
|
|
478
474
|
...e,
|
|
479
|
-
onValueChange:
|
|
480
|
-
options:
|
|
481
|
-
size:
|
|
482
|
-
value:
|
|
475
|
+
onValueChange: f,
|
|
476
|
+
options: J,
|
|
477
|
+
size: u,
|
|
478
|
+
value: d
|
|
483
479
|
})
|
|
484
480
|
});
|
|
485
|
-
},
|
|
481
|
+
}, me = {
|
|
486
482
|
root: "rly_ToggleGroup-module__root",
|
|
487
483
|
item: "rly_ToggleGroup-module__item",
|
|
488
|
-
|
|
489
|
-
compact: "rly_ToggleGroup-module__compact"
|
|
490
|
-
|
|
484
|
+
dense: "rly_ToggleGroup-module__dense",
|
|
485
|
+
compact: "rly_ToggleGroup-module__compact",
|
|
486
|
+
defaultSize: "rly_ToggleGroup-module__defaultSize"
|
|
487
|
+
}, Y = (e) => i(me, e), X = a({ size: {
|
|
488
|
+
dense: {
|
|
489
|
+
className: Y("dense"),
|
|
490
|
+
purpose: "Tool-density choice beside dense controls; the default",
|
|
491
|
+
tokens: [
|
|
492
|
+
"control-height-dense",
|
|
493
|
+
"type-meta",
|
|
494
|
+
"radius-tag"
|
|
495
|
+
]
|
|
496
|
+
},
|
|
491
497
|
compact: {
|
|
492
|
-
className:
|
|
493
|
-
purpose: "
|
|
498
|
+
className: Y("compact"),
|
|
499
|
+
purpose: "Filter rows beside compact controls",
|
|
494
500
|
tokens: [
|
|
501
|
+
"control-height-compact",
|
|
495
502
|
"type-meta",
|
|
496
|
-
"
|
|
497
|
-
"space-2"
|
|
503
|
+
"radius-tag"
|
|
498
504
|
]
|
|
499
505
|
},
|
|
500
506
|
default: {
|
|
501
|
-
className:
|
|
507
|
+
className: Y("defaultSize"),
|
|
502
508
|
purpose: "Standard view and filter choices",
|
|
503
509
|
tokens: [
|
|
510
|
+
"control-height-default",
|
|
504
511
|
"type-label",
|
|
505
|
-
"
|
|
506
|
-
"space-2"
|
|
512
|
+
"radius-tag"
|
|
507
513
|
]
|
|
508
514
|
}
|
|
509
|
-
} }),
|
|
515
|
+
} }), Z = a({ size: "dense" }), Q = (e) => e === "ArrowLeft" || e === "ArrowUp" ? -1 : e === "ArrowRight" || e === "ArrowDown" ? 1 : null, he = (e, t) => {
|
|
510
516
|
let n = /* @__PURE__ */ new Set();
|
|
511
517
|
for (let t of e) {
|
|
512
518
|
let e = r(t.value, "ToggleGroup item value");
|
|
@@ -514,62 +520,62 @@ var h = {
|
|
|
514
520
|
n.add(e);
|
|
515
521
|
}
|
|
516
522
|
if (!n.has(t)) throw Error(`ToggleGroup value must identify an option: ${t}`);
|
|
517
|
-
},
|
|
523
|
+
}, ge = ({ "aria-label": e, className: t, items: n, onValueChange: i, ref: a, size: s = Z.size, value: c, ...l }) => {
|
|
518
524
|
let d = r(e, "ToggleGroup aria-label");
|
|
519
|
-
|
|
520
|
-
let
|
|
521
|
-
let r =
|
|
525
|
+
he(n, c);
|
|
526
|
+
let f = p(/* @__PURE__ */ new Map()), h = (e, t) => {
|
|
527
|
+
let r = Q(e.key);
|
|
522
528
|
if (r === null) return;
|
|
523
529
|
e.preventDefault();
|
|
524
530
|
let a = n[(t + r + n.length) % n.length];
|
|
525
|
-
a !== void 0 && (a.value !== c && i(a.value),
|
|
531
|
+
a !== void 0 && (a.value !== c && i(a.value), f.current.get(a.value)?.focus());
|
|
526
532
|
};
|
|
527
|
-
return /* @__PURE__ */
|
|
528
|
-
...
|
|
533
|
+
return /* @__PURE__ */ m(u.Root, {
|
|
534
|
+
...l,
|
|
529
535
|
"aria-label": d,
|
|
530
|
-
className: o(
|
|
536
|
+
className: o(Y("root"), X.size[s].className, t),
|
|
531
537
|
loop: !0,
|
|
532
538
|
onValueChange: i,
|
|
533
539
|
orientation: "horizontal",
|
|
534
540
|
ref: a,
|
|
535
541
|
value: c,
|
|
536
|
-
children: n.map((e, t) => /* @__PURE__ */
|
|
537
|
-
className:
|
|
542
|
+
children: n.map((e, t) => /* @__PURE__ */ m(u.Item, {
|
|
543
|
+
className: Y("item"),
|
|
538
544
|
onKeyDown: (e) => h(e, t),
|
|
539
545
|
ref: (t) => {
|
|
540
|
-
t === null ?
|
|
546
|
+
t === null ? f.current.delete(e.value) : f.current.set(e.value, t);
|
|
541
547
|
},
|
|
542
548
|
value: e.value,
|
|
543
549
|
children: e.label
|
|
544
550
|
}, e.value))
|
|
545
551
|
});
|
|
546
|
-
},
|
|
552
|
+
}, _e = {
|
|
547
553
|
root: "rly_TrackKey-module__root",
|
|
548
554
|
item: "rly_TrackKey-module__item",
|
|
549
555
|
near: "rly_TrackKey-module__near",
|
|
550
556
|
projected: "rly_TrackKey-module__projected",
|
|
551
557
|
stale: "rly_TrackKey-module__stale",
|
|
552
558
|
unknown: "rly_TrackKey-module__unknown"
|
|
553
|
-
}, $ = (e) => i(
|
|
559
|
+
}, $ = (e) => i(_e, e), ve = [
|
|
554
560
|
"near",
|
|
555
561
|
"projected",
|
|
556
562
|
"stale",
|
|
557
563
|
"unknown"
|
|
558
|
-
],
|
|
564
|
+
], ye = ({ className: e, items: t, label: n, ...i }) => {
|
|
559
565
|
if (t.length === 0) throw Error("TrackKey needs at least one mark to explain");
|
|
560
566
|
let a = /* @__PURE__ */ new Set();
|
|
561
567
|
for (let e of t) {
|
|
562
568
|
if (a.has(e.mark)) throw Error(`TrackKey marks must be unique: ${e.mark}`);
|
|
563
569
|
a.add(e.mark);
|
|
564
570
|
}
|
|
565
|
-
return /* @__PURE__ */
|
|
571
|
+
return /* @__PURE__ */ m("ul", {
|
|
566
572
|
...i,
|
|
567
573
|
"aria-label": r(n, "TrackKey label"),
|
|
568
574
|
className: o($("root"), e),
|
|
569
575
|
role: "list",
|
|
570
|
-
children: t.map((e) => /* @__PURE__ */
|
|
576
|
+
children: t.map((e) => /* @__PURE__ */ h("li", {
|
|
571
577
|
className: $("item"),
|
|
572
|
-
children: [/* @__PURE__ */
|
|
578
|
+
children: [/* @__PURE__ */ m("span", {
|
|
573
579
|
"aria-hidden": "true",
|
|
574
580
|
className: $(e.mark),
|
|
575
581
|
"data-mark": e.mark
|
|
@@ -578,6 +584,6 @@ var h = {
|
|
|
578
584
|
});
|
|
579
585
|
};
|
|
580
586
|
//#endregion
|
|
581
|
-
export {
|
|
587
|
+
export { ne as C, v as D, x as E, y as O, k as S, C as T, ie as _, ge as a, E as b, K as c, B as d, U as f, oe as g, L as h, X as i, ue as l, I as m, ye as n, pe as o, ce as p, Z as r, q as s, ve as t, V as u, P as v, te as w, T as x, j as y };
|
|
582
588
|
|
|
583
|
-
//# sourceMappingURL=primitives-
|
|
589
|
+
//# sourceMappingURL=primitives-CgvvYKjR.js.map
|