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