New source found from dndbeyond.com

This commit is contained in:
2026-07-08 01:00:09 -07:00
parent 9a983a6d7b
commit dcefa0d2f2
2865 changed files with 222467 additions and 49053 deletions
+14 -15
View File
@@ -1,6 +1,4 @@
var __defProp = Object.defineProperty;
var __defProps = Object.defineProperties;
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __propIsEnum = Object.prototype.propertyIsEnumerable;
@@ -16,7 +14,6 @@ var __spreadValues = (a, b) => {
}
return a;
};
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
var __objRest = (source, exclude) => {
var target = {};
for (var prop in source)
@@ -89,10 +86,11 @@ var Popover = (_a) => {
const getStyles = stylesMatcher(styles);
const helperRect = useRect(helperRef, refresher);
const { width: helperWidth, height: helperHeight } = helperRect;
const targetLeft = sizes == null ? void 0 : sizes.left;
const targetTop = sizes == null ? void 0 : sizes.top;
const targetRight = sizes == null ? void 0 : sizes.right;
const targetBottom = sizes == null ? void 0 : sizes.bottom;
const [pt, pr, pb, pl] = getPadding(padding);
const targetLeft = (sizes == null ? void 0 : sizes.left) - pl;
const targetTop = (sizes == null ? void 0 : sizes.top) - pt;
const targetRight = (sizes == null ? void 0 : sizes.right) + pr;
const targetBottom = (sizes == null ? void 0 : sizes.bottom) + pb;
const position = providedPosition && typeof providedPosition === "function" ? providedPosition(
{
width: helperWidth,
@@ -114,7 +112,6 @@ var Popover = (_a) => {
top: targetTop,
bottom: windowHeight - targetBottom
};
const [pt, pr, pb, pl] = getPadding(padding);
const couldPositionAt = (position2, isOutsideX2, isOutsideY2) => {
switch (position2) {
case "top":
@@ -195,13 +192,15 @@ var Popover = (_a) => {
"div",
__spreadValues({
className: "reactour__popover",
style: __spreadProps(__spreadValues({}, getStyles("popover", {
style: __spreadValues({
transform: `translate(${Math.round(p[0])}px, ${Math.round(p[1])}px)`
}, getStyles("popover", {
position: positionRef.current,
verticalAlign: verticalAlignRef.current,
horizontalAlign: horizontalAlignRef.current
})), {
transform: `translate(${Math.round(p[0])}px, ${Math.round(p[1])}px)`
}),
horizontalAlign: horizontalAlignRef.current,
helperRect,
targetRect: sizes
})),
ref: helperRef
}, props),
children
@@ -210,8 +209,8 @@ var Popover = (_a) => {
var Popover_default = Popover;
// index.tsx
var popover_default = Popover_default;
var index_default = Popover_default;
export {
Popover_default as Popover,
popover_default as default
index_default as default
};