@tetrascience-npm/tetrascience-react-ui 0.5.0-beta.45.1 → 0.5.0-beta.47.1
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/components/composed/StatCard/StatCard.cjs +2 -0
- package/dist/components/composed/StatCard/StatCard.cjs.map +1 -0
- package/dist/components/composed/StatCard/StatCard.js +41 -0
- package/dist/components/composed/StatCard/StatCard.js.map +1 -0
- package/dist/components/ui/banner.cjs +2 -0
- package/dist/components/ui/banner.cjs.map +1 -0
- package/dist/components/ui/banner.js +80 -0
- package/dist/components/ui/banner.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +36 -3
- package/dist/index.js +590 -585
- package/dist/index.js.map +1 -1
- package/dist/index.tailwind.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -242,6 +242,18 @@ export declare const badgeVariants: (props?: ({
|
|
|
242
242
|
variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | "info" | "positive" | "warning" | null | undefined;
|
|
243
243
|
} & ClassProp) | undefined) => string;
|
|
244
244
|
|
|
245
|
+
export declare function Banner({ variant, title, description, action, dismissible, onDismiss, className, children, role, "aria-live": ariaLive, ...props }: BannerProps): JSX.Element;
|
|
246
|
+
|
|
247
|
+
export declare type BannerProps = React_2.ComponentProps<"div"> & VariantProps<typeof bannerVariants> & DismissibleProps & {
|
|
248
|
+
title?: React_2.ReactNode;
|
|
249
|
+
description?: React_2.ReactNode;
|
|
250
|
+
action?: React_2.ReactNode;
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
export declare const bannerVariants: (props?: ({
|
|
254
|
+
variant?: "destructive" | "info" | "positive" | "warning" | null | undefined;
|
|
255
|
+
} & ClassProp) | undefined) => string;
|
|
256
|
+
|
|
245
257
|
export declare interface BarDataSeries {
|
|
246
258
|
x: number[];
|
|
247
259
|
y: number[];
|
|
@@ -368,7 +380,7 @@ export declare const buttonGroupVariants: (props?: ({
|
|
|
368
380
|
|
|
369
381
|
export declare const buttonVariants: (props?: ({
|
|
370
382
|
variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | null | undefined;
|
|
371
|
-
size?: "default" | "
|
|
383
|
+
size?: "default" | "sm" | "icon" | "xs" | "lg" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
372
384
|
} & ClassProp) | undefined) => string;
|
|
373
385
|
|
|
374
386
|
export declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, locale, formatters, components, ...props }: React_2.ComponentProps<typeof DayPicker> & {
|
|
@@ -1181,6 +1193,14 @@ export declare function DialogTitle({ className, ...props }: React_2.ComponentPr
|
|
|
1181
1193
|
|
|
1182
1194
|
export declare function DialogTrigger({ ...props }: React_2.ComponentProps<typeof Dialog_2.Trigger>): JSX.Element;
|
|
1183
1195
|
|
|
1196
|
+
declare type DismissibleProps = {
|
|
1197
|
+
dismissible: true;
|
|
1198
|
+
onDismiss: () => void;
|
|
1199
|
+
} | {
|
|
1200
|
+
dismissible?: false;
|
|
1201
|
+
onDismiss?: never;
|
|
1202
|
+
};
|
|
1203
|
+
|
|
1184
1204
|
export declare const DotPlot: default_2.FC<DotPlotProps>;
|
|
1185
1205
|
|
|
1186
1206
|
export declare interface DotPlotDataSeries {
|
|
@@ -1501,7 +1521,7 @@ declare const inputGroupAddonVariants: (props?: ({
|
|
|
1501
1521
|
export declare function InputGroupButton({ className, type, variant, size, ...props }: Omit<React_2.ComponentProps<typeof Button>, "size"> & VariantProps<typeof inputGroupButtonVariants>): JSX.Element;
|
|
1502
1522
|
|
|
1503
1523
|
declare const inputGroupButtonVariants: (props?: ({
|
|
1504
|
-
size?: "
|
|
1524
|
+
size?: "sm" | "xs" | "icon-xs" | "icon-sm" | null | undefined;
|
|
1505
1525
|
} & ClassProp) | undefined) => string;
|
|
1506
1526
|
|
|
1507
1527
|
export declare function InputGroupInput({ className, ...props }: React_2.ComponentProps<"input">): JSX.Element;
|
|
@@ -1550,7 +1570,7 @@ export declare function ItemTitle({ className, ...props }: React_2.ComponentProp
|
|
|
1550
1570
|
|
|
1551
1571
|
declare const itemVariants: (props?: ({
|
|
1552
1572
|
variant?: "default" | "outline" | "muted" | null | undefined;
|
|
1553
|
-
size?: "default" | "
|
|
1573
|
+
size?: "default" | "sm" | "xs" | null | undefined;
|
|
1554
1574
|
} & ClassProp) | undefined) => string;
|
|
1555
1575
|
|
|
1556
1576
|
export declare function Kbd({ className, ...props }: React.ComponentProps<"kbd">): JSX.Element;
|
|
@@ -2690,6 +2710,19 @@ export declare const spinnerVariants: (props?: ({
|
|
|
2690
2710
|
size?: "default" | "sm" | "lg" | "md" | null | undefined;
|
|
2691
2711
|
} & ClassProp) | undefined) => string;
|
|
2692
2712
|
|
|
2713
|
+
export declare function StatCard({ label, value, delta, deltaLabel, trend, description, className, ...props }: StatCardProps): JSX.Element;
|
|
2714
|
+
|
|
2715
|
+
export declare interface StatCardProps extends React_2.ComponentProps<"div"> {
|
|
2716
|
+
label: string;
|
|
2717
|
+
value: string | number;
|
|
2718
|
+
delta?: string | number;
|
|
2719
|
+
deltaLabel?: string;
|
|
2720
|
+
trend?: StatCardTrend;
|
|
2721
|
+
description?: string;
|
|
2722
|
+
}
|
|
2723
|
+
|
|
2724
|
+
export declare type StatCardTrend = "up" | "down" | "neutral";
|
|
2725
|
+
|
|
2693
2726
|
/** Built-in Lucide spinner icons that pair well with ts-spin-pulse animation. */
|
|
2694
2727
|
export declare const STREAM_STATUS_ICONS: {
|
|
2695
2728
|
readonly loader: JSX.Element;
|