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