@overmap-ai/blocks 1.0.25-table-row-loading.0 → 1.0.25-try-to-fix-react-table-library-imports.2

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.
Files changed (39) hide show
  1. package/dist/Badge/Badge.d.ts +1 -1
  2. package/dist/Badge/typings.d.ts +1 -1
  3. package/dist/BaseMenuGroups/utils.d.ts +1 -1
  4. package/dist/Breadcrumb/Breadcrumb.d.ts +1 -1
  5. package/dist/ButtonGroup/ButtonGroup.d.ts +1 -1
  6. package/dist/ButtonGroup/typings.d.ts +1 -1
  7. package/dist/Buttons/Button.d.ts +1 -1
  8. package/dist/Buttons/IconButton.d.ts +1 -1
  9. package/dist/Buttons/constants.d.ts +1 -1
  10. package/dist/Buttons/typings.d.ts +1 -1
  11. package/dist/ContextMenu/index.d.ts +5 -5
  12. package/dist/DropdownItemMenu/DropdownItemMenu.d.ts +1 -1
  13. package/dist/DropdownMenu/DropdownMenu.d.ts +2 -2
  14. package/dist/DropdownMultiSelect/DropdownMultiSelect.d.ts +1 -1
  15. package/dist/DropdownSelect/DropdownSelect.d.ts +1 -1
  16. package/dist/IconColorUtility/IconColorUtility.d.ts +1 -1
  17. package/dist/Input/Input.d.ts +1 -1
  18. package/dist/Input/typings.d.ts +1 -1
  19. package/dist/Layout/Root.d.ts +1 -13
  20. package/dist/Layout/SlideOutOverlay.d.ts +1 -1
  21. package/dist/Layout/context.d.ts +14 -0
  22. package/dist/Layout/index.d.ts +1 -1
  23. package/dist/Popover/Popover.d.ts +1 -1
  24. package/dist/Separator/Separator.d.ts +1 -1
  25. package/dist/Separator/typings.d.ts +1 -1
  26. package/dist/SlideOut/SlideOutV2.d.ts +1 -1
  27. package/dist/Switch/Switch.d.ts +1 -1
  28. package/dist/Switch/typings.d.ts +1 -1
  29. package/dist/Table/typings.d.ts +2 -1
  30. package/dist/TextArea/TextArea.d.ts +1 -1
  31. package/dist/TextArea/typings.d.ts +1 -1
  32. package/dist/Toast/typings.d.ts +1 -1
  33. package/dist/ToggleGroup/ToggleGroup.d.ts +1 -1
  34. package/dist/blocks.js +40 -34
  35. package/dist/blocks.js.map +1 -1
  36. package/dist/blocks.umd.cjs +55 -44
  37. package/dist/blocks.umd.cjs.map +1 -1
  38. package/dist/constants.d.ts +1 -1
  39. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
1
  import { FC } from "react";
2
- import { BadgeProps } from "./typings.ts";
2
+ import { BadgeProps } from "./typings";
3
3
  /** The Badge Component is a user interface element that provides visual feedback, typically displaying a small amount
4
4
  * of information. It is commonly used to indicate counts, statuses, or labels in a concise and visually appealing
5
5
  * manner. This Badge components wraps the Badge component from Radix-ui found here https://www.radix-ui.com/themes/docs/components/badge */
@@ -1,6 +1,6 @@
1
1
  import { ComponentProps } from "react";
2
2
  import { Badge as RadixBadge, MarginProps } from "@radix-ui/themes";
3
- import { Severity } from "../typings.ts";
3
+ import { Severity } from "../typings";
4
4
  export interface BadgeProps extends Omit<ComponentProps<typeof RadixBadge>, keyof MarginProps> {
5
5
  /** The severity of the Badge, supports all global severities. Note that specifying a severity will overwrite any
6
6
  * color passed into the Badge component. */
@@ -1,5 +1,5 @@
1
1
  import { MenuItemProps } from "@radix-ui/react-menu";
2
2
  import { ChangeEvent } from "react";
3
- import { TextFilterProps } from "./typings.ts";
3
+ import { TextFilterProps } from "./typings";
4
4
  export declare const useCloseOnSelectHandler: (closeOnSelect: boolean) => (onSelect: MenuItemProps["onSelect"]) => (event: Event) => void;
5
5
  export declare const useTextFilterChangeHandler: () => (onTextFilterChange: TextFilterProps["onFilterValueChange"]) => (event: ChangeEvent<HTMLInputElement>) => void;
@@ -1,7 +1,7 @@
1
1
  import { Link } from "@radix-ui/themes";
2
2
  import { FlexProps } from "../Flex";
3
3
  import { ComponentProps, HTMLProps, ReactNode } from "react";
4
- import { Severity } from "../typings.ts";
4
+ import { Severity } from "../typings";
5
5
  export interface BreadcrumbItemProps extends Omit<HTMLProps<HTMLAnchorElement>, "size" | "ref" | "color"> {
6
6
  }
7
7
  export declare const Item: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<BreadcrumbItemProps & import("react").RefAttributes<HTMLAnchorElement>>>;
@@ -1,5 +1,5 @@
1
1
  import { FC } from "react";
2
- import { ButtonGroupProps } from "./typings.ts";
2
+ import { ButtonGroupProps } from "./typings";
3
3
  /** The ButtonGroup Component is a user interface element that groups multiple buttons together for improved user
4
4
  * interaction and visual clarity. It is commonly used to present related actions or options in a compact and organized
5
5
  * manner. The ButtonGroup supports all props of the RadixUI Flex layout component besides MarginProps,
@@ -1,6 +1,6 @@
1
1
  import { Flex, MarginProps, Responsive } from "@radix-ui/themes";
2
2
  import { ComponentProps } from "react";
3
- import { Severity, Size, Variant } from "../typings.ts";
3
+ import { Severity, Size, Variant } from "../typings";
4
4
  import { ButtonHoverEffect } from "../Buttons";
5
5
  export interface ButtonGroupProps extends Omit<ComponentProps<typeof Flex>, keyof MarginProps | "size" | "direction" | "asChild"> {
6
6
  /** The direction in which the Buttons within the ButtonGroup are stacked
@@ -1,4 +1,4 @@
1
1
  import { FC } from "react";
2
- import { ButtonProps } from "./typings.ts";
2
+ import { ButtonProps } from "./typings";
3
3
  declare const Button: FC<ButtonProps>;
4
4
  export default Button;
@@ -1,5 +1,5 @@
1
1
  import { FC } from "react";
2
- import { ButtonProps } from "./typings.ts";
2
+ import { ButtonProps } from "./typings";
3
3
  interface IconButtonProps extends ButtonProps {
4
4
  "aria-label": string;
5
5
  }
@@ -1,4 +1,4 @@
1
- import { ButtonHoverEffect } from "./typings.ts";
1
+ import { ButtonHoverEffect } from "./typings";
2
2
  import { KeyboardEvent } from "react";
3
3
  export declare const hoverEffectClassNameMapping: Record<ButtonHoverEffect, string | undefined>;
4
4
  /** Passing this to a `div` will make it behave like a `button`. However, it will **NOT** support the disabled state. */
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { Button as RadixButton, MarginProps, Responsive } from "@radix-ui/themes";
3
- import { Severity, Size, Variant } from "../typings.ts";
3
+ import { Severity, Size, Variant } from "../typings";
4
4
  export interface Shortcut {
5
5
  keys: string[];
6
6
  action: () => void;
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  export type { ContextMenuRootProps } from "./Root";
3
3
  export declare const ContextMenu: {
4
- Root: import("react").MemoExoticComponent<(props: import("./Root.tsx").ContextMenuRootProps) => import("react/jsx-runtime").JSX.Element>;
5
- ActionItemGroup: import("react").MemoExoticComponent<(props: import("../index.ts").BaseItemGroupProps) => import("react/jsx-runtime").JSX.Element>;
6
- SelectItemGroup: import("react").MemoExoticComponent<(props: import("../index.ts").BaseSelectGroupProps) => import("react/jsx-runtime").JSX.Element>;
7
- MultiSelectItemGroup: import("react").MemoExoticComponent<(props: import("../index.ts").BaseMultiSelectGroupProps) => import("react/jsx-runtime").JSX.Element>;
8
- SubItemGroup: import("react").MemoExoticComponent<(props: import("../index.ts").BaseSubMenuGroupProps) => import("react/jsx-runtime").JSX.Element>;
4
+ Root: import("react").MemoExoticComponent<(props: import("./Root").ContextMenuRootProps) => import("react/jsx-runtime").JSX.Element>;
5
+ ActionItemGroup: import("react").MemoExoticComponent<(props: import("..").BaseItemGroupProps) => import("react/jsx-runtime").JSX.Element>;
6
+ SelectItemGroup: import("react").MemoExoticComponent<(props: import("..").BaseSelectGroupProps) => import("react/jsx-runtime").JSX.Element>;
7
+ MultiSelectItemGroup: import("react").MemoExoticComponent<(props: import("..").BaseMultiSelectGroupProps) => import("react/jsx-runtime").JSX.Element>;
8
+ SubItemGroup: import("react").MemoExoticComponent<(props: import("..").BaseSubMenuGroupProps) => import("react/jsx-runtime").JSX.Element>;
9
9
  };
@@ -1,7 +1,7 @@
1
1
  import { FC } from "react";
2
+ import { DropdownMenuContentProps } from "@radix-ui/react-dropdown-menu";
2
3
  import { DropdownMenuItemGroupItemProps, DropdownMenuItemGroupProps } from "../DropdownMenu";
3
4
  import { BaseMenuProps } from "../BaseMenuGroups";
4
- import { DropdownMenuContentProps } from "@radix-ui/react-dropdown-menu";
5
5
  export type DropdownItemMenuItemProps = DropdownMenuItemGroupItemProps;
6
6
  export type DropdownItemMenuProps = DropdownMenuItemGroupProps & BaseMenuProps & DropdownMenuContentProps;
7
7
  /** The DropdownItemMenu component is a user interface element that provides a list of options for the user to choose from.
@@ -1,7 +1,7 @@
1
1
  import { FC, PropsWithChildren } from "react";
2
- import { DropdownMenuItemGroupItemProps } from "./DropdownMenuGroups.tsx";
3
- import { BaseMenuProps } from "../BaseMenuGroups";
4
2
  import { DropdownMenuContentProps } from "@radix-ui/react-dropdown-menu";
3
+ import { DropdownMenuItemGroupItemProps } from "./DropdownMenuGroups";
4
+ import { BaseMenuProps } from "../BaseMenuGroups";
5
5
  export type DropdownMenuItemProps = DropdownMenuItemGroupItemProps;
6
6
  export type DropdownMenuProps = PropsWithChildren & BaseMenuProps & DropdownMenuContentProps;
7
7
  /** The DropdownMenu component is a user interface element that provides a list of options for the user to choose from.
@@ -1,7 +1,7 @@
1
1
  import { FC } from "react";
2
+ import { DropdownMenuContentProps } from "@radix-ui/react-dropdown-menu";
2
3
  import { DropdownMenuMultiSelectGroupItemProps, DropdownMenuMultiSelectGroupProps } from "../DropdownMenu";
3
4
  import { BaseMenuProps } from "../BaseMenuGroups";
4
- import { DropdownMenuContentProps } from "@radix-ui/react-dropdown-menu";
5
5
  export type DropdownMultiSelectItemProps = DropdownMenuMultiSelectGroupItemProps;
6
6
  export type DropdownMultiSelectProps = DropdownMenuMultiSelectGroupProps & BaseMenuProps & DropdownMenuContentProps;
7
7
  export declare const DropdownMultiSelect: FC<DropdownMultiSelectProps>;
@@ -1,7 +1,7 @@
1
1
  import { FC } from "react";
2
+ import { DropdownMenuContentProps } from "@radix-ui/react-dropdown-menu";
2
3
  import { DropdownMenuItemGroupItemProps, DropdownMenuSelectGroupProps } from "../DropdownMenu";
3
4
  import { BaseMenuProps } from "../BaseMenuGroups";
4
- import { DropdownMenuContentProps } from "@radix-ui/react-dropdown-menu";
5
5
  export type DropdownSelectItemProps = DropdownMenuItemGroupItemProps;
6
6
  export type DropdownSelectProps = DropdownMenuSelectGroupProps & BaseMenuProps & DropdownMenuContentProps;
7
7
  export declare const DropdownSelect: FC<DropdownSelectProps>;
@@ -1,6 +1,6 @@
1
1
  import { ComponentProps, ReactElement } from "react";
2
2
  import { Theme } from "@radix-ui/themes";
3
- import { Severity } from "../typings.ts";
3
+ import { Severity } from "../typings";
4
4
  interface IconColorUtilityProps {
5
5
  children: ReactElement;
6
6
  }
@@ -1,3 +1,3 @@
1
1
  import { FC } from "react";
2
- import { InputProps } from "./typings.ts";
2
+ import { InputProps } from "./typings";
3
3
  export declare const Input: FC<InputProps>;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { Responsive, TextField as RadixTextField } from "@radix-ui/themes";
3
- import { Severity, Size } from "../typings.ts";
3
+ import { Severity, Size } from "../typings";
4
4
  import { MarginProps } from "@radix-ui/themes";
5
5
  type TextFieldInputProps = React.ComponentProps<typeof RadixTextField.Input>;
6
6
  export interface InputProps extends Omit<TextFieldInputProps, "size" | "color" | "radius" | "variant" | keyof MarginProps> {
@@ -1,15 +1,4 @@
1
- import { Dispatch, PropsWithChildren, SetStateAction } from "react";
2
- interface ILayoutContent {
3
- small: boolean;
4
- hideLayout: boolean;
5
- /** controlled value for open state of LeftSlideOut Component. */
6
- showLeftSlideOut: boolean;
7
- setShowLeftSlideOut: Dispatch<SetStateAction<boolean>>;
8
- /** controlled value for open state of RightSlideOut Component. */
9
- showRightSlideOut: boolean;
10
- setShowRightSlideOut: Dispatch<SetStateAction<boolean>>;
11
- }
12
- export declare const LayoutContext: import("react").Context<ILayoutContent>;
1
+ import { PropsWithChildren } from "react";
13
2
  export interface RootProps extends PropsWithChildren {
14
3
  /** TODO: DOCUMENT THIS HEAVILY
15
4
  * @default false */
@@ -20,4 +9,3 @@ export interface RootProps extends PropsWithChildren {
20
9
  }
21
10
  /** */
22
11
  export declare const Root: import("react").MemoExoticComponent<(props: RootProps) => import("react/jsx-runtime").JSX.Element>;
23
- export {};
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { PropsWithClassNameAndStyle } from "../typings.ts";
2
+ import { PropsWithClassNameAndStyle } from "../typings";
3
3
  import { SlideOutV3Props } from "../SlideOutV3";
4
4
  export interface OverlayProps extends PropsWithClassNameAndStyle {
5
5
  active?: boolean;
@@ -0,0 +1,14 @@
1
+ import { Dispatch, SetStateAction } from "react";
2
+ interface ILayoutContent {
3
+ small: boolean;
4
+ hideLayout: boolean;
5
+ /** controlled value for open state of LeftSlideOut Component. */
6
+ showLeftSlideOut: boolean;
7
+ setShowLeftSlideOut: Dispatch<SetStateAction<boolean>>;
8
+ /** controlled value for open state of RightSlideOut Component. */
9
+ showRightSlideOut: boolean;
10
+ setShowRightSlideOut: Dispatch<SetStateAction<boolean>>;
11
+ }
12
+ export declare const LayoutContext: import("react").Context<ILayoutContent>;
13
+ export declare const useLayoutContext: () => ILayoutContent;
14
+ export {};
@@ -7,7 +7,7 @@ export declare const Layout: {
7
7
  RightSlideOut: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./SlideOut").LayoutSlideOutProps & import("react").RefAttributes<HTMLDivElement>>>;
8
8
  SlideOutTrigger: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./SlideOutTrigger").SlideOutTriggerProps & import("react").RefAttributes<HTMLButtonElement>>>;
9
9
  };
10
- export * from "./hooks";
10
+ export * from "./context";
11
11
  export type * from "./Root";
12
12
  export type * from "./Container";
13
13
  export type * from "./SlideOutOverlay";
@@ -1,3 +1,3 @@
1
1
  import { FC } from "react";
2
- import { PopoverProps } from "./typings.ts";
2
+ import { PopoverProps } from "./typings";
3
3
  export declare const Popover: FC<PopoverProps>;
@@ -1,3 +1,3 @@
1
1
  import { FC } from "react";
2
- import { SeparatorProps } from "./typings.ts";
2
+ import { SeparatorProps } from "./typings";
3
3
  export declare const Separator: FC<SeparatorProps>;
@@ -1,6 +1,6 @@
1
1
  import { Flex, Text, Separator as RadixSeparator, MarginProps } from "@radix-ui/themes";
2
2
  import { ComponentProps } from "react";
3
- import { Severity } from "../typings.ts";
3
+ import { Severity } from "../typings";
4
4
  export interface SeparatorProps extends Omit<ComponentProps<typeof RadixSeparator>, "color" | "asChild" | keyof MarginProps> {
5
5
  /** text to be displayed in the middle of the separator */
6
6
  text?: string;
@@ -1,6 +1,6 @@
1
1
  import { PropsWithChildren } from "react";
2
2
  import { FocusOutsideEvent, PointerDownOutsideEvent } from "@radix-ui/react-dismissable-layer";
3
- import { PropsWithClassNameAndStyle } from "../typings.ts";
3
+ import { PropsWithClassNameAndStyle } from "../typings";
4
4
  export type DismissibleEventTypes = PointerDownOutsideEvent | FocusOutsideEvent | KeyboardEvent;
5
5
  export interface SlideOutV2Props extends PropsWithChildren, PropsWithClassNameAndStyle {
6
6
  /** The controlled open state of the SlideOut */
@@ -1,5 +1,5 @@
1
1
  import { FC } from "react";
2
- import { SwitchProps } from "./typings.ts";
2
+ import { SwitchProps } from "./typings";
3
3
  /** The Switch Component is a user interface element that allows users to toggle between two states, typically
4
4
  * representing "on" and "off" or "enabled" and "disabled". It is commonly used for settings, preferences, or any
5
5
  * binary options. This Switch component is a wrapper around the Radix-ui Switch component found here https://www.radix-ui.com/themes/docs/components/switch
@@ -1,6 +1,6 @@
1
1
  import { ComponentProps, ReactElement, ReactNode } from "react";
2
2
  import { MarginProps, Switch as RadixSwitch } from "@radix-ui/themes";
3
- import { Severity } from "../typings.ts";
3
+ import { Severity } from "../typings";
4
4
  interface SwitchIconProps {
5
5
  checked: ReactNode;
6
6
  unchecked: ReactNode;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from "react";
1
+ import { ReactElement, ReactNode } from "react";
2
2
  export type IdLabel = string | number;
3
3
  export type ValueLabel = IdLabel | null | undefined;
4
4
  export type TableLabel = ValueLabel | ReactNode;
@@ -38,6 +38,7 @@ export interface TableRow {
38
38
  columns: {
39
39
  [columnId: string]: TableCell;
40
40
  };
41
+ decorator?: (row: ReactElement) => ReactElement;
41
42
  }
42
43
  export interface TableProps {
43
44
  columns: TableColumn[];
@@ -1,5 +1,5 @@
1
1
  import { FC } from "react";
2
- import { TextAreaProps } from "./typings.ts";
2
+ import { TextAreaProps } from "./typings";
3
3
  /** The TextArea Component is a user interface element that allows users to input and edit multi-line text.
4
4
  It is commonly used in forms, chat applications, and other scenarios where longer text inputs are required.
5
5
  This TextArea is a wrapper of the RadixUI TextArea component found here https://www.radix-ui.com/themes/docs/components/text-area.
@@ -1,6 +1,6 @@
1
1
  import { ComponentProps } from "react";
2
2
  import { TextArea as RadixTextArea, MarginProps } from "@radix-ui/themes";
3
- import { Severity } from "../typings.ts";
3
+ import { Severity } from "../typings";
4
4
  export interface TextAreaProps extends Omit<ComponentProps<typeof RadixTextArea>, keyof MarginProps | "color" | "variant"> {
5
5
  /** used to set the severity of the TextArea, supports all 5 global severities
6
6
  * @default "primary"
@@ -1,7 +1,7 @@
1
1
  import { ComponentProps, ReactElement, ReactNode } from "react";
2
2
  import { ToastActionProps, ToastProps as RadixToastProps, ToastProviderProps, ToastViewportProps } from "@radix-ui/react-toast";
3
3
  import { Callout } from "@radix-ui/themes";
4
- import { Severity } from "../typings.ts";
4
+ import { Severity } from "../typings";
5
5
  export interface ToastProps {
6
6
  size?: ComponentProps<typeof Callout.Root>["size"];
7
7
  /**
@@ -1,5 +1,5 @@
1
1
  import { FC } from "react";
2
- import { ToggleGroupSingleProps } from "./typings.ts";
2
+ import { ToggleGroupSingleProps } from "./typings";
3
3
  /** The Toggle Group Component is a user interface element that allows users to select a single option from a set of
4
4
  * mutually exclusive choices. It is commonly used in situations where users need to make a single selection from a
5
5
  * predefined list of options. This component is built using the ButtonGroup and IconButton components in combination
package/dist/blocks.js CHANGED
@@ -19,11 +19,6 @@ import * as RadixToast from "@radix-ui/react-toast";
19
19
  import { ToastProvider as ToastProvider$1, ToastViewport as ToastViewport$1 } from "@radix-ui/react-toast";
20
20
  import { useErrorBoundary, ErrorBoundary } from "react-error-boundary";
21
21
  import FeatherIcon from "feather-icons-react";
22
- import { HeaderCell, Table as Table$1, Header, HeaderRow, Body, Cell, Row } from "@table-library/react-table-library/table.js";
23
- import { useTheme } from "@table-library/react-table-library/theme.js";
24
- import { useSort, HeaderCellSort } from "@table-library/react-table-library/sort.js";
25
- import { useRowSelect, SelectTypes, SelectClickTypes, HeaderCellSelect, CellSelect } from "@table-library/react-table-library/select.js";
26
- import { usePagination } from "@table-library/react-table-library/pagination.js";
27
22
  function getDefaultExportFromCjs(x) {
28
23
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
29
24
  }
@@ -97,11 +92,11 @@ const nonThemeSeverityMapping = {
97
92
  info: "gray"
98
93
  };
99
94
  const useSeverityColor = (severity) => {
100
- const theme = useThemeContext();
95
+ const theme2 = useThemeContext();
101
96
  if (!severity)
102
97
  return void 0;
103
98
  if (severity === "primary")
104
- return theme.accentColor;
99
+ return theme2.accentColor;
105
100
  return nonThemeSeverityMapping[severity];
106
101
  };
107
102
  const useViewportSize = () => {
@@ -1495,6 +1490,7 @@ const _Sidebar = forwardRef(function Sidebar2({
1495
1490
  });
1496
1491
  const Sidebar = memo(_Sidebar);
1497
1492
  const LayoutContext = createContext({});
1493
+ const useLayoutContext = () => useContext(LayoutContext);
1498
1494
  const Root$1 = memo((props) => {
1499
1495
  const { children, small = false, hideLayout = false } = props;
1500
1496
  const [showLeftSlideOut, setShowLeftSlideOut] = useState(false);
@@ -1513,7 +1509,6 @@ const Root$1 = memo((props) => {
1513
1509
  return /* @__PURE__ */ jsx(LayoutContext.Provider, { value: contextValue, children });
1514
1510
  });
1515
1511
  Root$1.displayName = "Layout.Root";
1516
- const useLayoutContext = () => useContext(LayoutContext);
1517
1512
  const Container = memo(
1518
1513
  forwardRef((props, ref) => {
1519
1514
  const { children, style, grow = "1", height = "100%", position, ...rest } = props;
@@ -3555,7 +3550,7 @@ const tableTopContainer = "_tableTopContainer_5i91d_21";
3555
3550
  const tableContainer = "_tableContainer_5i91d_25";
3556
3551
  const searchContainer = "_searchContainer_5i91d_30";
3557
3552
  const columnFilterSelect = "_columnFilterSelect_5i91d_40";
3558
- const table = "_table_5i91d_21";
3553
+ const table$1 = "_table_5i91d_21";
3559
3554
  const tableHeaderCell = "_tableHeaderCell_5i91d_58";
3560
3555
  const showSortIcon = "_showSortIcon_5i91d_74";
3561
3556
  const tableRow = "_tableRow_5i91d_78";
@@ -3574,7 +3569,7 @@ const styles$1 = {
3574
3569
  tableContainer,
3575
3570
  searchContainer,
3576
3571
  columnFilterSelect,
3577
- table,
3572
+ table: table$1,
3578
3573
  tableHeaderCell,
3579
3574
  showSortIcon,
3580
3575
  tableRow,
@@ -3586,6 +3581,16 @@ const styles$1 = {
3586
3581
  pageText,
3587
3582
  descriptionSecondLine
3588
3583
  };
3584
+ const table = import("@overmap-ai/react-table-library/table.js");
3585
+ const { Body, Cell, Header, HeaderCell, HeaderRow, Row, Table: ReactLibraryTable } = table;
3586
+ const theme = import("@overmap-ai/react-table-library/theme.js");
3587
+ const { useTheme } = theme;
3588
+ const sort = import("@overmap-ai/react-table-library/sort.js");
3589
+ const { HeaderCellSort, useSort } = sort;
3590
+ const select = import("@overmap-ai/react-table-library/select.js");
3591
+ const { CellSelect, HeaderCellSelect, SelectClickTypes, SelectTypes, useRowSelect } = select;
3592
+ const pagination = import("@overmap-ai/react-table-library/pagination.js");
3593
+ const { usePagination } = pagination;
3589
3594
  const _Table = forwardRef(function Table2(props, ref) {
3590
3595
  var _a;
3591
3596
  const {
@@ -3748,7 +3753,7 @@ const _Table = forwardRef(function Table2(props, ref) {
3748
3753
  isCarryForward: false
3749
3754
  }
3750
3755
  );
3751
- const pagination = usePagination(
3756
+ const pagination2 = usePagination(
3752
3757
  tableData,
3753
3758
  {
3754
3759
  state: {
@@ -3760,7 +3765,7 @@ const _Table = forwardRef(function Table2(props, ref) {
3760
3765
  isServer: false
3761
3766
  }
3762
3767
  );
3763
- const sort = useSort(
3768
+ const sort2 = useSort(
3764
3769
  tableData,
3765
3770
  {
3766
3771
  onChange: (_action, state) => {
@@ -3877,7 +3882,7 @@ const _Table = forwardRef(function Table2(props, ref) {
3877
3882
  });
3878
3883
  const SelectedModeButton = isMobile ? IconButton : Button2;
3879
3884
  const layout = useMemo(() => ({ custom: true, ...fixHeader && { fixedHeader: true } }), [fixHeader]);
3880
- const theme = useTheme({
3885
+ const theme2 = useTheme({
3881
3886
  Table: `
3882
3887
  --data-table-library_grid-template-columns: ${gridTemplateColumns} !important;
3883
3888
  `,
@@ -3900,14 +3905,14 @@ const _Table = forwardRef(function Table2(props, ref) {
3900
3905
  if (showPageNavigation) {
3901
3906
  const numTotalPages = Math.ceil(rows.length / numRowsPerPage);
3902
3907
  setTotalPages(numTotalPages);
3903
- if (pagination.state.page < 0) {
3904
- pagination.fns.onSetPage(0);
3908
+ if (pagination2.state.page < 0) {
3909
+ pagination2.fns.onSetPage(0);
3905
3910
  }
3906
- if (pagination.state.page > numTotalPages - 1) {
3907
- pagination.fns.onSetPage(numTotalPages - 1);
3911
+ if (pagination2.state.page > numTotalPages - 1) {
3912
+ pagination2.fns.onSetPage(numTotalPages - 1);
3908
3913
  }
3909
3914
  }
3910
- }, [rowsPerPage, rows.length, numRowsPerPage, pagination, showPageNavigation]);
3915
+ }, [rowsPerPage, rows.length, numRowsPerPage, pagination2, showPageNavigation]);
3911
3916
  return /* @__PURE__ */ jsxs(Flex$1, { className: classNames({ [styles$1.outerTableContainer]: showContainer }), direction: "column", height: "100%", children: [
3912
3917
  (!!title || !!description) && /* @__PURE__ */ jsxs("div", { className: styles$1.headerContainer, children: [
3913
3918
  !!title && /* @__PURE__ */ jsx(Text$1, { weight: "bold", size: "5", children: title }),
@@ -3940,7 +3945,7 @@ const _Table = forwardRef(function Table2(props, ref) {
3940
3945
  color: "crimson",
3941
3946
  onClick: () => {
3942
3947
  setColumnFilterValues(defaultColumnFilterValues);
3943
- pagination.fns.onSetPage(0);
3948
+ pagination2.fns.onSetPage(0);
3944
3949
  },
3945
3950
  "aria-label": "Clear filters",
3946
3951
  children: /* @__PURE__ */ jsx(Cross2Icon, {})
@@ -3961,13 +3966,13 @@ const _Table = forwardRef(function Table2(props, ref) {
3961
3966
  ] }),
3962
3967
  children,
3963
3968
  /* @__PURE__ */ jsx("div", { className: styles$1.tableContainer, children: /* @__PURE__ */ jsx(
3964
- Table$1,
3969
+ ReactLibraryTable,
3965
3970
  {
3966
3971
  className: classNames(styles$1.table, className),
3967
3972
  data: tableData,
3968
- theme,
3969
- sort,
3970
- pagination: showPageNavigation && pagination,
3973
+ theme: theme2,
3974
+ sort: sort2,
3975
+ pagination: showPageNavigation && pagination2,
3971
3976
  select: tableSelect,
3972
3977
  layout,
3973
3978
  ref,
@@ -3985,7 +3990,7 @@ const _Table = forwardRef(function Table2(props, ref) {
3985
3990
  className: classNames(styles$1.tableRow, rowClassName, row.className, {
3986
3991
  [styles$1.disabled]: row.disabled
3987
3992
  }),
3988
- onClick: !row.loading && !row.disabled && row.onClick,
3993
+ onClick: !row.disabled && row.onClick,
3989
3994
  children: row.loading ? /* @__PURE__ */ jsx(
3990
3995
  Cell,
3991
3996
  {
@@ -4033,7 +4038,7 @@ const _Table = forwardRef(function Table2(props, ref) {
4033
4038
  items: rowsPerPageOptions,
4034
4039
  defaultValue: (_a = rowsPerPageOptions.find((rowPerPage) => rowPerPage.value === defaultRowsPerPage.toString())) == null ? void 0 : _a.value.toString(),
4035
4040
  onValueChange: (v) => {
4036
- pagination.fns.onSetSize(Number(v));
4041
+ pagination2.fns.onSetSize(Number(v));
4037
4042
  setNumRowsPerPage(Number(v));
4038
4043
  },
4039
4044
  placeholder: rowsPerPageOptions[0].itemContent,
@@ -4041,14 +4046,14 @@ const _Table = forwardRef(function Table2(props, ref) {
4041
4046
  }
4042
4047
  )
4043
4048
  ] }),
4044
- showPageNumber && /* @__PURE__ */ jsx(Flex$1, { justify: "center", children: /* @__PURE__ */ jsx(Text$1, { className: styles$1.pageText, size: "2", children: totalPages > 0 && `Page ${pagination.state.page + 1} of ${totalPages}` }) }),
4049
+ showPageNumber && /* @__PURE__ */ jsx(Flex$1, { justify: "center", children: /* @__PURE__ */ jsx(Text$1, { className: styles$1.pageText, size: "2", children: totalPages > 0 && `Page ${pagination2.state.page + 1} of ${totalPages}` }) }),
4045
4050
  showPageNavigation && /* @__PURE__ */ jsxs(Flex$1, { className: styles$1.rowsPerPageContainer, gap: "2", justify: "end", children: [
4046
4051
  /* @__PURE__ */ jsx(
4047
4052
  IconButton,
4048
4053
  {
4049
4054
  variant: "surface",
4050
- onClick: () => pagination.fns.onSetPage(0),
4051
- disabled: pagination.state.page === 0 || totalPages === 0,
4055
+ onClick: () => pagination2.fns.onSetPage(0),
4056
+ disabled: pagination2.state.page === 0 || totalPages === 0,
4052
4057
  "aria-label": "Go to first page",
4053
4058
  children: /* @__PURE__ */ jsx(DoubleArrowLeftIcon, {})
4054
4059
  }
@@ -4057,8 +4062,8 @@ const _Table = forwardRef(function Table2(props, ref) {
4057
4062
  IconButton,
4058
4063
  {
4059
4064
  variant: "surface",
4060
- disabled: pagination.state.page === 0 || totalPages === 0,
4061
- onClick: () => pagination.fns.onSetPage(pagination.state.page - 1),
4065
+ disabled: pagination2.state.page === 0 || totalPages === 0,
4066
+ onClick: () => pagination2.fns.onSetPage(pagination2.state.page - 1),
4062
4067
  "aria-label": "Previous page",
4063
4068
  children: /* @__PURE__ */ jsx(ChevronLeftIcon, {})
4064
4069
  }
@@ -4067,8 +4072,8 @@ const _Table = forwardRef(function Table2(props, ref) {
4067
4072
  IconButton,
4068
4073
  {
4069
4074
  variant: "surface",
4070
- disabled: pagination.state.page + 1 === totalPages || totalPages === 0,
4071
- onClick: () => pagination.fns.onSetPage(pagination.state.page + 1),
4075
+ disabled: pagination2.state.page + 1 === totalPages || totalPages === 0,
4076
+ onClick: () => pagination2.fns.onSetPage(pagination2.state.page + 1),
4072
4077
  "aria-label": "Next page",
4073
4078
  children: /* @__PURE__ */ jsx(ChevronRightIcon, {})
4074
4079
  }
@@ -4077,8 +4082,8 @@ const _Table = forwardRef(function Table2(props, ref) {
4077
4082
  IconButton,
4078
4083
  {
4079
4084
  variant: "surface",
4080
- disabled: pagination.state.page + 1 === totalPages || totalPages === 0,
4081
- onClick: () => pagination.fns.onSetPage(totalPages - 1),
4085
+ disabled: pagination2.state.page + 1 === totalPages || totalPages === 0,
4086
+ onClick: () => pagination2.fns.onSetPage(totalPages - 1),
4082
4087
  "aria-label": "Go to last page",
4083
4088
  children: /* @__PURE__ */ jsx(DoubleArrowRightIcon, {})
4084
4089
  }
@@ -4281,6 +4286,7 @@ export {
4281
4286
  IconColorUtility,
4282
4287
  Input,
4283
4288
  Layout,
4289
+ LayoutContext,
4284
4290
  LeftAndRightPanels,
4285
4291
  MultiPagePopover,
4286
4292
  MultiSelect,