@sequenceholdings/atlas-ui 3.1.1 → 3.2.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/dist/index.d.ts +49 -3
- package/dist/index.mjs +4218 -4163
- package/package.json +2 -3
- package/theme.v2.css +1 -1
- package/tokens.v2.css +1 -1
- /package/{tokens.css → dist/tokens.css} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1730,6 +1730,17 @@ declare interface InputOwnProps {
|
|
|
1730
1730
|
|
|
1731
1731
|
export declare type InputProps = React_2.ComponentProps<"input"> & InputOwnProps;
|
|
1732
1732
|
|
|
1733
|
+
export declare function insertTrackedMention(input: {
|
|
1734
|
+
value: string;
|
|
1735
|
+
mentions: TrackedMention[];
|
|
1736
|
+
replaceFrom: number;
|
|
1737
|
+
recipientId: string;
|
|
1738
|
+
displayName: string;
|
|
1739
|
+
}): {
|
|
1740
|
+
value: string;
|
|
1741
|
+
mentions: TrackedMention[];
|
|
1742
|
+
};
|
|
1743
|
+
|
|
1733
1744
|
/**
|
|
1734
1745
|
* Whether a declarative field is inline-editable: it carries an editor
|
|
1735
1746
|
* (`options` + `onChange`), hasn't opted out (`readOnly`), and isn't using
|
|
@@ -1844,25 +1855,42 @@ declare interface LineSparklineCellProps {
|
|
|
1844
1855
|
* everywhere. Lives in atlas-ui so standalone artifacts can reuse it without
|
|
1845
1856
|
* pulling chart.js.
|
|
1846
1857
|
*/
|
|
1847
|
-
export declare function MetricAreaChart({ points, color, height, variant, valueFormatter, dateFormatter, className, }: MetricAreaChartProps): JSX.Element;
|
|
1858
|
+
export declare function MetricAreaChart({ points, color, series, stacked, height, variant, valueFormatter, dateFormatter, balanceYAxis, yAxisWidth, integerYAxis, className, }: MetricAreaChartProps): JSX.Element;
|
|
1848
1859
|
|
|
1849
1860
|
export declare interface MetricAreaChartPoint {
|
|
1850
1861
|
t: string;
|
|
1851
|
-
v
|
|
1862
|
+
v?: number;
|
|
1863
|
+
[key: string]: string | number | undefined;
|
|
1852
1864
|
}
|
|
1853
1865
|
|
|
1854
1866
|
export declare interface MetricAreaChartProps {
|
|
1855
1867
|
points: MetricAreaChartPoint[];
|
|
1856
1868
|
/** Stroke / fill color for the area. Defaults to the semantic "positive series" token. */
|
|
1857
1869
|
color?: string;
|
|
1870
|
+
/** Multiple series render as a stacked area with one visible boundary per series. */
|
|
1871
|
+
series?: MetricAreaChartSeries[];
|
|
1872
|
+
/** Stack multiple series into a cumulative area. */
|
|
1873
|
+
stacked?: boolean;
|
|
1858
1874
|
height?: number;
|
|
1859
1875
|
/** `spark` = compact, axis-less (cards); `full` = axes + grid + tooltip. */
|
|
1860
1876
|
variant?: 'spark' | 'full';
|
|
1861
1877
|
valueFormatter?: (value: number) => string;
|
|
1862
1878
|
dateFormatter?: (iso: string) => string;
|
|
1879
|
+
/** Reserve matching space opposite the y-axis so the plotted region stays centered. */
|
|
1880
|
+
balanceYAxis?: boolean;
|
|
1881
|
+
/** Width reserved for y-axis tick labels in the full chart variant. */
|
|
1882
|
+
yAxisWidth?: number;
|
|
1883
|
+
/** Use whole-number y-axis ticks for count-based metrics. */
|
|
1884
|
+
integerYAxis?: boolean;
|
|
1863
1885
|
className?: string;
|
|
1864
1886
|
}
|
|
1865
1887
|
|
|
1888
|
+
declare interface MetricAreaChartSeries {
|
|
1889
|
+
key: string;
|
|
1890
|
+
label: string;
|
|
1891
|
+
color: string;
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1866
1894
|
export declare function MetricCard({ label, value, subtitle, density, className, onClick, children, }: MetricCardProps): JSX.Element;
|
|
1867
1895
|
|
|
1868
1896
|
declare interface MetricCardProps {
|
|
@@ -2669,6 +2697,12 @@ export declare const RadioGroup: React_2.ForwardRefExoticComponent<Omit<RadioGro
|
|
|
2669
2697
|
|
|
2670
2698
|
export declare const RadioGroupItem: React_2.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
2671
2699
|
|
|
2700
|
+
/**
|
|
2701
|
+
* Keep mention identity attached to an unchanged text range. An edit that
|
|
2702
|
+
* overlaps a mention invalidates it; edits before a mention shift its range.
|
|
2703
|
+
*/
|
|
2704
|
+
export declare function reconcileTrackedMentions(previousValue: string, nextValue: string, mentions: TrackedMention[]): TrackedMention[];
|
|
2705
|
+
|
|
2672
2706
|
export declare function RelativeTimeCell({ primary, secondary, className, }: {
|
|
2673
2707
|
primary: React_2.ReactNode;
|
|
2674
2708
|
secondary?: React_2.ReactNode;
|
|
@@ -3791,6 +3825,15 @@ export declare const TooltipProvider: React_2.FC<TooltipPrimitive.TooltipProvide
|
|
|
3791
3825
|
|
|
3792
3826
|
export declare const TooltipTrigger: React_2.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
3793
3827
|
|
|
3828
|
+
export declare type TrackedMention = {
|
|
3829
|
+
recipientId: string;
|
|
3830
|
+
displayName: string;
|
|
3831
|
+
start: number;
|
|
3832
|
+
end: number;
|
|
3833
|
+
};
|
|
3834
|
+
|
|
3835
|
+
export declare function trackedMentionRecipientIds(mentions: TrackedMention[]): string[];
|
|
3836
|
+
|
|
3794
3837
|
export declare function TrendBadge({ value, invertColors }: TrendBadgeProps): JSX.Element;
|
|
3795
3838
|
|
|
3796
3839
|
declare interface TrendBadgeProps {
|
|
@@ -3817,7 +3860,7 @@ declare interface TrendBadgeProps {
|
|
|
3817
3860
|
* </TruncatedText>
|
|
3818
3861
|
* ```
|
|
3819
3862
|
*/
|
|
3820
|
-
export declare function TruncatedText({ asChild, tooltip, side, className, children, ref: forwardedRef, ...props }: TruncatedTextProps): JSX.Element;
|
|
3863
|
+
export declare function TruncatedText({ asChild, tooltip, side, lines, className, children, ref: forwardedRef, style: propStyle, ...props }: TruncatedTextProps): JSX.Element;
|
|
3821
3864
|
|
|
3822
3865
|
declare type TruncatedTextProps = ComponentProps<'span'> & {
|
|
3823
3866
|
/**
|
|
@@ -3832,6 +3875,9 @@ declare type TruncatedTextProps = ComponentProps<'span'> & {
|
|
|
3832
3875
|
tooltip?: ReactNode;
|
|
3833
3876
|
/** Tooltip side; forwarded to `TooltipContent`. */
|
|
3834
3877
|
side?: ComponentProps<typeof TooltipContent>['side'];
|
|
3878
|
+
/** Number of visible lines. Multi-line text gets the same clipped-only
|
|
3879
|
+
* tooltip behavior as the standard single-line treatment. */
|
|
3880
|
+
lines?: number;
|
|
3835
3881
|
};
|
|
3836
3882
|
|
|
3837
3883
|
export declare function useAppClassName(): string | undefined;
|