@l3mpire/ui 2.25.2 → 2.26.1
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/USAGE.md +20 -12
- package/dist/index.d.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +144 -111
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +144 -111
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
- package/src/styles/globals.css +2 -0
package/dist/index.mjs
CHANGED
|
@@ -149,19 +149,19 @@ var buttonVariants = cva2(
|
|
|
149
149
|
},
|
|
150
150
|
size: {
|
|
151
151
|
sm: [
|
|
152
|
-
"h-6 py-xs gap-
|
|
152
|
+
"h-6 px-sm py-xs gap-none",
|
|
153
153
|
"text-xs",
|
|
154
154
|
"min-w-16 rounded-base"
|
|
155
155
|
],
|
|
156
156
|
md: [
|
|
157
|
-
"h-8 px-base py-sm gap-
|
|
157
|
+
"h-8 px-base py-sm gap-2xs",
|
|
158
158
|
"text-sm",
|
|
159
159
|
"min-w-20 rounded-md"
|
|
160
160
|
],
|
|
161
161
|
lg: [
|
|
162
|
-
"h-10 px-
|
|
162
|
+
"h-10 px-lg py-md gap-2xs",
|
|
163
163
|
"text-sm",
|
|
164
|
-
"min-w-20 rounded-
|
|
164
|
+
"min-w-20 rounded-lg"
|
|
165
165
|
]
|
|
166
166
|
},
|
|
167
167
|
iconOnly: {
|
|
@@ -287,6 +287,25 @@ var iconSizeMap = {
|
|
|
287
287
|
lg: "sm"
|
|
288
288
|
// 14px
|
|
289
289
|
};
|
|
290
|
+
var textWrapperClass = (size) => cn(
|
|
291
|
+
"inline-flex items-center justify-center px-xs",
|
|
292
|
+
size === "lg" ? "gap-sm" : "gap-xs"
|
|
293
|
+
);
|
|
294
|
+
var ButtonBadge = ({ size, intent, children }) => {
|
|
295
|
+
const colors = intent === "alert" ? "bg-[var(--core-bg-functional-invert-critical)] text-[var(--core-text-functional-critical)]" : "bg-[var(--core-bg-functional-invert-info)] text-[var(--core-text-functional-info)]";
|
|
296
|
+
const shape = size === "lg" ? "gap-xs px-sm py-xs rounded-sm text-xs leading-xs" : "gap-2xs px-xs py-2xs rounded-xs text-xxs leading-2xs";
|
|
297
|
+
return /* @__PURE__ */ jsx2(
|
|
298
|
+
"span",
|
|
299
|
+
{
|
|
300
|
+
className: cn(
|
|
301
|
+
"inline-flex items-center font-medium whitespace-nowrap",
|
|
302
|
+
shape,
|
|
303
|
+
colors
|
|
304
|
+
),
|
|
305
|
+
children
|
|
306
|
+
}
|
|
307
|
+
);
|
|
308
|
+
};
|
|
290
309
|
var Button = React2.forwardRef(
|
|
291
310
|
({
|
|
292
311
|
className,
|
|
@@ -300,26 +319,28 @@ var Button = React2.forwardRef(
|
|
|
300
319
|
leftIcon,
|
|
301
320
|
rightIcon,
|
|
302
321
|
disabled,
|
|
322
|
+
badge,
|
|
303
323
|
children,
|
|
304
324
|
...props
|
|
305
325
|
}, ref) => {
|
|
306
326
|
const appearance = appearanceProp ?? "solid";
|
|
307
327
|
const intent = intentProp ?? "brand";
|
|
328
|
+
const resolvedSize = size ?? "md";
|
|
308
329
|
const isDisabled = disabled || loading;
|
|
309
330
|
const isIconOnly = iconOnlyProp ?? !children;
|
|
310
|
-
const iconSize = iconSizeMap[
|
|
311
|
-
const smPadding = size === "sm" && !isIconOnly ? cn(
|
|
312
|
-
leftIcon || loading ? "pl-xs" : "pl-sm",
|
|
313
|
-
rightIcon ? "pr-xs" : "pr-sm"
|
|
314
|
-
) : "";
|
|
331
|
+
const iconSize = iconSizeMap[resolvedSize];
|
|
315
332
|
const variantClasses = buttonVariants({
|
|
316
333
|
appearance,
|
|
317
334
|
intent,
|
|
318
|
-
size,
|
|
335
|
+
size: resolvedSize,
|
|
319
336
|
iconOnly: isIconOnly || void 0,
|
|
320
337
|
fullWidth,
|
|
321
|
-
className
|
|
338
|
+
className
|
|
322
339
|
});
|
|
340
|
+
const labelNode = !isIconOnly ? /* @__PURE__ */ jsxs2("span", { className: textWrapperClass(resolvedSize), children: [
|
|
341
|
+
children,
|
|
342
|
+
badge != null && /* @__PURE__ */ jsx2(ButtonBadge, { size: resolvedSize, intent, children: badge })
|
|
343
|
+
] }) : null;
|
|
323
344
|
if (asChild) {
|
|
324
345
|
return /* @__PURE__ */ jsx2(Slot, { ref, className: cn(variantClasses), ...props, children });
|
|
325
346
|
}
|
|
@@ -333,7 +354,7 @@ var Button = React2.forwardRef(
|
|
|
333
354
|
...props,
|
|
334
355
|
children: [
|
|
335
356
|
loading ? /* @__PURE__ */ jsx2(Icon2, { icon: faSpinnerSolid, size: iconSize, className: "animate-spin" }) : leftIcon ? /* @__PURE__ */ jsx2(Icon2, { icon: leftIcon, size: iconSize }) : null,
|
|
336
|
-
|
|
357
|
+
labelNode,
|
|
337
358
|
rightIcon && !loading && /* @__PURE__ */ jsx2(Icon2, { icon: rightIcon, size: iconSize })
|
|
338
359
|
]
|
|
339
360
|
}
|
|
@@ -563,7 +584,7 @@ var BrowserTab = React3.forwardRef(
|
|
|
563
584
|
{
|
|
564
585
|
ref,
|
|
565
586
|
className: cn(
|
|
566
|
-
"flex items-end w-full h-[44px] border-b border-browser-tab-border pl-base pr-
|
|
587
|
+
"flex items-end w-full h-[44px] border-b border-browser-tab-border pl-base pr-xl",
|
|
567
588
|
className
|
|
568
589
|
),
|
|
569
590
|
...props,
|
|
@@ -611,7 +632,7 @@ var BrowserTab = React3.forwardRef(
|
|
|
611
632
|
align: "end",
|
|
612
633
|
className: cn(
|
|
613
634
|
"z-50 flex flex-col gap-base overflow-clip",
|
|
614
|
-
"bg-dropdown-bg border border-dropdown-border rounded-
|
|
635
|
+
"bg-dropdown-bg border border-dropdown-border rounded-lg p-base shadow-lg",
|
|
615
636
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
616
637
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
617
638
|
"data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2"
|
|
@@ -697,7 +718,7 @@ var containerStyle = [
|
|
|
697
718
|
"flex flex-col gap-base overflow-clip",
|
|
698
719
|
"bg-dropdown-bg",
|
|
699
720
|
"border border-dropdown-border",
|
|
700
|
-
"rounded-
|
|
721
|
+
"rounded-lg",
|
|
701
722
|
"p-xs",
|
|
702
723
|
"shadow-lg"
|
|
703
724
|
];
|
|
@@ -860,7 +881,7 @@ DropdownMenuHeading.displayName = "DropdownMenuHeading";
|
|
|
860
881
|
var clearStyle = [
|
|
861
882
|
"sticky bottom-0 -mx-base -mb-base",
|
|
862
883
|
"flex items-center justify-center",
|
|
863
|
-
"h-10 min-w-[80px] px-
|
|
884
|
+
"h-10 min-w-[80px] px-lg py-[10px]",
|
|
864
885
|
"bg-gradient-to-t from-dropdown-bg from-[10%] to-dropdown-bg",
|
|
865
886
|
"border border-dropdown-border",
|
|
866
887
|
"shadow-sm",
|
|
@@ -944,33 +965,19 @@ var BulkAction = React5.forwardRef(
|
|
|
944
965
|
role: "toolbar",
|
|
945
966
|
"aria-label": "Bulk actions",
|
|
946
967
|
className: cn(
|
|
947
|
-
"flex items-center gap-lg
|
|
968
|
+
"flex items-center gap-xl px-lg py-base w-full min-w-0",
|
|
948
969
|
"bg-bulk-action-bg border-l border-r border-t border-bulk-action-border",
|
|
949
|
-
"rounded-tl-
|
|
970
|
+
"rounded-tl-lg rounded-tr-lg",
|
|
950
971
|
"shadow-[0px_0px_6px_0px_rgba(0,0,0,0.02),0px_2px_4px_0px_rgba(0,0,0,0.08)]",
|
|
951
972
|
sticky && "sticky bottom-0 z-10",
|
|
952
973
|
className
|
|
953
974
|
),
|
|
954
975
|
...props,
|
|
955
976
|
children: [
|
|
956
|
-
/* @__PURE__ */ jsxs5("
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
type: "button",
|
|
961
|
-
appearance: "ghost",
|
|
962
|
-
intent: "alert",
|
|
963
|
-
size: "sm",
|
|
964
|
-
leftIcon: faXmarkOutline2,
|
|
965
|
-
onClick: onClear,
|
|
966
|
-
children: clearLabel
|
|
967
|
-
}
|
|
968
|
-
),
|
|
969
|
-
/* @__PURE__ */ jsxs5("span", { className: "text-sm font-regular leading-sm text-bulk-action-count whitespace-nowrap", children: [
|
|
970
|
-
count,
|
|
971
|
-
" ",
|
|
972
|
-
countLabel
|
|
973
|
-
] })
|
|
977
|
+
/* @__PURE__ */ jsxs5("span", { className: "text-sm font-regular leading-sm text-bulk-action-count whitespace-nowrap shrink-0", children: [
|
|
978
|
+
count,
|
|
979
|
+
" ",
|
|
980
|
+
countLabel
|
|
974
981
|
] }),
|
|
975
982
|
/* @__PURE__ */ jsxs5(
|
|
976
983
|
"div",
|
|
@@ -1023,6 +1030,20 @@ var BulkAction = React5.forwardRef(
|
|
|
1023
1030
|
)
|
|
1024
1031
|
]
|
|
1025
1032
|
}
|
|
1033
|
+
),
|
|
1034
|
+
/* @__PURE__ */ jsx5(
|
|
1035
|
+
Button,
|
|
1036
|
+
{
|
|
1037
|
+
type: "button",
|
|
1038
|
+
appearance: "ghost",
|
|
1039
|
+
intent: "brand",
|
|
1040
|
+
size: "md",
|
|
1041
|
+
iconOnly: true,
|
|
1042
|
+
leftIcon: faXmarkOutline2,
|
|
1043
|
+
onClick: onClear,
|
|
1044
|
+
"aria-label": clearLabel,
|
|
1045
|
+
className: "shrink-0"
|
|
1046
|
+
}
|
|
1026
1047
|
)
|
|
1027
1048
|
]
|
|
1028
1049
|
}
|
|
@@ -1056,7 +1077,7 @@ var tooltipContentVariants = cva3(
|
|
|
1056
1077
|
"inline-flex items-center z-50",
|
|
1057
1078
|
"gap-xs",
|
|
1058
1079
|
"px-base py-sm",
|
|
1059
|
-
"rounded-
|
|
1080
|
+
"rounded-lg",
|
|
1060
1081
|
"shadow-lg",
|
|
1061
1082
|
"text-sm",
|
|
1062
1083
|
"font-regular",
|
|
@@ -1306,7 +1327,7 @@ import {
|
|
|
1306
1327
|
} from "@l3mpire/icons";
|
|
1307
1328
|
import { jsx as jsx9, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1308
1329
|
var infoMessageVariants = cva5(
|
|
1309
|
-
"flex items-start gap-
|
|
1330
|
+
"flex items-start gap-lg px-xl py-base rounded-lg",
|
|
1310
1331
|
{
|
|
1311
1332
|
variants: {
|
|
1312
1333
|
type: {
|
|
@@ -1393,8 +1414,8 @@ import {
|
|
|
1393
1414
|
import { jsx as jsx10, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1394
1415
|
var toastVariants = cva6(
|
|
1395
1416
|
[
|
|
1396
|
-
"flex flex-col items-end w-[308px] gap-
|
|
1397
|
-
"rounded-
|
|
1417
|
+
"flex flex-col items-end w-[308px] gap-lg p-xl",
|
|
1418
|
+
"rounded-lg",
|
|
1398
1419
|
"border border-toast-border",
|
|
1399
1420
|
"bg-gradient-to-b to-background to-[60%]",
|
|
1400
1421
|
"[background-size:100%_calc(100%+120px)] [background-position:0_-120px]",
|
|
@@ -1434,14 +1455,14 @@ var typeIconMap2 = {
|
|
|
1434
1455
|
};
|
|
1435
1456
|
var titleStyle2 = "text-sm font-medium leading-sm text-toast-title";
|
|
1436
1457
|
var subtitleStyle = "text-sm font-regular leading-sm text-toast-subtitle";
|
|
1437
|
-
var closeButtonStyle2 = "inline-flex shrink-0 items-center justify-center self-start p-sm rounded-
|
|
1458
|
+
var closeButtonStyle2 = "inline-flex shrink-0 items-center justify-center self-start p-sm rounded-lg text-toast-close hover:bg-black/5 transition-colors";
|
|
1438
1459
|
var ToastProvider = ToastPrimitive.Provider;
|
|
1439
1460
|
var ToastViewport = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx10(
|
|
1440
1461
|
ToastPrimitive.Viewport,
|
|
1441
1462
|
{
|
|
1442
1463
|
ref,
|
|
1443
1464
|
className: cn(
|
|
1444
|
-
"fixed top-0 right-0 z-[100] flex max-h-screen w-full flex-col-reverse p-
|
|
1465
|
+
"fixed top-0 right-0 z-[100] flex max-h-screen w-full flex-col-reverse p-xl sm:flex-col md:max-w-[420px]",
|
|
1445
1466
|
className
|
|
1446
1467
|
),
|
|
1447
1468
|
...props
|
|
@@ -1463,7 +1484,7 @@ var Toast = React10.forwardRef(({ className, type = "info", title, subtitle, onC
|
|
|
1463
1484
|
className: cn(toastVariants({ type }), !actions && "min-h-[80px]", className),
|
|
1464
1485
|
...props,
|
|
1465
1486
|
children: [
|
|
1466
|
-
/* @__PURE__ */ jsxs10("div", { className: "flex w-full items-center gap-
|
|
1487
|
+
/* @__PURE__ */ jsxs10("div", { className: "flex w-full items-center gap-lg", children: [
|
|
1467
1488
|
/* @__PURE__ */ jsx10("div", { className: iconContainerVariants({ type }), children: /* @__PURE__ */ jsx10(Icon9, { icon, size: "lg", className: color }) }),
|
|
1468
1489
|
/* @__PURE__ */ jsxs10("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
1469
1490
|
/* @__PURE__ */ jsx10(ToastPrimitive.Title, { className: titleStyle2, children: title }),
|
|
@@ -1552,7 +1573,7 @@ import { Icon as Icon10 } from "@l3mpire/icons";
|
|
|
1552
1573
|
import { jsx as jsx12, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1553
1574
|
var cardStyles = {
|
|
1554
1575
|
base: [
|
|
1555
|
-
"group relative flex w-full items-center gap-base rounded-
|
|
1576
|
+
"group relative flex w-full items-center gap-base rounded-lg border border-solid p-lg text-left transition-colors",
|
|
1556
1577
|
"border-switch-card-border",
|
|
1557
1578
|
"focus-visible:outline-none focus-visible:shadow-focus-ring",
|
|
1558
1579
|
"disabled:pointer-events-none disabled:opacity-60",
|
|
@@ -1823,7 +1844,7 @@ var SidebarHeader = React14.forwardRef(
|
|
|
1823
1844
|
ref,
|
|
1824
1845
|
className: cn(
|
|
1825
1846
|
"flex items-center shrink-0 h-[44px] border-b border-sidebar-border",
|
|
1826
|
-
isCollapsed ? "justify-center px-
|
|
1847
|
+
isCollapsed ? "justify-center px-xl" : "justify-between px-xl",
|
|
1827
1848
|
className
|
|
1828
1849
|
),
|
|
1829
1850
|
...props,
|
|
@@ -1895,7 +1916,7 @@ var Sidebar = React14.forwardRef(
|
|
|
1895
1916
|
(child) => !(React14.isValidElement(child) && child.type?.displayName === "SidebarFooter")
|
|
1896
1917
|
);
|
|
1897
1918
|
return /* @__PURE__ */ jsxs13(Fragment2, { children: [
|
|
1898
|
-
/* @__PURE__ */ jsx14("div", { className: "flex flex-col gap-
|
|
1919
|
+
/* @__PURE__ */ jsx14("div", { className: "flex flex-col gap-xl p-xl flex-1 overflow-y-auto", children: rest }),
|
|
1899
1920
|
footer
|
|
1900
1921
|
] });
|
|
1901
1922
|
})()
|
|
@@ -1926,7 +1947,7 @@ var SidebarFooter = React14.forwardRef(
|
|
|
1926
1947
|
{
|
|
1927
1948
|
ref,
|
|
1928
1949
|
className: cn(
|
|
1929
|
-
"flex flex-col p-
|
|
1950
|
+
"flex flex-col p-xl bg-sidebar-footer-bg border-t border-sidebar-border mt-auto w-full",
|
|
1930
1951
|
className
|
|
1931
1952
|
),
|
|
1932
1953
|
...props,
|
|
@@ -1955,7 +1976,7 @@ var searchBarVariants = cva8(
|
|
|
1955
1976
|
},
|
|
1956
1977
|
size: {
|
|
1957
1978
|
sm: "gap-sm px-base py-sm",
|
|
1958
|
-
md: "gap-base px-
|
|
1979
|
+
md: "gap-base px-lg py-base"
|
|
1959
1980
|
}
|
|
1960
1981
|
},
|
|
1961
1982
|
defaultVariants: { variant: "white", size: "md" }
|
|
@@ -2296,7 +2317,7 @@ import { Icon as Icon14 } from "@l3mpire/icons";
|
|
|
2296
2317
|
import { jsx as jsx19, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2297
2318
|
var cardStyles2 = {
|
|
2298
2319
|
base: [
|
|
2299
|
-
"group relative flex w-full items-start gap-base rounded-
|
|
2320
|
+
"group relative flex w-full items-start gap-base rounded-lg border border-solid p-lg text-left transition-colors",
|
|
2300
2321
|
"focus-visible:outline-none focus-visible:shadow-focus-ring",
|
|
2301
2322
|
"disabled:pointer-events-none disabled:opacity-60",
|
|
2302
2323
|
"cursor-pointer"
|
|
@@ -2424,7 +2445,7 @@ var sidebarItemVariants = cva10(
|
|
|
2424
2445
|
active: "bg-sidebar-item-active-bg"
|
|
2425
2446
|
},
|
|
2426
2447
|
type: {
|
|
2427
|
-
default: "px-
|
|
2448
|
+
default: "px-xl py-base",
|
|
2428
2449
|
collapsed: "p-base justify-center"
|
|
2429
2450
|
}
|
|
2430
2451
|
},
|
|
@@ -2538,7 +2559,7 @@ var selectVariants = cva11(
|
|
|
2538
2559
|
variants: {
|
|
2539
2560
|
size: {
|
|
2540
2561
|
sm: "px-base gap-base rounded-base min-w-[80px]",
|
|
2541
|
-
md: "px-
|
|
2562
|
+
md: "px-lg gap-base rounded-md"
|
|
2542
2563
|
}
|
|
2543
2564
|
},
|
|
2544
2565
|
defaultVariants: { size: "md" }
|
|
@@ -2685,7 +2706,7 @@ function SelectChips({ tags, onTagRemove, chipHeightPx }) {
|
|
|
2685
2706
|
{
|
|
2686
2707
|
sideOffset: 4,
|
|
2687
2708
|
className: cn(
|
|
2688
|
-
"z-50 px-base py-sm rounded-
|
|
2709
|
+
"z-50 px-base py-sm rounded-lg shadow-lg",
|
|
2689
2710
|
"bg-tooltip-default-bg text-tooltip-default-text",
|
|
2690
2711
|
"text-xs font-regular leading-xs",
|
|
2691
2712
|
"flex flex-col gap-xs",
|
|
@@ -2839,7 +2860,7 @@ var TabList = React23.forwardRef(({ className, hasOffset = false, ...props }, re
|
|
|
2839
2860
|
ref,
|
|
2840
2861
|
className: cn(
|
|
2841
2862
|
"flex items-center gap-base pt-base border-b border-tab-border",
|
|
2842
|
-
hasOffset && "px-
|
|
2863
|
+
hasOffset && "px-xl",
|
|
2843
2864
|
className
|
|
2844
2865
|
),
|
|
2845
2866
|
...props
|
|
@@ -2960,7 +2981,7 @@ var Tag = React24.forwardRef(
|
|
|
2960
2981
|
"inline-flex shrink-0 items-center justify-center",
|
|
2961
2982
|
"rounded-base cursor-pointer",
|
|
2962
2983
|
"p-xs",
|
|
2963
|
-
size === "md" && "p-sm rounded-
|
|
2984
|
+
size === "md" && "p-sm rounded-lg"
|
|
2964
2985
|
),
|
|
2965
2986
|
"aria-label": "Remove",
|
|
2966
2987
|
children: /* @__PURE__ */ jsx24(Icon17, { icon: faXmarkSolid5, size: iconSize })
|
|
@@ -3046,7 +3067,7 @@ var TextArea = React25.forwardRef(
|
|
|
3046
3067
|
"aria-describedby": errorId,
|
|
3047
3068
|
className: cn(
|
|
3048
3069
|
"w-full min-h-[120px] resize-vertical",
|
|
3049
|
-
"px-
|
|
3070
|
+
"px-lg py-base",
|
|
3050
3071
|
"rounded-md border overflow-clip outline-none",
|
|
3051
3072
|
"text-sm",
|
|
3052
3073
|
"font-regular",
|
|
@@ -3090,7 +3111,7 @@ var textInputVariants = cva13(
|
|
|
3090
3111
|
variants: {
|
|
3091
3112
|
size: {
|
|
3092
3113
|
sm: "px-base py-sm gap-base rounded-base",
|
|
3093
|
-
md: "px-
|
|
3114
|
+
md: "px-lg py-[10px] gap-base rounded-md"
|
|
3094
3115
|
}
|
|
3095
3116
|
},
|
|
3096
3117
|
defaultVariants: { size: "md" }
|
|
@@ -3241,7 +3262,7 @@ var TextInput = React26.forwardRef(
|
|
|
3241
3262
|
onClick: onButtonClick,
|
|
3242
3263
|
className: cn(
|
|
3243
3264
|
"shrink-0 flex items-center justify-center border",
|
|
3244
|
-
size === "sm" ? "px-base rounded-r-base" : "px-
|
|
3265
|
+
size === "sm" ? "px-base rounded-r-base" : "px-lg rounded-r-md",
|
|
3245
3266
|
attachedButtonStyles[disabled ? "disabled" : "enabled"]
|
|
3246
3267
|
),
|
|
3247
3268
|
children: /* @__PURE__ */ jsx26(Icon19, { icon: buttonIcon ?? faPlusSolid2, size: "sm", className: icColor })
|
|
@@ -3278,7 +3299,7 @@ var chipInputVariants = cva14(
|
|
|
3278
3299
|
variants: {
|
|
3279
3300
|
size: {
|
|
3280
3301
|
sm: "px-base py-sm rounded-base",
|
|
3281
|
-
md: "px-
|
|
3302
|
+
md: "px-lg py-[10px] rounded-md"
|
|
3282
3303
|
}
|
|
3283
3304
|
},
|
|
3284
3305
|
defaultVariants: { size: "md" }
|
|
@@ -3293,6 +3314,11 @@ var wrapperStates2 = {
|
|
|
3293
3314
|
"focus-within:border-text-input-border-hover",
|
|
3294
3315
|
"focus-within:shadow-focus-ring"
|
|
3295
3316
|
],
|
|
3317
|
+
success: [
|
|
3318
|
+
"bg-text-input-bg-default",
|
|
3319
|
+
"border-text-input-border-success",
|
|
3320
|
+
"text-text-input-text-default"
|
|
3321
|
+
],
|
|
3296
3322
|
error: [
|
|
3297
3323
|
"bg-text-input-bg-default",
|
|
3298
3324
|
"border-text-input-border-error",
|
|
@@ -3305,6 +3331,12 @@ var wrapperStates2 = {
|
|
|
3305
3331
|
"cursor-not-allowed"
|
|
3306
3332
|
]
|
|
3307
3333
|
};
|
|
3334
|
+
function resolveState3(error, success, disabled) {
|
|
3335
|
+
if (disabled) return "disabled";
|
|
3336
|
+
if (error) return "error";
|
|
3337
|
+
if (success) return "success";
|
|
3338
|
+
return "default";
|
|
3339
|
+
}
|
|
3308
3340
|
var chipStyle = [
|
|
3309
3341
|
"inline-flex items-center gap-xs shrink-0",
|
|
3310
3342
|
"h-6 px-sm rounded-base",
|
|
@@ -3327,6 +3359,7 @@ var ChipInput = React27.forwardRef(
|
|
|
3327
3359
|
labelType,
|
|
3328
3360
|
error,
|
|
3329
3361
|
errorMessage,
|
|
3362
|
+
success,
|
|
3330
3363
|
disabled,
|
|
3331
3364
|
iconLeft,
|
|
3332
3365
|
max = 0,
|
|
@@ -3337,7 +3370,7 @@ var ChipInput = React27.forwardRef(
|
|
|
3337
3370
|
const errorId = error && errorMessage ? `${inputId}-error` : void 0;
|
|
3338
3371
|
const inputRef = React27.useRef(null);
|
|
3339
3372
|
const [inputValue, setInputValue] = React27.useState("");
|
|
3340
|
-
const state =
|
|
3373
|
+
const state = resolveState3(error, success, disabled);
|
|
3341
3374
|
const addChip = (val) => {
|
|
3342
3375
|
const trimmed = val.trim();
|
|
3343
3376
|
if (!trimmed) return;
|
|
@@ -3489,7 +3522,7 @@ var inputVariants = cva15(
|
|
|
3489
3522
|
variants: {
|
|
3490
3523
|
size: {
|
|
3491
3524
|
sm: "px-base py-sm",
|
|
3492
|
-
md: "px-
|
|
3525
|
+
md: "px-lg py-[10px]"
|
|
3493
3526
|
}
|
|
3494
3527
|
},
|
|
3495
3528
|
defaultVariants: { size: "md" }
|
|
@@ -3738,7 +3771,7 @@ var UserMenu = React30.forwardRef(
|
|
|
3738
3771
|
"flex flex-col w-[260px] overflow-clip",
|
|
3739
3772
|
"bg-user-menu-bg",
|
|
3740
3773
|
"border border-user-menu-border",
|
|
3741
|
-
"rounded-
|
|
3774
|
+
"rounded-lg",
|
|
3742
3775
|
"shadow-lg",
|
|
3743
3776
|
"divide-y divide-user-menu-border",
|
|
3744
3777
|
className
|
|
@@ -3754,7 +3787,7 @@ var UserMenuInfoRow = React30.forwardRef(
|
|
|
3754
3787
|
"div",
|
|
3755
3788
|
{
|
|
3756
3789
|
ref,
|
|
3757
|
-
className: cn("flex items-center gap-base p-
|
|
3790
|
+
className: cn("flex items-center gap-base p-xl", className),
|
|
3758
3791
|
...props,
|
|
3759
3792
|
children: [
|
|
3760
3793
|
avatar,
|
|
@@ -3791,7 +3824,7 @@ var modalVariants = cva17(
|
|
|
3791
3824
|
[
|
|
3792
3825
|
"fixed top-[50%] left-[50%] -translate-x-1/2 -translate-y-1/2 z-50",
|
|
3793
3826
|
"flex flex-col",
|
|
3794
|
-
"bg-modal-bg border border-modal-border rounded-
|
|
3827
|
+
"bg-modal-bg border border-modal-border rounded-lg shadow-sm overflow-clip",
|
|
3795
3828
|
"outline-none",
|
|
3796
3829
|
"data-[state=open]:animate-modal-in data-[state=closed]:animate-modal-out"
|
|
3797
3830
|
],
|
|
@@ -3842,7 +3875,7 @@ var ModalHeader = React31.forwardRef(
|
|
|
3842
3875
|
{
|
|
3843
3876
|
ref,
|
|
3844
3877
|
className: cn(
|
|
3845
|
-
"flex items-start gap-
|
|
3878
|
+
"flex items-start gap-xl p-xl",
|
|
3846
3879
|
showBorder && "border-b border-modal-header-border",
|
|
3847
3880
|
className
|
|
3848
3881
|
),
|
|
@@ -3886,7 +3919,7 @@ var ModalBody = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
3886
3919
|
"div",
|
|
3887
3920
|
{
|
|
3888
3921
|
ref,
|
|
3889
|
-
className: cn("flex-1 overflow-y-auto p-
|
|
3922
|
+
className: cn("flex-1 overflow-y-auto p-xl", className),
|
|
3890
3923
|
...props
|
|
3891
3924
|
}
|
|
3892
3925
|
));
|
|
@@ -3897,7 +3930,7 @@ var ModalFooter = React31.forwardRef(
|
|
|
3897
3930
|
{
|
|
3898
3931
|
ref,
|
|
3899
3932
|
className: cn(
|
|
3900
|
-
"flex items-center justify-between gap-
|
|
3933
|
+
"flex items-center justify-between gap-lg p-xl",
|
|
3901
3934
|
showBorder && "border-t border-modal-footer-border",
|
|
3902
3935
|
className
|
|
3903
3936
|
),
|
|
@@ -3941,7 +3974,7 @@ var Dialog = React32.forwardRef(
|
|
|
3941
3974
|
] }),
|
|
3942
3975
|
/* @__PURE__ */ jsxs29(ModalFooter, { children: [
|
|
3943
3976
|
/* @__PURE__ */ jsx32(ModalClose, { asChild: true, children: /* @__PURE__ */ jsx32(Button, { appearance: "ghost", intent: "brand", size: "md", onClick: handleCancel, children: cancelLabel }) }),
|
|
3944
|
-
/* @__PURE__ */ jsxs29("div", { className: "flex items-center gap-
|
|
3977
|
+
/* @__PURE__ */ jsxs29("div", { className: "flex items-center gap-lg", children: [
|
|
3945
3978
|
secondaryLabel && /* @__PURE__ */ jsx32(Button, { appearance: "outlined", intent: "brand", size: "md", onClick: onSecondaryAction, children: secondaryLabel }),
|
|
3946
3979
|
/* @__PURE__ */ jsx32(
|
|
3947
3980
|
Button,
|
|
@@ -3971,8 +4004,8 @@ var emptyStateVariants = cva18(
|
|
|
3971
4004
|
{
|
|
3972
4005
|
variants: {
|
|
3973
4006
|
size: {
|
|
3974
|
-
md: "gap-
|
|
3975
|
-
sm: "gap-
|
|
4007
|
+
md: "gap-xl",
|
|
4008
|
+
sm: "gap-lg"
|
|
3976
4009
|
}
|
|
3977
4010
|
},
|
|
3978
4011
|
defaultVariants: {
|
|
@@ -4052,7 +4085,7 @@ var EmptyState = React33.forwardRef(
|
|
|
4052
4085
|
{
|
|
4053
4086
|
className: cn(
|
|
4054
4087
|
"flex items-center",
|
|
4055
|
-
isMd ? "gap-
|
|
4088
|
+
isMd ? "gap-xl" : "gap-base"
|
|
4056
4089
|
),
|
|
4057
4090
|
children: [
|
|
4058
4091
|
secondaryAction && /* @__PURE__ */ jsx33(
|
|
@@ -4096,7 +4129,7 @@ var AvatarCell = ({
|
|
|
4096
4129
|
subtitle,
|
|
4097
4130
|
src,
|
|
4098
4131
|
className
|
|
4099
|
-
}) => /* @__PURE__ */ jsxs31("div", { className: cn("flex items-center gap-
|
|
4132
|
+
}) => /* @__PURE__ */ jsxs31("div", { className: cn("flex items-center gap-lg", className), children: [
|
|
4100
4133
|
/* @__PURE__ */ jsx34(Avatar, { initials: getInitials(name), src, alt: name, size: "lg", shape: "rounded" }),
|
|
4101
4134
|
/* @__PURE__ */ jsxs31("div", { className: "flex flex-col", children: [
|
|
4102
4135
|
/* @__PURE__ */ jsx34("span", { className: "text-sm font-medium text-table-cell-text-primary leading-sm", children: name }),
|
|
@@ -4394,7 +4427,7 @@ var TableHead = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
4394
4427
|
{
|
|
4395
4428
|
ref,
|
|
4396
4429
|
className: cn(
|
|
4397
|
-
"group/head h-10 px-
|
|
4430
|
+
"group/head h-10 px-lg py-lg text-left align-middle text-xs font-medium leading-xs",
|
|
4398
4431
|
"text-table-head-text bg-table-head-bg-default",
|
|
4399
4432
|
"hover:bg-table-head-bg-hover",
|
|
4400
4433
|
"border-b border-r border-table-border last:border-r-0",
|
|
@@ -4410,7 +4443,7 @@ var TableCell = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
4410
4443
|
{
|
|
4411
4444
|
ref,
|
|
4412
4445
|
className: cn(
|
|
4413
|
-
"px-
|
|
4446
|
+
"px-lg py-lg align-middle text-sm font-medium max-h-[52px]",
|
|
4414
4447
|
"text-table-cell-text-primary",
|
|
4415
4448
|
"border-b border-r border-table-border last:border-r-0",
|
|
4416
4449
|
"[&:has([role=checkbox])]:pr-0",
|
|
@@ -4424,7 +4457,7 @@ var TableCaption = React35.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
4424
4457
|
"caption",
|
|
4425
4458
|
{
|
|
4426
4459
|
ref,
|
|
4427
|
-
className: cn("mt-
|
|
4460
|
+
className: cn("mt-lg text-sm text-table-cell-text-secondary", className),
|
|
4428
4461
|
...props
|
|
4429
4462
|
}
|
|
4430
4463
|
));
|
|
@@ -4502,7 +4535,7 @@ function DataTableSettingsModal({
|
|
|
4502
4535
|
};
|
|
4503
4536
|
return /* @__PURE__ */ jsx36(Modal, { open, onOpenChange, children: /* @__PURE__ */ jsxs32(ModalContent, { size: "sm", className, children: [
|
|
4504
4537
|
/* @__PURE__ */ jsx36(ModalHeader, { onClose: () => onOpenChange(false), children: /* @__PURE__ */ jsx36(ModalTitle, { children: title }) }),
|
|
4505
|
-
/* @__PURE__ */ jsx36(ModalBody, { children: /* @__PURE__ */ jsxs32("div", { className: "flex flex-col gap-
|
|
4538
|
+
/* @__PURE__ */ jsx36(ModalBody, { children: /* @__PURE__ */ jsxs32("div", { className: "flex flex-col gap-lg", children: [
|
|
4506
4539
|
/* @__PURE__ */ jsxs32("div", { className: "flex items-center justify-between gap-base", children: [
|
|
4507
4540
|
/* @__PURE__ */ jsxs32("span", { className: "text-sm font-medium text-table-cell-text-secondary", children: [
|
|
4508
4541
|
"Columns ",
|
|
@@ -4549,7 +4582,7 @@ function DataTableSettingsModal({
|
|
|
4549
4582
|
"flex flex-col max-h-[360px] overflow-auto rounded-base",
|
|
4550
4583
|
"border border-table-border"
|
|
4551
4584
|
),
|
|
4552
|
-
children: filtered.length === 0 ? /* @__PURE__ */ jsx36("div", { className: "py-
|
|
4585
|
+
children: filtered.length === 0 ? /* @__PURE__ */ jsx36("div", { className: "py-lg text-center text-sm text-table-cell-text-secondary", children: "No columns found" }) : filtered.map((c) => {
|
|
4553
4586
|
const key = getColKey(c);
|
|
4554
4587
|
const label = getColLabel(c);
|
|
4555
4588
|
const checked = draft[key] !== false;
|
|
@@ -4672,7 +4705,7 @@ function ColumnFilterPopover({
|
|
|
4672
4705
|
align: "start",
|
|
4673
4706
|
sideOffset: 4,
|
|
4674
4707
|
className: cn(
|
|
4675
|
-
"z-50 w-[240px] rounded-
|
|
4708
|
+
"z-50 w-[240px] rounded-lg border border-table-border bg-table-bg p-lg shadow-lg",
|
|
4676
4709
|
"animate-in fade-in-0 zoom-in-95"
|
|
4677
4710
|
),
|
|
4678
4711
|
onClick: (e) => e.stopPropagation(),
|
|
@@ -5264,7 +5297,7 @@ function DataTablePagination({
|
|
|
5264
5297
|
"div",
|
|
5265
5298
|
{
|
|
5266
5299
|
className: cn(
|
|
5267
|
-
"flex items-center justify-between px-
|
|
5300
|
+
"flex items-center justify-between px-xl py-lg",
|
|
5268
5301
|
className
|
|
5269
5302
|
),
|
|
5270
5303
|
children: [
|
|
@@ -5274,7 +5307,7 @@ function DataTablePagination({
|
|
|
5274
5307
|
totalCount,
|
|
5275
5308
|
" row(s) selected"
|
|
5276
5309
|
] }) }),
|
|
5277
|
-
/* @__PURE__ */ jsxs33("div", { className: "flex items-center gap-
|
|
5310
|
+
/* @__PURE__ */ jsxs33("div", { className: "flex items-center gap-xl", children: [
|
|
5278
5311
|
/* @__PURE__ */ jsxs33("div", { className: "flex items-center gap-sm", children: [
|
|
5279
5312
|
/* @__PURE__ */ jsx37("span", { className: "text-xs text-table-cell-text-secondary whitespace-nowrap", children: "Rows per page" }),
|
|
5280
5313
|
/* @__PURE__ */ jsx37(
|
|
@@ -5416,7 +5449,7 @@ function TruncatedLabel({
|
|
|
5416
5449
|
TooltipPrimitive3.Content,
|
|
5417
5450
|
{
|
|
5418
5451
|
sideOffset: 4,
|
|
5419
|
-
className: "z-50 px-base py-sm rounded-
|
|
5452
|
+
className: "z-50 px-base py-sm rounded-lg shadow-lg bg-tooltip-default-bg text-tooltip-default-text text-sm font-regular leading-sm max-w-[320px] data-[state=delayed-open]:animate-[tooltip-in_150ms_ease-out] data-[state=closed]:animate-[tooltip-out_100ms_ease-in]",
|
|
5420
5453
|
children: [
|
|
5421
5454
|
label,
|
|
5422
5455
|
/* @__PURE__ */ jsx39(TooltipPrimitive3.Arrow, { className: "fill-tooltip-default-bg" })
|
|
@@ -5906,7 +5939,7 @@ var SortButton = ({
|
|
|
5906
5939
|
"border border-btn-outlined-neutral-border-default rounded-md shadow-sm",
|
|
5907
5940
|
"cursor-pointer transition-colors",
|
|
5908
5941
|
"hover:from-btn-outlined-neutral-bg-hover hover:to-btn-outlined-neutral-bg-gradient-to-hover",
|
|
5909
|
-
iconOnly ? "size-8 justify-center p-0" : "px-
|
|
5942
|
+
iconOnly ? "size-8 justify-center p-0" : "px-lg py-sm min-w-[80px]",
|
|
5910
5943
|
className
|
|
5911
5944
|
),
|
|
5912
5945
|
children: [
|
|
@@ -5935,7 +5968,7 @@ var SortButton = ({
|
|
|
5935
5968
|
align: "start",
|
|
5936
5969
|
className: cn(
|
|
5937
5970
|
"z-50 flex flex-col gap-xs overflow-clip p-xs",
|
|
5938
|
-
"bg-dropdown-bg border border-dropdown-border rounded-
|
|
5971
|
+
"bg-dropdown-bg border border-dropdown-border rounded-lg shadow-lg",
|
|
5939
5972
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
5940
5973
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
5941
5974
|
"data-[side=bottom]:slide-in-from-top-2",
|
|
@@ -6136,7 +6169,7 @@ var SaveViewButton = React44.forwardRef(
|
|
|
6136
6169
|
),
|
|
6137
6170
|
children: [
|
|
6138
6171
|
/* @__PURE__ */ jsx44("span", { className: "text-sm font-medium leading-sm whitespace-nowrap text-btn-solid-brand-text-default", children: label }),
|
|
6139
|
-
/* @__PURE__ */ jsx44("span", { className: "absolute inset-0 rounded-l-[
|
|
6172
|
+
/* @__PURE__ */ jsx44("span", { className: "absolute inset-0 rounded-l-[9px] border border-btn-solid-brand-inner-border-default shadow-sm pointer-events-none" })
|
|
6140
6173
|
]
|
|
6141
6174
|
}
|
|
6142
6175
|
),
|
|
@@ -6159,7 +6192,7 @@ var SaveViewButton = React44.forwardRef(
|
|
|
6159
6192
|
className: "text-btn-solid-brand-text-default"
|
|
6160
6193
|
}
|
|
6161
6194
|
),
|
|
6162
|
-
/* @__PURE__ */ jsx44("span", { className: "absolute inset-0 rounded-r-[
|
|
6195
|
+
/* @__PURE__ */ jsx44("span", { className: "absolute inset-0 rounded-r-[9px] border border-btn-solid-brand-inner-border-default shadow-sm pointer-events-none" })
|
|
6163
6196
|
]
|
|
6164
6197
|
}
|
|
6165
6198
|
)
|
|
@@ -6191,7 +6224,7 @@ var OperatorSelector = ({
|
|
|
6191
6224
|
align: "start",
|
|
6192
6225
|
className: cn(
|
|
6193
6226
|
"z-50 flex flex-col p-xs overflow-clip",
|
|
6194
|
-
"bg-dropdown-bg border border-dropdown-border rounded-
|
|
6227
|
+
"bg-dropdown-bg border border-dropdown-border rounded-lg shadow-lg",
|
|
6195
6228
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
6196
6229
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
6197
6230
|
"data-[side=bottom]:slide-in-from-top-2",
|
|
@@ -6517,7 +6550,7 @@ var DatePicker = React45.forwardRef(
|
|
|
6517
6550
|
ref,
|
|
6518
6551
|
className: cn(
|
|
6519
6552
|
"flex flex-col overflow-clip",
|
|
6520
|
-
"bg-datepicker-bg border border-datepicker-border rounded-
|
|
6553
|
+
"bg-datepicker-bg border border-datepicker-border rounded-lg shadow-lg",
|
|
6521
6554
|
className
|
|
6522
6555
|
),
|
|
6523
6556
|
...props,
|
|
@@ -6542,7 +6575,7 @@ var DatePickerSelects = React45.forwardRef(({ className, formatDate = defaultFor
|
|
|
6542
6575
|
"div",
|
|
6543
6576
|
{
|
|
6544
6577
|
ref,
|
|
6545
|
-
className: cn("flex flex-col items-start pt-
|
|
6578
|
+
className: cn("flex flex-col items-start pt-xl px-xl", className),
|
|
6546
6579
|
...props,
|
|
6547
6580
|
children: /* @__PURE__ */ jsxs43("div", { className: "flex items-center gap-base w-full", children: [
|
|
6548
6581
|
/* @__PURE__ */ jsxs43("div", { className: "flex-1 flex items-center gap-base min-w-0 px-base py-sm bg-gradient-to-t from-[var(--color-select-bg-default)] to-[var(--color-select-bg-gradient-to)] border border-[var(--color-select-border-default)] rounded-base shadow-sm", children: [
|
|
@@ -6654,7 +6687,7 @@ var DatePickerCalendar = React45.forwardRef(({ className, header, ...props }, re
|
|
|
6654
6687
|
...props,
|
|
6655
6688
|
children: [
|
|
6656
6689
|
header,
|
|
6657
|
-
/* @__PURE__ */ jsxs43("div", { className: "flex flex-col gap-
|
|
6690
|
+
/* @__PURE__ */ jsxs43("div", { className: "flex flex-col gap-xl p-xl", children: [
|
|
6658
6691
|
/* @__PURE__ */ jsxs43("div", { className: "flex items-center justify-between", children: [
|
|
6659
6692
|
/* @__PURE__ */ jsxs43("span", { className: "text-base font-medium leading-base text-datepicker-header-text", children: [
|
|
6660
6693
|
MONTH_NAMES[month],
|
|
@@ -6743,7 +6776,7 @@ var DatePickerSuggestions = React45.forwardRef(
|
|
|
6743
6776
|
),
|
|
6744
6777
|
...props,
|
|
6745
6778
|
children: [
|
|
6746
|
-
/* @__PURE__ */ jsx48("div", { className: "pt-
|
|
6779
|
+
/* @__PURE__ */ jsx48("div", { className: "pt-xl px-base", children: /* @__PURE__ */ jsx48("div", { className: "flex items-center p-base rounded-base", children: /* @__PURE__ */ jsx48("span", { className: "flex-1 text-xs font-medium leading-xs text-datepicker-suggestion-heading uppercase truncate", children: "Suggestions" }) }) }),
|
|
6747
6780
|
/* @__PURE__ */ jsx48("div", { className: "flex flex-1 flex-col p-base min-w-[222px]", children: suggestions.map((suggestion, i) => /* @__PURE__ */ jsxs43(
|
|
6748
6781
|
"button",
|
|
6749
6782
|
{
|
|
@@ -6769,7 +6802,7 @@ var DatePickerFooter = React45.forwardRef(
|
|
|
6769
6802
|
{
|
|
6770
6803
|
ref,
|
|
6771
6804
|
className: cn(
|
|
6772
|
-
"flex items-center justify-between p-
|
|
6805
|
+
"flex items-center justify-between p-xl",
|
|
6773
6806
|
"border-t border-datepicker-footer-border",
|
|
6774
6807
|
"bg-datepicker-bg",
|
|
6775
6808
|
className
|
|
@@ -7387,7 +7420,7 @@ var PropertySelector = ({
|
|
|
7387
7420
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
7388
7421
|
className: cn(
|
|
7389
7422
|
"z-50 flex flex-col gap-xs overflow-hidden p-xs",
|
|
7390
|
-
"bg-dropdown-bg border border-dropdown-border rounded-
|
|
7423
|
+
"bg-dropdown-bg border border-dropdown-border rounded-lg shadow-lg",
|
|
7391
7424
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
7392
7425
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
7393
7426
|
"data-[side=bottom]:slide-in-from-top-2",
|
|
@@ -7397,7 +7430,7 @@ var PropertySelector = ({
|
|
|
7397
7430
|
activeGroup === null ? (
|
|
7398
7431
|
/* ── Level 1: Search + (pinned props) + Categories ──────── */
|
|
7399
7432
|
/* @__PURE__ */ jsxs47("div", { className: "flex flex-col gap-xs flex-1 min-h-0", children: [
|
|
7400
|
-
/* @__PURE__ */ jsxs47("div", { className: "shrink-0 flex items-center gap-base px-
|
|
7433
|
+
/* @__PURE__ */ jsxs47("div", { className: "shrink-0 flex items-center gap-base px-lg py-base border border-input rounded-md", children: [
|
|
7401
7434
|
/* @__PURE__ */ jsx53(
|
|
7402
7435
|
Icon31,
|
|
7403
7436
|
{
|
|
@@ -7531,7 +7564,7 @@ var PropertySelector = ({
|
|
|
7531
7564
|
]
|
|
7532
7565
|
}
|
|
7533
7566
|
),
|
|
7534
|
-
/* @__PURE__ */ jsxs47("div", { className: "shrink-0 flex items-center gap-base px-
|
|
7567
|
+
/* @__PURE__ */ jsxs47("div", { className: "shrink-0 flex items-center gap-base px-lg py-base border border-input rounded-md", children: [
|
|
7535
7568
|
/* @__PURE__ */ jsx53(
|
|
7536
7569
|
Icon31,
|
|
7537
7570
|
{
|
|
@@ -7614,7 +7647,7 @@ var KebabMenu = ({
|
|
|
7614
7647
|
align: "end",
|
|
7615
7648
|
className: cn(
|
|
7616
7649
|
"z-50 flex flex-col p-xs overflow-clip",
|
|
7617
|
-
"bg-dropdown-bg border border-dropdown-border rounded-
|
|
7650
|
+
"bg-dropdown-bg border border-dropdown-border rounded-lg shadow-lg",
|
|
7618
7651
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
7619
7652
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
7620
7653
|
"data-[side=bottom]:slide-in-from-top-2",
|
|
@@ -7730,7 +7763,7 @@ var FilterEditor = ({
|
|
|
7730
7763
|
align: "start",
|
|
7731
7764
|
className: cn(
|
|
7732
7765
|
"z-50 flex flex-col overflow-clip",
|
|
7733
|
-
"bg-dropdown-bg border border-dropdown-border rounded-
|
|
7766
|
+
"bg-dropdown-bg border border-dropdown-border rounded-lg shadow-lg",
|
|
7734
7767
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
7735
7768
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
7736
7769
|
"data-[side=bottom]:slide-in-from-top-2",
|
|
@@ -7807,7 +7840,7 @@ var SegmentPopover = ({
|
|
|
7807
7840
|
align,
|
|
7808
7841
|
className: cn(
|
|
7809
7842
|
"z-50 flex flex-col overflow-clip",
|
|
7810
|
-
"bg-dropdown-bg border border-dropdown-border rounded-
|
|
7843
|
+
"bg-dropdown-bg border border-dropdown-border rounded-lg shadow-lg",
|
|
7811
7844
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
7812
7845
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
7813
7846
|
"data-[side=bottom]:slide-in-from-top-2"
|
|
@@ -7898,7 +7931,7 @@ var InteractiveFilterChip = ({
|
|
|
7898
7931
|
{
|
|
7899
7932
|
className: cn(
|
|
7900
7933
|
"inline-flex items-center overflow-clip",
|
|
7901
|
-
"bg-filter-chip-bg border border-filter-chip-border rounded-
|
|
7934
|
+
"bg-filter-chip-bg border border-filter-chip-border rounded-lg shadow-sm",
|
|
7902
7935
|
className
|
|
7903
7936
|
),
|
|
7904
7937
|
children: [
|
|
@@ -8144,7 +8177,7 @@ var FilterNodeActions = ({
|
|
|
8144
8177
|
"button",
|
|
8145
8178
|
{
|
|
8146
8179
|
type: "button",
|
|
8147
|
-
className: "shrink-0 flex items-center justify-center p-sm rounded-
|
|
8180
|
+
className: "shrink-0 flex items-center justify-center p-sm rounded-lg cursor-pointer transition-colors hover:bg-accent",
|
|
8148
8181
|
"aria-label": "More actions",
|
|
8149
8182
|
children: /* @__PURE__ */ jsx58(
|
|
8150
8183
|
Icon36,
|
|
@@ -8163,7 +8196,7 @@ var FilterNodeActions = ({
|
|
|
8163
8196
|
align: "end",
|
|
8164
8197
|
className: cn(
|
|
8165
8198
|
"z-50 flex flex-col p-xs overflow-clip",
|
|
8166
|
-
"bg-dropdown-bg border border-dropdown-border rounded-
|
|
8199
|
+
"bg-dropdown-bg border border-dropdown-border rounded-lg shadow-lg",
|
|
8167
8200
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
8168
8201
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
8169
8202
|
"min-w-[180px]"
|
|
@@ -8219,7 +8252,7 @@ var selectBtnStyle = [
|
|
|
8219
8252
|
"flex items-center gap-base",
|
|
8220
8253
|
"px-base py-sm",
|
|
8221
8254
|
"bg-gradient-to-t from-btn-outlined-neutral-bg-default to-btn-outlined-neutral-bg-gradient-to-default",
|
|
8222
|
-
"border border-btn-outlined-neutral-border-default rounded-
|
|
8255
|
+
"border border-btn-outlined-neutral-border-default rounded-lg shadow-sm",
|
|
8223
8256
|
"cursor-pointer transition-colors",
|
|
8224
8257
|
"hover:from-btn-outlined-neutral-bg-hover hover:to-btn-outlined-neutral-bg-gradient-to-hover"
|
|
8225
8258
|
];
|
|
@@ -8284,7 +8317,7 @@ var AdvancedRow = ({
|
|
|
8284
8317
|
TooltipPrimitive4.Content,
|
|
8285
8318
|
{
|
|
8286
8319
|
sideOffset: 4,
|
|
8287
|
-
className: "z-50 px-base py-sm rounded-
|
|
8320
|
+
className: "z-50 px-base py-sm rounded-lg shadow-lg bg-tooltip-default-bg text-tooltip-default-text text-sm font-regular leading-sm data-[state=delayed-open]:animate-[tooltip-in_150ms_ease-out] data-[state=closed]:animate-[tooltip-out_100ms_ease-in]",
|
|
8288
8321
|
children: [
|
|
8289
8322
|
'"Or" operator coming soon',
|
|
8290
8323
|
/* @__PURE__ */ jsx59(TooltipPrimitive4.Arrow, { className: "fill-tooltip-default-bg" })
|
|
@@ -8305,7 +8338,7 @@ var AdvancedRow = ({
|
|
|
8305
8338
|
align: "start",
|
|
8306
8339
|
className: cn(
|
|
8307
8340
|
"z-50 flex flex-col p-xs overflow-clip max-h-[300px] overflow-y-auto",
|
|
8308
|
-
"bg-dropdown-bg border border-dropdown-border rounded-
|
|
8341
|
+
"bg-dropdown-bg border border-dropdown-border rounded-lg shadow-lg",
|
|
8309
8342
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
8310
8343
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0",
|
|
8311
8344
|
"min-w-[200px]"
|
|
@@ -8368,7 +8401,7 @@ var AdvancedRow = ({
|
|
|
8368
8401
|
align: "start",
|
|
8369
8402
|
className: cn(
|
|
8370
8403
|
"z-50 flex flex-col p-xs overflow-clip",
|
|
8371
|
-
"bg-dropdown-bg border border-dropdown-border rounded-
|
|
8404
|
+
"bg-dropdown-bg border border-dropdown-border rounded-lg shadow-lg",
|
|
8372
8405
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
8373
8406
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0",
|
|
8374
8407
|
"min-w-[160px]"
|
|
@@ -8459,7 +8492,7 @@ var AdvancedRow = ({
|
|
|
8459
8492
|
align: "start",
|
|
8460
8493
|
className: cn(
|
|
8461
8494
|
"z-50 flex flex-col overflow-clip",
|
|
8462
|
-
"bg-dropdown-bg border border-dropdown-border rounded-
|
|
8495
|
+
"bg-dropdown-bg border border-dropdown-border rounded-lg shadow-lg",
|
|
8463
8496
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
8464
8497
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0"
|
|
8465
8498
|
),
|
|
@@ -8558,7 +8591,7 @@ function ValueTagRow({ tags }) {
|
|
|
8558
8591
|
TooltipPrimitive4.Content,
|
|
8559
8592
|
{
|
|
8560
8593
|
sideOffset: 4,
|
|
8561
|
-
className: "z-50 px-base py-sm rounded-
|
|
8594
|
+
className: "z-50 px-base py-sm rounded-lg shadow-lg bg-tooltip-default-bg text-tooltip-default-text text-xs font-regular leading-xs flex flex-col gap-xs data-[state=delayed-open]:animate-[tooltip-in_150ms_ease-out] data-[state=closed]:animate-[tooltip-out_100ms_ease-in]",
|
|
8562
8595
|
children: [
|
|
8563
8596
|
overflowTags.map((t) => /* @__PURE__ */ jsx59("span", { children: t }, t)),
|
|
8564
8597
|
/* @__PURE__ */ jsx59(TooltipPrimitive4.Arrow, { className: "fill-tooltip-default-bg" })
|
|
@@ -8593,7 +8626,7 @@ var AdvancedGroup = ({
|
|
|
8593
8626
|
TooltipPrimitive5.Content,
|
|
8594
8627
|
{
|
|
8595
8628
|
sideOffset: 4,
|
|
8596
|
-
className: "z-50 px-base py-sm rounded-
|
|
8629
|
+
className: "z-50 px-base py-sm rounded-lg shadow-lg bg-tooltip-default-bg text-tooltip-default-text text-sm font-regular leading-sm data-[state=delayed-open]:animate-[tooltip-in_150ms_ease-out] data-[state=closed]:animate-[tooltip-out_100ms_ease-in]",
|
|
8597
8630
|
children: [
|
|
8598
8631
|
'"Or" operator coming soon',
|
|
8599
8632
|
/* @__PURE__ */ jsx60(TooltipPrimitive5.Arrow, { className: "fill-tooltip-default-bg" })
|
|
@@ -8601,7 +8634,7 @@ var AdvancedGroup = ({
|
|
|
8601
8634
|
}
|
|
8602
8635
|
) })
|
|
8603
8636
|
] }) }) }),
|
|
8604
|
-
/* @__PURE__ */ jsxs54("div", { className: "flex-1 min-w-0 flex flex-col gap-base p-base border border-border rounded-
|
|
8637
|
+
/* @__PURE__ */ jsxs54("div", { className: "flex-1 min-w-0 flex flex-col gap-base p-base border border-border rounded-lg bg-secondary", children: [
|
|
8605
8638
|
children,
|
|
8606
8639
|
onAddFilter && properties && /* @__PURE__ */ jsx60(
|
|
8607
8640
|
PropertySelector,
|
|
@@ -8617,7 +8650,7 @@ var AdvancedGroup = ({
|
|
|
8617
8650
|
"button",
|
|
8618
8651
|
{
|
|
8619
8652
|
type: "button",
|
|
8620
|
-
className: "flex items-center gap-sm px-base py-sm text-sm font-medium leading-sm text-muted-foreground cursor-pointer transition-colors rounded-
|
|
8653
|
+
className: "flex items-center gap-sm px-base py-sm text-sm font-medium leading-sm text-muted-foreground cursor-pointer transition-colors rounded-lg hover:bg-accent hover:text-foreground w-fit",
|
|
8621
8654
|
children: [
|
|
8622
8655
|
/* @__PURE__ */ jsx60(Icon38, { icon: faPlusOutline2, size: "sm" }),
|
|
8623
8656
|
"Add filter"
|
|
@@ -8810,7 +8843,7 @@ var AdvancedPopover = ({
|
|
|
8810
8843
|
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
8811
8844
|
className: cn(
|
|
8812
8845
|
"z-50 flex flex-col",
|
|
8813
|
-
"bg-background rounded-
|
|
8846
|
+
"bg-background rounded-lg shadow-lg",
|
|
8814
8847
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
8815
8848
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
8816
8849
|
"data-[side=bottom]:slide-in-from-top-2",
|
|
@@ -9118,7 +9151,7 @@ var SummaryChip = ({
|
|
|
9118
9151
|
TooltipPrimitive6.Content,
|
|
9119
9152
|
{
|
|
9120
9153
|
sideOffset: 4,
|
|
9121
|
-
className: "z-50 px-base py-sm rounded-
|
|
9154
|
+
className: "z-50 px-base py-sm rounded-lg shadow-lg bg-tooltip-default-bg text-tooltip-default-text text-sm font-regular leading-sm max-w-[320px] data-[state=delayed-open]:animate-[tooltip-in_150ms_ease-out] data-[state=closed]:animate-[tooltip-out_100ms_ease-in]",
|
|
9122
9155
|
children: [
|
|
9123
9156
|
tooltipContent,
|
|
9124
9157
|
/* @__PURE__ */ jsx62(TooltipPrimitive6.Arrow, { className: "fill-tooltip-default-bg" })
|
|
@@ -9135,7 +9168,7 @@ var SummaryChip = ({
|
|
|
9135
9168
|
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
9136
9169
|
className: cn(
|
|
9137
9170
|
"z-50 flex flex-col overflow-clip",
|
|
9138
|
-
"bg-dropdown-bg border border-dropdown-border rounded-
|
|
9171
|
+
"bg-dropdown-bg border border-dropdown-border rounded-lg shadow-lg",
|
|
9139
9172
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
9140
9173
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
9141
9174
|
"data-[side=bottom]:slide-in-from-top-2",
|