florixui 1.9.0 → 1.10.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.
- package/README.md +10 -0
- package/dist/components/custom/divider.d.ts +31 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +596 -412
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -577,6 +577,16 @@ A modal window overlaid on the page that interrupts the user to require a respon
|
|
|
577
577
|
</Dialog>
|
|
578
578
|
```
|
|
579
579
|
|
|
580
|
+
### Divider
|
|
581
|
+
|
|
582
|
+
A separator that can carry a label, a count badge, and an icon — with start / center / end label positions, color and thickness variants, and a vertical orientation. For a plain rule, use Separator.
|
|
583
|
+
|
|
584
|
+
```tsx
|
|
585
|
+
<Divider label="Trigger Settings" labelPosition="start" />
|
|
586
|
+
<Divider label="Or continue with" labelPosition="center" />
|
|
587
|
+
<Divider label="Section end" labelPosition="end" />
|
|
588
|
+
```
|
|
589
|
+
|
|
580
590
|
### Dropdown Menu
|
|
581
591
|
|
|
582
592
|
Displays a menu of actions or options triggered by a button, built on Radix UI with full keyboard and focus support.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const dividerVariants: (props?: ({
|
|
3
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
4
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
5
|
+
export interface DividerProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "color"> {
|
|
6
|
+
/** Label text shown in the divider. */
|
|
7
|
+
label?: React.ReactNode;
|
|
8
|
+
/** Optional count rendered as a badge after the label. */
|
|
9
|
+
count?: number;
|
|
10
|
+
/** Tint for the line, label, and count. */
|
|
11
|
+
color?: "default" | "primary" | "muted";
|
|
12
|
+
/** Line weight. */
|
|
13
|
+
thickness?: "thin" | "medium" | "thick";
|
|
14
|
+
/** Size of the label text. */
|
|
15
|
+
labelSize?: "sm" | "md" | "lg";
|
|
16
|
+
/** Where the label sits along a horizontal divider. */
|
|
17
|
+
labelPosition?: "start" | "center" | "end";
|
|
18
|
+
/** Divider orientation. */
|
|
19
|
+
orientation?: "horizontal" | "vertical";
|
|
20
|
+
/** Height for a vertical divider (e.g. "h-11", "h-full"). */
|
|
21
|
+
height?: string;
|
|
22
|
+
/** Optional icon shown before the label (horizontal, start position). */
|
|
23
|
+
icon?: React.ReactNode;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* A separator that can carry a `label`, a `count` badge, and an `icon`. Supports
|
|
27
|
+
* `start` / `center` / `end` label positions, `color` and `thickness` variants,
|
|
28
|
+
* and a `vertical` orientation. For a plain rule with no label, use `Separator`.
|
|
29
|
+
*/
|
|
30
|
+
declare function Divider({ className, label, count, color, thickness, labelSize, labelPosition, orientation, height, icon, ...props }: DividerProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export { Divider, dividerVariants };
|
package/dist/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export * from './components/custom/confirm-prompt';
|
|
|
14
14
|
export * from './components/custom/custom-tabs';
|
|
15
15
|
export * from './components/custom/data-cell';
|
|
16
16
|
export * from './components/custom/def-row';
|
|
17
|
+
export * from './components/custom/divider';
|
|
17
18
|
export * from './components/custom/empty-state';
|
|
18
19
|
export * from './components/custom/faceted-filter';
|
|
19
20
|
export * from './components/custom/list-card';
|