@acronis-platform/ui-react 0.25.2 → 0.28.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/dist/components/ui/{button-dropdown/button-dropdown.js → button-menu/button-menu.js} +15 -15
- package/dist/components/ui/button-menu/button-menu.js.map +1 -0
- package/dist/components/ui/card-filter/card-filter.js +63 -0
- package/dist/components/ui/card-filter/card-filter.js.map +1 -0
- package/dist/components/ui/input-text/input-text.js +87 -0
- package/dist/components/ui/input-text/input-text.js.map +1 -0
- package/dist/index.js +80 -75
- package/dist/index.js.map +1 -1
- package/dist/react.js +80 -75
- package/dist/react.js.map +1 -1
- package/dist/src/components/ui/{button-dropdown/button-dropdown.d.ts → button-menu/button-menu.d.ts} +4 -4
- package/dist/src/components/ui/button-menu/index.d.ts +1 -0
- package/dist/src/components/ui/card-filter/card-filter.d.ts +27 -0
- package/dist/src/components/ui/card-filter/index.d.ts +1 -0
- package/dist/src/components/ui/input-text/index.d.ts +1 -0
- package/dist/src/components/ui/input-text/input-text.d.ts +20 -0
- package/dist/src/index.d.ts +3 -1
- package/dist/ui-react.css +1 -1
- package/package.json +3 -3
- package/dist/components/ui/button-dropdown/button-dropdown.js.map +0 -1
- package/dist/src/components/ui/button-dropdown/index.d.ts +0 -1
package/dist/react.js
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
import { cn as a } from "./lib/utils.js";
|
|
2
2
|
import { Avatar as t, AvatarFallback as i, AvatarGroup as n, AvatarImage as d, avatarVariants as S } from "./components/ui/avatar/avatar.js";
|
|
3
|
-
import { Breadcrumb as m, BreadcrumbEllipsis as c, BreadcrumbItem as u, BreadcrumbLink as p, BreadcrumbList as l, BreadcrumbPage as
|
|
4
|
-
import { Button as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
3
|
+
import { Breadcrumb as m, BreadcrumbEllipsis as c, BreadcrumbItem as u, BreadcrumbLink as p, BreadcrumbList as l, BreadcrumbPage as x, BreadcrumbSeparator as y } from "./components/ui/breadcrumb/breadcrumb.js";
|
|
4
|
+
import { Button as s, buttonVariants as I } from "./components/ui/button/button.js";
|
|
5
|
+
import { ButtonMenu as M, buttonMenuVariants as P } from "./components/ui/button-menu/button-menu.js";
|
|
6
|
+
import { CardFilter as B, cardFilterVariants as C } from "./components/ui/card-filter/card-filter.js";
|
|
7
|
+
import { Checkbox as v } from "./components/ui/checkbox/checkbox.js";
|
|
8
|
+
import { Radio as A, RadioGroup as F } from "./components/ui/radio/radio.js";
|
|
9
|
+
import { Input as h } from "./components/ui/input/input.js";
|
|
10
|
+
import { InputText as k } from "./components/ui/input-text/input-text.js";
|
|
11
|
+
import { InputTextArea as E } from "./components/ui/input-text-area/input-text-area.js";
|
|
12
|
+
import { Search as w } from "./components/ui/search/search.js";
|
|
13
|
+
import { SearchGlobal as q } from "./components/ui/search-global/search-global.js";
|
|
14
|
+
import { Select as J, SelectContent as K, SelectGroup as N, SelectGroupLabel as O, SelectItem as Q, SelectTrigger as U, SelectValue as W } from "./components/ui/select/select.js";
|
|
15
|
+
import { ResizableHandle as Y, ResizablePanel as Z, ResizablePanelGroup as _ } from "./components/ui/resizable/resizable.js";
|
|
16
|
+
import { SidebarPrimary as rr, SidebarPrimaryCollapseTrigger as er, SidebarPrimaryContent as ar, SidebarPrimaryFooter as or, SidebarPrimaryHeader as tr, SidebarPrimaryMenu as ir, SidebarPrimaryMenuItem as nr, SidebarPrimaryMenuItemExtras as dr, SidebarPrimarySection as Sr, sidebarPrimaryMenuItemVariants as br } from "./components/ui/sidebar-primary/sidebar-primary.js";
|
|
17
|
+
import { SidebarSecondary as cr, SidebarSecondaryCollapseTrigger as ur, SidebarSecondaryCollapsedBreadcrumb as pr, SidebarSecondaryContent as lr, SidebarSecondaryFooter as xr, SidebarSecondaryHeader as yr, SidebarSecondaryMenu as fr, SidebarSecondaryMenuItem as sr, SidebarSecondaryMenuItemExtras as Ir, SidebarSecondaryMenuSub as gr, SidebarSecondaryMenuSubContent as Mr, SidebarSecondaryMenuSubItem as Pr, SidebarSecondaryMenuSubTrigger as Tr, SidebarSecondarySection as Br, SidebarSecondarySectionLabel as Cr, sidebarSecondaryMenuItemVariants as Vr } from "./components/ui/sidebar-secondary/sidebar-secondary.js";
|
|
18
|
+
import { ButtonIcon as Gr, buttonIconVariants as Ar } from "./components/ui/button-icon/button-icon.js";
|
|
19
|
+
import { Switch as Rr } from "./components/ui/switch/switch.js";
|
|
20
|
+
import { Tooltip as Lr, TooltipContent as kr, TooltipProvider as zr, TooltipTrigger as Er } from "./components/ui/tooltip/tooltip.js";
|
|
21
|
+
import { Tag as wr, tagVariants as jr } from "./components/ui/tag/tag.js";
|
|
20
22
|
export {
|
|
21
23
|
t as Avatar,
|
|
22
24
|
i as AvatarFallback,
|
|
@@ -27,65 +29,68 @@ export {
|
|
|
27
29
|
u as BreadcrumbItem,
|
|
28
30
|
p as BreadcrumbLink,
|
|
29
31
|
l as BreadcrumbList,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
h as
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
32
|
+
x as BreadcrumbPage,
|
|
33
|
+
y as BreadcrumbSeparator,
|
|
34
|
+
s as Button,
|
|
35
|
+
Gr as ButtonIcon,
|
|
36
|
+
M as ButtonMenu,
|
|
37
|
+
B as CardFilter,
|
|
38
|
+
v as Checkbox,
|
|
39
|
+
h as Input,
|
|
40
|
+
k as InputText,
|
|
41
|
+
E as InputTextArea,
|
|
42
|
+
A as Radio,
|
|
43
|
+
F as RadioGroup,
|
|
44
|
+
Y as ResizableHandle,
|
|
45
|
+
Z as ResizablePanel,
|
|
46
|
+
_ as ResizablePanelGroup,
|
|
47
|
+
w as Search,
|
|
48
|
+
q as SearchGlobal,
|
|
49
|
+
J as Select,
|
|
50
|
+
K as SelectContent,
|
|
51
|
+
N as SelectGroup,
|
|
52
|
+
O as SelectGroupLabel,
|
|
53
|
+
Q as SelectItem,
|
|
54
|
+
U as SelectTrigger,
|
|
55
|
+
W as SelectValue,
|
|
56
|
+
rr as SidebarPrimary,
|
|
57
|
+
er as SidebarPrimaryCollapseTrigger,
|
|
58
|
+
ar as SidebarPrimaryContent,
|
|
59
|
+
or as SidebarPrimaryFooter,
|
|
60
|
+
tr as SidebarPrimaryHeader,
|
|
61
|
+
ir as SidebarPrimaryMenu,
|
|
62
|
+
nr as SidebarPrimaryMenuItem,
|
|
63
|
+
dr as SidebarPrimaryMenuItemExtras,
|
|
64
|
+
Sr as SidebarPrimarySection,
|
|
65
|
+
cr as SidebarSecondary,
|
|
66
|
+
ur as SidebarSecondaryCollapseTrigger,
|
|
67
|
+
pr as SidebarSecondaryCollapsedBreadcrumb,
|
|
68
|
+
lr as SidebarSecondaryContent,
|
|
69
|
+
xr as SidebarSecondaryFooter,
|
|
70
|
+
yr as SidebarSecondaryHeader,
|
|
71
|
+
fr as SidebarSecondaryMenu,
|
|
72
|
+
sr as SidebarSecondaryMenuItem,
|
|
73
|
+
Ir as SidebarSecondaryMenuItemExtras,
|
|
74
|
+
gr as SidebarSecondaryMenuSub,
|
|
75
|
+
Mr as SidebarSecondaryMenuSubContent,
|
|
76
|
+
Pr as SidebarSecondaryMenuSubItem,
|
|
77
|
+
Tr as SidebarSecondaryMenuSubTrigger,
|
|
78
|
+
Br as SidebarSecondarySection,
|
|
79
|
+
Cr as SidebarSecondarySectionLabel,
|
|
80
|
+
Rr as Switch,
|
|
81
|
+
wr as Tag,
|
|
82
|
+
Lr as Tooltip,
|
|
83
|
+
kr as TooltipContent,
|
|
84
|
+
zr as TooltipProvider,
|
|
85
|
+
Er as TooltipTrigger,
|
|
82
86
|
S as avatarVariants,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
87
|
+
Ar as buttonIconVariants,
|
|
88
|
+
P as buttonMenuVariants,
|
|
89
|
+
I as buttonVariants,
|
|
90
|
+
C as cardFilterVariants,
|
|
86
91
|
a as cn,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
92
|
+
br as sidebarPrimaryMenuItemVariants,
|
|
93
|
+
Vr as sidebarSecondaryMenuItemVariants,
|
|
94
|
+
jr as tagVariants
|
|
90
95
|
};
|
|
91
96
|
//# sourceMappingURL=react.js.map
|
package/dist/react.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"react.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/src/components/ui/{button-dropdown/button-dropdown.d.ts → button-menu/button-menu.d.ts}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useRender } from '@base-ui/react/use-render';
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
declare const
|
|
4
|
+
declare const buttonMenuVariants: (props?: ({
|
|
5
5
|
variant?: "secondary" | "primary" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
-
export interface
|
|
7
|
+
export interface ButtonMenuProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children'>, VariantProps<typeof buttonMenuVariants> {
|
|
8
8
|
/**
|
|
9
9
|
* Whether the associated menu is open. Flips the trailing chevron
|
|
10
10
|
* (down → up), applies the open (`*-active`) treatment, and reflects
|
|
@@ -25,5 +25,5 @@ export interface ButtonDropdownProps extends Omit<React.ButtonHTMLAttributes<HTM
|
|
|
25
25
|
* points up while `open`. Pair it with the menu/popover it controls and keep
|
|
26
26
|
* the `open` prop in sync.
|
|
27
27
|
*/
|
|
28
|
-
declare const
|
|
29
|
-
export {
|
|
28
|
+
declare const ButtonMenu: React.ForwardRefExoticComponent<ButtonMenuProps & React.RefAttributes<HTMLButtonElement>>;
|
|
29
|
+
export { ButtonMenu, buttonMenuVariants };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ButtonMenu, buttonMenuVariants, type ButtonMenuProps, } from './button-menu';
|
|
@@ -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';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { InputText, type InputTextProps } from './input-text';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface InputTextProps extends Omit<React.ComponentPropsWithoutRef<'input'>, 'children'> {
|
|
3
|
+
/** Field label, rendered above the input. */
|
|
4
|
+
label?: React.ReactNode;
|
|
5
|
+
/** Marks the field required — appends a `*` after the label. */
|
|
6
|
+
required?: boolean;
|
|
7
|
+
/** Helper text below the input. Hidden while `error` is set. */
|
|
8
|
+
description?: React.ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* Error message below the input. Its presence switches the field to the error
|
|
11
|
+
* treatment (red box border + red message).
|
|
12
|
+
*/
|
|
13
|
+
error?: React.ReactNode;
|
|
14
|
+
/** Show a clear (✕) button while the (controlled) field has a value. */
|
|
15
|
+
clearable?: boolean;
|
|
16
|
+
/** Called when the clear button is activated. */
|
|
17
|
+
onClear?: () => void;
|
|
18
|
+
}
|
|
19
|
+
declare const InputText: React.ForwardRefExoticComponent<InputTextProps & React.RefAttributes<HTMLInputElement>>;
|
|
20
|
+
export { InputText };
|
package/dist/src/index.d.ts
CHANGED
|
@@ -2,10 +2,12 @@ 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-
|
|
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';
|
|
10
|
+
export * from './components/ui/input-text';
|
|
9
11
|
export * from './components/ui/input-text-area';
|
|
10
12
|
export * from './components/ui/search';
|
|
11
13
|
export * from './components/ui/search-global';
|