@bbki.ng/components 2.6.16 → 4.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,136 @@
|
|
|
1
|
+
import U from "../../../../../@babel_runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/extends.mjs";
|
|
2
|
+
import { forwardRef as _, useContext as z, createContext as A, useState as C, useEffect as v, createElement as N, useRef as h } from "react";
|
|
3
|
+
import { composeEventHandlers as p } from "../../../../../@radix-ui_primitive@1.0.1/node_modules/@radix-ui/primitive/dist/index.mjs";
|
|
4
|
+
import { Primitive as H, dispatchDiscreteCustomEvent as K } 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";
|
|
5
|
+
import { useComposedRefs as X } 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";
|
|
6
|
+
import { useCallbackRef as T } 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";
|
|
7
|
+
import { useEscapeKeydown as j } from "../../../../../@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";
|
|
8
|
+
const m = "dismissableLayer.update", q = "dismissableLayer.pointerDownOutside", G = "dismissableLayer.focusOutside";
|
|
9
|
+
let w;
|
|
10
|
+
const J = /* @__PURE__ */ A({
|
|
11
|
+
layers: /* @__PURE__ */ new Set(),
|
|
12
|
+
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
13
|
+
branches: /* @__PURE__ */ new Set()
|
|
14
|
+
}), ie = /* @__PURE__ */ _((s, t) => {
|
|
15
|
+
var a;
|
|
16
|
+
const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: n, onPointerDownOutside: d, onFocusOutside: f, onInteractOutside: c, onDismiss: u, ...b } = s, i = z(J), [r, F] = C(null), l = (a = r == null ? void 0 : r.ownerDocument) !== null && a !== void 0 ? a : globalThis == null ? void 0 : globalThis.document, [, I] = C({}), R = X(
|
|
17
|
+
t,
|
|
18
|
+
(e) => F(e)
|
|
19
|
+
), y = Array.from(i.layers), [W] = [
|
|
20
|
+
...i.layersWithOutsidePointerEventsDisabled
|
|
21
|
+
].slice(-1), B = y.indexOf(W), D = r ? y.indexOf(r) : -1, S = i.layersWithOutsidePointerEventsDisabled.size > 0, O = D >= B, k = M((e) => {
|
|
22
|
+
const E = e.target, g = [
|
|
23
|
+
...i.branches
|
|
24
|
+
].some(
|
|
25
|
+
($) => $.contains(E)
|
|
26
|
+
);
|
|
27
|
+
!O || g || (d == null || d(e), c == null || c(e), e.defaultPrevented || u == null || u());
|
|
28
|
+
}, l), P = Q((e) => {
|
|
29
|
+
const E = e.target;
|
|
30
|
+
[
|
|
31
|
+
...i.branches
|
|
32
|
+
].some(
|
|
33
|
+
($) => $.contains(E)
|
|
34
|
+
) || (f == null || f(e), c == null || c(e), e.defaultPrevented || u == null || u());
|
|
35
|
+
}, l);
|
|
36
|
+
return j((e) => {
|
|
37
|
+
D === i.layers.size - 1 && (n == null || n(e), !e.defaultPrevented && u && (e.preventDefault(), u()));
|
|
38
|
+
}, l), v(() => {
|
|
39
|
+
if (r)
|
|
40
|
+
return o && (i.layersWithOutsidePointerEventsDisabled.size === 0 && (w = l.body.style.pointerEvents, l.body.style.pointerEvents = "none"), i.layersWithOutsidePointerEventsDisabled.add(r)), i.layers.add(r), L(), () => {
|
|
41
|
+
o && i.layersWithOutsidePointerEventsDisabled.size === 1 && (l.body.style.pointerEvents = w);
|
|
42
|
+
};
|
|
43
|
+
}, [
|
|
44
|
+
r,
|
|
45
|
+
l,
|
|
46
|
+
o,
|
|
47
|
+
i
|
|
48
|
+
]), v(() => () => {
|
|
49
|
+
r && (i.layers.delete(r), i.layersWithOutsidePointerEventsDisabled.delete(r), L());
|
|
50
|
+
}, [
|
|
51
|
+
r,
|
|
52
|
+
i
|
|
53
|
+
]), v(() => {
|
|
54
|
+
const e = () => I({});
|
|
55
|
+
return document.addEventListener(m, e), () => document.removeEventListener(m, e);
|
|
56
|
+
}, []), /* @__PURE__ */ N(H.div, U({}, b, {
|
|
57
|
+
ref: R,
|
|
58
|
+
style: {
|
|
59
|
+
pointerEvents: S ? O ? "auto" : "none" : void 0,
|
|
60
|
+
...s.style
|
|
61
|
+
},
|
|
62
|
+
onFocusCapture: p(s.onFocusCapture, P.onFocusCapture),
|
|
63
|
+
onBlurCapture: p(s.onBlurCapture, P.onBlurCapture),
|
|
64
|
+
onPointerDownCapture: p(s.onPointerDownCapture, k.onPointerDownCapture)
|
|
65
|
+
}));
|
|
66
|
+
});
|
|
67
|
+
function M(s, t = globalThis == null ? void 0 : globalThis.document) {
|
|
68
|
+
const a = T(s), o = h(!1), n = h(() => {
|
|
69
|
+
});
|
|
70
|
+
return v(() => {
|
|
71
|
+
const d = (c) => {
|
|
72
|
+
if (c.target && !o.current) {
|
|
73
|
+
let b = function() {
|
|
74
|
+
x(q, a, u, {
|
|
75
|
+
discrete: !0
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
const u = {
|
|
79
|
+
originalEvent: c
|
|
80
|
+
};
|
|
81
|
+
c.pointerType === "touch" ? (t.removeEventListener("click", n.current), n.current = b, t.addEventListener("click", n.current, {
|
|
82
|
+
once: !0
|
|
83
|
+
})) : b();
|
|
84
|
+
} else
|
|
85
|
+
t.removeEventListener("click", n.current);
|
|
86
|
+
o.current = !1;
|
|
87
|
+
}, f = window.setTimeout(() => {
|
|
88
|
+
t.addEventListener("pointerdown", d);
|
|
89
|
+
}, 0);
|
|
90
|
+
return () => {
|
|
91
|
+
window.clearTimeout(f), t.removeEventListener("pointerdown", d), t.removeEventListener("click", n.current);
|
|
92
|
+
};
|
|
93
|
+
}, [
|
|
94
|
+
t,
|
|
95
|
+
a
|
|
96
|
+
]), {
|
|
97
|
+
// ensures we check React component tree (not just DOM tree)
|
|
98
|
+
onPointerDownCapture: () => o.current = !0
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
function Q(s, t = globalThis == null ? void 0 : globalThis.document) {
|
|
102
|
+
const a = T(s), o = h(!1);
|
|
103
|
+
return v(() => {
|
|
104
|
+
const n = (d) => {
|
|
105
|
+
d.target && !o.current && x(G, a, {
|
|
106
|
+
originalEvent: d
|
|
107
|
+
}, {
|
|
108
|
+
discrete: !1
|
|
109
|
+
});
|
|
110
|
+
};
|
|
111
|
+
return t.addEventListener("focusin", n), () => t.removeEventListener("focusin", n);
|
|
112
|
+
}, [
|
|
113
|
+
t,
|
|
114
|
+
a
|
|
115
|
+
]), {
|
|
116
|
+
onFocusCapture: () => o.current = !0,
|
|
117
|
+
onBlurCapture: () => o.current = !1
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
function L() {
|
|
121
|
+
const s = new CustomEvent(m);
|
|
122
|
+
document.dispatchEvent(s);
|
|
123
|
+
}
|
|
124
|
+
function x(s, t, a, { discrete: o }) {
|
|
125
|
+
const n = a.originalEvent.target, d = new CustomEvent(s, {
|
|
126
|
+
bubbles: !1,
|
|
127
|
+
cancelable: !0,
|
|
128
|
+
detail: a
|
|
129
|
+
});
|
|
130
|
+
t && n.addEventListener(s, t, {
|
|
131
|
+
once: !0
|
|
132
|
+
}), o ? K(n, d) : n.dispatchEvent(d);
|
|
133
|
+
}
|
|
134
|
+
export {
|
|
135
|
+
ie as DismissableLayer
|
|
136
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { useEffect as o } from "react";
|
|
2
|
+
let d = 0;
|
|
3
|
+
function c() {
|
|
4
|
+
o(() => {
|
|
5
|
+
var e, t;
|
|
6
|
+
const a = document.querySelectorAll("[data-radix-focus-guard]");
|
|
7
|
+
return document.body.insertAdjacentElement("afterbegin", (e = a[0]) !== null && e !== void 0 ? e : n()), document.body.insertAdjacentElement("beforeend", (t = a[1]) !== null && t !== void 0 ? t : n()), d++, () => {
|
|
8
|
+
d === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach(
|
|
9
|
+
(r) => r.remove()
|
|
10
|
+
), d--;
|
|
11
|
+
};
|
|
12
|
+
}, []);
|
|
13
|
+
}
|
|
14
|
+
function n() {
|
|
15
|
+
const e = document.createElement("span");
|
|
16
|
+
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.cssText = "outline: none; opacity: 0; position: fixed; pointer-events: none", e;
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
c as useFocusGuards
|
|
20
|
+
};
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import P from "../../../../../@babel_runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/extends.mjs";
|
|
2
|
+
import { forwardRef as _, useState as k, useRef as T, useEffect as h, useCallback as K, createElement as M } from "react";
|
|
3
|
+
import { useComposedRefs as R } 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 { Primitive as w } 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";
|
|
5
|
+
import { useCallbackRef as y } 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";
|
|
6
|
+
const E = "focusScope.autoFocusOnMount", b = "focusScope.autoFocusOnUnmount", N = {
|
|
7
|
+
bubbles: !1,
|
|
8
|
+
cancelable: !0
|
|
9
|
+
}, X = /* @__PURE__ */ _((e, n) => {
|
|
10
|
+
const { loop: t = !1, trapped: c = !1, onMountAutoFocus: m, onUnmountAutoFocus: L, ...g } = e, [s, U] = k(null), p = y(m), v = y(L), $ = T(null), x = R(
|
|
11
|
+
n,
|
|
12
|
+
(o) => U(o)
|
|
13
|
+
), i = T({
|
|
14
|
+
paused: !1,
|
|
15
|
+
pause() {
|
|
16
|
+
this.paused = !0;
|
|
17
|
+
},
|
|
18
|
+
resume() {
|
|
19
|
+
this.paused = !1;
|
|
20
|
+
}
|
|
21
|
+
}).current;
|
|
22
|
+
h(() => {
|
|
23
|
+
if (c) {
|
|
24
|
+
let o = function(u) {
|
|
25
|
+
if (i.paused || !s)
|
|
26
|
+
return;
|
|
27
|
+
const r = u.target;
|
|
28
|
+
s.contains(r) ? $.current = r : d($.current, {
|
|
29
|
+
select: !0
|
|
30
|
+
});
|
|
31
|
+
}, f = function(u) {
|
|
32
|
+
if (i.paused || !s)
|
|
33
|
+
return;
|
|
34
|
+
const r = u.relatedTarget;
|
|
35
|
+
r !== null && (s.contains(r) || d($.current, {
|
|
36
|
+
select: !0
|
|
37
|
+
}));
|
|
38
|
+
}, a = function(u) {
|
|
39
|
+
if (document.activeElement === document.body)
|
|
40
|
+
for (const F of u)
|
|
41
|
+
F.removedNodes.length > 0 && d(s);
|
|
42
|
+
};
|
|
43
|
+
document.addEventListener("focusin", o), document.addEventListener("focusout", f);
|
|
44
|
+
const l = new MutationObserver(a);
|
|
45
|
+
return s && l.observe(s, {
|
|
46
|
+
childList: !0,
|
|
47
|
+
subtree: !0
|
|
48
|
+
}), () => {
|
|
49
|
+
document.removeEventListener("focusin", o), document.removeEventListener("focusout", f), l.disconnect();
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
}, [
|
|
53
|
+
c,
|
|
54
|
+
s,
|
|
55
|
+
i.paused
|
|
56
|
+
]), h(() => {
|
|
57
|
+
if (s) {
|
|
58
|
+
O.add(i);
|
|
59
|
+
const o = document.activeElement;
|
|
60
|
+
if (!s.contains(o)) {
|
|
61
|
+
const a = new CustomEvent(E, N);
|
|
62
|
+
s.addEventListener(E, p), s.dispatchEvent(a), a.defaultPrevented || (D(q(I(s)), {
|
|
63
|
+
select: !0
|
|
64
|
+
}), document.activeElement === o && d(s));
|
|
65
|
+
}
|
|
66
|
+
return () => {
|
|
67
|
+
s.removeEventListener(E, p), setTimeout(() => {
|
|
68
|
+
const a = new CustomEvent(b, N);
|
|
69
|
+
s.addEventListener(b, v), s.dispatchEvent(a), a.defaultPrevented || d(o ?? document.body, {
|
|
70
|
+
select: !0
|
|
71
|
+
}), s.removeEventListener(b, v), O.remove(i);
|
|
72
|
+
}, 0);
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
}, [
|
|
76
|
+
s,
|
|
77
|
+
p,
|
|
78
|
+
v,
|
|
79
|
+
i
|
|
80
|
+
]);
|
|
81
|
+
const A = K((o) => {
|
|
82
|
+
if (!t && !c || i.paused)
|
|
83
|
+
return;
|
|
84
|
+
const f = o.key === "Tab" && !o.altKey && !o.ctrlKey && !o.metaKey, a = document.activeElement;
|
|
85
|
+
if (f && a) {
|
|
86
|
+
const l = o.currentTarget, [u, r] = H(l);
|
|
87
|
+
u && r ? !o.shiftKey && a === r ? (o.preventDefault(), t && d(u, {
|
|
88
|
+
select: !0
|
|
89
|
+
})) : o.shiftKey && a === u && (o.preventDefault(), t && d(r, {
|
|
90
|
+
select: !0
|
|
91
|
+
})) : a === l && o.preventDefault();
|
|
92
|
+
}
|
|
93
|
+
}, [
|
|
94
|
+
t,
|
|
95
|
+
c,
|
|
96
|
+
i.paused
|
|
97
|
+
]);
|
|
98
|
+
return /* @__PURE__ */ M(w.div, P({
|
|
99
|
+
tabIndex: -1
|
|
100
|
+
}, g, {
|
|
101
|
+
ref: x,
|
|
102
|
+
onKeyDown: A
|
|
103
|
+
}));
|
|
104
|
+
});
|
|
105
|
+
function D(e, { select: n = !1 } = {}) {
|
|
106
|
+
const t = document.activeElement;
|
|
107
|
+
for (const c of e)
|
|
108
|
+
if (d(c, {
|
|
109
|
+
select: n
|
|
110
|
+
}), document.activeElement !== t)
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
function H(e) {
|
|
114
|
+
const n = I(e), t = S(n, e), c = S(n.reverse(), e);
|
|
115
|
+
return [
|
|
116
|
+
t,
|
|
117
|
+
c
|
|
118
|
+
];
|
|
119
|
+
}
|
|
120
|
+
function I(e) {
|
|
121
|
+
const n = [], t = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
122
|
+
acceptNode: (c) => {
|
|
123
|
+
const m = c.tagName === "INPUT" && c.type === "hidden";
|
|
124
|
+
return c.disabled || c.hidden || m ? NodeFilter.FILTER_SKIP : c.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
for (; t.nextNode(); )
|
|
128
|
+
n.push(t.currentNode);
|
|
129
|
+
return n;
|
|
130
|
+
}
|
|
131
|
+
function S(e, n) {
|
|
132
|
+
for (const t of e)
|
|
133
|
+
if (!V(t, {
|
|
134
|
+
upTo: n
|
|
135
|
+
}))
|
|
136
|
+
return t;
|
|
137
|
+
}
|
|
138
|
+
function V(e, { upTo: n }) {
|
|
139
|
+
if (getComputedStyle(e).visibility === "hidden")
|
|
140
|
+
return !0;
|
|
141
|
+
for (; e; ) {
|
|
142
|
+
if (n !== void 0 && e === n)
|
|
143
|
+
return !1;
|
|
144
|
+
if (getComputedStyle(e).display === "none")
|
|
145
|
+
return !0;
|
|
146
|
+
e = e.parentElement;
|
|
147
|
+
}
|
|
148
|
+
return !1;
|
|
149
|
+
}
|
|
150
|
+
function W(e) {
|
|
151
|
+
return e instanceof HTMLInputElement && "select" in e;
|
|
152
|
+
}
|
|
153
|
+
function d(e, { select: n = !1 } = {}) {
|
|
154
|
+
if (e && e.focus) {
|
|
155
|
+
const t = document.activeElement;
|
|
156
|
+
e.focus({
|
|
157
|
+
preventScroll: !0
|
|
158
|
+
}), e !== t && W(e) && n && e.select();
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
const O = j();
|
|
162
|
+
function j() {
|
|
163
|
+
let e = [];
|
|
164
|
+
return {
|
|
165
|
+
add(n) {
|
|
166
|
+
const t = e[0];
|
|
167
|
+
n !== t && (t == null || t.pause()), e = C(e, n), e.unshift(n);
|
|
168
|
+
},
|
|
169
|
+
remove(n) {
|
|
170
|
+
var t;
|
|
171
|
+
e = C(e, n), (t = e[0]) === null || t === void 0 || t.resume();
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
function C(e, n) {
|
|
176
|
+
const t = [
|
|
177
|
+
...e
|
|
178
|
+
], c = t.indexOf(n);
|
|
179
|
+
return c !== -1 && t.splice(c, 1), t;
|
|
180
|
+
}
|
|
181
|
+
function q(e) {
|
|
182
|
+
return e.filter(
|
|
183
|
+
(n) => n.tagName !== "A"
|
|
184
|
+
);
|
|
185
|
+
}
|
|
186
|
+
export {
|
|
187
|
+
X as FocusScope
|
|
188
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { forwardRef as c, createElement as n } from "react";
|
|
2
|
+
function v(o, t) {
|
|
3
|
+
if (o == null)
|
|
4
|
+
return {};
|
|
5
|
+
var r = {}, l = Object.keys(o), e, i;
|
|
6
|
+
for (i = 0; i < l.length; i++)
|
|
7
|
+
e = l[i], !(t.indexOf(e) >= 0) && (r[e] = o[e]);
|
|
8
|
+
return r;
|
|
9
|
+
}
|
|
10
|
+
var d = ["color"], u = /* @__PURE__ */ c(function(o, t) {
|
|
11
|
+
var r = o.color, l = r === void 0 ? "currentColor" : r, e = v(o, d);
|
|
12
|
+
return n("svg", Object.assign({
|
|
13
|
+
width: "15",
|
|
14
|
+
height: "15",
|
|
15
|
+
viewBox: "0 0 15 15",
|
|
16
|
+
fill: "none",
|
|
17
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
18
|
+
}, e, {
|
|
19
|
+
ref: t
|
|
20
|
+
}), n("path", {
|
|
21
|
+
d: "M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",
|
|
22
|
+
fill: l,
|
|
23
|
+
fillRule: "evenodd",
|
|
24
|
+
clipRule: "evenodd"
|
|
25
|
+
}));
|
|
26
|
+
}), f = ["color"], h = /* @__PURE__ */ c(function(o, t) {
|
|
27
|
+
var r = o.color, l = r === void 0 ? "currentColor" : r, e = v(o, f);
|
|
28
|
+
return n("svg", Object.assign({
|
|
29
|
+
width: "15",
|
|
30
|
+
height: "15",
|
|
31
|
+
viewBox: "0 0 15 15",
|
|
32
|
+
fill: "none",
|
|
33
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
34
|
+
}, e, {
|
|
35
|
+
ref: t
|
|
36
|
+
}), n("path", {
|
|
37
|
+
d: "M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",
|
|
38
|
+
fill: l,
|
|
39
|
+
fillRule: "evenodd",
|
|
40
|
+
clipRule: "evenodd"
|
|
41
|
+
}));
|
|
42
|
+
}), a = ["color"], C = /* @__PURE__ */ c(function(o, t) {
|
|
43
|
+
var r = o.color, l = r === void 0 ? "currentColor" : r, e = v(o, a);
|
|
44
|
+
return n("svg", Object.assign({
|
|
45
|
+
width: "15",
|
|
46
|
+
height: "15",
|
|
47
|
+
viewBox: "0 0 15 15",
|
|
48
|
+
fill: "none",
|
|
49
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
50
|
+
}, e, {
|
|
51
|
+
ref: t
|
|
52
|
+
}), n("path", {
|
|
53
|
+
d: "M9.875 7.5C9.875 8.81168 8.81168 9.875 7.5 9.875C6.18832 9.875 5.125 8.81168 5.125 7.5C5.125 6.18832 6.18832 5.125 7.5 5.125C8.81168 5.125 9.875 6.18832 9.875 7.5Z",
|
|
54
|
+
fill: l
|
|
55
|
+
}));
|
|
56
|
+
});
|
|
57
|
+
export {
|
|
58
|
+
u as CheckIcon,
|
|
59
|
+
h as ChevronRightIcon,
|
|
60
|
+
C as DotFilledIcon
|
|
61
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as a from "react";
|
|
2
|
+
import { useLayoutEffect as f } from "../../../../../@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";
|
|
3
|
+
const r = a.useId || (() => {
|
|
4
|
+
});
|
|
5
|
+
let n = 0;
|
|
6
|
+
function u(o) {
|
|
7
|
+
const [e, $] = a.useState(r());
|
|
8
|
+
return f(() => {
|
|
9
|
+
$(
|
|
10
|
+
(t) => t ?? String(n++)
|
|
11
|
+
);
|
|
12
|
+
}, [
|
|
13
|
+
o
|
|
14
|
+
]), e ? `radix-${e}` : "";
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
u as useId
|
|
18
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as i from "react";
|
|
2
|
+
import { Primitive as f } from "../../../../../@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";
|
|
3
|
+
import { jsx as l } from "../../../../../../../_virtual/jsx-runtime.mjs";
|
|
4
|
+
var m = "Label", r = i.forwardRef((e, o) => /* @__PURE__ */ l(
|
|
5
|
+
f.label,
|
|
6
|
+
{
|
|
7
|
+
...e,
|
|
8
|
+
ref: o,
|
|
9
|
+
onMouseDown: (t) => {
|
|
10
|
+
var a;
|
|
11
|
+
t.target.closest("button, input, select, textarea") || ((a = e.onMouseDown) == null || a.call(e, t), !t.defaultPrevented && t.detail > 1 && t.preventDefault());
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
));
|
|
15
|
+
r.displayName = m;
|
|
16
|
+
var b = r;
|
|
17
|
+
export {
|
|
18
|
+
r as Label,
|
|
19
|
+
b as Root
|
|
20
|
+
};
|