@l3mpire/ui 2.20.0 → 2.21.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 +2 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +313 -272
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +313 -272
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
- package/src/styles/globals.css +1 -0
package/dist/index.js
CHANGED
|
@@ -207,7 +207,7 @@ var import_jsx_runtime = require("react/jsx-runtime");
|
|
|
207
207
|
var badgeVariants = (0, import_class_variance_authority.cva)(
|
|
208
208
|
[
|
|
209
209
|
"inline-flex items-center justify-center whitespace-nowrap",
|
|
210
|
-
"font-
|
|
210
|
+
"font-medium",
|
|
211
211
|
"border border-transparent"
|
|
212
212
|
],
|
|
213
213
|
{
|
|
@@ -296,7 +296,7 @@ var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
|
296
296
|
var buttonVariants = (0, import_class_variance_authority2.cva)(
|
|
297
297
|
[
|
|
298
298
|
"inline-flex items-center justify-center whitespace-nowrap",
|
|
299
|
-
"font-
|
|
299
|
+
"font-medium transition-colors",
|
|
300
300
|
"focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring",
|
|
301
301
|
"disabled:pointer-events-none",
|
|
302
302
|
"border",
|
|
@@ -600,7 +600,7 @@ var BrowserTabItem = React3.forwardRef(
|
|
|
600
600
|
},
|
|
601
601
|
onClick: (e) => e.stopPropagation(),
|
|
602
602
|
className: cn(
|
|
603
|
-
"text-sm font-
|
|
603
|
+
"text-sm font-medium leading-sm bg-transparent outline-none p-0 m-0",
|
|
604
604
|
"border-b border-browser-tab-item-border border-dashed border-t-0 border-l-0 border-r-0",
|
|
605
605
|
isActive ? "text-browser-tab-item-active-text" : "text-browser-tab-item-inactive-text"
|
|
606
606
|
),
|
|
@@ -610,7 +610,7 @@ var BrowserTabItem = React3.forwardRef(
|
|
|
610
610
|
"span",
|
|
611
611
|
{
|
|
612
612
|
className: cn(
|
|
613
|
-
"text-sm font-
|
|
613
|
+
"text-sm font-medium leading-sm whitespace-nowrap",
|
|
614
614
|
isActive ? "text-browser-tab-item-active-text" : "text-browser-tab-item-inactive-text"
|
|
615
615
|
),
|
|
616
616
|
onDoubleClick: (e) => {
|
|
@@ -799,7 +799,7 @@ var BrowserTab = React3.forwardRef(
|
|
|
799
799
|
"span",
|
|
800
800
|
{
|
|
801
801
|
className: cn(
|
|
802
|
-
"text-sm font-
|
|
802
|
+
"text-sm font-medium leading-sm whitespace-nowrap",
|
|
803
803
|
item.isActive ? "text-browser-tab-item-active-text" : "text-browser-tab-item-inactive-text"
|
|
804
804
|
),
|
|
805
805
|
children: item.label
|
|
@@ -843,14 +843,14 @@ var import_icons4 = require("@l3mpire/icons");
|
|
|
843
843
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
844
844
|
var textSm = "text-sm font-regular leading-sm";
|
|
845
845
|
var textXs = "text-xs font-regular leading-xs";
|
|
846
|
-
var textXsMedium = "text-xs font-
|
|
847
|
-
var textSmMedium = "text-sm font-
|
|
846
|
+
var textXsMedium = "text-xs font-medium leading-xs";
|
|
847
|
+
var textSmMedium = "text-sm font-medium leading-sm";
|
|
848
848
|
var containerStyle = [
|
|
849
849
|
"flex flex-col gap-base overflow-clip",
|
|
850
850
|
"bg-dropdown-bg",
|
|
851
851
|
"border border-dropdown-border",
|
|
852
852
|
"rounded-md",
|
|
853
|
-
"p-
|
|
853
|
+
"p-xs",
|
|
854
854
|
"shadow-lg"
|
|
855
855
|
];
|
|
856
856
|
var DropdownMenu = React4.forwardRef(
|
|
@@ -1268,7 +1268,7 @@ var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
|
1268
1268
|
var linkVariants = (0, import_class_variance_authority4.cva)(
|
|
1269
1269
|
[
|
|
1270
1270
|
"inline-flex items-center",
|
|
1271
|
-
"font-
|
|
1271
|
+
"font-medium",
|
|
1272
1272
|
"transition-colors cursor-pointer",
|
|
1273
1273
|
"disabled:pointer-events-none",
|
|
1274
1274
|
"[&_svg]:pointer-events-none [&_svg]:shrink-0"
|
|
@@ -1400,7 +1400,7 @@ var InputLabel = React8.forwardRef(({ className, type = "default", disabled, inf
|
|
|
1400
1400
|
className: cn(
|
|
1401
1401
|
"inline-flex items-center gap-xs",
|
|
1402
1402
|
"text-xs",
|
|
1403
|
-
"font-
|
|
1403
|
+
"font-medium",
|
|
1404
1404
|
"leading-xs",
|
|
1405
1405
|
textColor2,
|
|
1406
1406
|
className
|
|
@@ -1472,7 +1472,7 @@ var typeIconMap = {
|
|
|
1472
1472
|
warning: { icon: import_icons8.faTriangleExclamationSolid, color: "text-info-message-warning-icon" },
|
|
1473
1473
|
empty: { icon: import_icons8.faCircleInfoSolid, color: "text-info-message-empty-icon" }
|
|
1474
1474
|
};
|
|
1475
|
-
var titleStyle = "text-sm font-
|
|
1475
|
+
var titleStyle = "text-sm font-medium leading-sm text-info-message-title";
|
|
1476
1476
|
var descriptionStyle = "text-xs font-regular leading-xs text-info-message-description";
|
|
1477
1477
|
var closeButtonStyle = "inline-flex shrink-0 items-center justify-center p-xs rounded-base text-info-message-close hover:bg-black/5 transition-colors";
|
|
1478
1478
|
var typeLinkIntentMap = {
|
|
@@ -1570,7 +1570,7 @@ var typeIconMap2 = {
|
|
|
1570
1570
|
alert: { icon: import_icons9.faCircleExclamationSolid, color: "text-toast-alert-icon" },
|
|
1571
1571
|
warning: { icon: import_icons9.faTriangleExclamationSolid, color: "text-toast-warning-icon" }
|
|
1572
1572
|
};
|
|
1573
|
-
var titleStyle2 = "text-sm font-
|
|
1573
|
+
var titleStyle2 = "text-sm font-medium leading-sm text-toast-title";
|
|
1574
1574
|
var subtitleStyle = "text-sm font-regular leading-sm text-toast-subtitle";
|
|
1575
1575
|
var closeButtonStyle2 = "inline-flex shrink-0 items-center justify-center self-start p-sm rounded-md text-toast-close hover:bg-black/5 transition-colors";
|
|
1576
1576
|
var ToastProvider = ToastPrimitive.Provider;
|
|
@@ -1645,7 +1645,7 @@ var trackStyles = {
|
|
|
1645
1645
|
]
|
|
1646
1646
|
};
|
|
1647
1647
|
var thumbStyle = "pointer-events-none block rounded-full size-3 translate-x-0.5 bg-switch-thumb-bg shadow-md transition-transform data-[state=checked]:translate-x-[13px]";
|
|
1648
|
-
var labelBase = "cursor-pointer select-none text-sm font-
|
|
1648
|
+
var labelBase = "cursor-pointer select-none text-sm font-medium leading-sm";
|
|
1649
1649
|
var labelColor = {
|
|
1650
1650
|
default: "text-switch-label-text",
|
|
1651
1651
|
disabled: "pointer-events-none text-switch-label-disabled"
|
|
@@ -2190,7 +2190,7 @@ var Avatar = React15.forwardRef(({ className, size = "xl", shape = "rounded", sr
|
|
|
2190
2190
|
{
|
|
2191
2191
|
delayMs: 0,
|
|
2192
2192
|
className: cn(
|
|
2193
|
-
"font-
|
|
2193
|
+
"font-medium",
|
|
2194
2194
|
"text-avatar-fallback-text",
|
|
2195
2195
|
"select-none text-center",
|
|
2196
2196
|
initialsFontSize[size ?? "xl"]
|
|
@@ -2239,7 +2239,7 @@ var iconStyle = {
|
|
|
2239
2239
|
default: "text-checkbox-checked-icon",
|
|
2240
2240
|
disabled: "text-checkbox-disabled-icon"
|
|
2241
2241
|
};
|
|
2242
|
-
var labelBase2 = "cursor-pointer select-none overflow-hidden text-ellipsis whitespace-nowrap text-sm font-
|
|
2242
|
+
var labelBase2 = "cursor-pointer select-none overflow-hidden text-ellipsis whitespace-nowrap text-sm font-medium leading-sm";
|
|
2243
2243
|
var labelColor2 = {
|
|
2244
2244
|
default: "text-checkbox-label-default",
|
|
2245
2245
|
disabled: "pointer-events-none text-checkbox-label-disabled"
|
|
@@ -2327,7 +2327,7 @@ var dotStyle = {
|
|
|
2327
2327
|
default: "bg-radio-selected-dot",
|
|
2328
2328
|
disabled: "bg-radio-disabled-dot"
|
|
2329
2329
|
};
|
|
2330
|
-
var labelBase3 = "cursor-pointer select-none overflow-hidden text-ellipsis whitespace-nowrap text-sm font-
|
|
2330
|
+
var labelBase3 = "cursor-pointer select-none overflow-hidden text-ellipsis whitespace-nowrap text-sm font-medium leading-sm";
|
|
2331
2331
|
var labelColor3 = {
|
|
2332
2332
|
default: "text-radio-label-default",
|
|
2333
2333
|
disabled: "pointer-events-none text-radio-label-disabled"
|
|
@@ -2396,7 +2396,7 @@ var SidebarHeadingItem = React18.forwardRef(
|
|
|
2396
2396
|
ref,
|
|
2397
2397
|
className: cn(
|
|
2398
2398
|
"flex items-center w-full",
|
|
2399
|
-
"text-xs leading-xs font-
|
|
2399
|
+
"text-xs leading-xs font-medium text-sidebar-heading-text mb-base",
|
|
2400
2400
|
className
|
|
2401
2401
|
),
|
|
2402
2402
|
...props,
|
|
@@ -2486,7 +2486,7 @@ var SidebarItem = React19.forwardRef(
|
|
|
2486
2486
|
"span",
|
|
2487
2487
|
{
|
|
2488
2488
|
className: cn(
|
|
2489
|
-
"flex-1 min-w-0 truncate text-sm leading-sm font-
|
|
2489
|
+
"flex-1 min-w-0 truncate text-sm leading-sm font-medium",
|
|
2490
2490
|
textColorClass
|
|
2491
2491
|
),
|
|
2492
2492
|
children: label
|
|
@@ -2574,7 +2574,7 @@ var iconColor = {
|
|
|
2574
2574
|
};
|
|
2575
2575
|
var errorGuidance = {
|
|
2576
2576
|
icon: "shrink-0 text-select-error-icon",
|
|
2577
|
-
text: "text-xs font-
|
|
2577
|
+
text: "text-xs font-medium leading-xs text-select-error-text"
|
|
2578
2578
|
};
|
|
2579
2579
|
function SelectChips({ tags, onTagRemove, chipHeightPx }) {
|
|
2580
2580
|
const containerRef = React20.useRef(null);
|
|
@@ -2619,7 +2619,7 @@ function SelectChips({ tags, onTagRemove, chipHeightPx }) {
|
|
|
2619
2619
|
"inline-flex items-center gap-xs shrink-0",
|
|
2620
2620
|
"px-sm rounded-base",
|
|
2621
2621
|
"bg-tag-neutral-bg text-tag-neutral-text",
|
|
2622
|
-
"text-xs font-
|
|
2622
|
+
"text-xs font-medium leading-xs",
|
|
2623
2623
|
"whitespace-nowrap"
|
|
2624
2624
|
);
|
|
2625
2625
|
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex flex-1 items-center gap-xs min-w-0 overflow-hidden relative", children: [
|
|
@@ -2864,7 +2864,7 @@ var TabTrigger = React21.forwardRef(({ className, badge, children, ...props }, r
|
|
|
2864
2864
|
"span",
|
|
2865
2865
|
{
|
|
2866
2866
|
className: cn(
|
|
2867
|
-
"text-sm font-
|
|
2867
|
+
"text-sm font-medium leading-sm whitespace-nowrap",
|
|
2868
2868
|
"text-tab-item-default-text",
|
|
2869
2869
|
"group-data-[state=active]:text-tab-item-active-text"
|
|
2870
2870
|
),
|
|
@@ -2898,7 +2898,7 @@ var tagVariants = (0, import_class_variance_authority12.cva)(
|
|
|
2898
2898
|
"inline-flex items-center",
|
|
2899
2899
|
"gap-xs",
|
|
2900
2900
|
"rounded-base",
|
|
2901
|
-
"font-
|
|
2901
|
+
"font-medium",
|
|
2902
2902
|
"whitespace-nowrap"
|
|
2903
2903
|
],
|
|
2904
2904
|
{
|
|
@@ -3003,7 +3003,7 @@ var fieldStates = {
|
|
|
3003
3003
|
};
|
|
3004
3004
|
var errorGuidance2 = {
|
|
3005
3005
|
icon: "shrink-0 text-textarea-error-icon",
|
|
3006
|
-
text: "text-xs font-
|
|
3006
|
+
text: "text-xs font-medium leading-xs text-textarea-error-text"
|
|
3007
3007
|
};
|
|
3008
3008
|
var charLimitStyle = "shrink-0 text-right text-xs font-regular leading-xs text-textarea-char-limit";
|
|
3009
3009
|
function resolveState(error, success, disabled) {
|
|
@@ -3130,7 +3130,7 @@ var attachedButtonStyles = {
|
|
|
3130
3130
|
};
|
|
3131
3131
|
var errorGuidance3 = {
|
|
3132
3132
|
icon: "shrink-0 text-text-input-error-icon",
|
|
3133
|
-
text: "text-xs font-
|
|
3133
|
+
text: "text-xs font-medium leading-xs text-text-input-error-text"
|
|
3134
3134
|
};
|
|
3135
3135
|
function resolveState2(error, success, disabled) {
|
|
3136
3136
|
if (disabled) return "disabled";
|
|
@@ -3294,12 +3294,12 @@ var chipStyle = [
|
|
|
3294
3294
|
"inline-flex items-center gap-xs shrink-0",
|
|
3295
3295
|
"h-6 px-sm rounded-base",
|
|
3296
3296
|
"bg-tag-neutral-bg text-tag-neutral-text",
|
|
3297
|
-
"text-xs font-
|
|
3297
|
+
"text-xs font-medium leading-xs",
|
|
3298
3298
|
"whitespace-nowrap"
|
|
3299
3299
|
];
|
|
3300
3300
|
var errorGuidance4 = {
|
|
3301
3301
|
icon: "shrink-0 text-text-input-error-icon",
|
|
3302
|
-
text: "text-xs font-
|
|
3302
|
+
text: "text-xs font-medium leading-xs text-text-input-error-text"
|
|
3303
3303
|
};
|
|
3304
3304
|
var ChipInput = React25.forwardRef(
|
|
3305
3305
|
({
|
|
@@ -3489,7 +3489,7 @@ var wrapperStates3 = {
|
|
|
3489
3489
|
};
|
|
3490
3490
|
var errorGuidance5 = {
|
|
3491
3491
|
icon: "shrink-0 text-text-input-error-icon",
|
|
3492
|
-
text: "text-xs font-
|
|
3492
|
+
text: "text-xs font-medium leading-xs text-text-input-error-text"
|
|
3493
3493
|
};
|
|
3494
3494
|
var NumberInput = React26.forwardRef(
|
|
3495
3495
|
({
|
|
@@ -3670,6 +3670,7 @@ var typographyVariants = (0, import_class_variance_authority16.cva)("", {
|
|
|
3670
3670
|
},
|
|
3671
3671
|
weight: {
|
|
3672
3672
|
regular: "font-regular",
|
|
3673
|
+
medium: "font-medium",
|
|
3673
3674
|
semibold: "font-semibold",
|
|
3674
3675
|
bold: "font-bold"
|
|
3675
3676
|
}
|
|
@@ -3690,12 +3691,14 @@ var defaultElementMap = {
|
|
|
3690
3691
|
};
|
|
3691
3692
|
var Typography = React27.forwardRef(
|
|
3692
3693
|
({ className, variant = "md", weight, as, asChild = false, ...props }, ref) => {
|
|
3694
|
+
const isHeading = variant === "h1" || variant === "h2" || variant === "h3";
|
|
3695
|
+
const resolvedWeight = weight ?? (isHeading ? "semibold" : "regular");
|
|
3693
3696
|
const Comp = asChild ? import_react_slot3.Slot : as ?? defaultElementMap[variant ?? "md"] ?? "p";
|
|
3694
3697
|
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
3695
3698
|
Comp,
|
|
3696
3699
|
{
|
|
3697
3700
|
ref,
|
|
3698
|
-
className: cn(typographyVariants({ variant, weight }), className),
|
|
3701
|
+
className: cn(typographyVariants({ variant, weight: resolvedWeight }), className),
|
|
3699
3702
|
...props
|
|
3700
3703
|
}
|
|
3701
3704
|
);
|
|
@@ -3736,7 +3739,7 @@ var UserMenuInfoRow = React28.forwardRef(
|
|
|
3736
3739
|
children: [
|
|
3737
3740
|
avatar,
|
|
3738
3741
|
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex flex-1 flex-col min-w-0", children: [
|
|
3739
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "text-sm font-
|
|
3742
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "text-sm font-medium leading-sm text-user-menu-name truncate", children: name }),
|
|
3740
3743
|
subtitle && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "text-xs font-regular leading-xs text-user-menu-subtitle truncate", children: subtitle })
|
|
3741
3744
|
] }),
|
|
3742
3745
|
action
|
|
@@ -3845,7 +3848,7 @@ var ModalTitle = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
3845
3848
|
DialogPrimitive.Title,
|
|
3846
3849
|
{
|
|
3847
3850
|
ref,
|
|
3848
|
-
className: cn("text-base font-
|
|
3851
|
+
className: cn("text-base font-medium leading-base text-modal-header-title", className),
|
|
3849
3852
|
...props
|
|
3850
3853
|
}
|
|
3851
3854
|
));
|
|
@@ -4007,7 +4010,7 @@ var EmptyState = React31.forwardRef(
|
|
|
4007
4010
|
"p",
|
|
4008
4011
|
{
|
|
4009
4012
|
className: cn(
|
|
4010
|
-
"font-
|
|
4013
|
+
"font-medium text-table-cell-text-primary",
|
|
4011
4014
|
isMd ? "text-base leading-base" : "text-sm leading-sm"
|
|
4012
4015
|
),
|
|
4013
4016
|
children: title
|
|
@@ -4076,7 +4079,7 @@ var AvatarCell = ({
|
|
|
4076
4079
|
}) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: cn("flex items-center gap-md", className), children: [
|
|
4077
4080
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Avatar, { initials: getInitials(name), src, alt: name, size: "lg", shape: "rounded" }),
|
|
4078
4081
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex flex-col", children: [
|
|
4079
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "text-sm font-
|
|
4082
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "text-sm font-medium text-table-cell-text-primary leading-sm", children: name }),
|
|
4080
4083
|
subtitle && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "text-xs font-regular text-table-cell-text-secondary leading-xs", children: subtitle })
|
|
4081
4084
|
] })
|
|
4082
4085
|
] });
|
|
@@ -4085,7 +4088,7 @@ var StatusCell = ({
|
|
|
4085
4088
|
label,
|
|
4086
4089
|
variant = "light",
|
|
4087
4090
|
type = "primary",
|
|
4088
|
-
size = "
|
|
4091
|
+
size = "md",
|
|
4089
4092
|
className
|
|
4090
4093
|
}) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: cn("flex items-center", className), children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Badge, { variant, type, size, children: label }) });
|
|
4091
4094
|
StatusCell.displayName = "StatusCell";
|
|
@@ -4114,7 +4117,7 @@ var NumberCell = ({
|
|
|
4114
4117
|
className
|
|
4115
4118
|
),
|
|
4116
4119
|
children: [
|
|
4117
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "text-sm font-
|
|
4120
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "text-sm font-medium text-table-cell-text-primary", children: formatted }),
|
|
4118
4121
|
secondaryStat && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
4119
4122
|
"span",
|
|
4120
4123
|
{
|
|
@@ -4182,7 +4185,7 @@ var TextCell = ({
|
|
|
4182
4185
|
{
|
|
4183
4186
|
className: cn(
|
|
4184
4187
|
"text-sm",
|
|
4185
|
-
secondary ? "font-regular text-table-cell-text-secondary" : "font-
|
|
4188
|
+
secondary ? "font-regular text-table-cell-text-secondary" : "font-medium text-table-cell-text-primary",
|
|
4186
4189
|
className
|
|
4187
4190
|
),
|
|
4188
4191
|
children: value
|
|
@@ -4231,7 +4234,7 @@ var EditableCell = ({
|
|
|
4231
4234
|
{
|
|
4232
4235
|
ref: inputRef,
|
|
4233
4236
|
className: cn(
|
|
4234
|
-
"w-full bg-transparent text-sm font-
|
|
4237
|
+
"w-full bg-transparent text-sm font-medium text-table-cell-text-primary",
|
|
4235
4238
|
"outline-none border-b border-table-border py-0 h-[20px]",
|
|
4236
4239
|
className
|
|
4237
4240
|
),
|
|
@@ -4248,7 +4251,7 @@ var EditableCell = ({
|
|
|
4248
4251
|
role: "button",
|
|
4249
4252
|
tabIndex: 0,
|
|
4250
4253
|
className: cn(
|
|
4251
|
-
"text-sm font-
|
|
4254
|
+
"text-sm font-medium text-table-cell-text-primary cursor-text leading-sm h-[20px] inline-block",
|
|
4252
4255
|
className
|
|
4253
4256
|
),
|
|
4254
4257
|
onDoubleClick: () => setIsEditing(true),
|
|
@@ -4314,7 +4317,7 @@ var TableFooter = React33.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
4314
4317
|
{
|
|
4315
4318
|
ref,
|
|
4316
4319
|
className: cn(
|
|
4317
|
-
"border-t border-table-border bg-table-bg font-
|
|
4320
|
+
"border-t border-table-border bg-table-bg font-medium",
|
|
4318
4321
|
className
|
|
4319
4322
|
),
|
|
4320
4323
|
...props
|
|
@@ -4340,7 +4343,7 @@ var TableHead = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
4340
4343
|
{
|
|
4341
4344
|
ref,
|
|
4342
4345
|
className: cn(
|
|
4343
|
-
"group/head h-10 px-md py-md text-left align-middle text-xs font-
|
|
4346
|
+
"group/head h-10 px-md py-md text-left align-middle text-xs font-medium leading-xs",
|
|
4344
4347
|
"text-table-head-text bg-table-head-bg-default",
|
|
4345
4348
|
"hover:bg-table-head-bg-hover",
|
|
4346
4349
|
"border-b border-r border-table-border last:border-r-0",
|
|
@@ -4356,7 +4359,7 @@ var TableCell = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
4356
4359
|
{
|
|
4357
4360
|
ref,
|
|
4358
4361
|
className: cn(
|
|
4359
|
-
"px-md py-md align-middle text-sm font-
|
|
4362
|
+
"px-md py-md align-middle text-sm font-medium max-h-[52px]",
|
|
4360
4363
|
"text-table-cell-text-primary",
|
|
4361
4364
|
"border-b border-r border-table-border last:border-r-0",
|
|
4362
4365
|
"[&:has([role=checkbox])]:pr-0",
|
|
@@ -4455,7 +4458,7 @@ function ColumnFilterPopover({
|
|
|
4455
4458
|
),
|
|
4456
4459
|
onClick: (e) => e.stopPropagation(),
|
|
4457
4460
|
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex flex-col gap-sm", children: [
|
|
4458
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "text-xs font-
|
|
4461
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "text-xs font-medium text-table-head-text", children: "Filter" }),
|
|
4459
4462
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
4460
4463
|
"select",
|
|
4461
4464
|
{
|
|
@@ -5100,6 +5103,7 @@ SidePanelContent.displayName = "SidePanelContent";
|
|
|
5100
5103
|
|
|
5101
5104
|
// src/components/ui/filter/filter-chip-segment.tsx
|
|
5102
5105
|
var React36 = __toESM(require("react"));
|
|
5106
|
+
var TooltipPrimitive3 = __toESM(require("@radix-ui/react-tooltip"));
|
|
5103
5107
|
var import_class_variance_authority19 = require("class-variance-authority");
|
|
5104
5108
|
var import_icons23 = require("@l3mpire/icons");
|
|
5105
5109
|
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
@@ -5125,6 +5129,43 @@ var filterChipSegmentVariants = (0, import_class_variance_authority19.cva)(
|
|
|
5125
5129
|
}
|
|
5126
5130
|
}
|
|
5127
5131
|
);
|
|
5132
|
+
function TruncatedLabel({
|
|
5133
|
+
label,
|
|
5134
|
+
truncate,
|
|
5135
|
+
className
|
|
5136
|
+
}) {
|
|
5137
|
+
const textRef = React36.useRef(null);
|
|
5138
|
+
const [isTruncated, setIsTruncated] = React36.useState(false);
|
|
5139
|
+
React36.useEffect(() => {
|
|
5140
|
+
const el = textRef.current;
|
|
5141
|
+
if (el && truncate) {
|
|
5142
|
+
setIsTruncated(el.scrollWidth > el.clientWidth);
|
|
5143
|
+
}
|
|
5144
|
+
}, [label, truncate]);
|
|
5145
|
+
const span = /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
5146
|
+
"span",
|
|
5147
|
+
{
|
|
5148
|
+
ref: textRef,
|
|
5149
|
+
className: cn(className, truncate && "max-w-[160px] truncate"),
|
|
5150
|
+
children: label
|
|
5151
|
+
}
|
|
5152
|
+
);
|
|
5153
|
+
if (!isTruncated) return span;
|
|
5154
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(TooltipPrimitive3.Provider, { delayDuration: 300, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(TooltipPrimitive3.Root, { children: [
|
|
5155
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(TooltipPrimitive3.Trigger, { asChild: true, children: span }),
|
|
5156
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(TooltipPrimitive3.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
5157
|
+
TooltipPrimitive3.Content,
|
|
5158
|
+
{
|
|
5159
|
+
sideOffset: 4,
|
|
5160
|
+
className: "z-50 px-base py-sm rounded-md 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]",
|
|
5161
|
+
children: [
|
|
5162
|
+
label,
|
|
5163
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(TooltipPrimitive3.Arrow, { className: "fill-tooltip-default-bg" })
|
|
5164
|
+
]
|
|
5165
|
+
}
|
|
5166
|
+
) })
|
|
5167
|
+
] }) });
|
|
5168
|
+
}
|
|
5128
5169
|
var FilterChipSegment = React36.forwardRef(
|
|
5129
5170
|
({
|
|
5130
5171
|
className,
|
|
@@ -5186,16 +5227,17 @@ var FilterChipSegment = React36.forwardRef(
|
|
|
5186
5227
|
}
|
|
5187
5228
|
),
|
|
5188
5229
|
label && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
5189
|
-
|
|
5230
|
+
TruncatedLabel,
|
|
5190
5231
|
{
|
|
5232
|
+
label,
|
|
5233
|
+
truncate: segmentType === "value",
|
|
5191
5234
|
className: cn(
|
|
5192
|
-
"text-sm font-
|
|
5235
|
+
"text-sm font-medium leading-sm whitespace-nowrap",
|
|
5193
5236
|
segmentType === "placeholder" ? "text-filter-chip-segment-placeholder" : "text-filter-chip-segment-text"
|
|
5194
|
-
)
|
|
5195
|
-
children: label
|
|
5237
|
+
)
|
|
5196
5238
|
}
|
|
5197
5239
|
),
|
|
5198
|
-
badgeCount != null && badgeCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "flex items-center gap-2xs p-2xs rounded-xs bg-filter-chip-badge-bg", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "text-[10px] font-
|
|
5240
|
+
badgeCount != null && badgeCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "flex items-center gap-2xs p-2xs rounded-xs bg-filter-chip-badge-bg", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "text-[10px] font-medium leading-2xs text-filter-chip-badge-text", children: badgeCount }) }),
|
|
5199
5241
|
children
|
|
5200
5242
|
]
|
|
5201
5243
|
}
|
|
@@ -5580,10 +5622,10 @@ var SortButton = ({
|
|
|
5580
5622
|
className: cn(
|
|
5581
5623
|
"flex items-center gap-xs",
|
|
5582
5624
|
"min-h-[32px] max-h-[32px]",
|
|
5583
|
-
"bg-gradient-to-t from-
|
|
5584
|
-
"border border-
|
|
5625
|
+
"bg-gradient-to-t from-btn-outlined-neutral-bg-default to-btn-outlined-neutral-bg-gradient-to-default",
|
|
5626
|
+
"border border-btn-outlined-neutral-border-default rounded-md shadow-sm",
|
|
5585
5627
|
"cursor-pointer transition-colors",
|
|
5586
|
-
"hover:from-
|
|
5628
|
+
"hover:from-btn-outlined-neutral-bg-hover hover:to-btn-outlined-neutral-bg-gradient-to-hover",
|
|
5587
5629
|
iconOnly ? "size-8 justify-center p-0" : "px-md py-sm min-w-[80px]",
|
|
5588
5630
|
className
|
|
5589
5631
|
),
|
|
@@ -5593,15 +5635,15 @@ var SortButton = ({
|
|
|
5593
5635
|
{
|
|
5594
5636
|
icon: direction === "asc" ? import_icons25.faArrowUpSmallBigOutline : import_icons25.faArrowDownBigSmallOutline,
|
|
5595
5637
|
size: "sm",
|
|
5596
|
-
className: "shrink-0 text-
|
|
5638
|
+
className: "shrink-0 text-foreground"
|
|
5597
5639
|
}
|
|
5598
5640
|
),
|
|
5599
|
-
!iconOnly && /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("span", { className: "text-sm font-
|
|
5600
|
-
/* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("span", { className: "text-
|
|
5641
|
+
!iconOnly && /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("span", { className: "text-sm font-medium leading-sm whitespace-nowrap", children: [
|
|
5642
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("span", { className: "text-muted-foreground", children: [
|
|
5601
5643
|
"Sort by",
|
|
5602
5644
|
" "
|
|
5603
5645
|
] }),
|
|
5604
|
-
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "text-
|
|
5646
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "text-foreground", children: activeLabel })
|
|
5605
5647
|
] })
|
|
5606
5648
|
]
|
|
5607
5649
|
}
|
|
@@ -5613,7 +5655,7 @@ var SortButton = ({
|
|
|
5613
5655
|
align: "start",
|
|
5614
5656
|
className: cn(
|
|
5615
5657
|
"z-50 flex flex-col gap-xs overflow-clip p-xs",
|
|
5616
|
-
"bg-
|
|
5658
|
+
"bg-dropdown-bg border border-dropdown-border rounded-md shadow-lg",
|
|
5617
5659
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
5618
5660
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
5619
5661
|
"data-[side=bottom]:slide-in-from-top-2",
|
|
@@ -5630,8 +5672,8 @@ var SortButton = ({
|
|
|
5630
5672
|
},
|
|
5631
5673
|
className: cn(
|
|
5632
5674
|
"flex items-center gap-base p-base rounded-base cursor-pointer transition-colors",
|
|
5633
|
-
"hover:bg-
|
|
5634
|
-
field.id === activeField ? "bg-
|
|
5675
|
+
"hover:bg-dropdown-item-hover",
|
|
5676
|
+
field.id === activeField ? "bg-dropdown-item-hover" : ""
|
|
5635
5677
|
),
|
|
5636
5678
|
children: [
|
|
5637
5679
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
@@ -5641,7 +5683,7 @@ var SortButton = ({
|
|
|
5641
5683
|
size: "sm",
|
|
5642
5684
|
className: cn(
|
|
5643
5685
|
"shrink-0",
|
|
5644
|
-
field.id === activeField ? "text-
|
|
5686
|
+
field.id === activeField ? "text-foreground" : "text-dropdown-item-icon"
|
|
5645
5687
|
)
|
|
5646
5688
|
}
|
|
5647
5689
|
),
|
|
@@ -5650,7 +5692,7 @@ var SortButton = ({
|
|
|
5650
5692
|
{
|
|
5651
5693
|
className: cn(
|
|
5652
5694
|
"flex-1 text-sm font-regular leading-sm text-left truncate",
|
|
5653
|
-
field.id === activeField ? "text-
|
|
5695
|
+
field.id === activeField ? "text-foreground" : "text-dropdown-item-icon"
|
|
5654
5696
|
),
|
|
5655
5697
|
children: field.label
|
|
5656
5698
|
}
|
|
@@ -5659,7 +5701,7 @@ var SortButton = ({
|
|
|
5659
5701
|
},
|
|
5660
5702
|
field.id
|
|
5661
5703
|
)) }),
|
|
5662
|
-
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "h-px bg-
|
|
5704
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "h-px bg-border" }),
|
|
5663
5705
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "flex flex-col", children: [
|
|
5664
5706
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
5665
5707
|
"button",
|
|
@@ -5671,8 +5713,8 @@ var SortButton = ({
|
|
|
5671
5713
|
},
|
|
5672
5714
|
className: cn(
|
|
5673
5715
|
"flex items-center gap-base p-base rounded-base cursor-pointer transition-colors",
|
|
5674
|
-
"hover:bg-
|
|
5675
|
-
direction === "asc" ? "bg-
|
|
5716
|
+
"hover:bg-dropdown-item-hover",
|
|
5717
|
+
direction === "asc" ? "bg-dropdown-item-hover" : ""
|
|
5676
5718
|
),
|
|
5677
5719
|
children: [
|
|
5678
5720
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
@@ -5682,7 +5724,7 @@ var SortButton = ({
|
|
|
5682
5724
|
size: "sm",
|
|
5683
5725
|
className: cn(
|
|
5684
5726
|
"shrink-0",
|
|
5685
|
-
direction === "asc" ? "text-
|
|
5727
|
+
direction === "asc" ? "text-foreground" : "text-dropdown-item-icon"
|
|
5686
5728
|
)
|
|
5687
5729
|
}
|
|
5688
5730
|
),
|
|
@@ -5691,7 +5733,7 @@ var SortButton = ({
|
|
|
5691
5733
|
{
|
|
5692
5734
|
className: cn(
|
|
5693
5735
|
"flex-1 text-sm font-regular leading-sm text-left",
|
|
5694
|
-
direction === "asc" ? "text-
|
|
5736
|
+
direction === "asc" ? "text-foreground" : "text-dropdown-item-icon"
|
|
5695
5737
|
),
|
|
5696
5738
|
children: "Ascending"
|
|
5697
5739
|
}
|
|
@@ -5709,8 +5751,8 @@ var SortButton = ({
|
|
|
5709
5751
|
},
|
|
5710
5752
|
className: cn(
|
|
5711
5753
|
"flex items-center gap-base p-base rounded-base cursor-pointer transition-colors",
|
|
5712
|
-
"hover:bg-
|
|
5713
|
-
direction === "desc" ? "bg-
|
|
5754
|
+
"hover:bg-dropdown-item-hover",
|
|
5755
|
+
direction === "desc" ? "bg-dropdown-item-hover" : ""
|
|
5714
5756
|
),
|
|
5715
5757
|
children: [
|
|
5716
5758
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
@@ -5720,7 +5762,7 @@ var SortButton = ({
|
|
|
5720
5762
|
size: "sm",
|
|
5721
5763
|
className: cn(
|
|
5722
5764
|
"shrink-0",
|
|
5723
|
-
direction === "desc" ? "text-
|
|
5765
|
+
direction === "desc" ? "text-foreground" : "text-dropdown-item-icon"
|
|
5724
5766
|
)
|
|
5725
5767
|
}
|
|
5726
5768
|
),
|
|
@@ -5729,7 +5771,7 @@ var SortButton = ({
|
|
|
5729
5771
|
{
|
|
5730
5772
|
className: cn(
|
|
5731
5773
|
"flex-1 text-sm font-regular leading-sm text-left",
|
|
5732
|
-
direction === "desc" ? "text-
|
|
5774
|
+
direction === "desc" ? "text-foreground" : "text-dropdown-item-icon"
|
|
5733
5775
|
),
|
|
5734
5776
|
children: "Descending"
|
|
5735
5777
|
}
|
|
@@ -5757,10 +5799,10 @@ var FilterBarButton = React40.forwardRef(({ className, count, iconOnly = false,
|
|
|
5757
5799
|
className: cn(
|
|
5758
5800
|
"shrink-0 flex items-center gap-sm overflow-hidden",
|
|
5759
5801
|
"min-h-[32px] max-h-[32px]",
|
|
5760
|
-
"bg-gradient-to-t from-
|
|
5761
|
-
"border border-
|
|
5802
|
+
"bg-gradient-to-t from-btn-outlined-neutral-bg-default to-btn-outlined-neutral-bg-gradient-to-default",
|
|
5803
|
+
"border border-btn-outlined-neutral-border-default rounded-md shadow-sm",
|
|
5762
5804
|
"cursor-pointer transition-colors",
|
|
5763
|
-
"hover:from-
|
|
5805
|
+
"hover:from-btn-outlined-neutral-bg-hover hover:to-btn-outlined-neutral-bg-gradient-to-hover",
|
|
5764
5806
|
iconOnly ? count ? "px-sm justify-center" : "size-8 justify-center p-0" : "px-base py-sm min-w-[80px]",
|
|
5765
5807
|
className
|
|
5766
5808
|
),
|
|
@@ -5771,11 +5813,11 @@ var FilterBarButton = React40.forwardRef(({ className, count, iconOnly = false,
|
|
|
5771
5813
|
{
|
|
5772
5814
|
icon: import_icons26.faFilterOutline,
|
|
5773
5815
|
size: "sm",
|
|
5774
|
-
className: "shrink-0 text-
|
|
5816
|
+
className: "shrink-0 text-foreground"
|
|
5775
5817
|
}
|
|
5776
5818
|
),
|
|
5777
|
-
!iconOnly && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "text-sm font-
|
|
5778
|
-
count != null && count > 0 && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "flex items-center p-2xs rounded-xs bg-filter-chip-badge-bg", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "text-[10px] font-
|
|
5819
|
+
!iconOnly && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "text-sm font-medium leading-sm whitespace-nowrap text-foreground", children: children ?? "Filters" }),
|
|
5820
|
+
count != null && count > 0 && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "flex items-center p-2xs rounded-xs bg-filter-chip-badge-bg", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "text-[10px] font-medium leading-2xs text-filter-chip-badge-text", children: count }) })
|
|
5779
5821
|
]
|
|
5780
5822
|
}
|
|
5781
5823
|
));
|
|
@@ -5790,10 +5832,10 @@ var SaveViewButton = React41.forwardRef(
|
|
|
5790
5832
|
const sharedStyle = [
|
|
5791
5833
|
"relative flex items-center justify-center",
|
|
5792
5834
|
"min-h-[32px] max-h-[32px]",
|
|
5793
|
-
"bg-gradient-to-t from-
|
|
5794
|
-
"border border-
|
|
5835
|
+
"bg-gradient-to-t from-btn-solid-brand-bg-default from-[10%] to-btn-solid-brand-bg-gradient-to-default",
|
|
5836
|
+
"border border-btn-solid-brand-border-default",
|
|
5795
5837
|
"shadow-sm cursor-pointer transition-colors",
|
|
5796
|
-
"hover:from-
|
|
5838
|
+
"hover:from-btn-solid-brand-bg-hover hover:to-btn-solid-brand-bg-gradient-to-hover"
|
|
5797
5839
|
];
|
|
5798
5840
|
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
5799
5841
|
"div",
|
|
@@ -5813,8 +5855,8 @@ var SaveViewButton = React41.forwardRef(
|
|
|
5813
5855
|
"rounded-l-md -mr-px"
|
|
5814
5856
|
),
|
|
5815
5857
|
children: [
|
|
5816
|
-
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "text-sm font-
|
|
5817
|
-
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "absolute inset-0 rounded-l-[11px] border border-
|
|
5858
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "text-sm font-medium leading-sm whitespace-nowrap text-btn-solid-brand-text-default", children: label }),
|
|
5859
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "absolute inset-0 rounded-l-[11px] border border-btn-solid-brand-inner-border-default shadow-sm pointer-events-none" })
|
|
5818
5860
|
]
|
|
5819
5861
|
}
|
|
5820
5862
|
),
|
|
@@ -5834,10 +5876,10 @@ var SaveViewButton = React41.forwardRef(
|
|
|
5834
5876
|
{
|
|
5835
5877
|
icon: import_icons27.faChevronDownOutline,
|
|
5836
5878
|
size: "sm",
|
|
5837
|
-
className: "text-
|
|
5879
|
+
className: "text-btn-solid-brand-text-default"
|
|
5838
5880
|
}
|
|
5839
5881
|
),
|
|
5840
|
-
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "absolute inset-0 rounded-r-[11px] border border-
|
|
5882
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "absolute inset-0 rounded-r-[11px] border border-btn-solid-brand-inner-border-default shadow-sm pointer-events-none" })
|
|
5841
5883
|
]
|
|
5842
5884
|
}
|
|
5843
5885
|
)
|
|
@@ -5869,7 +5911,7 @@ var OperatorSelector = ({
|
|
|
5869
5911
|
align: "start",
|
|
5870
5912
|
className: cn(
|
|
5871
5913
|
"z-50 flex flex-col p-xs overflow-clip",
|
|
5872
|
-
"bg-
|
|
5914
|
+
"bg-dropdown-bg border border-dropdown-border rounded-md shadow-lg",
|
|
5873
5915
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
5874
5916
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
5875
5917
|
"data-[side=bottom]:slide-in-from-top-2",
|
|
@@ -5882,8 +5924,8 @@ var OperatorSelector = ({
|
|
|
5882
5924
|
onClick: () => onSelect(op),
|
|
5883
5925
|
className: cn(
|
|
5884
5926
|
"flex items-center gap-base p-base rounded-base cursor-pointer transition-colors text-left",
|
|
5885
|
-
"hover:bg-
|
|
5886
|
-
op === activeOperator && "bg-
|
|
5927
|
+
"hover:bg-dropdown-item-hover",
|
|
5928
|
+
op === activeOperator && "bg-dropdown-item-hover"
|
|
5887
5929
|
),
|
|
5888
5930
|
children: [
|
|
5889
5931
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
@@ -5891,12 +5933,12 @@ var OperatorSelector = ({
|
|
|
5891
5933
|
{
|
|
5892
5934
|
className: cn(
|
|
5893
5935
|
"text-sm font-regular leading-sm",
|
|
5894
|
-
op === activeOperator ? "text-
|
|
5936
|
+
op === activeOperator ? "text-foreground font-medium" : "text-dropdown-item-text"
|
|
5895
5937
|
),
|
|
5896
5938
|
children: op
|
|
5897
5939
|
}
|
|
5898
5940
|
),
|
|
5899
|
-
isNoValueOperator(op) && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "ml-auto text-xs text-
|
|
5941
|
+
isNoValueOperator(op) && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "ml-auto text-xs text-muted-foreground", children: "instant" })
|
|
5900
5942
|
]
|
|
5901
5943
|
},
|
|
5902
5944
|
op
|
|
@@ -5919,15 +5961,15 @@ var OperatorList = ({
|
|
|
5919
5961
|
onClick: () => onSelect(op),
|
|
5920
5962
|
className: cn(
|
|
5921
5963
|
"flex items-center gap-base p-base rounded-base cursor-pointer transition-colors text-left",
|
|
5922
|
-
"hover:bg-
|
|
5923
|
-
op === activeOperator && "bg-
|
|
5964
|
+
"hover:bg-dropdown-item-hover",
|
|
5965
|
+
op === activeOperator && "bg-dropdown-item-hover"
|
|
5924
5966
|
),
|
|
5925
5967
|
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
5926
5968
|
"span",
|
|
5927
5969
|
{
|
|
5928
5970
|
className: cn(
|
|
5929
5971
|
"text-sm font-regular leading-sm",
|
|
5930
|
-
op === activeOperator ? "text-
|
|
5972
|
+
op === activeOperator ? "text-foreground font-medium" : "text-dropdown-item-text"
|
|
5931
5973
|
),
|
|
5932
5974
|
children: op
|
|
5933
5975
|
}
|
|
@@ -5940,17 +5982,16 @@ OperatorList.displayName = "OperatorList";
|
|
|
5940
5982
|
|
|
5941
5983
|
// src/components/ui/filter/value-inputs/shared.ts
|
|
5942
5984
|
var inputClasses = [
|
|
5943
|
-
"w-full px-base py-sm rounded-base border border-
|
|
5944
|
-
"bg-
|
|
5945
|
-
"placeholder:text-
|
|
5946
|
-
"focus:outline-none focus:ring-2 focus:ring-
|
|
5985
|
+
"w-full px-base py-sm rounded-base border border-input",
|
|
5986
|
+
"bg-background text-sm font-regular leading-sm text-foreground",
|
|
5987
|
+
"placeholder:text-muted-foreground",
|
|
5988
|
+
"focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-0"
|
|
5947
5989
|
].join(" ");
|
|
5948
5990
|
var halfInputClasses = [
|
|
5949
|
-
"flex-1 px-base py-sm rounded-base border border-
|
|
5950
|
-
"bg-
|
|
5951
|
-
"focus:outline-none focus:ring-2 focus:ring-
|
|
5991
|
+
"flex-1 px-base py-sm rounded-base border border-input",
|
|
5992
|
+
"bg-background text-sm font-regular leading-sm text-foreground",
|
|
5993
|
+
"focus:outline-none focus:ring-2 focus:ring-ring"
|
|
5952
5994
|
].join(" ");
|
|
5953
|
-
var applyBtnClasses = "self-end px-md py-sm text-sm font-semibold leading-sm text-[var(--color-primary-foreground)] bg-[var(--color-primary)] rounded-base cursor-pointer hover:opacity-90 transition-opacity";
|
|
5954
5995
|
|
|
5955
5996
|
// src/components/ui/filter/value-inputs/text-value-input.tsx
|
|
5956
5997
|
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
@@ -5963,7 +6004,7 @@ var TextValueInput = ({
|
|
|
5963
6004
|
const handleKeyDown = (e) => {
|
|
5964
6005
|
if (e.key === "Enter") onSubmit?.();
|
|
5965
6006
|
};
|
|
5966
|
-
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: cn("flex flex-col gap-base p-
|
|
6007
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: cn("flex flex-col gap-base p-xs", className), children: [
|
|
5967
6008
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
5968
6009
|
"input",
|
|
5969
6010
|
{
|
|
@@ -5976,7 +6017,7 @@ var TextValueInput = ({
|
|
|
5976
6017
|
className: inputClasses
|
|
5977
6018
|
}
|
|
5978
6019
|
),
|
|
5979
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
6020
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Button, { appearance: "solid", intent: "brand", size: "sm", className: "self-end", onClick: onSubmit, children: "Apply" })
|
|
5980
6021
|
] });
|
|
5981
6022
|
};
|
|
5982
6023
|
TextValueInput.displayName = "TextValueInput";
|
|
@@ -5992,7 +6033,7 @@ var NumberValueInput = ({
|
|
|
5992
6033
|
const handleKeyDown = (e) => {
|
|
5993
6034
|
if (e.key === "Enter") onSubmit?.();
|
|
5994
6035
|
};
|
|
5995
|
-
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: cn("flex flex-col gap-base p-
|
|
6036
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: cn("flex flex-col gap-base p-xs", className), children: [
|
|
5996
6037
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
5997
6038
|
"input",
|
|
5998
6039
|
{
|
|
@@ -6005,7 +6046,7 @@ var NumberValueInput = ({
|
|
|
6005
6046
|
className: inputClasses
|
|
6006
6047
|
}
|
|
6007
6048
|
),
|
|
6008
|
-
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
6049
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Button, { appearance: "solid", intent: "brand", size: "sm", className: "self-end", onClick: onSubmit, children: "Apply" })
|
|
6009
6050
|
] });
|
|
6010
6051
|
};
|
|
6011
6052
|
NumberValueInput.displayName = "NumberValueInput";
|
|
@@ -6016,7 +6057,7 @@ var NumberRangeValueInput = ({
|
|
|
6016
6057
|
className
|
|
6017
6058
|
}) => {
|
|
6018
6059
|
const rangeVal = value ?? [0, 0];
|
|
6019
|
-
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: cn("flex flex-col gap-base p-
|
|
6060
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: cn("flex flex-col gap-base p-xs", className), children: [
|
|
6020
6061
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex items-center gap-base", children: [
|
|
6021
6062
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
6022
6063
|
"input",
|
|
@@ -6029,7 +6070,7 @@ var NumberRangeValueInput = ({
|
|
|
6029
6070
|
className: halfInputClasses
|
|
6030
6071
|
}
|
|
6031
6072
|
),
|
|
6032
|
-
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "text-sm text-
|
|
6073
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "text-sm text-muted-foreground", children: "and" }),
|
|
6033
6074
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
6034
6075
|
"input",
|
|
6035
6076
|
{
|
|
@@ -6041,7 +6082,7 @@ var NumberRangeValueInput = ({
|
|
|
6041
6082
|
}
|
|
6042
6083
|
)
|
|
6043
6084
|
] }),
|
|
6044
|
-
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
6085
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Button, { appearance: "solid", intent: "brand", size: "sm", className: "self-end", onClick: onSubmit, children: "Apply" })
|
|
6045
6086
|
] });
|
|
6046
6087
|
};
|
|
6047
6088
|
NumberRangeValueInput.displayName = "NumberRangeValueInput";
|
|
@@ -6258,7 +6299,7 @@ var DatePickerDay = ({ date, isOutside }) => {
|
|
|
6258
6299
|
disabled: isOutside,
|
|
6259
6300
|
className: cn(
|
|
6260
6301
|
"relative flex flex-col items-center justify-center w-9 rounded-full p-2 cursor-pointer transition-colors",
|
|
6261
|
-
"text-sm font-
|
|
6302
|
+
"text-sm font-medium leading-sm text-center",
|
|
6262
6303
|
// Default
|
|
6263
6304
|
!isOutside && !isSelected && !isInRangeOrPreview && "text-datepicker-day-text-default hover:bg-datepicker-day-bg-hover",
|
|
6264
6305
|
// Outside month (disabled)
|
|
@@ -6329,7 +6370,7 @@ var DatePickerCalendar = React42.forwardRef(({ className, header, ...props }, re
|
|
|
6329
6370
|
header,
|
|
6330
6371
|
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex flex-col gap-lg p-lg", children: [
|
|
6331
6372
|
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex items-center justify-between", children: [
|
|
6332
|
-
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("span", { className: "text-base font-
|
|
6373
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("span", { className: "text-base font-medium leading-base text-datepicker-header-text", children: [
|
|
6333
6374
|
MONTH_NAMES[month],
|
|
6334
6375
|
" ",
|
|
6335
6376
|
year
|
|
@@ -6416,7 +6457,7 @@ var DatePickerSuggestions = React42.forwardRef(
|
|
|
6416
6457
|
),
|
|
6417
6458
|
...props,
|
|
6418
6459
|
children: [
|
|
6419
|
-
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "pt-lg px-base", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "flex items-center p-base rounded-base", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "flex-1 text-xs font-
|
|
6460
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "pt-lg px-base", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "flex items-center p-base rounded-base", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "flex-1 text-xs font-medium leading-xs text-datepicker-suggestion-heading uppercase truncate", children: "Suggestions" }) }) }),
|
|
6420
6461
|
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "flex flex-1 flex-col p-base min-w-[222px]", children: suggestions.map((suggestion, i) => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
6421
6462
|
"button",
|
|
6422
6463
|
{
|
|
@@ -6597,7 +6638,7 @@ var DateCalendarValueInput = ({
|
|
|
6597
6638
|
] }) : /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(DatePickerCalendar, {}),
|
|
6598
6639
|
isRange && /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(DatePickerFooter, { children: [
|
|
6599
6640
|
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", {}),
|
|
6600
|
-
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
6641
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Button, { appearance: "solid", intent: "brand", size: "sm", onClick: onSubmit, children: "Apply" })
|
|
6601
6642
|
] })
|
|
6602
6643
|
]
|
|
6603
6644
|
}
|
|
@@ -6609,8 +6650,8 @@ var PresetTagsValueInput = ({
|
|
|
6609
6650
|
onChange,
|
|
6610
6651
|
onSubmit,
|
|
6611
6652
|
className
|
|
6612
|
-
}) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: cn("flex flex-col gap-base p-
|
|
6613
|
-
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "text-xs font-
|
|
6653
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: cn("flex flex-col gap-base p-xs max-w-[280px]", className), children: RELATIVE_DATE_PRESETS.map((group) => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex flex-col gap-xs", children: [
|
|
6654
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "text-xs font-medium leading-xs text-muted-foreground uppercase px-xs", children: group.group }),
|
|
6614
6655
|
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "flex flex-wrap gap-xs", children: group.options.map((preset) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
6615
6656
|
"button",
|
|
6616
6657
|
{
|
|
@@ -6621,7 +6662,7 @@ var PresetTagsValueInput = ({
|
|
|
6621
6662
|
},
|
|
6622
6663
|
className: cn(
|
|
6623
6664
|
"px-base py-2xs rounded-base border cursor-pointer transition-colors text-sm font-regular leading-sm",
|
|
6624
|
-
value === preset ? "border-
|
|
6665
|
+
value === preset ? "border-ring bg-primary text-primary-foreground" : "border-input bg-background text-foreground hover:bg-accent"
|
|
6625
6666
|
),
|
|
6626
6667
|
children: preset
|
|
6627
6668
|
},
|
|
@@ -6644,8 +6685,8 @@ var DynamicOptionRow = ({
|
|
|
6644
6685
|
onClick,
|
|
6645
6686
|
className: cn(
|
|
6646
6687
|
"flex items-start gap-base p-base rounded-base cursor-pointer transition-colors text-left",
|
|
6647
|
-
"hover:bg-
|
|
6648
|
-
selected && "bg-
|
|
6688
|
+
"hover:bg-dropdown-item-hover",
|
|
6689
|
+
selected && "bg-dropdown-item-hover"
|
|
6649
6690
|
),
|
|
6650
6691
|
children: [
|
|
6651
6692
|
multi && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
@@ -6653,7 +6694,7 @@ var DynamicOptionRow = ({
|
|
|
6653
6694
|
{
|
|
6654
6695
|
className: cn(
|
|
6655
6696
|
"mt-[2px] flex items-center justify-center size-4 rounded-xs border transition-colors shrink-0",
|
|
6656
|
-
selected ? "bg-
|
|
6697
|
+
selected ? "bg-primary border-primary" : "border-input bg-background"
|
|
6657
6698
|
),
|
|
6658
6699
|
children: selected && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("svg", { width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
6659
6700
|
"path",
|
|
@@ -6668,8 +6709,8 @@ var DynamicOptionRow = ({
|
|
|
6668
6709
|
}
|
|
6669
6710
|
),
|
|
6670
6711
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("span", { className: "flex-1 flex flex-col gap-2xs min-w-0", children: [
|
|
6671
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "text-sm font-regular leading-sm text-
|
|
6672
|
-
option.description && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "text-xs font-regular leading-xs text-
|
|
6712
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "text-sm font-regular leading-sm text-foreground truncate", children: option.label }),
|
|
6713
|
+
option.description && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "text-xs font-regular leading-xs text-muted-foreground", children: option.description })
|
|
6673
6714
|
] })
|
|
6674
6715
|
]
|
|
6675
6716
|
}
|
|
@@ -6690,7 +6731,7 @@ var SingleSelectValueInput = ({
|
|
|
6690
6731
|
"div",
|
|
6691
6732
|
{
|
|
6692
6733
|
className: cn(
|
|
6693
|
-
"flex flex-col gap-xs p-
|
|
6734
|
+
"flex flex-col gap-xs p-xs max-h-[280px] overflow-y-auto",
|
|
6694
6735
|
className
|
|
6695
6736
|
),
|
|
6696
6737
|
children: [
|
|
@@ -6711,10 +6752,10 @@ var SingleSelectValueInput = ({
|
|
|
6711
6752
|
onClick: () => pick(opt),
|
|
6712
6753
|
className: cn(
|
|
6713
6754
|
"flex items-center gap-base p-base rounded-base cursor-pointer transition-colors text-left",
|
|
6714
|
-
"hover:bg-
|
|
6715
|
-
value === opt && "bg-
|
|
6755
|
+
"hover:bg-dropdown-item-hover",
|
|
6756
|
+
value === opt && "bg-dropdown-item-hover"
|
|
6716
6757
|
),
|
|
6717
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "text-sm font-regular leading-sm text-
|
|
6758
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "text-sm font-regular leading-sm text-foreground", children: opt })
|
|
6718
6759
|
},
|
|
6719
6760
|
opt
|
|
6720
6761
|
))
|
|
@@ -6736,7 +6777,7 @@ var MultiSelectValueInput = ({
|
|
|
6736
6777
|
const next = selected.includes(v) ? selected.filter((s) => s !== v) : [...selected, v];
|
|
6737
6778
|
onChange(next);
|
|
6738
6779
|
};
|
|
6739
|
-
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: cn("flex flex-col gap-xs p-
|
|
6780
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: cn("flex flex-col gap-xs p-xs", className), children: [
|
|
6740
6781
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex flex-col max-h-[240px] overflow-y-auto", children: [
|
|
6741
6782
|
dynamicOptions?.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
6742
6783
|
DynamicOptionRow,
|
|
@@ -6757,7 +6798,7 @@ var MultiSelectValueInput = ({
|
|
|
6757
6798
|
onClick: () => toggle(opt),
|
|
6758
6799
|
className: cn(
|
|
6759
6800
|
"flex items-center gap-base p-base rounded-base cursor-pointer transition-colors text-left",
|
|
6760
|
-
"hover:bg-
|
|
6801
|
+
"hover:bg-dropdown-item-hover"
|
|
6761
6802
|
),
|
|
6762
6803
|
children: [
|
|
6763
6804
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
@@ -6765,7 +6806,7 @@ var MultiSelectValueInput = ({
|
|
|
6765
6806
|
{
|
|
6766
6807
|
className: cn(
|
|
6767
6808
|
"flex items-center justify-center size-4 rounded-xs border transition-colors",
|
|
6768
|
-
isSelected ? "bg-
|
|
6809
|
+
isSelected ? "bg-primary border-primary" : "border-input bg-background"
|
|
6769
6810
|
),
|
|
6770
6811
|
children: isSelected && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("svg", { width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
6771
6812
|
"path",
|
|
@@ -6779,14 +6820,14 @@ var MultiSelectValueInput = ({
|
|
|
6779
6820
|
) })
|
|
6780
6821
|
}
|
|
6781
6822
|
),
|
|
6782
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "text-sm font-regular leading-sm text-
|
|
6823
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "text-sm font-regular leading-sm text-foreground", children: opt })
|
|
6783
6824
|
]
|
|
6784
6825
|
},
|
|
6785
6826
|
opt
|
|
6786
6827
|
);
|
|
6787
6828
|
})
|
|
6788
6829
|
] }),
|
|
6789
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
6830
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Button, { appearance: "solid", intent: "brand", size: "sm", className: "self-end", onClick: onSubmit, children: "Apply" })
|
|
6790
6831
|
] });
|
|
6791
6832
|
};
|
|
6792
6833
|
MultiSelectValueInput.displayName = "MultiSelectValueInput";
|
|
@@ -6802,7 +6843,7 @@ var RelationValueInput = ({
|
|
|
6802
6843
|
const handleKeyDown = (e) => {
|
|
6803
6844
|
if (e.key === "Enter") onSubmit?.();
|
|
6804
6845
|
};
|
|
6805
|
-
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: cn("flex flex-col gap-base p-
|
|
6846
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: cn("flex flex-col gap-base p-xs", className), children: [
|
|
6806
6847
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
6807
6848
|
"input",
|
|
6808
6849
|
{
|
|
@@ -6815,7 +6856,7 @@ var RelationValueInput = ({
|
|
|
6815
6856
|
className: inputClasses
|
|
6816
6857
|
}
|
|
6817
6858
|
),
|
|
6818
|
-
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
6859
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Button, { appearance: "solid", intent: "brand", size: "sm", className: "self-end", onClick: onSubmit, children: "Apply" })
|
|
6819
6860
|
] });
|
|
6820
6861
|
};
|
|
6821
6862
|
RelationValueInput.displayName = "RelationValueInput";
|
|
@@ -6892,25 +6933,25 @@ var PopoverPrimitive6 = __toESM(require("@radix-ui/react-popover"));
|
|
|
6892
6933
|
var import_icons29 = require("@l3mpire/icons");
|
|
6893
6934
|
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
6894
6935
|
var AdvancedFilterFooter = ({ onClick, count }) => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_jsx_runtime50.Fragment, { children: [
|
|
6895
|
-
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "h-px bg-
|
|
6936
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "h-px bg-dropdown-border mx-xs" }),
|
|
6896
6937
|
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
|
|
6897
6938
|
"button",
|
|
6898
6939
|
{
|
|
6899
6940
|
type: "button",
|
|
6900
6941
|
onPointerDown: (e) => e.preventDefault(),
|
|
6901
6942
|
onClick,
|
|
6902
|
-
className: "flex items-center gap-base p-base rounded-base cursor-pointer transition-colors hover:bg-
|
|
6943
|
+
className: "flex items-center gap-base p-base rounded-base cursor-pointer transition-colors hover:bg-dropdown-item-hover",
|
|
6903
6944
|
children: [
|
|
6904
6945
|
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
6905
6946
|
import_icons29.Icon,
|
|
6906
6947
|
{
|
|
6907
6948
|
icon: import_icons29.faFilterOutline,
|
|
6908
6949
|
size: "sm",
|
|
6909
|
-
className: "shrink-0 text-
|
|
6950
|
+
className: "shrink-0 text-dropdown-item-icon"
|
|
6910
6951
|
}
|
|
6911
6952
|
),
|
|
6912
|
-
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "flex-1 text-sm font-regular leading-sm text-
|
|
6913
|
-
count > 0 && /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("span", { className: "text-xs font-regular leading-xs text-
|
|
6953
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "flex-1 text-sm font-regular leading-sm text-dropdown-item-text text-left truncate", children: "Advanced filter" }),
|
|
6954
|
+
count > 0 && /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("span", { className: "text-xs font-regular leading-xs text-muted-foreground", children: [
|
|
6914
6955
|
count,
|
|
6915
6956
|
" ",
|
|
6916
6957
|
count === 1 ? "rule" : "rules"
|
|
@@ -6992,7 +7033,7 @@ var PropertySelector = ({
|
|
|
6992
7033
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
6993
7034
|
className: cn(
|
|
6994
7035
|
"z-50 flex flex-col gap-xs overflow-clip p-xs",
|
|
6995
|
-
"bg-
|
|
7036
|
+
"bg-dropdown-bg border border-dropdown-border rounded-md shadow-lg",
|
|
6996
7037
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
6997
7038
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
6998
7039
|
"data-[side=bottom]:slide-in-from-top-2",
|
|
@@ -7002,13 +7043,13 @@ var PropertySelector = ({
|
|
|
7002
7043
|
activeGroup === null ? (
|
|
7003
7044
|
/* ── Level 1: Search + Categories ───────────────────────── */
|
|
7004
7045
|
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col gap-xs", children: [
|
|
7005
|
-
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex items-center gap-base px-md py-base border border-
|
|
7046
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex items-center gap-base px-md py-base border border-input rounded-md", children: [
|
|
7006
7047
|
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
7007
7048
|
import_icons29.Icon,
|
|
7008
7049
|
{
|
|
7009
7050
|
icon: import_icons29.faMagnifyingGlassOutline,
|
|
7010
7051
|
size: "sm",
|
|
7011
|
-
className: "shrink-0 text-
|
|
7052
|
+
className: "shrink-0 text-muted-foreground"
|
|
7012
7053
|
}
|
|
7013
7054
|
),
|
|
7014
7055
|
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
@@ -7019,7 +7060,7 @@ var PropertySelector = ({
|
|
|
7019
7060
|
onChange: (e) => setSearch(e.target.value),
|
|
7020
7061
|
placeholder: "Search...",
|
|
7021
7062
|
autoFocus: true,
|
|
7022
|
-
className: "flex-1 text-sm font-regular leading-sm text-
|
|
7063
|
+
className: "flex-1 text-sm font-regular leading-sm text-foreground bg-transparent outline-none placeholder:text-muted-foreground"
|
|
7023
7064
|
}
|
|
7024
7065
|
)
|
|
7025
7066
|
] }),
|
|
@@ -7033,18 +7074,18 @@ var PropertySelector = ({
|
|
|
7033
7074
|
onSelect(prop);
|
|
7034
7075
|
onOpenChange?.(false);
|
|
7035
7076
|
},
|
|
7036
|
-
className: "flex items-center gap-base p-base rounded-base cursor-pointer transition-colors hover:bg-
|
|
7077
|
+
className: "flex items-center gap-base p-base rounded-base cursor-pointer transition-colors hover:bg-dropdown-item-hover",
|
|
7037
7078
|
children: [
|
|
7038
7079
|
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
7039
7080
|
import_icons29.Icon,
|
|
7040
7081
|
{
|
|
7041
7082
|
icon: prop.icon,
|
|
7042
7083
|
size: "sm",
|
|
7043
|
-
className: "shrink-0 text-
|
|
7084
|
+
className: "shrink-0 text-dropdown-item-icon"
|
|
7044
7085
|
}
|
|
7045
7086
|
),
|
|
7046
|
-
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "flex-1 text-sm font-regular leading-sm text-
|
|
7047
|
-
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "text-xs font-regular leading-xs text-
|
|
7087
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "flex-1 text-sm font-regular leading-sm text-dropdown-item-text text-left truncate", children: prop.label }),
|
|
7088
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "text-xs font-regular leading-xs text-muted-foreground", children: prop.groupLabel })
|
|
7048
7089
|
]
|
|
7049
7090
|
},
|
|
7050
7091
|
prop.id
|
|
@@ -7060,31 +7101,31 @@ var PropertySelector = ({
|
|
|
7060
7101
|
setActiveGroup(g.group);
|
|
7061
7102
|
setSearch("");
|
|
7062
7103
|
},
|
|
7063
|
-
className: "flex items-center gap-base p-base rounded-base cursor-pointer transition-colors hover:bg-
|
|
7104
|
+
className: "flex items-center gap-base p-base rounded-base cursor-pointer transition-colors hover:bg-dropdown-item-hover",
|
|
7064
7105
|
children: [
|
|
7065
7106
|
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
7066
7107
|
import_icons29.Icon,
|
|
7067
7108
|
{
|
|
7068
7109
|
icon: g.groupIcon,
|
|
7069
7110
|
size: "sm",
|
|
7070
|
-
className: "shrink-0 text-
|
|
7111
|
+
className: "shrink-0 text-dropdown-item-icon"
|
|
7071
7112
|
}
|
|
7072
7113
|
),
|
|
7073
|
-
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "flex-1 text-sm font-regular leading-sm text-
|
|
7074
|
-
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "text-xs font-
|
|
7114
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "flex-1 text-sm font-regular leading-sm text-dropdown-item-text text-left truncate", children: g.groupLabel }),
|
|
7115
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "text-xs font-medium leading-xs text-muted-foreground", children: g.count }),
|
|
7075
7116
|
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
7076
7117
|
import_icons29.Icon,
|
|
7077
7118
|
{
|
|
7078
7119
|
icon: import_icons29.faChevronRightOutline,
|
|
7079
7120
|
size: "xs",
|
|
7080
|
-
className: "shrink-0 text-
|
|
7121
|
+
className: "shrink-0 text-dropdown-item-icon"
|
|
7081
7122
|
}
|
|
7082
7123
|
)
|
|
7083
7124
|
]
|
|
7084
7125
|
},
|
|
7085
7126
|
g.group
|
|
7086
7127
|
)),
|
|
7087
|
-
filteredGroups.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "p-base text-sm text-
|
|
7128
|
+
filteredGroups.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "p-base text-sm text-muted-foreground", children: "No results" })
|
|
7088
7129
|
] })
|
|
7089
7130
|
)
|
|
7090
7131
|
] })
|
|
@@ -7099,27 +7140,27 @@ var PropertySelector = ({
|
|
|
7099
7140
|
setActiveGroup(null);
|
|
7100
7141
|
setSearch("");
|
|
7101
7142
|
},
|
|
7102
|
-
className: "flex items-center gap-base p-base rounded-base cursor-pointer transition-colors hover:bg-
|
|
7143
|
+
className: "flex items-center gap-base p-base rounded-base cursor-pointer transition-colors hover:bg-dropdown-item-hover",
|
|
7103
7144
|
children: [
|
|
7104
7145
|
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
7105
7146
|
import_icons29.Icon,
|
|
7106
7147
|
{
|
|
7107
7148
|
icon: import_icons29.faChevronLeftOutline,
|
|
7108
7149
|
size: "sm",
|
|
7109
|
-
className: "shrink-0 text-
|
|
7150
|
+
className: "shrink-0 text-dropdown-item-icon"
|
|
7110
7151
|
}
|
|
7111
7152
|
),
|
|
7112
|
-
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "flex-1 text-xs font-
|
|
7153
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "flex-1 text-xs font-medium leading-xs text-muted-foreground text-left truncate", children: activeGroupInfo?.groupLabel })
|
|
7113
7154
|
]
|
|
7114
7155
|
}
|
|
7115
7156
|
),
|
|
7116
|
-
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex items-center gap-base px-md py-base border border-
|
|
7157
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex items-center gap-base px-md py-base border border-input rounded-md", children: [
|
|
7117
7158
|
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
7118
7159
|
import_icons29.Icon,
|
|
7119
7160
|
{
|
|
7120
7161
|
icon: import_icons29.faMagnifyingGlassOutline,
|
|
7121
7162
|
size: "sm",
|
|
7122
|
-
className: "shrink-0 text-
|
|
7163
|
+
className: "shrink-0 text-muted-foreground"
|
|
7123
7164
|
}
|
|
7124
7165
|
),
|
|
7125
7166
|
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
@@ -7130,7 +7171,7 @@ var PropertySelector = ({
|
|
|
7130
7171
|
onChange: (e) => setSearch(e.target.value),
|
|
7131
7172
|
placeholder: "Search...",
|
|
7132
7173
|
autoFocus: true,
|
|
7133
|
-
className: "flex-1 text-sm font-regular leading-sm text-
|
|
7174
|
+
className: "flex-1 text-sm font-regular leading-sm text-foreground bg-transparent outline-none placeholder:text-muted-foreground"
|
|
7134
7175
|
}
|
|
7135
7176
|
)
|
|
7136
7177
|
] }),
|
|
@@ -7143,22 +7184,22 @@ var PropertySelector = ({
|
|
|
7143
7184
|
onSelect(prop);
|
|
7144
7185
|
onOpenChange?.(false);
|
|
7145
7186
|
},
|
|
7146
|
-
className: "flex items-center gap-base p-base rounded-base cursor-pointer transition-colors hover:bg-
|
|
7187
|
+
className: "flex items-center gap-base p-base rounded-base cursor-pointer transition-colors hover:bg-dropdown-item-hover",
|
|
7147
7188
|
children: [
|
|
7148
7189
|
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
7149
7190
|
import_icons29.Icon,
|
|
7150
7191
|
{
|
|
7151
7192
|
icon: prop.icon,
|
|
7152
7193
|
size: "sm",
|
|
7153
|
-
className: "shrink-0 text-
|
|
7194
|
+
className: "shrink-0 text-dropdown-item-icon"
|
|
7154
7195
|
}
|
|
7155
7196
|
),
|
|
7156
|
-
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "flex-1 text-sm font-regular leading-sm text-
|
|
7197
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "flex-1 text-sm font-regular leading-sm text-dropdown-item-text text-left truncate", children: prop.label })
|
|
7157
7198
|
]
|
|
7158
7199
|
},
|
|
7159
7200
|
prop.id
|
|
7160
7201
|
)),
|
|
7161
|
-
filteredProperties.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "p-base text-sm text-
|
|
7202
|
+
filteredProperties.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "p-base text-sm text-muted-foreground", children: "No results" })
|
|
7162
7203
|
] })
|
|
7163
7204
|
] })
|
|
7164
7205
|
),
|
|
@@ -7196,7 +7237,7 @@ var KebabMenu = ({
|
|
|
7196
7237
|
align: "end",
|
|
7197
7238
|
className: cn(
|
|
7198
7239
|
"z-50 flex flex-col p-xs overflow-clip",
|
|
7199
|
-
"bg-
|
|
7240
|
+
"bg-dropdown-bg border border-dropdown-border rounded-md shadow-lg",
|
|
7200
7241
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
7201
7242
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
7202
7243
|
"data-[side=bottom]:slide-in-from-top-2",
|
|
@@ -7211,21 +7252,21 @@ var KebabMenu = ({
|
|
|
7211
7252
|
onConvertToAdvanced();
|
|
7212
7253
|
onOpenChange?.(false);
|
|
7213
7254
|
},
|
|
7214
|
-
className: "flex items-center gap-base p-base rounded-base cursor-pointer transition-colors hover:bg-
|
|
7255
|
+
className: "flex items-center gap-base p-base rounded-base cursor-pointer transition-colors hover:bg-dropdown-item-hover",
|
|
7215
7256
|
children: [
|
|
7216
7257
|
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
7217
7258
|
import_icons30.Icon,
|
|
7218
7259
|
{
|
|
7219
7260
|
icon: import_icons30.faArrowRightOutline,
|
|
7220
7261
|
size: "sm",
|
|
7221
|
-
className: "shrink-0 text-
|
|
7262
|
+
className: "shrink-0 text-dropdown-item-icon"
|
|
7222
7263
|
}
|
|
7223
7264
|
),
|
|
7224
|
-
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "text-sm font-regular leading-sm text-
|
|
7265
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "text-sm font-regular leading-sm text-dropdown-item-text", children: hasAdvancedFilters ? "Add to advanced filters" : "Convert to advanced" })
|
|
7225
7266
|
]
|
|
7226
7267
|
}
|
|
7227
7268
|
),
|
|
7228
|
-
onConvertToAdvanced && onDelete && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "h-px mx-base my-xs bg-
|
|
7269
|
+
onConvertToAdvanced && onDelete && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "h-px mx-base my-xs bg-border" }),
|
|
7229
7270
|
onDelete && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
7230
7271
|
"button",
|
|
7231
7272
|
{
|
|
@@ -7234,17 +7275,17 @@ var KebabMenu = ({
|
|
|
7234
7275
|
onDelete();
|
|
7235
7276
|
onOpenChange?.(false);
|
|
7236
7277
|
},
|
|
7237
|
-
className: "flex items-center gap-base p-base rounded-base cursor-pointer transition-colors hover:bg-
|
|
7278
|
+
className: "flex items-center gap-base p-base rounded-base cursor-pointer transition-colors hover:bg-dropdown-item-hover",
|
|
7238
7279
|
children: [
|
|
7239
7280
|
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
7240
7281
|
import_icons30.Icon,
|
|
7241
7282
|
{
|
|
7242
7283
|
icon: import_icons30.faTrashOutline,
|
|
7243
7284
|
size: "sm",
|
|
7244
|
-
className: "shrink-0 text-
|
|
7285
|
+
className: "shrink-0 text-destructive"
|
|
7245
7286
|
}
|
|
7246
7287
|
),
|
|
7247
|
-
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "text-sm font-regular leading-sm text-
|
|
7288
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "text-sm font-regular leading-sm text-destructive", children: "Delete filter" })
|
|
7248
7289
|
]
|
|
7249
7290
|
}
|
|
7250
7291
|
)
|
|
@@ -7312,29 +7353,29 @@ var FilterEditor = ({
|
|
|
7312
7353
|
align: "start",
|
|
7313
7354
|
className: cn(
|
|
7314
7355
|
"z-50 flex flex-col overflow-clip",
|
|
7315
|
-
"bg-
|
|
7356
|
+
"bg-dropdown-bg border border-dropdown-border rounded-md shadow-lg",
|
|
7316
7357
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
7317
7358
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
7318
7359
|
"data-[side=bottom]:slide-in-from-top-2",
|
|
7319
7360
|
"min-w-[240px]"
|
|
7320
7361
|
),
|
|
7321
7362
|
children: [
|
|
7322
|
-
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex items-center gap-base px-base pt-base pb-xs border-b border-
|
|
7363
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex items-center gap-base px-base pt-base pb-xs border-b border-border", children: [
|
|
7323
7364
|
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
7324
7365
|
import_icons31.Icon,
|
|
7325
7366
|
{
|
|
7326
7367
|
icon: propertyDef.icon,
|
|
7327
7368
|
size: "sm",
|
|
7328
|
-
className: "shrink-0 text-
|
|
7369
|
+
className: "shrink-0 text-dropdown-item-icon"
|
|
7329
7370
|
}
|
|
7330
7371
|
),
|
|
7331
|
-
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: "text-sm font-
|
|
7372
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: "text-sm font-medium leading-sm text-foreground", children: propertyDef.label }),
|
|
7332
7373
|
localOperator && view === "value" && /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
7333
7374
|
"button",
|
|
7334
7375
|
{
|
|
7335
7376
|
type: "button",
|
|
7336
7377
|
onClick: () => setView("operator"),
|
|
7337
|
-
className: "ml-auto text-xs font-regular text-
|
|
7378
|
+
className: "ml-auto text-xs font-regular text-muted-foreground hover:text-foreground cursor-pointer transition-colors",
|
|
7338
7379
|
children: [
|
|
7339
7380
|
localOperator,
|
|
7340
7381
|
" \u25BE"
|
|
@@ -7388,7 +7429,7 @@ var SegmentPopover = ({
|
|
|
7388
7429
|
align,
|
|
7389
7430
|
className: cn(
|
|
7390
7431
|
"z-50 flex flex-col overflow-clip",
|
|
7391
|
-
"bg-
|
|
7432
|
+
"bg-dropdown-bg border border-dropdown-border rounded-md shadow-lg",
|
|
7392
7433
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
7393
7434
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
7394
7435
|
"data-[side=bottom]:slide-in-from-top-2"
|
|
@@ -7595,10 +7636,10 @@ var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
|
7595
7636
|
var btnBase = [
|
|
7596
7637
|
"flex items-center justify-center",
|
|
7597
7638
|
"min-h-[32px] max-h-[32px]",
|
|
7598
|
-
"bg-gradient-to-t from-
|
|
7599
|
-
"border border-
|
|
7639
|
+
"bg-gradient-to-t from-btn-outlined-neutral-bg-default from-[10%] to-btn-outlined-neutral-bg-gradient-to-default",
|
|
7640
|
+
"border border-btn-outlined-neutral-border-default shadow-sm",
|
|
7600
7641
|
"cursor-pointer transition-colors",
|
|
7601
|
-
"hover:from-
|
|
7642
|
+
"hover:from-btn-outlined-neutral-bg-hover hover:to-btn-outlined-neutral-bg-gradient-to-hover"
|
|
7602
7643
|
];
|
|
7603
7644
|
var AdvancedChip = React47.forwardRef(
|
|
7604
7645
|
({ className, count, onClear, onClick, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: cn("inline-flex items-center", className), children: [
|
|
@@ -7620,11 +7661,11 @@ var AdvancedChip = React47.forwardRef(
|
|
|
7620
7661
|
{
|
|
7621
7662
|
icon: import_icons32.faFilterOutline,
|
|
7622
7663
|
size: "sm",
|
|
7623
|
-
className: "shrink-0 text-
|
|
7664
|
+
className: "shrink-0 text-foreground"
|
|
7624
7665
|
}
|
|
7625
7666
|
),
|
|
7626
|
-
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "text-sm font-
|
|
7627
|
-
count > 0 && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "flex items-center p-2xs rounded-xs bg-filter-chip-badge-bg", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "text-[10px] font-
|
|
7667
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "text-sm font-medium leading-sm whitespace-nowrap text-foreground", children: "Advanced filters" }),
|
|
7668
|
+
count > 0 && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "flex items-center p-2xs rounded-xs bg-filter-chip-badge-bg", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "text-[10px] font-medium leading-2xs text-filter-chip-badge-text", children: count }) })
|
|
7628
7669
|
]
|
|
7629
7670
|
}
|
|
7630
7671
|
),
|
|
@@ -7642,7 +7683,7 @@ var AdvancedChip = React47.forwardRef(
|
|
|
7642
7683
|
"rounded-r-md -ml-px"
|
|
7643
7684
|
),
|
|
7644
7685
|
"aria-label": "Clear all advanced filters",
|
|
7645
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_icons32.Icon, { icon: import_icons32.faXmarkOutline, size: "sm", className: "text-
|
|
7686
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_icons32.Icon, { icon: import_icons32.faXmarkOutline, size: "sm", className: "text-foreground" })
|
|
7646
7687
|
}
|
|
7647
7688
|
)
|
|
7648
7689
|
] })
|
|
@@ -7657,7 +7698,7 @@ var import_icons36 = require("@l3mpire/icons");
|
|
|
7657
7698
|
// src/components/ui/filter/advanced-row.tsx
|
|
7658
7699
|
var React49 = __toESM(require("react"));
|
|
7659
7700
|
var PopoverPrimitive11 = __toESM(require("@radix-ui/react-popover"));
|
|
7660
|
-
var
|
|
7701
|
+
var TooltipPrimitive4 = __toESM(require("@radix-ui/react-tooltip"));
|
|
7661
7702
|
var import_icons34 = require("@l3mpire/icons");
|
|
7662
7703
|
|
|
7663
7704
|
// src/components/ui/filter/filter-node-actions.tsx
|
|
@@ -7695,14 +7736,14 @@ var FilterNodeActions = ({
|
|
|
7695
7736
|
"button",
|
|
7696
7737
|
{
|
|
7697
7738
|
type: "button",
|
|
7698
|
-
className: "shrink-0 flex items-center justify-center p-sm rounded-md cursor-pointer transition-colors hover:bg-
|
|
7739
|
+
className: "shrink-0 flex items-center justify-center p-sm rounded-md cursor-pointer transition-colors hover:bg-accent",
|
|
7699
7740
|
"aria-label": "More actions",
|
|
7700
7741
|
children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
7701
7742
|
import_icons33.Icon,
|
|
7702
7743
|
{
|
|
7703
7744
|
icon: import_icons33.faEllipsisOutline,
|
|
7704
7745
|
size: "sm",
|
|
7705
|
-
className: "text-
|
|
7746
|
+
className: "text-foreground"
|
|
7706
7747
|
}
|
|
7707
7748
|
)
|
|
7708
7749
|
}
|
|
@@ -7714,7 +7755,7 @@ var FilterNodeActions = ({
|
|
|
7714
7755
|
align: "end",
|
|
7715
7756
|
className: cn(
|
|
7716
7757
|
"z-50 flex flex-col p-xs overflow-clip",
|
|
7717
|
-
"bg-
|
|
7758
|
+
"bg-dropdown-bg border border-dropdown-border rounded-md shadow-lg",
|
|
7718
7759
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
7719
7760
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
7720
7761
|
"min-w-[180px]"
|
|
@@ -7729,8 +7770,8 @@ var FilterNodeActions = ({
|
|
|
7729
7770
|
},
|
|
7730
7771
|
className: cn(
|
|
7731
7772
|
"flex items-center gap-base p-base rounded-base cursor-pointer transition-colors text-left",
|
|
7732
|
-
"hover:bg-
|
|
7733
|
-
item.destructive && "text-
|
|
7773
|
+
"hover:bg-dropdown-item-hover",
|
|
7774
|
+
item.destructive && "text-destructive"
|
|
7734
7775
|
),
|
|
7735
7776
|
children: [
|
|
7736
7777
|
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
@@ -7740,7 +7781,7 @@ var FilterNodeActions = ({
|
|
|
7740
7781
|
size: "sm",
|
|
7741
7782
|
className: cn(
|
|
7742
7783
|
"shrink-0",
|
|
7743
|
-
item.destructive ? "text-
|
|
7784
|
+
item.destructive ? "text-destructive" : "text-dropdown-item-icon"
|
|
7744
7785
|
)
|
|
7745
7786
|
}
|
|
7746
7787
|
),
|
|
@@ -7749,7 +7790,7 @@ var FilterNodeActions = ({
|
|
|
7749
7790
|
{
|
|
7750
7791
|
className: cn(
|
|
7751
7792
|
"text-sm font-regular leading-sm",
|
|
7752
|
-
item.destructive ? "text-
|
|
7793
|
+
item.destructive ? "text-destructive" : "text-dropdown-item-text"
|
|
7753
7794
|
),
|
|
7754
7795
|
children: item.label
|
|
7755
7796
|
}
|
|
@@ -7769,10 +7810,10 @@ var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
|
7769
7810
|
var selectBtnStyle = [
|
|
7770
7811
|
"flex items-center gap-base",
|
|
7771
7812
|
"px-base py-sm",
|
|
7772
|
-
"bg-gradient-to-t from-
|
|
7773
|
-
"border border-
|
|
7813
|
+
"bg-gradient-to-t from-btn-outlined-neutral-bg-default to-btn-outlined-neutral-bg-gradient-to-default",
|
|
7814
|
+
"border border-btn-outlined-neutral-border-default rounded-md shadow-sm",
|
|
7774
7815
|
"cursor-pointer transition-colors",
|
|
7775
|
-
"hover:from-
|
|
7816
|
+
"hover:from-btn-outlined-neutral-bg-hover hover:to-btn-outlined-neutral-bg-gradient-to-hover"
|
|
7776
7817
|
];
|
|
7777
7818
|
var AdvancedRow = ({
|
|
7778
7819
|
connector,
|
|
@@ -7805,25 +7846,25 @@ var AdvancedRow = ({
|
|
|
7805
7846
|
const badgeCount = getBadgeCount(condition.value);
|
|
7806
7847
|
const hasValue = displayValue != null;
|
|
7807
7848
|
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex items-center gap-base w-full min-w-0", children: [
|
|
7808
|
-
connector === "Where" ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "shrink-0 w-[64px] flex items-center justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "text-xs font-
|
|
7809
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
7810
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
7811
|
-
|
|
7849
|
+
connector === "Where" ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "shrink-0 w-[64px] flex items-center justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "text-xs font-medium leading-xs text-muted-foreground", children: "Where" }) }) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "shrink-0 w-[64px] flex items-center justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(TooltipPrimitive4.Provider, { delayDuration: 200, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(TooltipPrimitive4.Root, { children: [
|
|
7850
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(TooltipPrimitive4.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "text-xs font-medium leading-xs text-muted-foreground cursor-default", children: connector }) }),
|
|
7851
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(TooltipPrimitive4.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
7852
|
+
TooltipPrimitive4.Content,
|
|
7812
7853
|
{
|
|
7813
7854
|
sideOffset: 4,
|
|
7814
7855
|
className: "z-50 px-base py-sm rounded-md 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]",
|
|
7815
7856
|
children: [
|
|
7816
7857
|
'"Or" operator coming soon',
|
|
7817
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
7858
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(TooltipPrimitive4.Arrow, { className: "fill-tooltip-default-bg" })
|
|
7818
7859
|
]
|
|
7819
7860
|
}
|
|
7820
7861
|
) })
|
|
7821
7862
|
] }) }) }),
|
|
7822
7863
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(PopoverPrimitive11.Root, { open: propertyOpen, onOpenChange: setPropertyOpen, children: [
|
|
7823
7864
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(PopoverPrimitive11.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("button", { type: "button", className: cn(selectBtnStyle, "min-w-0"), children: [
|
|
7824
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_icons34.Icon, { icon: propertyDef.icon, size: "sm", className: "shrink-0 text-
|
|
7825
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "text-sm font-regular leading-sm text-
|
|
7826
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_icons34.Icon, { icon: import_icons34.faChevronDownOutline, size: "xs", className: "shrink-0 text-
|
|
7865
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_icons34.Icon, { icon: propertyDef.icon, size: "sm", className: "shrink-0 text-muted-foreground" }),
|
|
7866
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "text-sm font-regular leading-sm text-foreground whitespace-nowrap truncate", children: propertyDef.label }),
|
|
7867
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_icons34.Icon, { icon: import_icons34.faChevronDownOutline, size: "xs", className: "shrink-0 text-foreground" })
|
|
7827
7868
|
] }) }),
|
|
7828
7869
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(PopoverPrimitive11.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
7829
7870
|
PopoverPrimitive11.Content,
|
|
@@ -7832,7 +7873,7 @@ var AdvancedRow = ({
|
|
|
7832
7873
|
align: "start",
|
|
7833
7874
|
className: cn(
|
|
7834
7875
|
"z-50 flex flex-col p-xs overflow-clip max-h-[300px] overflow-y-auto",
|
|
7835
|
-
"bg-
|
|
7876
|
+
"bg-dropdown-bg border border-dropdown-border rounded-md shadow-lg",
|
|
7836
7877
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
7837
7878
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0",
|
|
7838
7879
|
"min-w-[200px]"
|
|
@@ -7847,12 +7888,12 @@ var AdvancedRow = ({
|
|
|
7847
7888
|
},
|
|
7848
7889
|
className: cn(
|
|
7849
7890
|
"flex items-center gap-base p-base rounded-base cursor-pointer transition-colors text-left",
|
|
7850
|
-
"hover:bg-
|
|
7851
|
-
p.id === condition.propertyId && "bg-
|
|
7891
|
+
"hover:bg-dropdown-item-hover",
|
|
7892
|
+
p.id === condition.propertyId && "bg-dropdown-item-hover"
|
|
7852
7893
|
),
|
|
7853
7894
|
children: [
|
|
7854
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_icons34.Icon, { icon: p.icon, size: "sm", className: "shrink-0 text-
|
|
7855
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "text-sm font-regular leading-sm text-
|
|
7895
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_icons34.Icon, { icon: p.icon, size: "sm", className: "shrink-0 text-dropdown-item-icon" }),
|
|
7896
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "text-sm font-regular leading-sm text-dropdown-item-text truncate", children: p.label })
|
|
7856
7897
|
]
|
|
7857
7898
|
},
|
|
7858
7899
|
p.id
|
|
@@ -7862,8 +7903,8 @@ var AdvancedRow = ({
|
|
|
7862
7903
|
] }),
|
|
7863
7904
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(PopoverPrimitive11.Root, { open: operatorOpen, onOpenChange: setOperatorOpen, children: [
|
|
7864
7905
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(PopoverPrimitive11.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("button", { type: "button", className: cn(selectBtnStyle, "min-w-0"), children: [
|
|
7865
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "text-sm font-regular leading-sm text-
|
|
7866
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_icons34.Icon, { icon: import_icons34.faChevronDownOutline, size: "xs", className: "shrink-0 text-
|
|
7906
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "text-sm font-regular leading-sm text-foreground whitespace-nowrap truncate text-left", children: condition.operator ?? "Select" }),
|
|
7907
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_icons34.Icon, { icon: import_icons34.faChevronDownOutline, size: "xs", className: "shrink-0 text-foreground" })
|
|
7867
7908
|
] }) }),
|
|
7868
7909
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(PopoverPrimitive11.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
7869
7910
|
PopoverPrimitive11.Content,
|
|
@@ -7872,7 +7913,7 @@ var AdvancedRow = ({
|
|
|
7872
7913
|
align: "start",
|
|
7873
7914
|
className: cn(
|
|
7874
7915
|
"z-50 flex flex-col p-xs overflow-clip",
|
|
7875
|
-
"bg-
|
|
7916
|
+
"bg-dropdown-bg border border-dropdown-border rounded-md shadow-lg",
|
|
7876
7917
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
7877
7918
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0",
|
|
7878
7919
|
"min-w-[160px]"
|
|
@@ -7903,10 +7944,10 @@ var AdvancedRow = ({
|
|
|
7903
7944
|
placeholder: "Enter value...",
|
|
7904
7945
|
className: cn(
|
|
7905
7946
|
"flex-1 min-w-[80px] px-base py-sm",
|
|
7906
|
-
"bg-
|
|
7907
|
-
"text-sm font-regular leading-sm text-
|
|
7908
|
-
"placeholder:text-
|
|
7909
|
-
"focus:outline-none focus:ring-2 focus:ring-
|
|
7947
|
+
"bg-background border border-input rounded-base",
|
|
7948
|
+
"text-sm font-regular leading-sm text-foreground",
|
|
7949
|
+
"placeholder:text-muted-foreground",
|
|
7950
|
+
"focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-0"
|
|
7910
7951
|
)
|
|
7911
7952
|
}
|
|
7912
7953
|
);
|
|
@@ -7929,7 +7970,7 @@ var AdvancedRow = ({
|
|
|
7929
7970
|
{
|
|
7930
7971
|
className: cn(
|
|
7931
7972
|
"text-sm font-regular leading-sm whitespace-nowrap truncate text-left",
|
|
7932
|
-
hasValue ? "text-
|
|
7973
|
+
hasValue ? "text-foreground" : "text-muted-foreground"
|
|
7933
7974
|
),
|
|
7934
7975
|
title: hasValue ? displayValue : void 0,
|
|
7935
7976
|
children: hasValue ? displayValue : "Select a value"
|
|
@@ -7940,7 +7981,7 @@ var AdvancedRow = ({
|
|
|
7940
7981
|
{
|
|
7941
7982
|
icon: import_icons34.faChevronDownOutline,
|
|
7942
7983
|
size: "xs",
|
|
7943
|
-
className: "shrink-0 text-
|
|
7984
|
+
className: "shrink-0 text-foreground"
|
|
7944
7985
|
}
|
|
7945
7986
|
)
|
|
7946
7987
|
]
|
|
@@ -7953,7 +7994,7 @@ var AdvancedRow = ({
|
|
|
7953
7994
|
align: "start",
|
|
7954
7995
|
className: cn(
|
|
7955
7996
|
"z-50 flex flex-col overflow-clip",
|
|
7956
|
-
"bg-
|
|
7997
|
+
"bg-dropdown-bg border border-dropdown-border rounded-md shadow-lg",
|
|
7957
7998
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
7958
7999
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0"
|
|
7959
8000
|
),
|
|
@@ -7991,7 +8032,7 @@ AdvancedRow.displayName = "AdvancedRow";
|
|
|
7991
8032
|
var tagChip = cn(
|
|
7992
8033
|
"inline-flex items-center shrink-0 px-sm rounded-base",
|
|
7993
8034
|
"bg-tag-neutral-bg text-tag-neutral-text",
|
|
7994
|
-
"text-xs font-
|
|
8035
|
+
"text-xs font-medium leading-xs whitespace-nowrap",
|
|
7995
8036
|
"h-5"
|
|
7996
8037
|
);
|
|
7997
8038
|
function ValueTagRow({ tags }) {
|
|
@@ -8043,19 +8084,19 @@ function ValueTagRow({ tags }) {
|
|
|
8043
8084
|
),
|
|
8044
8085
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { ref: containerRef, className: "flex flex-1 items-center gap-xs overflow-hidden", children: [
|
|
8045
8086
|
tags.slice(0, visibleCount).map((t) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: tagChip, children: t }, t)),
|
|
8046
|
-
overflowCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
8047
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
8087
|
+
overflowCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(TooltipPrimitive4.Provider, { delayDuration: 200, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(TooltipPrimitive4.Root, { children: [
|
|
8088
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(TooltipPrimitive4.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("span", { className: cn(tagChip, "cursor-default bg-filter-chip-badge-bg text-filter-chip-badge-text"), children: [
|
|
8048
8089
|
"+",
|
|
8049
8090
|
overflowCount
|
|
8050
8091
|
] }) }),
|
|
8051
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
8052
|
-
|
|
8092
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(TooltipPrimitive4.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
8093
|
+
TooltipPrimitive4.Content,
|
|
8053
8094
|
{
|
|
8054
8095
|
sideOffset: 4,
|
|
8055
8096
|
className: "z-50 px-base py-sm rounded-md 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]",
|
|
8056
8097
|
children: [
|
|
8057
8098
|
overflowTags.map((t) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { children: t }, t)),
|
|
8058
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
8099
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(TooltipPrimitive4.Arrow, { className: "fill-tooltip-default-bg" })
|
|
8059
8100
|
]
|
|
8060
8101
|
}
|
|
8061
8102
|
) })
|
|
@@ -8066,7 +8107,7 @@ function ValueTagRow({ tags }) {
|
|
|
8066
8107
|
|
|
8067
8108
|
// src/components/ui/filter/advanced-group.tsx
|
|
8068
8109
|
var React50 = __toESM(require("react"));
|
|
8069
|
-
var
|
|
8110
|
+
var TooltipPrimitive5 = __toESM(require("@radix-ui/react-tooltip"));
|
|
8070
8111
|
var import_icons35 = require("@l3mpire/icons");
|
|
8071
8112
|
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
8072
8113
|
var AdvancedGroup = ({
|
|
@@ -8081,21 +8122,21 @@ var AdvancedGroup = ({
|
|
|
8081
8122
|
}) => {
|
|
8082
8123
|
const [addOpen, setAddOpen] = React50.useState(false);
|
|
8083
8124
|
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex items-start gap-base w-full min-w-0", children: [
|
|
8084
|
-
connector === "Where" ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "shrink-0 w-[64px] flex items-center justify-end pt-base", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "text-xs font-
|
|
8085
|
-
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
8086
|
-
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
8087
|
-
|
|
8125
|
+
connector === "Where" ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "shrink-0 w-[64px] flex items-center justify-end pt-base", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "text-xs font-medium leading-xs text-muted-foreground", children: "Where" }) }) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "shrink-0 w-[64px] flex items-center justify-end pt-base", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(TooltipPrimitive5.Provider, { delayDuration: 200, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(TooltipPrimitive5.Root, { children: [
|
|
8126
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(TooltipPrimitive5.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "text-xs font-medium leading-xs text-muted-foreground cursor-default", children: connector }) }),
|
|
8127
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(TooltipPrimitive5.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
8128
|
+
TooltipPrimitive5.Content,
|
|
8088
8129
|
{
|
|
8089
8130
|
sideOffset: 4,
|
|
8090
8131
|
className: "z-50 px-base py-sm rounded-md 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]",
|
|
8091
8132
|
children: [
|
|
8092
8133
|
'"Or" operator coming soon',
|
|
8093
|
-
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
8134
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(TooltipPrimitive5.Arrow, { className: "fill-tooltip-default-bg" })
|
|
8094
8135
|
]
|
|
8095
8136
|
}
|
|
8096
8137
|
) })
|
|
8097
8138
|
] }) }) }),
|
|
8098
|
-
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex-1 min-w-0 flex flex-col gap-base p-base border border-
|
|
8139
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex-1 min-w-0 flex flex-col gap-base p-base border border-border rounded-md bg-secondary", children: [
|
|
8099
8140
|
children,
|
|
8100
8141
|
onAddFilter && properties && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
8101
8142
|
PropertySelector,
|
|
@@ -8111,7 +8152,7 @@ var AdvancedGroup = ({
|
|
|
8111
8152
|
"button",
|
|
8112
8153
|
{
|
|
8113
8154
|
type: "button",
|
|
8114
|
-
className: "flex items-center gap-sm px-base py-sm text-sm font-
|
|
8155
|
+
className: "flex items-center gap-sm px-base py-sm text-sm font-medium leading-sm text-muted-foreground cursor-pointer transition-colors rounded-md hover:bg-accent hover:text-foreground w-fit",
|
|
8115
8156
|
children: [
|
|
8116
8157
|
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_icons35.Icon, { icon: import_icons35.faPlusOutline, size: "sm" }),
|
|
8117
8158
|
"Add filter"
|
|
@@ -8142,8 +8183,8 @@ var import_jsx_runtime58 = (
|
|
|
8142
8183
|
var ghostBtn = [
|
|
8143
8184
|
"flex items-center gap-sm px-base py-sm",
|
|
8144
8185
|
"min-h-[32px]",
|
|
8145
|
-
"cursor-pointer transition-colors text-sm font-
|
|
8146
|
-
"rounded-md hover:bg-
|
|
8186
|
+
"cursor-pointer transition-colors text-sm font-medium leading-sm",
|
|
8187
|
+
"rounded-md hover:bg-accent"
|
|
8147
8188
|
];
|
|
8148
8189
|
var AdvancedPopover = ({
|
|
8149
8190
|
filters,
|
|
@@ -8304,7 +8345,7 @@ var AdvancedPopover = ({
|
|
|
8304
8345
|
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
8305
8346
|
className: cn(
|
|
8306
8347
|
"z-50 flex flex-col",
|
|
8307
|
-
"bg-
|
|
8348
|
+
"bg-background rounded-md shadow-lg",
|
|
8308
8349
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
8309
8350
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
8310
8351
|
"data-[side=bottom]:slide-in-from-top-2",
|
|
@@ -8320,7 +8361,7 @@ var AdvancedPopover = ({
|
|
|
8320
8361
|
onOpenChange: setDraftPickerOpen
|
|
8321
8362
|
}
|
|
8322
8363
|
) }),
|
|
8323
|
-
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex items-center justify-between p-base border-t border-
|
|
8364
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex items-center justify-between p-base border-t border-border", children: [
|
|
8324
8365
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex items-center gap-sm", children: [
|
|
8325
8366
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
8326
8367
|
PropertySelector,
|
|
@@ -8329,8 +8370,8 @@ var AdvancedPopover = ({
|
|
|
8329
8370
|
onSelect: handleAddFilter,
|
|
8330
8371
|
open: addSelectorOpen,
|
|
8331
8372
|
onOpenChange: setAddSelectorOpen,
|
|
8332
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("button", { type: "button", className: cn(ghostBtn, "text-
|
|
8333
|
-
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_icons36.Icon, { icon: import_icons36.faPlusOutline, size: "sm", className: "text-
|
|
8373
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("button", { type: "button", className: cn(ghostBtn, "text-foreground"), children: [
|
|
8374
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_icons36.Icon, { icon: import_icons36.faPlusOutline, size: "sm", className: "text-foreground" }),
|
|
8334
8375
|
"Add filter"
|
|
8335
8376
|
] })
|
|
8336
8377
|
}
|
|
@@ -8340,9 +8381,9 @@ var AdvancedPopover = ({
|
|
|
8340
8381
|
{
|
|
8341
8382
|
type: "button",
|
|
8342
8383
|
onClick: handleAddGroup,
|
|
8343
|
-
className: cn(ghostBtn, "text-
|
|
8384
|
+
className: cn(ghostBtn, "text-foreground"),
|
|
8344
8385
|
children: [
|
|
8345
|
-
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_icons36.Icon, { icon: import_icons36.faPlusOutline, size: "sm", className: "text-
|
|
8386
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_icons36.Icon, { icon: import_icons36.faPlusOutline, size: "sm", className: "text-foreground" }),
|
|
8346
8387
|
"Add filters group"
|
|
8347
8388
|
]
|
|
8348
8389
|
}
|
|
@@ -8353,9 +8394,9 @@ var AdvancedPopover = ({
|
|
|
8353
8394
|
{
|
|
8354
8395
|
type: "button",
|
|
8355
8396
|
onClick: handleClearAll,
|
|
8356
|
-
className: cn(ghostBtn, "text-
|
|
8397
|
+
className: cn(ghostBtn, "text-destructive"),
|
|
8357
8398
|
children: [
|
|
8358
|
-
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_icons36.Icon, { icon: import_icons36.faXmarkOutline, size: "sm", className: "text-
|
|
8399
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_icons36.Icon, { icon: import_icons36.faXmarkOutline, size: "sm", className: "text-destructive" }),
|
|
8359
8400
|
"Clear filters"
|
|
8360
8401
|
]
|
|
8361
8402
|
}
|
|
@@ -8381,7 +8422,7 @@ var DraftRow = ({
|
|
|
8381
8422
|
onOpenChange?.(v);
|
|
8382
8423
|
};
|
|
8383
8424
|
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex items-center gap-base w-full min-w-0", children: [
|
|
8384
|
-
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "shrink-0 w-[64px] flex items-center justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "text-xs font-
|
|
8425
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "shrink-0 w-[64px] flex items-center justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "text-xs font-medium leading-xs text-muted-foreground", children: "Where" }) }),
|
|
8385
8426
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
8386
8427
|
PropertySelector,
|
|
8387
8428
|
{
|
|
@@ -8398,19 +8439,19 @@ var DraftRow = ({
|
|
|
8398
8439
|
type: "button",
|
|
8399
8440
|
className: cn(
|
|
8400
8441
|
"flex items-center gap-base px-base py-sm min-w-0",
|
|
8401
|
-
"bg-gradient-to-t from-
|
|
8402
|
-
"border border-
|
|
8442
|
+
"bg-gradient-to-t from-btn-outlined-neutral-bg-default to-btn-outlined-neutral-bg-gradient-to-default",
|
|
8443
|
+
"border border-btn-outlined-neutral-border-default rounded-md shadow-sm",
|
|
8403
8444
|
"cursor-pointer transition-colors",
|
|
8404
|
-
"hover:from-
|
|
8445
|
+
"hover:from-btn-outlined-neutral-bg-hover hover:to-btn-outlined-neutral-bg-gradient-to-hover"
|
|
8405
8446
|
),
|
|
8406
8447
|
children: [
|
|
8407
|
-
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "text-sm font-regular leading-sm text-
|
|
8448
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "text-sm font-regular leading-sm text-muted-foreground whitespace-nowrap", children: "Select property" }),
|
|
8408
8449
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
8409
8450
|
import_icons36.Icon,
|
|
8410
8451
|
{
|
|
8411
8452
|
icon: import_icons36.faChevronDownOutline,
|
|
8412
8453
|
size: "xs",
|
|
8413
|
-
className: "shrink-0 text-
|
|
8454
|
+
className: "shrink-0 text-foreground"
|
|
8414
8455
|
}
|
|
8415
8456
|
)
|
|
8416
8457
|
]
|
|
@@ -8424,14 +8465,14 @@ var DraftRow = ({
|
|
|
8424
8465
|
// src/components/ui/filter/summary-chip.tsx
|
|
8425
8466
|
var React52 = __toESM(require("react"));
|
|
8426
8467
|
var PopoverPrimitive13 = __toESM(require("@radix-ui/react-popover"));
|
|
8427
|
-
var
|
|
8468
|
+
var TooltipPrimitive6 = __toESM(require("@radix-ui/react-tooltip"));
|
|
8428
8469
|
var import_icons37 = require("@l3mpire/icons");
|
|
8429
8470
|
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
8430
8471
|
var ghostBtn2 = [
|
|
8431
8472
|
"flex items-center gap-sm px-base py-sm",
|
|
8432
8473
|
"min-h-[32px]",
|
|
8433
|
-
"cursor-pointer transition-colors text-sm font-
|
|
8434
|
-
"rounded-md hover:bg-
|
|
8474
|
+
"cursor-pointer transition-colors text-sm font-medium leading-sm",
|
|
8475
|
+
"rounded-md hover:bg-accent"
|
|
8435
8476
|
];
|
|
8436
8477
|
var SummaryChip = ({
|
|
8437
8478
|
count,
|
|
@@ -8592,30 +8633,30 @@ var SummaryChip = ({
|
|
|
8592
8633
|
className: cn(
|
|
8593
8634
|
"inline-flex items-center gap-sm px-base py-sm",
|
|
8594
8635
|
"min-h-[32px] max-h-[32px]",
|
|
8595
|
-
"bg-gradient-to-t from-
|
|
8596
|
-
"border border-
|
|
8636
|
+
"bg-gradient-to-t from-btn-outlined-neutral-bg-default from-[10%] to-btn-outlined-neutral-bg-gradient-to-default",
|
|
8637
|
+
"border border-btn-outlined-neutral-border-default rounded-md shadow-sm",
|
|
8597
8638
|
"cursor-pointer transition-colors",
|
|
8598
|
-
"hover:from-
|
|
8639
|
+
"hover:from-btn-outlined-neutral-bg-hover hover:to-btn-outlined-neutral-bg-gradient-to-hover",
|
|
8599
8640
|
className
|
|
8600
8641
|
),
|
|
8601
8642
|
children: [
|
|
8602
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_icons37.Icon, { icon: import_icons37.faFilterOutline, size: "sm", className: "shrink-0 text-
|
|
8603
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "text-sm font-
|
|
8604
|
-
count > 0 && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "flex items-center p-2xs rounded-xs bg-filter-chip-badge-bg", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "text-[10px] font-
|
|
8643
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_icons37.Icon, { icon: import_icons37.faFilterOutline, size: "sm", className: "shrink-0 text-foreground" }),
|
|
8644
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "text-sm font-medium leading-sm whitespace-nowrap text-foreground", children: "Filters" }),
|
|
8645
|
+
count > 0 && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "flex items-center p-2xs rounded-xs bg-filter-chip-badge-bg", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "text-[10px] font-medium leading-2xs text-filter-chip-badge-text", children: count }) })
|
|
8605
8646
|
]
|
|
8606
8647
|
}
|
|
8607
8648
|
);
|
|
8608
8649
|
const hasTooltip = tooltipContent && !open;
|
|
8609
|
-
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
8610
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
8611
|
-
hasTooltip && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
8612
|
-
|
|
8650
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(TooltipPrimitive6.Provider, { delayDuration: 300, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(TooltipPrimitive6.Root, { open: hasTooltip ? void 0 : false, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(PopoverPrimitive13.Root, { open, onOpenChange: setOpen, children: [
|
|
8651
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(TooltipPrimitive6.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(PopoverPrimitive13.Trigger, { asChild: true, children: trigger }) }),
|
|
8652
|
+
hasTooltip && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(TooltipPrimitive6.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
8653
|
+
TooltipPrimitive6.Content,
|
|
8613
8654
|
{
|
|
8614
8655
|
sideOffset: 4,
|
|
8615
8656
|
className: "z-50 px-base py-sm rounded-md 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]",
|
|
8616
8657
|
children: [
|
|
8617
8658
|
tooltipContent,
|
|
8618
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
8659
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(TooltipPrimitive6.Arrow, { className: "fill-tooltip-default-bg" })
|
|
8619
8660
|
]
|
|
8620
8661
|
}
|
|
8621
8662
|
) }),
|
|
@@ -8629,7 +8670,7 @@ var SummaryChip = ({
|
|
|
8629
8670
|
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
8630
8671
|
className: cn(
|
|
8631
8672
|
"z-50 flex flex-col overflow-clip",
|
|
8632
|
-
"bg-
|
|
8673
|
+
"bg-dropdown-bg border border-dropdown-border rounded-md shadow-lg",
|
|
8633
8674
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
8634
8675
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
8635
8676
|
"data-[side=bottom]:slide-in-from-top-2",
|
|
@@ -8645,7 +8686,7 @@ var SummaryChip = ({
|
|
|
8645
8686
|
onOpenChange: setDraftPickerOpen
|
|
8646
8687
|
}
|
|
8647
8688
|
) }),
|
|
8648
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex items-center justify-between p-base border-t border-
|
|
8689
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex items-center justify-between p-base border-t border-border", children: [
|
|
8649
8690
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex items-center gap-sm", children: [
|
|
8650
8691
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
8651
8692
|
PropertySelector,
|
|
@@ -8654,14 +8695,14 @@ var SummaryChip = ({
|
|
|
8654
8695
|
onSelect: handleAddFilter,
|
|
8655
8696
|
open: addSelectorOpen,
|
|
8656
8697
|
onOpenChange: setAddSelectorOpen,
|
|
8657
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("button", { type: "button", className: cn(ghostBtn2, "text-
|
|
8658
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_icons37.Icon, { icon: import_icons37.faPlusOutline, size: "sm", className: "text-
|
|
8698
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("button", { type: "button", className: cn(ghostBtn2, "text-foreground"), children: [
|
|
8699
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_icons37.Icon, { icon: import_icons37.faPlusOutline, size: "sm", className: "text-foreground" }),
|
|
8659
8700
|
"Add filter"
|
|
8660
8701
|
] })
|
|
8661
8702
|
}
|
|
8662
8703
|
),
|
|
8663
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("button", { type: "button", onClick: handleAddGroup, className: cn(ghostBtn2, "text-
|
|
8664
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_icons37.Icon, { icon: import_icons37.faPlusOutline, size: "sm", className: "text-
|
|
8704
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("button", { type: "button", onClick: handleAddGroup, className: cn(ghostBtn2, "text-foreground"), children: [
|
|
8705
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_icons37.Icon, { icon: import_icons37.faPlusOutline, size: "sm", className: "text-foreground" }),
|
|
8665
8706
|
"Add filters group"
|
|
8666
8707
|
] })
|
|
8667
8708
|
] }),
|
|
@@ -8673,9 +8714,9 @@ var SummaryChip = ({
|
|
|
8673
8714
|
onClearAll();
|
|
8674
8715
|
setOpen(false);
|
|
8675
8716
|
},
|
|
8676
|
-
className: cn(ghostBtn2, "text-
|
|
8717
|
+
className: cn(ghostBtn2, "text-destructive"),
|
|
8677
8718
|
children: [
|
|
8678
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_icons37.Icon, { icon: import_icons37.faXmarkOutline, size: "sm", className: "text-
|
|
8719
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_icons37.Icon, { icon: import_icons37.faXmarkOutline, size: "sm", className: "text-destructive" }),
|
|
8679
8720
|
"Clear filters"
|
|
8680
8721
|
]
|
|
8681
8722
|
}
|
|
@@ -8696,7 +8737,7 @@ var DraftRow2 = ({ properties, onSelect, open: openProp, onOpenChange }) => {
|
|
|
8696
8737
|
onOpenChange?.(v);
|
|
8697
8738
|
};
|
|
8698
8739
|
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex items-center gap-base w-full min-w-0", children: [
|
|
8699
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "shrink-0 w-[64px] flex items-center justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "text-xs font-
|
|
8740
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "shrink-0 w-[64px] flex items-center justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "text-xs font-medium leading-xs text-muted-foreground", children: "Where" }) }),
|
|
8700
8741
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(PropertySelector, { properties, onSelect: (p) => {
|
|
8701
8742
|
onSelect(p);
|
|
8702
8743
|
setOpen(false);
|
|
@@ -8706,13 +8747,13 @@ var DraftRow2 = ({ properties, onSelect, open: openProp, onOpenChange }) => {
|
|
|
8706
8747
|
type: "button",
|
|
8707
8748
|
className: cn(
|
|
8708
8749
|
"flex items-center gap-base px-base py-sm min-w-0",
|
|
8709
|
-
"bg-gradient-to-t from-
|
|
8710
|
-
"border border-
|
|
8711
|
-
"hover:from-
|
|
8750
|
+
"bg-gradient-to-t from-btn-outlined-neutral-bg-default to-btn-outlined-neutral-bg-gradient-to-default",
|
|
8751
|
+
"border border-btn-outlined-neutral-border-default rounded-md shadow-sm cursor-pointer transition-colors",
|
|
8752
|
+
"hover:from-btn-outlined-neutral-bg-hover hover:to-btn-outlined-neutral-bg-gradient-to-hover"
|
|
8712
8753
|
),
|
|
8713
8754
|
children: [
|
|
8714
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "text-sm font-regular leading-sm text-
|
|
8715
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_icons37.Icon, { icon: import_icons37.faChevronDownOutline, size: "xs", className: "shrink-0 text-
|
|
8755
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "text-sm font-regular leading-sm text-muted-foreground whitespace-nowrap", children: "Select property" }),
|
|
8756
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_icons37.Icon, { icon: import_icons37.faChevronDownOutline, size: "xs", className: "shrink-0 text-foreground" })
|
|
8716
8757
|
]
|
|
8717
8758
|
}
|
|
8718
8759
|
) })
|
|
@@ -8939,8 +8980,8 @@ var FilterSystem = ({
|
|
|
8939
8980
|
"button",
|
|
8940
8981
|
{
|
|
8941
8982
|
type: "button",
|
|
8942
|
-
className: "shrink-0 inline-flex items-center justify-center size-8 rounded-md border border-
|
|
8943
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_icons38.Icon, { icon: import_icons38.faPlusOutline, size: "sm", className: "text-
|
|
8983
|
+
className: "shrink-0 inline-flex items-center justify-center size-8 rounded-md border border-btn-outlined-neutral-border-default bg-gradient-to-t from-btn-outlined-neutral-bg-default from-[10%] to-btn-outlined-neutral-bg-gradient-to-default shadow-sm cursor-pointer transition-colors hover:from-btn-outlined-neutral-bg-hover hover:to-btn-outlined-neutral-bg-gradient-to-hover",
|
|
8984
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_icons38.Icon, { icon: import_icons38.faPlusOutline, size: "sm", className: "text-foreground" })
|
|
8944
8985
|
}
|
|
8945
8986
|
) : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(FilterBarButton, {})
|
|
8946
8987
|
}
|
|
@@ -8953,7 +8994,7 @@ var FilterSystem = ({
|
|
|
8953
8994
|
type: "button",
|
|
8954
8995
|
onClick: handleClearAll,
|
|
8955
8996
|
className: "shrink-0 flex items-center gap-sm px-base py-sm min-h-[32px] max-h-[32px] rounded-md cursor-pointer transition-colors text-btn-ghost-brand-text-default hover:bg-btn-ghost-brand-bg-hover hover:text-btn-ghost-brand-text-hover active:bg-btn-ghost-brand-bg-pressed active:text-btn-ghost-brand-text-pressed",
|
|
8956
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "text-sm font-
|
|
8997
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "text-sm font-medium leading-sm", children: "Clear" })
|
|
8957
8998
|
}
|
|
8958
8999
|
)
|
|
8959
9000
|
] }),
|
|
@@ -8985,7 +9026,7 @@ function buildFilterTooltip(nodes, properties) {
|
|
|
8985
9026
|
connector,
|
|
8986
9027
|
" "
|
|
8987
9028
|
] }),
|
|
8988
|
-
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "font-
|
|
9029
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "font-medium", children: prop.label }),
|
|
8989
9030
|
" ",
|
|
8990
9031
|
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "opacity-60", children: f.operator }),
|
|
8991
9032
|
" ",
|