florixui 1.1.0 → 1.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.
@@ -0,0 +1,12 @@
1
+ import * as React from "react";
2
+ export interface DefRowProps extends React.ComponentProps<"div"> {
3
+ /** Muted label on the left. */
4
+ label: React.ReactNode;
5
+ /** Value on the right. */
6
+ value: React.ReactNode;
7
+ }
8
+ /**
9
+ * A definition row — a muted `label` on the left and a `value` on the right —
10
+ * for key/value detail cards. Stack several inside a `divide-y` container.
11
+ */
12
+ export declare function DefRow({ label, value, className, ...props }: DefRowProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,15 @@
1
+ import * as React from "react";
2
+ export interface QuickStatProps extends React.ComponentProps<"div"> {
3
+ /** Leading icon (auto-sized to 1rem). */
4
+ icon?: React.ReactNode;
5
+ /** The figure, e.g. "$960.99" or 982. */
6
+ value: React.ReactNode;
7
+ /** Muted trailing label, e.g. "in stock", "sold". */
8
+ label?: React.ReactNode;
9
+ }
10
+ /**
11
+ * A compact inline stat — a muted icon, a bold value, and an optional muted
12
+ * label — for header metric rows and toolbars. Line several up with vertical
13
+ * separators between them.
14
+ */
15
+ export declare function QuickStat({ icon, value, label, className, ...props }: QuickStatProps): import("react/jsx-runtime").JSX.Element;
@@ -4,7 +4,13 @@ declare const buttonVariants: (props?: ({
4
4
  variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | null | undefined;
5
5
  size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
- declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
7
+ declare function Button({ className, variant, size, asChild, loading, startItem, endItem, disabled, children, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
8
8
  asChild?: boolean;
9
+ /** Show a spinner (replacing `startItem`) and disable the button. */
10
+ loading?: boolean;
11
+ /** Content rendered before the label (e.g. an icon). */
12
+ startItem?: React.ReactNode;
13
+ /** Content rendered after the label (e.g. an icon or count). */
14
+ endItem?: React.ReactNode;
9
15
  }): import("react/jsx-runtime").JSX.Element;
10
16
  export { Button, buttonVariants };
@@ -3,7 +3,7 @@ import { Tabs as TabsPrimitive } from 'radix-ui';
3
3
  import * as React from "react";
4
4
  declare function Tabs({ className, orientation, ...props }: React.ComponentProps<typeof TabsPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
5
5
  declare const tabsListVariants: (props?: ({
6
- variant?: "default" | "line" | null | undefined;
6
+ variant?: "line" | "default" | null | undefined;
7
7
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
8
  declare function TabsList({ className, variant, ...props }: React.ComponentProps<typeof TabsPrimitive.List> & VariantProps<typeof tabsListVariants>): import("react/jsx-runtime").JSX.Element;
9
9
  declare function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;