@gobolt/genesis 0.4.35 → 0.4.37
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/index.cjs +10 -15
- package/dist/index.js +10 -15
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -81253,12 +81253,10 @@ const OverflowMenuContainer = styled.div`
|
|
|
81253
81253
|
transform: translateZ(0);
|
|
81254
81254
|
transform-style: preserve-3d;
|
|
81255
81255
|
|
|
81256
|
-
/* Initial
|
|
81257
|
-
|
|
81258
|
-
|
|
81259
|
-
|
|
81260
|
-
pointer-events: none;
|
|
81261
|
-
`}
|
|
81256
|
+
/* Initial visible state - let animation handle the entrance */
|
|
81257
|
+
opacity: 1;
|
|
81258
|
+
|
|
81259
|
+
/* Animation will override initial state when $isAnimating is true */
|
|
81262
81260
|
|
|
81263
81261
|
/* Prevent layout shifts and ensure smooth rendering */
|
|
81264
81262
|
contain: layout style paint;
|
|
@@ -81338,16 +81336,13 @@ const OverflowMenu = React.forwardRef(
|
|
|
81338
81336
|
);
|
|
81339
81337
|
React.useEffect(() => {
|
|
81340
81338
|
if (isOpen) {
|
|
81341
|
-
if (getPopupContainer && triggerRef.current) {
|
|
81339
|
+
if (getPopupContainer !== void 0 && triggerRef.current) {
|
|
81342
81340
|
const rect = triggerRef.current.getBoundingClientRect();
|
|
81343
81341
|
setTriggerRect(rect);
|
|
81344
81342
|
}
|
|
81345
|
-
|
|
81346
|
-
setIsAnimating(true);
|
|
81347
|
-
}, 10);
|
|
81343
|
+
setIsAnimating(true);
|
|
81348
81344
|
document.addEventListener("mousedown", handleClickOutside);
|
|
81349
81345
|
return () => {
|
|
81350
|
-
clearTimeout(timer2);
|
|
81351
81346
|
document.removeEventListener("mousedown", handleClickOutside);
|
|
81352
81347
|
};
|
|
81353
81348
|
} else {
|
|
@@ -81358,11 +81353,11 @@ const OverflowMenu = React.forwardRef(
|
|
|
81358
81353
|
}, [isOpen, handleClickOutside, getPopupContainer]);
|
|
81359
81354
|
const getMenuStyle = React.useMemo(() => {
|
|
81360
81355
|
const baseStyle = {
|
|
81361
|
-
position: getPopupContainer ? "fixed" : "absolute",
|
|
81356
|
+
position: getPopupContainer !== void 0 ? "fixed" : "absolute",
|
|
81362
81357
|
zIndex: 1e3,
|
|
81363
81358
|
...style2
|
|
81364
81359
|
};
|
|
81365
|
-
if (getPopupContainer && triggerRect) {
|
|
81360
|
+
if (getPopupContainer !== void 0 && triggerRect) {
|
|
81366
81361
|
const { top, left, right, bottom, width, height } = triggerRect;
|
|
81367
81362
|
switch (placement) {
|
|
81368
81363
|
case "bottom": {
|
|
@@ -81456,7 +81451,7 @@ const OverflowMenu = React.forwardRef(
|
|
|
81456
81451
|
}
|
|
81457
81452
|
);
|
|
81458
81453
|
const renderMenu = (content2) => {
|
|
81459
|
-
if (getPopupContainer && triggerRef.current) {
|
|
81454
|
+
if (getPopupContainer !== void 0 && triggerRef.current) {
|
|
81460
81455
|
const container = getPopupContainer(triggerRef.current);
|
|
81461
81456
|
return ReactDOM.createPortal(renderMenuContent(content2), container);
|
|
81462
81457
|
}
|
|
@@ -81681,7 +81676,7 @@ const Progress = ({
|
|
|
81681
81676
|
}
|
|
81682
81677
|
if (isProgressCombined) {
|
|
81683
81678
|
const combinedPercent = getCombinedPercent(
|
|
81684
|
-
firstBarData,
|
|
81679
|
+
firstBarData || null,
|
|
81685
81680
|
secondBarData || null
|
|
81686
81681
|
);
|
|
81687
81682
|
const textColor = Number(combinedPercent) === 100 ? "green" : "black";
|
package/dist/index.js
CHANGED
|
@@ -81235,12 +81235,10 @@ const OverflowMenuContainer = styled.div`
|
|
|
81235
81235
|
transform: translateZ(0);
|
|
81236
81236
|
transform-style: preserve-3d;
|
|
81237
81237
|
|
|
81238
|
-
/* Initial
|
|
81239
|
-
|
|
81240
|
-
|
|
81241
|
-
|
|
81242
|
-
pointer-events: none;
|
|
81243
|
-
`}
|
|
81238
|
+
/* Initial visible state - let animation handle the entrance */
|
|
81239
|
+
opacity: 1;
|
|
81240
|
+
|
|
81241
|
+
/* Animation will override initial state when $isAnimating is true */
|
|
81244
81242
|
|
|
81245
81243
|
/* Prevent layout shifts and ensure smooth rendering */
|
|
81246
81244
|
contain: layout style paint;
|
|
@@ -81320,16 +81318,13 @@ const OverflowMenu = forwardRef(
|
|
|
81320
81318
|
);
|
|
81321
81319
|
useEffect(() => {
|
|
81322
81320
|
if (isOpen) {
|
|
81323
|
-
if (getPopupContainer && triggerRef.current) {
|
|
81321
|
+
if (getPopupContainer !== void 0 && triggerRef.current) {
|
|
81324
81322
|
const rect = triggerRef.current.getBoundingClientRect();
|
|
81325
81323
|
setTriggerRect(rect);
|
|
81326
81324
|
}
|
|
81327
|
-
|
|
81328
|
-
setIsAnimating(true);
|
|
81329
|
-
}, 10);
|
|
81325
|
+
setIsAnimating(true);
|
|
81330
81326
|
document.addEventListener("mousedown", handleClickOutside);
|
|
81331
81327
|
return () => {
|
|
81332
|
-
clearTimeout(timer2);
|
|
81333
81328
|
document.removeEventListener("mousedown", handleClickOutside);
|
|
81334
81329
|
};
|
|
81335
81330
|
} else {
|
|
@@ -81340,11 +81335,11 @@ const OverflowMenu = forwardRef(
|
|
|
81340
81335
|
}, [isOpen, handleClickOutside, getPopupContainer]);
|
|
81341
81336
|
const getMenuStyle = useMemo$1(() => {
|
|
81342
81337
|
const baseStyle = {
|
|
81343
|
-
position: getPopupContainer ? "fixed" : "absolute",
|
|
81338
|
+
position: getPopupContainer !== void 0 ? "fixed" : "absolute",
|
|
81344
81339
|
zIndex: 1e3,
|
|
81345
81340
|
...style2
|
|
81346
81341
|
};
|
|
81347
|
-
if (getPopupContainer && triggerRect) {
|
|
81342
|
+
if (getPopupContainer !== void 0 && triggerRect) {
|
|
81348
81343
|
const { top, left, right, bottom, width, height } = triggerRect;
|
|
81349
81344
|
switch (placement) {
|
|
81350
81345
|
case "bottom": {
|
|
@@ -81438,7 +81433,7 @@ const OverflowMenu = forwardRef(
|
|
|
81438
81433
|
}
|
|
81439
81434
|
);
|
|
81440
81435
|
const renderMenu = (content2) => {
|
|
81441
|
-
if (getPopupContainer && triggerRef.current) {
|
|
81436
|
+
if (getPopupContainer !== void 0 && triggerRef.current) {
|
|
81442
81437
|
const container = getPopupContainer(triggerRef.current);
|
|
81443
81438
|
return createPortal(renderMenuContent(content2), container);
|
|
81444
81439
|
}
|
|
@@ -81663,7 +81658,7 @@ const Progress = ({
|
|
|
81663
81658
|
}
|
|
81664
81659
|
if (isProgressCombined) {
|
|
81665
81660
|
const combinedPercent = getCombinedPercent(
|
|
81666
|
-
firstBarData,
|
|
81661
|
+
firstBarData || null,
|
|
81667
81662
|
secondBarData || null
|
|
81668
81663
|
);
|
|
81669
81664
|
const textColor = Number(combinedPercent) === 100 ? "green" : "black";
|