aq-fe-framework 0.1.523 → 0.1.524
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.
@@ -1061,44 +1061,59 @@ function MyFlexEnd2(_a) {
|
|
1061
1061
|
// src/core/overlays/MyModalDelete.tsx
|
1062
1062
|
import { Group as Group6, Highlight as Highlight2, Modal as Modal3 } from "@mantine/core";
|
1063
1063
|
import { jsx as jsx22, jsxs as jsxs12 } from "react/jsx-runtime";
|
1064
|
-
function MyModalDelete({
|
1065
|
-
|
1066
|
-
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1085
|
-
|
1086
|
-
|
1087
|
-
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1064
|
+
function MyModalDelete(_a) {
|
1065
|
+
var _b = _a, {
|
1066
|
+
disclosure,
|
1067
|
+
contextData,
|
1068
|
+
onSubmit,
|
1069
|
+
submitLoading
|
1070
|
+
} = _b, rest = __objRest(_b, [
|
1071
|
+
"disclosure",
|
1072
|
+
"contextData",
|
1073
|
+
"onSubmit",
|
1074
|
+
"submitLoading"
|
1075
|
+
]);
|
1076
|
+
return /* @__PURE__ */ jsxs12(
|
1077
|
+
Modal3,
|
1078
|
+
__spreadProps(__spreadValues({
|
1079
|
+
title: "X\xF3a d\u1EEF li\u1EC7u"
|
1080
|
+
}, rest), {
|
1081
|
+
onClose: disclosure[1].close,
|
1082
|
+
opened: disclosure[0],
|
1083
|
+
children: [
|
1084
|
+
/* @__PURE__ */ jsx22(
|
1085
|
+
Highlight2,
|
1086
|
+
{
|
1087
|
+
highlight: contextData || [],
|
1088
|
+
color: "red.6",
|
1089
|
+
highlightStyles: {
|
1090
|
+
fontWeight: 700,
|
1091
|
+
WebkitBackgroundClip: "text",
|
1092
|
+
WebkitTextFillColor: "transparent"
|
1093
|
+
},
|
1094
|
+
children: `B\u1EA1n s\u1EAFp x\xF3a d\u1EEF li\u1EC7u ${contextData || ""}. H\xE0nh \u0111\u1ED9ng n\xE0y kh\xF4ng th\u1EC3 ho\xE0n t\xE1c. B\u1EA1n c\xF3 ch\u1EAFc ch\u1EAFn mu\u1ED1n ti\u1EBFp t\u1EE5c?`
|
1095
|
+
}
|
1096
|
+
),
|
1097
|
+
/* @__PURE__ */ jsxs12(Group6, { grow: true, children: [
|
1098
|
+
/* @__PURE__ */ jsx22(
|
1099
|
+
MyButton,
|
1100
|
+
{
|
1101
|
+
crudType: "delete",
|
1102
|
+
onClick: onSubmit,
|
1103
|
+
loading: submitLoading
|
1104
|
+
}
|
1105
|
+
),
|
1106
|
+
/* @__PURE__ */ jsx22(
|
1107
|
+
MyButton,
|
1108
|
+
{
|
1109
|
+
crudType: "cancel",
|
1110
|
+
onClick: disclosure[1].close
|
1111
|
+
}
|
1112
|
+
)
|
1113
|
+
] })
|
1114
|
+
]
|
1115
|
+
})
|
1116
|
+
);
|
1102
1117
|
}
|
1103
1118
|
|
1104
1119
|
export {
|
package/dist/core/index.d.mts
CHANGED
@@ -196,12 +196,12 @@ interface MyFlexEndProps extends GroupProps {
|
|
196
196
|
}
|
197
197
|
declare function MyFlexEnd({ children, ...rest }: MyFlexEndProps): react_jsx_runtime.JSX.Element;
|
198
198
|
|
199
|
-
interface MyModalDeleteProps {
|
199
|
+
interface MyModalDeleteProps extends ModalProps {
|
200
200
|
disclosure: ReturnType<typeof useDisclosure>;
|
201
201
|
contextData?: string;
|
202
202
|
onSubmit?: () => void;
|
203
203
|
submitLoading?: boolean;
|
204
204
|
}
|
205
|
-
declare function MyModalDelete({ disclosure, contextData, onSubmit, submitLoading }: MyModalDeleteProps): react_jsx_runtime.JSX.Element;
|
205
|
+
declare function MyModalDelete({ disclosure, contextData, onSubmit, submitLoading, ...rest }: MyModalDeleteProps): react_jsx_runtime.JSX.Element;
|
206
206
|
|
207
207
|
export { type IWeeklySession, MyActionIcon, type MyActionIconProps, MyButton, MyButtonCreateUpdate, type MyButtonExportStructureProps, MyButtonModal, MyButtonModalForm, type MyButtonModalFormProps, type MyButtonModalProps, MyButtonPrintPDF, type MyButtonPrintPDFProps, type MyButtonProps$1 as MyButtonProps, MyDataTableSelectOne, MyDayOfWeekPicker, MyFlexColumn, MyFlexEnd, MyFlexIconTitle, MyInfoBox, type MyInfoBoxItem, type MyInfoBoxProps, MyLabelValueRow, MyModalDelete, type MyModalDeleteProps, MyRichTextEditor, MySelect, MySelectFromAPI, type MySelectFromAPIProps, type MySelectProps, MyStatsCard, MyTextInput, MyWeeklySessionSchedulerPicker, type WeeklySessionSchedulerProps };
|
package/dist/core/index.mjs
CHANGED