@l3mpire/ui 2.15.1 → 2.15.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +13 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -969,12 +969,11 @@ var BulkAction = React5.forwardRef(
|
|
|
969
969
|
}
|
|
970
970
|
) }),
|
|
971
971
|
/* @__PURE__ */ jsx5(DropdownMenuContent, { align: "end", side: "top", sideOffset: 8, children: overflowItems.map((item) => /* @__PURE__ */ jsx5(
|
|
972
|
-
|
|
972
|
+
DropdownMenuItem,
|
|
973
973
|
{
|
|
974
974
|
icon: item.icon,
|
|
975
975
|
label: item.label,
|
|
976
|
-
|
|
977
|
-
onSelect: () => item.onClick?.()
|
|
976
|
+
onClick: () => !item.disabled && item.onClick?.()
|
|
978
977
|
},
|
|
979
978
|
item.id
|
|
980
979
|
)) })
|
|
@@ -5616,7 +5615,7 @@ SortButton.displayName = "SortButton";
|
|
|
5616
5615
|
|
|
5617
5616
|
// src/components/ui/filter/filter-bar-button.tsx
|
|
5618
5617
|
import * as React40 from "react";
|
|
5619
|
-
import { Icon as Icon25,
|
|
5618
|
+
import { Icon as Icon25, faFilterOutline as faFilterOutline2 } from "@l3mpire/icons";
|
|
5620
5619
|
import { jsx as jsx40, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
5621
5620
|
var FilterBarButton = React40.forwardRef(({ className, count, iconOnly = false, children, ...props }, ref) => /* @__PURE__ */ jsxs35(
|
|
5622
5621
|
"button",
|
|
@@ -5638,7 +5637,7 @@ var FilterBarButton = React40.forwardRef(({ className, count, iconOnly = false,
|
|
|
5638
5637
|
/* @__PURE__ */ jsx40(
|
|
5639
5638
|
Icon25,
|
|
5640
5639
|
{
|
|
5641
|
-
icon:
|
|
5640
|
+
icon: faFilterOutline2,
|
|
5642
5641
|
size: "sm",
|
|
5643
5642
|
className: "shrink-0 text-[var(--color-foreground)]"
|
|
5644
5643
|
}
|
|
@@ -6779,7 +6778,7 @@ import {
|
|
|
6779
6778
|
faChevronLeftOutline as faChevronLeftOutline3,
|
|
6780
6779
|
faChevronRightOutline as faChevronRightOutline3,
|
|
6781
6780
|
faMagnifyingGlassOutline,
|
|
6782
|
-
faFilterOutline as
|
|
6781
|
+
faFilterOutline as faFilterOutline3
|
|
6783
6782
|
} from "@l3mpire/icons";
|
|
6784
6783
|
import { Fragment as Fragment4, jsx as jsx50, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
6785
6784
|
var AdvancedFilterFooter = ({ onClick, count }) => /* @__PURE__ */ jsxs44(Fragment4, { children: [
|
|
@@ -6795,7 +6794,7 @@ var AdvancedFilterFooter = ({ onClick, count }) => /* @__PURE__ */ jsxs44(Fragme
|
|
|
6795
6794
|
/* @__PURE__ */ jsx50(
|
|
6796
6795
|
Icon29,
|
|
6797
6796
|
{
|
|
6798
|
-
icon:
|
|
6797
|
+
icon: faFilterOutline3,
|
|
6799
6798
|
size: "sm",
|
|
6800
6799
|
className: "shrink-0 text-[var(--color-dropdown-item-icon)]"
|
|
6801
6800
|
}
|
|
@@ -7478,7 +7477,7 @@ import { Icon as Icon38, faXmarkOutline as faXmarkOutline6, faPlusOutline as faP
|
|
|
7478
7477
|
|
|
7479
7478
|
// src/components/ui/filter/advanced-chip.tsx
|
|
7480
7479
|
import * as React47 from "react";
|
|
7481
|
-
import { Icon as Icon32, faXmarkOutline as faXmarkOutline3 } from "@l3mpire/icons";
|
|
7480
|
+
import { Icon as Icon32, faXmarkOutline as faXmarkOutline3, faFilterOutline as faFilterOutline4 } from "@l3mpire/icons";
|
|
7482
7481
|
import { jsx as jsx54, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
7483
7482
|
var btnBase = [
|
|
7484
7483
|
"flex items-center justify-center",
|
|
@@ -7503,6 +7502,14 @@ var AdvancedChip = React47.forwardRef(
|
|
|
7503
7502
|
),
|
|
7504
7503
|
...props,
|
|
7505
7504
|
children: [
|
|
7505
|
+
/* @__PURE__ */ jsx54(
|
|
7506
|
+
Icon32,
|
|
7507
|
+
{
|
|
7508
|
+
icon: faFilterOutline4,
|
|
7509
|
+
size: "sm",
|
|
7510
|
+
className: "shrink-0 text-[var(--color-foreground)]"
|
|
7511
|
+
}
|
|
7512
|
+
),
|
|
7506
7513
|
/* @__PURE__ */ jsx54("span", { className: "text-sm font-semibold leading-sm whitespace-nowrap text-[var(--color-foreground)]", children: "Advanced filters" }),
|
|
7507
7514
|
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-semibold leading-2xs text-filter-chip-badge-text", children: count }) })
|
|
7508
7515
|
]
|
|
@@ -7548,7 +7555,7 @@ import {
|
|
|
7548
7555
|
faCopyOutline,
|
|
7549
7556
|
faTrashOutline as faTrashOutline2,
|
|
7550
7557
|
faFolderOutline,
|
|
7551
|
-
faFilterOutline as
|
|
7558
|
+
faFilterOutline as faFilterOutline5
|
|
7552
7559
|
} from "@l3mpire/icons";
|
|
7553
7560
|
import { jsx as jsx55, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
7554
7561
|
var FilterNodeActions = ({
|
|
@@ -7566,7 +7573,7 @@ var FilterNodeActions = ({
|
|
|
7566
7573
|
},
|
|
7567
7574
|
{
|
|
7568
7575
|
label: nodeType === "condition" ? "Turn into group" : "Turn into filter",
|
|
7569
|
-
icon: nodeType === "condition" ? faFolderOutline :
|
|
7576
|
+
icon: nodeType === "condition" ? faFolderOutline : faFilterOutline5,
|
|
7570
7577
|
action: onConvert
|
|
7571
7578
|
},
|
|
7572
7579
|
{
|
|
@@ -8110,7 +8117,7 @@ var AdvancedPopover = ({
|
|
|
8110
8117
|
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
8111
8118
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
8112
8119
|
"data-[side=bottom]:slide-in-from-top-2",
|
|
8113
|
-
"w-[min(640px,calc(100vw-32px))]"
|
|
8120
|
+
"w-[min(640px,calc(100vw-32px))] min-w-[360px]"
|
|
8114
8121
|
),
|
|
8115
8122
|
children: [
|
|
8116
8123
|
/* @__PURE__ */ jsx58("div", { className: "flex flex-col gap-base p-base", children: filters.length > 0 ? filters.map((node, i) => renderNode(node, i)) : /* @__PURE__ */ jsx58(
|
|
@@ -8226,7 +8233,7 @@ var DraftRow = ({
|
|
|
8226
8233
|
// src/components/ui/filter/summary-chip.tsx
|
|
8227
8234
|
import * as React52 from "react";
|
|
8228
8235
|
import * as PopoverPrimitive13 from "@radix-ui/react-popover";
|
|
8229
|
-
import { Icon as Icon37,
|
|
8236
|
+
import { Icon as Icon37, faFilterOutline as faFilterOutline6, faPlusOutline as faPlusOutline4, faChevronDownOutline as faChevronDownOutline4, faXmarkOutline as faXmarkOutline5 } from "@l3mpire/icons";
|
|
8230
8237
|
import { jsx as jsx59, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
8231
8238
|
var ghostBtn2 = [
|
|
8232
8239
|
"flex items-center gap-sm px-base py-sm",
|
|
@@ -8404,7 +8411,7 @@ var SummaryChip = ({
|
|
|
8404
8411
|
className
|
|
8405
8412
|
),
|
|
8406
8413
|
children: [
|
|
8407
|
-
/* @__PURE__ */ jsx59(Icon37, { icon:
|
|
8414
|
+
/* @__PURE__ */ jsx59(Icon37, { icon: faFilterOutline6, size: "sm", className: "shrink-0 text-[var(--color-foreground)]" }),
|
|
8408
8415
|
/* @__PURE__ */ jsx59("span", { className: "text-sm font-semibold leading-sm whitespace-nowrap text-[var(--color-foreground)]", children: "Filters" }),
|
|
8409
8416
|
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-semibold leading-2xs text-filter-chip-badge-text", children: count }) })
|
|
8410
8417
|
]
|