@l3mpire/ui 2.19.1 → 2.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/USAGE.md +1 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +195 -125
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +195 -125
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
- package/src/styles/globals.css +1 -0
package/dist/index.mjs
CHANGED
|
@@ -27,7 +27,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
27
27
|
var badgeVariants = cva(
|
|
28
28
|
[
|
|
29
29
|
"inline-flex items-center justify-center whitespace-nowrap",
|
|
30
|
-
"font-
|
|
30
|
+
"font-medium",
|
|
31
31
|
"border border-transparent"
|
|
32
32
|
],
|
|
33
33
|
{
|
|
@@ -116,7 +116,7 @@ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
|
116
116
|
var buttonVariants = cva2(
|
|
117
117
|
[
|
|
118
118
|
"inline-flex items-center justify-center whitespace-nowrap",
|
|
119
|
-
"font-
|
|
119
|
+
"font-medium transition-colors",
|
|
120
120
|
"focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring",
|
|
121
121
|
"disabled:pointer-events-none",
|
|
122
122
|
"border",
|
|
@@ -420,7 +420,7 @@ var BrowserTabItem = React3.forwardRef(
|
|
|
420
420
|
},
|
|
421
421
|
onClick: (e) => e.stopPropagation(),
|
|
422
422
|
className: cn(
|
|
423
|
-
"text-sm font-
|
|
423
|
+
"text-sm font-medium leading-sm bg-transparent outline-none p-0 m-0",
|
|
424
424
|
"border-b border-browser-tab-item-border border-dashed border-t-0 border-l-0 border-r-0",
|
|
425
425
|
isActive ? "text-browser-tab-item-active-text" : "text-browser-tab-item-inactive-text"
|
|
426
426
|
),
|
|
@@ -430,7 +430,7 @@ var BrowserTabItem = React3.forwardRef(
|
|
|
430
430
|
"span",
|
|
431
431
|
{
|
|
432
432
|
className: cn(
|
|
433
|
-
"text-sm font-
|
|
433
|
+
"text-sm font-medium leading-sm whitespace-nowrap",
|
|
434
434
|
isActive ? "text-browser-tab-item-active-text" : "text-browser-tab-item-inactive-text"
|
|
435
435
|
),
|
|
436
436
|
onDoubleClick: (e) => {
|
|
@@ -619,7 +619,7 @@ var BrowserTab = React3.forwardRef(
|
|
|
619
619
|
"span",
|
|
620
620
|
{
|
|
621
621
|
className: cn(
|
|
622
|
-
"text-sm font-
|
|
622
|
+
"text-sm font-medium leading-sm whitespace-nowrap",
|
|
623
623
|
item.isActive ? "text-browser-tab-item-active-text" : "text-browser-tab-item-inactive-text"
|
|
624
624
|
),
|
|
625
625
|
children: item.label
|
|
@@ -667,8 +667,8 @@ import { Icon as Icon4 } from "@l3mpire/icons";
|
|
|
667
667
|
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
668
668
|
var textSm = "text-sm font-regular leading-sm";
|
|
669
669
|
var textXs = "text-xs font-regular leading-xs";
|
|
670
|
-
var textXsMedium = "text-xs font-
|
|
671
|
-
var textSmMedium = "text-sm font-
|
|
670
|
+
var textXsMedium = "text-xs font-medium leading-xs";
|
|
671
|
+
var textSmMedium = "text-sm font-medium leading-sm";
|
|
672
672
|
var containerStyle = [
|
|
673
673
|
"flex flex-col gap-base overflow-clip",
|
|
674
674
|
"bg-dropdown-bg",
|
|
@@ -1092,7 +1092,7 @@ import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
|
1092
1092
|
var linkVariants = cva4(
|
|
1093
1093
|
[
|
|
1094
1094
|
"inline-flex items-center",
|
|
1095
|
-
"font-
|
|
1095
|
+
"font-medium",
|
|
1096
1096
|
"transition-colors cursor-pointer",
|
|
1097
1097
|
"disabled:pointer-events-none",
|
|
1098
1098
|
"[&_svg]:pointer-events-none [&_svg]:shrink-0"
|
|
@@ -1224,7 +1224,7 @@ var InputLabel = React8.forwardRef(({ className, type = "default", disabled, inf
|
|
|
1224
1224
|
className: cn(
|
|
1225
1225
|
"inline-flex items-center gap-xs",
|
|
1226
1226
|
"text-xs",
|
|
1227
|
-
"font-
|
|
1227
|
+
"font-medium",
|
|
1228
1228
|
"leading-xs",
|
|
1229
1229
|
textColor2,
|
|
1230
1230
|
className
|
|
@@ -1303,7 +1303,7 @@ var typeIconMap = {
|
|
|
1303
1303
|
warning: { icon: faTriangleExclamationSolid, color: "text-info-message-warning-icon" },
|
|
1304
1304
|
empty: { icon: faCircleInfoSolid2, color: "text-info-message-empty-icon" }
|
|
1305
1305
|
};
|
|
1306
|
-
var titleStyle = "text-sm font-
|
|
1306
|
+
var titleStyle = "text-sm font-medium leading-sm text-info-message-title";
|
|
1307
1307
|
var descriptionStyle = "text-xs font-regular leading-xs text-info-message-description";
|
|
1308
1308
|
var closeButtonStyle = "inline-flex shrink-0 items-center justify-center p-xs rounded-base text-info-message-close hover:bg-black/5 transition-colors";
|
|
1309
1309
|
var typeLinkIntentMap = {
|
|
@@ -1408,7 +1408,7 @@ var typeIconMap2 = {
|
|
|
1408
1408
|
alert: { icon: faCircleExclamationSolid2, color: "text-toast-alert-icon" },
|
|
1409
1409
|
warning: { icon: faTriangleExclamationSolid2, color: "text-toast-warning-icon" }
|
|
1410
1410
|
};
|
|
1411
|
-
var titleStyle2 = "text-sm font-
|
|
1411
|
+
var titleStyle2 = "text-sm font-medium leading-sm text-toast-title";
|
|
1412
1412
|
var subtitleStyle = "text-sm font-regular leading-sm text-toast-subtitle";
|
|
1413
1413
|
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";
|
|
1414
1414
|
var ToastProvider = ToastPrimitive.Provider;
|
|
@@ -1483,7 +1483,7 @@ var trackStyles = {
|
|
|
1483
1483
|
]
|
|
1484
1484
|
};
|
|
1485
1485
|
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]";
|
|
1486
|
-
var labelBase = "cursor-pointer select-none text-sm font-
|
|
1486
|
+
var labelBase = "cursor-pointer select-none text-sm font-medium leading-sm";
|
|
1487
1487
|
var labelColor = {
|
|
1488
1488
|
default: "text-switch-label-text",
|
|
1489
1489
|
disabled: "pointer-events-none text-switch-label-disabled"
|
|
@@ -2028,7 +2028,7 @@ var Avatar = React15.forwardRef(({ className, size = "xl", shape = "rounded", sr
|
|
|
2028
2028
|
{
|
|
2029
2029
|
delayMs: 0,
|
|
2030
2030
|
className: cn(
|
|
2031
|
-
"font-
|
|
2031
|
+
"font-medium",
|
|
2032
2032
|
"text-avatar-fallback-text",
|
|
2033
2033
|
"select-none text-center",
|
|
2034
2034
|
initialsFontSize[size ?? "xl"]
|
|
@@ -2077,7 +2077,7 @@ var iconStyle = {
|
|
|
2077
2077
|
default: "text-checkbox-checked-icon",
|
|
2078
2078
|
disabled: "text-checkbox-disabled-icon"
|
|
2079
2079
|
};
|
|
2080
|
-
var labelBase2 = "cursor-pointer select-none overflow-hidden text-ellipsis whitespace-nowrap text-sm font-
|
|
2080
|
+
var labelBase2 = "cursor-pointer select-none overflow-hidden text-ellipsis whitespace-nowrap text-sm font-medium leading-sm";
|
|
2081
2081
|
var labelColor2 = {
|
|
2082
2082
|
default: "text-checkbox-label-default",
|
|
2083
2083
|
disabled: "pointer-events-none text-checkbox-label-disabled"
|
|
@@ -2165,7 +2165,7 @@ var dotStyle = {
|
|
|
2165
2165
|
default: "bg-radio-selected-dot",
|
|
2166
2166
|
disabled: "bg-radio-disabled-dot"
|
|
2167
2167
|
};
|
|
2168
|
-
var labelBase3 = "cursor-pointer select-none overflow-hidden text-ellipsis whitespace-nowrap text-sm font-
|
|
2168
|
+
var labelBase3 = "cursor-pointer select-none overflow-hidden text-ellipsis whitespace-nowrap text-sm font-medium leading-sm";
|
|
2169
2169
|
var labelColor3 = {
|
|
2170
2170
|
default: "text-radio-label-default",
|
|
2171
2171
|
disabled: "pointer-events-none text-radio-label-disabled"
|
|
@@ -2234,7 +2234,7 @@ var SidebarHeadingItem = React18.forwardRef(
|
|
|
2234
2234
|
ref,
|
|
2235
2235
|
className: cn(
|
|
2236
2236
|
"flex items-center w-full",
|
|
2237
|
-
"text-xs leading-xs font-
|
|
2237
|
+
"text-xs leading-xs font-medium text-sidebar-heading-text mb-base",
|
|
2238
2238
|
className
|
|
2239
2239
|
),
|
|
2240
2240
|
...props,
|
|
@@ -2324,7 +2324,7 @@ var SidebarItem = React19.forwardRef(
|
|
|
2324
2324
|
"span",
|
|
2325
2325
|
{
|
|
2326
2326
|
className: cn(
|
|
2327
|
-
"flex-1 min-w-0 truncate text-sm leading-sm font-
|
|
2327
|
+
"flex-1 min-w-0 truncate text-sm leading-sm font-medium",
|
|
2328
2328
|
textColorClass
|
|
2329
2329
|
),
|
|
2330
2330
|
children: label
|
|
@@ -2418,7 +2418,7 @@ var iconColor = {
|
|
|
2418
2418
|
};
|
|
2419
2419
|
var errorGuidance = {
|
|
2420
2420
|
icon: "shrink-0 text-select-error-icon",
|
|
2421
|
-
text: "text-xs font-
|
|
2421
|
+
text: "text-xs font-medium leading-xs text-select-error-text"
|
|
2422
2422
|
};
|
|
2423
2423
|
function SelectChips({ tags, onTagRemove, chipHeightPx }) {
|
|
2424
2424
|
const containerRef = React20.useRef(null);
|
|
@@ -2463,7 +2463,7 @@ function SelectChips({ tags, onTagRemove, chipHeightPx }) {
|
|
|
2463
2463
|
"inline-flex items-center gap-xs shrink-0",
|
|
2464
2464
|
"px-sm rounded-base",
|
|
2465
2465
|
"bg-tag-neutral-bg text-tag-neutral-text",
|
|
2466
|
-
"text-xs font-
|
|
2466
|
+
"text-xs font-medium leading-xs",
|
|
2467
2467
|
"whitespace-nowrap"
|
|
2468
2468
|
);
|
|
2469
2469
|
return /* @__PURE__ */ jsxs18("div", { className: "flex flex-1 items-center gap-xs min-w-0 overflow-hidden relative", children: [
|
|
@@ -2627,11 +2627,6 @@ var Select = React20.forwardRef(
|
|
|
2627
2627
|
children: hasValue ? value : placeholder
|
|
2628
2628
|
}
|
|
2629
2629
|
),
|
|
2630
|
-
!hasTags && multiCount != null && multiCount > 0 && /* @__PURE__ */ jsxs18("span", { className: "shrink-0 text-xs leading-normal text-select-text-multi", children: [
|
|
2631
|
-
"+",
|
|
2632
|
-
multiCount,
|
|
2633
|
-
" others"
|
|
2634
|
-
] }),
|
|
2635
2630
|
/* @__PURE__ */ jsx20(
|
|
2636
2631
|
Icon14,
|
|
2637
2632
|
{
|
|
@@ -2713,7 +2708,7 @@ var TabTrigger = React21.forwardRef(({ className, badge, children, ...props }, r
|
|
|
2713
2708
|
"span",
|
|
2714
2709
|
{
|
|
2715
2710
|
className: cn(
|
|
2716
|
-
"text-sm font-
|
|
2711
|
+
"text-sm font-medium leading-sm whitespace-nowrap",
|
|
2717
2712
|
"text-tab-item-default-text",
|
|
2718
2713
|
"group-data-[state=active]:text-tab-item-active-text"
|
|
2719
2714
|
),
|
|
@@ -2747,7 +2742,7 @@ var tagVariants = cva12(
|
|
|
2747
2742
|
"inline-flex items-center",
|
|
2748
2743
|
"gap-xs",
|
|
2749
2744
|
"rounded-base",
|
|
2750
|
-
"font-
|
|
2745
|
+
"font-medium",
|
|
2751
2746
|
"whitespace-nowrap"
|
|
2752
2747
|
],
|
|
2753
2748
|
{
|
|
@@ -2852,7 +2847,7 @@ var fieldStates = {
|
|
|
2852
2847
|
};
|
|
2853
2848
|
var errorGuidance2 = {
|
|
2854
2849
|
icon: "shrink-0 text-textarea-error-icon",
|
|
2855
|
-
text: "text-xs font-
|
|
2850
|
+
text: "text-xs font-medium leading-xs text-textarea-error-text"
|
|
2856
2851
|
};
|
|
2857
2852
|
var charLimitStyle = "shrink-0 text-right text-xs font-regular leading-xs text-textarea-char-limit";
|
|
2858
2853
|
function resolveState(error, success, disabled) {
|
|
@@ -2984,7 +2979,7 @@ var attachedButtonStyles = {
|
|
|
2984
2979
|
};
|
|
2985
2980
|
var errorGuidance3 = {
|
|
2986
2981
|
icon: "shrink-0 text-text-input-error-icon",
|
|
2987
|
-
text: "text-xs font-
|
|
2982
|
+
text: "text-xs font-medium leading-xs text-text-input-error-text"
|
|
2988
2983
|
};
|
|
2989
2984
|
function resolveState2(error, success, disabled) {
|
|
2990
2985
|
if (disabled) return "disabled";
|
|
@@ -3152,12 +3147,12 @@ var chipStyle = [
|
|
|
3152
3147
|
"inline-flex items-center gap-xs shrink-0",
|
|
3153
3148
|
"h-6 px-sm rounded-base",
|
|
3154
3149
|
"bg-tag-neutral-bg text-tag-neutral-text",
|
|
3155
|
-
"text-xs font-
|
|
3150
|
+
"text-xs font-medium leading-xs",
|
|
3156
3151
|
"whitespace-nowrap"
|
|
3157
3152
|
];
|
|
3158
3153
|
var errorGuidance4 = {
|
|
3159
3154
|
icon: "shrink-0 text-text-input-error-icon",
|
|
3160
|
-
text: "text-xs font-
|
|
3155
|
+
text: "text-xs font-medium leading-xs text-text-input-error-text"
|
|
3161
3156
|
};
|
|
3162
3157
|
var ChipInput = React25.forwardRef(
|
|
3163
3158
|
({
|
|
@@ -3352,7 +3347,7 @@ var wrapperStates3 = {
|
|
|
3352
3347
|
};
|
|
3353
3348
|
var errorGuidance5 = {
|
|
3354
3349
|
icon: "shrink-0 text-text-input-error-icon",
|
|
3355
|
-
text: "text-xs font-
|
|
3350
|
+
text: "text-xs font-medium leading-xs text-text-input-error-text"
|
|
3356
3351
|
};
|
|
3357
3352
|
var NumberInput = React26.forwardRef(
|
|
3358
3353
|
({
|
|
@@ -3533,6 +3528,7 @@ var typographyVariants = cva16("", {
|
|
|
3533
3528
|
},
|
|
3534
3529
|
weight: {
|
|
3535
3530
|
regular: "font-regular",
|
|
3531
|
+
medium: "font-medium",
|
|
3536
3532
|
semibold: "font-semibold",
|
|
3537
3533
|
bold: "font-bold"
|
|
3538
3534
|
}
|
|
@@ -3553,12 +3549,14 @@ var defaultElementMap = {
|
|
|
3553
3549
|
};
|
|
3554
3550
|
var Typography = React27.forwardRef(
|
|
3555
3551
|
({ className, variant = "md", weight, as, asChild = false, ...props }, ref) => {
|
|
3552
|
+
const isHeading = variant === "h1" || variant === "h2" || variant === "h3";
|
|
3553
|
+
const resolvedWeight = weight ?? (isHeading ? "semibold" : "regular");
|
|
3556
3554
|
const Comp = asChild ? Slot3 : as ?? defaultElementMap[variant ?? "md"] ?? "p";
|
|
3557
3555
|
return /* @__PURE__ */ jsx27(
|
|
3558
3556
|
Comp,
|
|
3559
3557
|
{
|
|
3560
3558
|
ref,
|
|
3561
|
-
className: cn(typographyVariants({ variant, weight }), className),
|
|
3559
|
+
className: cn(typographyVariants({ variant, weight: resolvedWeight }), className),
|
|
3562
3560
|
...props
|
|
3563
3561
|
}
|
|
3564
3562
|
);
|
|
@@ -3599,7 +3597,7 @@ var UserMenuInfoRow = React28.forwardRef(
|
|
|
3599
3597
|
children: [
|
|
3600
3598
|
avatar,
|
|
3601
3599
|
/* @__PURE__ */ jsxs25("div", { className: "flex flex-1 flex-col min-w-0", children: [
|
|
3602
|
-
/* @__PURE__ */ jsx28("span", { className: "text-sm font-
|
|
3600
|
+
/* @__PURE__ */ jsx28("span", { className: "text-sm font-medium leading-sm text-user-menu-name truncate", children: name }),
|
|
3603
3601
|
subtitle && /* @__PURE__ */ jsx28("span", { className: "text-xs font-regular leading-xs text-user-menu-subtitle truncate", children: subtitle })
|
|
3604
3602
|
] }),
|
|
3605
3603
|
action
|
|
@@ -3708,7 +3706,7 @@ var ModalTitle = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
3708
3706
|
DialogPrimitive.Title,
|
|
3709
3707
|
{
|
|
3710
3708
|
ref,
|
|
3711
|
-
className: cn("text-base font-
|
|
3709
|
+
className: cn("text-base font-medium leading-base text-modal-header-title", className),
|
|
3712
3710
|
...props
|
|
3713
3711
|
}
|
|
3714
3712
|
));
|
|
@@ -3870,7 +3868,7 @@ var EmptyState = React31.forwardRef(
|
|
|
3870
3868
|
"p",
|
|
3871
3869
|
{
|
|
3872
3870
|
className: cn(
|
|
3873
|
-
"font-
|
|
3871
|
+
"font-medium text-table-cell-text-primary",
|
|
3874
3872
|
isMd ? "text-base leading-base" : "text-sm leading-sm"
|
|
3875
3873
|
),
|
|
3876
3874
|
children: title
|
|
@@ -3939,7 +3937,7 @@ var AvatarCell = ({
|
|
|
3939
3937
|
}) => /* @__PURE__ */ jsxs29("div", { className: cn("flex items-center gap-md", className), children: [
|
|
3940
3938
|
/* @__PURE__ */ jsx32(Avatar, { initials: getInitials(name), src, alt: name, size: "lg", shape: "rounded" }),
|
|
3941
3939
|
/* @__PURE__ */ jsxs29("div", { className: "flex flex-col", children: [
|
|
3942
|
-
/* @__PURE__ */ jsx32("span", { className: "text-sm font-
|
|
3940
|
+
/* @__PURE__ */ jsx32("span", { className: "text-sm font-medium text-table-cell-text-primary leading-sm", children: name }),
|
|
3943
3941
|
subtitle && /* @__PURE__ */ jsx32("span", { className: "text-xs font-regular text-table-cell-text-secondary leading-xs", children: subtitle })
|
|
3944
3942
|
] })
|
|
3945
3943
|
] });
|
|
@@ -3977,7 +3975,7 @@ var NumberCell = ({
|
|
|
3977
3975
|
className
|
|
3978
3976
|
),
|
|
3979
3977
|
children: [
|
|
3980
|
-
/* @__PURE__ */ jsx32("span", { className: "text-sm font-
|
|
3978
|
+
/* @__PURE__ */ jsx32("span", { className: "text-sm font-medium text-table-cell-text-primary", children: formatted }),
|
|
3981
3979
|
secondaryStat && /* @__PURE__ */ jsx32(
|
|
3982
3980
|
"span",
|
|
3983
3981
|
{
|
|
@@ -4045,7 +4043,7 @@ var TextCell = ({
|
|
|
4045
4043
|
{
|
|
4046
4044
|
className: cn(
|
|
4047
4045
|
"text-sm",
|
|
4048
|
-
secondary ? "font-regular text-table-cell-text-secondary" : "font-
|
|
4046
|
+
secondary ? "font-regular text-table-cell-text-secondary" : "font-medium text-table-cell-text-primary",
|
|
4049
4047
|
className
|
|
4050
4048
|
),
|
|
4051
4049
|
children: value
|
|
@@ -4094,7 +4092,7 @@ var EditableCell = ({
|
|
|
4094
4092
|
{
|
|
4095
4093
|
ref: inputRef,
|
|
4096
4094
|
className: cn(
|
|
4097
|
-
"w-full bg-transparent text-sm font-
|
|
4095
|
+
"w-full bg-transparent text-sm font-medium text-table-cell-text-primary",
|
|
4098
4096
|
"outline-none border-b border-table-border py-0 h-[20px]",
|
|
4099
4097
|
className
|
|
4100
4098
|
),
|
|
@@ -4111,7 +4109,7 @@ var EditableCell = ({
|
|
|
4111
4109
|
role: "button",
|
|
4112
4110
|
tabIndex: 0,
|
|
4113
4111
|
className: cn(
|
|
4114
|
-
"text-sm font-
|
|
4112
|
+
"text-sm font-medium text-table-cell-text-primary cursor-text leading-sm h-[20px] inline-block",
|
|
4115
4113
|
className
|
|
4116
4114
|
),
|
|
4117
4115
|
onDoubleClick: () => setIsEditing(true),
|
|
@@ -4207,7 +4205,7 @@ var TableFooter = React33.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
4207
4205
|
{
|
|
4208
4206
|
ref,
|
|
4209
4207
|
className: cn(
|
|
4210
|
-
"border-t border-table-border bg-table-bg font-
|
|
4208
|
+
"border-t border-table-border bg-table-bg font-medium",
|
|
4211
4209
|
className
|
|
4212
4210
|
),
|
|
4213
4211
|
...props
|
|
@@ -4233,7 +4231,7 @@ var TableHead = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
4233
4231
|
{
|
|
4234
4232
|
ref,
|
|
4235
4233
|
className: cn(
|
|
4236
|
-
"group/head h-10 px-md py-md text-left align-middle text-xs font-
|
|
4234
|
+
"group/head h-10 px-md py-md text-left align-middle text-xs font-medium leading-xs",
|
|
4237
4235
|
"text-table-head-text bg-table-head-bg-default",
|
|
4238
4236
|
"hover:bg-table-head-bg-hover",
|
|
4239
4237
|
"border-b border-r border-table-border last:border-r-0",
|
|
@@ -4249,7 +4247,7 @@ var TableCell = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
4249
4247
|
{
|
|
4250
4248
|
ref,
|
|
4251
4249
|
className: cn(
|
|
4252
|
-
"px-md py-md align-middle text-sm font-
|
|
4250
|
+
"px-md py-md align-middle text-sm font-medium max-h-[52px]",
|
|
4253
4251
|
"text-table-cell-text-primary",
|
|
4254
4252
|
"border-b border-r border-table-border last:border-r-0",
|
|
4255
4253
|
"[&:has([role=checkbox])]:pr-0",
|
|
@@ -4348,7 +4346,7 @@ function ColumnFilterPopover({
|
|
|
4348
4346
|
),
|
|
4349
4347
|
onClick: (e) => e.stopPropagation(),
|
|
4350
4348
|
children: /* @__PURE__ */ jsxs30("div", { className: "flex flex-col gap-sm", children: [
|
|
4351
|
-
/* @__PURE__ */ jsx34("span", { className: "text-xs font-
|
|
4349
|
+
/* @__PURE__ */ jsx34("span", { className: "text-xs font-medium text-table-head-text", children: "Filter" }),
|
|
4352
4350
|
/* @__PURE__ */ jsx34(
|
|
4353
4351
|
"select",
|
|
4354
4352
|
{
|
|
@@ -5082,13 +5080,13 @@ var FilterChipSegment = React36.forwardRef(
|
|
|
5082
5080
|
"span",
|
|
5083
5081
|
{
|
|
5084
5082
|
className: cn(
|
|
5085
|
-
"text-sm font-
|
|
5083
|
+
"text-sm font-medium leading-sm whitespace-nowrap",
|
|
5086
5084
|
segmentType === "placeholder" ? "text-filter-chip-segment-placeholder" : "text-filter-chip-segment-text"
|
|
5087
5085
|
),
|
|
5088
5086
|
children: label
|
|
5089
5087
|
}
|
|
5090
5088
|
),
|
|
5091
|
-
badgeCount != null && badgeCount > 0 && /* @__PURE__ */ jsx36("span", { className: "flex items-center gap-2xs p-2xs rounded-xs bg-filter-chip-badge-bg", children: /* @__PURE__ */ jsx36("span", { className: "text-[10px] font-
|
|
5089
|
+
badgeCount != null && badgeCount > 0 && /* @__PURE__ */ jsx36("span", { className: "flex items-center gap-2xs p-2xs rounded-xs bg-filter-chip-badge-bg", children: /* @__PURE__ */ jsx36("span", { className: "text-[10px] font-medium leading-2xs text-filter-chip-badge-text", children: badgeCount }) }),
|
|
5092
5090
|
children
|
|
5093
5091
|
]
|
|
5094
5092
|
}
|
|
@@ -5492,7 +5490,7 @@ var SortButton = ({
|
|
|
5492
5490
|
className: "shrink-0 text-[var(--color-foreground)]"
|
|
5493
5491
|
}
|
|
5494
5492
|
),
|
|
5495
|
-
!iconOnly && /* @__PURE__ */ jsxs34("span", { className: "text-sm font-
|
|
5493
|
+
!iconOnly && /* @__PURE__ */ jsxs34("span", { className: "text-sm font-medium leading-sm whitespace-nowrap", children: [
|
|
5496
5494
|
/* @__PURE__ */ jsxs34("span", { className: "text-[var(--color-muted-foreground)]", children: [
|
|
5497
5495
|
"Sort by",
|
|
5498
5496
|
" "
|
|
@@ -5670,8 +5668,8 @@ var FilterBarButton = React40.forwardRef(({ className, count, iconOnly = false,
|
|
|
5670
5668
|
className: "shrink-0 text-[var(--color-foreground)]"
|
|
5671
5669
|
}
|
|
5672
5670
|
),
|
|
5673
|
-
!iconOnly && /* @__PURE__ */ jsx40("span", { className: "text-sm font-
|
|
5674
|
-
count != null && count > 0 && /* @__PURE__ */ jsx40("span", { className: "flex items-center p-2xs rounded-xs bg-filter-chip-badge-bg", children: /* @__PURE__ */ jsx40("span", { className: "text-[10px] font-
|
|
5671
|
+
!iconOnly && /* @__PURE__ */ jsx40("span", { className: "text-sm font-medium leading-sm whitespace-nowrap text-[var(--color-foreground)]", children: children ?? "Filters" }),
|
|
5672
|
+
count != null && count > 0 && /* @__PURE__ */ jsx40("span", { className: "flex items-center p-2xs rounded-xs bg-filter-chip-badge-bg", children: /* @__PURE__ */ jsx40("span", { className: "text-[10px] font-medium leading-2xs text-filter-chip-badge-text", children: count }) })
|
|
5675
5673
|
]
|
|
5676
5674
|
}
|
|
5677
5675
|
));
|
|
@@ -5709,7 +5707,7 @@ var SaveViewButton = React41.forwardRef(
|
|
|
5709
5707
|
"rounded-l-md -mr-px"
|
|
5710
5708
|
),
|
|
5711
5709
|
children: [
|
|
5712
|
-
/* @__PURE__ */ jsx41("span", { className: "text-sm font-
|
|
5710
|
+
/* @__PURE__ */ jsx41("span", { className: "text-sm font-medium leading-sm whitespace-nowrap text-[var(--color-btn-solid-brand-text-default)]", children: label }),
|
|
5713
5711
|
/* @__PURE__ */ jsx41("span", { className: "absolute inset-0 rounded-l-[11px] border border-[var(--color-btn-solid-brand-inner-border-default)] shadow-sm pointer-events-none" })
|
|
5714
5712
|
]
|
|
5715
5713
|
}
|
|
@@ -5787,7 +5785,7 @@ var OperatorSelector = ({
|
|
|
5787
5785
|
{
|
|
5788
5786
|
className: cn(
|
|
5789
5787
|
"text-sm font-regular leading-sm",
|
|
5790
|
-
op === activeOperator ? "text-[var(--color-foreground)] font-
|
|
5788
|
+
op === activeOperator ? "text-[var(--color-foreground)] font-medium" : "text-[var(--color-dropdown-item-text)]"
|
|
5791
5789
|
),
|
|
5792
5790
|
children: op
|
|
5793
5791
|
}
|
|
@@ -5823,7 +5821,7 @@ var OperatorList = ({
|
|
|
5823
5821
|
{
|
|
5824
5822
|
className: cn(
|
|
5825
5823
|
"text-sm font-regular leading-sm",
|
|
5826
|
-
op === activeOperator ? "text-[var(--color-foreground)] font-
|
|
5824
|
+
op === activeOperator ? "text-[var(--color-foreground)] font-medium" : "text-[var(--color-dropdown-item-text)]"
|
|
5827
5825
|
),
|
|
5828
5826
|
children: op
|
|
5829
5827
|
}
|
|
@@ -5846,7 +5844,7 @@ var halfInputClasses = [
|
|
|
5846
5844
|
"bg-[var(--color-background)] text-sm font-regular leading-sm text-[var(--color-foreground)]",
|
|
5847
5845
|
"focus:outline-none focus:ring-2 focus:ring-[var(--color-ring)]"
|
|
5848
5846
|
].join(" ");
|
|
5849
|
-
var applyBtnClasses = "self-end px-md py-sm text-sm font-
|
|
5847
|
+
var applyBtnClasses = "self-end px-md py-sm text-sm font-medium leading-sm text-[var(--color-primary-foreground)] bg-[var(--color-primary)] rounded-base cursor-pointer hover:opacity-90 transition-opacity";
|
|
5850
5848
|
|
|
5851
5849
|
// src/components/ui/filter/value-inputs/text-value-input.tsx
|
|
5852
5850
|
import { jsx as jsx43, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
@@ -6160,7 +6158,7 @@ var DatePickerDay = ({ date, isOutside }) => {
|
|
|
6160
6158
|
disabled: isOutside,
|
|
6161
6159
|
className: cn(
|
|
6162
6160
|
"relative flex flex-col items-center justify-center w-9 rounded-full p-2 cursor-pointer transition-colors",
|
|
6163
|
-
"text-sm font-
|
|
6161
|
+
"text-sm font-medium leading-sm text-center",
|
|
6164
6162
|
// Default
|
|
6165
6163
|
!isOutside && !isSelected && !isInRangeOrPreview && "text-datepicker-day-text-default hover:bg-datepicker-day-bg-hover",
|
|
6166
6164
|
// Outside month (disabled)
|
|
@@ -6231,7 +6229,7 @@ var DatePickerCalendar = React42.forwardRef(({ className, header, ...props }, re
|
|
|
6231
6229
|
header,
|
|
6232
6230
|
/* @__PURE__ */ jsxs40("div", { className: "flex flex-col gap-lg p-lg", children: [
|
|
6233
6231
|
/* @__PURE__ */ jsxs40("div", { className: "flex items-center justify-between", children: [
|
|
6234
|
-
/* @__PURE__ */ jsxs40("span", { className: "text-base font-
|
|
6232
|
+
/* @__PURE__ */ jsxs40("span", { className: "text-base font-medium leading-base text-datepicker-header-text", children: [
|
|
6235
6233
|
MONTH_NAMES[month],
|
|
6236
6234
|
" ",
|
|
6237
6235
|
year
|
|
@@ -6318,7 +6316,7 @@ var DatePickerSuggestions = React42.forwardRef(
|
|
|
6318
6316
|
),
|
|
6319
6317
|
...props,
|
|
6320
6318
|
children: [
|
|
6321
|
-
/* @__PURE__ */ jsx45("div", { className: "pt-lg px-base", children: /* @__PURE__ */ jsx45("div", { className: "flex items-center p-base rounded-base", children: /* @__PURE__ */ jsx45("span", { className: "flex-1 text-xs font-
|
|
6319
|
+
/* @__PURE__ */ jsx45("div", { className: "pt-lg px-base", children: /* @__PURE__ */ jsx45("div", { className: "flex items-center p-base rounded-base", children: /* @__PURE__ */ jsx45("span", { className: "flex-1 text-xs font-medium leading-xs text-datepicker-suggestion-heading uppercase truncate", children: "Suggestions" }) }) }),
|
|
6322
6320
|
/* @__PURE__ */ jsx45("div", { className: "flex flex-1 flex-col p-base min-w-[222px]", children: suggestions.map((suggestion, i) => /* @__PURE__ */ jsxs40(
|
|
6323
6321
|
"button",
|
|
6324
6322
|
{
|
|
@@ -6512,7 +6510,7 @@ var PresetTagsValueInput = ({
|
|
|
6512
6510
|
onSubmit,
|
|
6513
6511
|
className
|
|
6514
6512
|
}) => /* @__PURE__ */ jsx46("div", { className: cn("flex flex-col gap-base p-base max-w-[280px]", className), children: RELATIVE_DATE_PRESETS.map((group) => /* @__PURE__ */ jsxs41("div", { className: "flex flex-col gap-xs", children: [
|
|
6515
|
-
/* @__PURE__ */ jsx46("span", { className: "text-xs font-
|
|
6513
|
+
/* @__PURE__ */ jsx46("span", { className: "text-xs font-medium leading-xs text-[var(--color-muted-foreground)] uppercase px-xs", children: group.group }),
|
|
6516
6514
|
/* @__PURE__ */ jsx46("div", { className: "flex flex-wrap gap-xs", children: group.options.map((preset) => /* @__PURE__ */ jsx46(
|
|
6517
6515
|
"button",
|
|
6518
6516
|
{
|
|
@@ -6979,7 +6977,7 @@ var PropertySelector = ({
|
|
|
6979
6977
|
}
|
|
6980
6978
|
),
|
|
6981
6979
|
/* @__PURE__ */ jsx50("span", { className: "flex-1 text-sm font-regular leading-sm text-[var(--color-dropdown-item-text)] text-left truncate", children: g.groupLabel }),
|
|
6982
|
-
/* @__PURE__ */ jsx50("span", { className: "text-xs font-
|
|
6980
|
+
/* @__PURE__ */ jsx50("span", { className: "text-xs font-medium leading-xs text-[var(--color-muted-foreground)]", children: g.count }),
|
|
6983
6981
|
/* @__PURE__ */ jsx50(
|
|
6984
6982
|
Icon28,
|
|
6985
6983
|
{
|
|
@@ -7017,7 +7015,7 @@ var PropertySelector = ({
|
|
|
7017
7015
|
className: "shrink-0 text-[var(--color-dropdown-item-icon)]"
|
|
7018
7016
|
}
|
|
7019
7017
|
),
|
|
7020
|
-
/* @__PURE__ */ jsx50("span", { className: "flex-1 text-xs font-
|
|
7018
|
+
/* @__PURE__ */ jsx50("span", { className: "flex-1 text-xs font-medium leading-xs text-[var(--color-muted-foreground)] text-left truncate", children: activeGroupInfo?.groupLabel })
|
|
7021
7019
|
]
|
|
7022
7020
|
}
|
|
7023
7021
|
),
|
|
@@ -7236,7 +7234,7 @@ var FilterEditor = ({
|
|
|
7236
7234
|
className: "shrink-0 text-[var(--color-dropdown-item-icon)]"
|
|
7237
7235
|
}
|
|
7238
7236
|
),
|
|
7239
|
-
/* @__PURE__ */ jsx52("span", { className: "text-sm font-
|
|
7237
|
+
/* @__PURE__ */ jsx52("span", { className: "text-sm font-medium leading-sm text-[var(--color-foreground)]", children: propertyDef.label }),
|
|
7240
7238
|
localOperator && view === "value" && /* @__PURE__ */ jsxs46(
|
|
7241
7239
|
"button",
|
|
7242
7240
|
{
|
|
@@ -7531,8 +7529,8 @@ var AdvancedChip = React47.forwardRef(
|
|
|
7531
7529
|
className: "shrink-0 text-[var(--color-foreground)]"
|
|
7532
7530
|
}
|
|
7533
7531
|
),
|
|
7534
|
-
/* @__PURE__ */ jsx54("span", { className: "text-sm font-
|
|
7535
|
-
count > 0 && /* @__PURE__ */ jsx54("span", { className: "flex items-center p-2xs rounded-xs bg-filter-chip-badge-bg", children: /* @__PURE__ */ jsx54("span", { className: "text-[10px] font-
|
|
7532
|
+
/* @__PURE__ */ jsx54("span", { className: "text-sm font-medium leading-sm whitespace-nowrap text-[var(--color-foreground)]", children: "Advanced filters" }),
|
|
7533
|
+
count > 0 && /* @__PURE__ */ jsx54("span", { className: "flex items-center p-2xs rounded-xs bg-filter-chip-badge-bg", children: /* @__PURE__ */ jsx54("span", { className: "text-[10px] font-medium leading-2xs text-filter-chip-badge-text", children: count }) })
|
|
7536
7534
|
]
|
|
7537
7535
|
}
|
|
7538
7536
|
),
|
|
@@ -7565,6 +7563,7 @@ import { Icon as Icon35, faPlusOutline as faPlusOutline3, faChevronDownOutline a
|
|
|
7565
7563
|
// src/components/ui/filter/advanced-row.tsx
|
|
7566
7564
|
import * as React49 from "react";
|
|
7567
7565
|
import * as PopoverPrimitive11 from "@radix-ui/react-popover";
|
|
7566
|
+
import * as TooltipPrimitive3 from "@radix-ui/react-tooltip";
|
|
7568
7567
|
import { Icon as Icon33, faChevronDownOutline as faChevronDownOutline2 } from "@l3mpire/icons";
|
|
7569
7568
|
|
|
7570
7569
|
// src/components/ui/filter/filter-node-actions.tsx
|
|
@@ -7719,22 +7718,20 @@ var AdvancedRow = ({
|
|
|
7719
7718
|
const badgeCount = getBadgeCount(condition.value);
|
|
7720
7719
|
const hasValue = displayValue != null;
|
|
7721
7720
|
return /* @__PURE__ */ jsxs50("div", { className: "flex items-center gap-base w-full min-w-0", children: [
|
|
7722
|
-
connector === "Where" ? /* @__PURE__ */ jsx56("div", { className: "shrink-0 w-[64px] flex items-center justify-end", children: /* @__PURE__ */ jsx56("span", { className: "text-xs font-
|
|
7723
|
-
"
|
|
7724
|
-
{
|
|
7725
|
-
|
|
7726
|
-
|
|
7727
|
-
|
|
7728
|
-
|
|
7729
|
-
|
|
7730
|
-
|
|
7731
|
-
|
|
7732
|
-
|
|
7733
|
-
|
|
7734
|
-
|
|
7735
|
-
|
|
7736
|
-
}
|
|
7737
|
-
),
|
|
7721
|
+
connector === "Where" ? /* @__PURE__ */ jsx56("div", { className: "shrink-0 w-[64px] flex items-center justify-end", children: /* @__PURE__ */ jsx56("span", { className: "text-xs font-medium leading-xs text-[var(--color-muted-foreground)]", children: "Where" }) }) : /* @__PURE__ */ jsx56("div", { className: "shrink-0 w-[64px] flex items-center justify-end", children: /* @__PURE__ */ jsx56(TooltipPrimitive3.Provider, { delayDuration: 200, children: /* @__PURE__ */ jsxs50(TooltipPrimitive3.Root, { children: [
|
|
7722
|
+
/* @__PURE__ */ jsx56(TooltipPrimitive3.Trigger, { asChild: true, children: /* @__PURE__ */ jsx56("span", { className: "text-xs font-medium leading-xs text-[var(--color-muted-foreground)] cursor-default", children: connector }) }),
|
|
7723
|
+
/* @__PURE__ */ jsx56(TooltipPrimitive3.Portal, { children: /* @__PURE__ */ jsxs50(
|
|
7724
|
+
TooltipPrimitive3.Content,
|
|
7725
|
+
{
|
|
7726
|
+
sideOffset: 4,
|
|
7727
|
+
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]",
|
|
7728
|
+
children: [
|
|
7729
|
+
'"Or" operator coming soon',
|
|
7730
|
+
/* @__PURE__ */ jsx56(TooltipPrimitive3.Arrow, { className: "fill-tooltip-default-bg" })
|
|
7731
|
+
]
|
|
7732
|
+
}
|
|
7733
|
+
) })
|
|
7734
|
+
] }) }) }),
|
|
7738
7735
|
/* @__PURE__ */ jsxs50(PopoverPrimitive11.Root, { open: propertyOpen, onOpenChange: setPropertyOpen, children: [
|
|
7739
7736
|
/* @__PURE__ */ jsx56(PopoverPrimitive11.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs50("button", { type: "button", className: cn(selectBtnStyle, "min-w-0"), children: [
|
|
7740
7737
|
/* @__PURE__ */ jsx56(Icon33, { icon: propertyDef.icon, size: "sm", className: "shrink-0 text-[var(--color-muted-foreground)]" }),
|
|
@@ -7828,14 +7825,19 @@ var AdvancedRow = ({
|
|
|
7828
7825
|
);
|
|
7829
7826
|
}
|
|
7830
7827
|
const dateWide = inputType === "DatePicker" || inputType === "DateRange";
|
|
7828
|
+
const isMulti = inputType === "MultiSelect" || inputType === "MultiRelationPicker";
|
|
7829
|
+
const multiTags = isMulti && Array.isArray(condition.value) ? condition.value.map((v) => {
|
|
7830
|
+
const dyn = propertyDef.dynamicOptions?.find((o) => o.value === v);
|
|
7831
|
+
return dyn ? dyn.label : v;
|
|
7832
|
+
}) : null;
|
|
7831
7833
|
return /* @__PURE__ */ jsxs50(PopoverPrimitive11.Root, { open: valueOpen, onOpenChange: setValueOpen, children: [
|
|
7832
7834
|
/* @__PURE__ */ jsx56(PopoverPrimitive11.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs50(
|
|
7833
7835
|
"button",
|
|
7834
7836
|
{
|
|
7835
7837
|
type: "button",
|
|
7836
|
-
className: cn(selectBtnStyle, "flex-1 min-w-[80px] justify-between"),
|
|
7838
|
+
className: cn(selectBtnStyle, "flex-1 min-w-[80px] justify-between overflow-hidden"),
|
|
7837
7839
|
children: [
|
|
7838
|
-
/* @__PURE__ */ jsx56(
|
|
7840
|
+
multiTags && multiTags.length > 0 ? /* @__PURE__ */ jsx56(ValueTagRow, { tags: multiTags }) : /* @__PURE__ */ jsx56(
|
|
7839
7841
|
"span",
|
|
7840
7842
|
{
|
|
7841
7843
|
className: cn(
|
|
@@ -7846,20 +7848,14 @@ var AdvancedRow = ({
|
|
|
7846
7848
|
children: hasValue ? displayValue : "Select a value"
|
|
7847
7849
|
}
|
|
7848
7850
|
),
|
|
7849
|
-
/* @__PURE__ */
|
|
7850
|
-
|
|
7851
|
-
|
|
7852
|
-
|
|
7853
|
-
|
|
7854
|
-
|
|
7855
|
-
|
|
7856
|
-
|
|
7857
|
-
icon: faChevronDownOutline2,
|
|
7858
|
-
size: "xs",
|
|
7859
|
-
className: "text-[var(--color-foreground)]"
|
|
7860
|
-
}
|
|
7861
|
-
)
|
|
7862
|
-
] })
|
|
7851
|
+
/* @__PURE__ */ jsx56(
|
|
7852
|
+
Icon33,
|
|
7853
|
+
{
|
|
7854
|
+
icon: faChevronDownOutline2,
|
|
7855
|
+
size: "xs",
|
|
7856
|
+
className: "shrink-0 text-[var(--color-foreground)]"
|
|
7857
|
+
}
|
|
7858
|
+
)
|
|
7863
7859
|
]
|
|
7864
7860
|
}
|
|
7865
7861
|
) }),
|
|
@@ -7905,9 +7901,85 @@ var AdvancedRow = ({
|
|
|
7905
7901
|
] });
|
|
7906
7902
|
};
|
|
7907
7903
|
AdvancedRow.displayName = "AdvancedRow";
|
|
7904
|
+
var tagChip = cn(
|
|
7905
|
+
"inline-flex items-center shrink-0 px-sm rounded-base",
|
|
7906
|
+
"bg-tag-neutral-bg text-tag-neutral-text",
|
|
7907
|
+
"text-xs font-medium leading-xs whitespace-nowrap",
|
|
7908
|
+
"h-5"
|
|
7909
|
+
);
|
|
7910
|
+
function ValueTagRow({ tags }) {
|
|
7911
|
+
const containerRef = React49.useRef(null);
|
|
7912
|
+
const measureRef = React49.useRef(null);
|
|
7913
|
+
const [visibleCount, setVisibleCount] = React49.useState(tags.length);
|
|
7914
|
+
React49.useLayoutEffect(() => {
|
|
7915
|
+
const container = containerRef.current;
|
|
7916
|
+
const measureRow = measureRef.current;
|
|
7917
|
+
if (!container || !measureRow) return;
|
|
7918
|
+
const measure = () => {
|
|
7919
|
+
const containerWidth = container.getBoundingClientRect().width;
|
|
7920
|
+
const chips = Array.from(measureRow.children);
|
|
7921
|
+
const overflowBadgeWidth = 32;
|
|
7922
|
+
let usedWidth = 0;
|
|
7923
|
+
let count = 0;
|
|
7924
|
+
for (const chip of chips) {
|
|
7925
|
+
const chipWidth = chip.getBoundingClientRect().width;
|
|
7926
|
+
const gap = count > 0 ? 4 : 0;
|
|
7927
|
+
const projected = usedWidth + gap + chipWidth;
|
|
7928
|
+
const remaining = tags.length - (count + 1);
|
|
7929
|
+
const total = projected + (remaining > 0 ? 4 + overflowBadgeWidth : 0);
|
|
7930
|
+
if (total <= containerWidth) {
|
|
7931
|
+
usedWidth = projected;
|
|
7932
|
+
count++;
|
|
7933
|
+
} else {
|
|
7934
|
+
break;
|
|
7935
|
+
}
|
|
7936
|
+
}
|
|
7937
|
+
setVisibleCount(Math.max(1, count));
|
|
7938
|
+
};
|
|
7939
|
+
measure();
|
|
7940
|
+
const observer = new ResizeObserver(measure);
|
|
7941
|
+
observer.observe(container);
|
|
7942
|
+
return () => observer.disconnect();
|
|
7943
|
+
}, [tags]);
|
|
7944
|
+
const overflowCount = tags.length - visibleCount;
|
|
7945
|
+
const overflowTags = tags.slice(visibleCount);
|
|
7946
|
+
return /* @__PURE__ */ jsxs50("div", { className: "flex flex-1 items-center gap-xs min-w-0 overflow-hidden relative", children: [
|
|
7947
|
+
/* @__PURE__ */ jsx56(
|
|
7948
|
+
"div",
|
|
7949
|
+
{
|
|
7950
|
+
ref: measureRef,
|
|
7951
|
+
"aria-hidden": true,
|
|
7952
|
+
className: "absolute flex items-center gap-xs pointer-events-none",
|
|
7953
|
+
style: { visibility: "hidden", whiteSpace: "nowrap", top: 0, left: 0 },
|
|
7954
|
+
children: tags.map((t) => /* @__PURE__ */ jsx56("span", { className: tagChip, children: t }, t))
|
|
7955
|
+
}
|
|
7956
|
+
),
|
|
7957
|
+
/* @__PURE__ */ jsxs50("div", { ref: containerRef, className: "flex flex-1 items-center gap-xs overflow-hidden", children: [
|
|
7958
|
+
tags.slice(0, visibleCount).map((t) => /* @__PURE__ */ jsx56("span", { className: tagChip, children: t }, t)),
|
|
7959
|
+
overflowCount > 0 && /* @__PURE__ */ jsx56(TooltipPrimitive3.Provider, { delayDuration: 200, children: /* @__PURE__ */ jsxs50(TooltipPrimitive3.Root, { children: [
|
|
7960
|
+
/* @__PURE__ */ jsx56(TooltipPrimitive3.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs50("span", { className: cn(tagChip, "cursor-default bg-filter-chip-badge-bg text-filter-chip-badge-text"), children: [
|
|
7961
|
+
"+",
|
|
7962
|
+
overflowCount
|
|
7963
|
+
] }) }),
|
|
7964
|
+
/* @__PURE__ */ jsx56(TooltipPrimitive3.Portal, { children: /* @__PURE__ */ jsxs50(
|
|
7965
|
+
TooltipPrimitive3.Content,
|
|
7966
|
+
{
|
|
7967
|
+
sideOffset: 4,
|
|
7968
|
+
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]",
|
|
7969
|
+
children: [
|
|
7970
|
+
overflowTags.map((t) => /* @__PURE__ */ jsx56("span", { children: t }, t)),
|
|
7971
|
+
/* @__PURE__ */ jsx56(TooltipPrimitive3.Arrow, { className: "fill-tooltip-default-bg" })
|
|
7972
|
+
]
|
|
7973
|
+
}
|
|
7974
|
+
) })
|
|
7975
|
+
] }) })
|
|
7976
|
+
] })
|
|
7977
|
+
] });
|
|
7978
|
+
}
|
|
7908
7979
|
|
|
7909
7980
|
// src/components/ui/filter/advanced-group.tsx
|
|
7910
7981
|
import * as React50 from "react";
|
|
7982
|
+
import * as TooltipPrimitive4 from "@radix-ui/react-tooltip";
|
|
7911
7983
|
import { Icon as Icon34, faPlusOutline as faPlusOutline2 } from "@l3mpire/icons";
|
|
7912
7984
|
import { jsx as jsx57, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
7913
7985
|
var AdvancedGroup = ({
|
|
@@ -7922,22 +7994,20 @@ var AdvancedGroup = ({
|
|
|
7922
7994
|
}) => {
|
|
7923
7995
|
const [addOpen, setAddOpen] = React50.useState(false);
|
|
7924
7996
|
return /* @__PURE__ */ jsxs51("div", { className: "flex items-start gap-base w-full min-w-0", children: [
|
|
7925
|
-
connector === "Where" ? /* @__PURE__ */ jsx57("div", { className: "shrink-0 w-[64px] flex items-center justify-end pt-base", children: /* @__PURE__ */ jsx57("span", { className: "text-xs font-
|
|
7926
|
-
"
|
|
7927
|
-
{
|
|
7928
|
-
|
|
7929
|
-
|
|
7930
|
-
|
|
7931
|
-
|
|
7932
|
-
|
|
7933
|
-
|
|
7934
|
-
|
|
7935
|
-
|
|
7936
|
-
|
|
7937
|
-
|
|
7938
|
-
|
|
7939
|
-
}
|
|
7940
|
-
) }),
|
|
7997
|
+
connector === "Where" ? /* @__PURE__ */ jsx57("div", { className: "shrink-0 w-[64px] flex items-center justify-end pt-base", children: /* @__PURE__ */ jsx57("span", { className: "text-xs font-medium leading-xs text-[var(--color-muted-foreground)]", children: "Where" }) }) : /* @__PURE__ */ jsx57("div", { className: "shrink-0 w-[64px] flex items-center justify-end pt-base", children: /* @__PURE__ */ jsx57(TooltipPrimitive4.Provider, { delayDuration: 200, children: /* @__PURE__ */ jsxs51(TooltipPrimitive4.Root, { children: [
|
|
7998
|
+
/* @__PURE__ */ jsx57(TooltipPrimitive4.Trigger, { asChild: true, children: /* @__PURE__ */ jsx57("span", { className: "text-xs font-medium leading-xs text-[var(--color-muted-foreground)] cursor-default", children: connector }) }),
|
|
7999
|
+
/* @__PURE__ */ jsx57(TooltipPrimitive4.Portal, { children: /* @__PURE__ */ jsxs51(
|
|
8000
|
+
TooltipPrimitive4.Content,
|
|
8001
|
+
{
|
|
8002
|
+
sideOffset: 4,
|
|
8003
|
+
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]",
|
|
8004
|
+
children: [
|
|
8005
|
+
'"Or" operator coming soon',
|
|
8006
|
+
/* @__PURE__ */ jsx57(TooltipPrimitive4.Arrow, { className: "fill-tooltip-default-bg" })
|
|
8007
|
+
]
|
|
8008
|
+
}
|
|
8009
|
+
) })
|
|
8010
|
+
] }) }) }),
|
|
7941
8011
|
/* @__PURE__ */ jsxs51("div", { className: "flex-1 min-w-0 flex flex-col gap-base p-base border border-[var(--color-border)] rounded-md bg-[var(--color-secondary,var(--color-accent))]", children: [
|
|
7942
8012
|
children,
|
|
7943
8013
|
onAddFilter && properties && /* @__PURE__ */ jsx57(
|
|
@@ -7954,7 +8024,7 @@ var AdvancedGroup = ({
|
|
|
7954
8024
|
"button",
|
|
7955
8025
|
{
|
|
7956
8026
|
type: "button",
|
|
7957
|
-
className: "flex items-center gap-sm px-base py-sm text-sm font-
|
|
8027
|
+
className: "flex items-center gap-sm px-base py-sm text-sm font-medium leading-sm text-[var(--color-muted-foreground)] cursor-pointer transition-colors rounded-md hover:bg-[var(--color-accent)] hover:text-[var(--color-foreground)] w-fit",
|
|
7958
8028
|
children: [
|
|
7959
8029
|
/* @__PURE__ */ jsx57(Icon34, { icon: faPlusOutline2, size: "sm" }),
|
|
7960
8030
|
"Add filter"
|
|
@@ -7982,7 +8052,7 @@ import { jsx as jsx58, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
|
7982
8052
|
var ghostBtn = [
|
|
7983
8053
|
"flex items-center gap-sm px-base py-sm",
|
|
7984
8054
|
"min-h-[32px]",
|
|
7985
|
-
"cursor-pointer transition-colors text-sm font-
|
|
8055
|
+
"cursor-pointer transition-colors text-sm font-medium leading-sm",
|
|
7986
8056
|
"rounded-md hover:bg-[var(--color-accent)]"
|
|
7987
8057
|
];
|
|
7988
8058
|
var AdvancedPopover = ({
|
|
@@ -8224,7 +8294,7 @@ var DraftRow = ({
|
|
|
8224
8294
|
onOpenChange?.(v);
|
|
8225
8295
|
};
|
|
8226
8296
|
return /* @__PURE__ */ jsxs52("div", { className: "flex items-center gap-base w-full min-w-0", children: [
|
|
8227
|
-
/* @__PURE__ */ jsx58("div", { className: "shrink-0 w-[64px] flex items-center justify-end", children: /* @__PURE__ */ jsx58("span", { className: "text-xs font-
|
|
8297
|
+
/* @__PURE__ */ jsx58("div", { className: "shrink-0 w-[64px] flex items-center justify-end", children: /* @__PURE__ */ jsx58("span", { className: "text-xs font-medium leading-xs text-[var(--color-muted-foreground)]", children: "Where" }) }),
|
|
8228
8298
|
/* @__PURE__ */ jsx58(
|
|
8229
8299
|
PropertySelector,
|
|
8230
8300
|
{
|
|
@@ -8267,13 +8337,13 @@ var DraftRow = ({
|
|
|
8267
8337
|
// src/components/ui/filter/summary-chip.tsx
|
|
8268
8338
|
import * as React52 from "react";
|
|
8269
8339
|
import * as PopoverPrimitive13 from "@radix-ui/react-popover";
|
|
8270
|
-
import * as
|
|
8340
|
+
import * as TooltipPrimitive5 from "@radix-ui/react-tooltip";
|
|
8271
8341
|
import { Icon as Icon36, faFilterOutline as faFilterOutline6, faPlusOutline as faPlusOutline4, faChevronDownOutline as faChevronDownOutline4, faXmarkOutline as faXmarkOutline5 } from "@l3mpire/icons";
|
|
8272
8342
|
import { jsx as jsx59, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
8273
8343
|
var ghostBtn2 = [
|
|
8274
8344
|
"flex items-center gap-sm px-base py-sm",
|
|
8275
8345
|
"min-h-[32px]",
|
|
8276
|
-
"cursor-pointer transition-colors text-sm font-
|
|
8346
|
+
"cursor-pointer transition-colors text-sm font-medium leading-sm",
|
|
8277
8347
|
"rounded-md hover:bg-[var(--color-accent)]"
|
|
8278
8348
|
];
|
|
8279
8349
|
var SummaryChip = ({
|
|
@@ -8443,22 +8513,22 @@ var SummaryChip = ({
|
|
|
8443
8513
|
),
|
|
8444
8514
|
children: [
|
|
8445
8515
|
/* @__PURE__ */ jsx59(Icon36, { icon: faFilterOutline6, size: "sm", className: "shrink-0 text-[var(--color-foreground)]" }),
|
|
8446
|
-
/* @__PURE__ */ jsx59("span", { className: "text-sm font-
|
|
8447
|
-
count > 0 && /* @__PURE__ */ jsx59("span", { className: "flex items-center p-2xs rounded-xs bg-filter-chip-badge-bg", children: /* @__PURE__ */ jsx59("span", { className: "text-[10px] font-
|
|
8516
|
+
/* @__PURE__ */ jsx59("span", { className: "text-sm font-medium leading-sm whitespace-nowrap text-[var(--color-foreground)]", children: "Filters" }),
|
|
8517
|
+
count > 0 && /* @__PURE__ */ jsx59("span", { className: "flex items-center p-2xs rounded-xs bg-filter-chip-badge-bg", children: /* @__PURE__ */ jsx59("span", { className: "text-[10px] font-medium leading-2xs text-filter-chip-badge-text", children: count }) })
|
|
8448
8518
|
]
|
|
8449
8519
|
}
|
|
8450
8520
|
);
|
|
8451
8521
|
const hasTooltip = tooltipContent && !open;
|
|
8452
|
-
return /* @__PURE__ */ jsx59(
|
|
8453
|
-
/* @__PURE__ */ jsx59(
|
|
8454
|
-
hasTooltip && /* @__PURE__ */ jsx59(
|
|
8455
|
-
|
|
8522
|
+
return /* @__PURE__ */ jsx59(TooltipPrimitive5.Provider, { delayDuration: 300, children: /* @__PURE__ */ jsx59(TooltipPrimitive5.Root, { open: hasTooltip ? void 0 : false, children: /* @__PURE__ */ jsxs53(PopoverPrimitive13.Root, { open, onOpenChange: setOpen, children: [
|
|
8523
|
+
/* @__PURE__ */ jsx59(TooltipPrimitive5.Trigger, { asChild: true, children: /* @__PURE__ */ jsx59(PopoverPrimitive13.Trigger, { asChild: true, children: trigger }) }),
|
|
8524
|
+
hasTooltip && /* @__PURE__ */ jsx59(TooltipPrimitive5.Portal, { children: /* @__PURE__ */ jsxs53(
|
|
8525
|
+
TooltipPrimitive5.Content,
|
|
8456
8526
|
{
|
|
8457
8527
|
sideOffset: 4,
|
|
8458
8528
|
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]",
|
|
8459
8529
|
children: [
|
|
8460
8530
|
tooltipContent,
|
|
8461
|
-
/* @__PURE__ */ jsx59(
|
|
8531
|
+
/* @__PURE__ */ jsx59(TooltipPrimitive5.Arrow, { className: "fill-tooltip-default-bg" })
|
|
8462
8532
|
]
|
|
8463
8533
|
}
|
|
8464
8534
|
) }),
|
|
@@ -8539,7 +8609,7 @@ var DraftRow2 = ({ properties, onSelect, open: openProp, onOpenChange }) => {
|
|
|
8539
8609
|
onOpenChange?.(v);
|
|
8540
8610
|
};
|
|
8541
8611
|
return /* @__PURE__ */ jsxs53("div", { className: "flex items-center gap-base w-full min-w-0", children: [
|
|
8542
|
-
/* @__PURE__ */ jsx59("div", { className: "shrink-0 w-[64px] flex items-center justify-end", children: /* @__PURE__ */ jsx59("span", { className: "text-xs font-
|
|
8612
|
+
/* @__PURE__ */ jsx59("div", { className: "shrink-0 w-[64px] flex items-center justify-end", children: /* @__PURE__ */ jsx59("span", { className: "text-xs font-medium leading-xs text-[var(--color-muted-foreground)]", children: "Where" }) }),
|
|
8543
8613
|
/* @__PURE__ */ jsx59(PropertySelector, { properties, onSelect: (p) => {
|
|
8544
8614
|
onSelect(p);
|
|
8545
8615
|
setOpen(false);
|
|
@@ -8796,7 +8866,7 @@ var FilterSystem = ({
|
|
|
8796
8866
|
type: "button",
|
|
8797
8867
|
onClick: handleClearAll,
|
|
8798
8868
|
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",
|
|
8799
|
-
children: /* @__PURE__ */ jsx60("span", { className: "text-sm font-
|
|
8869
|
+
children: /* @__PURE__ */ jsx60("span", { className: "text-sm font-medium leading-sm", children: "Clear" })
|
|
8800
8870
|
}
|
|
8801
8871
|
)
|
|
8802
8872
|
] }),
|
|
@@ -8828,7 +8898,7 @@ function buildFilterTooltip(nodes, properties) {
|
|
|
8828
8898
|
connector,
|
|
8829
8899
|
" "
|
|
8830
8900
|
] }),
|
|
8831
|
-
/* @__PURE__ */ jsx60("span", { className: "font-
|
|
8901
|
+
/* @__PURE__ */ jsx60("span", { className: "font-medium", children: prop.label }),
|
|
8832
8902
|
" ",
|
|
8833
8903
|
/* @__PURE__ */ jsx60("span", { className: "opacity-60", children: f.operator }),
|
|
8834
8904
|
" ",
|