@bbki.ng/components 2.6.16 → 3.0.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/Button.d.ts +1 -0
- package/dist/_virtual/_commonjsHelpers.mjs +6 -0
- package/dist/_virtual/index.mjs +4 -0
- package/dist/_virtual/jsx-runtime.mjs +7 -0
- package/dist/_virtual/jsx-runtime2.mjs +4 -0
- package/dist/_virtual/react-jsx-runtime.development.mjs +4 -0
- package/dist/_virtual/react-jsx-runtime.production.min.mjs +4 -0
- package/dist/article/Article.d.ts +11 -0
- package/dist/article/Article.mjs +43 -0
- package/dist/blink-dot/BlinkDot.d.ts +5 -0
- package/dist/blink-dot/BlinkDot.mjs +20 -0
- package/dist/blur-cover/BlurCover.d.ts +6 -0
- package/dist/blur-cover/BlurCover.mjs +28 -0
- package/dist/breadcrumb/Breadcrumb.d.ts +9 -0
- package/dist/breadcrumb/Breadcrumb.mjs +35 -0
- package/dist/button/Button.d.ts +18 -0
- package/dist/button/Button.mjs +35 -0
- package/dist/canvas/Canvas.d.ts +23 -0
- package/dist/canvas/Canvas.mjs +85 -0
- package/dist/canvas/useRenderer.d.ts +10 -0
- package/dist/canvas/useRenderer.mjs +31 -0
- package/dist/context-menu/index.d.ts +27 -0
- package/dist/context-menu/index.mjs +131 -0
- package/dist/drop-image/DropImage.d.ts +25 -0
- package/dist/drop-image/DropImage.mjs +151 -0
- package/dist/drop-image/useDropImage.d.ts +19 -0
- package/dist/drop-image/useDropImage.mjs +67 -0
- package/dist/drop-image/utils.d.ts +2 -0
- package/dist/drop-image/utils.mjs +4 -0
- package/dist/drop-zone/DropZone.d.ts +9 -0
- package/dist/drop-zone/DropZone.mjs +44 -0
- package/dist/img/Gallery.d.ts +11 -0
- package/dist/img/Gallery.mjs +37 -0
- package/dist/img/Img.d.ts +3 -0
- package/dist/img/Img.mjs +80 -0
- package/dist/img/RandomRowsLayout.d.ts +9 -0
- package/dist/img/RandomRowsLayout.mjs +49 -0
- package/dist/img/types.d.ts +21 -0
- package/dist/img/types.mjs +4 -0
- package/dist/img/utils.d.ts +7 -0
- package/dist/img/utils.mjs +15 -0
- package/dist/index.d.ts +25 -380
- package/dist/index.mjs +79 -0
- package/dist/input/index.d.ts +3 -0
- package/dist/input/index.mjs +17 -0
- package/dist/label/index.d.ts +5 -0
- package/dist/label/index.mjs +17 -0
- package/dist/layout/layout.d.ts +7 -0
- package/dist/layout/layout.mjs +27 -0
- package/dist/link/Link.d.ts +17 -0
- package/dist/link/Link.mjs +83 -0
- package/dist/list/list.d.ts +23 -0
- package/dist/list/list.mjs +76 -0
- package/dist/loading-spiral/LoadingSpiral.d.ts +5 -0
- package/dist/loading-spiral/LoadingSpiral.mjs +37 -0
- package/dist/loading-spiral/constants.d.ts +6 -0
- package/dist/loading-spiral/constants.mjs +61 -0
- package/dist/loading-spiral/createOptions.d.ts +17 -0
- package/dist/loading-spiral/createOptions.mjs +30 -0
- package/dist/loading-spiral/createSettings.d.ts +16 -0
- package/dist/loading-spiral/createSettings.mjs +21 -0
- package/dist/loading-spiral/useCanvasRef.d.ts +4 -0
- package/dist/loading-spiral/utils.d.ts +1 -0
- package/dist/logo/Logo.d.ts +6 -0
- package/dist/logo/Logo.mjs +36 -0
- package/dist/nav/Nav.d.ts +10 -0
- package/dist/nav/Nav.mjs +27 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/extends.mjs +13 -0
- package/dist/node_modules/.pnpm/@floating-ui_core@1.6.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +519 -0
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.6.3/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +373 -0
- package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.0.8_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs +182 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.1/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +108 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.1/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +120 -0
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.0.1/node_modules/@radix-ui/primitive/dist/index.mjs +9 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-arrow@1.0.3_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-arrow/dist/index.mjs +19 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-collection@1.0.3_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom_04e7d2b59cf7ec97f40d26a998d7601d/node_modules/@radix-ui/react-collection/dist/index.mjs +60 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.mjs +16 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.mjs +25 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-context-menu@2.1.5_@types_react-dom@18.0.6_@types_react@18.0.15_react-d_1ce4db5e792f73d797e22c043cc3d326/node_modules/@radix-ui/react-context-menu/dist/index.mjs +213 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-context@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-context/dist/index.mjs +88 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-direction/dist/index.mjs +9 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.0.5_@types_react-dom@18.0.6_@types_react@18.0.15_re_0263a24376d55e4c2bb8fa2f75f1db3c/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs +136 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-focus-guards/dist/index.mjs +20 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.0.4_@types_react-dom@18.0.6_@types_react@18.0.15_react-do_a79d961df31bbecb3b2c94878dbb0724/node_modules/@radix-ui/react-focus-scope/dist/index.mjs +188 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-icons@1.3.0_react@18.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.mjs +61 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-id@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-id/dist/index.mjs +18 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-label@2.1.1_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-label/dist/index.mjs +20 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.0.6_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-menu/dist/index.mjs +657 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.1.3_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-popper/dist/index.mjs +218 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.0.4_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-portal/dist/index.mjs +14 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-presence@1.0.1_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-presence/dist/index.mjs +81 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@1.0.3_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-primitive/dist/index.mjs +44 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.0.1_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-primitive/dist/index.mjs +31 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-roving-focus@1.0.4_@types_react-dom@18.0.6_@types_react@18.0.15_react-d_69cf2e3e4b4e2c2fefdb8ea262543b5e/node_modules/@radix-ui/react-roving-focus/dist/index.mjs +199 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.0.2_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.mjs +53 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.1.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.mjs +48 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs +16 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs +37 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.0.3_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs +17 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs +6 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-use-size/dist/index.mjs +37 -0
- package/dist/node_modules/.pnpm/aria-hidden@1.2.3/node_modules/aria-hidden/dist/es2015/index.mjs +49 -0
- package/dist/node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.mjs +6 -0
- package/dist/node_modules/.pnpm/classnames@2.3.1/node_modules/classnames/index.mjs +40 -0
- package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs +23 -0
- package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.mjs +7 -0
- package/dist/node_modules/.pnpm/phenomenon@1.6.0/node_modules/phenomenon/dist/phenomenon.mjs +109 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll-bar/dist/es2015/component.mjs +61 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll-bar/dist/es2015/constants.mjs +7 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll-bar/dist/es2015/utils.mjs +25 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.5.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/Combination.mjs +17 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.5.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.mjs +116 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.5.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/UI.mjs +46 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.5.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.mjs +16 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.5.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.mjs +62 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.5.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/medium.mjs +5 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.5.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/sidecar.mjs +7 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.1_@types_react@18.0.15_react@18.2.0/node_modules/react-style-singleton/dist/es2015/component.mjs +11 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.1_@types_react@18.0.15_react@18.2.0/node_modules/react-style-singleton/dist/es2015/hook.mjs +15 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.1_@types_react@18.0.15_react@18.2.0/node_modules/react-style-singleton/dist/es2015/singleton.mjs +30 -0
- package/dist/node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react-jsx-runtime.development.mjs +589 -0
- package/dist/node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react-jsx-runtime.production.min.mjs +32 -0
- package/dist/node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.mjs +8 -0
- package/dist/node_modules/.pnpm/tslib@2.4.1/node_modules/tslib/tslib.es6.mjs +29 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.1_@types_react@18.0.15_react@18.2.0/node_modules/use-callback-ref/dist/es2015/assignRef.mjs +6 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.1_@types_react@18.0.15_react@18.2.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.mjs +26 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.1_@types_react@18.0.15_react@18.2.0/node_modules/use-callback-ref/dist/es2015/useRef.mjs +25 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.2_@types_react@18.0.15_react@18.2.0/node_modules/use-sidecar/dist/es2015/exports.mjs +21 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.2_@types_react@18.0.15_react@18.2.0/node_modules/use-sidecar/dist/es2015/medium.mjs +67 -0
- package/dist/page/Page.d.ts +28 -0
- package/dist/page/Page.mjs +67 -0
- package/dist/panel/Panel.d.ts +6 -0
- package/dist/panel/Panel.mjs +17 -0
- package/dist/pop-confirm/PopConfirm.d.ts +10 -0
- package/dist/pop-confirm/PopConfirm.mjs +40 -0
- package/dist/skeleton/Seleton.d.ts +23 -0
- package/dist/skeleton/Seleton.mjs +69 -0
- package/dist/spinner/Spinner.d.ts +7 -0
- package/dist/table/Table.d.ts +18 -0
- package/dist/table/Table.mjs +34 -0
- package/dist/tag/Tag.d.ts +10 -0
- package/dist/tag/Tag.mjs +33 -0
- package/package.json +22 -13
- package/dist/index.cjs +0 -1816
- package/dist/index.cjs.map +0 -1
- package/dist/index.css +0 -1821
- package/dist/index.css.map +0 -1
- package/dist/index.js +0 -1738
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
const P = ["top", "right", "bottom", "left"], l = Math.min, m = Math.max, M = Math.round, O = Math.floor, S = (t) => ({
|
|
2
|
+
x: t,
|
|
3
|
+
y: t
|
|
4
|
+
}), p = {
|
|
5
|
+
left: "right",
|
|
6
|
+
right: "left",
|
|
7
|
+
bottom: "top",
|
|
8
|
+
top: "bottom"
|
|
9
|
+
}, a = {
|
|
10
|
+
start: "end",
|
|
11
|
+
end: "start"
|
|
12
|
+
};
|
|
13
|
+
function w(t, n, o) {
|
|
14
|
+
return m(t, l(n, o));
|
|
15
|
+
}
|
|
16
|
+
function j(t, n) {
|
|
17
|
+
return typeof t == "function" ? t(n) : t;
|
|
18
|
+
}
|
|
19
|
+
function u(t) {
|
|
20
|
+
return t.split("-")[0];
|
|
21
|
+
}
|
|
22
|
+
function g(t) {
|
|
23
|
+
return t.split("-")[1];
|
|
24
|
+
}
|
|
25
|
+
function h(t) {
|
|
26
|
+
return t === "x" ? "y" : "x";
|
|
27
|
+
}
|
|
28
|
+
function x(t) {
|
|
29
|
+
return t === "y" ? "height" : "width";
|
|
30
|
+
}
|
|
31
|
+
function b(t) {
|
|
32
|
+
return ["top", "bottom"].includes(u(t)) ? "y" : "x";
|
|
33
|
+
}
|
|
34
|
+
function d(t) {
|
|
35
|
+
return h(b(t));
|
|
36
|
+
}
|
|
37
|
+
function C(t, n, o) {
|
|
38
|
+
o === void 0 && (o = !1);
|
|
39
|
+
const s = g(t), i = d(t), e = x(i);
|
|
40
|
+
let r = i === "x" ? s === (o ? "end" : "start") ? "right" : "left" : s === "start" ? "bottom" : "top";
|
|
41
|
+
return n.reference[e] > n.floating[e] && (r = f(r)), [r, f(r)];
|
|
42
|
+
}
|
|
43
|
+
function L(t) {
|
|
44
|
+
const n = f(t);
|
|
45
|
+
return [c(t), n, c(n)];
|
|
46
|
+
}
|
|
47
|
+
function c(t) {
|
|
48
|
+
return t.replace(/start|end/g, (n) => a[n]);
|
|
49
|
+
}
|
|
50
|
+
function A(t, n, o) {
|
|
51
|
+
const s = ["left", "right"], i = ["right", "left"], e = ["top", "bottom"], r = ["bottom", "top"];
|
|
52
|
+
switch (t) {
|
|
53
|
+
case "top":
|
|
54
|
+
case "bottom":
|
|
55
|
+
return o ? n ? i : s : n ? s : i;
|
|
56
|
+
case "left":
|
|
57
|
+
case "right":
|
|
58
|
+
return n ? e : r;
|
|
59
|
+
default:
|
|
60
|
+
return [];
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
function E(t, n, o, s) {
|
|
64
|
+
const i = g(t);
|
|
65
|
+
let e = A(u(t), o === "start", s);
|
|
66
|
+
return i && (e = e.map((r) => r + "-" + i), n && (e = e.concat(e.map(c)))), e;
|
|
67
|
+
}
|
|
68
|
+
function f(t) {
|
|
69
|
+
return t.replace(/left|right|bottom|top/g, (n) => p[n]);
|
|
70
|
+
}
|
|
71
|
+
function y(t) {
|
|
72
|
+
return {
|
|
73
|
+
top: 0,
|
|
74
|
+
right: 0,
|
|
75
|
+
bottom: 0,
|
|
76
|
+
left: 0,
|
|
77
|
+
...t
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function R(t) {
|
|
81
|
+
return typeof t != "number" ? y(t) : {
|
|
82
|
+
top: t,
|
|
83
|
+
right: t,
|
|
84
|
+
bottom: t,
|
|
85
|
+
left: t
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
function T(t) {
|
|
89
|
+
return {
|
|
90
|
+
...t,
|
|
91
|
+
top: t.y,
|
|
92
|
+
left: t.x,
|
|
93
|
+
right: t.x + t.width,
|
|
94
|
+
bottom: t.y + t.height
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
export {
|
|
98
|
+
w as clamp,
|
|
99
|
+
S as createCoords,
|
|
100
|
+
j as evaluate,
|
|
101
|
+
y as expandPaddingObject,
|
|
102
|
+
O as floor,
|
|
103
|
+
g as getAlignment,
|
|
104
|
+
d as getAlignmentAxis,
|
|
105
|
+
C as getAlignmentSides,
|
|
106
|
+
x as getAxisLength,
|
|
107
|
+
L as getExpandedPlacements,
|
|
108
|
+
c as getOppositeAlignmentPlacement,
|
|
109
|
+
h as getOppositeAxis,
|
|
110
|
+
E as getOppositeAxisPlacements,
|
|
111
|
+
f as getOppositePlacement,
|
|
112
|
+
R as getPaddingObject,
|
|
113
|
+
u as getSide,
|
|
114
|
+
b as getSideAxis,
|
|
115
|
+
m as max,
|
|
116
|
+
l as min,
|
|
117
|
+
T as rectToClientRect,
|
|
118
|
+
M as round,
|
|
119
|
+
P as sides
|
|
120
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import d from "../../../../../@babel_runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/extends.mjs";
|
|
2
|
+
import { forwardRef as h, createElement as r } from "react";
|
|
3
|
+
import { Primitive as n } from "../../../../../@radix-ui_react-primitive@1.0.3_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-primitive/dist/index.mjs";
|
|
4
|
+
const s = /* @__PURE__ */ h((e, t) => {
|
|
5
|
+
const { children: o, width: i = 10, height: f = 5, ...c } = e;
|
|
6
|
+
return /* @__PURE__ */ r(n.svg, d({}, c, {
|
|
7
|
+
ref: t,
|
|
8
|
+
width: i,
|
|
9
|
+
height: f,
|
|
10
|
+
viewBox: "0 0 30 10",
|
|
11
|
+
preserveAspectRatio: "none"
|
|
12
|
+
}), e.asChild ? o : /* @__PURE__ */ r("polygon", {
|
|
13
|
+
points: "0,0 30,0 15,10"
|
|
14
|
+
}));
|
|
15
|
+
}), m = s;
|
|
16
|
+
export {
|
|
17
|
+
s as Arrow,
|
|
18
|
+
m as Root
|
|
19
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import t from "react";
|
|
2
|
+
import { createContextScope as b } from "../../../../../@radix-ui_react-context@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-context/dist/index.mjs";
|
|
3
|
+
import { useComposedRefs as p } from "../../../../../@radix-ui_react-compose-refs@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.mjs";
|
|
4
|
+
import { Slot as u } from "../../../../../@radix-ui_react-slot@1.0.2_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.mjs";
|
|
5
|
+
function N(s) {
|
|
6
|
+
const a = s + "CollectionProvider", [C, R] = b(a), [x, f] = C(a, {
|
|
7
|
+
collectionRef: {
|
|
8
|
+
current: null
|
|
9
|
+
},
|
|
10
|
+
itemMap: /* @__PURE__ */ new Map()
|
|
11
|
+
}), M = (r) => {
|
|
12
|
+
const { scope: e, children: l } = r, o = t.useRef(null), c = t.useRef(/* @__PURE__ */ new Map()).current;
|
|
13
|
+
return /* @__PURE__ */ t.createElement(x, {
|
|
14
|
+
scope: e,
|
|
15
|
+
itemMap: c,
|
|
16
|
+
collectionRef: o
|
|
17
|
+
}, l);
|
|
18
|
+
}, $ = s + "CollectionSlot", I = /* @__PURE__ */ t.forwardRef((r, e) => {
|
|
19
|
+
const { scope: l, children: o } = r, c = f($, l), n = p(e, c.collectionRef);
|
|
20
|
+
return /* @__PURE__ */ t.createElement(u, {
|
|
21
|
+
ref: n
|
|
22
|
+
}, o);
|
|
23
|
+
}), S = s + "CollectionItemSlot", d = "data-radix-collection-item", E = /* @__PURE__ */ t.forwardRef((r, e) => {
|
|
24
|
+
const { scope: l, children: o, ...c } = r, n = t.useRef(null), m = p(e, n), i = f(S, l);
|
|
25
|
+
return t.useEffect(() => (i.itemMap.set(n, {
|
|
26
|
+
ref: n,
|
|
27
|
+
...c
|
|
28
|
+
}), () => void i.itemMap.delete(n))), /* @__PURE__ */ t.createElement(u, {
|
|
29
|
+
[d]: "",
|
|
30
|
+
ref: m
|
|
31
|
+
}, o);
|
|
32
|
+
});
|
|
33
|
+
function A(r) {
|
|
34
|
+
const e = f(s + "CollectionConsumer", r);
|
|
35
|
+
return t.useCallback(() => {
|
|
36
|
+
const o = e.collectionRef.current;
|
|
37
|
+
if (!o)
|
|
38
|
+
return [];
|
|
39
|
+
const c = Array.from(o.querySelectorAll(`[${d}]`));
|
|
40
|
+
return Array.from(e.itemMap.values()).sort(
|
|
41
|
+
(i, _) => c.indexOf(i.ref.current) - c.indexOf(_.ref.current)
|
|
42
|
+
);
|
|
43
|
+
}, [
|
|
44
|
+
e.collectionRef,
|
|
45
|
+
e.itemMap
|
|
46
|
+
]);
|
|
47
|
+
}
|
|
48
|
+
return [
|
|
49
|
+
{
|
|
50
|
+
Provider: M,
|
|
51
|
+
Slot: I,
|
|
52
|
+
ItemSlot: E
|
|
53
|
+
},
|
|
54
|
+
A,
|
|
55
|
+
R
|
|
56
|
+
];
|
|
57
|
+
}
|
|
58
|
+
export {
|
|
59
|
+
N as createCollection
|
|
60
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { useCallback as n } from "react";
|
|
2
|
+
function c(e, f) {
|
|
3
|
+
typeof e == "function" ? e(f) : e != null && (e.current = f);
|
|
4
|
+
}
|
|
5
|
+
function t(...e) {
|
|
6
|
+
return (f) => e.forEach(
|
|
7
|
+
(o) => c(o, f)
|
|
8
|
+
);
|
|
9
|
+
}
|
|
10
|
+
function d(...e) {
|
|
11
|
+
return n(t(...e), e);
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
t as composeRefs,
|
|
15
|
+
d as useComposedRefs
|
|
16
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import "react";
|
|
2
|
+
function i(n, o) {
|
|
3
|
+
if (typeof n == "function")
|
|
4
|
+
return n(o);
|
|
5
|
+
n != null && (n.current = o);
|
|
6
|
+
}
|
|
7
|
+
function f(...n) {
|
|
8
|
+
return (o) => {
|
|
9
|
+
let u = !1;
|
|
10
|
+
const c = n.map((t) => {
|
|
11
|
+
const e = i(t, o);
|
|
12
|
+
return !u && typeof e == "function" && (u = !0), e;
|
|
13
|
+
});
|
|
14
|
+
if (u)
|
|
15
|
+
return () => {
|
|
16
|
+
for (let t = 0; t < c.length; t++) {
|
|
17
|
+
const e = c[t];
|
|
18
|
+
typeof e == "function" ? e() : i(n[t], null);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
f as composeRefs
|
|
25
|
+
};
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import r from "../../../../../@babel_runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/extends.mjs";
|
|
2
|
+
import { forwardRef as u, createElement as c, useRef as _, useState as S, useCallback as h, useEffect as M, Fragment as I } from "react";
|
|
3
|
+
import { composeEventHandlers as C } from "../../../../../@radix-ui_primitive@1.0.1/node_modules/@radix-ui/primitive/dist/index.mjs";
|
|
4
|
+
import { createContextScope as O } from "../../../../../@radix-ui_react-context@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-context/dist/index.mjs";
|
|
5
|
+
import { Primitive as R } from "../../../../../@radix-ui_react-primitive@1.0.3_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-primitive/dist/index.mjs";
|
|
6
|
+
import { createMenuScope as g, SubTrigger as w, SubContent as T, Portal as E, Content as y, Item as G, CheckboxItem as k, ItemIndicator as A, RadioItem as N, Label as D, Separator as F, Root as L, Anchor as U, Group as X, Sub as B, RadioGroup as H } from "../../../../../@radix-ui_react-menu@2.0.6_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-menu/dist/index.mjs";
|
|
7
|
+
import { useCallbackRef as W } from "../../../../../@radix-ui_react-use-callback-ref@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs";
|
|
8
|
+
import { useControllableState as Y } from "../../../../../@radix-ui_react-use-controllable-state@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs";
|
|
9
|
+
const P = "ContextMenu", [j] = O(P, [
|
|
10
|
+
g
|
|
11
|
+
]), s = g(), [q, v] = j(P), z = (e) => {
|
|
12
|
+
const { __scopeContextMenu: o, children: n, onOpenChange: t, dir: a, modal: i = !0 } = e, [x, d] = S(!1), $ = s(o), f = W(t), p = h((l) => {
|
|
13
|
+
d(l), f(l);
|
|
14
|
+
}, [
|
|
15
|
+
f
|
|
16
|
+
]);
|
|
17
|
+
return /* @__PURE__ */ c(q, {
|
|
18
|
+
scope: o,
|
|
19
|
+
open: x,
|
|
20
|
+
onOpenChange: p,
|
|
21
|
+
modal: i
|
|
22
|
+
}, /* @__PURE__ */ c(L, r({}, $, {
|
|
23
|
+
dir: a,
|
|
24
|
+
open: x,
|
|
25
|
+
onOpenChange: p,
|
|
26
|
+
modal: i
|
|
27
|
+
}), n));
|
|
28
|
+
}, J = "ContextMenuTrigger", K = /* @__PURE__ */ u((e, o) => {
|
|
29
|
+
const { __scopeContextMenu: n, disabled: t = !1, ...a } = e, i = v(J, n), x = s(n), d = _({
|
|
30
|
+
x: 0,
|
|
31
|
+
y: 0
|
|
32
|
+
}), $ = _({
|
|
33
|
+
getBoundingClientRect: () => DOMRect.fromRect({
|
|
34
|
+
width: 0,
|
|
35
|
+
height: 0,
|
|
36
|
+
...d.current
|
|
37
|
+
})
|
|
38
|
+
}), f = _(0), p = h(
|
|
39
|
+
() => window.clearTimeout(f.current),
|
|
40
|
+
[]
|
|
41
|
+
), l = (b) => {
|
|
42
|
+
d.current = {
|
|
43
|
+
x: b.clientX,
|
|
44
|
+
y: b.clientY
|
|
45
|
+
}, i.onOpenChange(!0);
|
|
46
|
+
};
|
|
47
|
+
return M(
|
|
48
|
+
() => p,
|
|
49
|
+
[
|
|
50
|
+
p
|
|
51
|
+
]
|
|
52
|
+
), M(
|
|
53
|
+
() => void (t && p()),
|
|
54
|
+
[
|
|
55
|
+
t,
|
|
56
|
+
p
|
|
57
|
+
]
|
|
58
|
+
), /* @__PURE__ */ c(I, null, /* @__PURE__ */ c(U, r({}, x, {
|
|
59
|
+
virtualRef: $
|
|
60
|
+
})), /* @__PURE__ */ c(R.span, r({
|
|
61
|
+
"data-state": i.open ? "open" : "closed",
|
|
62
|
+
"data-disabled": t ? "" : void 0
|
|
63
|
+
}, a, {
|
|
64
|
+
ref: o,
|
|
65
|
+
style: {
|
|
66
|
+
WebkitTouchCallout: "none",
|
|
67
|
+
...e.style
|
|
68
|
+
},
|
|
69
|
+
onContextMenu: t ? e.onContextMenu : C(e.onContextMenu, (b) => {
|
|
70
|
+
p(), l(b), b.preventDefault();
|
|
71
|
+
}),
|
|
72
|
+
onPointerDown: t ? e.onPointerDown : C(e.onPointerDown, m((b) => {
|
|
73
|
+
p(), f.current = window.setTimeout(
|
|
74
|
+
() => l(b),
|
|
75
|
+
700
|
|
76
|
+
);
|
|
77
|
+
})),
|
|
78
|
+
onPointerMove: t ? e.onPointerMove : C(e.onPointerMove, m(p)),
|
|
79
|
+
onPointerCancel: t ? e.onPointerCancel : C(e.onPointerCancel, m(p)),
|
|
80
|
+
onPointerUp: t ? e.onPointerUp : C(e.onPointerUp, m(p))
|
|
81
|
+
})));
|
|
82
|
+
}), Q = (e) => {
|
|
83
|
+
const { __scopeContextMenu: o, ...n } = e, t = s(o);
|
|
84
|
+
return /* @__PURE__ */ c(E, r({}, t, n));
|
|
85
|
+
}, V = "ContextMenuContent", Z = /* @__PURE__ */ u((e, o) => {
|
|
86
|
+
const { __scopeContextMenu: n, ...t } = e, a = v(V, n), i = s(n), x = _(!1);
|
|
87
|
+
return /* @__PURE__ */ c(y, r({}, i, t, {
|
|
88
|
+
ref: o,
|
|
89
|
+
side: "right",
|
|
90
|
+
sideOffset: 2,
|
|
91
|
+
align: "start",
|
|
92
|
+
onCloseAutoFocus: (d) => {
|
|
93
|
+
var $;
|
|
94
|
+
($ = e.onCloseAutoFocus) === null || $ === void 0 || $.call(e, d), !d.defaultPrevented && x.current && d.preventDefault(), x.current = !1;
|
|
95
|
+
},
|
|
96
|
+
onInteractOutside: (d) => {
|
|
97
|
+
var $;
|
|
98
|
+
($ = e.onInteractOutside) === null || $ === void 0 || $.call(e, d), !d.defaultPrevented && !a.modal && (x.current = !0);
|
|
99
|
+
},
|
|
100
|
+
style: {
|
|
101
|
+
...e.style,
|
|
102
|
+
"--radix-context-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
103
|
+
"--radix-context-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
104
|
+
"--radix-context-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
105
|
+
"--radix-context-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
106
|
+
"--radix-context-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
107
|
+
}
|
|
108
|
+
}));
|
|
109
|
+
}), ee = /* @__PURE__ */ u((e, o) => {
|
|
110
|
+
const { __scopeContextMenu: n, ...t } = e, a = s(n);
|
|
111
|
+
return /* @__PURE__ */ c(X, r({}, a, t, {
|
|
112
|
+
ref: o
|
|
113
|
+
}));
|
|
114
|
+
}), te = /* @__PURE__ */ u((e, o) => {
|
|
115
|
+
const { __scopeContextMenu: n, ...t } = e, a = s(n);
|
|
116
|
+
return /* @__PURE__ */ c(D, r({}, a, t, {
|
|
117
|
+
ref: o
|
|
118
|
+
}));
|
|
119
|
+
}), oe = /* @__PURE__ */ u((e, o) => {
|
|
120
|
+
const { __scopeContextMenu: n, ...t } = e, a = s(n);
|
|
121
|
+
return /* @__PURE__ */ c(G, r({}, a, t, {
|
|
122
|
+
ref: o
|
|
123
|
+
}));
|
|
124
|
+
}), ne = /* @__PURE__ */ u((e, o) => {
|
|
125
|
+
const { __scopeContextMenu: n, ...t } = e, a = s(n);
|
|
126
|
+
return /* @__PURE__ */ c(k, r({}, a, t, {
|
|
127
|
+
ref: o
|
|
128
|
+
}));
|
|
129
|
+
}), ae = /* @__PURE__ */ u((e, o) => {
|
|
130
|
+
const { __scopeContextMenu: n, ...t } = e, a = s(n);
|
|
131
|
+
return /* @__PURE__ */ c(H, r({}, a, t, {
|
|
132
|
+
ref: o
|
|
133
|
+
}));
|
|
134
|
+
}), ce = /* @__PURE__ */ u((e, o) => {
|
|
135
|
+
const { __scopeContextMenu: n, ...t } = e, a = s(n);
|
|
136
|
+
return /* @__PURE__ */ c(N, r({}, a, t, {
|
|
137
|
+
ref: o
|
|
138
|
+
}));
|
|
139
|
+
}), re = /* @__PURE__ */ u((e, o) => {
|
|
140
|
+
const { __scopeContextMenu: n, ...t } = e, a = s(n);
|
|
141
|
+
return /* @__PURE__ */ c(A, r({}, a, t, {
|
|
142
|
+
ref: o
|
|
143
|
+
}));
|
|
144
|
+
}), se = /* @__PURE__ */ u((e, o) => {
|
|
145
|
+
const { __scopeContextMenu: n, ...t } = e, a = s(n);
|
|
146
|
+
return /* @__PURE__ */ c(F, r({}, a, t, {
|
|
147
|
+
ref: o
|
|
148
|
+
}));
|
|
149
|
+
}), de = (e) => {
|
|
150
|
+
const { __scopeContextMenu: o, children: n, onOpenChange: t, open: a, defaultOpen: i } = e, x = s(o), [d, $] = Y({
|
|
151
|
+
prop: a,
|
|
152
|
+
defaultProp: i,
|
|
153
|
+
onChange: t
|
|
154
|
+
});
|
|
155
|
+
return /* @__PURE__ */ c(B, r({}, x, {
|
|
156
|
+
open: d,
|
|
157
|
+
onOpenChange: $
|
|
158
|
+
}), n);
|
|
159
|
+
}, $e = /* @__PURE__ */ u((e, o) => {
|
|
160
|
+
const { __scopeContextMenu: n, ...t } = e, a = s(n);
|
|
161
|
+
return /* @__PURE__ */ c(w, r({}, a, t, {
|
|
162
|
+
ref: o
|
|
163
|
+
}));
|
|
164
|
+
}), pe = /* @__PURE__ */ u((e, o) => {
|
|
165
|
+
const { __scopeContextMenu: n, ...t } = e, a = s(n);
|
|
166
|
+
return /* @__PURE__ */ c(T, r({}, a, t, {
|
|
167
|
+
ref: o,
|
|
168
|
+
style: {
|
|
169
|
+
...e.style,
|
|
170
|
+
"--radix-context-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
171
|
+
"--radix-context-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
172
|
+
"--radix-context-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
173
|
+
"--radix-context-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
174
|
+
"--radix-context-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
175
|
+
}
|
|
176
|
+
}));
|
|
177
|
+
});
|
|
178
|
+
function m(e) {
|
|
179
|
+
return (o) => o.pointerType !== "mouse" ? e(o) : void 0;
|
|
180
|
+
}
|
|
181
|
+
const _e = z, Me = K, he = Q, ge = Z, Pe = ee, ve = te, Se = oe, Ie = ne, Oe = ae, Re = ce, we = re, Te = se, Ee = de, ye = $e, Ge = pe;
|
|
182
|
+
export {
|
|
183
|
+
Ie as CheckboxItem,
|
|
184
|
+
ge as Content,
|
|
185
|
+
z as ContextMenu,
|
|
186
|
+
ne as ContextMenuCheckboxItem,
|
|
187
|
+
Z as ContextMenuContent,
|
|
188
|
+
ee as ContextMenuGroup,
|
|
189
|
+
oe as ContextMenuItem,
|
|
190
|
+
re as ContextMenuItemIndicator,
|
|
191
|
+
te as ContextMenuLabel,
|
|
192
|
+
Q as ContextMenuPortal,
|
|
193
|
+
ae as ContextMenuRadioGroup,
|
|
194
|
+
ce as ContextMenuRadioItem,
|
|
195
|
+
se as ContextMenuSeparator,
|
|
196
|
+
de as ContextMenuSub,
|
|
197
|
+
pe as ContextMenuSubContent,
|
|
198
|
+
$e as ContextMenuSubTrigger,
|
|
199
|
+
K as ContextMenuTrigger,
|
|
200
|
+
Pe as Group,
|
|
201
|
+
Se as Item,
|
|
202
|
+
we as ItemIndicator,
|
|
203
|
+
ve as Label,
|
|
204
|
+
he as Portal,
|
|
205
|
+
Oe as RadioGroup,
|
|
206
|
+
Re as RadioItem,
|
|
207
|
+
_e as Root,
|
|
208
|
+
Te as Separator,
|
|
209
|
+
Ee as Sub,
|
|
210
|
+
Ge as SubContent,
|
|
211
|
+
ye as SubTrigger,
|
|
212
|
+
Me as Trigger
|
|
213
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { createContext as v, useMemo as $, createElement as b, useContext as C } from "react";
|
|
2
|
+
function P(e, i = []) {
|
|
3
|
+
let n = [];
|
|
4
|
+
function f(u, t) {
|
|
5
|
+
const o = /* @__PURE__ */ v(t), c = n.length;
|
|
6
|
+
n = [
|
|
7
|
+
...n,
|
|
8
|
+
t
|
|
9
|
+
];
|
|
10
|
+
function a(p) {
|
|
11
|
+
const { scope: r, children: x, ...d } = p, m = (r == null ? void 0 : r[e][c]) || o, S = $(
|
|
12
|
+
() => d,
|
|
13
|
+
Object.values(d)
|
|
14
|
+
);
|
|
15
|
+
return /* @__PURE__ */ b(m.Provider, {
|
|
16
|
+
value: S
|
|
17
|
+
}, x);
|
|
18
|
+
}
|
|
19
|
+
function l(p, r) {
|
|
20
|
+
const x = (r == null ? void 0 : r[e][c]) || o, d = C(x);
|
|
21
|
+
if (d)
|
|
22
|
+
return d;
|
|
23
|
+
if (t !== void 0)
|
|
24
|
+
return t;
|
|
25
|
+
throw new Error(`\`${p}\` must be used within \`${u}\``);
|
|
26
|
+
}
|
|
27
|
+
return a.displayName = u + "Provider", [
|
|
28
|
+
a,
|
|
29
|
+
l
|
|
30
|
+
];
|
|
31
|
+
}
|
|
32
|
+
const s = () => {
|
|
33
|
+
const u = n.map((t) => /* @__PURE__ */ v(t));
|
|
34
|
+
return function(o) {
|
|
35
|
+
const c = (o == null ? void 0 : o[e]) || u;
|
|
36
|
+
return $(
|
|
37
|
+
() => ({
|
|
38
|
+
[`__scope${e}`]: {
|
|
39
|
+
...o,
|
|
40
|
+
[e]: c
|
|
41
|
+
}
|
|
42
|
+
}),
|
|
43
|
+
[
|
|
44
|
+
o,
|
|
45
|
+
c
|
|
46
|
+
]
|
|
47
|
+
);
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
return s.scopeName = e, [
|
|
51
|
+
f,
|
|
52
|
+
h(s, ...i)
|
|
53
|
+
];
|
|
54
|
+
}
|
|
55
|
+
function h(...e) {
|
|
56
|
+
const i = e[0];
|
|
57
|
+
if (e.length === 1)
|
|
58
|
+
return i;
|
|
59
|
+
const n = () => {
|
|
60
|
+
const f = e.map(
|
|
61
|
+
(s) => ({
|
|
62
|
+
useScope: s(),
|
|
63
|
+
scopeName: s.scopeName
|
|
64
|
+
})
|
|
65
|
+
);
|
|
66
|
+
return function(u) {
|
|
67
|
+
const t = f.reduce((o, { useScope: c, scopeName: a }) => {
|
|
68
|
+
const p = c(u)[`__scope${a}`];
|
|
69
|
+
return {
|
|
70
|
+
...o,
|
|
71
|
+
...p
|
|
72
|
+
};
|
|
73
|
+
}, {});
|
|
74
|
+
return $(
|
|
75
|
+
() => ({
|
|
76
|
+
[`__scope${i.scopeName}`]: t
|
|
77
|
+
}),
|
|
78
|
+
[
|
|
79
|
+
t
|
|
80
|
+
]
|
|
81
|
+
);
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
return n.scopeName = i.scopeName, n;
|
|
85
|
+
}
|
|
86
|
+
export {
|
|
87
|
+
P as createContextScope
|
|
88
|
+
};
|