@overmap-ai/blocks 1.0.36 → 1.0.37
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 +144 -113
- package/dist/blocks.js.map +1 -1
- package/dist/blocks.umd.cjs +144 -113
- package/dist/blocks.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/blocks.js
CHANGED
|
@@ -182,7 +182,7 @@ const AlertDialogContent = forwardRef((props, ref) => {
|
|
|
182
182
|
/* @__PURE__ */ jsx(
|
|
183
183
|
RadixAlertDialog.Content,
|
|
184
184
|
{
|
|
185
|
-
className: cx(
|
|
185
|
+
className: cx(dialogContent({ size: size2 }), radiusCva({ radius, maxLarge: true }), className),
|
|
186
186
|
ref,
|
|
187
187
|
"data-floating-content": "",
|
|
188
188
|
...rest
|
|
@@ -395,9 +395,9 @@ const Button = memo(
|
|
|
395
395
|
"button",
|
|
396
396
|
{
|
|
397
397
|
className: cx(
|
|
398
|
-
className,
|
|
399
398
|
buttonCva({ size: size2, icon: false, variant }),
|
|
400
|
-
radiusCva({ radius, maxLarge: false })
|
|
399
|
+
radiusCva({ radius, maxLarge: false }),
|
|
400
|
+
className
|
|
401
401
|
),
|
|
402
402
|
ref,
|
|
403
403
|
"data-accent-color": accentColor,
|
|
@@ -424,9 +424,9 @@ const IconButton = memo(
|
|
|
424
424
|
"button",
|
|
425
425
|
{
|
|
426
426
|
className: cx(
|
|
427
|
-
className,
|
|
428
427
|
buttonCva({ size: size2, icon: true, variant }),
|
|
429
|
-
radiusCva({ radius, maxLarge: false })
|
|
428
|
+
radiusCva({ radius, maxLarge: false }),
|
|
429
|
+
className
|
|
430
430
|
),
|
|
431
431
|
ref,
|
|
432
432
|
"data-accent-color": accentColor,
|
|
@@ -516,7 +516,7 @@ const avatarFallback = cva(["flex", "items-center", "justify-center", "size-full
|
|
|
516
516
|
const AvatarFallback = forwardRef((props, ref) => {
|
|
517
517
|
const { className, ...rest } = props;
|
|
518
518
|
const { variant } = useContext(AvatarContext);
|
|
519
|
-
return /* @__PURE__ */ jsx(RadixAvatar.AvatarFallback, { className: cx(
|
|
519
|
+
return /* @__PURE__ */ jsx(RadixAvatar.AvatarFallback, { className: cx(avatarFallback({ variant }), className), ref, ...rest });
|
|
520
520
|
});
|
|
521
521
|
AvatarFallback.displayName = "AvatarFallback";
|
|
522
522
|
const AvatarImage = forwardRef((props, ref) => {
|
|
@@ -524,7 +524,7 @@ const AvatarImage = forwardRef((props, ref) => {
|
|
|
524
524
|
return /* @__PURE__ */ jsx(
|
|
525
525
|
RadixAvatar.Image,
|
|
526
526
|
{
|
|
527
|
-
className: cx(
|
|
527
|
+
className: cx("object-cover", "rounded-[inherit]", "w-full", "h-full", className),
|
|
528
528
|
ref,
|
|
529
529
|
...rest
|
|
530
530
|
}
|
|
@@ -545,7 +545,7 @@ const AvatarRoot = forwardRef((props, ref) => {
|
|
|
545
545
|
return /* @__PURE__ */ jsx(
|
|
546
546
|
RadixAvatar.Root,
|
|
547
547
|
{
|
|
548
|
-
className: cx(
|
|
548
|
+
className: cx(avatar({ size: size2 }), radiusCva({ radius, maxLarge: false }), className),
|
|
549
549
|
ref,
|
|
550
550
|
"data-accent-color": accentColor,
|
|
551
551
|
...rest,
|
|
@@ -653,7 +653,7 @@ const Badge = forwardRef((props, ref) => {
|
|
|
653
653
|
return /* @__PURE__ */ jsx(
|
|
654
654
|
"span",
|
|
655
655
|
{
|
|
656
|
-
className: cx(
|
|
656
|
+
className: cx(badge({ variant, size: size2, icon }), radiusCva({ radius, maxLarge: false }), className),
|
|
657
657
|
ref,
|
|
658
658
|
"data-accent-color": accentColor,
|
|
659
659
|
...rest,
|
|
@@ -696,7 +696,7 @@ const Card = forwardRef((props, ref) => {
|
|
|
696
696
|
"div",
|
|
697
697
|
{
|
|
698
698
|
ref,
|
|
699
|
-
className: cx(
|
|
699
|
+
className: cx(cardCva({ size: size2, variant }), radiusCva({ radius, maxLarge: true }), className),
|
|
700
700
|
"data-accent-color": accentColor,
|
|
701
701
|
...rest
|
|
702
702
|
}
|
|
@@ -708,7 +708,7 @@ const CheckboxIndicator = forwardRef((props, ref) => {
|
|
|
708
708
|
return /* @__PURE__ */ jsx(
|
|
709
709
|
RadixCheckbox.CheckboxIndicator,
|
|
710
710
|
{
|
|
711
|
-
className: cx(
|
|
711
|
+
className: cx("flex items-center justify-center", className),
|
|
712
712
|
ref,
|
|
713
713
|
...rest
|
|
714
714
|
}
|
|
@@ -771,7 +771,7 @@ const CheckboxRoot = forwardRef((props, ref) => {
|
|
|
771
771
|
return /* @__PURE__ */ jsx(
|
|
772
772
|
RadixCheckbox.Root,
|
|
773
773
|
{
|
|
774
|
-
className: cx(
|
|
774
|
+
className: cx(checkbox({ variant, size: size2 }), radiusCva({ radius, maxLarge: true }), className),
|
|
775
775
|
ref,
|
|
776
776
|
"data-accent-color": accentColor,
|
|
777
777
|
...rest
|
|
@@ -1053,7 +1053,7 @@ const CheckboxGroupItem = memo((props) => {
|
|
|
1053
1053
|
RadixCheckbox.Root,
|
|
1054
1054
|
{
|
|
1055
1055
|
ref,
|
|
1056
|
-
className: cx(
|
|
1056
|
+
className: cx(checkbox({ variant, size: size2 }), radiusCva({ radius, maxLarge: true }), className),
|
|
1057
1057
|
name: groupContext.name,
|
|
1058
1058
|
required: groupContext.required,
|
|
1059
1059
|
disabled: isDisabled,
|
|
@@ -1068,7 +1068,7 @@ const CheckboxGroupItem = memo((props) => {
|
|
|
1068
1068
|
CheckboxGroupItem.displayName = "CheckboxGroupItem";
|
|
1069
1069
|
const CheckboxGroupItemIndicator = memo((props) => {
|
|
1070
1070
|
const { ref, className, ...rest } = props;
|
|
1071
|
-
return /* @__PURE__ */ jsx(RadixCheckbox.Indicator, { className: cx(
|
|
1071
|
+
return /* @__PURE__ */ jsx(RadixCheckbox.Indicator, { className: cx("flex items-center justify-center", className), ref, ...rest });
|
|
1072
1072
|
});
|
|
1073
1073
|
CheckboxGroupItemIndicator.displayName = "CheckboxGroupItemIndicator";
|
|
1074
1074
|
function getBooleanState$1(value) {
|
|
@@ -1143,7 +1143,7 @@ const CheckboxGroupSelectAllItem = memo((props) => {
|
|
|
1143
1143
|
RadixCheckbox.Root,
|
|
1144
1144
|
{
|
|
1145
1145
|
ref,
|
|
1146
|
-
className: cx(
|
|
1146
|
+
className: cx(checkbox({ variant, size: size2 }), radiusCva({ radius, maxLarge: true }), className),
|
|
1147
1147
|
name: groupContext.name,
|
|
1148
1148
|
required: groupContext.required,
|
|
1149
1149
|
disabled: isDisabled,
|
|
@@ -1209,7 +1209,7 @@ const CollapsibleNode = genericMemo(function(props) {
|
|
|
1209
1209
|
"div",
|
|
1210
1210
|
{
|
|
1211
1211
|
onClick: handleClick,
|
|
1212
|
-
className: cx(nodeClassName,
|
|
1212
|
+
className: cx(nodeClassName, "flex w-full shrink-0 items-center", className),
|
|
1213
1213
|
style: combinedStyles,
|
|
1214
1214
|
"data-state": controlledOpenState ? "open" : "closed",
|
|
1215
1215
|
"data-disabled": isDisabled,
|
|
@@ -1279,9 +1279,13 @@ const CommandMenuCheckboxIndicator = (props) => {
|
|
|
1279
1279
|
{
|
|
1280
1280
|
ref,
|
|
1281
1281
|
"data-state": getCheckedState$1(checkedState),
|
|
1282
|
-
className: cx(
|
|
1283
|
-
|
|
1284
|
-
|
|
1282
|
+
className: cx(
|
|
1283
|
+
"inline-block size-max",
|
|
1284
|
+
{
|
|
1285
|
+
invisible: checkedState === false
|
|
1286
|
+
},
|
|
1287
|
+
className
|
|
1288
|
+
),
|
|
1285
1289
|
...rest,
|
|
1286
1290
|
children: computedChildren
|
|
1287
1291
|
}
|
|
@@ -1508,7 +1512,7 @@ const CommandMenuItem = memo((props) => {
|
|
|
1508
1512
|
return /* @__PURE__ */ jsx(
|
|
1509
1513
|
CommandItem,
|
|
1510
1514
|
{
|
|
1511
|
-
className: cx(
|
|
1515
|
+
className: cx(commandMenuItemCva({ size: size2, variant, radius }), className),
|
|
1512
1516
|
ref,
|
|
1513
1517
|
onSelect: handleSelect,
|
|
1514
1518
|
value: filterValue,
|
|
@@ -1566,7 +1570,7 @@ const CommandMenuContent = memo((props) => {
|
|
|
1566
1570
|
children: /* @__PURE__ */ jsxs(
|
|
1567
1571
|
CommandRoot,
|
|
1568
1572
|
{
|
|
1569
|
-
className: cx(
|
|
1573
|
+
className: cx(commandMenuContentCva({ size: size2 }), radiusCva({ radius, maxLarge: true }), className),
|
|
1570
1574
|
ref,
|
|
1571
1575
|
"data-accent-color": accentColor,
|
|
1572
1576
|
...rest,
|
|
@@ -1584,19 +1588,19 @@ CommandMenuContent.displayName = "CommandMenuContent";
|
|
|
1584
1588
|
const CommandMenuEmpty = memo((props) => {
|
|
1585
1589
|
const { className, ref, ...rest } = props;
|
|
1586
1590
|
const { size: size2 } = use(CommandMenuContext);
|
|
1587
|
-
return /* @__PURE__ */ jsx(CommandEmpty, { className: cx(
|
|
1591
|
+
return /* @__PURE__ */ jsx(CommandEmpty, { className: cx(commandMenuEmptyCva({ size: size2 }), className), ref, ...rest });
|
|
1588
1592
|
});
|
|
1589
1593
|
CommandMenuEmpty.displayName = "CommandMenuEmpty";
|
|
1590
1594
|
const CommandMenuGroup = memo((props) => {
|
|
1591
1595
|
const { className, ref, ...rest } = props;
|
|
1592
1596
|
const { size: size2 } = use(CommandMenuContext);
|
|
1593
|
-
return /* @__PURE__ */ jsx(CommandGroup, { className: cx(
|
|
1597
|
+
return /* @__PURE__ */ jsx(CommandGroup, { className: cx(commandMenuGroupCva({ size: size2 }), className), ref, ...rest });
|
|
1594
1598
|
});
|
|
1595
1599
|
CommandMenuGroup.displayName = "CommandMenuGroup";
|
|
1596
1600
|
const CommandMenuInput = memo((props) => {
|
|
1597
1601
|
const { className, ref, ...rest } = props;
|
|
1598
1602
|
const { size: size2 } = use(CommandMenuContext);
|
|
1599
|
-
return /* @__PURE__ */ jsx(CommandInput, { className: cx(
|
|
1603
|
+
return /* @__PURE__ */ jsx(CommandInput, { className: cx(commandMenuInputCva({ size: size2 }), className), ref, ...rest });
|
|
1600
1604
|
});
|
|
1601
1605
|
CommandMenuInput.displayName = "CommandMenuInput";
|
|
1602
1606
|
const CommandMenuList = memo((props) => {
|
|
@@ -1606,7 +1610,7 @@ const CommandMenuList = memo((props) => {
|
|
|
1606
1610
|
return /* @__PURE__ */ jsx(
|
|
1607
1611
|
CommandList,
|
|
1608
1612
|
{
|
|
1609
|
-
className: cx(
|
|
1613
|
+
className: cx(commandMenuListCva({ size: size2 }), className),
|
|
1610
1614
|
ref,
|
|
1611
1615
|
hidden: filterCount === 0,
|
|
1612
1616
|
...rest
|
|
@@ -1648,7 +1652,7 @@ const CommandMenuMultiSelectItem = genericMemo(function(props) {
|
|
|
1648
1652
|
});
|
|
1649
1653
|
const CommandMenuOverlay = memo((props) => {
|
|
1650
1654
|
const { container, className, ...rest } = props;
|
|
1651
|
-
return /* @__PURE__ */ jsx(DialogPortal, { container, children: /* @__PURE__ */ jsx(DialogOverlay$1, { className: cx(
|
|
1655
|
+
return /* @__PURE__ */ jsx(DialogPortal, { container, children: /* @__PURE__ */ jsx(DialogOverlay$1, { className: cx(commandMenuOverlayCva(), className), "data-floating-content": "", ...rest }) });
|
|
1652
1656
|
});
|
|
1653
1657
|
CommandMenuOverlay.displayName = "CommandMenuOverlay";
|
|
1654
1658
|
const CommandMenuPage = (props) => {
|
|
@@ -1754,9 +1758,13 @@ const CommandMenuSelectedIndicator = (props) => {
|
|
|
1754
1758
|
{
|
|
1755
1759
|
ref,
|
|
1756
1760
|
"data-state": getSelectedState$1(isSelected),
|
|
1757
|
-
className: cx(
|
|
1758
|
-
|
|
1759
|
-
|
|
1761
|
+
className: cx(
|
|
1762
|
+
"inline-block size-max",
|
|
1763
|
+
{
|
|
1764
|
+
invisible: !isSelected
|
|
1765
|
+
},
|
|
1766
|
+
className
|
|
1767
|
+
),
|
|
1760
1768
|
...rest,
|
|
1761
1769
|
children: computedChildren
|
|
1762
1770
|
}
|
|
@@ -1765,7 +1773,7 @@ const CommandMenuSelectedIndicator = (props) => {
|
|
|
1765
1773
|
const CommandMenuSeparator = memo((props) => {
|
|
1766
1774
|
const { className, ref, spacing = false, ...rest } = props;
|
|
1767
1775
|
const { size: size2 } = use(CommandMenuContext);
|
|
1768
|
-
return /* @__PURE__ */ jsx(CommandSeparator, { ref, className: cx(
|
|
1776
|
+
return /* @__PURE__ */ jsx(CommandSeparator, { ref, className: cx(commandMenuSeparatorCva({ size: size2, spacing }), className), ...rest });
|
|
1769
1777
|
});
|
|
1770
1778
|
CommandMenuSeparator.displayName = "CommandMenuSeparator";
|
|
1771
1779
|
const CommandMenuTrigger = memo((props) => {
|
|
@@ -2027,7 +2035,7 @@ const DialogContent = forwardRef((props, ref) => {
|
|
|
2027
2035
|
return /* @__PURE__ */ jsx(RadixDialog.Portal, { container, children: /* @__PURE__ */ jsxs(
|
|
2028
2036
|
RadixDialog.Content,
|
|
2029
2037
|
{
|
|
2030
|
-
className: cx(
|
|
2038
|
+
className: cx(dialogContent({ size: size2 }), radiusCva({ radius, maxLarge: true }), className),
|
|
2031
2039
|
ref,
|
|
2032
2040
|
"data-floating-content": "",
|
|
2033
2041
|
...rest,
|
|
@@ -2048,7 +2056,7 @@ const DialogOverlay = forwardRef((props, ref) => {
|
|
|
2048
2056
|
RadixDialog.Overlay,
|
|
2049
2057
|
{
|
|
2050
2058
|
ref,
|
|
2051
|
-
className: cx(
|
|
2059
|
+
className: cx(dialogOverlay({}), className),
|
|
2052
2060
|
"data-floating-content": "",
|
|
2053
2061
|
...rest
|
|
2054
2062
|
}
|
|
@@ -2148,10 +2156,14 @@ const Heading = forwardRef((props, ref) => {
|
|
|
2148
2156
|
Tag,
|
|
2149
2157
|
{
|
|
2150
2158
|
ref,
|
|
2151
|
-
className: cx(
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2159
|
+
className: cx(
|
|
2160
|
+
headingCva({ size: size2, weight, align }),
|
|
2161
|
+
{
|
|
2162
|
+
"text-(--accent-a11)": !!accentColor,
|
|
2163
|
+
"text-(--accent-a12)": highContrast
|
|
2164
|
+
},
|
|
2165
|
+
className
|
|
2166
|
+
),
|
|
2155
2167
|
"data-accent-color": accentColor,
|
|
2156
2168
|
...rest
|
|
2157
2169
|
}
|
|
@@ -2160,7 +2172,7 @@ const Heading = forwardRef((props, ref) => {
|
|
|
2160
2172
|
Heading.displayName = "Heading";
|
|
2161
2173
|
const HoverCardArrow = forwardRef((props, ref) => {
|
|
2162
2174
|
const { className, ...rest } = props;
|
|
2163
|
-
return /* @__PURE__ */ jsx(RadixHoverCard.Arrow, { className: cx(
|
|
2175
|
+
return /* @__PURE__ */ jsx(RadixHoverCard.Arrow, { className: cx("fill-(--base-6)", className), ref, ...rest });
|
|
2164
2176
|
});
|
|
2165
2177
|
HoverCardArrow.displayName = "HoverCardArrow";
|
|
2166
2178
|
const hoverCardContent = cva(["bg-(--color-background)", "dark:bg-(--base-2)", "ring-1", "ring-(--base-6)"], {
|
|
@@ -2193,10 +2205,10 @@ const HoverCardContent = forwardRef((props, ref) => {
|
|
|
2193
2205
|
RadixHoverCard.Content,
|
|
2194
2206
|
{
|
|
2195
2207
|
className: cx(
|
|
2196
|
-
className,
|
|
2197
2208
|
hoverCardContent({ size: size2 }),
|
|
2198
2209
|
floating({ side, shadow: "3" }),
|
|
2199
|
-
radiusCva({ radius, maxLarge: true })
|
|
2210
|
+
radiusCva({ radius, maxLarge: true }),
|
|
2211
|
+
className
|
|
2200
2212
|
),
|
|
2201
2213
|
ref,
|
|
2202
2214
|
side,
|
|
@@ -2309,7 +2321,7 @@ const InputField = forwardRef((props, ref) => {
|
|
|
2309
2321
|
return /* @__PURE__ */ jsx(
|
|
2310
2322
|
"input",
|
|
2311
2323
|
{
|
|
2312
|
-
className: cx(
|
|
2324
|
+
className: cx(inputField({ size: size2, variant }), "grow bg-transparent outline-0", className),
|
|
2313
2325
|
ref,
|
|
2314
2326
|
...rest
|
|
2315
2327
|
}
|
|
@@ -2329,7 +2341,7 @@ const InputRoot = forwardRef((props, ref) => {
|
|
|
2329
2341
|
return /* @__PURE__ */ jsx(InputContext.Provider, { value: { size: size2, variant }, children: /* @__PURE__ */ jsx(
|
|
2330
2342
|
"div",
|
|
2331
2343
|
{
|
|
2332
|
-
className: cx(
|
|
2344
|
+
className: cx(inputRoot$1({ variant, size: size2 }), radiusCva({ radius, maxLarge: false }), className),
|
|
2333
2345
|
ref,
|
|
2334
2346
|
"data-accent-color": accentColor,
|
|
2335
2347
|
...rest
|
|
@@ -2340,7 +2352,7 @@ InputRoot.displayName = "InputRoot";
|
|
|
2340
2352
|
const InputSlot = forwardRef((props, ref) => {
|
|
2341
2353
|
const { className, ...rest } = props;
|
|
2342
2354
|
const { size: size2, variant } = useContext(InputContext);
|
|
2343
|
-
return /* @__PURE__ */ jsx("div", { className: cx(
|
|
2355
|
+
return /* @__PURE__ */ jsx("div", { className: cx(inputSlot({ size: size2, variant }), "flex items-center", className), ref, ...rest });
|
|
2344
2356
|
});
|
|
2345
2357
|
InputSlot.displayName = "InputSlot";
|
|
2346
2358
|
const Input = {
|
|
@@ -2354,7 +2366,7 @@ const Container = memo(
|
|
|
2354
2366
|
forwardRef((props, ref) => {
|
|
2355
2367
|
const { children, className, ...rest } = props;
|
|
2356
2368
|
const { hideLayout = false } = useLayoutContext();
|
|
2357
|
-
return !hideLayout && /* @__PURE__ */ jsx("div", { className: cx(
|
|
2369
|
+
return !hideLayout && /* @__PURE__ */ jsx("div", { className: cx("flex h-full grow", className), ref, ...rest, children });
|
|
2358
2370
|
})
|
|
2359
2371
|
);
|
|
2360
2372
|
const Root2 = memo((props) => {
|
|
@@ -2565,12 +2577,17 @@ const SlideOut = memo(
|
|
|
2565
2577
|
children: /* @__PURE__ */ jsxs(
|
|
2566
2578
|
"div",
|
|
2567
2579
|
{
|
|
2568
|
-
className: cx(
|
|
2569
|
-
"
|
|
2570
|
-
"
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2580
|
+
className: cx(
|
|
2581
|
+
"top-0",
|
|
2582
|
+
"bottom-0",
|
|
2583
|
+
{
|
|
2584
|
+
"left-0": isLeft,
|
|
2585
|
+
"right-0": !isLeft,
|
|
2586
|
+
absolute: position === "absolute",
|
|
2587
|
+
relative: position === "relative"
|
|
2588
|
+
},
|
|
2589
|
+
className
|
|
2590
|
+
),
|
|
2574
2591
|
ref: mergedRefs,
|
|
2575
2592
|
onPointerDownCapture: handlePointerDownCapture,
|
|
2576
2593
|
"data-side": side,
|
|
@@ -2716,7 +2733,7 @@ const SlideOutOverlay = memo(
|
|
|
2716
2733
|
if (smallModeOnly && !small) return false;
|
|
2717
2734
|
return side === "left" ? showLeftSlideOut : showRightSlideOut;
|
|
2718
2735
|
}, [active, hideLayout, showLeftSlideOut, showRightSlideOut, side, small, smallModeOnly]);
|
|
2719
|
-
return showOverlay && /* @__PURE__ */ jsx("div", { className: cx("overmap-layout-overlay",
|
|
2736
|
+
return showOverlay && /* @__PURE__ */ jsx("div", { className: cx("overmap-layout-overlay", "fixed inset-0", className), ref, ...rest });
|
|
2720
2737
|
})
|
|
2721
2738
|
);
|
|
2722
2739
|
const MENU_OVERFLOW_PADDING = 20;
|
|
@@ -2834,10 +2851,14 @@ const Link = forwardRef((props, ref) => {
|
|
|
2834
2851
|
"a",
|
|
2835
2852
|
{
|
|
2836
2853
|
ref,
|
|
2837
|
-
className: cx(
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2854
|
+
className: cx(
|
|
2855
|
+
linkCva({ size: size2, weight, align }),
|
|
2856
|
+
{
|
|
2857
|
+
"text-(--accent-a11)": !highContrast,
|
|
2858
|
+
"text-(--accent-a12)": highContrast
|
|
2859
|
+
},
|
|
2860
|
+
className
|
|
2861
|
+
),
|
|
2841
2862
|
"data-accent-color": accentColor,
|
|
2842
2863
|
...rest
|
|
2843
2864
|
}
|
|
@@ -2853,9 +2874,12 @@ const CheckedIndicator = (props) => {
|
|
|
2853
2874
|
"span",
|
|
2854
2875
|
{
|
|
2855
2876
|
ref,
|
|
2856
|
-
className: cx(
|
|
2857
|
-
|
|
2858
|
-
|
|
2877
|
+
className: cx(
|
|
2878
|
+
{
|
|
2879
|
+
invisible: checked === false
|
|
2880
|
+
},
|
|
2881
|
+
className
|
|
2882
|
+
),
|
|
2859
2883
|
"data-state": getCheckedState$1(checked),
|
|
2860
2884
|
...rest,
|
|
2861
2885
|
children: computedChildren
|
|
@@ -3178,11 +3202,11 @@ const MenuContent = memo((props) => {
|
|
|
3178
3202
|
"ul",
|
|
3179
3203
|
{
|
|
3180
3204
|
className: cx(
|
|
3181
|
-
className,
|
|
3182
3205
|
menuContent({ size: size2 }),
|
|
3183
3206
|
floating({ side, shadow: "3" }),
|
|
3184
3207
|
radiusCva({ radius, maxLarge: true }),
|
|
3185
|
-
"max-h-(--overmap-menu-available-height)"
|
|
3208
|
+
"max-h-(--overmap-menu-available-height)",
|
|
3209
|
+
className
|
|
3186
3210
|
),
|
|
3187
3211
|
ref: forwardedRef,
|
|
3188
3212
|
"data-state": getOpenState(open),
|
|
@@ -3347,7 +3371,7 @@ const MenuItem = memo((props) => {
|
|
|
3347
3371
|
return /* @__PURE__ */ jsx(
|
|
3348
3372
|
"li",
|
|
3349
3373
|
{
|
|
3350
|
-
className: cx(
|
|
3374
|
+
className: cx(menuItem({ size: size2, variant }), radiusCva({ radius, maxLarge: true }), className),
|
|
3351
3375
|
ref: mergeRefs2,
|
|
3352
3376
|
role: "menuitem",
|
|
3353
3377
|
"data-disabled": getBooleanState(disabled),
|
|
@@ -3479,7 +3503,7 @@ const MenuInputField = memo((props) => {
|
|
|
3479
3503
|
return /* @__PURE__ */ jsx(
|
|
3480
3504
|
"input",
|
|
3481
3505
|
{
|
|
3482
|
-
className: cx(
|
|
3506
|
+
className: cx("placeholder-(--base-a9)", "selection:bg-(--accent-a5)", "outline-none", className),
|
|
3483
3507
|
ref: mergedRefs,
|
|
3484
3508
|
disabled,
|
|
3485
3509
|
"data-disabled": getBooleanState(disabled),
|
|
@@ -3495,18 +3519,18 @@ MenuInputField.displayName = "MenuInputField";
|
|
|
3495
3519
|
const MenuInputRoot = memo((props) => {
|
|
3496
3520
|
const { ref, className, ...rest } = props;
|
|
3497
3521
|
const { size: size2 } = useMenuContentContext();
|
|
3498
|
-
return /* @__PURE__ */ jsx("div", { className: cx(
|
|
3522
|
+
return /* @__PURE__ */ jsx("div", { className: cx(inputRoot({ size: size2 }), className), ref, ...rest });
|
|
3499
3523
|
});
|
|
3500
3524
|
MenuInputRoot.displayName = "MenuInputRoot";
|
|
3501
3525
|
const MenuInputSlot = memo((props) => {
|
|
3502
3526
|
const { ref, className, ...rest } = props;
|
|
3503
|
-
return /* @__PURE__ */ jsx("div", { className: cx(
|
|
3527
|
+
return /* @__PURE__ */ jsx("div", { className: cx("flex", "items-center", "text-(--base-a11)", className), ref, ...rest });
|
|
3504
3528
|
});
|
|
3505
3529
|
MenuInputSlot.displayName = "MenuInputSlot";
|
|
3506
3530
|
const MenuLabel = memo((props) => {
|
|
3507
3531
|
const { ref, className, ...rest } = props;
|
|
3508
3532
|
const { size: size2 } = useMenuContentContext();
|
|
3509
|
-
return /* @__PURE__ */ jsx("div", { ref, className: cx(
|
|
3533
|
+
return /* @__PURE__ */ jsx("div", { ref, className: cx(menuLabelCva({ size: size2 }), className), ...rest });
|
|
3510
3534
|
});
|
|
3511
3535
|
MenuLabel.displayName = "MenuLabel";
|
|
3512
3536
|
const MenuMultiSelectGroup = genericMemo(function MenuMultiSelectGroup2(props) {
|
|
@@ -3522,9 +3546,12 @@ const MenuSelectedIndicator = memo((props) => {
|
|
|
3522
3546
|
"span",
|
|
3523
3547
|
{
|
|
3524
3548
|
ref,
|
|
3525
|
-
className: cx(
|
|
3526
|
-
|
|
3527
|
-
|
|
3549
|
+
className: cx(
|
|
3550
|
+
{
|
|
3551
|
+
invisible: !isSelected
|
|
3552
|
+
},
|
|
3553
|
+
className
|
|
3554
|
+
),
|
|
3528
3555
|
"data-state": getSelectedState(isSelected),
|
|
3529
3556
|
...rest,
|
|
3530
3557
|
children
|
|
@@ -3595,8 +3622,8 @@ const MenuScroll = memo((props) => {
|
|
|
3595
3622
|
{
|
|
3596
3623
|
ref,
|
|
3597
3624
|
className: cx(
|
|
3598
|
-
|
|
3599
|
-
|
|
3625
|
+
"h-full overflow-x-hidden overflow-y-auto [scrollbar-color:var(--base-6)_transparent] [scrollbar-width:thin]",
|
|
3626
|
+
className
|
|
3600
3627
|
),
|
|
3601
3628
|
...rest
|
|
3602
3629
|
}
|
|
@@ -3665,7 +3692,7 @@ const MenuSelectItem = genericMemo(function(props) {
|
|
|
3665
3692
|
const MenuSeparator = memo((props) => {
|
|
3666
3693
|
const { ref, className, ...rest } = props;
|
|
3667
3694
|
const { size: size2 } = useMenuContentContext();
|
|
3668
|
-
return /* @__PURE__ */ jsx(RadixSeparator.Root, { className: cx(
|
|
3695
|
+
return /* @__PURE__ */ jsx(RadixSeparator.Root, { className: cx(menuSeparator({ size: size2 }), className), ref, ...rest });
|
|
3669
3696
|
});
|
|
3670
3697
|
MenuSeparator.displayName = "MenuSeparator";
|
|
3671
3698
|
const MenuSubContent = memo((props) => {
|
|
@@ -3824,11 +3851,11 @@ const RiIcon = memo(
|
|
|
3824
3851
|
return Icon ? (
|
|
3825
3852
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
3826
3853
|
// @ts-ignore
|
|
3827
|
-
/* @__PURE__ */ jsx(Icon, { className: cx(
|
|
3854
|
+
/* @__PURE__ */ jsx(Icon, { className: cx("shrink-0", className), ref, title, size: size2, color, ...rest })
|
|
3828
3855
|
) : /* @__PURE__ */ jsx(
|
|
3829
3856
|
RiQuestionMark,
|
|
3830
3857
|
{
|
|
3831
|
-
className: cx(
|
|
3858
|
+
className: cx("shrink-0", className),
|
|
3832
3859
|
ref,
|
|
3833
3860
|
title,
|
|
3834
3861
|
size: size2,
|
|
@@ -3881,7 +3908,7 @@ const OvermapErrorBoundary = memo((props) => {
|
|
|
3881
3908
|
OvermapErrorBoundary.displayName = "OvermapErrorBoundary";
|
|
3882
3909
|
const PopoverArrow = forwardRef((props, ref) => {
|
|
3883
3910
|
const { className, ...rest } = props;
|
|
3884
|
-
return /* @__PURE__ */ jsx(RadixPopover.Arrow, { className: cx(
|
|
3911
|
+
return /* @__PURE__ */ jsx(RadixPopover.Arrow, { className: cx("fill-(--base-6)", className), ref, ...rest });
|
|
3885
3912
|
});
|
|
3886
3913
|
PopoverArrow.displayName = "PopoverArrow";
|
|
3887
3914
|
const popoverContent = cva(["bg-(--color-background)", "dark:bg-(--base-2)", "ring-1", "ring-(--base-6)"], {
|
|
@@ -3913,10 +3940,10 @@ const PopoverContent = forwardRef((props, ref) => {
|
|
|
3913
3940
|
RadixPopover.Content,
|
|
3914
3941
|
{
|
|
3915
3942
|
className: cx(
|
|
3916
|
-
className,
|
|
3917
3943
|
popoverContent({ size: size2 }),
|
|
3918
3944
|
floating({ shadow: "3" }),
|
|
3919
|
-
radiusCva({ radius, maxLarge: true })
|
|
3945
|
+
radiusCva({ radius, maxLarge: true }),
|
|
3946
|
+
className
|
|
3920
3947
|
),
|
|
3921
3948
|
ref,
|
|
3922
3949
|
sideOffset,
|
|
@@ -4069,7 +4096,7 @@ const RadioCardsItem = memo((props) => {
|
|
|
4069
4096
|
return /* @__PURE__ */ jsx(
|
|
4070
4097
|
RadixRadioGroup.Item,
|
|
4071
4098
|
{
|
|
4072
|
-
className: cx(
|
|
4099
|
+
className: cx(radioCardsItemCva({ variant, size: size2 }), radiusCva({ radius, maxLarge: true }), className),
|
|
4073
4100
|
"data-accent-color": accentColor,
|
|
4074
4101
|
...rest
|
|
4075
4102
|
}
|
|
@@ -4098,7 +4125,7 @@ const RadioCardsRoot = memo((props) => {
|
|
|
4098
4125
|
return /* @__PURE__ */ jsx(
|
|
4099
4126
|
RadixRadioGroup.Root,
|
|
4100
4127
|
{
|
|
4101
|
-
className: cx(
|
|
4128
|
+
className: cx(radioCardsRootCva({ size: size2, variant }), className),
|
|
4102
4129
|
"data-accent-color": accentColor,
|
|
4103
4130
|
...rest,
|
|
4104
4131
|
children: /* @__PURE__ */ jsx(RadioCardsContext, { value: contextValue, children })
|
|
@@ -4115,7 +4142,7 @@ const RadioGroupIndicator = forwardRef((props, ref) => {
|
|
|
4115
4142
|
return /* @__PURE__ */ jsx(
|
|
4116
4143
|
RadixRadioGroup.Indicator,
|
|
4117
4144
|
{
|
|
4118
|
-
className: cx(
|
|
4145
|
+
className: cx("inline-flex items-center justify-center", className),
|
|
4119
4146
|
ref,
|
|
4120
4147
|
...rest
|
|
4121
4148
|
}
|
|
@@ -4170,7 +4197,7 @@ const RadioGroupItem = memo(
|
|
|
4170
4197
|
forwardRef((props, ref) => {
|
|
4171
4198
|
const radioGroupContext = useContext(RadioGroupContext);
|
|
4172
4199
|
const { className, size: size2 = radioGroupContext.size, variant = radioGroupContext.variant, ...rest } = props;
|
|
4173
|
-
return /* @__PURE__ */ jsx(RadixRadioGroup.Item, { className: cx(
|
|
4200
|
+
return /* @__PURE__ */ jsx(RadixRadioGroup.Item, { className: cx(radioGroupItem({ size: size2, variant }), className), ref, ...rest });
|
|
4174
4201
|
})
|
|
4175
4202
|
);
|
|
4176
4203
|
const RadioGroupRoot = memo(
|
|
@@ -4350,7 +4377,7 @@ const SegmentedControlItem = forwardRef((props, ref) => {
|
|
|
4350
4377
|
RadixToggleGroup.Item,
|
|
4351
4378
|
{
|
|
4352
4379
|
ref,
|
|
4353
|
-
className: cx(
|
|
4380
|
+
className: cx(segmentedControlItemCva({ size: size2, variant, icon, radius }), className),
|
|
4354
4381
|
...rest
|
|
4355
4382
|
}
|
|
4356
4383
|
);
|
|
@@ -4373,9 +4400,9 @@ const SegmentedControlRoot = forwardRef((props, ref) => {
|
|
|
4373
4400
|
{
|
|
4374
4401
|
ref,
|
|
4375
4402
|
className: cx(
|
|
4376
|
-
className,
|
|
4377
4403
|
segmentedControlRootCva({ size: size2, variant }),
|
|
4378
|
-
radiusCva({ radius, maxLarge: false })
|
|
4404
|
+
radiusCva({ radius, maxLarge: false }),
|
|
4405
|
+
className
|
|
4379
4406
|
),
|
|
4380
4407
|
type: "single",
|
|
4381
4408
|
"data-accent-color": accentColor,
|
|
@@ -4560,7 +4587,7 @@ const SegmentedTabsList = forwardRef((props, ref) => {
|
|
|
4560
4587
|
RadixTabs.List,
|
|
4561
4588
|
{
|
|
4562
4589
|
ref,
|
|
4563
|
-
className: cx(
|
|
4590
|
+
className: cx(segmentedTabsListCva({ size: size2, variant }), radiusCva({ radius, maxLarge: false }), className),
|
|
4564
4591
|
"data-accent-color": accentColor,
|
|
4565
4592
|
...rest,
|
|
4566
4593
|
children: /* @__PURE__ */ jsx(SegmentedTabsListContext.Provider, { value: contextValue, children })
|
|
@@ -4570,7 +4597,7 @@ const SegmentedTabsList = forwardRef((props, ref) => {
|
|
|
4570
4597
|
SegmentedTabsList.displayName = "TabsList";
|
|
4571
4598
|
const SegmentedTabsRoot = forwardRef((props, ref) => {
|
|
4572
4599
|
const { className, ...rest } = props;
|
|
4573
|
-
return /* @__PURE__ */ jsx(RadixTabs.Root, { ref, className: cx(
|
|
4600
|
+
return /* @__PURE__ */ jsx(RadixTabs.Root, { ref, className: cx("flex flex-col", className), ...rest });
|
|
4574
4601
|
});
|
|
4575
4602
|
SegmentedTabsRoot.displayName = "TabsRoot";
|
|
4576
4603
|
const SegmentedTabsTrigger = forwardRef((props, ref) => {
|
|
@@ -4580,7 +4607,7 @@ const SegmentedTabsTrigger = forwardRef((props, ref) => {
|
|
|
4580
4607
|
RadixTabs.Trigger,
|
|
4581
4608
|
{
|
|
4582
4609
|
ref,
|
|
4583
|
-
className: cx(
|
|
4610
|
+
className: cx(segmentedTabsTriggerCva({ size: size2, radius, variant }), className),
|
|
4584
4611
|
...rest,
|
|
4585
4612
|
children
|
|
4586
4613
|
}
|
|
@@ -4680,7 +4707,7 @@ const Separator = forwardRef((props, ref) => {
|
|
|
4680
4707
|
return /* @__PURE__ */ jsx(
|
|
4681
4708
|
RadixSeparator.Root,
|
|
4682
4709
|
{
|
|
4683
|
-
className: cx(
|
|
4710
|
+
className: cx(separator({ orientation, size: size2 }), className),
|
|
4684
4711
|
"data-accent-color": accentColor,
|
|
4685
4712
|
ref,
|
|
4686
4713
|
...rest
|
|
@@ -4913,9 +4940,9 @@ const Slider = memo((props) => {
|
|
|
4913
4940
|
RadixSlider.Root,
|
|
4914
4941
|
{
|
|
4915
4942
|
className: cx(
|
|
4916
|
-
className,
|
|
4917
4943
|
sliderRootCva({ size: size2, variant, orientation }),
|
|
4918
|
-
radiusCva({ radius, maxLarge: false })
|
|
4944
|
+
radiusCva({ radius, maxLarge: false }),
|
|
4945
|
+
className
|
|
4919
4946
|
),
|
|
4920
4947
|
orientation,
|
|
4921
4948
|
"data-accent-color": accentColor,
|
|
@@ -5013,7 +5040,7 @@ const SwitchRoot = memo(
|
|
|
5013
5040
|
return /* @__PURE__ */ jsx(
|
|
5014
5041
|
RadixSwitch.Root,
|
|
5015
5042
|
{
|
|
5016
|
-
className: cx(
|
|
5043
|
+
className: cx(switchRoot({ size: size2 }), radiusCva({ radius, maxLarge: false }), className),
|
|
5017
5044
|
ref,
|
|
5018
5045
|
"data-accent-color": accentColor,
|
|
5019
5046
|
...rest,
|
|
@@ -5029,7 +5056,7 @@ const SwitchThumb = memo(
|
|
|
5029
5056
|
return /* @__PURE__ */ jsx(
|
|
5030
5057
|
RadixSwitch.Thumb,
|
|
5031
5058
|
{
|
|
5032
|
-
className: cx(
|
|
5059
|
+
className: cx(switchThumb({ size: size2 }), radiusCva({ radius, maxLarge: false }), className),
|
|
5033
5060
|
ref,
|
|
5034
5061
|
...rest
|
|
5035
5062
|
}
|
|
@@ -5089,14 +5116,14 @@ const tableCellCva = cva([], {
|
|
|
5089
5116
|
const TableCell = forwardRef((props, ref) => {
|
|
5090
5117
|
const { className, ...rest } = props;
|
|
5091
5118
|
const { size: size2, border, variant } = useContext(TableContext);
|
|
5092
|
-
return /* @__PURE__ */ jsx("td", { ref, className: cx(
|
|
5119
|
+
return /* @__PURE__ */ jsx("td", { ref, className: cx(tableCellCva({ size: size2, border, cell: true, variant }), className), ...rest });
|
|
5093
5120
|
});
|
|
5094
5121
|
TableCell.displayName = "TableCell";
|
|
5095
5122
|
const TableColumnHeaderCell = forwardRef(
|
|
5096
5123
|
(props, ref) => {
|
|
5097
5124
|
const { className, ...rest } = props;
|
|
5098
5125
|
const { size: size2, border, variant } = useContext(TableContext);
|
|
5099
|
-
return /* @__PURE__ */ jsx("th", { ref, className: cx(
|
|
5126
|
+
return /* @__PURE__ */ jsx("th", { ref, className: cx(tableCellCva({ size: size2, border, cell: false, variant }), className), ...rest });
|
|
5100
5127
|
}
|
|
5101
5128
|
);
|
|
5102
5129
|
TableColumnHeaderCell.displayName = "TableColumnHeaderCell";
|
|
@@ -5118,9 +5145,9 @@ const TableRoot = forwardRef((props, ref) => {
|
|
|
5118
5145
|
{
|
|
5119
5146
|
ref,
|
|
5120
5147
|
className: cx(
|
|
5121
|
-
className,
|
|
5122
5148
|
tableRootCva({ size: size2, variant }),
|
|
5123
|
-
radiusCva({ radius: providerContext.radius, maxLarge: true })
|
|
5149
|
+
radiusCva({ radius: providerContext.radius, maxLarge: true }),
|
|
5150
|
+
className
|
|
5124
5151
|
),
|
|
5125
5152
|
"data-accent-color": accentColor,
|
|
5126
5153
|
...rest,
|
|
@@ -5137,7 +5164,7 @@ TableRow.displayName = "TableRow";
|
|
|
5137
5164
|
const TableRowHeaderCell = forwardRef((props, ref) => {
|
|
5138
5165
|
const { className, ...rest } = props;
|
|
5139
5166
|
const { size: size2, border, variant } = useContext(TableContext);
|
|
5140
|
-
return /* @__PURE__ */ jsx("th", { ref, className: cx(
|
|
5167
|
+
return /* @__PURE__ */ jsx("th", { ref, className: cx(tableCellCva({ size: size2, border, cell: true, variant }), className), ...rest });
|
|
5141
5168
|
});
|
|
5142
5169
|
TableRowHeaderCell.displayName = "TableRow";
|
|
5143
5170
|
const Table = {
|
|
@@ -5207,7 +5234,7 @@ const TabsList = forwardRef((props, ref) => {
|
|
|
5207
5234
|
RadixTabs.List,
|
|
5208
5235
|
{
|
|
5209
5236
|
ref,
|
|
5210
|
-
className: cx(
|
|
5237
|
+
className: cx(tabsListCva({ size: size2 }), className),
|
|
5211
5238
|
"data-accent-color": accentColor,
|
|
5212
5239
|
...rest,
|
|
5213
5240
|
children: /* @__PURE__ */ jsx(TabsListContext.Provider, { value: { size: size2 }, children })
|
|
@@ -5217,7 +5244,7 @@ const TabsList = forwardRef((props, ref) => {
|
|
|
5217
5244
|
TabsList.displayName = "TabsList";
|
|
5218
5245
|
const TabsRoot = forwardRef((props, ref) => {
|
|
5219
5246
|
const { className, ...rest } = props;
|
|
5220
|
-
return /* @__PURE__ */ jsx(RadixTabs.Root, { ref, className: cx(
|
|
5247
|
+
return /* @__PURE__ */ jsx(RadixTabs.Root, { ref, className: cx("flex flex-col", className), ...rest });
|
|
5221
5248
|
});
|
|
5222
5249
|
TabsRoot.displayName = "TabsRoot";
|
|
5223
5250
|
const useTabsList = () => {
|
|
@@ -5230,7 +5257,7 @@ const useTabsList = () => {
|
|
|
5230
5257
|
const TabsTrigger = forwardRef((props, ref) => {
|
|
5231
5258
|
const { className, children, ...rest } = props;
|
|
5232
5259
|
const { size: size2 } = useTabsList();
|
|
5233
|
-
return /* @__PURE__ */ jsx(RadixTabs.Trigger, { ref, className: cx(
|
|
5260
|
+
return /* @__PURE__ */ jsx(RadixTabs.Trigger, { ref, className: cx(tabsTriggerCva({ size: size2 }), className), ...rest, children });
|
|
5234
5261
|
});
|
|
5235
5262
|
TabsTrigger.displayName = "TabsTrigger";
|
|
5236
5263
|
const Tabs = {
|
|
@@ -5275,10 +5302,14 @@ const Text = forwardRef((props, ref) => {
|
|
|
5275
5302
|
"span",
|
|
5276
5303
|
{
|
|
5277
5304
|
ref,
|
|
5278
|
-
className: cx(
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5305
|
+
className: cx(
|
|
5306
|
+
textCva({ size: size2, weight, align }),
|
|
5307
|
+
{
|
|
5308
|
+
"text-(--accent-a11)": !!accentColor,
|
|
5309
|
+
"text-(--accent-a12)": highContrast
|
|
5310
|
+
},
|
|
5311
|
+
className
|
|
5312
|
+
),
|
|
5282
5313
|
"data-accent-color": accentColor,
|
|
5283
5314
|
...rest
|
|
5284
5315
|
}
|
|
@@ -5326,11 +5357,11 @@ const textAreaCva = cva(
|
|
|
5326
5357
|
ghost: ["placeholder-(--base-a9)", "selection:bg-(--accent-a5)", "bg-transparent", "text-(--base-12)"]
|
|
5327
5358
|
},
|
|
5328
5359
|
size: {
|
|
5329
|
-
xs: ["p-
|
|
5330
|
-
sm: ["p-
|
|
5331
|
-
md: ["p-
|
|
5332
|
-
lg: ["p-
|
|
5333
|
-
xl: ["p-
|
|
5360
|
+
xs: ["p-3", "text-xs"],
|
|
5361
|
+
sm: ["p-3.5", "text-sm"],
|
|
5362
|
+
md: ["p-4", "text-base"],
|
|
5363
|
+
lg: ["p-4.5", "text-lg"],
|
|
5364
|
+
xl: ["p-5", "text-xl"]
|
|
5334
5365
|
},
|
|
5335
5366
|
resize: {
|
|
5336
5367
|
none: ["resize-none"],
|
|
@@ -5359,7 +5390,7 @@ const TextArea = forwardRef((props, ref) => {
|
|
|
5359
5390
|
return /* @__PURE__ */ jsx(
|
|
5360
5391
|
"textarea",
|
|
5361
5392
|
{
|
|
5362
|
-
className: cx(
|
|
5393
|
+
className: cx(textAreaCva({ size: size2, variant }), radiusCva({ radius, maxLarge: true }), className),
|
|
5363
5394
|
ref,
|
|
5364
5395
|
"data-accent-color": accentColor,
|
|
5365
5396
|
...rest
|
|
@@ -5519,8 +5550,8 @@ const ToastProvider = memo(function ToastContextProvider({
|
|
|
5519
5550
|
ToastViewport,
|
|
5520
5551
|
{
|
|
5521
5552
|
className: cx(
|
|
5522
|
-
|
|
5523
|
-
|
|
5553
|
+
"fixed top-0 right-0 z-[2147483647] flex w-full max-w-md list-none flex-col items-end gap-3 overflow-x-hidden overflow-y-auto p-5 outline-none",
|
|
5554
|
+
className
|
|
5524
5555
|
),
|
|
5525
5556
|
hotkey
|
|
5526
5557
|
}
|
|
@@ -5663,7 +5694,7 @@ const BaseToggleButton = forwardRef((props, ref) => {
|
|
|
5663
5694
|
Toggle.Root,
|
|
5664
5695
|
{
|
|
5665
5696
|
ref,
|
|
5666
|
-
className: cx(
|
|
5697
|
+
className: cx(toggleButtonCva({ size: size2, variant, icon }), radiusCva({ radius, maxLarge: false }), className),
|
|
5667
5698
|
"data-accent-color": accentColor,
|
|
5668
5699
|
...rest
|
|
5669
5700
|
}
|
|
@@ -5859,7 +5890,7 @@ const ToggleGroup = {
|
|
|
5859
5890
|
};
|
|
5860
5891
|
const TooltipArrow = forwardRef((props, ref) => {
|
|
5861
5892
|
const { className, ...rest } = props;
|
|
5862
|
-
return /* @__PURE__ */ jsx(RadixTooltip.Arrow, { className: cx(
|
|
5893
|
+
return /* @__PURE__ */ jsx(RadixTooltip.Arrow, { className: cx("fill-(--base-6)", className), ref, ...rest });
|
|
5863
5894
|
});
|
|
5864
5895
|
TooltipArrow.displayName = "TooltipArrow";
|
|
5865
5896
|
const tooltipContent = cva(
|
|
@@ -5914,7 +5945,7 @@ const TooltipContent = forwardRef((props, ref) => {
|
|
|
5914
5945
|
return /* @__PURE__ */ jsx(RadixTooltip.Portal, { container, children: /* @__PURE__ */ jsx(
|
|
5915
5946
|
RadixTooltip.Content,
|
|
5916
5947
|
{
|
|
5917
|
-
className: cx(
|
|
5948
|
+
className: cx(tooltipContent({ size: size2, side }), radiusCva({ radius, maxLarge: false }), className),
|
|
5918
5949
|
ref,
|
|
5919
5950
|
sideOffset,
|
|
5920
5951
|
"data-floating-content": "",
|