@acronis-platform/ui-react 0.31.0 → 0.33.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/dist/components/ui/input-date-picker/input-date-picker.js +104 -0
- package/dist/components/ui/input-date-picker/input-date-picker.js.map +1 -0
- package/dist/components/ui/link/link.js +39 -0
- package/dist/components/ui/link/link.js.map +1 -0
- package/dist/components/ui/sidebar-primary/sidebar-primary.js +85 -71
- package/dist/components/ui/sidebar-primary/sidebar-primary.js.map +1 -1
- package/dist/components/ui/sidebar-secondary/sidebar-secondary.js +125 -117
- package/dist/components/ui/sidebar-secondary/sidebar-secondary.js.map +1 -1
- package/dist/index.js +91 -87
- package/dist/index.js.map +1 -1
- package/dist/react.js +91 -87
- package/dist/react.js.map +1 -1
- package/dist/src/components/ui/input-date-picker/index.d.ts +1 -0
- package/dist/src/components/ui/input-date-picker/input-date-picker.d.ts +27 -0
- package/dist/src/components/ui/link/index.d.ts +1 -0
- package/dist/src/components/ui/link/link.d.ts +15 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/ui-react.css +1 -1
- package/package.json +3 -3
package/dist/react.js
CHANGED
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
import { cn as t } from "./lib/utils.js";
|
|
2
2
|
import { Avatar as o, AvatarFallback as n, AvatarGroup as S, AvatarImage as i, avatarVariants as c } from "./components/ui/avatar/avatar.js";
|
|
3
|
-
import { Breadcrumb as p, BreadcrumbEllipsis as l, BreadcrumbItem as d, BreadcrumbLink as
|
|
3
|
+
import { Breadcrumb as p, BreadcrumbEllipsis as l, BreadcrumbItem as d, BreadcrumbLink as m, BreadcrumbList as b, BreadcrumbPage as I, BreadcrumbSeparator as s } from "./components/ui/breadcrumb/breadcrumb.js";
|
|
4
4
|
import { Button as y, buttonVariants as f } from "./components/ui/button/button.js";
|
|
5
|
-
import { ButtonMenu as
|
|
5
|
+
import { ButtonMenu as P, buttonMenuVariants as M } from "./components/ui/button-menu/button-menu.js";
|
|
6
6
|
import { CardFilter as C, cardFilterVariants as B } from "./components/ui/card-filter/card-filter.js";
|
|
7
|
-
import { Checkbox as
|
|
7
|
+
import { Checkbox as L } from "./components/ui/checkbox/checkbox.js";
|
|
8
8
|
import { Radio as h, RadioGroup as v } from "./components/ui/radio/radio.js";
|
|
9
|
-
import { Input as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
9
|
+
import { Input as k } from "./components/ui/input/input.js";
|
|
10
|
+
import { InputDatePicker as R } from "./components/ui/input-date-picker/input-date-picker.js";
|
|
11
|
+
import { InputSearch as z } from "./components/ui/input-search/input-search.js";
|
|
12
|
+
import { InputSelect as D, InputSelectContent as w, InputSelectDescription as j, InputSelectError as q, InputSelectField as J, InputSelectGroup as K, InputSelectItem as N, InputSelectLabel as O, InputSelectSearch as Q, InputSelectSection as U, InputSelectSectionLabel as W, InputSelectStatus as X, InputSelectTrigger as Y, InputSelectValue as Z, InputSelect as _, InputSelectContent as $, InputSelectSection as ee, InputSelectSectionLabel as re, InputSelectItem as te, InputSelectTrigger as ae, InputSelectValue as oe } from "./components/ui/input-select/input-select.js";
|
|
13
|
+
import { InputText as Se } from "./components/ui/input-text/input-text.js";
|
|
14
|
+
import { InputTextArea as ce } from "./components/ui/input-text-area/input-text-area.js";
|
|
15
|
+
import { Link as pe } from "./components/ui/link/link.js";
|
|
16
|
+
import { Search as de } from "./components/ui/search/search.js";
|
|
17
|
+
import { SearchGlobal as be } from "./components/ui/search-global/search-global.js";
|
|
18
|
+
import { ResizableHandle as se, ResizablePanel as xe, ResizablePanelGroup as ye } from "./components/ui/resizable/resizable.js";
|
|
19
|
+
import { SidebarPrimary as ge, SidebarPrimaryCollapseTrigger as Pe, SidebarPrimaryContent as Me, SidebarPrimaryFooter as Te, SidebarPrimaryHeader as Ce, SidebarPrimaryMenu as Be, SidebarPrimaryMenuItem as Ve, SidebarPrimaryMenuItemExtras as Le, SidebarPrimarySection as Ge, sidebarPrimaryMenuItemVariants as he } from "./components/ui/sidebar-primary/sidebar-primary.js";
|
|
20
|
+
import { SidebarSecondary as Fe, SidebarSecondaryCollapseTrigger as ke, SidebarSecondaryCollapsedBreadcrumb as Ae, SidebarSecondaryContent as Re, SidebarSecondaryFooter as Ee, SidebarSecondaryHeader as ze, SidebarSecondaryMenu as He, SidebarSecondaryMenuItem as De, SidebarSecondaryMenuItemExtras as we, SidebarSecondaryMenuSub as je, SidebarSecondaryMenuSubContent as qe, SidebarSecondaryMenuSubItem as Je, SidebarSecondaryMenuSubTrigger as Ke, SidebarSecondarySection as Ne, SidebarSecondarySectionLabel as Oe, sidebarSecondaryMenuItemVariants as Qe } from "./components/ui/sidebar-secondary/sidebar-secondary.js";
|
|
21
|
+
import { ButtonIcon as We, buttonIconVariants as Xe } from "./components/ui/button-icon/button-icon.js";
|
|
22
|
+
import { Switch as Ze } from "./components/ui/switch/switch.js";
|
|
23
|
+
import { Tooltip as $e, TooltipContent as er, TooltipProvider as rr, TooltipTrigger as tr } from "./components/ui/tooltip/tooltip.js";
|
|
24
|
+
import { Tag as or, tagVariants as nr } from "./components/ui/tag/tag.js";
|
|
23
25
|
export {
|
|
24
26
|
o as Avatar,
|
|
25
27
|
n as AvatarFallback,
|
|
@@ -28,85 +30,87 @@ export {
|
|
|
28
30
|
p as Breadcrumb,
|
|
29
31
|
l as BreadcrumbEllipsis,
|
|
30
32
|
d as BreadcrumbItem,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
m as BreadcrumbLink,
|
|
34
|
+
b as BreadcrumbList,
|
|
33
35
|
I as BreadcrumbPage,
|
|
34
36
|
s as BreadcrumbSeparator,
|
|
35
37
|
y as Button,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
+
We as ButtonIcon,
|
|
39
|
+
P as ButtonMenu,
|
|
38
40
|
C as CardFilter,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
z as
|
|
43
|
-
|
|
44
|
-
w as
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
Se as
|
|
41
|
+
L as Checkbox,
|
|
42
|
+
k as Input,
|
|
43
|
+
R as InputDatePicker,
|
|
44
|
+
z as InputSearch,
|
|
45
|
+
D as InputSelect,
|
|
46
|
+
w as InputSelectContent,
|
|
47
|
+
j as InputSelectDescription,
|
|
48
|
+
q as InputSelectError,
|
|
49
|
+
J as InputSelectField,
|
|
50
|
+
K as InputSelectGroup,
|
|
51
|
+
N as InputSelectItem,
|
|
52
|
+
O as InputSelectLabel,
|
|
53
|
+
Q as InputSelectSearch,
|
|
54
|
+
U as InputSelectSection,
|
|
55
|
+
W as InputSelectSectionLabel,
|
|
56
|
+
X as InputSelectStatus,
|
|
57
|
+
Y as InputSelectTrigger,
|
|
58
|
+
Z as InputSelectValue,
|
|
59
|
+
Se as InputText,
|
|
60
|
+
ce as InputTextArea,
|
|
61
|
+
pe as Link,
|
|
58
62
|
h as Radio,
|
|
59
63
|
v as RadioGroup,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
64
|
+
se as ResizableHandle,
|
|
65
|
+
xe as ResizablePanel,
|
|
66
|
+
ye as ResizablePanelGroup,
|
|
67
|
+
de as Search,
|
|
68
|
+
be as SearchGlobal,
|
|
69
|
+
_ as Select,
|
|
70
|
+
$ as SelectContent,
|
|
71
|
+
ee as SelectGroup,
|
|
72
|
+
re as SelectGroupLabel,
|
|
73
|
+
te as SelectItem,
|
|
74
|
+
ae as SelectTrigger,
|
|
75
|
+
oe as SelectValue,
|
|
76
|
+
ge as SidebarPrimary,
|
|
77
|
+
Pe as SidebarPrimaryCollapseTrigger,
|
|
78
|
+
Me as SidebarPrimaryContent,
|
|
79
|
+
Te as SidebarPrimaryFooter,
|
|
80
|
+
Ce as SidebarPrimaryHeader,
|
|
81
|
+
Be as SidebarPrimaryMenu,
|
|
82
|
+
Ve as SidebarPrimaryMenuItem,
|
|
83
|
+
Le as SidebarPrimaryMenuItemExtras,
|
|
84
|
+
Ge as SidebarPrimarySection,
|
|
85
|
+
Fe as SidebarSecondary,
|
|
86
|
+
ke as SidebarSecondaryCollapseTrigger,
|
|
87
|
+
Ae as SidebarSecondaryCollapsedBreadcrumb,
|
|
88
|
+
Re as SidebarSecondaryContent,
|
|
89
|
+
Ee as SidebarSecondaryFooter,
|
|
90
|
+
ze as SidebarSecondaryHeader,
|
|
91
|
+
He as SidebarSecondaryMenu,
|
|
92
|
+
De as SidebarSecondaryMenuItem,
|
|
93
|
+
we as SidebarSecondaryMenuItemExtras,
|
|
94
|
+
je as SidebarSecondaryMenuSub,
|
|
95
|
+
qe as SidebarSecondaryMenuSubContent,
|
|
96
|
+
Je as SidebarSecondaryMenuSubItem,
|
|
97
|
+
Ke as SidebarSecondaryMenuSubTrigger,
|
|
98
|
+
Ne as SidebarSecondarySection,
|
|
99
|
+
Oe as SidebarSecondarySectionLabel,
|
|
100
|
+
Ze as Switch,
|
|
101
|
+
or as Tag,
|
|
102
|
+
$e as Tooltip,
|
|
103
|
+
er as TooltipContent,
|
|
104
|
+
rr as TooltipProvider,
|
|
105
|
+
tr as TooltipTrigger,
|
|
102
106
|
c as avatarVariants,
|
|
103
|
-
|
|
104
|
-
|
|
107
|
+
Xe as buttonIconVariants,
|
|
108
|
+
M as buttonMenuVariants,
|
|
105
109
|
f as buttonVariants,
|
|
106
110
|
B as cardFilterVariants,
|
|
107
111
|
t as cn,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
112
|
+
he as sidebarPrimaryMenuItemVariants,
|
|
113
|
+
Qe as sidebarSecondaryMenuItemVariants,
|
|
114
|
+
nr as tagVariants
|
|
111
115
|
};
|
|
112
116
|
//# 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":";;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { InputDatePicker, type InputDatePickerProps, } from './input-date-picker';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface InputDatePickerProps extends Omit<React.ComponentPropsWithoutRef<'button'>, 'value'> {
|
|
3
|
+
/** Field label, rendered above the box. */
|
|
4
|
+
label?: React.ReactNode;
|
|
5
|
+
/** Marks the field required — appends a `*` after the label. */
|
|
6
|
+
required?: boolean;
|
|
7
|
+
/** Helper text below the box. Hidden while `error` is set. */
|
|
8
|
+
description?: React.ReactNode;
|
|
9
|
+
/** Error message below the box. Its presence switches the field to the error treatment. */
|
|
10
|
+
error?: React.ReactNode;
|
|
11
|
+
/** Single date or a start–end range. */
|
|
12
|
+
pickerType?: 'date' | 'dateRange';
|
|
13
|
+
/** Hint shown when no value is selected. */
|
|
14
|
+
placeholder?: React.ReactNode;
|
|
15
|
+
/** Formatted selected date (`pickerType="date"`). */
|
|
16
|
+
value?: React.ReactNode;
|
|
17
|
+
/** Formatted range start (`pickerType="dateRange"`). */
|
|
18
|
+
startDate?: React.ReactNode;
|
|
19
|
+
/** Formatted range end (`pickerType="dateRange"`). */
|
|
20
|
+
endDate?: React.ReactNode;
|
|
21
|
+
/** Separator between range dates. */
|
|
22
|
+
separator?: React.ReactNode;
|
|
23
|
+
/** Whether the (consumer-owned) calendar popup is open — paints the active border. */
|
|
24
|
+
open?: boolean;
|
|
25
|
+
}
|
|
26
|
+
declare const InputDatePicker: React.ForwardRefExoticComponent<InputDatePickerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
27
|
+
export { InputDatePicker };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Link, type LinkProps } from './link';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useRender } from '@base-ui/react/use-render';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
4
|
+
/** Append a trailing external-link icon (e.g. for links that leave the app). */
|
|
5
|
+
external?: boolean;
|
|
6
|
+
/** Render the link inert: disabled color, removed from the tab order, no navigation. */
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Replace the rendered `<a>` with another element or component (Base UI
|
|
10
|
+
* composition) — e.g. a router `Link`. Props and class names are merged onto it.
|
|
11
|
+
*/
|
|
12
|
+
render?: useRender.RenderProp;
|
|
13
|
+
}
|
|
14
|
+
declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
15
|
+
export { Link };
|
package/dist/src/index.d.ts
CHANGED
|
@@ -7,10 +7,12 @@ export * from './components/ui/card-filter';
|
|
|
7
7
|
export * from './components/ui/checkbox';
|
|
8
8
|
export * from './components/ui/radio';
|
|
9
9
|
export * from './components/ui/input';
|
|
10
|
+
export * from './components/ui/input-date-picker';
|
|
10
11
|
export * from './components/ui/input-search';
|
|
11
12
|
export * from './components/ui/input-select';
|
|
12
13
|
export * from './components/ui/input-text';
|
|
13
14
|
export * from './components/ui/input-text-area';
|
|
15
|
+
export * from './components/ui/link';
|
|
14
16
|
export * from './components/ui/search';
|
|
15
17
|
export * from './components/ui/search-global';
|
|
16
18
|
export * from './components/ui/select';
|