@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,46 @@
|
|
|
1
|
+
import { __rest as I, __assign as r } from "../../../../../tslib@2.4.1/node_modules/tslib/tslib.es6.mjs";
|
|
2
|
+
import * as a from "react";
|
|
3
|
+
import { zeroRightClassName as Z, fullWidthClassName as x } from "../../../../../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";
|
|
4
|
+
import { effectCar as W } from "./medium.mjs";
|
|
5
|
+
import { jsxs as j, Fragment as z, jsx as m } from "../../../../../../../_virtual/jsx-runtime.mjs";
|
|
6
|
+
import { useMergeRefs as M } from "../../../../../use-callback-ref@1.3.1_@types_react@18.0.15_react@18.2.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.mjs";
|
|
7
|
+
var o = function() {
|
|
8
|
+
}, d = a.forwardRef(function(e, f) {
|
|
9
|
+
var l = a.useRef(null), n = a.useState({
|
|
10
|
+
onScrollCapture: o,
|
|
11
|
+
onWheelCapture: o,
|
|
12
|
+
onTouchMoveCapture: o
|
|
13
|
+
}), h = n[0], u = n[1], v = e.forwardProps, s = e.children, C = e.className, P = e.removeScrollBar, R = e.enabled, S = e.shards, b = e.sideCar, w = e.noIsolation, N = e.inert, g = e.allowPinchZoom, t = e.as, _ = t === void 0 ? "div" : t, B = I(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as"]), k = b, i = M([l, f]), c = r(r({}, B), h);
|
|
14
|
+
return /* @__PURE__ */ j(z, {
|
|
15
|
+
children: [R && /* @__PURE__ */ m(k, {
|
|
16
|
+
sideCar: W,
|
|
17
|
+
removeScrollBar: P,
|
|
18
|
+
shards: S,
|
|
19
|
+
noIsolation: w,
|
|
20
|
+
inert: N,
|
|
21
|
+
setCallbacks: u,
|
|
22
|
+
allowPinchZoom: !!g,
|
|
23
|
+
lockRef: l
|
|
24
|
+
}), v ? a.cloneElement(a.Children.only(s), r(r({}, c), {
|
|
25
|
+
ref: i
|
|
26
|
+
})) : /* @__PURE__ */ m(_, {
|
|
27
|
+
...r({}, c, {
|
|
28
|
+
className: C,
|
|
29
|
+
ref: i
|
|
30
|
+
}),
|
|
31
|
+
children: s
|
|
32
|
+
})]
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
d.defaultProps = {
|
|
36
|
+
enabled: !0,
|
|
37
|
+
removeScrollBar: !0,
|
|
38
|
+
inert: !1
|
|
39
|
+
};
|
|
40
|
+
d.classNames = {
|
|
41
|
+
fullWidth: x,
|
|
42
|
+
zeroRight: Z
|
|
43
|
+
};
|
|
44
|
+
export {
|
|
45
|
+
d as RemoveScroll
|
|
46
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
var r = !1;
|
|
2
|
+
if (typeof window < "u")
|
|
3
|
+
try {
|
|
4
|
+
var e = Object.defineProperty({}, "passive", {
|
|
5
|
+
get: function() {
|
|
6
|
+
return r = !0, !0;
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
window.addEventListener("test", e, e), window.removeEventListener("test", e, e);
|
|
10
|
+
} catch {
|
|
11
|
+
r = !1;
|
|
12
|
+
}
|
|
13
|
+
var a = r ? { passive: !1 } : !1;
|
|
14
|
+
export {
|
|
15
|
+
a as nonPassive
|
|
16
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
var p = function(r) {
|
|
2
|
+
return r.tagName === "TEXTAREA";
|
|
3
|
+
}, w = function(r, e) {
|
|
4
|
+
var l = window.getComputedStyle(r);
|
|
5
|
+
return (
|
|
6
|
+
// not-not-scrollable
|
|
7
|
+
l[e] !== "hidden" && // contains scroll inside self
|
|
8
|
+
!(l.overflowY === l.overflowX && !p(r) && l[e] === "visible")
|
|
9
|
+
);
|
|
10
|
+
}, y = function(r) {
|
|
11
|
+
return w(r, "overflowY");
|
|
12
|
+
}, H = function(r) {
|
|
13
|
+
return w(r, "overflowX");
|
|
14
|
+
}, L = function(r, e) {
|
|
15
|
+
var l = e;
|
|
16
|
+
do {
|
|
17
|
+
typeof ShadowRoot < "u" && l instanceof ShadowRoot && (l = l.host);
|
|
18
|
+
var o = g(r, l);
|
|
19
|
+
if (o) {
|
|
20
|
+
var a = C(r, l), n = a[1], c = a[2];
|
|
21
|
+
if (n > c)
|
|
22
|
+
return !0;
|
|
23
|
+
}
|
|
24
|
+
l = l.parentNode;
|
|
25
|
+
} while (l && l !== document.body);
|
|
26
|
+
return !1;
|
|
27
|
+
}, B = function(r) {
|
|
28
|
+
var e = r.scrollTop, l = r.scrollHeight, o = r.clientHeight;
|
|
29
|
+
return [
|
|
30
|
+
e,
|
|
31
|
+
l,
|
|
32
|
+
o
|
|
33
|
+
];
|
|
34
|
+
}, V = function(r) {
|
|
35
|
+
var e = r.scrollLeft, l = r.scrollWidth, o = r.clientWidth;
|
|
36
|
+
return [
|
|
37
|
+
e,
|
|
38
|
+
l,
|
|
39
|
+
o
|
|
40
|
+
];
|
|
41
|
+
}, g = function(r, e) {
|
|
42
|
+
return r === "v" ? y(e) : H(e);
|
|
43
|
+
}, C = function(r, e) {
|
|
44
|
+
return r === "v" ? B(e) : V(e);
|
|
45
|
+
}, W = function(r, e) {
|
|
46
|
+
return r === "h" && e === "rtl" ? -1 : 1;
|
|
47
|
+
}, N = function(r, e, l, o, a) {
|
|
48
|
+
var n = W(r, window.getComputedStyle(e).direction), c = n * o, t = l.target, d = e.contains(t), i = !1, f = c > 0, s = 0, h = 0;
|
|
49
|
+
do {
|
|
50
|
+
var u = C(r, t), v = u[0], b = u[1], m = u[2], S = b - m - n * v;
|
|
51
|
+
(v || S) && g(r, t) && (s += S, h += v), t = t.parentNode;
|
|
52
|
+
} while (
|
|
53
|
+
// portaled content
|
|
54
|
+
!d && t !== document.body || // self content
|
|
55
|
+
d && (e.contains(t) || e === t)
|
|
56
|
+
);
|
|
57
|
+
return (f && s === 0 || !f && h === 0) && (i = !0), i;
|
|
58
|
+
};
|
|
59
|
+
export {
|
|
60
|
+
N as handleScroll,
|
|
61
|
+
L as locationCouldBeScrolled
|
|
62
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RemoveScrollSideCar as r } from "./SideEffect.mjs";
|
|
2
|
+
import { effectCar as o } from "./medium.mjs";
|
|
3
|
+
import { exportSidecar as e } from "../../../../../use-sidecar@1.1.2_@types_react@18.0.15_react@18.2.0/node_modules/use-sidecar/dist/es2015/exports.mjs";
|
|
4
|
+
const f = e(o, r);
|
|
5
|
+
export {
|
|
6
|
+
f as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import { stylesheetSingleton as r } from "./singleton.mjs";
|
|
3
|
+
var i = function() {
|
|
4
|
+
var t = r();
|
|
5
|
+
return function(e, n) {
|
|
6
|
+
o.useEffect(function() {
|
|
7
|
+
return t.add(e), function() {
|
|
8
|
+
t.remove();
|
|
9
|
+
};
|
|
10
|
+
}, [e && n]);
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
i as styleHookSingleton
|
|
15
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { getNonce as o } from "../../../../../get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.mjs";
|
|
2
|
+
function r() {
|
|
3
|
+
if (!document)
|
|
4
|
+
return null;
|
|
5
|
+
var t = document.createElement("style");
|
|
6
|
+
t.type = "text/css";
|
|
7
|
+
var e = o();
|
|
8
|
+
return e && t.setAttribute("nonce", e), t;
|
|
9
|
+
}
|
|
10
|
+
function l(t, e) {
|
|
11
|
+
t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e));
|
|
12
|
+
}
|
|
13
|
+
function a(t) {
|
|
14
|
+
var e = document.head || document.getElementsByTagName("head")[0];
|
|
15
|
+
e.appendChild(t);
|
|
16
|
+
}
|
|
17
|
+
var c = function() {
|
|
18
|
+
var t = 0, e = null;
|
|
19
|
+
return {
|
|
20
|
+
add: function(n) {
|
|
21
|
+
t == 0 && (e = r()) && (l(e, n), a(e)), t++;
|
|
22
|
+
},
|
|
23
|
+
remove: function() {
|
|
24
|
+
t--, !t && e && (e.parentNode && e.parentNode.removeChild(e), e = null);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
c as stylesheetSingleton
|
|
30
|
+
};
|