qt-ui-kit 1.0.72 → 1.0.74
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.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -15679,7 +15679,10 @@ function DropDown({
|
|
|
15679
15679
|
/* @__PURE__ */ jsx21("ul", { className: "text-sm text-gray-800 space-y-2", children: items.map((item) => /* @__PURE__ */ jsx21(
|
|
15680
15680
|
"li",
|
|
15681
15681
|
{
|
|
15682
|
-
onClick: () =>
|
|
15682
|
+
onClick: (e) => {
|
|
15683
|
+
e.stopPropagation();
|
|
15684
|
+
onItemClick?.(item);
|
|
15685
|
+
},
|
|
15683
15686
|
className: clsx4(
|
|
15684
15687
|
"border-t border-gray-200 pt-2 cursor-pointer label-2 text-qtneutral-800 hover:text-qtpurple-500 !hover:label-2-bold",
|
|
15685
15688
|
activeItem === item ? "text-indigo-600 font-semibold" : ""
|
|
@@ -15710,6 +15713,7 @@ function PreviewCard({
|
|
|
15710
15713
|
urgencyLevel,
|
|
15711
15714
|
alert,
|
|
15712
15715
|
read,
|
|
15716
|
+
overrideItems,
|
|
15713
15717
|
onOverride
|
|
15714
15718
|
}) {
|
|
15715
15719
|
const [checked, setChecked] = useState2(false);
|
|
@@ -15752,7 +15756,11 @@ function PreviewCard({
|
|
|
15752
15756
|
/* @__PURE__ */ jsx22(
|
|
15753
15757
|
"div",
|
|
15754
15758
|
{
|
|
15755
|
-
onClick: () => {
|
|
15759
|
+
onClick: (e) => {
|
|
15760
|
+
if (!overrideItems || overrideItems.length == 0) {
|
|
15761
|
+
return;
|
|
15762
|
+
}
|
|
15763
|
+
e.stopPropagation();
|
|
15756
15764
|
setoverrideMenuOpen(!overrideMenuOpen);
|
|
15757
15765
|
},
|
|
15758
15766
|
children: /* @__PURE__ */ jsx22(
|
|
@@ -15770,7 +15778,7 @@ function PreviewCard({
|
|
|
15770
15778
|
overrideMenuOpen && /* @__PURE__ */ jsx22("div", { className: "absolute left-full top-0 ml-2 z-50", children: /* @__PURE__ */ jsx22(
|
|
15771
15779
|
DropDown,
|
|
15772
15780
|
{
|
|
15773
|
-
items: [
|
|
15781
|
+
items: overrideItems ? overrideItems : [],
|
|
15774
15782
|
title: "Set Urgency",
|
|
15775
15783
|
onItemClick: (item) => {
|
|
15776
15784
|
onOverride && onOverride(eventID, item);
|