@overmap-ai/blocks 1.0.6-do-not-support-commonjs.3 → 1.0.6-do-not-support-commonjs.4
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/blocks.js +57 -28
- package/dist/blocks.js.map +1 -1
- package/dist/blocks.umd.cjs +161 -213
- package/dist/blocks.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/dist/index.d.ts +0 -39
package/dist/blocks.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * from "@radix-ui/colors";
|
|
2
2
|
import { Cross1Icon, MagnifyingGlassIcon, CheckIcon, DragHandleDots2Icon, Cross2Icon, DividerHorizontalIcon, CaretSortIcon, ArrowUpIcon, ArrowDownIcon, MixerHorizontalIcon, Pencil1Icon, TrashIcon, DoubleArrowLeftIcon, ChevronLeftIcon, ChevronRightIcon, DoubleArrowRightIcon } from "@radix-ui/react-icons";
|
|
3
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,
|
|
5
|
-
import {
|
|
4
|
+
import radixComponents, { useThemeContext, Badge as Badge$1, Flex as Flex$1, Box as Box$1, Link as Link$1, Text as Text$2, Button, IconButton as IconButton$1, Dialog as Dialog$1, AlertDialog as AlertDialog$1, DropdownMenu as DropdownMenu$1, Kbd as Kbd$1, Select as Select$1, Checkbox as Checkbox$1, Switch as Switch$1, Portal as Portal$1, TextField as TextField$1, Popover as Popover$1, TextArea as TextArea$1, Callout as Callout$1, Tooltip as Tooltip$1, Theme, Separator as Separator$1, TableRow } from "@radix-ui/themes";
|
|
5
|
+
import { Theme as Theme2, updateThemeAppearanceClass, useThemeContext as useThemeContext2 } from "@radix-ui/themes";
|
|
6
6
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
7
7
|
import React, { useMemo, useState, useLayoutEffect, useCallback, useEffect, Children, isValidElement, forwardRef, memo, createContext, useContext, cloneElement, createElement, useRef, useReducer, Fragment as Fragment$1 } from "react";
|
|
8
8
|
import { useMediaQuery } from "react-responsive";
|
|
@@ -236,7 +236,7 @@ const Item = memo(
|
|
|
236
236
|
forwardRef(({ className, children, ...rest }, ref) => {
|
|
237
237
|
const { size, severity } = useBreadcrumbContext();
|
|
238
238
|
const severityColor = useSeverityColor(severity);
|
|
239
|
-
return /* @__PURE__ */ jsx(Box, { className: classNames("overmap-breadcrumb-item", className), height: "max-content", width: "max-content", children: /* @__PURE__ */ jsx(Link, { ref, size, color: severityColor, ...rest, children: /* @__PURE__ */ jsx(Flex, { height: "100%", width: "100%", align: "center", gap: "1", children }) }) });
|
|
239
|
+
return /* @__PURE__ */ jsx(Box$1, { className: classNames("overmap-breadcrumb-item", className), height: "max-content", width: "max-content", children: /* @__PURE__ */ jsx(Link$1, { ref, size, color: severityColor, ...rest, children: /* @__PURE__ */ jsx(Flex, { height: "100%", width: "100%", align: "center", gap: "1", children }) }) });
|
|
240
240
|
})
|
|
241
241
|
);
|
|
242
242
|
const Group = memo(
|
|
@@ -670,7 +670,7 @@ const styles$h = {
|
|
|
670
670
|
};
|
|
671
671
|
const BaseMenuItem = memo(
|
|
672
672
|
forwardRef(({ children, rightSlot }, ref) => {
|
|
673
|
-
return /* @__PURE__ */ jsx(Box, { className: styles$h.BaseMenuItem, ref, position: "relative", px: "2", height: "6", children: /* @__PURE__ */ jsxs(Flex, { gap: "6", height: "100%", align: "center", children: [
|
|
673
|
+
return /* @__PURE__ */ jsx(Box$1, { className: styles$h.BaseMenuItem, ref, position: "relative", px: "2", height: "6", children: /* @__PURE__ */ jsxs(Flex, { gap: "6", height: "100%", align: "center", children: [
|
|
674
674
|
/* @__PURE__ */ jsx(Flex, { grow: "1", height: "100%", align: "center", gap: "1", children }),
|
|
675
675
|
/* @__PURE__ */ jsx(Flex, { height: "100%", width: "4", align: "center", justify: "end", children: rightSlot })
|
|
676
676
|
] }) });
|
|
@@ -678,11 +678,11 @@ const BaseMenuItem = memo(
|
|
|
678
678
|
);
|
|
679
679
|
const BaseMenuInput = memo(
|
|
680
680
|
forwardRef((props) => {
|
|
681
|
-
return /* @__PURE__ */ jsx(Box, { className: styles$h.BaseMenuInput, px: "2", height: "6", width: "max-content", children: /* @__PURE__ */ jsx(Input, { ...props, variant: "ghost" }) });
|
|
681
|
+
return /* @__PURE__ */ jsx(Box$1, { className: styles$h.BaseMenuInput, px: "2", height: "6", width: "max-content", children: /* @__PURE__ */ jsx(Input, { ...props, variant: "ghost" }) });
|
|
682
682
|
})
|
|
683
683
|
);
|
|
684
684
|
const BaseMenuSeparator = memo(function BaseMenuSeparator2() {
|
|
685
|
-
return /* @__PURE__ */ jsx(Box, { className: styles$h.BaseMenuSeparator, width: "100%", py: "1", children: /* @__PURE__ */ jsx(Box, { height: "0", width: "100%" }) });
|
|
685
|
+
return /* @__PURE__ */ jsx(Box$1, { className: styles$h.BaseMenuSeparator, width: "100%", py: "1", children: /* @__PURE__ */ jsx(Box$1, { height: "0", width: "100%" }) });
|
|
686
686
|
});
|
|
687
687
|
const useCloseOnSelectHandler = (closeOnSelect) => {
|
|
688
688
|
return useCallback(
|
|
@@ -747,7 +747,7 @@ const BaseItemGroup = memo(function BaseItemGroup2({
|
|
|
747
747
|
className: classNames(className, styles$h.RemoveOutline),
|
|
748
748
|
onSelect: closeOnSelectHandler(onSelect),
|
|
749
749
|
...rest2,
|
|
750
|
-
children: /* @__PURE__ */ jsx(BaseMenuItem, { rightSlot: shortcut == null ? void 0 : shortcut.map((key, index2) => /* @__PURE__ */ jsx(Kbd, { children: key }, index2)), children: content })
|
|
750
|
+
children: /* @__PURE__ */ jsx(BaseMenuItem, { rightSlot: shortcut == null ? void 0 : shortcut.map((key, index2) => /* @__PURE__ */ jsx(Kbd$1, { children: key }, index2)), children: content })
|
|
751
751
|
},
|
|
752
752
|
index
|
|
753
753
|
))
|
|
@@ -1117,7 +1117,7 @@ const Select = React.memo(_Select);
|
|
|
1117
1117
|
const MultiSelectItem = memo(
|
|
1118
1118
|
forwardRef((props, ref) => {
|
|
1119
1119
|
const { checked, label, value, size = "2" } = props;
|
|
1120
|
-
return /* @__PURE__ */ jsx(Box, { asChild: true, px: size, children: /* @__PURE__ */ jsx(Select$1.Item, { value, ref, children: /* @__PURE__ */ jsxs(Flex$1, { gap: size, align: "center", children: [
|
|
1120
|
+
return /* @__PURE__ */ jsx(Box$1, { asChild: true, px: size, children: /* @__PURE__ */ jsx(Select$1.Item, { value, ref, children: /* @__PURE__ */ jsxs(Flex$1, { gap: size, align: "center", children: [
|
|
1121
1121
|
/* @__PURE__ */ jsx(Checkbox$1, { checked }),
|
|
1122
1122
|
label
|
|
1123
1123
|
] }) }) });
|
|
@@ -1255,7 +1255,7 @@ const _Switch = forwardRef(function Switch2({ className, severity = "primary", i
|
|
|
1255
1255
|
...rest
|
|
1256
1256
|
}
|
|
1257
1257
|
),
|
|
1258
|
-
/* @__PURE__ */ jsx(Portal, { container: iconContainer, asChild: true, children: icon && "checked" in icon ? _checked ? icon["checked"] : icon["unchecked"] : icon })
|
|
1258
|
+
/* @__PURE__ */ jsx(Portal$1, { container: iconContainer, asChild: true, children: icon && "checked" in icon ? _checked ? icon["checked"] : icon["unchecked"] : icon })
|
|
1259
1259
|
] });
|
|
1260
1260
|
});
|
|
1261
1261
|
const Switch = memo(_Switch);
|
|
@@ -1308,7 +1308,7 @@ const _Sidebar = forwardRef(function Sidebar2({
|
|
|
1308
1308
|
ref,
|
|
1309
1309
|
asChild: true,
|
|
1310
1310
|
...rest,
|
|
1311
|
-
children: /* @__PURE__ */ jsx(Box, { width: "auto", children: /* @__PURE__ */ jsx(
|
|
1311
|
+
children: /* @__PURE__ */ jsx(Box$1, { width: "auto", children: /* @__PURE__ */ jsx(
|
|
1312
1312
|
Resizable,
|
|
1313
1313
|
{
|
|
1314
1314
|
minWidth,
|
|
@@ -1458,7 +1458,7 @@ const _Input = forwardRef(function Input2({
|
|
|
1458
1458
|
const displayInputLength = showInputLength || showInputLength === void 0 && rest.maxLength !== void 0;
|
|
1459
1459
|
const valueAsString = value !== void 0 ? value.toString() : void 0;
|
|
1460
1460
|
return /* @__PURE__ */ jsxs(
|
|
1461
|
-
TextField.Root,
|
|
1461
|
+
TextField$1.Root,
|
|
1462
1462
|
{
|
|
1463
1463
|
className: classNames(styles$c.wrapper, className, {
|
|
1464
1464
|
[styles$c.ghost]: variant === "ghost",
|
|
@@ -1468,9 +1468,9 @@ const _Input = forwardRef(function Input2({
|
|
|
1468
1468
|
variant: variant !== "ghost" ? variant : void 0,
|
|
1469
1469
|
color,
|
|
1470
1470
|
children: [
|
|
1471
|
-
leftSlot && /* @__PURE__ */ jsx(TextField.Slot, { children: leftSlot }),
|
|
1471
|
+
leftSlot && /* @__PURE__ */ jsx(TextField$1.Slot, { children: leftSlot }),
|
|
1472
1472
|
/* @__PURE__ */ jsx(
|
|
1473
|
-
TextField.Input,
|
|
1473
|
+
TextField$1.Input,
|
|
1474
1474
|
{
|
|
1475
1475
|
className: classNames(styles$c.default, {
|
|
1476
1476
|
[styles$c.noLeftIcon]: !leftSlot,
|
|
@@ -1484,7 +1484,7 @@ const _Input = forwardRef(function Input2({
|
|
|
1484
1484
|
...rest
|
|
1485
1485
|
}
|
|
1486
1486
|
),
|
|
1487
|
-
rightSlot && /* @__PURE__ */ jsx(TextField.Slot, { children: rightSlot }),
|
|
1487
|
+
rightSlot && /* @__PURE__ */ jsx(TextField$1.Slot, { children: rightSlot }),
|
|
1488
1488
|
displayInputLength && /* @__PURE__ */ jsx(Text$2, { as: "p", className: styles$c.charCount, size: "1", color: "gray", children: rest.maxLength !== void 0 ? `${valueAsString == null ? void 0 : valueAsString.length}/${rest.maxLength}` : `${valueAsString == null ? void 0 : valueAsString.length}` })
|
|
1489
1489
|
]
|
|
1490
1490
|
}
|
|
@@ -1739,7 +1739,7 @@ const LeftAndRightPanels = memo(function Panels({
|
|
|
1739
1739
|
onEntering: handleResizeRightPanelOnLeftPanelOpen,
|
|
1740
1740
|
onExited: handleResizeRightPanelOnLeftPanelClose,
|
|
1741
1741
|
children: (state) => /* @__PURE__ */ jsx(
|
|
1742
|
-
Box,
|
|
1742
|
+
Box$1,
|
|
1743
1743
|
{
|
|
1744
1744
|
ref: leftPanelRef,
|
|
1745
1745
|
className: classNames(styles$a.panelContent, styles$a.left),
|
|
@@ -1782,7 +1782,7 @@ const LeftAndRightPanels = memo(function Panels({
|
|
|
1782
1782
|
onEntering: handleResizeLeftPanelOnRightPanelOpen,
|
|
1783
1783
|
onExited: handleResizeLeftPanelOnRightPanelClose,
|
|
1784
1784
|
children: (state) => /* @__PURE__ */ jsx(
|
|
1785
|
-
Box,
|
|
1785
|
+
Box$1,
|
|
1786
1786
|
{
|
|
1787
1787
|
ref: rightPanelRef,
|
|
1788
1788
|
className: classNames(styles$a.panelContent, styles$a.right),
|
|
@@ -2042,13 +2042,13 @@ const _Toast = forwardRef(function Toast2({ title, description, icon, severity =
|
|
|
2042
2042
|
},
|
|
2043
2043
|
[onClose]
|
|
2044
2044
|
);
|
|
2045
|
-
return /* @__PURE__ */ jsx(RadixToast.Root, { asChild: true, ref, ...rest, open, type: sensitivity, onOpenChange: handleOpenChange, children: /* @__PURE__ */ jsx(Callout.Root, { className: styles$6.ToastRoot, variant: "surface", color, size, children: /* @__PURE__ */ jsxs(Flex$1, { width: "100%", align: "center", gap: "4", justify: "between", children: [
|
|
2045
|
+
return /* @__PURE__ */ jsx(RadixToast.Root, { asChild: true, ref, ...rest, open, type: sensitivity, onOpenChange: handleOpenChange, children: /* @__PURE__ */ jsx(Callout$1.Root, { className: styles$6.ToastRoot, variant: "surface", color, size, children: /* @__PURE__ */ jsxs(Flex$1, { width: "100%", align: "center", gap: "4", justify: "between", children: [
|
|
2046
2046
|
/* @__PURE__ */ jsxs(Flex$1, { align: "center", gap: "3", children: [
|
|
2047
|
-
/* @__PURE__ */ jsx(Callout.Icon, { children: icon }),
|
|
2047
|
+
/* @__PURE__ */ jsx(Callout$1.Icon, { children: icon }),
|
|
2048
2048
|
/* @__PURE__ */ jsxs(Flex$1, { direction: "column", gap: "2", children: [
|
|
2049
2049
|
/* @__PURE__ */ jsxs(Flex$1, { direction: "column", gap: "0", children: [
|
|
2050
|
-
/* @__PURE__ */ jsx(RadixToast.Title, { asChild: true, children: /* @__PURE__ */ jsx(Callout.Text, { size: "3", weight: "medium", children: title }) }),
|
|
2051
|
-
/* @__PURE__ */ jsx(RadixToast.Description, { asChild: true, children: /* @__PURE__ */ jsx(Callout.Text, { children: description }) })
|
|
2050
|
+
/* @__PURE__ */ jsx(RadixToast.Title, { asChild: true, children: /* @__PURE__ */ jsx(Callout$1.Text, { size: "3", weight: "medium", children: title }) }),
|
|
2051
|
+
/* @__PURE__ */ jsx(RadixToast.Description, { asChild: true, children: /* @__PURE__ */ jsx(Callout$1.Text, { children: description }) })
|
|
2052
2052
|
] }),
|
|
2053
2053
|
action && /* @__PURE__ */ jsx(RadixToast.Action, { className: styles$6.actionButton, altText: action.altText, asChild: true, children: action.content })
|
|
2054
2054
|
] })
|
|
@@ -3564,6 +3564,35 @@ const _ConfirmEditInput = forwardRef(function ConfirmEditInput2({
|
|
|
3564
3564
|
] }) });
|
|
3565
3565
|
});
|
|
3566
3566
|
const ConfirmEditInput = React.memo(_ConfirmEditInput);
|
|
3567
|
+
const {
|
|
3568
|
+
AccessibleIcon,
|
|
3569
|
+
Box,
|
|
3570
|
+
Grid,
|
|
3571
|
+
Container,
|
|
3572
|
+
Section,
|
|
3573
|
+
Heading,
|
|
3574
|
+
Blockquote,
|
|
3575
|
+
Code,
|
|
3576
|
+
Em,
|
|
3577
|
+
Kbd,
|
|
3578
|
+
Link,
|
|
3579
|
+
Quote,
|
|
3580
|
+
Strong,
|
|
3581
|
+
AspectRatio,
|
|
3582
|
+
Avatar,
|
|
3583
|
+
Callout,
|
|
3584
|
+
Card,
|
|
3585
|
+
HoverCard,
|
|
3586
|
+
TextField,
|
|
3587
|
+
Inset,
|
|
3588
|
+
RadioGroup,
|
|
3589
|
+
ScrollArea,
|
|
3590
|
+
Slider,
|
|
3591
|
+
Tabs,
|
|
3592
|
+
Portal,
|
|
3593
|
+
Slot,
|
|
3594
|
+
VisuallyHidden
|
|
3595
|
+
} = radixComponents;
|
|
3567
3596
|
export {
|
|
3568
3597
|
AccessibleIcon,
|
|
3569
3598
|
AlertDialog,
|
|
@@ -3573,13 +3602,13 @@ export {
|
|
|
3573
3602
|
Avatar,
|
|
3574
3603
|
Badge,
|
|
3575
3604
|
Blockquote,
|
|
3576
|
-
|
|
3605
|
+
Box,
|
|
3577
3606
|
Breadcrumb,
|
|
3578
3607
|
Button2 as Button,
|
|
3579
3608
|
ButtonGroup,
|
|
3580
3609
|
ButtonList,
|
|
3581
|
-
|
|
3582
|
-
|
|
3610
|
+
Callout,
|
|
3611
|
+
Card,
|
|
3583
3612
|
Checkbox,
|
|
3584
3613
|
Code,
|
|
3585
3614
|
ConfirmEditInput,
|
|
@@ -3603,14 +3632,14 @@ export {
|
|
|
3603
3632
|
IconButton,
|
|
3604
3633
|
IconColorUtility,
|
|
3605
3634
|
Input,
|
|
3606
|
-
|
|
3607
|
-
|
|
3635
|
+
Inset,
|
|
3636
|
+
Kbd,
|
|
3608
3637
|
LeftAndRightPanels,
|
|
3609
|
-
|
|
3638
|
+
Link,
|
|
3610
3639
|
MultiPagePopover,
|
|
3611
3640
|
MultiSelect,
|
|
3612
3641
|
Popover,
|
|
3613
|
-
|
|
3642
|
+
Portal,
|
|
3614
3643
|
Quote,
|
|
3615
3644
|
RadioGroup,
|
|
3616
3645
|
Root2 as Root,
|
|
@@ -3630,7 +3659,7 @@ export {
|
|
|
3630
3659
|
Tabs,
|
|
3631
3660
|
Text$1 as Text,
|
|
3632
3661
|
TextArea,
|
|
3633
|
-
|
|
3662
|
+
TextField,
|
|
3634
3663
|
Theme2 as Theme,
|
|
3635
3664
|
Toast,
|
|
3636
3665
|
ToastContext,
|