@overmap-ai/blocks 1.0.17 → 1.0.19
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 +33 -24
- package/dist/blocks.js.map +1 -1
- package/dist/blocks.umd.cjs +34 -25
- package/dist/blocks.umd.cjs.map +1 -1
- package/dist/style.css +31 -31
- 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,
|
|
@@ -2973,23 +2973,23 @@ const SelectAllCheckbox = memo(function SelectAllCheckbox2({
|
|
|
2973
2973
|
childrenWithProps
|
|
2974
2974
|
] });
|
|
2975
2975
|
});
|
|
2976
|
-
const outerTableContainer = "
|
|
2977
|
-
const headerContainer = "
|
|
2978
|
-
const tableTopContainer = "
|
|
2979
|
-
const tableContainer = "
|
|
2980
|
-
const searchContainer = "
|
|
2981
|
-
const columnFilterSelect = "
|
|
2982
|
-
const table = "
|
|
2983
|
-
const tableHeaderCell = "
|
|
2984
|
-
const showSortIcon = "
|
|
2985
|
-
const tableRow = "
|
|
2986
|
-
const tableCell = "
|
|
2987
|
-
const noDataTextContainer = "
|
|
2988
|
-
const tableBottomContainer = "
|
|
2989
|
-
const rowsPerPageContainer = "
|
|
2990
|
-
const rowsPerPageText = "
|
|
2991
|
-
const pageText = "
|
|
2992
|
-
const descriptionSecondLine = "
|
|
2976
|
+
const outerTableContainer = "_outerTableContainer_kx4ca_1";
|
|
2977
|
+
const headerContainer = "_headerContainer_kx4ca_13";
|
|
2978
|
+
const tableTopContainer = "_tableTopContainer_kx4ca_17";
|
|
2979
|
+
const tableContainer = "_tableContainer_kx4ca_21";
|
|
2980
|
+
const searchContainer = "_searchContainer_kx4ca_26";
|
|
2981
|
+
const columnFilterSelect = "_columnFilterSelect_kx4ca_36";
|
|
2982
|
+
const table = "_table_kx4ca_17";
|
|
2983
|
+
const tableHeaderCell = "_tableHeaderCell_kx4ca_54";
|
|
2984
|
+
const showSortIcon = "_showSortIcon_kx4ca_70";
|
|
2985
|
+
const tableRow = "_tableRow_kx4ca_74";
|
|
2986
|
+
const tableCell = "_tableCell_kx4ca_89";
|
|
2987
|
+
const noDataTextContainer = "_noDataTextContainer_kx4ca_99";
|
|
2988
|
+
const tableBottomContainer = "_tableBottomContainer_kx4ca_105";
|
|
2989
|
+
const rowsPerPageContainer = "_rowsPerPageContainer_kx4ca_109";
|
|
2990
|
+
const rowsPerPageText = "_rowsPerPageText_kx4ca_119";
|
|
2991
|
+
const pageText = "_pageText_kx4ca_124";
|
|
2992
|
+
const descriptionSecondLine = "_descriptionSecondLine_kx4ca_128";
|
|
2993
2993
|
const styles$1 = {
|
|
2994
2994
|
outerTableContainer,
|
|
2995
2995
|
headerContainer,
|
|
@@ -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,
|
|
@@ -3572,7 +3573,7 @@ const _ConfirmEditInput = forwardRef(function ConfirmEditInput2({
|
|
|
3572
3573
|
},
|
|
3573
3574
|
[onCheckClick, onCancelClick, isConfirmDisabled, mode]
|
|
3574
3575
|
);
|
|
3575
|
-
return /* @__PURE__ */ jsx(HoverUtility, { children: ({ isHovered, ...props }) => /* @__PURE__ */ jsxs(Flex, { className: styles.editableTextContainer, gap: "
|
|
3576
|
+
return /* @__PURE__ */ jsx(HoverUtility, { children: ({ isHovered, ...props }) => /* @__PURE__ */ jsxs(Flex, { className: styles.editableTextContainer, gap: "2", ...props, children: [
|
|
3576
3577
|
/* @__PURE__ */ jsx(
|
|
3577
3578
|
Input,
|
|
3578
3579
|
{
|
|
@@ -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,
|