@overmap-ai/blocks 1.0.17 → 1.0.18
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/ConfirmEditInput/typings.d.ts +1 -0
- package/dist/blocks.js +15 -6
- package/dist/blocks.js.map +1 -1
- package/dist/blocks.umd.cjs +16 -7
- package/dist/blocks.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/blocks.js
CHANGED
|
@@ -5,6 +5,7 @@ import React, { useMemo, useState, useLayoutEffect, useCallback, useEffect, Chil
|
|
|
5
5
|
import { useMediaQuery } from "react-responsive";
|
|
6
6
|
import { Cross1Icon, MagnifyingGlassIcon, CheckIcon, DragHandleDots2Icon, Cross2Icon, DividerHorizontalIcon, CaretSortIcon, ArrowUpIcon, ArrowDownIcon, MixerHorizontalIcon, Pencil1Icon, TrashIcon, DoubleArrowLeftIcon, ChevronLeftIcon, ChevronRightIcon, DoubleArrowRightIcon } from "@radix-ui/react-icons";
|
|
7
7
|
import * as RadixDropdownMenu from "@radix-ui/react-dropdown-menu";
|
|
8
|
+
import { isMobile } from "react-device-detect";
|
|
8
9
|
import * as RadixDialogPrimitive from "@radix-ui/react-dialog";
|
|
9
10
|
import { Resizable } from "re-resizable";
|
|
10
11
|
import { DismissableLayer } from "@radix-ui/react-dismissable-layer";
|
|
@@ -19,7 +20,6 @@ import { useTheme } from "@table-library/react-table-library/theme.js";
|
|
|
19
20
|
import { useSort, HeaderCellSort } from "@table-library/react-table-library/sort.js";
|
|
20
21
|
import { useRowSelect, SelectTypes, SelectClickTypes, HeaderCellSelect, CellSelect } from "@table-library/react-table-library/select.js";
|
|
21
22
|
import { usePagination } from "@table-library/react-table-library/pagination.js";
|
|
22
|
-
import { isMobile } from "react-device-detect";
|
|
23
23
|
function getDefaultExportFromCjs(x) {
|
|
24
24
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
25
25
|
}
|
|
@@ -1082,12 +1082,12 @@ const DropdownMultiSelect = memo(
|
|
|
1082
1082
|
)
|
|
1083
1083
|
);
|
|
1084
1084
|
const HoverUtility = memo(function Root({ children }) {
|
|
1085
|
-
const [isHovered, setIsHovered] = useState(
|
|
1085
|
+
const [isHovered, setIsHovered] = useState(isMobile);
|
|
1086
1086
|
const handlePointerEnter = useCallback(() => {
|
|
1087
1087
|
setIsHovered(true);
|
|
1088
1088
|
}, []);
|
|
1089
1089
|
const handlePointerLeave = useCallback(() => {
|
|
1090
|
-
setIsHovered(
|
|
1090
|
+
setIsHovered(isMobile);
|
|
1091
1091
|
}, []);
|
|
1092
1092
|
return children({
|
|
1093
1093
|
isHovered,
|
|
@@ -3514,6 +3514,7 @@ const _ConfirmEditInput = forwardRef(function ConfirmEditInput2({
|
|
|
3514
3514
|
inputClassName,
|
|
3515
3515
|
iconClassName,
|
|
3516
3516
|
buttonVariant,
|
|
3517
|
+
buttonAlwaysVisible = false,
|
|
3517
3518
|
variant,
|
|
3518
3519
|
severity,
|
|
3519
3520
|
size,
|
|
@@ -3600,7 +3601,11 @@ const _ConfirmEditInput = forwardRef(function ConfirmEditInput2({
|
|
|
3600
3601
|
/* @__PURE__ */ jsx(
|
|
3601
3602
|
IconButton,
|
|
3602
3603
|
{
|
|
3603
|
-
className: classNames(
|
|
3604
|
+
className: classNames(
|
|
3605
|
+
iconClassName,
|
|
3606
|
+
styles.icon,
|
|
3607
|
+
!buttonAlwaysVisible && !isHovered && styles.iconHidden
|
|
3608
|
+
),
|
|
3604
3609
|
size,
|
|
3605
3610
|
variant: buttonVariant,
|
|
3606
3611
|
severity,
|
|
@@ -3613,7 +3618,11 @@ const _ConfirmEditInput = forwardRef(function ConfirmEditInput2({
|
|
|
3613
3618
|
/* @__PURE__ */ jsx(
|
|
3614
3619
|
IconButton,
|
|
3615
3620
|
{
|
|
3616
|
-
className: classNames(
|
|
3621
|
+
className: classNames(
|
|
3622
|
+
iconClassName,
|
|
3623
|
+
styles.icon,
|
|
3624
|
+
!buttonAlwaysVisible && !isHovered && styles.iconHidden
|
|
3625
|
+
),
|
|
3617
3626
|
color: "red",
|
|
3618
3627
|
size,
|
|
3619
3628
|
variant: buttonVariant,
|
|
@@ -3630,7 +3639,7 @@ const _ConfirmEditInput = forwardRef(function ConfirmEditInput2({
|
|
|
3630
3639
|
iconClassName,
|
|
3631
3640
|
styles.editIcon,
|
|
3632
3641
|
styles.icon,
|
|
3633
|
-
!isHovered && styles.iconHidden
|
|
3642
|
+
!buttonAlwaysVisible && !isHovered && styles.iconHidden
|
|
3634
3643
|
),
|
|
3635
3644
|
size,
|
|
3636
3645
|
variant: buttonVariant,
|