@validationcloud/fractal-ui 1.46.0 → 1.47.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/index.js +40 -36
- package/dist/src/assets/default-avatar.svg.js +4 -0
- package/dist/src/components/dropdown-menu/dropdown-menu.js +21 -17
- package/dist/src/components/icon/icon-ids.d.ts +1 -1
- package/dist/src/components/mount-svg-sprite/mount-svg-sprite.js +1 -1
- package/dist/src/components/scroll-area/index.d.ts +2 -7
- package/dist/src/components/scroll-area/scroll-area-viewport.js +1 -1
- package/dist/src/components/user-dropdown/user-dropdown.d.ts +38 -0
- package/dist/src/components/user-dropdown/user-dropdown.js +62 -0
- package/dist/src/components/user-dropdown-mobile/user-dropdown-mobile.d.ts +37 -0
- package/dist/src/components/user-dropdown-mobile/user-dropdown-mobile.js +59 -0
- package/dist/src/index.d.ts +2 -0
- package/package.json +6 -1
- /package/dist/node_modules/{@radix-ui → .pnpm/@radix-ui_react-compose-refs@1.1.2_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui}/react-compose-refs/dist/index.js +0 -0
package/dist/index.js
CHANGED
|
@@ -2,52 +2,56 @@ import { AnimatedLoader as t } from "./src/components/animated-loader/animated-l
|
|
|
2
2
|
import { Badge as p } from "./src/components/badge/badge.js";
|
|
3
3
|
import { Box as x } from "./src/components/box/box.js";
|
|
4
4
|
import { Button as n } from "./src/components/button/button.js";
|
|
5
|
-
import { ClientModal as
|
|
6
|
-
import { CopyButton as
|
|
5
|
+
import { ClientModal as u } from "./src/components/client-modal/client-modal.js";
|
|
6
|
+
import { CopyButton as a } from "./src/components/copy-button/copy-button.js";
|
|
7
7
|
import { DecoratedIcon as i } from "./src/components/decorated-icon/decorated-icon.js";
|
|
8
|
-
import { DropdownMenu as g, DropdownMenuItem as
|
|
9
|
-
import { ErrorBoundary as
|
|
10
|
-
import { ScrollArea as
|
|
11
|
-
import { Icon as
|
|
12
|
-
import { IconButton as
|
|
13
|
-
import { InputButton as
|
|
14
|
-
import { MountSvgSprite as
|
|
15
|
-
import { NotFoundComponent as
|
|
16
|
-
import { PagePadding as
|
|
17
|
-
import { ProtocolLogo as
|
|
18
|
-
import { Skeleton as
|
|
19
|
-
import { Switch as
|
|
20
|
-
import { TextInput as
|
|
21
|
-
import { Tooltip as
|
|
22
|
-
import { TooltipProvider as
|
|
8
|
+
import { DropdownMenu as g, DropdownMenuItem as w } from "./src/components/dropdown-menu/dropdown-menu.js";
|
|
9
|
+
import { ErrorBoundary as M } from "./src/components/error-boundary/error-boundary.js";
|
|
10
|
+
import { ScrollArea as T } from "./src/components/scroll-area/index.js";
|
|
11
|
+
import { Icon as P } from "./src/components/icon/icon.js";
|
|
12
|
+
import { IconButton as C } from "./src/components/icon-button/icon-button.js";
|
|
13
|
+
import { InputButton as v } from "./src/components/input-button/input-button.js";
|
|
14
|
+
import { MountSvgSprite as A } from "./src/components/mount-svg-sprite/mount-svg-sprite.js";
|
|
15
|
+
import { NotFoundComponent as U } from "./src/components/not-found-component/not-found-component.js";
|
|
16
|
+
import { PagePadding as k } from "./src/components/page-padding/page-padding.js";
|
|
17
|
+
import { ProtocolLogo as F } from "./src/components/protocol-logo/protocol-logo.js";
|
|
18
|
+
import { Skeleton as j } from "./src/components/skeleton/skeleton.js";
|
|
19
|
+
import { Switch as z } from "./src/components/switch/switch.js";
|
|
20
|
+
import { TextInput as H } from "./src/components/text-input/text-input.js";
|
|
21
|
+
import { Tooltip as K } from "./src/components/tooltip/tooltip.js";
|
|
22
|
+
import { TooltipProvider as Q } from "./src/components/tooltip-provider/tooltip-provider.js";
|
|
23
23
|
import { TouchTarget as V } from "./src/components/touch-target/touch-target.js";
|
|
24
24
|
import { twMerge as X } from "./src/lib/tailwind-merge.js";
|
|
25
|
-
import {
|
|
25
|
+
import { UserDropdown as Z } from "./src/components/user-dropdown/user-dropdown.js";
|
|
26
|
+
import { UserDropdownMobile as $ } from "./src/components/user-dropdown-mobile/user-dropdown-mobile.js";
|
|
27
|
+
import { useScrollToBottom as ro } from "./src/hooks/use-scroll-to-bottom.js";
|
|
26
28
|
export {
|
|
27
29
|
t as AnimatedLoader,
|
|
28
30
|
p as Badge,
|
|
29
31
|
x as Box,
|
|
30
32
|
n as Button,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
u as ClientModal,
|
|
34
|
+
a as CopyButton,
|
|
33
35
|
i as DecoratedIcon,
|
|
34
36
|
g as DropdownMenu,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
37
|
+
w as DropdownMenuItem,
|
|
38
|
+
M as ErrorBoundary,
|
|
39
|
+
P as Icon,
|
|
40
|
+
C as IconButton,
|
|
41
|
+
v as InputButton,
|
|
42
|
+
A as MountSvgSprite,
|
|
43
|
+
U as NotFoundComponent,
|
|
44
|
+
k as PagePadding,
|
|
45
|
+
F as ProtocolLogo,
|
|
46
|
+
T as ScrollArea,
|
|
47
|
+
j as Skeleton,
|
|
48
|
+
z as Switch,
|
|
49
|
+
H as TextInput,
|
|
50
|
+
K as Tooltip,
|
|
51
|
+
Q as TooltipProvider,
|
|
50
52
|
V as TouchTarget,
|
|
53
|
+
Z as UserDropdown,
|
|
54
|
+
$ as UserDropdownMobile,
|
|
51
55
|
X as twMerge,
|
|
52
|
-
|
|
56
|
+
ro as useScrollToBottom
|
|
53
57
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const e = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='20'%20cy='20'%20r='20'%20fill='%233A3D46'/%3e%3cpath%20d='M11%2026V28C11%2029.1046%2011.8954%2030%2013%2030H27C28.1046%2030%2029%2029.1046%2029%2028V26C29%2023.2386%2026.7614%2021%2024%2021H16C13.2386%2021%2011%2023.2386%2011%2026Z'%20fill='url(%23paint0_linear_945_1967)'/%3e%3ccircle%20cx='20'%20cy='14.5'%20r='4.5'%20fill='url(%23paint1_linear_945_1967)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_945_1967'%20x1='11'%20y1='22.0227'%20x2='29.5561'%20y2='23.6472'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23D63D57'/%3e%3cstop%20offset='1'%20stop-color='%23FF9A7B'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_945_1967'%20x1='15.5'%20y1='11.0227'%20x2='24.8313'%20y2='11.4312'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23D63D57'/%3e%3cstop%20offset='1'%20stop-color='%23FF9A7B'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";
|
|
2
|
+
export {
|
|
3
|
+
e as default
|
|
4
|
+
};
|
|
@@ -1,39 +1,43 @@
|
|
|
1
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as e, jsxs as u } from "react/jsx-runtime";
|
|
2
3
|
import { DropdownMenu as t, ScrollArea as n } from "radix-ui";
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { twMerge as
|
|
5
|
-
const g =
|
|
6
|
-
({ className:
|
|
4
|
+
import { forwardRef as p } from "react";
|
|
5
|
+
import { twMerge as s } from "../../lib/tailwind-merge.js";
|
|
6
|
+
const g = p(
|
|
7
|
+
({ className: o, baseColor: r = "bg-neutral-60", textValue: l, ...a }, i) => /* @__PURE__ */ e(
|
|
7
8
|
t.Item,
|
|
8
9
|
{
|
|
9
|
-
className:
|
|
10
|
+
className: s(
|
|
10
11
|
"tg-button-small data-highlighted:text-neutral-10 flex cursor-pointer items-center truncate rounded-[10px] px-4 py-2.5 transition-colors outline-none select-none",
|
|
11
12
|
r === "bg-neutral-60" && "text-neutral-20 data-highlighted:bg-neutral-55",
|
|
12
13
|
r === "bg-neutral-80" && "text-neutral-40 data-highlighted:bg-neutral-60",
|
|
13
|
-
|
|
14
|
+
o
|
|
14
15
|
),
|
|
15
16
|
textValue: l,
|
|
16
|
-
...
|
|
17
|
+
...a,
|
|
17
18
|
ref: i
|
|
18
19
|
}
|
|
19
20
|
)
|
|
20
21
|
);
|
|
21
22
|
g.displayName = "DropdownMenuItem";
|
|
22
|
-
function
|
|
23
|
-
trigger:
|
|
23
|
+
function w({
|
|
24
|
+
trigger: o,
|
|
24
25
|
baseColor: r = "bg-neutral-60",
|
|
25
26
|
children: l,
|
|
26
|
-
className:
|
|
27
|
+
className: a,
|
|
27
28
|
contentClassName: i,
|
|
28
|
-
disabled:
|
|
29
|
+
disabled: d,
|
|
29
30
|
...c
|
|
30
31
|
}) {
|
|
31
|
-
return /* @__PURE__ */
|
|
32
|
-
/* @__PURE__ */ e(t.Trigger, { className:
|
|
33
|
-
/* @__PURE__ */ e(t.Portal, { children: /* @__PURE__ */ e(n.Root, { type: "hover", style: { "--scrollbar-size": "10px" }, asChild: !0, children: /* @__PURE__ */
|
|
32
|
+
return /* @__PURE__ */ u(t.Root, { ...c, children: [
|
|
33
|
+
/* @__PURE__ */ e(t.Trigger, { className: s("", a), asChild: !0, disabled: d, children: o }),
|
|
34
|
+
/* @__PURE__ */ e(t.Portal, { children: /* @__PURE__ */ e(n.Root, { type: "hover", style: { "--scrollbar-size": "10px" }, asChild: !0, children: /* @__PURE__ */ u(
|
|
34
35
|
t.Content,
|
|
35
36
|
{
|
|
36
|
-
|
|
37
|
+
onCloseAutoFocus: (h) => {
|
|
38
|
+
h.preventDefault();
|
|
39
|
+
},
|
|
40
|
+
className: s(
|
|
37
41
|
"max-h-(--radix-dropdown-menu-content-available-height) overflow-hidden rounded-2xl shadow-[0px_8px_20px_2px_rgba(0,0,0,0.40)]",
|
|
38
42
|
r === "bg-neutral-60" && "bg-neutral-60",
|
|
39
43
|
r === "bg-neutral-80" && "bg-neutral-80",
|
|
@@ -58,6 +62,6 @@ function f({
|
|
|
58
62
|
] });
|
|
59
63
|
}
|
|
60
64
|
export {
|
|
61
|
-
|
|
65
|
+
w as DropdownMenu,
|
|
62
66
|
g as DropdownMenuItem
|
|
63
67
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const iconIds: readonly ["arrow-narrow", "arrow", "banknote", "bar-chart", "billing", "bracket", "check", "chevron-vertical", "chevron", "circle-fill", "circle-stroke", "clock", "close", "cog", "collapse", "copy", "documents", "download", "edit", "enter", "exclamation", "faucet", "fire", "filter", "help-center", "home", "info", "intercom", "link", "menu", "more", "minus", "node", "patch", "pin", "plus", "processing", "radio-empty", "radio-full", "resize", "search", "share", "sparkles", "step-indicator", "subgraphs", "sync-problem", "trash", "thumb", "unpin", "wallet", "wallet-connected", "wallet-disconnected", "wrench"];
|
|
1
|
+
export declare const iconIds: readonly ["arrow-narrow", "arrow", "banknote", "bar-chart", "billing", "bracket", "check", "chevron-vertical", "chevron", "circle-fill", "circle-stroke", "clock", "close", "cog", "collapse", "copy", "documents", "download", "edit", "enter", "exclamation", "faucet", "fire", "filter", "help-center", "home", "info", "intercom", "link", "logout", "menu", "more", "minus", "node", "patch", "pin", "plus", "processing", "radio-empty", "radio-full", "resize", "search", "share", "sparkles", "step-indicator", "subgraphs", "sync-problem", "trash", "thumb", "unpin", "user", "wallet", "wallet-connected", "wallet-disconnected", "wrench"];
|