@l3mpire/ui 2.25.2 → 2.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/USAGE.md +20 -12
- package/dist/index.d.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +144 -111
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +144 -111
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
- package/src/styles/globals.css +2 -0
package/dist/index.js
CHANGED
|
@@ -333,19 +333,19 @@ var buttonVariants = (0, import_class_variance_authority2.cva)(
|
|
|
333
333
|
},
|
|
334
334
|
size: {
|
|
335
335
|
sm: [
|
|
336
|
-
"h-6 py-xs gap-
|
|
336
|
+
"h-6 px-sm py-xs gap-none",
|
|
337
337
|
"text-xs",
|
|
338
338
|
"min-w-16 rounded-base"
|
|
339
339
|
],
|
|
340
340
|
md: [
|
|
341
|
-
"h-8 px-base py-sm gap-
|
|
341
|
+
"h-8 px-base py-sm gap-2xs",
|
|
342
342
|
"text-sm",
|
|
343
343
|
"min-w-20 rounded-md"
|
|
344
344
|
],
|
|
345
345
|
lg: [
|
|
346
|
-
"h-10 px-
|
|
346
|
+
"h-10 px-lg py-md gap-2xs",
|
|
347
347
|
"text-sm",
|
|
348
|
-
"min-w-20 rounded-
|
|
348
|
+
"min-w-20 rounded-lg"
|
|
349
349
|
]
|
|
350
350
|
},
|
|
351
351
|
iconOnly: {
|
|
@@ -471,6 +471,25 @@ var iconSizeMap = {
|
|
|
471
471
|
lg: "sm"
|
|
472
472
|
// 14px
|
|
473
473
|
};
|
|
474
|
+
var textWrapperClass = (size) => cn(
|
|
475
|
+
"inline-flex items-center justify-center px-xs",
|
|
476
|
+
size === "lg" ? "gap-sm" : "gap-xs"
|
|
477
|
+
);
|
|
478
|
+
var ButtonBadge = ({ size, intent, children }) => {
|
|
479
|
+
const colors = intent === "alert" ? "bg-[var(--core-bg-functional-invert-critical)] text-[var(--core-text-functional-critical)]" : "bg-[var(--core-bg-functional-invert-info)] text-[var(--core-text-functional-info)]";
|
|
480
|
+
const shape = size === "lg" ? "gap-xs px-sm py-xs rounded-sm text-xs leading-xs" : "gap-2xs px-xs py-2xs rounded-xs text-xxs leading-2xs";
|
|
481
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
482
|
+
"span",
|
|
483
|
+
{
|
|
484
|
+
className: cn(
|
|
485
|
+
"inline-flex items-center font-medium whitespace-nowrap",
|
|
486
|
+
shape,
|
|
487
|
+
colors
|
|
488
|
+
),
|
|
489
|
+
children
|
|
490
|
+
}
|
|
491
|
+
);
|
|
492
|
+
};
|
|
474
493
|
var Button = React2.forwardRef(
|
|
475
494
|
({
|
|
476
495
|
className,
|
|
@@ -484,26 +503,28 @@ var Button = React2.forwardRef(
|
|
|
484
503
|
leftIcon,
|
|
485
504
|
rightIcon,
|
|
486
505
|
disabled,
|
|
506
|
+
badge,
|
|
487
507
|
children,
|
|
488
508
|
...props
|
|
489
509
|
}, ref) => {
|
|
490
510
|
const appearance = appearanceProp ?? "solid";
|
|
491
511
|
const intent = intentProp ?? "brand";
|
|
512
|
+
const resolvedSize = size ?? "md";
|
|
492
513
|
const isDisabled = disabled || loading;
|
|
493
514
|
const isIconOnly = iconOnlyProp ?? !children;
|
|
494
|
-
const iconSize = iconSizeMap[
|
|
495
|
-
const smPadding = size === "sm" && !isIconOnly ? cn(
|
|
496
|
-
leftIcon || loading ? "pl-xs" : "pl-sm",
|
|
497
|
-
rightIcon ? "pr-xs" : "pr-sm"
|
|
498
|
-
) : "";
|
|
515
|
+
const iconSize = iconSizeMap[resolvedSize];
|
|
499
516
|
const variantClasses = buttonVariants({
|
|
500
517
|
appearance,
|
|
501
518
|
intent,
|
|
502
|
-
size,
|
|
519
|
+
size: resolvedSize,
|
|
503
520
|
iconOnly: isIconOnly || void 0,
|
|
504
521
|
fullWidth,
|
|
505
|
-
className
|
|
522
|
+
className
|
|
506
523
|
});
|
|
524
|
+
const labelNode = !isIconOnly ? /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { className: textWrapperClass(resolvedSize), children: [
|
|
525
|
+
children,
|
|
526
|
+
badge != null && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ButtonBadge, { size: resolvedSize, intent, children: badge })
|
|
527
|
+
] }) : null;
|
|
507
528
|
if (asChild) {
|
|
508
529
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_slot.Slot, { ref, className: cn(variantClasses), ...props, children });
|
|
509
530
|
}
|
|
@@ -517,7 +538,7 @@ var Button = React2.forwardRef(
|
|
|
517
538
|
...props,
|
|
518
539
|
children: [
|
|
519
540
|
loading ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_icons2.Icon, { icon: import_icons2.faSpinnerSolid, size: iconSize, className: "animate-spin" }) : leftIcon ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_icons2.Icon, { icon: leftIcon, size: iconSize }) : null,
|
|
520
|
-
|
|
541
|
+
labelNode,
|
|
521
542
|
rightIcon && !loading && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_icons2.Icon, { icon: rightIcon, size: iconSize })
|
|
522
543
|
]
|
|
523
544
|
}
|
|
@@ -747,7 +768,7 @@ var BrowserTab = React3.forwardRef(
|
|
|
747
768
|
{
|
|
748
769
|
ref,
|
|
749
770
|
className: cn(
|
|
750
|
-
"flex items-end w-full h-[44px] border-b border-browser-tab-border pl-base pr-
|
|
771
|
+
"flex items-end w-full h-[44px] border-b border-browser-tab-border pl-base pr-xl",
|
|
751
772
|
className
|
|
752
773
|
),
|
|
753
774
|
...props,
|
|
@@ -795,7 +816,7 @@ var BrowserTab = React3.forwardRef(
|
|
|
795
816
|
align: "end",
|
|
796
817
|
className: cn(
|
|
797
818
|
"z-50 flex flex-col gap-base overflow-clip",
|
|
798
|
-
"bg-dropdown-bg border border-dropdown-border rounded-
|
|
819
|
+
"bg-dropdown-bg border border-dropdown-border rounded-lg p-base shadow-lg",
|
|
799
820
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
800
821
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
801
822
|
"data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2"
|
|
@@ -877,7 +898,7 @@ var containerStyle = [
|
|
|
877
898
|
"flex flex-col gap-base overflow-clip",
|
|
878
899
|
"bg-dropdown-bg",
|
|
879
900
|
"border border-dropdown-border",
|
|
880
|
-
"rounded-
|
|
901
|
+
"rounded-lg",
|
|
881
902
|
"p-xs",
|
|
882
903
|
"shadow-lg"
|
|
883
904
|
];
|
|
@@ -1040,7 +1061,7 @@ DropdownMenuHeading.displayName = "DropdownMenuHeading";
|
|
|
1040
1061
|
var clearStyle = [
|
|
1041
1062
|
"sticky bottom-0 -mx-base -mb-base",
|
|
1042
1063
|
"flex items-center justify-center",
|
|
1043
|
-
"h-10 min-w-[80px] px-
|
|
1064
|
+
"h-10 min-w-[80px] px-lg py-[10px]",
|
|
1044
1065
|
"bg-gradient-to-t from-dropdown-bg from-[10%] to-dropdown-bg",
|
|
1045
1066
|
"border border-dropdown-border",
|
|
1046
1067
|
"shadow-sm",
|
|
@@ -1124,33 +1145,19 @@ var BulkAction = React5.forwardRef(
|
|
|
1124
1145
|
role: "toolbar",
|
|
1125
1146
|
"aria-label": "Bulk actions",
|
|
1126
1147
|
className: cn(
|
|
1127
|
-
"flex items-center gap-lg
|
|
1148
|
+
"flex items-center gap-xl px-lg py-base w-full min-w-0",
|
|
1128
1149
|
"bg-bulk-action-bg border-l border-r border-t border-bulk-action-border",
|
|
1129
|
-
"rounded-tl-
|
|
1150
|
+
"rounded-tl-lg rounded-tr-lg",
|
|
1130
1151
|
"shadow-[0px_0px_6px_0px_rgba(0,0,0,0.02),0px_2px_4px_0px_rgba(0,0,0,0.08)]",
|
|
1131
1152
|
sticky && "sticky bottom-0 z-10",
|
|
1132
1153
|
className
|
|
1133
1154
|
),
|
|
1134
1155
|
...props,
|
|
1135
1156
|
children: [
|
|
1136
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
type: "button",
|
|
1141
|
-
appearance: "ghost",
|
|
1142
|
-
intent: "alert",
|
|
1143
|
-
size: "sm",
|
|
1144
|
-
leftIcon: import_icons5.faXmarkOutline,
|
|
1145
|
-
onClick: onClear,
|
|
1146
|
-
children: clearLabel
|
|
1147
|
-
}
|
|
1148
|
-
),
|
|
1149
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { className: "text-sm font-regular leading-sm text-bulk-action-count whitespace-nowrap", children: [
|
|
1150
|
-
count,
|
|
1151
|
-
" ",
|
|
1152
|
-
countLabel
|
|
1153
|
-
] })
|
|
1157
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { className: "text-sm font-regular leading-sm text-bulk-action-count whitespace-nowrap shrink-0", children: [
|
|
1158
|
+
count,
|
|
1159
|
+
" ",
|
|
1160
|
+
countLabel
|
|
1154
1161
|
] }),
|
|
1155
1162
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
1156
1163
|
"div",
|
|
@@ -1203,6 +1210,20 @@ var BulkAction = React5.forwardRef(
|
|
|
1203
1210
|
)
|
|
1204
1211
|
]
|
|
1205
1212
|
}
|
|
1213
|
+
),
|
|
1214
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1215
|
+
Button,
|
|
1216
|
+
{
|
|
1217
|
+
type: "button",
|
|
1218
|
+
appearance: "ghost",
|
|
1219
|
+
intent: "brand",
|
|
1220
|
+
size: "md",
|
|
1221
|
+
iconOnly: true,
|
|
1222
|
+
leftIcon: import_icons5.faXmarkOutline,
|
|
1223
|
+
onClick: onClear,
|
|
1224
|
+
"aria-label": clearLabel,
|
|
1225
|
+
className: "shrink-0"
|
|
1226
|
+
}
|
|
1206
1227
|
)
|
|
1207
1228
|
]
|
|
1208
1229
|
}
|
|
@@ -1236,7 +1257,7 @@ var tooltipContentVariants = (0, import_class_variance_authority3.cva)(
|
|
|
1236
1257
|
"inline-flex items-center z-50",
|
|
1237
1258
|
"gap-xs",
|
|
1238
1259
|
"px-base py-sm",
|
|
1239
|
-
"rounded-
|
|
1260
|
+
"rounded-lg",
|
|
1240
1261
|
"shadow-lg",
|
|
1241
1262
|
"text-sm",
|
|
1242
1263
|
"font-regular",
|
|
@@ -1479,7 +1500,7 @@ var import_class_variance_authority5 = require("class-variance-authority");
|
|
|
1479
1500
|
var import_icons8 = require("@l3mpire/icons");
|
|
1480
1501
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
1481
1502
|
var infoMessageVariants = (0, import_class_variance_authority5.cva)(
|
|
1482
|
-
"flex items-start gap-
|
|
1503
|
+
"flex items-start gap-lg px-xl py-base rounded-lg",
|
|
1483
1504
|
{
|
|
1484
1505
|
variants: {
|
|
1485
1506
|
type: {
|
|
@@ -1559,8 +1580,8 @@ var import_icons9 = require("@l3mpire/icons");
|
|
|
1559
1580
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
1560
1581
|
var toastVariants = (0, import_class_variance_authority6.cva)(
|
|
1561
1582
|
[
|
|
1562
|
-
"flex flex-col items-end w-[308px] gap-
|
|
1563
|
-
"rounded-
|
|
1583
|
+
"flex flex-col items-end w-[308px] gap-lg p-xl",
|
|
1584
|
+
"rounded-lg",
|
|
1564
1585
|
"border border-toast-border",
|
|
1565
1586
|
"bg-gradient-to-b to-background to-[60%]",
|
|
1566
1587
|
"[background-size:100%_calc(100%+120px)] [background-position:0_-120px]",
|
|
@@ -1600,14 +1621,14 @@ var typeIconMap2 = {
|
|
|
1600
1621
|
};
|
|
1601
1622
|
var titleStyle2 = "text-sm font-medium leading-sm text-toast-title";
|
|
1602
1623
|
var subtitleStyle = "text-sm font-regular leading-sm text-toast-subtitle";
|
|
1603
|
-
var closeButtonStyle2 = "inline-flex shrink-0 items-center justify-center self-start p-sm rounded-
|
|
1624
|
+
var closeButtonStyle2 = "inline-flex shrink-0 items-center justify-center self-start p-sm rounded-lg text-toast-close hover:bg-black/5 transition-colors";
|
|
1604
1625
|
var ToastProvider = ToastPrimitive.Provider;
|
|
1605
1626
|
var ToastViewport = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1606
1627
|
ToastPrimitive.Viewport,
|
|
1607
1628
|
{
|
|
1608
1629
|
ref,
|
|
1609
1630
|
className: cn(
|
|
1610
|
-
"fixed top-0 right-0 z-[100] flex max-h-screen w-full flex-col-reverse p-
|
|
1631
|
+
"fixed top-0 right-0 z-[100] flex max-h-screen w-full flex-col-reverse p-xl sm:flex-col md:max-w-[420px]",
|
|
1611
1632
|
className
|
|
1612
1633
|
),
|
|
1613
1634
|
...props
|
|
@@ -1629,7 +1650,7 @@ var Toast = React10.forwardRef(({ className, type = "info", title, subtitle, onC
|
|
|
1629
1650
|
className: cn(toastVariants({ type }), !actions && "min-h-[80px]", className),
|
|
1630
1651
|
...props,
|
|
1631
1652
|
children: [
|
|
1632
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "flex w-full items-center gap-
|
|
1653
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "flex w-full items-center gap-lg", children: [
|
|
1633
1654
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: iconContainerVariants({ type }), children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_icons9.Icon, { icon, size: "lg", className: color }) }),
|
|
1634
1655
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
1635
1656
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ToastPrimitive.Title, { className: titleStyle2, children: title }),
|
|
@@ -1718,7 +1739,7 @@ var import_icons10 = require("@l3mpire/icons");
|
|
|
1718
1739
|
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
1719
1740
|
var cardStyles = {
|
|
1720
1741
|
base: [
|
|
1721
|
-
"group relative flex w-full items-center gap-base rounded-
|
|
1742
|
+
"group relative flex w-full items-center gap-base rounded-lg border border-solid p-lg text-left transition-colors",
|
|
1722
1743
|
"border-switch-card-border",
|
|
1723
1744
|
"focus-visible:outline-none focus-visible:shadow-focus-ring",
|
|
1724
1745
|
"disabled:pointer-events-none disabled:opacity-60",
|
|
@@ -1989,7 +2010,7 @@ var SidebarHeader = React14.forwardRef(
|
|
|
1989
2010
|
ref,
|
|
1990
2011
|
className: cn(
|
|
1991
2012
|
"flex items-center shrink-0 h-[44px] border-b border-sidebar-border",
|
|
1992
|
-
isCollapsed ? "justify-center px-
|
|
2013
|
+
isCollapsed ? "justify-center px-xl" : "justify-between px-xl",
|
|
1993
2014
|
className
|
|
1994
2015
|
),
|
|
1995
2016
|
...props,
|
|
@@ -2061,7 +2082,7 @@ var Sidebar = React14.forwardRef(
|
|
|
2061
2082
|
(child) => !(React14.isValidElement(child) && child.type?.displayName === "SidebarFooter")
|
|
2062
2083
|
);
|
|
2063
2084
|
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, { children: [
|
|
2064
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "flex flex-col gap-
|
|
2085
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "flex flex-col gap-xl p-xl flex-1 overflow-y-auto", children: rest }),
|
|
2065
2086
|
footer
|
|
2066
2087
|
] });
|
|
2067
2088
|
})()
|
|
@@ -2092,7 +2113,7 @@ var SidebarFooter = React14.forwardRef(
|
|
|
2092
2113
|
{
|
|
2093
2114
|
ref,
|
|
2094
2115
|
className: cn(
|
|
2095
|
-
"flex flex-col p-
|
|
2116
|
+
"flex flex-col p-xl bg-sidebar-footer-bg border-t border-sidebar-border mt-auto w-full",
|
|
2096
2117
|
className
|
|
2097
2118
|
),
|
|
2098
2119
|
...props,
|
|
@@ -2121,7 +2142,7 @@ var searchBarVariants = (0, import_class_variance_authority8.cva)(
|
|
|
2121
2142
|
},
|
|
2122
2143
|
size: {
|
|
2123
2144
|
sm: "gap-sm px-base py-sm",
|
|
2124
|
-
md: "gap-base px-
|
|
2145
|
+
md: "gap-base px-lg py-base"
|
|
2125
2146
|
}
|
|
2126
2147
|
},
|
|
2127
2148
|
defaultVariants: { variant: "white", size: "md" }
|
|
@@ -2462,7 +2483,7 @@ var import_icons14 = require("@l3mpire/icons");
|
|
|
2462
2483
|
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
2463
2484
|
var cardStyles2 = {
|
|
2464
2485
|
base: [
|
|
2465
|
-
"group relative flex w-full items-start gap-base rounded-
|
|
2486
|
+
"group relative flex w-full items-start gap-base rounded-lg border border-solid p-lg text-left transition-colors",
|
|
2466
2487
|
"focus-visible:outline-none focus-visible:shadow-focus-ring",
|
|
2467
2488
|
"disabled:pointer-events-none disabled:opacity-60",
|
|
2468
2489
|
"cursor-pointer"
|
|
@@ -2590,7 +2611,7 @@ var sidebarItemVariants = (0, import_class_variance_authority10.cva)(
|
|
|
2590
2611
|
active: "bg-sidebar-item-active-bg"
|
|
2591
2612
|
},
|
|
2592
2613
|
type: {
|
|
2593
|
-
default: "px-
|
|
2614
|
+
default: "px-xl py-base",
|
|
2594
2615
|
collapsed: "p-base justify-center"
|
|
2595
2616
|
}
|
|
2596
2617
|
},
|
|
@@ -2698,7 +2719,7 @@ var selectVariants = (0, import_class_variance_authority11.cva)(
|
|
|
2698
2719
|
variants: {
|
|
2699
2720
|
size: {
|
|
2700
2721
|
sm: "px-base gap-base rounded-base min-w-[80px]",
|
|
2701
|
-
md: "px-
|
|
2722
|
+
md: "px-lg gap-base rounded-md"
|
|
2702
2723
|
}
|
|
2703
2724
|
},
|
|
2704
2725
|
defaultVariants: { size: "md" }
|
|
@@ -2845,7 +2866,7 @@ function SelectChips({ tags, onTagRemove, chipHeightPx }) {
|
|
|
2845
2866
|
{
|
|
2846
2867
|
sideOffset: 4,
|
|
2847
2868
|
className: cn(
|
|
2848
|
-
"z-50 px-base py-sm rounded-
|
|
2869
|
+
"z-50 px-base py-sm rounded-lg shadow-lg",
|
|
2849
2870
|
"bg-tooltip-default-bg text-tooltip-default-text",
|
|
2850
2871
|
"text-xs font-regular leading-xs",
|
|
2851
2872
|
"flex flex-col gap-xs",
|
|
@@ -2999,7 +3020,7 @@ var TabList = React23.forwardRef(({ className, hasOffset = false, ...props }, re
|
|
|
2999
3020
|
ref,
|
|
3000
3021
|
className: cn(
|
|
3001
3022
|
"flex items-center gap-base pt-base border-b border-tab-border",
|
|
3002
|
-
hasOffset && "px-
|
|
3023
|
+
hasOffset && "px-xl",
|
|
3003
3024
|
className
|
|
3004
3025
|
),
|
|
3005
3026
|
...props
|
|
@@ -3120,7 +3141,7 @@ var Tag = React24.forwardRef(
|
|
|
3120
3141
|
"inline-flex shrink-0 items-center justify-center",
|
|
3121
3142
|
"rounded-base cursor-pointer",
|
|
3122
3143
|
"p-xs",
|
|
3123
|
-
size === "md" && "p-sm rounded-
|
|
3144
|
+
size === "md" && "p-sm rounded-lg"
|
|
3124
3145
|
),
|
|
3125
3146
|
"aria-label": "Remove",
|
|
3126
3147
|
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_icons17.Icon, { icon: import_icons17.faXmarkSolid, size: iconSize })
|
|
@@ -3206,7 +3227,7 @@ var TextArea = React25.forwardRef(
|
|
|
3206
3227
|
"aria-describedby": errorId,
|
|
3207
3228
|
className: cn(
|
|
3208
3229
|
"w-full min-h-[120px] resize-vertical",
|
|
3209
|
-
"px-
|
|
3230
|
+
"px-lg py-base",
|
|
3210
3231
|
"rounded-md border overflow-clip outline-none",
|
|
3211
3232
|
"text-sm",
|
|
3212
3233
|
"font-regular",
|
|
@@ -3245,7 +3266,7 @@ var textInputVariants = (0, import_class_variance_authority13.cva)(
|
|
|
3245
3266
|
variants: {
|
|
3246
3267
|
size: {
|
|
3247
3268
|
sm: "px-base py-sm gap-base rounded-base",
|
|
3248
|
-
md: "px-
|
|
3269
|
+
md: "px-lg py-[10px] gap-base rounded-md"
|
|
3249
3270
|
}
|
|
3250
3271
|
},
|
|
3251
3272
|
defaultVariants: { size: "md" }
|
|
@@ -3396,7 +3417,7 @@ var TextInput = React26.forwardRef(
|
|
|
3396
3417
|
onClick: onButtonClick,
|
|
3397
3418
|
className: cn(
|
|
3398
3419
|
"shrink-0 flex items-center justify-center border",
|
|
3399
|
-
size === "sm" ? "px-base rounded-r-base" : "px-
|
|
3420
|
+
size === "sm" ? "px-base rounded-r-base" : "px-lg rounded-r-md",
|
|
3400
3421
|
attachedButtonStyles[disabled ? "disabled" : "enabled"]
|
|
3401
3422
|
),
|
|
3402
3423
|
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_icons19.Icon, { icon: buttonIcon ?? import_icons19.faPlusSolid, size: "sm", className: icColor })
|
|
@@ -3429,7 +3450,7 @@ var chipInputVariants = (0, import_class_variance_authority14.cva)(
|
|
|
3429
3450
|
variants: {
|
|
3430
3451
|
size: {
|
|
3431
3452
|
sm: "px-base py-sm rounded-base",
|
|
3432
|
-
md: "px-
|
|
3453
|
+
md: "px-lg py-[10px] rounded-md"
|
|
3433
3454
|
}
|
|
3434
3455
|
},
|
|
3435
3456
|
defaultVariants: { size: "md" }
|
|
@@ -3444,6 +3465,11 @@ var wrapperStates2 = {
|
|
|
3444
3465
|
"focus-within:border-text-input-border-hover",
|
|
3445
3466
|
"focus-within:shadow-focus-ring"
|
|
3446
3467
|
],
|
|
3468
|
+
success: [
|
|
3469
|
+
"bg-text-input-bg-default",
|
|
3470
|
+
"border-text-input-border-success",
|
|
3471
|
+
"text-text-input-text-default"
|
|
3472
|
+
],
|
|
3447
3473
|
error: [
|
|
3448
3474
|
"bg-text-input-bg-default",
|
|
3449
3475
|
"border-text-input-border-error",
|
|
@@ -3456,6 +3482,12 @@ var wrapperStates2 = {
|
|
|
3456
3482
|
"cursor-not-allowed"
|
|
3457
3483
|
]
|
|
3458
3484
|
};
|
|
3485
|
+
function resolveState3(error, success, disabled) {
|
|
3486
|
+
if (disabled) return "disabled";
|
|
3487
|
+
if (error) return "error";
|
|
3488
|
+
if (success) return "success";
|
|
3489
|
+
return "default";
|
|
3490
|
+
}
|
|
3459
3491
|
var chipStyle = [
|
|
3460
3492
|
"inline-flex items-center gap-xs shrink-0",
|
|
3461
3493
|
"h-6 px-sm rounded-base",
|
|
@@ -3478,6 +3510,7 @@ var ChipInput = React27.forwardRef(
|
|
|
3478
3510
|
labelType,
|
|
3479
3511
|
error,
|
|
3480
3512
|
errorMessage,
|
|
3513
|
+
success,
|
|
3481
3514
|
disabled,
|
|
3482
3515
|
iconLeft,
|
|
3483
3516
|
max = 0,
|
|
@@ -3488,7 +3521,7 @@ var ChipInput = React27.forwardRef(
|
|
|
3488
3521
|
const errorId = error && errorMessage ? `${inputId}-error` : void 0;
|
|
3489
3522
|
const inputRef = React27.useRef(null);
|
|
3490
3523
|
const [inputValue, setInputValue] = React27.useState("");
|
|
3491
|
-
const state =
|
|
3524
|
+
const state = resolveState3(error, success, disabled);
|
|
3492
3525
|
const addChip = (val) => {
|
|
3493
3526
|
const trimmed = val.trim();
|
|
3494
3527
|
if (!trimmed) return;
|
|
@@ -3635,7 +3668,7 @@ var inputVariants = (0, import_class_variance_authority15.cva)(
|
|
|
3635
3668
|
variants: {
|
|
3636
3669
|
size: {
|
|
3637
3670
|
sm: "px-base py-sm",
|
|
3638
|
-
md: "px-
|
|
3671
|
+
md: "px-lg py-[10px]"
|
|
3639
3672
|
}
|
|
3640
3673
|
},
|
|
3641
3674
|
defaultVariants: { size: "md" }
|
|
@@ -3884,7 +3917,7 @@ var UserMenu = React30.forwardRef(
|
|
|
3884
3917
|
"flex flex-col w-[260px] overflow-clip",
|
|
3885
3918
|
"bg-user-menu-bg",
|
|
3886
3919
|
"border border-user-menu-border",
|
|
3887
|
-
"rounded-
|
|
3920
|
+
"rounded-lg",
|
|
3888
3921
|
"shadow-lg",
|
|
3889
3922
|
"divide-y divide-user-menu-border",
|
|
3890
3923
|
className
|
|
@@ -3900,7 +3933,7 @@ var UserMenuInfoRow = React30.forwardRef(
|
|
|
3900
3933
|
"div",
|
|
3901
3934
|
{
|
|
3902
3935
|
ref,
|
|
3903
|
-
className: cn("flex items-center gap-base p-
|
|
3936
|
+
className: cn("flex items-center gap-base p-xl", className),
|
|
3904
3937
|
...props,
|
|
3905
3938
|
children: [
|
|
3906
3939
|
avatar,
|
|
@@ -3937,7 +3970,7 @@ var modalVariants = (0, import_class_variance_authority17.cva)(
|
|
|
3937
3970
|
[
|
|
3938
3971
|
"fixed top-[50%] left-[50%] -translate-x-1/2 -translate-y-1/2 z-50",
|
|
3939
3972
|
"flex flex-col",
|
|
3940
|
-
"bg-modal-bg border border-modal-border rounded-
|
|
3973
|
+
"bg-modal-bg border border-modal-border rounded-lg shadow-sm overflow-clip",
|
|
3941
3974
|
"outline-none",
|
|
3942
3975
|
"data-[state=open]:animate-modal-in data-[state=closed]:animate-modal-out"
|
|
3943
3976
|
],
|
|
@@ -3988,7 +4021,7 @@ var ModalHeader = React31.forwardRef(
|
|
|
3988
4021
|
{
|
|
3989
4022
|
ref,
|
|
3990
4023
|
className: cn(
|
|
3991
|
-
"flex items-start gap-
|
|
4024
|
+
"flex items-start gap-xl p-xl",
|
|
3992
4025
|
showBorder && "border-b border-modal-header-border",
|
|
3993
4026
|
className
|
|
3994
4027
|
),
|
|
@@ -4032,7 +4065,7 @@ var ModalBody = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
4032
4065
|
"div",
|
|
4033
4066
|
{
|
|
4034
4067
|
ref,
|
|
4035
|
-
className: cn("flex-1 overflow-y-auto p-
|
|
4068
|
+
className: cn("flex-1 overflow-y-auto p-xl", className),
|
|
4036
4069
|
...props
|
|
4037
4070
|
}
|
|
4038
4071
|
));
|
|
@@ -4043,7 +4076,7 @@ var ModalFooter = React31.forwardRef(
|
|
|
4043
4076
|
{
|
|
4044
4077
|
ref,
|
|
4045
4078
|
className: cn(
|
|
4046
|
-
"flex items-center justify-between gap-
|
|
4079
|
+
"flex items-center justify-between gap-lg p-xl",
|
|
4047
4080
|
showBorder && "border-t border-modal-footer-border",
|
|
4048
4081
|
className
|
|
4049
4082
|
),
|
|
@@ -4087,7 +4120,7 @@ var Dialog = React32.forwardRef(
|
|
|
4087
4120
|
] }),
|
|
4088
4121
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(ModalFooter, { children: [
|
|
4089
4122
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ModalClose, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Button, { appearance: "ghost", intent: "brand", size: "md", onClick: handleCancel, children: cancelLabel }) }),
|
|
4090
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex items-center gap-
|
|
4123
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex items-center gap-lg", children: [
|
|
4091
4124
|
secondaryLabel && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Button, { appearance: "outlined", intent: "brand", size: "md", onClick: onSecondaryAction, children: secondaryLabel }),
|
|
4092
4125
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
4093
4126
|
Button,
|
|
@@ -4117,8 +4150,8 @@ var emptyStateVariants = (0, import_class_variance_authority18.cva)(
|
|
|
4117
4150
|
{
|
|
4118
4151
|
variants: {
|
|
4119
4152
|
size: {
|
|
4120
|
-
md: "gap-
|
|
4121
|
-
sm: "gap-
|
|
4153
|
+
md: "gap-xl",
|
|
4154
|
+
sm: "gap-lg"
|
|
4122
4155
|
}
|
|
4123
4156
|
},
|
|
4124
4157
|
defaultVariants: {
|
|
@@ -4198,7 +4231,7 @@ var EmptyState = React33.forwardRef(
|
|
|
4198
4231
|
{
|
|
4199
4232
|
className: cn(
|
|
4200
4233
|
"flex items-center",
|
|
4201
|
-
isMd ? "gap-
|
|
4234
|
+
isMd ? "gap-xl" : "gap-base"
|
|
4202
4235
|
),
|
|
4203
4236
|
children: [
|
|
4204
4237
|
secondaryAction && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
@@ -4242,7 +4275,7 @@ var AvatarCell = ({
|
|
|
4242
4275
|
subtitle,
|
|
4243
4276
|
src,
|
|
4244
4277
|
className
|
|
4245
|
-
}) => /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: cn("flex items-center gap-
|
|
4278
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: cn("flex items-center gap-lg", className), children: [
|
|
4246
4279
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Avatar, { initials: getInitials(name), src, alt: name, size: "lg", shape: "rounded" }),
|
|
4247
4280
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex flex-col", children: [
|
|
4248
4281
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "text-sm font-medium text-table-cell-text-primary leading-sm", children: name }),
|
|
@@ -4509,7 +4542,7 @@ var TableHead = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
4509
4542
|
{
|
|
4510
4543
|
ref,
|
|
4511
4544
|
className: cn(
|
|
4512
|
-
"group/head h-10 px-
|
|
4545
|
+
"group/head h-10 px-lg py-lg text-left align-middle text-xs font-medium leading-xs",
|
|
4513
4546
|
"text-table-head-text bg-table-head-bg-default",
|
|
4514
4547
|
"hover:bg-table-head-bg-hover",
|
|
4515
4548
|
"border-b border-r border-table-border last:border-r-0",
|
|
@@ -4525,7 +4558,7 @@ var TableCell = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
4525
4558
|
{
|
|
4526
4559
|
ref,
|
|
4527
4560
|
className: cn(
|
|
4528
|
-
"px-
|
|
4561
|
+
"px-lg py-lg align-middle text-sm font-medium max-h-[52px]",
|
|
4529
4562
|
"text-table-cell-text-primary",
|
|
4530
4563
|
"border-b border-r border-table-border last:border-r-0",
|
|
4531
4564
|
"[&:has([role=checkbox])]:pr-0",
|
|
@@ -4539,7 +4572,7 @@ var TableCaption = React35.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
4539
4572
|
"caption",
|
|
4540
4573
|
{
|
|
4541
4574
|
ref,
|
|
4542
|
-
className: cn("mt-
|
|
4575
|
+
className: cn("mt-lg text-sm text-table-cell-text-secondary", className),
|
|
4543
4576
|
...props
|
|
4544
4577
|
}
|
|
4545
4578
|
));
|
|
@@ -4617,7 +4650,7 @@ function DataTableSettingsModal({
|
|
|
4617
4650
|
};
|
|
4618
4651
|
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Modal, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(ModalContent, { size: "sm", className, children: [
|
|
4619
4652
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(ModalHeader, { onClose: () => onOpenChange(false), children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(ModalTitle, { children: title }) }),
|
|
4620
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(ModalBody, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex flex-col gap-
|
|
4653
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(ModalBody, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex flex-col gap-lg", children: [
|
|
4621
4654
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex items-center justify-between gap-base", children: [
|
|
4622
4655
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("span", { className: "text-sm font-medium text-table-cell-text-secondary", children: [
|
|
4623
4656
|
"Columns ",
|
|
@@ -4664,7 +4697,7 @@ function DataTableSettingsModal({
|
|
|
4664
4697
|
"flex flex-col max-h-[360px] overflow-auto rounded-base",
|
|
4665
4698
|
"border border-table-border"
|
|
4666
4699
|
),
|
|
4667
|
-
children: filtered.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "py-
|
|
4700
|
+
children: filtered.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "py-lg text-center text-sm text-table-cell-text-secondary", children: "No columns found" }) : filtered.map((c) => {
|
|
4668
4701
|
const key = getColKey(c);
|
|
4669
4702
|
const label = getColLabel(c);
|
|
4670
4703
|
const checked = draft[key] !== false;
|
|
@@ -4787,7 +4820,7 @@ function ColumnFilterPopover({
|
|
|
4787
4820
|
align: "start",
|
|
4788
4821
|
sideOffset: 4,
|
|
4789
4822
|
className: cn(
|
|
4790
|
-
"z-50 w-[240px] rounded-
|
|
4823
|
+
"z-50 w-[240px] rounded-lg border border-table-border bg-table-bg p-lg shadow-lg",
|
|
4791
4824
|
"animate-in fade-in-0 zoom-in-95"
|
|
4792
4825
|
),
|
|
4793
4826
|
onClick: (e) => e.stopPropagation(),
|
|
@@ -5379,7 +5412,7 @@ function DataTablePagination({
|
|
|
5379
5412
|
"div",
|
|
5380
5413
|
{
|
|
5381
5414
|
className: cn(
|
|
5382
|
-
"flex items-center justify-between px-
|
|
5415
|
+
"flex items-center justify-between px-xl py-lg",
|
|
5383
5416
|
className
|
|
5384
5417
|
),
|
|
5385
5418
|
children: [
|
|
@@ -5389,7 +5422,7 @@ function DataTablePagination({
|
|
|
5389
5422
|
totalCount,
|
|
5390
5423
|
" row(s) selected"
|
|
5391
5424
|
] }) }),
|
|
5392
|
-
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex items-center gap-
|
|
5425
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex items-center gap-xl", children: [
|
|
5393
5426
|
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex items-center gap-sm", children: [
|
|
5394
5427
|
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "text-xs text-table-cell-text-secondary whitespace-nowrap", children: "Rows per page" }),
|
|
5395
5428
|
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
@@ -5531,7 +5564,7 @@ function TruncatedLabel({
|
|
|
5531
5564
|
TooltipPrimitive3.Content,
|
|
5532
5565
|
{
|
|
5533
5566
|
sideOffset: 4,
|
|
5534
|
-
className: "z-50 px-base py-sm rounded-
|
|
5567
|
+
className: "z-50 px-base py-sm rounded-lg shadow-lg bg-tooltip-default-bg text-tooltip-default-text text-sm font-regular leading-sm max-w-[320px] data-[state=delayed-open]:animate-[tooltip-in_150ms_ease-out] data-[state=closed]:animate-[tooltip-out_100ms_ease-in]",
|
|
5535
5568
|
children: [
|
|
5536
5569
|
label,
|
|
5537
5570
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(TooltipPrimitive3.Arrow, { className: "fill-tooltip-default-bg" })
|
|
@@ -6018,7 +6051,7 @@ var SortButton = ({
|
|
|
6018
6051
|
"border border-btn-outlined-neutral-border-default rounded-md shadow-sm",
|
|
6019
6052
|
"cursor-pointer transition-colors",
|
|
6020
6053
|
"hover:from-btn-outlined-neutral-bg-hover hover:to-btn-outlined-neutral-bg-gradient-to-hover",
|
|
6021
|
-
iconOnly ? "size-8 justify-center p-0" : "px-
|
|
6054
|
+
iconOnly ? "size-8 justify-center p-0" : "px-lg py-sm min-w-[80px]",
|
|
6022
6055
|
className
|
|
6023
6056
|
),
|
|
6024
6057
|
children: [
|
|
@@ -6047,7 +6080,7 @@ var SortButton = ({
|
|
|
6047
6080
|
align: "start",
|
|
6048
6081
|
className: cn(
|
|
6049
6082
|
"z-50 flex flex-col gap-xs overflow-clip p-xs",
|
|
6050
|
-
"bg-dropdown-bg border border-dropdown-border rounded-
|
|
6083
|
+
"bg-dropdown-bg border border-dropdown-border rounded-lg shadow-lg",
|
|
6051
6084
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
6052
6085
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
6053
6086
|
"data-[side=bottom]:slide-in-from-top-2",
|
|
@@ -6248,7 +6281,7 @@ var SaveViewButton = React44.forwardRef(
|
|
|
6248
6281
|
),
|
|
6249
6282
|
children: [
|
|
6250
6283
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "text-sm font-medium leading-sm whitespace-nowrap text-btn-solid-brand-text-default", children: label }),
|
|
6251
|
-
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "absolute inset-0 rounded-l-[
|
|
6284
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "absolute inset-0 rounded-l-[9px] border border-btn-solid-brand-inner-border-default shadow-sm pointer-events-none" })
|
|
6252
6285
|
]
|
|
6253
6286
|
}
|
|
6254
6287
|
),
|
|
@@ -6271,7 +6304,7 @@ var SaveViewButton = React44.forwardRef(
|
|
|
6271
6304
|
className: "text-btn-solid-brand-text-default"
|
|
6272
6305
|
}
|
|
6273
6306
|
),
|
|
6274
|
-
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "absolute inset-0 rounded-r-[
|
|
6307
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "absolute inset-0 rounded-r-[9px] border border-btn-solid-brand-inner-border-default shadow-sm pointer-events-none" })
|
|
6275
6308
|
]
|
|
6276
6309
|
}
|
|
6277
6310
|
)
|
|
@@ -6303,7 +6336,7 @@ var OperatorSelector = ({
|
|
|
6303
6336
|
align: "start",
|
|
6304
6337
|
className: cn(
|
|
6305
6338
|
"z-50 flex flex-col p-xs overflow-clip",
|
|
6306
|
-
"bg-dropdown-bg border border-dropdown-border rounded-
|
|
6339
|
+
"bg-dropdown-bg border border-dropdown-border rounded-lg shadow-lg",
|
|
6307
6340
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
6308
6341
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
6309
6342
|
"data-[side=bottom]:slide-in-from-top-2",
|
|
@@ -6623,7 +6656,7 @@ var DatePicker = React45.forwardRef(
|
|
|
6623
6656
|
ref,
|
|
6624
6657
|
className: cn(
|
|
6625
6658
|
"flex flex-col overflow-clip",
|
|
6626
|
-
"bg-datepicker-bg border border-datepicker-border rounded-
|
|
6659
|
+
"bg-datepicker-bg border border-datepicker-border rounded-lg shadow-lg",
|
|
6627
6660
|
className
|
|
6628
6661
|
),
|
|
6629
6662
|
...props,
|
|
@@ -6648,7 +6681,7 @@ var DatePickerSelects = React45.forwardRef(({ className, formatDate = defaultFor
|
|
|
6648
6681
|
"div",
|
|
6649
6682
|
{
|
|
6650
6683
|
ref,
|
|
6651
|
-
className: cn("flex flex-col items-start pt-
|
|
6684
|
+
className: cn("flex flex-col items-start pt-xl px-xl", className),
|
|
6652
6685
|
...props,
|
|
6653
6686
|
children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex items-center gap-base w-full", children: [
|
|
6654
6687
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex-1 flex items-center gap-base min-w-0 px-base py-sm bg-gradient-to-t from-[var(--color-select-bg-default)] to-[var(--color-select-bg-gradient-to)] border border-[var(--color-select-border-default)] rounded-base shadow-sm", children: [
|
|
@@ -6760,7 +6793,7 @@ var DatePickerCalendar = React45.forwardRef(({ className, header, ...props }, re
|
|
|
6760
6793
|
...props,
|
|
6761
6794
|
children: [
|
|
6762
6795
|
header,
|
|
6763
|
-
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex flex-col gap-
|
|
6796
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex flex-col gap-xl p-xl", children: [
|
|
6764
6797
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex items-center justify-between", children: [
|
|
6765
6798
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("span", { className: "text-base font-medium leading-base text-datepicker-header-text", children: [
|
|
6766
6799
|
MONTH_NAMES[month],
|
|
@@ -6849,7 +6882,7 @@ var DatePickerSuggestions = React45.forwardRef(
|
|
|
6849
6882
|
),
|
|
6850
6883
|
...props,
|
|
6851
6884
|
children: [
|
|
6852
|
-
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "pt-
|
|
6885
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "pt-xl px-base", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "flex items-center p-base rounded-base", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "flex-1 text-xs font-medium leading-xs text-datepicker-suggestion-heading uppercase truncate", children: "Suggestions" }) }) }),
|
|
6853
6886
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "flex flex-1 flex-col p-base min-w-[222px]", children: suggestions.map((suggestion, i) => /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
6854
6887
|
"button",
|
|
6855
6888
|
{
|
|
@@ -6875,7 +6908,7 @@ var DatePickerFooter = React45.forwardRef(
|
|
|
6875
6908
|
{
|
|
6876
6909
|
ref,
|
|
6877
6910
|
className: cn(
|
|
6878
|
-
"flex items-center justify-between p-
|
|
6911
|
+
"flex items-center justify-between p-xl",
|
|
6879
6912
|
"border-t border-datepicker-footer-border",
|
|
6880
6913
|
"bg-datepicker-bg",
|
|
6881
6914
|
className
|
|
@@ -7487,7 +7520,7 @@ var PropertySelector = ({
|
|
|
7487
7520
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
7488
7521
|
className: cn(
|
|
7489
7522
|
"z-50 flex flex-col gap-xs overflow-hidden p-xs",
|
|
7490
|
-
"bg-dropdown-bg border border-dropdown-border rounded-
|
|
7523
|
+
"bg-dropdown-bg border border-dropdown-border rounded-lg shadow-lg",
|
|
7491
7524
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
7492
7525
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
7493
7526
|
"data-[side=bottom]:slide-in-from-top-2",
|
|
@@ -7497,7 +7530,7 @@ var PropertySelector = ({
|
|
|
7497
7530
|
activeGroup === null ? (
|
|
7498
7531
|
/* ── Level 1: Search + (pinned props) + Categories ──────── */
|
|
7499
7532
|
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex flex-col gap-xs flex-1 min-h-0", children: [
|
|
7500
|
-
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "shrink-0 flex items-center gap-base px-
|
|
7533
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "shrink-0 flex items-center gap-base px-lg py-base border border-input rounded-md", children: [
|
|
7501
7534
|
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
7502
7535
|
import_icons32.Icon,
|
|
7503
7536
|
{
|
|
@@ -7631,7 +7664,7 @@ var PropertySelector = ({
|
|
|
7631
7664
|
]
|
|
7632
7665
|
}
|
|
7633
7666
|
),
|
|
7634
|
-
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "shrink-0 flex items-center gap-base px-
|
|
7667
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "shrink-0 flex items-center gap-base px-lg py-base border border-input rounded-md", children: [
|
|
7635
7668
|
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
7636
7669
|
import_icons32.Icon,
|
|
7637
7670
|
{
|
|
@@ -7714,7 +7747,7 @@ var KebabMenu = ({
|
|
|
7714
7747
|
align: "end",
|
|
7715
7748
|
className: cn(
|
|
7716
7749
|
"z-50 flex flex-col p-xs overflow-clip",
|
|
7717
|
-
"bg-dropdown-bg border border-dropdown-border rounded-
|
|
7750
|
+
"bg-dropdown-bg border border-dropdown-border rounded-lg shadow-lg",
|
|
7718
7751
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
7719
7752
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
7720
7753
|
"data-[side=bottom]:slide-in-from-top-2",
|
|
@@ -7830,7 +7863,7 @@ var FilterEditor = ({
|
|
|
7830
7863
|
align: "start",
|
|
7831
7864
|
className: cn(
|
|
7832
7865
|
"z-50 flex flex-col overflow-clip",
|
|
7833
|
-
"bg-dropdown-bg border border-dropdown-border rounded-
|
|
7866
|
+
"bg-dropdown-bg border border-dropdown-border rounded-lg shadow-lg",
|
|
7834
7867
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
7835
7868
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
7836
7869
|
"data-[side=bottom]:slide-in-from-top-2",
|
|
@@ -7907,7 +7940,7 @@ var SegmentPopover = ({
|
|
|
7907
7940
|
align,
|
|
7908
7941
|
className: cn(
|
|
7909
7942
|
"z-50 flex flex-col overflow-clip",
|
|
7910
|
-
"bg-dropdown-bg border border-dropdown-border rounded-
|
|
7943
|
+
"bg-dropdown-bg border border-dropdown-border rounded-lg shadow-lg",
|
|
7911
7944
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
7912
7945
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
7913
7946
|
"data-[side=bottom]:slide-in-from-top-2"
|
|
@@ -7998,7 +8031,7 @@ var InteractiveFilterChip = ({
|
|
|
7998
8031
|
{
|
|
7999
8032
|
className: cn(
|
|
8000
8033
|
"inline-flex items-center overflow-clip",
|
|
8001
|
-
"bg-filter-chip-bg border border-filter-chip-border rounded-
|
|
8034
|
+
"bg-filter-chip-bg border border-filter-chip-border rounded-lg shadow-sm",
|
|
8002
8035
|
className
|
|
8003
8036
|
),
|
|
8004
8037
|
children: [
|
|
@@ -8237,7 +8270,7 @@ var FilterNodeActions = ({
|
|
|
8237
8270
|
"button",
|
|
8238
8271
|
{
|
|
8239
8272
|
type: "button",
|
|
8240
|
-
className: "shrink-0 flex items-center justify-center p-sm rounded-
|
|
8273
|
+
className: "shrink-0 flex items-center justify-center p-sm rounded-lg cursor-pointer transition-colors hover:bg-accent",
|
|
8241
8274
|
"aria-label": "More actions",
|
|
8242
8275
|
children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
8243
8276
|
import_icons37.Icon,
|
|
@@ -8256,7 +8289,7 @@ var FilterNodeActions = ({
|
|
|
8256
8289
|
align: "end",
|
|
8257
8290
|
className: cn(
|
|
8258
8291
|
"z-50 flex flex-col p-xs overflow-clip",
|
|
8259
|
-
"bg-dropdown-bg border border-dropdown-border rounded-
|
|
8292
|
+
"bg-dropdown-bg border border-dropdown-border rounded-lg shadow-lg",
|
|
8260
8293
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
8261
8294
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
8262
8295
|
"min-w-[180px]"
|
|
@@ -8312,7 +8345,7 @@ var selectBtnStyle = [
|
|
|
8312
8345
|
"flex items-center gap-base",
|
|
8313
8346
|
"px-base py-sm",
|
|
8314
8347
|
"bg-gradient-to-t from-btn-outlined-neutral-bg-default to-btn-outlined-neutral-bg-gradient-to-default",
|
|
8315
|
-
"border border-btn-outlined-neutral-border-default rounded-
|
|
8348
|
+
"border border-btn-outlined-neutral-border-default rounded-lg shadow-sm",
|
|
8316
8349
|
"cursor-pointer transition-colors",
|
|
8317
8350
|
"hover:from-btn-outlined-neutral-bg-hover hover:to-btn-outlined-neutral-bg-gradient-to-hover"
|
|
8318
8351
|
];
|
|
@@ -8377,7 +8410,7 @@ var AdvancedRow = ({
|
|
|
8377
8410
|
TooltipPrimitive4.Content,
|
|
8378
8411
|
{
|
|
8379
8412
|
sideOffset: 4,
|
|
8380
|
-
className: "z-50 px-base py-sm rounded-
|
|
8413
|
+
className: "z-50 px-base py-sm rounded-lg shadow-lg bg-tooltip-default-bg text-tooltip-default-text text-sm font-regular leading-sm data-[state=delayed-open]:animate-[tooltip-in_150ms_ease-out] data-[state=closed]:animate-[tooltip-out_100ms_ease-in]",
|
|
8381
8414
|
children: [
|
|
8382
8415
|
'"Or" operator coming soon',
|
|
8383
8416
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(TooltipPrimitive4.Arrow, { className: "fill-tooltip-default-bg" })
|
|
@@ -8398,7 +8431,7 @@ var AdvancedRow = ({
|
|
|
8398
8431
|
align: "start",
|
|
8399
8432
|
className: cn(
|
|
8400
8433
|
"z-50 flex flex-col p-xs overflow-clip max-h-[300px] overflow-y-auto",
|
|
8401
|
-
"bg-dropdown-bg border border-dropdown-border rounded-
|
|
8434
|
+
"bg-dropdown-bg border border-dropdown-border rounded-lg shadow-lg",
|
|
8402
8435
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
8403
8436
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0",
|
|
8404
8437
|
"min-w-[200px]"
|
|
@@ -8461,7 +8494,7 @@ var AdvancedRow = ({
|
|
|
8461
8494
|
align: "start",
|
|
8462
8495
|
className: cn(
|
|
8463
8496
|
"z-50 flex flex-col p-xs overflow-clip",
|
|
8464
|
-
"bg-dropdown-bg border border-dropdown-border rounded-
|
|
8497
|
+
"bg-dropdown-bg border border-dropdown-border rounded-lg shadow-lg",
|
|
8465
8498
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
8466
8499
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0",
|
|
8467
8500
|
"min-w-[160px]"
|
|
@@ -8552,7 +8585,7 @@ var AdvancedRow = ({
|
|
|
8552
8585
|
align: "start",
|
|
8553
8586
|
className: cn(
|
|
8554
8587
|
"z-50 flex flex-col overflow-clip",
|
|
8555
|
-
"bg-dropdown-bg border border-dropdown-border rounded-
|
|
8588
|
+
"bg-dropdown-bg border border-dropdown-border rounded-lg shadow-lg",
|
|
8556
8589
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
8557
8590
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0"
|
|
8558
8591
|
),
|
|
@@ -8651,7 +8684,7 @@ function ValueTagRow({ tags }) {
|
|
|
8651
8684
|
TooltipPrimitive4.Content,
|
|
8652
8685
|
{
|
|
8653
8686
|
sideOffset: 4,
|
|
8654
|
-
className: "z-50 px-base py-sm rounded-
|
|
8687
|
+
className: "z-50 px-base py-sm rounded-lg shadow-lg bg-tooltip-default-bg text-tooltip-default-text text-xs font-regular leading-xs flex flex-col gap-xs data-[state=delayed-open]:animate-[tooltip-in_150ms_ease-out] data-[state=closed]:animate-[tooltip-out_100ms_ease-in]",
|
|
8655
8688
|
children: [
|
|
8656
8689
|
overflowTags.map((t) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { children: t }, t)),
|
|
8657
8690
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(TooltipPrimitive4.Arrow, { className: "fill-tooltip-default-bg" })
|
|
@@ -8686,7 +8719,7 @@ var AdvancedGroup = ({
|
|
|
8686
8719
|
TooltipPrimitive5.Content,
|
|
8687
8720
|
{
|
|
8688
8721
|
sideOffset: 4,
|
|
8689
|
-
className: "z-50 px-base py-sm rounded-
|
|
8722
|
+
className: "z-50 px-base py-sm rounded-lg shadow-lg bg-tooltip-default-bg text-tooltip-default-text text-sm font-regular leading-sm data-[state=delayed-open]:animate-[tooltip-in_150ms_ease-out] data-[state=closed]:animate-[tooltip-out_100ms_ease-in]",
|
|
8690
8723
|
children: [
|
|
8691
8724
|
'"Or" operator coming soon',
|
|
8692
8725
|
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(TooltipPrimitive5.Arrow, { className: "fill-tooltip-default-bg" })
|
|
@@ -8694,7 +8727,7 @@ var AdvancedGroup = ({
|
|
|
8694
8727
|
}
|
|
8695
8728
|
) })
|
|
8696
8729
|
] }) }) }),
|
|
8697
|
-
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex-1 min-w-0 flex flex-col gap-base p-base border border-border rounded-
|
|
8730
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex-1 min-w-0 flex flex-col gap-base p-base border border-border rounded-lg bg-secondary", children: [
|
|
8698
8731
|
children,
|
|
8699
8732
|
onAddFilter && properties && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
8700
8733
|
PropertySelector,
|
|
@@ -8710,7 +8743,7 @@ var AdvancedGroup = ({
|
|
|
8710
8743
|
"button",
|
|
8711
8744
|
{
|
|
8712
8745
|
type: "button",
|
|
8713
|
-
className: "flex items-center gap-sm px-base py-sm text-sm font-medium leading-sm text-muted-foreground cursor-pointer transition-colors rounded-
|
|
8746
|
+
className: "flex items-center gap-sm px-base py-sm text-sm font-medium leading-sm text-muted-foreground cursor-pointer transition-colors rounded-lg hover:bg-accent hover:text-foreground w-fit",
|
|
8714
8747
|
children: [
|
|
8715
8748
|
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_icons39.Icon, { icon: import_icons39.faPlusOutline, size: "sm" }),
|
|
8716
8749
|
"Add filter"
|
|
@@ -8903,7 +8936,7 @@ var AdvancedPopover = ({
|
|
|
8903
8936
|
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
8904
8937
|
className: cn(
|
|
8905
8938
|
"z-50 flex flex-col",
|
|
8906
|
-
"bg-background rounded-
|
|
8939
|
+
"bg-background rounded-lg shadow-lg",
|
|
8907
8940
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
8908
8941
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
8909
8942
|
"data-[side=bottom]:slide-in-from-top-2",
|
|
@@ -9211,7 +9244,7 @@ var SummaryChip = ({
|
|
|
9211
9244
|
TooltipPrimitive6.Content,
|
|
9212
9245
|
{
|
|
9213
9246
|
sideOffset: 4,
|
|
9214
|
-
className: "z-50 px-base py-sm rounded-
|
|
9247
|
+
className: "z-50 px-base py-sm rounded-lg shadow-lg bg-tooltip-default-bg text-tooltip-default-text text-sm font-regular leading-sm max-w-[320px] data-[state=delayed-open]:animate-[tooltip-in_150ms_ease-out] data-[state=closed]:animate-[tooltip-out_100ms_ease-in]",
|
|
9215
9248
|
children: [
|
|
9216
9249
|
tooltipContent,
|
|
9217
9250
|
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(TooltipPrimitive6.Arrow, { className: "fill-tooltip-default-bg" })
|
|
@@ -9228,7 +9261,7 @@ var SummaryChip = ({
|
|
|
9228
9261
|
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
9229
9262
|
className: cn(
|
|
9230
9263
|
"z-50 flex flex-col overflow-clip",
|
|
9231
|
-
"bg-dropdown-bg border border-dropdown-border rounded-
|
|
9264
|
+
"bg-dropdown-bg border border-dropdown-border rounded-lg shadow-lg",
|
|
9232
9265
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
9233
9266
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
9234
9267
|
"data-[side=bottom]:slide-in-from-top-2",
|