@knpkv/rly 0.8.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 +49 -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/DecisionBar.d.ts +68 -0
- package/dist/dts/patterns/DecisionBar.d.ts.map +1 -0
- package/dist/dts/patterns/FreshnessStamp.d.ts.map +1 -1
- package/dist/dts/patterns/Hero.d.ts +69 -0
- package/dist/dts/patterns/Hero.d.ts.map +1 -0
- package/dist/dts/patterns/Region.d.ts +56 -0
- package/dist/dts/patterns/Region.d.ts.map +1 -0
- package/dist/dts/patterns/ReleaseRelay.d.ts.map +1 -1
- package/dist/dts/patterns/StageRail.d.ts +11 -1
- package/dist/dts/patterns/StageRail.d.ts.map +1 -1
- package/dist/dts/patterns/TimelineRow.d.ts +25 -0
- package/dist/dts/patterns/TimelineRow.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/patterns/index.d.ts +8 -2
- package/dist/dts/patterns/index.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/ChartLegend.d.ts +23 -0
- package/dist/dts/primitives/ChartLegend.d.ts.map +1 -0
- 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/LimitTrack.d.ts +62 -0
- package/dist/dts/primitives/LimitTrack.d.ts.map +1 -0
- 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/primitives/TrackKey.d.ts +20 -0
- package/dist/dts/primitives/TrackKey.d.ts.map +1 -0
- package/dist/dts/primitives/index.d.ts +6 -0
- package/dist/dts/primitives/index.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 +3 -1
- package/dist/dts/tokens/semantic-tokens.d.ts.map +1 -1
- package/dist/generated-tokens.css +55 -6
- package/dist/index.js +5 -5
- package/dist/patterns/index.js +2 -2
- package/dist/{patterns-LJ8Y44f2.js → patterns-DTsU3pFo.js} +1251 -954
- package/dist/patterns-DTsU3pFo.js.map +1 -0
- package/dist/primitives/index.js +3 -3
- package/dist/primitives-CgvvYKjR.js +589 -0
- package/dist/primitives-CgvvYKjR.js.map +1 -0
- package/dist/tokens/index.js +2 -2
- package/dist/{tokens-CjK9bxo7.js → tokens-B075JP3Z.js} +8 -3
- 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 +707 -25
- package/registry/search.json +172 -2
- package/dist/Dialog-_t9OodCK.js.map +0 -1
- package/dist/patterns-LJ8Y44f2.js.map +0 -1
- package/dist/primitives-CjQX0eVM.js +0 -453
- package/dist/primitives-CjQX0eVM.js.map +0 -1
- package/dist/tokens-CjK9bxo7.js.map +0 -1
- package/dist/workbench-4C25n_BY.js.map +0 -1
package/README.md
CHANGED
|
@@ -160,10 +160,18 @@ keep the notice mounted and swap its children, because a status region reliably
|
|
|
160
160
|
announces changes, not its own appearance. An `announce="assertive"` alert may
|
|
161
161
|
announce as soon as it is inserted.
|
|
162
162
|
|
|
163
|
+
Controls default to tool density. `Button`, `IconButton`, `Select`, and the
|
|
164
|
+
`Field` control share `--rly-control-height-{dense,compact,default,principal}`
|
|
165
|
+
(32/40/48/56px), so mixed controls in one toolbar line up. `dense` is the
|
|
166
|
+
default and sizes a button to its text with a small radius; on coarse pointers
|
|
167
|
+
the dense and compact heights rise to a 44px touch target. Pass
|
|
168
|
+
`size="default"` or `"principal"` where an action needs more presence.
|
|
169
|
+
|
|
163
170
|
`ToggleGroup` chooses one of a few peer options, such as a range or a measure,
|
|
164
171
|
and is always controlled: exactly one option is on, pressing it again changes
|
|
165
172
|
nothing, and arrow keys move to the next option and choose it. It renders a
|
|
166
|
-
named `radiogroup
|
|
173
|
+
named `radiogroup`. It is dense by default, an outlined row as tall as the dense
|
|
174
|
+
controls beside it; `compact` and `default` follow the same control heights.
|
|
167
175
|
|
|
168
176
|
`Tabs` items may set `forceMount: true` to retain inactive content, for example
|
|
169
177
|
when printing both panels. It defaults to unmounting inactive content. Callers
|
|
@@ -177,6 +185,44 @@ state, contain and restore focus, lock document scrolling, and become
|
|
|
177
185
|
full-screen at compact widths. Titles are always visible and required, while
|
|
178
186
|
motion is governed by the central theme tokens.
|
|
179
187
|
|
|
188
|
+
## Limits and chart keys
|
|
189
|
+
|
|
190
|
+
`LimitTrack` shows how full a limit is on a 0–100% track: the fill is the latest
|
|
191
|
+
reading, a two-tone hairline marks the near threshold (80% unless `near` says otherwise),
|
|
192
|
+
a dotted extension shows a `projected` level the application computed, and a
|
|
193
|
+
`stale` reading is hatched. Rly derives only the tone (`limitTrackTone`); it never
|
|
194
|
+
estimates a projection. The track is decorative by default because the number sits
|
|
195
|
+
beside it, so that text must also carry the age and the projection ("61%, old
|
|
196
|
+
reading", "84%, about 103% at reset"). A non-finite `value` is drawn as no reading,
|
|
197
|
+
and a non-finite `near` throws. No reading draws a faint full-width hatch in a dashed edge, so it
|
|
198
|
+
never reads as 0%. Under forced colours the track keeps a `CanvasText` edge. Pass `decorative={false}` with a `label` and the caller's `valueText`
|
|
199
|
+
to expose it as a meter instead. With `value={null}`, it is a named image whose
|
|
200
|
+
accessible label combines `label` and `valueText`, without a numeric range.
|
|
201
|
+
|
|
202
|
+
`TrackKey` explains the marks the tracks draw, listing only the marks in use.
|
|
203
|
+
`ChartLegend` says which colour is which series, with the swatch before each label.
|
|
204
|
+
Series colours are the tokens `--rly-color-series-1` to `-8` plus
|
|
205
|
+
`--rly-color-series-other` for folded series. Use `rlySeriesColor(series)` in SVG
|
|
206
|
+
fills, and keep an id on the same slot while it is visible. Colour is never the only
|
|
207
|
+
carrier: every chart ships a labelled key and a table equivalent, and forced-colours
|
|
208
|
+
mode collapses the series to `CanvasText`.
|
|
209
|
+
|
|
210
|
+
```tsx
|
|
211
|
+
import { ChartLegend, LimitTrack, TrackKey } from "@knpkv/rly/primitives"
|
|
212
|
+
|
|
213
|
+
<p>
|
|
214
|
+
Weekly <LimitTrack projected={103} value={84} /> 84%, about 103% at reset
|
|
215
|
+
</p>
|
|
216
|
+
<TrackKey
|
|
217
|
+
label="What the track marks mean"
|
|
218
|
+
items={[
|
|
219
|
+
{ mark: "near", label: "80%, near the limit" },
|
|
220
|
+
{ mark: "projected", label: "Where it is heading at reset" }
|
|
221
|
+
]}
|
|
222
|
+
/>
|
|
223
|
+
<ChartLegend label="Bookings by colour" items={[{ id: "b1", label: "RLY-142", series: 1 }]} />
|
|
224
|
+
```
|
|
225
|
+
|
|
180
226
|
## Provenance and collaborators
|
|
181
227
|
|
|
182
228
|
The first product patterns keep source, freshness, and human responsibility as
|
|
@@ -247,8 +293,8 @@ spark, stack, and compass. Reordering or replacing that map is a breaking
|
|
|
247
293
|
identity change rather than a cosmetic icon update.
|
|
248
294
|
|
|
249
295
|
`Verdict` stays deliberately large and neutral. The caller supplies its exact
|
|
250
|
-
wording, reason, and semantic tone; tone affects only the redundant icon
|
|
251
|
-
|
|
296
|
+
wording, reason, and semantic tone; tone affects only the redundant icon and
|
|
297
|
+
the reason panel's tint and even border. Rly does not infer readiness from any
|
|
252
298
|
of those values.
|
|
253
299
|
|
|
254
300
|
## Delivery stages and relationships
|
|
@@ -274,11 +274,12 @@ var w = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new WeakMap(), E = m(
|
|
|
274
274
|
primary: "rly_Button-module__primary",
|
|
275
275
|
secondary: "rly_Button-module__secondary",
|
|
276
276
|
quiet: "rly_Button-module__quiet",
|
|
277
|
+
dense: "rly_Button-module__dense",
|
|
278
|
+
content: "rly_Button-module__content",
|
|
277
279
|
compact: "rly_Button-module__compact",
|
|
278
280
|
defaultSize: "rly_Button-module__defaultSize",
|
|
279
281
|
principal: "rly_Button-module__principal",
|
|
280
282
|
stretch: "rly_Button-module__stretch",
|
|
281
|
-
content: "rly_Button-module__content",
|
|
282
283
|
label: "rly_Button-module__label",
|
|
283
284
|
loadingContent: "rly_Button-module__loadingContent",
|
|
284
285
|
loader: "rly_Button-module__loader"
|
|
@@ -301,26 +302,31 @@ var w = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new WeakMap(), E = m(
|
|
|
301
302
|
}
|
|
302
303
|
},
|
|
303
304
|
size: {
|
|
305
|
+
dense: {
|
|
306
|
+
className: z("dense"),
|
|
307
|
+
purpose: "Tool-density action sized to its text; the default",
|
|
308
|
+
tokens: ["control-height-dense", "radius-tag"]
|
|
309
|
+
},
|
|
304
310
|
compact: {
|
|
305
311
|
className: z("compact"),
|
|
306
312
|
purpose: "Dense text action",
|
|
307
|
-
tokens: ["
|
|
313
|
+
tokens: ["control-height-compact"]
|
|
308
314
|
},
|
|
309
315
|
default: {
|
|
310
316
|
className: z("defaultSize"),
|
|
311
317
|
purpose: "Standard action",
|
|
312
|
-
tokens: ["
|
|
318
|
+
tokens: ["control-height-default"]
|
|
313
319
|
},
|
|
314
320
|
principal: {
|
|
315
321
|
className: z("principal"),
|
|
316
322
|
purpose: "Prominent consequential action",
|
|
317
|
-
tokens: ["
|
|
323
|
+
tokens: ["control-height-principal", "space-8"]
|
|
318
324
|
}
|
|
319
325
|
}
|
|
320
326
|
}), me = c({
|
|
321
327
|
variant: "secondary",
|
|
322
|
-
size: "
|
|
323
|
-
}), V = ({ "aria-label": t, "aria-labelledby": n, children: r, className: i, disabled: o, leadingIcon: s, loading: c = !1, size: d =
|
|
328
|
+
size: "dense"
|
|
329
|
+
}), V = ({ "aria-label": t, "aria-labelledby": n, children: r, className: i, disabled: o, leadingIcon: s, loading: c = !1, size: d = me.size, stretch: f = !1, trailingIcon: p, type: m, variant: h = "secondary", ...g }) => {
|
|
324
330
|
if (!l(r) && !a(r) || a(r) && r.trim().length === 0) throw Error("Button children must contain visible content");
|
|
325
331
|
return /* @__PURE__ */ C("button", {
|
|
326
332
|
...g,
|
|
@@ -373,27 +379,27 @@ var w = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new WeakMap(), E = m(
|
|
|
373
379
|
neutral: {
|
|
374
380
|
className: H("neutral"),
|
|
375
381
|
purpose: "Neutral or unavailable state",
|
|
376
|
-
tokens: ["color-text-2"
|
|
382
|
+
tokens: ["color-text-2"]
|
|
377
383
|
},
|
|
378
384
|
positive: {
|
|
379
385
|
className: H("positive"),
|
|
380
386
|
purpose: "Positive state",
|
|
381
|
-
tokens: ["color-success-ink"
|
|
387
|
+
tokens: ["color-success-ink"]
|
|
382
388
|
},
|
|
383
389
|
critical: {
|
|
384
390
|
className: H("critical"),
|
|
385
391
|
purpose: "Critical state",
|
|
386
|
-
tokens: ["color-blocked-ink"
|
|
392
|
+
tokens: ["color-blocked-ink"]
|
|
387
393
|
},
|
|
388
394
|
caution: {
|
|
389
395
|
className: H("caution"),
|
|
390
396
|
purpose: "Caution state",
|
|
391
|
-
tokens: ["color-held-ink"
|
|
397
|
+
tokens: ["color-held-ink"]
|
|
392
398
|
},
|
|
393
399
|
progress: {
|
|
394
400
|
className: H("progress"),
|
|
395
401
|
purpose: "Work in progress",
|
|
396
|
-
tokens: ["color-deploying-ink"
|
|
402
|
+
tokens: ["color-deploying-ink"]
|
|
397
403
|
}
|
|
398
404
|
},
|
|
399
405
|
size: {
|
|
@@ -420,7 +426,7 @@ var w = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new WeakMap(), E = m(
|
|
|
420
426
|
}, ve = ({ className: t, icon: n, label: r, size: a = "default", tone: o = "neutral", ...s }) => /* @__PURE__ */ C("span", {
|
|
421
427
|
...s,
|
|
422
428
|
className: u(H("root"), U.tone[o].className, U.size[a].className, t),
|
|
423
|
-
children: [/* @__PURE__ */ S(e, {
|
|
429
|
+
children: [n === void 0 && o === "neutral" ? null : /* @__PURE__ */ S(e, {
|
|
424
430
|
decorative: !0,
|
|
425
431
|
name: n ?? _e[o],
|
|
426
432
|
size: "small"
|
|
@@ -498,6 +504,7 @@ var w = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new WeakMap(), E = m(
|
|
|
498
504
|
primary: "rly_IconButton-module__primary",
|
|
499
505
|
secondary: "rly_IconButton-module__secondary",
|
|
500
506
|
quiet: "rly_IconButton-module__quiet",
|
|
507
|
+
dense: "rly_IconButton-module__dense",
|
|
501
508
|
compact: "rly_IconButton-module__compact",
|
|
502
509
|
defaultSize: "rly_IconButton-module__defaultSize",
|
|
503
510
|
principal: "rly_IconButton-module__principal"
|
|
@@ -520,26 +527,31 @@ var w = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new WeakMap(), E = m(
|
|
|
520
527
|
}
|
|
521
528
|
},
|
|
522
529
|
size: {
|
|
530
|
+
dense: {
|
|
531
|
+
className: K("dense"),
|
|
532
|
+
purpose: "Tool-density icon target; the default",
|
|
533
|
+
tokens: ["control-height-dense", "radius-tag"]
|
|
534
|
+
},
|
|
523
535
|
compact: {
|
|
524
536
|
className: K("compact"),
|
|
525
537
|
purpose: "Minimum accessible icon target",
|
|
526
|
-
tokens: ["
|
|
538
|
+
tokens: ["control-height-compact"]
|
|
527
539
|
},
|
|
528
540
|
default: {
|
|
529
541
|
className: K("defaultSize"),
|
|
530
542
|
purpose: "Standard icon target",
|
|
531
|
-
tokens: ["
|
|
543
|
+
tokens: ["control-height-default"]
|
|
532
544
|
},
|
|
533
545
|
principal: {
|
|
534
546
|
className: K("principal"),
|
|
535
547
|
purpose: "Prominent icon target",
|
|
536
|
-
tokens: ["
|
|
548
|
+
tokens: ["control-height-principal"]
|
|
537
549
|
}
|
|
538
550
|
}
|
|
539
551
|
}), we = c({
|
|
540
552
|
variant: "secondary",
|
|
541
|
-
size: "
|
|
542
|
-
}), Te = ({ className: t, disabled: n, icon: r, label: a, loading: o = !1, size: s =
|
|
553
|
+
size: "dense"
|
|
554
|
+
}), Te = ({ className: t, disabled: n, icon: r, label: a, loading: o = !1, size: s = we.size, type: c, variant: l = "secondary", ...d }) => /* @__PURE__ */ S("button", {
|
|
543
555
|
...d,
|
|
544
556
|
"aria-busy": o ? "true" : void 0,
|
|
545
557
|
"aria-label": i(a, "IconButton label"),
|
|
@@ -554,6 +566,7 @@ var w = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new WeakMap(), E = m(
|
|
|
554
566
|
})
|
|
555
567
|
}), Ee = /* @__PURE__ */ new WeakSet(), De = (e) => (Ee.add(e), e), Oe = (e) => Ee.has(e), ke = {
|
|
556
568
|
trigger: "rly_Select-module__trigger",
|
|
569
|
+
dense: "rly_Select-module__dense",
|
|
557
570
|
compact: "rly_Select-module__compact",
|
|
558
571
|
defaultSize: "rly_Select-module__defaultSize",
|
|
559
572
|
triggerIcon: "rly_Select-module__triggerIcon",
|
|
@@ -563,17 +576,22 @@ var w = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new WeakMap(), E = m(
|
|
|
563
576
|
itemIndicator: "rly_Select-module__itemIndicator",
|
|
564
577
|
scrollButton: "rly_Select-module__scrollButton"
|
|
565
578
|
}, q = (e) => o(ke, e), Ae = c({ size: {
|
|
579
|
+
dense: {
|
|
580
|
+
className: q("dense"),
|
|
581
|
+
purpose: "Tool-density selection control; the default",
|
|
582
|
+
tokens: ["control-height-dense", "radius-tag"]
|
|
583
|
+
},
|
|
566
584
|
compact: {
|
|
567
585
|
className: q("compact"),
|
|
568
586
|
purpose: "Dense form rows",
|
|
569
|
-
tokens: ["
|
|
587
|
+
tokens: ["control-height-compact", "type-meta"]
|
|
570
588
|
},
|
|
571
589
|
default: {
|
|
572
590
|
className: q("defaultSize"),
|
|
573
591
|
purpose: "Standard selection control",
|
|
574
|
-
tokens: ["
|
|
592
|
+
tokens: ["control-height-default", "type-body"]
|
|
575
593
|
}
|
|
576
|
-
} }), je = c({ size: "
|
|
594
|
+
} }), je = c({ size: "dense" }), Me = (e, t) => {
|
|
577
595
|
if (!t && !e.some((e) => !e.disabled)) throw Error("Select options must contain at least one enabled option");
|
|
578
596
|
let n = /* @__PURE__ */ new Set();
|
|
579
597
|
for (let t of e) {
|
|
@@ -722,7 +740,6 @@ var w = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new WeakMap(), E = m(
|
|
|
722
740
|
critical: "rly_StatePanel-module__critical",
|
|
723
741
|
caution: "rly_StatePanel-module__caution",
|
|
724
742
|
progress: "rly_StatePanel-module__progress",
|
|
725
|
-
rail: "rly_StatePanel-module__rail",
|
|
726
743
|
icon: "rly_StatePanel-module__icon",
|
|
727
744
|
content: "rly_StatePanel-module__content",
|
|
728
745
|
title: "rly_StatePanel-module__title",
|
|
@@ -732,72 +749,66 @@ var w = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new WeakMap(), E = m(
|
|
|
732
749
|
neutral: {
|
|
733
750
|
className: Y("neutral"),
|
|
734
751
|
purpose: "Neutral explanatory state",
|
|
735
|
-
tokens: ["color-text-2", "color-
|
|
752
|
+
tokens: ["color-text-2", "color-border-2"]
|
|
736
753
|
},
|
|
737
754
|
positive: {
|
|
738
755
|
className: Y("positive"),
|
|
739
756
|
purpose: "Positive outcome",
|
|
740
|
-
tokens: ["color-success-ink"
|
|
757
|
+
tokens: ["color-success-ink"]
|
|
741
758
|
},
|
|
742
759
|
critical: {
|
|
743
760
|
className: Y("critical"),
|
|
744
761
|
purpose: "Critical outcome requiring attention",
|
|
745
|
-
tokens: ["color-blocked-ink"
|
|
762
|
+
tokens: ["color-blocked-ink"]
|
|
746
763
|
},
|
|
747
764
|
caution: {
|
|
748
765
|
className: Y("caution"),
|
|
749
766
|
purpose: "Held outcome requiring review",
|
|
750
|
-
tokens: ["color-held-ink"
|
|
767
|
+
tokens: ["color-held-ink"]
|
|
751
768
|
},
|
|
752
769
|
progress: {
|
|
753
770
|
className: Y("progress"),
|
|
754
771
|
purpose: "Work currently in progress",
|
|
755
|
-
tokens: ["color-deploying-ink"
|
|
772
|
+
tokens: ["color-deploying-ink"]
|
|
756
773
|
}
|
|
757
774
|
} }), Be = c({ tone: "neutral" }), Ve = {
|
|
758
|
-
neutral:
|
|
775
|
+
neutral: void 0,
|
|
759
776
|
positive: "check",
|
|
760
777
|
critical: "alert",
|
|
761
778
|
caution: "clock",
|
|
762
779
|
progress: "loader"
|
|
763
780
|
}, He = ({ action: t, announce: n = "off", className: r, description: a, icon: o, title: s, tone: c = "neutral", ...l }) => {
|
|
764
|
-
let d = n === "assertive" ? "alert" : n === "polite" ? "status" : l.role;
|
|
781
|
+
let d = n === "assertive" ? "alert" : n === "polite" ? "status" : l.role, f = o ?? Ve[c];
|
|
765
782
|
return /* @__PURE__ */ C("section", {
|
|
766
783
|
...l,
|
|
767
784
|
"aria-live": n === "off" ? void 0 : n,
|
|
768
785
|
className: u(Y("root"), ze.tone[c].className, r),
|
|
786
|
+
"data-icon": f === void 0 ? "none" : void 0,
|
|
769
787
|
role: d,
|
|
770
|
-
children: [
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
"aria-hidden": "true",
|
|
777
|
-
className: Y("icon"),
|
|
778
|
-
children: /* @__PURE__ */ S(e, {
|
|
779
|
-
decorative: !0,
|
|
780
|
-
name: o ?? Ve[c]
|
|
781
|
-
})
|
|
782
|
-
}),
|
|
783
|
-
/* @__PURE__ */ C("div", {
|
|
784
|
-
className: Y("content"),
|
|
785
|
-
children: [
|
|
786
|
-
/* @__PURE__ */ S("strong", {
|
|
787
|
-
className: Y("title"),
|
|
788
|
-
children: i(s, "StatePanel title")
|
|
789
|
-
}),
|
|
790
|
-
a === void 0 ? null : /* @__PURE__ */ S("div", {
|
|
791
|
-
className: Y("description"),
|
|
792
|
-
children: a
|
|
793
|
-
}),
|
|
794
|
-
t === void 0 ? null : /* @__PURE__ */ S("div", {
|
|
795
|
-
className: Y("action"),
|
|
796
|
-
children: t
|
|
797
|
-
})
|
|
798
|
-
]
|
|
788
|
+
children: [f === void 0 ? null : /* @__PURE__ */ S("span", {
|
|
789
|
+
"aria-hidden": "true",
|
|
790
|
+
className: Y("icon"),
|
|
791
|
+
children: /* @__PURE__ */ S(e, {
|
|
792
|
+
decorative: !0,
|
|
793
|
+
name: f
|
|
799
794
|
})
|
|
800
|
-
|
|
795
|
+
}), /* @__PURE__ */ C("div", {
|
|
796
|
+
className: Y("content"),
|
|
797
|
+
children: [
|
|
798
|
+
/* @__PURE__ */ S("strong", {
|
|
799
|
+
className: Y("title"),
|
|
800
|
+
children: i(s, "StatePanel title")
|
|
801
|
+
}),
|
|
802
|
+
a === void 0 ? null : /* @__PURE__ */ S("div", {
|
|
803
|
+
className: Y("description"),
|
|
804
|
+
children: a
|
|
805
|
+
}),
|
|
806
|
+
t === void 0 ? null : /* @__PURE__ */ S("div", {
|
|
807
|
+
className: Y("action"),
|
|
808
|
+
children: t
|
|
809
|
+
})
|
|
810
|
+
]
|
|
811
|
+
})]
|
|
801
812
|
});
|
|
802
813
|
}, Ue = {
|
|
803
814
|
root: "rly_Field-module__root",
|
|
@@ -807,6 +818,7 @@ var w = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new WeakMap(), E = m(
|
|
|
807
818
|
error: "rly_Field-module__error",
|
|
808
819
|
controlSlot: "rly_Field-module__controlSlot",
|
|
809
820
|
control: "rly_Field-module__control",
|
|
821
|
+
dense: "rly_Field-module__dense",
|
|
810
822
|
compact: "rly_Field-module__compact",
|
|
811
823
|
defaultSize: "rly_Field-module__defaultSize"
|
|
812
824
|
}, X = (e) => o(Ue, e), We = [
|
|
@@ -823,17 +835,22 @@ var w = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new WeakMap(), E = m(
|
|
|
823
835
|
"select",
|
|
824
836
|
"textarea"
|
|
825
837
|
]), Ke = c({ size: {
|
|
838
|
+
dense: {
|
|
839
|
+
className: X("dense"),
|
|
840
|
+
purpose: "Tool-density form controls; the default",
|
|
841
|
+
tokens: ["control-height-dense", "radius-tag"]
|
|
842
|
+
},
|
|
826
843
|
compact: {
|
|
827
844
|
className: X("compact"),
|
|
828
845
|
purpose: "Dense form rows",
|
|
829
|
-
tokens: ["
|
|
846
|
+
tokens: ["control-height-compact", "type-meta"]
|
|
830
847
|
},
|
|
831
848
|
default: {
|
|
832
849
|
className: X("defaultSize"),
|
|
833
850
|
purpose: "Standard form controls",
|
|
834
|
-
tokens: ["
|
|
851
|
+
tokens: ["control-height-default", "type-label"]
|
|
835
852
|
}
|
|
836
|
-
} }), qe = c({ size: "
|
|
853
|
+
} }), qe = c({ size: "dense" }), Je = ({ children: e, className: t, controlId: n, description: o, error: c, label: l, required: d = !1, size: f = qe.size, ...p }) => {
|
|
837
854
|
let m = v(), h = n ?? `rly-field-${m}`, g = `${h}-label`, _ = o === void 0 ? void 0 : `${h}-description`, y = c === void 0 ? void 0 : `${h}-error`, b = {
|
|
838
855
|
"aria-describedby": [_, y].filter((e) => e !== void 0).join(" ") || void 0,
|
|
839
856
|
"aria-errormessage": y,
|
|
@@ -1015,4 +1032,4 @@ var w = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new WeakMap(), E = m(
|
|
|
1015
1032
|
//#endregion
|
|
1016
1033
|
export { fe as A, U as C, B as D, me as E, P as F, F as I, ne as L, re as M, A as N, se as O, ie as P, N as R, ge as S, V as T, we as _, qe as a, be as b, ze as c, Fe as d, Le as f, Te as g, Ne as h, Je as i, j, oe as k, He as l, Ae as m, $e as n, Ke as o, je as p, Qe as r, Be as s, tt as t, Ie as u, Ce as v, ve as w, G as x, xe as y, M as z };
|
|
1017
1034
|
|
|
1018
|
-
//# sourceMappingURL=Dialog-
|
|
1035
|
+
//# sourceMappingURL=Dialog-B9Ub_gMT.js.map
|