qt-ui-kit 1.0.35 → 1.0.38
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 +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -15128,7 +15128,7 @@ import { jsx as jsx17, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
|
15128
15128
|
function PreviewCard({
|
|
15129
15129
|
eventID,
|
|
15130
15130
|
onSelected,
|
|
15131
|
-
|
|
15131
|
+
selected,
|
|
15132
15132
|
onChecked,
|
|
15133
15133
|
service,
|
|
15134
15134
|
subjectLine,
|
|
@@ -15142,7 +15142,6 @@ function PreviewCard({
|
|
|
15142
15142
|
alert,
|
|
15143
15143
|
read
|
|
15144
15144
|
}) {
|
|
15145
|
-
const [selected, setSelected] = useState(false);
|
|
15146
15145
|
const [checked, setChecked] = useState(false);
|
|
15147
15146
|
function getColorVariant(urgency) {
|
|
15148
15147
|
switch (urgency) {
|
|
@@ -15156,15 +15155,6 @@ function PreviewCard({
|
|
|
15156
15155
|
return void 0;
|
|
15157
15156
|
}
|
|
15158
15157
|
}
|
|
15159
|
-
function toggleSelected() {
|
|
15160
|
-
if (unSelectable) {
|
|
15161
|
-
return;
|
|
15162
|
-
}
|
|
15163
|
-
setSelected(!selected);
|
|
15164
|
-
if (onSelected) {
|
|
15165
|
-
onSelected(eventID);
|
|
15166
|
-
}
|
|
15167
|
-
}
|
|
15168
15158
|
function toggleChecked() {
|
|
15169
15159
|
setChecked(!checked);
|
|
15170
15160
|
if (onChecked) {
|
|
@@ -15181,7 +15171,7 @@ function PreviewCard({
|
|
|
15181
15171
|
),
|
|
15182
15172
|
onClick: (e) => {
|
|
15183
15173
|
e.stopPropagation();
|
|
15184
|
-
|
|
15174
|
+
onSelected && onSelected(eventID);
|
|
15185
15175
|
},
|
|
15186
15176
|
children: [
|
|
15187
15177
|
/* @__PURE__ */ jsxs12("div", { className: "flex flex-col gap-4 place-items-center", children: [
|