florixui 1.3.0 → 1.3.2
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/custom/status-list.d.ts +47 -0
- package/dist/components/ui/card.d.ts +7 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.js +468 -333
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export type StatusListTone = "neutral" | "primary" | "success" | "warning" | "danger";
|
|
3
|
+
/** How the right-side status renders. */
|
|
4
|
+
export type StatusVariant = "pill" | "outline" | "text";
|
|
5
|
+
/** A soft, tone-tinted rounded-square icon box (the gateway-row style). */
|
|
6
|
+
export declare function StatusIcon({ tone, className, children, }: {
|
|
7
|
+
tone?: StatusListTone;
|
|
8
|
+
className?: string;
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
/** A circular avatar — an image, or tone-tinted initials fallback. */
|
|
12
|
+
export declare function StatusAvatar({ src, name, tone, className, }: {
|
|
13
|
+
src?: string;
|
|
14
|
+
name: string;
|
|
15
|
+
tone?: StatusListTone;
|
|
16
|
+
className?: string;
|
|
17
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare function StatusList({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
/** An uppercase group header with an optional count, e.g. "WORKERS (2)". */
|
|
20
|
+
export declare function StatusListGroup({ label, count, className, children, ...props }: React.ComponentProps<"div"> & {
|
|
21
|
+
label: React.ReactNode;
|
|
22
|
+
count?: number;
|
|
23
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export interface StatusListItemProps extends Omit<React.ComponentProps<"div">, "title"> {
|
|
25
|
+
/** Leading visual — pass a `StatusIcon`, `StatusAvatar`, or any node. */
|
|
26
|
+
media?: React.ReactNode;
|
|
27
|
+
/** Primary label. */
|
|
28
|
+
title: React.ReactNode;
|
|
29
|
+
/** Muted secondary line. */
|
|
30
|
+
description?: React.ReactNode;
|
|
31
|
+
/** Status text shown on the right. */
|
|
32
|
+
status?: React.ReactNode;
|
|
33
|
+
/** How the status renders: filled pill, outline pill, or plain text. */
|
|
34
|
+
statusVariant?: StatusVariant;
|
|
35
|
+
/** Extra muted text before the status (e.g. "3 min open"). */
|
|
36
|
+
hint?: React.ReactNode;
|
|
37
|
+
/** Tone — tints the status, hint, and (when `active`) the row background. */
|
|
38
|
+
tone?: StatusListTone;
|
|
39
|
+
/** Highlight the row with a soft tinted background + ring. */
|
|
40
|
+
active?: boolean;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* A single status row: a leading visual (`media`), a title + description, and a
|
|
44
|
+
* right-side status (`pill`, `outline`, or `text`). Set `active` to highlight
|
|
45
|
+
* the row, and `tone` to color the status/hint/highlight.
|
|
46
|
+
*/
|
|
47
|
+
export declare function StatusListItem({ media, title, description, status, statusVariant, hint, tone, active, className, ...props }: StatusListItemProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
1
2
|
import * as React from "react";
|
|
2
|
-
declare
|
|
3
|
+
declare const cardVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "alt" | "primary" | "success" | "warning" | "danger" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
declare function Card({ className, size, variant, ...props }: React.ComponentProps<"div"> & {
|
|
3
7
|
size?: "default" | "sm";
|
|
4
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
} & VariantProps<typeof cardVariants>): import("react/jsx-runtime").JSX.Element;
|
|
5
9
|
declare function CardHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
6
10
|
declare function CardTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
7
11
|
declare function CardDescription({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
8
12
|
declare function CardAction({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
9
13
|
declare function CardContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
10
14
|
declare function CardFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, };
|
|
15
|
+
export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, cardVariants, };
|
package/dist/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export * from './components/custom/quick-stat';
|
|
|
14
14
|
export * from './components/custom/sensor-card';
|
|
15
15
|
export * from './components/custom/side-sheet';
|
|
16
16
|
export * from './components/custom/stat-card';
|
|
17
|
+
export * from './components/custom/status-list';
|
|
17
18
|
export * from './components/custom/date-time-range-picker';
|
|
18
19
|
export { presetToRange, navigateRange, } from './components/custom/date-time-range-picker-utils';
|
|
19
20
|
export * from './components/ui/alert';
|