florixui 1.5.0 → 1.6.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/README.md +14 -0
- package/dist/components/custom/alert-card.d.ts +38 -0
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/card.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +851 -742
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -243,6 +243,20 @@ Displays a short, important message that draws attention without interrupting th
|
|
|
243
243
|
</Alert>
|
|
244
244
|
```
|
|
245
245
|
|
|
246
|
+
### Alert Card
|
|
247
|
+
|
|
248
|
+
A higher-level alert with two looks — filled (soft tinted background) and outline (bordered card with an icon box and actions) — across four severities. Theme-aware: severities map to the blue / orange / red / green tokens.
|
|
249
|
+
|
|
250
|
+
```tsx
|
|
251
|
+
<AlertCard
|
|
252
|
+
variant="filled"
|
|
253
|
+
severity="info"
|
|
254
|
+
title="New update"
|
|
255
|
+
description="v2.4.0 is ready. Restart to apply."
|
|
256
|
+
dismissible
|
|
257
|
+
/>
|
|
258
|
+
```
|
|
259
|
+
|
|
246
260
|
### Alert Dialog
|
|
247
261
|
|
|
248
262
|
A modal dialog that interrupts the user with important content and expects a confirm or cancel response before continuing.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Button } from '../ui/button';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export type AlertSeverity = "info" | "warning" | "error" | "success";
|
|
4
|
+
export type AlertCardVariant = "filled" | "outline";
|
|
5
|
+
export interface AlertCardProps extends Omit<React.ComponentProps<"div">, "title"> {
|
|
6
|
+
/** Severity — sets the accent color and default icon. */
|
|
7
|
+
severity?: AlertSeverity;
|
|
8
|
+
/**
|
|
9
|
+
* - `filled`: a soft tinted background (compact).
|
|
10
|
+
* - `outline`: a bordered card with an icon box and room for actions.
|
|
11
|
+
*/
|
|
12
|
+
variant?: AlertCardVariant;
|
|
13
|
+
/** Override the default severity icon. */
|
|
14
|
+
icon?: React.ReactNode;
|
|
15
|
+
/** Heading. */
|
|
16
|
+
title?: React.ReactNode;
|
|
17
|
+
/** Supporting text. */
|
|
18
|
+
description?: React.ReactNode;
|
|
19
|
+
/** Small badge beside the title (outline variant). */
|
|
20
|
+
badge?: React.ReactNode;
|
|
21
|
+
/** Action buttons rendered below the description (outline variant). */
|
|
22
|
+
actions?: React.ReactNode;
|
|
23
|
+
/** Show a dismiss (×) button. */
|
|
24
|
+
dismissible?: boolean;
|
|
25
|
+
/** Called when the dismiss button is clicked. */
|
|
26
|
+
onDismiss?: () => void;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* A higher-level alert with two looks — `filled` (soft tinted background) and
|
|
30
|
+
* `outline` (bordered card with an icon box and actions) — across four
|
|
31
|
+
* severities (info / warning / error / success). Theme-aware: severities map to
|
|
32
|
+
* the blue / orange / red / green tokens.
|
|
33
|
+
*/
|
|
34
|
+
export declare function AlertCard({ severity, variant, icon, title, description, badge, actions, dismissible, onDismiss, className, ...props }: AlertCardProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
/** A primary action button tinted to the alert's severity. */
|
|
36
|
+
export declare function AlertCardAction({ severity, className, ...props }: React.ComponentProps<typeof Button> & {
|
|
37
|
+
severity?: AlertSeverity;
|
|
38
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const badgeVariants: (props?: ({
|
|
4
|
-
variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | "
|
|
4
|
+
variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | "red" | "orange" | "yellow" | "green" | "teal" | "cyan" | "blue" | "purple" | "pink" | "gray" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
|
|
7
7
|
asChild?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const cardVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "alt" | "
|
|
4
|
+
variant?: "default" | "alt" | "warning" | "success" | "primary" | "danger" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
declare function Card({ className, size, variant, ...props }: React.ComponentProps<"div"> & {
|
|
7
7
|
size?: "default" | "sm";
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export { cn } from './lib/utils';
|
|
|
2
2
|
export { useFileUpload, formatBytes, type FileMetadata, type FileWithPreview, type FileUploadOptions, type FileUploadState, type FileUploadActions, } from './lib/use-file-upload';
|
|
3
3
|
export * from './components/custom/actions-menu';
|
|
4
4
|
export * from './components/custom/advanced-input';
|
|
5
|
+
export * from './components/custom/alert-card';
|
|
5
6
|
export * from './components/custom/file-upload';
|
|
6
7
|
export * from './components/custom/advanced-select';
|
|
7
8
|
export * from './components/custom/data-table';
|