@knpkv/rly 0.12.0 → 0.13.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 +22 -1
- package/dist/components.css +1 -1
- package/dist/dts/internal/chart.d.ts +74 -0
- package/dist/dts/internal/chart.d.ts.map +1 -0
- package/dist/dts/primitives/StackedBars.d.ts +72 -0
- package/dist/dts/primitives/StackedBars.d.ts.map +1 -0
- package/dist/dts/primitives/index.d.ts +2 -0
- package/dist/dts/primitives/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/primitives/index.js +2 -2
- package/dist/primitives-Bd6WhE78.js +1001 -0
- package/dist/primitives-Bd6WhE78.js.map +1 -0
- package/package.json +1 -1
- package/registry/components.json +94 -0
- package/registry/search.json +22 -0
- package/dist/primitives-CgvvYKjR.js +0 -589
- package/dist/primitives-CgvvYKjR.js.map +0 -1
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { RlySeries } from "../primitives/ChartLegend.js";
|
|
2
|
+
/** One series' value in one column. */
|
|
3
|
+
export interface RlyChartSegment {
|
|
4
|
+
readonly id: string;
|
|
5
|
+
readonly series: RlySeries;
|
|
6
|
+
/** A non-negative finite amount; zero, negative and non-finite values (`NaN`, ±Infinity) draw nothing. */
|
|
7
|
+
readonly value: number;
|
|
8
|
+
}
|
|
9
|
+
/** One period on the time axis, in epoch milliseconds, with its stacked values. */
|
|
10
|
+
export interface RlyChartColumn {
|
|
11
|
+
readonly start: number;
|
|
12
|
+
readonly end: number;
|
|
13
|
+
readonly segments: ReadonlyArray<RlyChartSegment>;
|
|
14
|
+
}
|
|
15
|
+
/** Consecutive columns drawn as one bar: `first`..`last` are column indices. */
|
|
16
|
+
export interface RlyChartBin {
|
|
17
|
+
readonly first: number;
|
|
18
|
+
readonly last: number;
|
|
19
|
+
readonly start: number;
|
|
20
|
+
readonly end: number;
|
|
21
|
+
readonly total: number;
|
|
22
|
+
readonly segments: ReadonlyArray<RlyChartSegment & {
|
|
23
|
+
readonly offset: number;
|
|
24
|
+
}>;
|
|
25
|
+
}
|
|
26
|
+
/** An inclusive range of column indices. */
|
|
27
|
+
export interface RlyChartSelection {
|
|
28
|
+
readonly from: number;
|
|
29
|
+
readonly to: number;
|
|
30
|
+
}
|
|
31
|
+
/** An axis label: at a bin's start, or the one end-anchored label at the axis end. */
|
|
32
|
+
export type RlyChartTick = {
|
|
33
|
+
readonly anchor: "start";
|
|
34
|
+
readonly index: number;
|
|
35
|
+
} | {
|
|
36
|
+
readonly anchor: "end";
|
|
37
|
+
};
|
|
38
|
+
/** Fail loudly on columns that cannot share one time axis: each must start at or after the previous end. */
|
|
39
|
+
export declare const validateColumns: (columns: ReadonlyArray<RlyChartColumn>) => void;
|
|
40
|
+
/**
|
|
41
|
+
* One stack order for the whole chart: each series id in the order it first appears across all
|
|
42
|
+
* columns. Every bin stacks in this order, so a series keeps its place from bar to bar.
|
|
43
|
+
*/
|
|
44
|
+
export declare const stackOrder: (columns: ReadonlyArray<RlyChartColumn>) => ReadonlyMap<string, number>;
|
|
45
|
+
/**
|
|
46
|
+
* The smallest bin size whose every bar, measured on the shared time axis, is at least `minBar`
|
|
47
|
+
* pixels wide, so uneven or sparse periods are measured as drawn. Past a day per bar it grows in
|
|
48
|
+
* whole days (24 columns at a time); failing all, one bin holds everything.
|
|
49
|
+
*/
|
|
50
|
+
export declare const chooseBinSize: (width: number, columns: ReadonlyArray<RlyChartColumn>, minBar?: number) => number;
|
|
51
|
+
/**
|
|
52
|
+
* Per bin, the factor that turns its total into a rate per nominal bin (`size` columns of average
|
|
53
|
+
* length), so a folded or longer bin stands as tall as its spending rate, not its raw sum. Bar areas
|
|
54
|
+
* then match totals on the time-proportional axis.
|
|
55
|
+
*/
|
|
56
|
+
export declare const binRates: (bins: ReadonlyArray<RlyChartBin>, columns: ReadonlyArray<RlyChartColumn>, size: number) => ReadonlyArray<number>;
|
|
57
|
+
/**
|
|
58
|
+
* Group columns into bins of `size`, merging segments by id and stacking every bin in the chart's
|
|
59
|
+
* one `stackOrder`. A short trailing remainder joins the bin before it, so the last bar is never
|
|
60
|
+
* narrower than the rest.
|
|
61
|
+
*/
|
|
62
|
+
export declare const binColumns: (columns: ReadonlyArray<RlyChartColumn>, size: number) => ReadonlyArray<RlyChartBin>;
|
|
63
|
+
/** Select one bin, or with `extend` grow an existing selection to cover it. Unknown bins change nothing. */
|
|
64
|
+
export declare const selectBin: (selection: RlyChartSelection | null, bins: ReadonlyArray<RlyChartBin>, index: number, extend: boolean) => RlyChartSelection | null;
|
|
65
|
+
/** The bin a navigation key moves focus to, or `null` for any other key. */
|
|
66
|
+
export declare const moveFocus: (key: string, current: number, last: number) => number | null;
|
|
67
|
+
/**
|
|
68
|
+
* Ticks at least `labelWidth` apart, from each bin's start in pixels on the shared time axis, so
|
|
69
|
+
* uneven bins never crowd their labels. The last bin always gets an end-anchored tick, so the axis
|
|
70
|
+
* says where it ends without a label clipping at the edge; ticks crowding it are dropped. One bin
|
|
71
|
+
* gets its start and end when both fit, else its start alone.
|
|
72
|
+
*/
|
|
73
|
+
export declare const chartTicks: (starts: ReadonlyArray<number>, width: number, labelWidth: number) => ReadonlyArray<RlyChartTick>;
|
|
74
|
+
//# sourceMappingURL=chart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chart.d.ts","sourceRoot":"","sources":["../../../src/internal/chart.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAE7D,uCAAuC;AACvC,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAA;IAC1B,0GAA0G;IAC1G,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CACvB;AAED,mFAAmF;AACnF,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CA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a,CAAC,MAAM,CAKtB,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,UAAU,YAAa,aAAa,CAAC,cAAc,CAAC,QAAQ,MAAM,KAAG,aAAa,CAAC,WAAW,CA+B1G,CAAA;AAED,4GAA4G;AAC5G,eAAO,MAAM,SAAS,cACT,iBAAiB,GAAG,IAAI,QAC7B,aAAa,CAAC,WAAW,CAAC,SACzB,MAAM,UACL,OAAO,KACd,iBAAiB,GAAG,IAKtB,CAAA;AAED,4EAA4E;AAC5E,eAAO,MAAM,SAAS,QAAS,MAAM,WAAW,MAAM,QAAQ,MAAM,KAAG,MAAM,GAAG,IAc/E,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,UAAU,WACb,aAAa,CAAC,MAAM,CAAC,SACtB,MAAM,cACD,MAAM,KACjB,aAAa,CAAC,YAAY,CAmB5B,CAAA"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { ComponentPropsWithRef, ReactElement } from "react";
|
|
2
|
+
import { type RlyChartColumn, type RlyChartSelection } from "../internal/chart.js";
|
|
3
|
+
export type { RlyChartBin, RlyChartColumn, RlyChartSegment, RlyChartSelection } from "../internal/chart.js";
|
|
4
|
+
/** A level over time above the bars, on the same axis; `level: null` is a stretch with no reading. */
|
|
5
|
+
export interface RlyStepBand {
|
|
6
|
+
readonly id: string;
|
|
7
|
+
readonly label: string;
|
|
8
|
+
readonly segments: ReadonlyArray<{
|
|
9
|
+
readonly from: number;
|
|
10
|
+
readonly to: number;
|
|
11
|
+
readonly level: number | null;
|
|
12
|
+
}>;
|
|
13
|
+
/** A dashed mark at `level` percent, named in the key under the axis by `label` ("Near the limit, 80%"). */
|
|
14
|
+
readonly near?: RlyBandMark;
|
|
15
|
+
}
|
|
16
|
+
/** A level worth marking on a band, with the key text that names it. */
|
|
17
|
+
export interface RlyBandMark {
|
|
18
|
+
readonly level: number;
|
|
19
|
+
readonly label: string;
|
|
20
|
+
}
|
|
21
|
+
/** A stretch of the time axis to shade behind the bars and bands, named in a key under the axis. */
|
|
22
|
+
export interface RlyChartWindow {
|
|
23
|
+
readonly from: number;
|
|
24
|
+
readonly to: number;
|
|
25
|
+
/** What the stretch is, for example "Current 5-hour window, resets 14:57". */
|
|
26
|
+
readonly label: string;
|
|
27
|
+
}
|
|
28
|
+
type StackedBarsBaseProps = Omit<ComponentPropsWithRef<"div">, "aria-label" | "children" | "onChange">;
|
|
29
|
+
export type StackedBarsProps = StackedBarsBaseProps & {
|
|
30
|
+
/** Names the chart, for example "Spend by booking". */
|
|
31
|
+
readonly label: string;
|
|
32
|
+
/** How to read and operate the chart, in the caller's words; read after the label. */
|
|
33
|
+
readonly instructions: string;
|
|
34
|
+
/**
|
|
35
|
+
* Periods in time order, none overlapping (gaps are fine); anything else throws
|
|
36
|
+
* an error naming the column. Bins group every N columns, so hourly columns starting on the hour bin
|
|
37
|
+
* on clock hours.
|
|
38
|
+
*/
|
|
39
|
+
readonly columns: ReadonlyArray<RlyChartColumn>;
|
|
40
|
+
/** Bands of limit levels drawn above the bars, sharing their time axis. */
|
|
41
|
+
readonly bands?: ReadonlyArray<RlyStepBand>;
|
|
42
|
+
/** A stretch of time to shade across the bands and bars, such as the current limit window. */
|
|
43
|
+
readonly window?: RlyChartWindow;
|
|
44
|
+
/** Key text for band stretches with no reading ("No reading"); required when any band has one. */
|
|
45
|
+
readonly noReadingLabel?: string;
|
|
46
|
+
/**
|
|
47
|
+
* The caption for the scale: the tallest bar's rate per `binSize` columns. Bars plot rates, so a
|
|
48
|
+
* folded or longer bin reads true against "per N hours".
|
|
49
|
+
*/
|
|
50
|
+
readonly formatScale: (max: number, binSize: number) => string;
|
|
51
|
+
/** The axis label for an instant: a bin's start, or the axis end for the right-hand label. */
|
|
52
|
+
readonly formatTick: (at: number, binSize: number) => string;
|
|
53
|
+
readonly selection: RlyChartSelection | null;
|
|
54
|
+
readonly onSelectionChange: (selection: RlyChartSelection | null) => void;
|
|
55
|
+
/** What the selection means, announced politely once a selection the user made settles. */
|
|
56
|
+
readonly describeSelection: (selection: RlyChartSelection | null) => string;
|
|
57
|
+
/** Plot height in pixels, without bands and axis; never under 24, since every bar is a pointer target. */
|
|
58
|
+
readonly height?: number;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* Stacked values per period on a time axis, with optional limit bands above. Bars, bands, the window
|
|
62
|
+
* and the selection share one time scale, so a short final bin is drawn narrower. Narrow containers
|
|
63
|
+
* bin periods so every bar's hit area stays at least 24px wide, a full pointer target (the drawn
|
|
64
|
+
* fill is 2px narrower, for the gap); the selection keeps its columns across rebinning.
|
|
65
|
+
* One tab stop: ←/→ move and select, Shift extends, Home/End jump, Escape clears. Click selects;
|
|
66
|
+
* Shift+click, or a second touch tap elsewhere, extends. The SVG is hidden from assistive technology,
|
|
67
|
+
* so callers render the same data beside it: a table at a readable resolution (a row per day for a
|
|
68
|
+
* week of hours), a table of each band's intervals, and a `describeSelection` that names every
|
|
69
|
+
* series' value in the span, so arrowing through the plot reaches each period's numbers.
|
|
70
|
+
*/
|
|
71
|
+
export declare const StackedBars: ({ bands, className, columns, describeSelection, formatScale, formatTick, height, instructions, label, noReadingLabel, onSelectionChange, ref: callerRef, selection, window, ...props }: StackedBarsProps) => ReactElement;
|
|
72
|
+
//# sourceMappingURL=StackedBars.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StackedBars.d.ts","sourceRoot":"","sources":["../../../src/primitives/StackedBars.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAiB,YAAY,EAAoB,MAAM,OAAO,CAAA;AAIjG,OAAO,EAML,KAAK,cAAc,EACnB,KAAK,iBAAiB,EAGvB,MAAM,sBAAsB,CAAA;AAK7B,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAE3G,sGAAsG;AACtG,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,EAAE,MAA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ACH,QAAQ,CAAC,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,MAAM,CAAA;IAC9D,8FAA8F;IAC9F,QAAQ,CAAC,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,MAAM,CAAA;IAC5D,QAAQ,CAAC,SAAS,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAC5C,QAAQ,CAAC,iBAAiB,EAAE,CAAC,SAAS,EAAE,iBAAiB,GAAG,IAAI,KAAK,IAAI,CAAA;IACzE,2FAA2F;IAC3F,QAAQ,CAAC,iBAAiB,EAAE,CAAC,SAAS,EAAE,iBAAiB,GAAG,IAAI,KAAK,MAAM,CAAA;IAC3E,0GAA0G;IAC1G,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CACzB,CAAA;AAsID;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,2LAgBrB,gBAAgB,KAAG,YA2TrB,CAAA"}
|
|
@@ -22,6 +22,8 @@ export { RLY_SHEET_DEFAULT_VARIANTS, RLY_SHEET_VARIANTS, Sheet } from "./Sheet.j
|
|
|
22
22
|
export type { RlySheetSide, SheetBodyProps, SheetCloseProps, SheetContentProps, SheetFooterProps, SheetRootProps, SheetTriggerProps } from "./Sheet.js";
|
|
23
23
|
export { RLY_SKELETON_DEFAULT_VARIANTS, RLY_SKELETON_VARIANTS, Skeleton } from "./Skeleton.js";
|
|
24
24
|
export type { RlySkeletonVariant, SkeletonProps } from "./Skeleton.js";
|
|
25
|
+
export { StackedBars } from "./StackedBars.js";
|
|
26
|
+
export type { RlyBandMark, RlyChartBin, RlyChartColumn, RlyChartSegment, RlyChartSelection, RlyChartWindow, RlyStepBand, StackedBarsProps } from "./StackedBars.js";
|
|
25
27
|
export { RLY_STATE_LABEL_DEFAULT_VARIANTS, RLY_STATE_LABEL_VARIANTS, StateLabel } from "./StateLabel.js";
|
|
26
28
|
export type { RlyStateLabelSize, RlyStateTone, StateLabelProps } from "./StateLabel.js";
|
|
27
29
|
export { RLY_STATE_PANEL_DEFAULT_VARIANTS, RLY_STATE_PANEL_VARIANTS, StatePanel } from "./StatePanel.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/primitives/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,2BAA2B,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AACtF,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAC5E,OAAO,EAAE,MAAM,EAAE,2BAA2B,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AACtF,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAC/E,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAC1E,YAAY,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACvF,OAAO,EAAE,MAAM,EAAE,2BAA2B,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AACtF,YAAY,EACV,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,kBAAkB,EAClB,aAAa,EACd,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,OAAO,EAAE,4BAA4B,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA;AAC1F,YAAY,EAAE,YAAY,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAC3F,OAAO,EAAE,KAAK,EAAE,0BAA0B,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAClF,YAAY,EAAE,iBAAiB,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC7E,OAAO,EAAE,UAAU,EAAE,gCAAgC,EAAE,wBAAwB,EAA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EAAE,UAAU,EAAE,gBAAgB,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AACrF,OAAO,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAC9E,YAAY,EAAE,cAAc,EAAE,WAAW,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AACvF,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,YAAY,EAAE,6BAA6B,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACvF,OAAO,EAAE,iCAAiC,EAAE,yBAAyB,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC5G,YAAY,EAAE,kBAAkB,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAC3F,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAC7D,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -5,8 +5,8 @@ import { t as d } from "./LinkProvider-DMkhwZ3P.js";
|
|
|
5
5
|
import "./foundations/index.js";
|
|
6
6
|
import { $ as f, A as p, B as m, C as h, D as g, E as _, F as v, G as y, H as b, I as x, J as S, K as C, L as w, M as T, N as E, O as D, P as O, Q as k, R as A, S as j, T as M, U as N, V as P, W as F, X as I, Y as L, Z as R, _ as z, a as B, b as V, c as H, d as U, et as W, f as G, g as K, h as q, i as J, j as Y, k as X, l as Z, m as Q, n as $, nt as ee, o as te, p as ne, q as re, r as ie, s as ae, t as oe, tt as se, u as ce, v as le, w as ue, x as de, y as fe, z as pe } from "./patterns-DPd5YlSW.js";
|
|
7
7
|
import { A as me, C as he, D as ge, E as _e, O as ve, S as ye, T as be, _ as xe, a as Se, b as Ce, c as we, d as Te, f as Ee, g as De, h as Oe, i as ke, k as Ae, l as je, m as Me, n as Ne, o as Pe, p as Fe, r as Ie, s as Le, t as Re, u as ze, v as Be, w as Ve, x as He, y as Ue } from "./Dialog-B9Ub_gMT.js";
|
|
8
|
-
import { C as We, D as Ge, E as Ke, O as qe, S as Je, T as Ye, _ as Xe, a as Ze, b as Qe, c as $e, d as et, f as tt, g as nt, h as rt, i as it,
|
|
9
|
-
import { a as
|
|
10
|
-
export { ee as AgentContextButton, se as AgentDrawer, W as AgentJob, f as AgentProposal, k as AgentThread, Ue as Avatar, be as Button,
|
|
8
|
+
import { C as We, D as Ge, E as Ke, O as qe, S as Je, T as Ye, _ as Xe, a as Ze, b as Qe, c as $e, d as et, f as tt, g as nt, h as rt, i as it, k as at, l as ot, m as st, n as ct, o as lt, p as ut, r as dt, s as ft, t as pt, u as mt, v as ht, w as gt, x as _t, y as vt } from "./primitives-Bd6WhE78.js";
|
|
9
|
+
import { a as yt, i as bt, n as xt, o as St, r as Ct, t as wt } from "./tokens-B075JP3Z.js";
|
|
10
|
+
export { ee as AgentContextButton, se as AgentDrawer, W as AgentJob, f as AgentProposal, k as AgentThread, Ue as Avatar, be as Button, Ge as ChartLegend, N as CollaboratorGroup, m as DecisionBar, Re as Dialog, gt as Divider, Y as EntityShell, D as EntityTable, g as EvidenceStamp, ke as Field, w as FreshnessStamp, r as GlobalStyles, _ as GovernedActionReview, de as Hero, j as HeroWord, s as Icon, De as IconButton, Qe as LimitTrack, d as LinkProvider, Xe as Notice, C as PeopleStrip, L as Person, c as PortalProvider, Ce as RLY_AVATAR_DEFAULT_VARIANTS, He as RLY_AVATAR_VARIANTS, _e as RLY_BUTTON_DEFAULT_VARIANTS, ge as RLY_BUTTON_VARIANTS, F as RLY_COLLABORATOR_GROUP_DEFAULT_VARIANTS, y as RLY_COLLABORATOR_GROUP_VARIANTS, wt as RLY_COLOR_TOKEN_NAMES, xt as RLY_CONTROL_HEIGHT_TOKEN_NAMES, P as RLY_DECISION_BAR_DEFAULT_VARIANTS, b as RLY_DECISION_BAR_VARIANTS, Ne as RLY_DIALOG_DEFAULT_VARIANTS, Ie as RLY_DIALOG_VARIANTS, Ye as RLY_DIVIDER_DEFAULT_VARIANTS, Ke as RLY_DIVIDER_VARIANTS, X as RLY_ENTITY_TABLE_DEFAULT_VARIANTS, p as RLY_ENTITY_TABLE_VARIANTS, Se as RLY_FIELD_DEFAULT_VARIANTS, Pe as RLY_FIELD_VARIANTS, A as RLY_FRESHNESS_STAMP_DEFAULT_VARIANTS, pe as RLY_FRESHNESS_STAMP_VARIANTS, h as RLY_HERO_DEFAULT_VARIANTS, ue as RLY_HERO_VARIANTS, M as RLY_HERO_WORD_VARIANTS, xe as RLY_ICON_BUTTON_DEFAULT_VARIANTS, Be as RLY_ICON_BUTTON_VARIANTS, o as RLY_ICON_DEFAULT_VARIANTS, l as RLY_ICON_NAMES, u as RLY_ICON_VARIANTS, _t as RLY_LIMIT_TRACK_DEFAULT_VARIANTS, Je as RLY_LIMIT_TRACK_VARIANTS, Ct as RLY_MOTION_TOKEN_NAMES, ht as RLY_NOTICE_DEFAULT_VARIANTS, vt as RLY_NOTICE_VARIANTS, re as RLY_PEOPLE_STRIP_DEFAULT_VARIANTS, S as RLY_PEOPLE_STRIP_VARIANTS, I as RLY_PERSON_DEFAULT_VARIANTS, R as RLY_PERSON_VARIANTS, bt as RLY_RADIUS_TOKEN_NAMES, le as RLY_REGION_DEFAULT_VARIANTS, fe as RLY_REGION_VARIANTS, K as RLY_RELATIONSHIP_DIRECTION_PRESENTATION, z as RLY_RELATIONSHIP_LIFECYCLE_PRESENTATION, Z as RLY_RELEASE_RELAY_DEFAULT_VARIANTS, ce as RLY_RELEASE_RELAY_SYMBOLS, U as RLY_RELEASE_RELAY_VARIANTS, Fe as RLY_SELECT_DEFAULT_VARIANTS, Me as RLY_SELECT_VARIANTS, qe as RLY_SERIES, O as RLY_SERVICE_MARK_DEFAULT_VARIANTS, v as RLY_SERVICE_MARK_VARIANTS, ve as RLY_SHEET_DEFAULT_VARIANTS, Ae as RLY_SHEET_VARIANTS, ze as RLY_SKELETON_DEFAULT_VARIANTS, Te as RLY_SKELETON_VARIANTS, yt as RLY_SPACE_TOKEN_NAMES, J as RLY_STAGE_RAIL_DEFAULT_VARIANTS, B as RLY_STAGE_RAIL_VARIANTS, ye as RLY_STATE_LABEL_DEFAULT_VARIANTS, he as RLY_STATE_LABEL_VARIANTS, Le as RLY_STATE_PANEL_DEFAULT_VARIANTS, we as RLY_STATE_PANEL_VARIANTS, ut as RLY_SURFACE_DEFAULT_VARIANTS, st as RLY_SURFACE_VARIANTS, mt as RLY_TABS_DEFAULT_VARIANTS, et as RLY_TABS_VARIANTS, ft as RLY_TEXT_DEFAULT_VARIANTS, $e as RLY_TEXT_VARIANTS, a as RLY_THEME_NAMES, dt as RLY_TOGGLE_GROUP_DEFAULT_VARIANTS, it as RLY_TOGGLE_GROUP_VARIANTS, pt as RLY_TRACK_KEY_MARKS, St as RLY_TYPE_TOKEN_NAMES, T as RLY_VERDICT_VARIANTS, V as Region, q as RelationshipChain, Q as RelationshipTable, ne as RelayDock, H as ReleasePreview, G as ReleaseRelay, ae as ReleaseRow, Oe as Select, x as ServiceMark, me as Sheet, Ee as Skeleton, nt as StackedBars, te as StageRail, Ve as StateLabel, je as StatePanel, rt as Surface, tt as Tabs, ot as Text, n as ThemeProvider, lt as ThemeSelect, $ as TimelineProvenanceKey, ie as TimelineRow, Ze as ToggleGroup, ct as TrackKey, E as Verdict, oe as WorksetCard, i as decodeRlyTheme, We as limitTrackTone, at as rlySeriesColor, t as useDocumentTheme, e as useStoredTheme };
|
|
11
11
|
|
|
12
12
|
//# sourceMappingURL=index.js.map
|
package/dist/primitives/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { A as e, C as t, D as n, E as r, O as i, S as a, T as o, _ as s, a as c, b as l, c as u, d, f, g as p, h as m, i as h, k as g, l as _, m as v, n as y, o as b, p as x, r as S, s as C, t as w, u as T, v as E, w as D, x as O, y as k } from "../Dialog-B9Ub_gMT.js";
|
|
3
|
-
import { C as A, D as j, E as M, O as N, S as P, T as F, _ as I, a as L, b as R, c as z, d as B, f as V, g as H, h as U, i as W,
|
|
4
|
-
export { k as Avatar, o as Button,
|
|
3
|
+
import { C as A, D as j, E as M, O as N, S as P, T as F, _ as I, a as L, b as R, c as z, d as B, f as V, g as H, h as U, i as W, k as G, l as K, m as q, n as J, o as Y, p as X, r as Z, s as Q, t as $, u as ee, v as te, w as ne, x as re, y as ie } from "../primitives-Bd6WhE78.js";
|
|
4
|
+
export { k as Avatar, o as Button, j as ChartLegend, w as Dialog, ne as Divider, h as Field, p as IconButton, R as LimitTrack, I as Notice, l as RLY_AVATAR_DEFAULT_VARIANTS, O as RLY_AVATAR_VARIANTS, r as RLY_BUTTON_DEFAULT_VARIANTS, n as RLY_BUTTON_VARIANTS, y as RLY_DIALOG_DEFAULT_VARIANTS, S as RLY_DIALOG_VARIANTS, F as RLY_DIVIDER_DEFAULT_VARIANTS, M as RLY_DIVIDER_VARIANTS, c as RLY_FIELD_DEFAULT_VARIANTS, b as RLY_FIELD_VARIANTS, s as RLY_ICON_BUTTON_DEFAULT_VARIANTS, E as RLY_ICON_BUTTON_VARIANTS, re as RLY_LIMIT_TRACK_DEFAULT_VARIANTS, P as RLY_LIMIT_TRACK_VARIANTS, te as RLY_NOTICE_DEFAULT_VARIANTS, ie as RLY_NOTICE_VARIANTS, x as RLY_SELECT_DEFAULT_VARIANTS, v as RLY_SELECT_VARIANTS, N as RLY_SERIES, i as RLY_SHEET_DEFAULT_VARIANTS, g as RLY_SHEET_VARIANTS, T as RLY_SKELETON_DEFAULT_VARIANTS, d as RLY_SKELETON_VARIANTS, a as RLY_STATE_LABEL_DEFAULT_VARIANTS, t as RLY_STATE_LABEL_VARIANTS, C as RLY_STATE_PANEL_DEFAULT_VARIANTS, u as RLY_STATE_PANEL_VARIANTS, X as RLY_SURFACE_DEFAULT_VARIANTS, q as RLY_SURFACE_VARIANTS, ee as RLY_TABS_DEFAULT_VARIANTS, B as RLY_TABS_VARIANTS, Q as RLY_TEXT_DEFAULT_VARIANTS, z as RLY_TEXT_VARIANTS, Z as RLY_TOGGLE_GROUP_DEFAULT_VARIANTS, W as RLY_TOGGLE_GROUP_VARIANTS, $ as RLY_TRACK_KEY_MARKS, m as Select, e as Sheet, f as Skeleton, H as StackedBars, D as StateLabel, _ as StatePanel, U as Surface, V as Tabs, K as Text, Y as ThemeSelect, L as ToggleGroup, J as TrackKey, A as limitTrackTone, G as rlySeriesColor };
|
|
5
5
|
|
|
6
6
|
//# sourceMappingURL=index.js.map
|