aq-fe-framework 0.1.567 → 0.1.569

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.
@@ -0,0 +1,11 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ModalProps } from '@mantine/core';
3
+
4
+ interface MyModalDeleteProps extends ModalProps {
5
+ contextData?: string;
6
+ onSubmit?: () => void;
7
+ submitLoading?: boolean;
8
+ }
9
+ declare function MyModalDelete({ contextData, onSubmit, submitLoading, ...rest }: MyModalDeleteProps): react_jsx_runtime.JSX.Element;
10
+
11
+ export { type MyModalDeleteProps as M, MyModalDelete as a };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MyButton
3
- } from "./chunk-HETWN2YJ.mjs";
3
+ } from "./chunk-AWWU2WEF.mjs";
4
4
  import {
5
5
  __objRest,
6
6
  __spreadProps,
@@ -12,12 +12,10 @@ import { Group, Highlight, Modal } from "@mantine/core";
12
12
  import { jsx, jsxs } from "react/jsx-runtime";
13
13
  function MyModalDelete(_a) {
14
14
  var _b = _a, {
15
- disclosure,
16
15
  contextData,
17
16
  onSubmit,
18
17
  submitLoading
19
18
  } = _b, rest = __objRest(_b, [
20
- "disclosure",
21
19
  "contextData",
22
20
  "onSubmit",
23
21
  "submitLoading"
@@ -25,9 +23,7 @@ function MyModalDelete(_a) {
25
23
  return /* @__PURE__ */ jsxs(
26
24
  Modal,
27
25
  __spreadProps(__spreadValues({
28
- title: "X\xF3a d\u1EEF li\u1EC7u",
29
- onClose: disclosure[1].close,
30
- opened: disclosure[0]
26
+ title: "X\xF3a d\u1EEF li\u1EC7u"
31
27
  }, rest), {
32
28
  children: [
33
29
  /* @__PURE__ */ jsx(
@@ -56,7 +52,7 @@ function MyModalDelete(_a) {
56
52
  MyButton,
57
53
  {
58
54
  crudType: "cancel",
59
- onClick: disclosure[1].close
55
+ onClick: rest.onClose
60
56
  }
61
57
  )
62
58
  ] })