@acronis-platform/ui-react 0.25.1 → 0.27.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,27 @@
1
+ import { useRender } from '@base-ui/react/use-render';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ import * as React from 'react';
4
+ declare const cardFilterVariants: (props?: ({
5
+ variant?: "static" | "static-empty" | "clickable" | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ export interface CardFilterProps extends Omit<React.HTMLAttributes<HTMLElement>, 'children'>, VariantProps<typeof cardFilterVariants> {
8
+ /** Caption shown above the value. */
9
+ label?: React.ReactNode;
10
+ /** The large value. Ignored for `variant="static-empty"` (shows an em-dash). */
11
+ value?: React.ReactNode;
12
+ /** Optional leading icon (16px) rendered before the value. Hidden for `static-empty`. */
13
+ icon?: React.ReactNode;
14
+ /**
15
+ * Replace the rendered element (`<button>` for `clickable`, otherwise `<div>`)
16
+ * with another element or component (Base UI composition) — e.g. a router link
17
+ * for a clickable filter. The component's props and class names are merged onto it.
18
+ */
19
+ render?: useRender.RenderProp;
20
+ }
21
+ /**
22
+ * A compact stat/filter card: a label, an optional icon, and a prominent value.
23
+ * Use `variant="clickable"` for a filter the user can activate (renders a button);
24
+ * `static` / `static-empty` are presentational.
25
+ */
26
+ declare const CardFilter: React.ForwardRefExoticComponent<CardFilterProps & React.RefAttributes<HTMLElement>>;
27
+ export { CardFilter, cardFilterVariants };
@@ -0,0 +1 @@
1
+ export { CardFilter, cardFilterVariants, type CardFilterProps } from './card-filter';
@@ -2,7 +2,8 @@ export { cn } from './lib/utils';
2
2
  export * from './components/ui/avatar';
3
3
  export * from './components/ui/breadcrumb';
4
4
  export * from './components/ui/button';
5
- export * from './components/ui/button-dropdown';
5
+ export * from './components/ui/button-menu';
6
+ export * from './components/ui/card-filter';
6
7
  export * from './components/ui/checkbox';
7
8
  export * from './components/ui/radio';
8
9
  export * from './components/ui/input';