@overmap-ai/blocks 1.0.7 → 1.0.9-form-table-view.0
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/README.md +3 -3
- package/dist/ButtonGroup/ButtonList.d.ts +2 -1
- package/dist/blocks.js +9 -37
- package/dist/blocks.js.map +1 -1
- package/dist/blocks.umd.cjs +40 -161
- package/dist/blocks.umd.cjs.map +1 -1
- package/dist/index.d.ts +0 -4
- package/dist/style.css +16 -16
- package/package.json +102 -102
package/README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# overmap-ai blocks
|
|
2
|
-
|
|
3
|
-
Contains basic components used by overmap-ai libraries.
|
|
1
|
+
# overmap-ai blocks
|
|
2
|
+
|
|
3
|
+
Contains basic components used by overmap-ai libraries.
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { FC, ReactNode } from "react";
|
|
2
2
|
import { ButtonGroupProps } from ".";
|
|
3
3
|
import { ButtonProps } from "../Buttons/typings";
|
|
4
|
-
import {
|
|
4
|
+
import { Size } from "..";
|
|
5
|
+
import { Responsive } from "@radix-ui/themes";
|
|
5
6
|
interface ButtonListRootProps extends Pick<ButtonGroupProps, "size" | "variant" | "children"> {
|
|
6
7
|
/** @default "medium" */
|
|
7
8
|
size?: Responsive<Exclude<Size, "large">>;
|
package/dist/blocks.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
export * from "@radix-ui/colors";
|
|
2
|
-
import { Cross1Icon, MagnifyingGlassIcon, CheckIcon, DragHandleDots2Icon, Cross2Icon, DividerHorizontalIcon, CaretSortIcon, ArrowUpIcon, ArrowDownIcon, MixerHorizontalIcon, Pencil1Icon, TrashIcon, DoubleArrowLeftIcon, ChevronLeftIcon, ChevronRightIcon, DoubleArrowRightIcon } from "@radix-ui/react-icons";
|
|
3
|
-
export * from "@radix-ui/react-icons";
|
|
4
|
-
import { useThemeContext, Badge as Badge$1, Flex as Flex$1, Box, Link, Text as Text$2, Button, IconButton as IconButton$1, Card, Inset, Dialog as Dialog$1, AlertDialog as AlertDialog$1, DropdownMenu as DropdownMenu$1, Kbd, Select as Select$1, Checkbox as Checkbox$1, Switch as Switch$1, Portal, TextField, Popover as Popover$1, TextArea as TextArea$1, Callout, Tooltip as Tooltip$1, Theme, Separator as Separator$1, TableRow } from "@radix-ui/themes";
|
|
5
|
-
import { AccessibleIcon, AspectRatio, Avatar, Blockquote, Box as Box2, Callout as Callout2, Card as Card2, Code, Container, Em, Grid, Heading, HoverCard, Inset as Inset2, Kbd as Kbd2, Link as Link2, Portal as Portal2, Quote, RadioGroup, ScrollArea, Section, Slider, Slot, Strong, Tabs, TextField as TextField2, Theme as Theme2, VisuallyHidden, updateThemeAppearanceClass, useThemeContext as useThemeContext2 } from "@radix-ui/themes";
|
|
6
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useThemeContext, Badge as Badge$1, Flex as Flex$1, Box, Link, Text as Text$2, Button, IconButton as IconButton$1, Card, Inset, Dialog as Dialog$1, AlertDialog as AlertDialog$1, DropdownMenu as DropdownMenu$1, Kbd, Select as Select$1, Checkbox as Checkbox$1, Switch as Switch$1, Portal, TextField, Popover as Popover$1, TextArea as TextArea$1, Callout, Tooltip as Tooltip$1, Theme, Separator as Separator$1, TableRow } from "@radix-ui/themes";
|
|
3
|
+
import { Theme as Theme2, updateThemeAppearanceClass, useThemeContext as useThemeContext2 } from "@radix-ui/themes";
|
|
7
4
|
import React, { useMemo, useState, useLayoutEffect, useCallback, useEffect, Children, isValidElement, forwardRef, memo, createContext, useContext, cloneElement, createElement, useRef, useReducer, Fragment as Fragment$1 } from "react";
|
|
8
5
|
import { useMediaQuery } from "react-responsive";
|
|
6
|
+
import { Cross1Icon, MagnifyingGlassIcon, CheckIcon, DragHandleDots2Icon, Cross2Icon, DividerHorizontalIcon, CaretSortIcon, ArrowUpIcon, ArrowDownIcon, MixerHorizontalIcon, Pencil1Icon, TrashIcon, DoubleArrowLeftIcon, ChevronLeftIcon, ChevronRightIcon, DoubleArrowRightIcon } from "@radix-ui/react-icons";
|
|
9
7
|
import * as RadixDropdownMenu from "@radix-ui/react-dropdown-menu";
|
|
10
8
|
import * as RadixDialogPrimitive from "@radix-ui/react-dialog";
|
|
11
9
|
import { Resizable } from "re-resizable";
|
|
@@ -16,11 +14,11 @@ import { Root as Root$2 } from "@radix-ui/react-toolbar";
|
|
|
16
14
|
import * as RadixToast from "@radix-ui/react-toast";
|
|
17
15
|
import { ToastProvider as ToastProvider$1, ToastViewport as ToastViewport$1 } from "@radix-ui/react-toast";
|
|
18
16
|
import { flushSync } from "react-dom";
|
|
19
|
-
import { HeaderCell, Table as Table$1, Header, HeaderRow, Body, Cell, Row } from "@table-library/react-table-library/table";
|
|
20
|
-
import { useTheme } from "@table-library/react-table-library/theme";
|
|
21
|
-
import { useSort, HeaderCellSort } from "@table-library/react-table-library/sort";
|
|
22
|
-
import { useRowSelect, SelectTypes, SelectClickTypes, HeaderCellSelect, CellSelect } from "@table-library/react-table-library/select";
|
|
23
|
-
import { usePagination } from "@table-library/react-table-library/pagination";
|
|
17
|
+
import { HeaderCell, Table as Table$1, Header, HeaderRow, Body, Cell, Row } from "@table-library/react-table-library/table.js";
|
|
18
|
+
import { useTheme } from "@table-library/react-table-library/theme.js";
|
|
19
|
+
import { useSort, HeaderCellSort } from "@table-library/react-table-library/sort.js";
|
|
20
|
+
import { useRowSelect, SelectTypes, SelectClickTypes, HeaderCellSelect, CellSelect } from "@table-library/react-table-library/select.js";
|
|
21
|
+
import { usePagination } from "@table-library/react-table-library/pagination.js";
|
|
24
22
|
import { isMobile } from "react-device-detect";
|
|
25
23
|
function getDefaultExportFromCjs(x) {
|
|
26
24
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
@@ -3339,6 +3337,7 @@ const _Table = forwardRef(function Table2(props, ref) {
|
|
|
3339
3337
|
cellClassName,
|
|
3340
3338
|
row[column.id].className
|
|
3341
3339
|
),
|
|
3340
|
+
onClick: row[column.id].onClick,
|
|
3342
3341
|
children: /* @__PURE__ */ jsx(Text$1, { children: row[column.id].label })
|
|
3343
3342
|
},
|
|
3344
3343
|
i
|
|
@@ -3565,25 +3564,16 @@ const _ConfirmEditInput = forwardRef(function ConfirmEditInput2({
|
|
|
3565
3564
|
});
|
|
3566
3565
|
const ConfirmEditInput = React.memo(_ConfirmEditInput);
|
|
3567
3566
|
export {
|
|
3568
|
-
AccessibleIcon,
|
|
3569
3567
|
AlertDialog,
|
|
3570
3568
|
AlertDialogContent,
|
|
3571
3569
|
AlertDialogProvider,
|
|
3572
|
-
AspectRatio,
|
|
3573
|
-
Avatar,
|
|
3574
3570
|
Badge,
|
|
3575
|
-
Blockquote,
|
|
3576
|
-
Box2 as Box,
|
|
3577
3571
|
Breadcrumb,
|
|
3578
3572
|
Button2 as Button,
|
|
3579
3573
|
ButtonGroup,
|
|
3580
3574
|
ButtonList,
|
|
3581
|
-
Callout2 as Callout,
|
|
3582
|
-
Card2 as Card,
|
|
3583
3575
|
Checkbox,
|
|
3584
|
-
Code,
|
|
3585
3576
|
ConfirmEditInput,
|
|
3586
|
-
Container,
|
|
3587
3577
|
DefaultTheme,
|
|
3588
3578
|
Dialog,
|
|
3589
3579
|
DropdownItemMenu,
|
|
@@ -3594,43 +3584,26 @@ export {
|
|
|
3594
3584
|
DropdownMenuSubMenuGroup,
|
|
3595
3585
|
DropdownMultiSelect,
|
|
3596
3586
|
DropdownSelect,
|
|
3597
|
-
Em,
|
|
3598
3587
|
Flex,
|
|
3599
|
-
Grid,
|
|
3600
|
-
Heading,
|
|
3601
|
-
HoverCard,
|
|
3602
3588
|
HoverUtility,
|
|
3603
3589
|
IconButton,
|
|
3604
3590
|
IconColorUtility,
|
|
3605
3591
|
Input,
|
|
3606
|
-
Inset2 as Inset,
|
|
3607
|
-
Kbd2 as Kbd,
|
|
3608
3592
|
LeftAndRightPanels,
|
|
3609
|
-
Link2 as Link,
|
|
3610
3593
|
MultiPagePopover,
|
|
3611
3594
|
MultiSelect,
|
|
3612
3595
|
Popover,
|
|
3613
|
-
Portal2 as Portal,
|
|
3614
|
-
Quote,
|
|
3615
|
-
RadioGroup,
|
|
3616
3596
|
Root2 as Root,
|
|
3617
|
-
ScrollArea,
|
|
3618
|
-
Section,
|
|
3619
3597
|
Select,
|
|
3620
3598
|
SelectAllCheckbox,
|
|
3621
3599
|
Separator,
|
|
3622
3600
|
Sidebar,
|
|
3623
3601
|
SlideOut,
|
|
3624
|
-
Slider,
|
|
3625
|
-
Slot,
|
|
3626
3602
|
Spinner,
|
|
3627
|
-
Strong,
|
|
3628
3603
|
Switch,
|
|
3629
3604
|
Table,
|
|
3630
|
-
Tabs,
|
|
3631
3605
|
Text$1 as Text,
|
|
3632
3606
|
TextArea,
|
|
3633
|
-
TextField2 as TextField,
|
|
3634
3607
|
Theme2 as Theme,
|
|
3635
3608
|
Toast,
|
|
3636
3609
|
ToastContext,
|
|
@@ -3638,7 +3611,6 @@ export {
|
|
|
3638
3611
|
ToggleGroup,
|
|
3639
3612
|
Toolbar,
|
|
3640
3613
|
Tooltip,
|
|
3641
|
-
VisuallyHidden,
|
|
3642
3614
|
divButtonProps,
|
|
3643
3615
|
unsafeShowToast,
|
|
3644
3616
|
updateThemeAppearanceClass,
|