@acronis-platform/ui-react 0.22.3 → 0.23.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/resizable/resizable.js +52 -0
- package/dist/components/ui/resizable/resizable.js.map +1 -0
- package/dist/index.js +65 -61
- package/dist/index.js.map +1 -1
- package/dist/node_modules/.pnpm/react-resizable-panels@4.11.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/react-resizable-panels/dist/react-resizable-panels.js +2093 -0
- package/dist/node_modules/.pnpm/react-resizable-panels@4.11.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/react-resizable-panels/dist/react-resizable-panels.js.map +1 -0
- package/dist/react.js +65 -61
- package/dist/react.js.map +1 -1
- package/dist/src/components/ui/resizable/index.d.ts +1 -0
- package/dist/src/components/ui/resizable/resizable.d.ts +9 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/ui-react.css +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { Separator as o, Panel as n, Group as l } from "../../../node_modules/.pnpm/react-resizable-panels@4.11.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/react-resizable-panels/dist/react-resizable-panels.js";
|
|
3
|
+
import { cn as e } from "../../../lib/utils.js";
|
|
4
|
+
function b({ className: r, ...i }) {
|
|
5
|
+
return /* @__PURE__ */ a(
|
|
6
|
+
l,
|
|
7
|
+
{
|
|
8
|
+
className: e("flex h-full w-full aria-[orientation=vertical]:flex-col", r),
|
|
9
|
+
...i
|
|
10
|
+
}
|
|
11
|
+
);
|
|
12
|
+
}
|
|
13
|
+
function z(r) {
|
|
14
|
+
return /* @__PURE__ */ a(n, { ...r });
|
|
15
|
+
}
|
|
16
|
+
function h({ withHandle: r, className: i, ...t }) {
|
|
17
|
+
return /* @__PURE__ */ a(
|
|
18
|
+
o,
|
|
19
|
+
{
|
|
20
|
+
className: e(
|
|
21
|
+
"relative flex w-[var(--ui-resizable-bar-width)] items-center justify-center",
|
|
22
|
+
"cursor-[var(--ui-resizable-cursor)] outline-none",
|
|
23
|
+
// Centered 1px divider line (idle/hover → hover token, drag → active token).
|
|
24
|
+
"after:absolute after:inset-y-0 after:left-1/2 after:-translate-x-1/2",
|
|
25
|
+
"after:w-[var(--ui-resizable-border-width)] after:bg-[var(--ui-resizable-border-color-hover)]",
|
|
26
|
+
"active:after:bg-[var(--ui-resizable-border-color-active)]",
|
|
27
|
+
"focus-visible:ring-[3px] focus-visible:ring-[var(--ui-focus-primary)]",
|
|
28
|
+
// orientation=horizontal = panels stacked → horizontal divider line.
|
|
29
|
+
"aria-[orientation=horizontal]:h-[var(--ui-resizable-bar-width)] aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:cursor-[ns-resize]",
|
|
30
|
+
"aria-[orientation=horizontal]:after:inset-x-0 aria-[orientation=horizontal]:after:inset-y-auto aria-[orientation=horizontal]:after:left-auto aria-[orientation=horizontal]:after:top-1/2 aria-[orientation=horizontal]:after:h-[var(--ui-resizable-border-width)] aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:-translate-y-1/2 aria-[orientation=horizontal]:after:translate-x-0",
|
|
31
|
+
"[&[aria-orientation=horizontal]>div]:rotate-90",
|
|
32
|
+
i
|
|
33
|
+
),
|
|
34
|
+
...t,
|
|
35
|
+
children: r && /* @__PURE__ */ a(
|
|
36
|
+
"div",
|
|
37
|
+
{
|
|
38
|
+
className: e(
|
|
39
|
+
"z-10 h-[var(--ui-resizable-bar-height)] w-[var(--ui-resizable-bar-width)]",
|
|
40
|
+
"rounded-[var(--ui-resizable-bar-border-radius)] bg-[var(--ui-resizable-bar-color)]"
|
|
41
|
+
)
|
|
42
|
+
}
|
|
43
|
+
)
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
export {
|
|
48
|
+
h as ResizableHandle,
|
|
49
|
+
z as ResizablePanel,
|
|
50
|
+
b as ResizablePanelGroup
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=resizable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resizable.js","sources":["../../../../src/components/ui/resizable/resizable.tsx"],"sourcesContent":["import * as ResizablePrimitive from 'react-resizable-panels';\n\nimport { cn } from '@/lib/utils';\n\n// Resizable panels: a thin wrapper over `react-resizable-panels` (v4: `Group` /\n// `Panel` / `Separator`) themed with the next-gen `--ui-resizable-*` token tier,\n// following the shadcn composition (`ResizablePanelGroup` / `ResizablePanel` /\n// `ResizableHandle`). Base UI has no resizable primitive, so this is the one\n// component that wraps a third-party panel library instead.\n//\n// The handle is the 7px-wide draggable `Separator`. It paints a centered 1px\n// divider line (`--ui-resizable-border-width`/`-style`) — `--ui-resizable-border-color-hover`\n// at rest, `--ui-resizable-border-color-active` while dragging (`:active`) — and,\n// when `withHandle` is set, an always-visible grab-bar pill\n// (`--ui-resizable-bar-*`: 7×32, 4px radius) centered over the line. Keyboard\n// focus paints a 3px `--ui-focus-primary` ring; the resting cursor is\n// `--ui-resizable-cursor` (`ew-resize`). The acronis brand draws hover/active/idle\n// in the same blue and deep-sky in the same gray, but each interaction state is\n// wired to its own token so a future brand can diverge.\n//\n// `orientation=\"vertical\"` (panels stacked) flips the layout: the Group goes\n// `flex-col`, the Separator becomes a horizontal line (`aria-orientation=horizontal`),\n// the cursor becomes `ns-resize`, and the grip pill rotates 90°.\n\nfunction ResizablePanelGroup({ className, ...props }: ResizablePrimitive.GroupProps) {\n return (\n <ResizablePrimitive.Group\n className={cn('flex h-full w-full aria-[orientation=vertical]:flex-col', className)}\n {...props}\n />\n );\n}\n\nfunction ResizablePanel(props: ResizablePrimitive.PanelProps) {\n return <ResizablePrimitive.Panel {...props} />;\n}\n\nexport interface ResizableHandleProps extends ResizablePrimitive.SeparatorProps {\n /** Render the grab-bar pill centered on the handle. */\n withHandle?: boolean;\n}\n\nfunction ResizableHandle({ withHandle, className, ...props }: ResizableHandleProps) {\n return (\n <ResizablePrimitive.Separator\n className={cn(\n 'relative flex w-[var(--ui-resizable-bar-width)] items-center justify-center',\n 'cursor-[var(--ui-resizable-cursor)] outline-none',\n // Centered 1px divider line (idle/hover → hover token, drag → active token).\n 'after:absolute after:inset-y-0 after:left-1/2 after:-translate-x-1/2',\n 'after:w-[var(--ui-resizable-border-width)] after:bg-[var(--ui-resizable-border-color-hover)]',\n 'active:after:bg-[var(--ui-resizable-border-color-active)]',\n 'focus-visible:ring-[3px] focus-visible:ring-[var(--ui-focus-primary)]',\n // orientation=horizontal = panels stacked → horizontal divider line.\n 'aria-[orientation=horizontal]:h-[var(--ui-resizable-bar-width)] aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:cursor-[ns-resize]',\n 'aria-[orientation=horizontal]:after:inset-x-0 aria-[orientation=horizontal]:after:inset-y-auto aria-[orientation=horizontal]:after:left-auto aria-[orientation=horizontal]:after:top-1/2 aria-[orientation=horizontal]:after:h-[var(--ui-resizable-border-width)] aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:-translate-y-1/2 aria-[orientation=horizontal]:after:translate-x-0',\n '[&[aria-orientation=horizontal]>div]:rotate-90',\n className\n )}\n {...props}\n >\n {withHandle && (\n <div\n className={cn(\n 'z-10 h-[var(--ui-resizable-bar-height)] w-[var(--ui-resizable-bar-width)]',\n 'rounded-[var(--ui-resizable-bar-border-radius)] bg-[var(--ui-resizable-bar-color)]'\n )}\n />\n )}\n </ResizablePrimitive.Separator>\n );\n}\n\nexport { ResizablePanelGroup, ResizablePanel, ResizableHandle };\n"],"names":["ResizablePanelGroup","className","props","jsx","ResizablePrimitive.Group","cn","ResizablePanel","ResizablePrimitive.Panel","ResizableHandle","withHandle","ResizablePrimitive.Separator"],"mappings":";;;AAwBA,SAASA,EAAoB,EAAE,WAAAC,GAAW,GAAGC,KAAwC;AACnF,SACE,gBAAAC;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,WAAWC,EAAG,2DAA2DJ,CAAS;AAAA,MACjF,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAASI,EAAeJ,GAAsC;AAC5D,SAAO,gBAAAC,EAACI,GAAA,EAA0B,GAAGL,EAAA,CAAO;AAC9C;AAOA,SAASM,EAAgB,EAAE,YAAAC,GAAY,WAAAR,GAAW,GAAGC,KAA+B;AAClF,SACE,gBAAAC;AAAA,IAACO;AAAAA,IAAA;AAAA,MACC,WAAWL;AAAA,QACT;AAAA,QACA;AAAA;AAAA,QAEA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA;AAAA,QAEA;AAAA,QACA;AAAA,QACA;AAAA,QACAJ;AAAA,MAAA;AAAA,MAED,GAAGC;AAAA,MAEH,UAAAO,KACC,gBAAAN;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,WAAWE;AAAA,YACT;AAAA,YACA;AAAA,UAAA;AAAA,QACF;AAAA,MAAA;AAAA,IACF;AAAA,EAAA;AAIR;"}
|
package/dist/index.js
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
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
|
|
4
|
-
import { Button as
|
|
5
|
-
import { ButtonDropdown as
|
|
3
|
+
import { Breadcrumb as m, BreadcrumbEllipsis as c, BreadcrumbItem as u, BreadcrumbLink as p, BreadcrumbList as l, BreadcrumbPage as y, BreadcrumbSeparator as x } from "./components/ui/breadcrumb/breadcrumb.js";
|
|
4
|
+
import { Button as f, buttonVariants as g } from "./components/ui/button/button.js";
|
|
5
|
+
import { ButtonDropdown as P, buttonDropdownVariants as M } from "./components/ui/button-dropdown/button-dropdown.js";
|
|
6
6
|
import { Checkbox as T } from "./components/ui/checkbox/checkbox.js";
|
|
7
7
|
import { Radio as V, RadioGroup as v } from "./components/ui/radio/radio.js";
|
|
8
8
|
import { Input as G } from "./components/ui/input/input.js";
|
|
9
|
-
import { InputTextArea as
|
|
10
|
-
import { Search as
|
|
11
|
-
import { Select as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
9
|
+
import { InputTextArea as L } from "./components/ui/input-text-area/input-text-area.js";
|
|
10
|
+
import { Search as k } from "./components/ui/search/search.js";
|
|
11
|
+
import { Select as z, SelectContent as E, SelectGroup as F, SelectGroupLabel as H, SelectItem as D, SelectTrigger as j, SelectValue as q } from "./components/ui/select/select.js";
|
|
12
|
+
import { ResizableHandle as K, ResizablePanel as N, ResizablePanelGroup as O } from "./components/ui/resizable/resizable.js";
|
|
13
|
+
import { SidebarPrimary as U, SidebarPrimaryCollapseTrigger as W, SidebarPrimaryContent as X, SidebarPrimaryFooter as Y, SidebarPrimaryHeader as Z, SidebarPrimaryMenu as _, SidebarPrimaryMenuItem as $, SidebarPrimaryMenuItemExtras as rr, SidebarPrimarySection as er, sidebarPrimaryMenuItemVariants as ar } from "./components/ui/sidebar-primary/sidebar-primary.js";
|
|
14
|
+
import { SidebarSecondary as tr, SidebarSecondaryCollapseTrigger as ir, SidebarSecondaryCollapsedBreadcrumb as nr, SidebarSecondaryContent as dr, SidebarSecondaryFooter as Sr, SidebarSecondaryHeader as br, SidebarSecondaryMenu as mr, SidebarSecondaryMenuItem as cr, SidebarSecondaryMenuItemExtras as ur, SidebarSecondaryMenuSub as pr, SidebarSecondaryMenuSubContent as lr, SidebarSecondaryMenuSubItem as yr, SidebarSecondaryMenuSubTrigger as xr, SidebarSecondarySection as sr, SidebarSecondarySectionLabel as fr, sidebarSecondaryMenuItemVariants as gr } from "./components/ui/sidebar-secondary/sidebar-secondary.js";
|
|
15
|
+
import { ButtonIcon as Pr, buttonIconVariants as Mr } from "./components/ui/button-icon/button-icon.js";
|
|
16
|
+
import { Switch as Tr } from "./components/ui/switch/switch.js";
|
|
17
|
+
import { Tooltip as Vr, TooltipContent as vr, TooltipProvider as Ar, TooltipTrigger as Gr } from "./components/ui/tooltip/tooltip.js";
|
|
18
|
+
import { Tag as Lr, tagVariants as hr } from "./components/ui/tag/tag.js";
|
|
18
19
|
export {
|
|
19
20
|
t as Avatar,
|
|
20
21
|
i as AvatarFallback,
|
|
@@ -24,62 +25,65 @@ export {
|
|
|
24
25
|
c as BreadcrumbEllipsis,
|
|
25
26
|
u as BreadcrumbItem,
|
|
26
27
|
p as BreadcrumbLink,
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
l as BreadcrumbList,
|
|
29
|
+
y as BreadcrumbPage,
|
|
29
30
|
x as BreadcrumbSeparator,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
f as Button,
|
|
32
|
+
P as ButtonDropdown,
|
|
33
|
+
Pr as ButtonIcon,
|
|
33
34
|
T as Checkbox,
|
|
34
35
|
G as Input,
|
|
35
|
-
|
|
36
|
+
L as InputTextArea,
|
|
36
37
|
V as Radio,
|
|
37
38
|
v as RadioGroup,
|
|
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
|
-
yr as
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
39
|
+
K as ResizableHandle,
|
|
40
|
+
N as ResizablePanel,
|
|
41
|
+
O as ResizablePanelGroup,
|
|
42
|
+
k as Search,
|
|
43
|
+
z as Select,
|
|
44
|
+
E as SelectContent,
|
|
45
|
+
F as SelectGroup,
|
|
46
|
+
H as SelectGroupLabel,
|
|
47
|
+
D as SelectItem,
|
|
48
|
+
j as SelectTrigger,
|
|
49
|
+
q as SelectValue,
|
|
50
|
+
U as SidebarPrimary,
|
|
51
|
+
W as SidebarPrimaryCollapseTrigger,
|
|
52
|
+
X as SidebarPrimaryContent,
|
|
53
|
+
Y as SidebarPrimaryFooter,
|
|
54
|
+
Z as SidebarPrimaryHeader,
|
|
55
|
+
_ as SidebarPrimaryMenu,
|
|
56
|
+
$ as SidebarPrimaryMenuItem,
|
|
57
|
+
rr as SidebarPrimaryMenuItemExtras,
|
|
58
|
+
er as SidebarPrimarySection,
|
|
59
|
+
tr as SidebarSecondary,
|
|
60
|
+
ir as SidebarSecondaryCollapseTrigger,
|
|
61
|
+
nr as SidebarSecondaryCollapsedBreadcrumb,
|
|
62
|
+
dr as SidebarSecondaryContent,
|
|
63
|
+
Sr as SidebarSecondaryFooter,
|
|
64
|
+
br as SidebarSecondaryHeader,
|
|
65
|
+
mr as SidebarSecondaryMenu,
|
|
66
|
+
cr as SidebarSecondaryMenuItem,
|
|
67
|
+
ur as SidebarSecondaryMenuItemExtras,
|
|
68
|
+
pr as SidebarSecondaryMenuSub,
|
|
69
|
+
lr as SidebarSecondaryMenuSubContent,
|
|
70
|
+
yr as SidebarSecondaryMenuSubItem,
|
|
71
|
+
xr as SidebarSecondaryMenuSubTrigger,
|
|
72
|
+
sr as SidebarSecondarySection,
|
|
73
|
+
fr as SidebarSecondarySectionLabel,
|
|
74
|
+
Tr as Switch,
|
|
75
|
+
Lr as Tag,
|
|
76
|
+
Vr as Tooltip,
|
|
77
|
+
vr as TooltipContent,
|
|
78
|
+
Ar as TooltipProvider,
|
|
79
|
+
Gr as TooltipTrigger,
|
|
76
80
|
S as avatarVariants,
|
|
77
|
-
|
|
78
|
-
|
|
81
|
+
M as buttonDropdownVariants,
|
|
82
|
+
Mr as buttonIconVariants,
|
|
79
83
|
g as buttonVariants,
|
|
80
84
|
a as cn,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
85
|
+
ar as sidebarPrimaryMenuItemVariants,
|
|
86
|
+
gr as sidebarSecondaryMenuItemVariants,
|
|
87
|
+
hr as tagVariants
|
|
84
88
|
};
|
|
85
89
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
|