@validationcloud/fractal-ui 1.53.0 → 1.55.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/collapsible/collapsible.d.ts +14 -0
- package/dist/components/select/select.d.ts +23 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +72 -65
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.js +527 -0
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +402 -0
- package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +208 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +130 -0
- package/dist/node_modules/.pnpm/@radix-ui_number@1.1.1/node_modules/@radix-ui/number/dist/index.js +6 -0
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.2/node_modules/@radix-ui/primitive/dist/index.js +9 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-arrow@1.1.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react@1_d580df0584800d3ed24dd50bc4bb768c/node_modules/@radix-ui/react-arrow/dist/index.js +24 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-collection@1.1.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_re_965c21727754e936eeb7d35183788fa0/node_modules/@radix-ui/react-collection/dist/index.js +49 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1.2_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-context/dist/index.js +53 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-direction/dist/index.js +10 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.6_@types_react-dom@19.2.3_@types_react@19.2.6__@t_c6844451b48448597731ceee2c7ec947/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +128 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.2_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-focus-guards/dist/index.js +18 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_r_1236dc37c73a65e17034434472fa319b/node_modules/@radix-ui/react-focus-scope/dist/index.js +137 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-id/dist/index.js +13 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.2.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react@_875fb0de6110028421a3e7790df757e0/node_modules/@radix-ui/react-popper/dist/index.js +219 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.5_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react@_5324bcb5f7050b43e9225714ff37edcd/node_modules/@radix-ui/react-portal/dist/index.js +16 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.0.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_rea_87a4386c2964ee4c9c162dadc854f596/node_modules/@radix-ui/react-primitive/dist/index.js +35 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-select@2.1.7_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react@_6ddc7a756051e26689ab8a69ff12c731/node_modules/@radix-ui/react-select/dist/index.js +821 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.2.0_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-slot/dist/index.js +48 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +10 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +32 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +14 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +6 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-previous@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-previous/dist/index.js +8 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-size/dist/index.js +27 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.1.3_@types_react-dom@19.2.3_@types_react@19.2.6__@typ_06b3b0029799d875b5a80b38402a9c14/node_modules/@radix-ui/react-visually-hidden/dist/index.js +30 -0
- package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js +52 -0
- package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js +7 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/component.js +71 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +7 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +25 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/Combination.js +11 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +112 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/UI.js +31 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +16 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +68 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/medium.js +5 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/sidecar.js +7 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es2015/component.js +11 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es2015/hook.js +15 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es2015/singleton.js +30 -0
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js +27 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es2015/assignRef.js +6 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +26 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es2015/useRef.js +25 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es2015/exports.js +18 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es2015/medium.js +67 -0
- package/dist/server.js +1 -1
- package/dist/src/components/collapsible/collapsible.js +29 -0
- package/dist/src/components/select/select.js +105 -0
- package/dist/styles/animation.css +40 -0
- package/package.json +2 -1
- /package/dist/{assets → src/assets}/animated-loader.svg.js +0 -0
- /package/dist/{assets → src/assets}/default-avatar.svg.js +0 -0
- /package/dist/{assets → src/assets}/not-found.svg.js +0 -0
- /package/dist/{assets → src/assets}/vc-logo.svg.js +0 -0
- /package/dist/{components → src/components}/animated-loader/animated-loader.js +0 -0
- /package/dist/{components → src/components}/badge/badge.js +0 -0
- /package/dist/{components → src/components}/box/box.js +0 -0
- /package/dist/{components → src/components}/button/button.js +0 -0
- /package/dist/{components → src/components}/client-modal/client-modal.js +0 -0
- /package/dist/{components → src/components}/copy-button/copy-button.js +0 -0
- /package/dist/{components → src/components}/decorated-icon/decorated-icon.js +0 -0
- /package/dist/{components → src/components}/dropdown-menu/dropdown-menu.js +0 -0
- /package/dist/{components → src/components}/echarts-renderer/calculate-title-layout.js +0 -0
- /package/dist/{components → src/components}/echarts-renderer/detect-horizontal-bars.js +0 -0
- /package/dist/{components → src/components}/echarts-renderer/echarts-chart-option.js +0 -0
- /package/dist/{components → src/components}/echarts-renderer/echarts-renderer.js +0 -0
- /package/dist/{components → src/components}/echarts-renderer/echarts-theme-option.js +0 -0
- /package/dist/{components → src/components}/echarts-renderer/mavrik-chart.js +0 -0
- /package/dist/{components → src/components}/echarts-renderer/mavrik-theme-horizontal.json.js +0 -0
- /package/dist/{components → src/components}/echarts-renderer/mavrik-theme.js +0 -0
- /package/dist/{components → src/components}/echarts-renderer/mavrik-theme.json.js +0 -0
- /package/dist/{components → src/components}/echarts-renderer/sanitize-chart-options.js +0 -0
- /package/dist/{components → src/components}/echarts-renderer/use-chart-instance.js +0 -0
- /package/dist/{components → src/components}/echarts-renderer/watermark-graphic.js +0 -0
- /package/dist/{components → src/components}/error-boundary/error-boundary.js +0 -0
- /package/dist/{components → src/components}/icon/icon.js +0 -0
- /package/dist/{components → src/components}/icon-button/icon-button.js +0 -0
- /package/dist/{components → src/components}/input-button/input-button.js +0 -0
- /package/dist/{components → src/components}/mount-svg-sprite/mount-svg-sprite.js +0 -0
- /package/dist/{components → src/components}/not-found-component/not-found-component.js +0 -0
- /package/dist/{components → src/components}/page-padding/page-padding.js +0 -0
- /package/dist/{components → src/components}/protocol-logo/protocol-logo.js +0 -0
- /package/dist/{components → src/components}/scroll-area/index.js +0 -0
- /package/dist/{components → src/components}/scroll-area/scroll-area-viewport.js +0 -0
- /package/dist/{components → src/components}/scroll-area/scroll-area.js +0 -0
- /package/dist/{components → src/components}/skeleton/skeleton.js +0 -0
- /package/dist/{components → src/components}/switch/switch.js +0 -0
- /package/dist/{components → src/components}/text-input/text-input.js +0 -0
- /package/dist/{components → src/components}/tooltip/tooltip.js +0 -0
- /package/dist/{components → src/components}/tooltip-provider/tooltip-provider.js +0 -0
- /package/dist/{components → src/components}/touch-target/touch-target.js +0 -0
- /package/dist/{components → src/components}/user-dropdown/user-dropdown.js +0 -0
- /package/dist/{components → src/components}/user-dropdown-mobile/user-dropdown-mobile.js +0 -0
- /package/dist/{hooks → src/hooks}/use-scroll-to-bottom.js +0 -0
- /package/dist/{internal → src/internal}/modal-header.js +0 -0
- /package/dist/{internal → src/internal}/modal.js +0 -0
- /package/dist/{internal → src/internal}/react-portal.js +0 -0
- /package/dist/{internal → src/internal}/round-button.js +0 -0
- /package/dist/{lib → src/lib}/render-chart-to-image.js +0 -0
- /package/dist/{lib → src/lib}/tailwind-merge.js +0 -0
- /package/dist/{utils → src/utils}/disable-password-managers.js +0 -0
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
function c() {
|
|
2
|
+
return typeof window < "u";
|
|
3
|
+
}
|
|
4
|
+
function u(t) {
|
|
5
|
+
return p(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
6
|
+
}
|
|
7
|
+
function i(t) {
|
|
8
|
+
var e;
|
|
9
|
+
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
10
|
+
}
|
|
11
|
+
function N(t) {
|
|
12
|
+
var e;
|
|
13
|
+
return (e = (p(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
14
|
+
}
|
|
15
|
+
function p(t) {
|
|
16
|
+
return c() ? t instanceof Node || t instanceof i(t).Node : !1;
|
|
17
|
+
}
|
|
18
|
+
function m(t) {
|
|
19
|
+
return c() ? t instanceof Element || t instanceof i(t).Element : !1;
|
|
20
|
+
}
|
|
21
|
+
function w(t) {
|
|
22
|
+
return c() ? t instanceof HTMLElement || t instanceof i(t).HTMLElement : !1;
|
|
23
|
+
}
|
|
24
|
+
function f(t) {
|
|
25
|
+
return !c() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof i(t).ShadowRoot;
|
|
26
|
+
}
|
|
27
|
+
const E = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
28
|
+
function y(t) {
|
|
29
|
+
const {
|
|
30
|
+
overflow: e,
|
|
31
|
+
overflowX: n,
|
|
32
|
+
overflowY: o,
|
|
33
|
+
display: r
|
|
34
|
+
} = S(t);
|
|
35
|
+
return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !E.has(r);
|
|
36
|
+
}
|
|
37
|
+
const T = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
38
|
+
function A(t) {
|
|
39
|
+
return T.has(u(t));
|
|
40
|
+
}
|
|
41
|
+
const v = [":popover-open", ":modal"];
|
|
42
|
+
function L(t) {
|
|
43
|
+
return v.some((e) => {
|
|
44
|
+
try {
|
|
45
|
+
return t.matches(e);
|
|
46
|
+
} catch {
|
|
47
|
+
return !1;
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
const D = ["transform", "translate", "scale", "rotate", "perspective"], C = ["transform", "translate", "scale", "rotate", "perspective", "filter"], k = ["paint", "layout", "strict", "content"];
|
|
52
|
+
function V(t) {
|
|
53
|
+
const e = O(), n = m(t) ? S(t) : t;
|
|
54
|
+
return D.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || C.some((o) => (n.willChange || "").includes(o)) || k.some((o) => (n.contain || "").includes(o));
|
|
55
|
+
}
|
|
56
|
+
function B(t) {
|
|
57
|
+
let e = s(t);
|
|
58
|
+
for (; w(e) && !h(e); ) {
|
|
59
|
+
if (V(e))
|
|
60
|
+
return e;
|
|
61
|
+
if (L(e))
|
|
62
|
+
return null;
|
|
63
|
+
e = s(e);
|
|
64
|
+
}
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
function O() {
|
|
68
|
+
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
69
|
+
}
|
|
70
|
+
const R = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
71
|
+
function h(t) {
|
|
72
|
+
return R.has(u(t));
|
|
73
|
+
}
|
|
74
|
+
function S(t) {
|
|
75
|
+
return i(t).getComputedStyle(t);
|
|
76
|
+
}
|
|
77
|
+
function F(t) {
|
|
78
|
+
return m(t) ? {
|
|
79
|
+
scrollLeft: t.scrollLeft,
|
|
80
|
+
scrollTop: t.scrollTop
|
|
81
|
+
} : {
|
|
82
|
+
scrollLeft: t.scrollX,
|
|
83
|
+
scrollTop: t.scrollY
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
function s(t) {
|
|
87
|
+
if (u(t) === "html")
|
|
88
|
+
return t;
|
|
89
|
+
const e = (
|
|
90
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
91
|
+
t.assignedSlot || // DOM Element detected.
|
|
92
|
+
t.parentNode || // ShadowRoot detected.
|
|
93
|
+
f(t) && t.host || // Fallback.
|
|
94
|
+
N(t)
|
|
95
|
+
);
|
|
96
|
+
return f(e) ? e.host : e;
|
|
97
|
+
}
|
|
98
|
+
function b(t) {
|
|
99
|
+
const e = s(t);
|
|
100
|
+
return h(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : w(e) && y(e) ? e : b(e);
|
|
101
|
+
}
|
|
102
|
+
function d(t, e, n) {
|
|
103
|
+
var o;
|
|
104
|
+
e === void 0 && (e = []), n === void 0 && (n = !0);
|
|
105
|
+
const r = b(t), g = r === ((o = t.ownerDocument) == null ? void 0 : o.body), l = i(r);
|
|
106
|
+
if (g) {
|
|
107
|
+
const a = _(l);
|
|
108
|
+
return e.concat(l, l.visualViewport || [], y(r) ? r : [], a && n ? d(a) : []);
|
|
109
|
+
}
|
|
110
|
+
return e.concat(r, d(r, [], n));
|
|
111
|
+
}
|
|
112
|
+
function _(t) {
|
|
113
|
+
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
114
|
+
}
|
|
115
|
+
export {
|
|
116
|
+
S as getComputedStyle,
|
|
117
|
+
B as getContainingBlock,
|
|
118
|
+
N as getDocumentElement,
|
|
119
|
+
_ as getFrameElement,
|
|
120
|
+
b as getNearestOverflowAncestor,
|
|
121
|
+
u as getNodeName,
|
|
122
|
+
F as getNodeScroll,
|
|
123
|
+
d as getOverflowAncestors,
|
|
124
|
+
s as getParentNode,
|
|
125
|
+
i as getWindow,
|
|
126
|
+
V as isContainingBlock,
|
|
127
|
+
m as isElement,
|
|
128
|
+
w as isHTMLElement,
|
|
129
|
+
h as isLastTraversableNode,
|
|
130
|
+
p as isNode,
|
|
131
|
+
y as isOverflowElement,
|
|
132
|
+
f as isShadowRoot,
|
|
133
|
+
A as isTableElement,
|
|
134
|
+
L as isTopLayer,
|
|
135
|
+
O as isWebKit
|
|
136
|
+
};
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
const j = ["top", "right", "bottom", "left"], m = Math.min, p = Math.max, C = Math.round, L = Math.floor, E = (t) => ({
|
|
2
|
+
x: t,
|
|
3
|
+
y: t
|
|
4
|
+
}), h = {
|
|
5
|
+
left: "right",
|
|
6
|
+
right: "left",
|
|
7
|
+
bottom: "top",
|
|
8
|
+
top: "bottom"
|
|
9
|
+
}, x = {
|
|
10
|
+
start: "end",
|
|
11
|
+
end: "start"
|
|
12
|
+
};
|
|
13
|
+
function R(t, e, n) {
|
|
14
|
+
return p(t, m(e, n));
|
|
15
|
+
}
|
|
16
|
+
function T(t, e) {
|
|
17
|
+
return typeof t == "function" ? t(e) : t;
|
|
18
|
+
}
|
|
19
|
+
function g(t) {
|
|
20
|
+
return t.split("-")[0];
|
|
21
|
+
}
|
|
22
|
+
function a(t) {
|
|
23
|
+
return t.split("-")[1];
|
|
24
|
+
}
|
|
25
|
+
function b(t) {
|
|
26
|
+
return t === "x" ? "y" : "x";
|
|
27
|
+
}
|
|
28
|
+
function d(t) {
|
|
29
|
+
return t === "y" ? "height" : "width";
|
|
30
|
+
}
|
|
31
|
+
const A = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
32
|
+
function P(t) {
|
|
33
|
+
return A.has(g(t)) ? "y" : "x";
|
|
34
|
+
}
|
|
35
|
+
function y(t) {
|
|
36
|
+
return b(P(t));
|
|
37
|
+
}
|
|
38
|
+
function k(t, e, n) {
|
|
39
|
+
n === void 0 && (n = !1);
|
|
40
|
+
const r = a(t), i = y(t), o = d(i);
|
|
41
|
+
let c = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
42
|
+
return e.reference[o] > e.floating[o] && (c = f(c)), [c, f(c)];
|
|
43
|
+
}
|
|
44
|
+
function q(t) {
|
|
45
|
+
const e = f(t);
|
|
46
|
+
return [s(t), e, s(e)];
|
|
47
|
+
}
|
|
48
|
+
function s(t) {
|
|
49
|
+
return t.replace(/start|end/g, (e) => x[e]);
|
|
50
|
+
}
|
|
51
|
+
const u = ["left", "right"], l = ["right", "left"], M = ["top", "bottom"], O = ["bottom", "top"];
|
|
52
|
+
function S(t, e, n) {
|
|
53
|
+
switch (t) {
|
|
54
|
+
case "top":
|
|
55
|
+
case "bottom":
|
|
56
|
+
return n ? e ? l : u : e ? u : l;
|
|
57
|
+
case "left":
|
|
58
|
+
case "right":
|
|
59
|
+
return e ? M : O;
|
|
60
|
+
default:
|
|
61
|
+
return [];
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
function z(t, e, n, r) {
|
|
65
|
+
const i = a(t);
|
|
66
|
+
let o = S(g(t), n === "start", r);
|
|
67
|
+
return i && (o = o.map((c) => c + "-" + i), e && (o = o.concat(o.map(s)))), o;
|
|
68
|
+
}
|
|
69
|
+
function f(t) {
|
|
70
|
+
return t.replace(/left|right|bottom|top/g, (e) => h[e]);
|
|
71
|
+
}
|
|
72
|
+
function w(t) {
|
|
73
|
+
return {
|
|
74
|
+
top: 0,
|
|
75
|
+
right: 0,
|
|
76
|
+
bottom: 0,
|
|
77
|
+
left: 0,
|
|
78
|
+
...t
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
function B(t) {
|
|
82
|
+
return typeof t != "number" ? w(t) : {
|
|
83
|
+
top: t,
|
|
84
|
+
right: t,
|
|
85
|
+
bottom: t,
|
|
86
|
+
left: t
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
function D(t) {
|
|
90
|
+
const {
|
|
91
|
+
x: e,
|
|
92
|
+
y: n,
|
|
93
|
+
width: r,
|
|
94
|
+
height: i
|
|
95
|
+
} = t;
|
|
96
|
+
return {
|
|
97
|
+
width: r,
|
|
98
|
+
height: i,
|
|
99
|
+
top: n,
|
|
100
|
+
left: e,
|
|
101
|
+
right: e + r,
|
|
102
|
+
bottom: n + i,
|
|
103
|
+
x: e,
|
|
104
|
+
y: n
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
export {
|
|
108
|
+
R as clamp,
|
|
109
|
+
E as createCoords,
|
|
110
|
+
T as evaluate,
|
|
111
|
+
w as expandPaddingObject,
|
|
112
|
+
L as floor,
|
|
113
|
+
a as getAlignment,
|
|
114
|
+
y as getAlignmentAxis,
|
|
115
|
+
k as getAlignmentSides,
|
|
116
|
+
d as getAxisLength,
|
|
117
|
+
q as getExpandedPlacements,
|
|
118
|
+
s as getOppositeAlignmentPlacement,
|
|
119
|
+
b as getOppositeAxis,
|
|
120
|
+
z as getOppositeAxisPlacements,
|
|
121
|
+
f as getOppositePlacement,
|
|
122
|
+
B as getPaddingObject,
|
|
123
|
+
g as getSide,
|
|
124
|
+
P as getSideAxis,
|
|
125
|
+
p as max,
|
|
126
|
+
m as min,
|
|
127
|
+
D as rectToClientRect,
|
|
128
|
+
C as round,
|
|
129
|
+
j as sides
|
|
130
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as n from "react";
|
|
2
|
+
import { Primitive as p } from "../../../../../@radix-ui_react-primitive@2.0.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_rea_87a4386c2964ee4c9c162dadc854f596/node_modules/@radix-ui/react-primitive/dist/index.js";
|
|
3
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
4
|
+
var v = "Arrow", e = n.forwardRef((r, i) => {
|
|
5
|
+
const { children: t, width: a = 10, height: s = 5, ...m } = r;
|
|
6
|
+
return /* @__PURE__ */ o(
|
|
7
|
+
p.svg,
|
|
8
|
+
{
|
|
9
|
+
...m,
|
|
10
|
+
ref: i,
|
|
11
|
+
width: a,
|
|
12
|
+
height: s,
|
|
13
|
+
viewBox: "0 0 30 10",
|
|
14
|
+
preserveAspectRatio: "none",
|
|
15
|
+
children: r.asChild ? t : /* @__PURE__ */ o("polygon", { points: "0,0 30,0 15,10" })
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
});
|
|
19
|
+
e.displayName = v;
|
|
20
|
+
var h = e;
|
|
21
|
+
export {
|
|
22
|
+
e as Arrow,
|
|
23
|
+
h as Root
|
|
24
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import r from "react";
|
|
3
|
+
import { createContextScope as y } from "../../../../../@radix-ui_react-context@1.1.2_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-context/dist/index.js";
|
|
4
|
+
import { useComposedRefs as M } from "@radix-ui/react-compose-refs";
|
|
5
|
+
import { createSlot as x } from "../../../../../@radix-ui_react-slot@1.2.0_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-slot/dist/index.js";
|
|
6
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
7
|
+
function g(s) {
|
|
8
|
+
const m = s + "CollectionProvider", [A, N] = y(m), [_, f] = A(
|
|
9
|
+
m,
|
|
10
|
+
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
11
|
+
), p = (c) => {
|
|
12
|
+
const { scope: e, children: l } = c, o = r.useRef(null), t = r.useRef(/* @__PURE__ */ new Map()).current;
|
|
13
|
+
return /* @__PURE__ */ d(_, { scope: e, itemMap: t, collectionRef: o, children: l });
|
|
14
|
+
};
|
|
15
|
+
p.displayName = m;
|
|
16
|
+
const u = s + "CollectionSlot", E = x(u), C = r.forwardRef(
|
|
17
|
+
(c, e) => {
|
|
18
|
+
const { scope: l, children: o } = c, t = f(u, l), n = M(e, t.collectionRef);
|
|
19
|
+
return /* @__PURE__ */ d(E, { ref: n, children: o });
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
C.displayName = u;
|
|
23
|
+
const a = s + "CollectionItemSlot", R = "data-radix-collection-item", T = x(a), I = r.forwardRef(
|
|
24
|
+
(c, e) => {
|
|
25
|
+
const { scope: l, children: o, ...t } = c, n = r.useRef(null), S = M(e, n), i = f(a, l);
|
|
26
|
+
return r.useEffect(() => (i.itemMap.set(n, { ref: n, ...t }), () => void i.itemMap.delete(n))), /* @__PURE__ */ d(T, { [R]: "", ref: S, children: o });
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
I.displayName = a;
|
|
30
|
+
function O(c) {
|
|
31
|
+
const e = f(s + "CollectionConsumer", c);
|
|
32
|
+
return r.useCallback(() => {
|
|
33
|
+
const o = e.collectionRef.current;
|
|
34
|
+
if (!o) return [];
|
|
35
|
+
const t = Array.from(o.querySelectorAll(`[${R}]`));
|
|
36
|
+
return Array.from(e.itemMap.values()).sort(
|
|
37
|
+
(i, v) => t.indexOf(i.ref.current) - t.indexOf(v.ref.current)
|
|
38
|
+
);
|
|
39
|
+
}, [e.collectionRef, e.itemMap]);
|
|
40
|
+
}
|
|
41
|
+
return [
|
|
42
|
+
{ Provider: p, Slot: C, ItemSlot: I },
|
|
43
|
+
O,
|
|
44
|
+
N
|
|
45
|
+
];
|
|
46
|
+
}
|
|
47
|
+
export {
|
|
48
|
+
g as createCollection
|
|
49
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import * as u from "react";
|
|
2
|
+
import { jsx as _ } from "react/jsx-runtime";
|
|
3
|
+
function P(e, p = []) {
|
|
4
|
+
let n = [];
|
|
5
|
+
function m(s, t) {
|
|
6
|
+
const o = u.createContext(t), c = n.length;
|
|
7
|
+
n = [...n, t];
|
|
8
|
+
const a = (i) => {
|
|
9
|
+
const { scope: f, children: C, ...x } = i, d = f?.[e]?.[c] || o, v = u.useMemo(() => x, Object.values(x));
|
|
10
|
+
return /* @__PURE__ */ _(d.Provider, { value: v, children: C });
|
|
11
|
+
};
|
|
12
|
+
a.displayName = s + "Provider";
|
|
13
|
+
function S(i, f) {
|
|
14
|
+
const C = f?.[e]?.[c] || o, x = u.useContext(C);
|
|
15
|
+
if (x) return x;
|
|
16
|
+
if (t !== void 0) return t;
|
|
17
|
+
throw new Error(`\`${i}\` must be used within \`${s}\``);
|
|
18
|
+
}
|
|
19
|
+
return [a, S];
|
|
20
|
+
}
|
|
21
|
+
const r = () => {
|
|
22
|
+
const s = n.map((t) => u.createContext(t));
|
|
23
|
+
return function(o) {
|
|
24
|
+
const c = o?.[e] || s;
|
|
25
|
+
return u.useMemo(
|
|
26
|
+
() => ({ [`__scope${e}`]: { ...o, [e]: c } }),
|
|
27
|
+
[o, c]
|
|
28
|
+
);
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
return r.scopeName = e, [m, h(r, ...p)];
|
|
32
|
+
}
|
|
33
|
+
function h(...e) {
|
|
34
|
+
const p = e[0];
|
|
35
|
+
if (e.length === 1) return p;
|
|
36
|
+
const n = () => {
|
|
37
|
+
const m = e.map((r) => ({
|
|
38
|
+
useScope: r(),
|
|
39
|
+
scopeName: r.scopeName
|
|
40
|
+
}));
|
|
41
|
+
return function(s) {
|
|
42
|
+
const t = m.reduce((o, { useScope: c, scopeName: a }) => {
|
|
43
|
+
const i = c(s)[`__scope${a}`];
|
|
44
|
+
return { ...o, ...i };
|
|
45
|
+
}, {});
|
|
46
|
+
return u.useMemo(() => ({ [`__scope${p.scopeName}`]: t }), [t]);
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
return n.scopeName = p.scopeName, n;
|
|
50
|
+
}
|
|
51
|
+
export {
|
|
52
|
+
P as createContextScope
|
|
53
|
+
};
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as n from "react";
|
|
3
|
+
import { composeEventHandlers as h } from "../../../../../@radix-ui_primitive@1.1.2/node_modules/@radix-ui/primitive/dist/index.js";
|
|
4
|
+
import { Primitive as w, dispatchDiscreteCustomEvent as k } from "../../../../../@radix-ui_react-primitive@2.0.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_rea_87a4386c2964ee4c9c162dadc854f596/node_modules/@radix-ui/react-primitive/dist/index.js";
|
|
5
|
+
import { useComposedRefs as g } from "@radix-ui/react-compose-refs";
|
|
6
|
+
import { useCallbackRef as R } from "../../../../../@radix-ui_react-use-callback-ref@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.js";
|
|
7
|
+
import { useEscapeKeydown as U } from "../../../../../@radix-ui_react-use-escape-keydown@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js";
|
|
8
|
+
import { jsx as T } from "react/jsx-runtime";
|
|
9
|
+
var z = "DismissableLayer", y = "dismissableLayer.update", H = "dismissableLayer.pointerDownOutside", M = "dismissableLayer.focusOutside", C, B = n.createContext({
|
|
10
|
+
layers: /* @__PURE__ */ new Set(),
|
|
11
|
+
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
12
|
+
branches: /* @__PURE__ */ new Set()
|
|
13
|
+
}), K = n.forwardRef(
|
|
14
|
+
(s, e) => {
|
|
15
|
+
const {
|
|
16
|
+
disableOutsidePointerEvents: r = !1,
|
|
17
|
+
onEscapeKeyDown: a,
|
|
18
|
+
onPointerDownOutside: i,
|
|
19
|
+
onFocusOutside: c,
|
|
20
|
+
onInteractOutside: f,
|
|
21
|
+
onDismiss: d,
|
|
22
|
+
...E
|
|
23
|
+
} = s, o = n.useContext(B), [u, F] = n.useState(null), l = u?.ownerDocument ?? globalThis?.document, [, I] = n.useState({}), S = g(e, (t) => F(t)), p = Array.from(o.layers), [W] = [...o.layersWithOutsidePointerEventsDisabled].slice(-1), A = p.indexOf(W), b = u ? p.indexOf(u) : -1, N = o.layersWithOutsidePointerEventsDisabled.size > 0, D = b >= A, _ = Y((t) => {
|
|
24
|
+
const v = t.target, P = [...o.branches].some((m) => m.contains(v));
|
|
25
|
+
!D || P || (i?.(t), f?.(t), t.defaultPrevented || d?.());
|
|
26
|
+
}, l), O = q((t) => {
|
|
27
|
+
const v = t.target;
|
|
28
|
+
[...o.branches].some((m) => m.contains(v)) || (c?.(t), f?.(t), t.defaultPrevented || d?.());
|
|
29
|
+
}, l);
|
|
30
|
+
return U((t) => {
|
|
31
|
+
b === o.layers.size - 1 && (a?.(t), !t.defaultPrevented && d && (t.preventDefault(), d()));
|
|
32
|
+
}, l), n.useEffect(() => {
|
|
33
|
+
if (u)
|
|
34
|
+
return r && (o.layersWithOutsidePointerEventsDisabled.size === 0 && (C = l.body.style.pointerEvents, l.body.style.pointerEvents = "none"), o.layersWithOutsidePointerEventsDisabled.add(u)), o.layers.add(u), L(), () => {
|
|
35
|
+
r && o.layersWithOutsidePointerEventsDisabled.size === 1 && (l.body.style.pointerEvents = C);
|
|
36
|
+
};
|
|
37
|
+
}, [u, l, r, o]), n.useEffect(() => () => {
|
|
38
|
+
u && (o.layers.delete(u), o.layersWithOutsidePointerEventsDisabled.delete(u), L());
|
|
39
|
+
}, [u, o]), n.useEffect(() => {
|
|
40
|
+
const t = () => I({});
|
|
41
|
+
return document.addEventListener(y, t), () => document.removeEventListener(y, t);
|
|
42
|
+
}, []), /* @__PURE__ */ T(
|
|
43
|
+
w.div,
|
|
44
|
+
{
|
|
45
|
+
...E,
|
|
46
|
+
ref: S,
|
|
47
|
+
style: {
|
|
48
|
+
pointerEvents: N ? D ? "auto" : "none" : void 0,
|
|
49
|
+
...s.style
|
|
50
|
+
},
|
|
51
|
+
onFocusCapture: h(s.onFocusCapture, O.onFocusCapture),
|
|
52
|
+
onBlurCapture: h(s.onBlurCapture, O.onBlurCapture),
|
|
53
|
+
onPointerDownCapture: h(
|
|
54
|
+
s.onPointerDownCapture,
|
|
55
|
+
_.onPointerDownCapture
|
|
56
|
+
)
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
K.displayName = z;
|
|
62
|
+
var j = "DismissableLayerBranch", X = n.forwardRef((s, e) => {
|
|
63
|
+
const r = n.useContext(B), a = n.useRef(null), i = g(e, a);
|
|
64
|
+
return n.useEffect(() => {
|
|
65
|
+
const c = a.current;
|
|
66
|
+
if (c)
|
|
67
|
+
return r.branches.add(c), () => {
|
|
68
|
+
r.branches.delete(c);
|
|
69
|
+
};
|
|
70
|
+
}, [r.branches]), /* @__PURE__ */ T(w.div, { ...s, ref: i });
|
|
71
|
+
});
|
|
72
|
+
X.displayName = j;
|
|
73
|
+
function Y(s, e = globalThis?.document) {
|
|
74
|
+
const r = R(s), a = n.useRef(!1), i = n.useRef(() => {
|
|
75
|
+
});
|
|
76
|
+
return n.useEffect(() => {
|
|
77
|
+
const c = (d) => {
|
|
78
|
+
if (d.target && !a.current) {
|
|
79
|
+
let E = function() {
|
|
80
|
+
x(
|
|
81
|
+
H,
|
|
82
|
+
r,
|
|
83
|
+
o,
|
|
84
|
+
{ discrete: !0 }
|
|
85
|
+
);
|
|
86
|
+
};
|
|
87
|
+
const o = { originalEvent: d };
|
|
88
|
+
d.pointerType === "touch" ? (e.removeEventListener("click", i.current), i.current = E, e.addEventListener("click", i.current, { once: !0 })) : E();
|
|
89
|
+
} else
|
|
90
|
+
e.removeEventListener("click", i.current);
|
|
91
|
+
a.current = !1;
|
|
92
|
+
}, f = window.setTimeout(() => {
|
|
93
|
+
e.addEventListener("pointerdown", c);
|
|
94
|
+
}, 0);
|
|
95
|
+
return () => {
|
|
96
|
+
window.clearTimeout(f), e.removeEventListener("pointerdown", c), e.removeEventListener("click", i.current);
|
|
97
|
+
};
|
|
98
|
+
}, [e, r]), {
|
|
99
|
+
// ensures we check React component tree (not just DOM tree)
|
|
100
|
+
onPointerDownCapture: () => a.current = !0
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
function q(s, e = globalThis?.document) {
|
|
104
|
+
const r = R(s), a = n.useRef(!1);
|
|
105
|
+
return n.useEffect(() => {
|
|
106
|
+
const i = (c) => {
|
|
107
|
+
c.target && !a.current && x(M, r, { originalEvent: c }, {
|
|
108
|
+
discrete: !1
|
|
109
|
+
});
|
|
110
|
+
};
|
|
111
|
+
return e.addEventListener("focusin", i), () => e.removeEventListener("focusin", i);
|
|
112
|
+
}, [e, r]), {
|
|
113
|
+
onFocusCapture: () => a.current = !0,
|
|
114
|
+
onBlurCapture: () => a.current = !1
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
function L() {
|
|
118
|
+
const s = new CustomEvent(y);
|
|
119
|
+
document.dispatchEvent(s);
|
|
120
|
+
}
|
|
121
|
+
function x(s, e, r, { discrete: a }) {
|
|
122
|
+
const i = r.originalEvent.target, c = new CustomEvent(s, { bubbles: !1, cancelable: !0, detail: r });
|
|
123
|
+
e && i.addEventListener(s, e, { once: !0 }), a ? k(i, c) : i.dispatchEvent(c);
|
|
124
|
+
}
|
|
125
|
+
export {
|
|
126
|
+
K as DismissableLayer,
|
|
127
|
+
X as DismissableLayerBranch
|
|
128
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as r from "react";
|
|
3
|
+
var t = 0;
|
|
4
|
+
function u() {
|
|
5
|
+
r.useEffect(() => {
|
|
6
|
+
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
7
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? n()), document.body.insertAdjacentElement("beforeend", e[1] ?? n()), t++, () => {
|
|
8
|
+
t === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((o) => o.remove()), t--;
|
|
9
|
+
};
|
|
10
|
+
}, []);
|
|
11
|
+
}
|
|
12
|
+
function n() {
|
|
13
|
+
const e = document.createElement("span");
|
|
14
|
+
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
u as useFocusGuards
|
|
18
|
+
};
|