mal-ui 0.1.3
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/README.md +244 -0
- package/dist/carousel/extensions.d.ts +1 -0
- package/dist/carousel/index.d.ts +2 -0
- package/dist/carousel/index.js +424 -0
- package/dist/carousel/index.js.map +15 -0
- package/dist/charts/extensions.d.ts +1 -0
- package/dist/charts/index.d.ts +2 -0
- package/dist/charts/index.js +3499 -0
- package/dist/charts/index.js.map +53 -0
- package/dist/chunks/index-3ffbn0gc.js +29976 -0
- package/dist/chunks/index-3ffbn0gc.js.map +637 -0
- package/dist/chunks/index-6b5mapr4.js +2 -0
- package/dist/chunks/index-6b5mapr4.js.map +9 -0
- package/dist/chunks/index-6tm93gww.js +38 -0
- package/dist/chunks/index-6tm93gww.js.map +10 -0
- package/dist/chunks/index-cg10ezdx.js +2 -0
- package/dist/chunks/index-cg10ezdx.js.map +9 -0
- package/dist/chunks/index-mc01z7m9.js +48 -0
- package/dist/chunks/index-mc01z7m9.js.map +9 -0
- package/dist/chunks/index-rz8zh7g4.js +5015 -0
- package/dist/chunks/index-rz8zh7g4.js.map +113 -0
- package/dist/chunks/index-syjq3515.js +4893 -0
- package/dist/chunks/index-syjq3515.js.map +101 -0
- package/dist/chunks/index-w9ekv5h5.js +733 -0
- package/dist/chunks/index-w9ekv5h5.js.map +17 -0
- package/dist/code-highlight/extensions.d.ts +1 -0
- package/dist/code-highlight/index.d.ts +2 -0
- package/dist/code-highlight/index.js +1685 -0
- package/dist/code-highlight/index.js.map +25 -0
- package/dist/core/extensions.d.ts +2 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.js +844 -0
- package/dist/core/index.js.map +9 -0
- package/dist/dates/extensions.d.ts +1 -0
- package/dist/dates/index.d.ts +2 -0
- package/dist/dates/index.js +107 -0
- package/dist/dates/index.js.map +9 -0
- package/dist/dropzone/extensions.d.ts +1 -0
- package/dist/dropzone/index.d.ts +2 -0
- package/dist/dropzone/index.js +2681 -0
- package/dist/dropzone/index.js.map +21 -0
- package/dist/form/extensions.d.ts +1 -0
- package/dist/form/index.d.ts +2 -0
- package/dist/form/index.js +1605 -0
- package/dist/form/index.js.map +51 -0
- package/dist/hooks/extensions.d.ts +1 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.js +214 -0
- package/dist/hooks/index.js.map +9 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1052 -0
- package/dist/index.js.map +9 -0
- package/dist/modals/extensions.d.ts +1 -0
- package/dist/modals/index.d.ts +2 -0
- package/dist/modals/index.js +387 -0
- package/dist/modals/index.js.map +15 -0
- package/dist/notifications/extensions.d.ts +1 -0
- package/dist/notifications/index.d.ts +2 -0
- package/dist/notifications/index.js +1122 -0
- package/dist/notifications/index.js.map +28 -0
- package/dist/nprogress/extensions.d.ts +1 -0
- package/dist/nprogress/index.d.ts +2 -0
- package/dist/nprogress/index.js +207 -0
- package/dist/nprogress/index.js.map +12 -0
- package/dist/schedule/extensions.d.ts +1 -0
- package/dist/schedule/index.d.ts +2 -0
- package/dist/schedule/index.js +8569 -0
- package/dist/schedule/index.js.map +135 -0
- package/dist/spotlight/extensions.d.ts +1 -0
- package/dist/spotlight/index.d.ts +2 -0
- package/dist/spotlight/index.js +666 -0
- package/dist/spotlight/index.js.map +24 -0
- package/dist/styles.css +1 -0
- package/dist/theme/index.d.ts +13 -0
- package/dist/theme/index.js +202 -0
- package/dist/theme/index.js.map +11 -0
- package/dist/theme/tokens.d.ts +65 -0
- package/dist/tiptap/extensions.d.ts +1 -0
- package/dist/tiptap/index.d.ts +2 -0
- package/dist/tiptap/index.js +1549 -0
- package/dist/tiptap/index.js.map +25 -0
- package/package.json +163 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
Box,
|
|
4
|
+
Button,
|
|
5
|
+
Group,
|
|
6
|
+
Modal,
|
|
7
|
+
createUseExternalEvents,
|
|
8
|
+
getDefaultZIndex
|
|
9
|
+
} from "../chunks/index-3ffbn0gc.js";
|
|
10
|
+
import {
|
|
11
|
+
randomId
|
|
12
|
+
} from "../chunks/index-syjq3515.js";
|
|
13
|
+
import"../chunks/index-mc01z7m9.js";
|
|
14
|
+
|
|
15
|
+
// node_modules/@mantine/modals/esm/context.mjs
|
|
16
|
+
import { createContext } from "react";
|
|
17
|
+
|
|
18
|
+
var ModalsContext = createContext(null);
|
|
19
|
+
ModalsContext.displayName = "@mantine/modals/ModalsContext";
|
|
20
|
+
|
|
21
|
+
// node_modules/@mantine/modals/esm/use-modals/use-modals.mjs
|
|
22
|
+
import { use } from "react";
|
|
23
|
+
|
|
24
|
+
function useModals() {
|
|
25
|
+
const ctx = use(ModalsContext);
|
|
26
|
+
if (!ctx)
|
|
27
|
+
throw new Error("[@mantine/modals] useModals hook was called outside of context, wrap your app with ModalsProvider component");
|
|
28
|
+
return ctx;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// node_modules/@mantine/modals/esm/events.mjs
|
|
32
|
+
|
|
33
|
+
var [useModalsEvents, createEvent] = createUseExternalEvents("mantine-modals");
|
|
34
|
+
var openModal = (payload) => {
|
|
35
|
+
const id = payload.modalId || randomId();
|
|
36
|
+
createEvent("openModal")({
|
|
37
|
+
...payload,
|
|
38
|
+
modalId: id
|
|
39
|
+
});
|
|
40
|
+
return id;
|
|
41
|
+
};
|
|
42
|
+
var openConfirmModal = (payload) => {
|
|
43
|
+
const id = payload.modalId || randomId();
|
|
44
|
+
createEvent("openConfirmModal")({
|
|
45
|
+
...payload,
|
|
46
|
+
modalId: id
|
|
47
|
+
});
|
|
48
|
+
return id;
|
|
49
|
+
};
|
|
50
|
+
var openContextModal = (payload) => {
|
|
51
|
+
const id = payload.modalId || randomId();
|
|
52
|
+
createEvent("openContextModal")({
|
|
53
|
+
...payload,
|
|
54
|
+
modalId: id
|
|
55
|
+
});
|
|
56
|
+
return id;
|
|
57
|
+
};
|
|
58
|
+
var closeModal = createEvent("closeModal");
|
|
59
|
+
var closeAllModals = createEvent("closeAllModals");
|
|
60
|
+
var updateModal = (payload) => createEvent("updateModal")(payload);
|
|
61
|
+
var updateContextModal = (payload) => createEvent("updateContextModal")(payload);
|
|
62
|
+
var modals = {
|
|
63
|
+
open: openModal,
|
|
64
|
+
close: closeModal,
|
|
65
|
+
closeAll: closeAllModals,
|
|
66
|
+
openConfirmModal,
|
|
67
|
+
openContextModal,
|
|
68
|
+
updateModal,
|
|
69
|
+
updateContextModal
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
// node_modules/@mantine/modals/esm/ConfirmModal.mjs
|
|
73
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
74
|
+
|
|
75
|
+
function ConfirmModal({ id, cancelProps, confirmProps, labels = {
|
|
76
|
+
cancel: "",
|
|
77
|
+
confirm: ""
|
|
78
|
+
}, closeOnConfirm = true, closeOnCancel = true, groupProps, onCancel, onConfirm, children }) {
|
|
79
|
+
const { cancel: cancelLabel, confirm: confirmLabel } = labels;
|
|
80
|
+
const ctx = useModals();
|
|
81
|
+
const handleCancel = (event) => {
|
|
82
|
+
typeof cancelProps?.onClick === "function" && cancelProps?.onClick(event);
|
|
83
|
+
typeof onCancel === "function" && onCancel();
|
|
84
|
+
closeOnCancel && ctx.closeModal(id);
|
|
85
|
+
};
|
|
86
|
+
const handleConfirm = (event) => {
|
|
87
|
+
typeof confirmProps?.onClick === "function" && confirmProps?.onClick(event);
|
|
88
|
+
typeof onConfirm === "function" && onConfirm();
|
|
89
|
+
closeOnConfirm && ctx.closeModal(id);
|
|
90
|
+
};
|
|
91
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [children && /* @__PURE__ */ jsx(Box, {
|
|
92
|
+
mb: "md",
|
|
93
|
+
children
|
|
94
|
+
}), /* @__PURE__ */ jsxs(Group, {
|
|
95
|
+
mt: children ? 0 : "md",
|
|
96
|
+
justify: "flex-end",
|
|
97
|
+
...groupProps,
|
|
98
|
+
children: [/* @__PURE__ */ jsx(Button, {
|
|
99
|
+
variant: "default",
|
|
100
|
+
...cancelProps,
|
|
101
|
+
onClick: handleCancel,
|
|
102
|
+
children: cancelProps?.children || cancelLabel
|
|
103
|
+
}), /* @__PURE__ */ jsx(Button, {
|
|
104
|
+
...confirmProps,
|
|
105
|
+
onClick: handleConfirm,
|
|
106
|
+
children: confirmProps?.children || confirmLabel
|
|
107
|
+
})]
|
|
108
|
+
})] });
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// node_modules/@mantine/modals/esm/reducer.mjs
|
|
112
|
+
|
|
113
|
+
function handleCloseModal(modal, canceled) {
|
|
114
|
+
if (canceled && modal.type === "confirm")
|
|
115
|
+
modal.props.onCancel?.();
|
|
116
|
+
modal.props.onClose?.();
|
|
117
|
+
}
|
|
118
|
+
function modalsReducer(state, action) {
|
|
119
|
+
switch (action.type) {
|
|
120
|
+
case "OPEN":
|
|
121
|
+
if (state.modals.some((modal) => modal.id === action.modal.id))
|
|
122
|
+
return state;
|
|
123
|
+
return {
|
|
124
|
+
current: action.modal,
|
|
125
|
+
modals: [...state.modals, action.modal]
|
|
126
|
+
};
|
|
127
|
+
case "CLOSE": {
|
|
128
|
+
if (!state.modals.find((m) => m.id === action.modalId))
|
|
129
|
+
return state;
|
|
130
|
+
const remainingModals = state.modals.filter((m) => m.id !== action.modalId);
|
|
131
|
+
return {
|
|
132
|
+
current: remainingModals[remainingModals.length - 1] || state.current,
|
|
133
|
+
modals: remainingModals
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
case "CLOSE_ALL":
|
|
137
|
+
if (!state.modals.length)
|
|
138
|
+
return state;
|
|
139
|
+
return {
|
|
140
|
+
current: state.current,
|
|
141
|
+
modals: []
|
|
142
|
+
};
|
|
143
|
+
case "UPDATE": {
|
|
144
|
+
const { modalId, newProps } = action;
|
|
145
|
+
const updatedModals = state.modals.map((modal) => {
|
|
146
|
+
if (modal.id !== modalId)
|
|
147
|
+
return modal;
|
|
148
|
+
if (modal.type === "content" || modal.type === "confirm")
|
|
149
|
+
return {
|
|
150
|
+
...modal,
|
|
151
|
+
props: {
|
|
152
|
+
...modal.props,
|
|
153
|
+
...newProps
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
if (modal.type === "context")
|
|
157
|
+
return {
|
|
158
|
+
...modal,
|
|
159
|
+
props: {
|
|
160
|
+
...modal.props,
|
|
161
|
+
...newProps,
|
|
162
|
+
innerProps: {
|
|
163
|
+
...modal.props.innerProps,
|
|
164
|
+
...newProps.innerProps
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
return modal;
|
|
169
|
+
});
|
|
170
|
+
const currentModal = state.current?.id === modalId ? updatedModals.find((modal) => modal.id === modalId) || state.current : state.current;
|
|
171
|
+
return {
|
|
172
|
+
...state,
|
|
173
|
+
modals: updatedModals,
|
|
174
|
+
current: currentModal
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
default:
|
|
178
|
+
return state;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
// node_modules/@mantine/modals/esm/ModalsProvider.mjs
|
|
183
|
+
import { useCallback, useReducer, useRef } from "react";
|
|
184
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
185
|
+
|
|
186
|
+
function separateConfirmModalProps(props) {
|
|
187
|
+
if (!props)
|
|
188
|
+
return {
|
|
189
|
+
confirmProps: {},
|
|
190
|
+
modalProps: {}
|
|
191
|
+
};
|
|
192
|
+
const { id, children, onCancel, onConfirm, closeOnConfirm, closeOnCancel, cancelProps, confirmProps, groupProps, labels, ...others } = props;
|
|
193
|
+
return {
|
|
194
|
+
confirmProps: {
|
|
195
|
+
id,
|
|
196
|
+
children,
|
|
197
|
+
onCancel,
|
|
198
|
+
onConfirm,
|
|
199
|
+
closeOnConfirm,
|
|
200
|
+
closeOnCancel,
|
|
201
|
+
cancelProps,
|
|
202
|
+
confirmProps,
|
|
203
|
+
groupProps,
|
|
204
|
+
labels
|
|
205
|
+
},
|
|
206
|
+
modalProps: {
|
|
207
|
+
id,
|
|
208
|
+
...others
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
function ModalsProvider({ children, modalProps, labels, modals: modals2 }) {
|
|
213
|
+
const [state, dispatch] = useReducer(modalsReducer, {
|
|
214
|
+
modals: [],
|
|
215
|
+
current: null
|
|
216
|
+
});
|
|
217
|
+
const stateRef = useRef(state);
|
|
218
|
+
stateRef.current = state;
|
|
219
|
+
const closingRef = useRef(false);
|
|
220
|
+
const closeAll = useCallback((canceled) => {
|
|
221
|
+
if (!closingRef.current) {
|
|
222
|
+
closingRef.current = true;
|
|
223
|
+
stateRef.current.modals.concat().reverse().forEach((modal) => {
|
|
224
|
+
handleCloseModal(modal, canceled);
|
|
225
|
+
});
|
|
226
|
+
closingRef.current = false;
|
|
227
|
+
}
|
|
228
|
+
dispatch({
|
|
229
|
+
type: "CLOSE_ALL",
|
|
230
|
+
canceled
|
|
231
|
+
});
|
|
232
|
+
}, [stateRef, dispatch]);
|
|
233
|
+
const openModal2 = useCallback(({ modalId, ...props }) => {
|
|
234
|
+
const id = modalId || randomId();
|
|
235
|
+
dispatch({
|
|
236
|
+
type: "OPEN",
|
|
237
|
+
modal: {
|
|
238
|
+
id,
|
|
239
|
+
type: "content",
|
|
240
|
+
props
|
|
241
|
+
}
|
|
242
|
+
});
|
|
243
|
+
return id;
|
|
244
|
+
}, [dispatch]);
|
|
245
|
+
const openConfirmModal2 = useCallback(({ modalId, ...props }) => {
|
|
246
|
+
const id = modalId || randomId();
|
|
247
|
+
dispatch({
|
|
248
|
+
type: "OPEN",
|
|
249
|
+
modal: {
|
|
250
|
+
id,
|
|
251
|
+
type: "confirm",
|
|
252
|
+
props
|
|
253
|
+
}
|
|
254
|
+
});
|
|
255
|
+
return id;
|
|
256
|
+
}, [dispatch]);
|
|
257
|
+
const openContextModal2 = useCallback((modal, { modalId, ...props }) => {
|
|
258
|
+
const id = modalId || randomId();
|
|
259
|
+
dispatch({
|
|
260
|
+
type: "OPEN",
|
|
261
|
+
modal: {
|
|
262
|
+
id,
|
|
263
|
+
type: "context",
|
|
264
|
+
props,
|
|
265
|
+
ctx: modal
|
|
266
|
+
}
|
|
267
|
+
});
|
|
268
|
+
return id;
|
|
269
|
+
}, [dispatch]);
|
|
270
|
+
const closeModal2 = useCallback((id, canceled) => {
|
|
271
|
+
if (!closingRef.current) {
|
|
272
|
+
const modal = stateRef.current.modals.find((m) => m.id === id);
|
|
273
|
+
if (modal) {
|
|
274
|
+
closingRef.current = true;
|
|
275
|
+
handleCloseModal(modal, canceled);
|
|
276
|
+
closingRef.current = false;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
dispatch({
|
|
280
|
+
type: "CLOSE",
|
|
281
|
+
modalId: id,
|
|
282
|
+
canceled
|
|
283
|
+
});
|
|
284
|
+
}, [stateRef, dispatch]);
|
|
285
|
+
const updateModal2 = useCallback(({ modalId, ...newProps }) => {
|
|
286
|
+
dispatch({
|
|
287
|
+
type: "UPDATE",
|
|
288
|
+
modalId,
|
|
289
|
+
newProps
|
|
290
|
+
});
|
|
291
|
+
}, [dispatch]);
|
|
292
|
+
const updateContextModal2 = useCallback(({ modalId, ...newProps }) => {
|
|
293
|
+
dispatch({
|
|
294
|
+
type: "UPDATE",
|
|
295
|
+
modalId,
|
|
296
|
+
newProps
|
|
297
|
+
});
|
|
298
|
+
}, [dispatch]);
|
|
299
|
+
useModalsEvents({
|
|
300
|
+
openModal: openModal2,
|
|
301
|
+
openConfirmModal: openConfirmModal2,
|
|
302
|
+
openContextModal: ({ modal, ...payload }) => openContextModal2(modal, payload),
|
|
303
|
+
closeModal: closeModal2,
|
|
304
|
+
closeContextModal: closeModal2,
|
|
305
|
+
closeAllModals: closeAll,
|
|
306
|
+
updateModal: updateModal2,
|
|
307
|
+
updateContextModal: updateContextModal2
|
|
308
|
+
});
|
|
309
|
+
const ctx = {
|
|
310
|
+
modalProps: modalProps || {},
|
|
311
|
+
modals: state.modals,
|
|
312
|
+
openModal: openModal2,
|
|
313
|
+
openConfirmModal: openConfirmModal2,
|
|
314
|
+
openContextModal: openContextModal2,
|
|
315
|
+
closeModal: closeModal2,
|
|
316
|
+
closeContextModal: closeModal2,
|
|
317
|
+
closeAll,
|
|
318
|
+
updateModal: updateModal2,
|
|
319
|
+
updateContextModal: updateContextModal2
|
|
320
|
+
};
|
|
321
|
+
const getCurrentModal = () => {
|
|
322
|
+
const currentModal = stateRef.current.current;
|
|
323
|
+
switch (currentModal?.type) {
|
|
324
|
+
case "context": {
|
|
325
|
+
const { innerProps, ...rest } = currentModal.props;
|
|
326
|
+
const ContextModal = modals2[currentModal.ctx];
|
|
327
|
+
return {
|
|
328
|
+
modalProps: rest,
|
|
329
|
+
content: /* @__PURE__ */ jsx2(ContextModal, {
|
|
330
|
+
innerProps,
|
|
331
|
+
context: ctx,
|
|
332
|
+
id: currentModal.id
|
|
333
|
+
})
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
case "confirm": {
|
|
337
|
+
const { modalProps: separatedModalProps, confirmProps: separatedConfirmProps } = separateConfirmModalProps(currentModal.props);
|
|
338
|
+
return {
|
|
339
|
+
modalProps: separatedModalProps,
|
|
340
|
+
content: /* @__PURE__ */ jsx2(ConfirmModal, {
|
|
341
|
+
...separatedConfirmProps,
|
|
342
|
+
id: currentModal.id,
|
|
343
|
+
labels: currentModal.props.labels || labels
|
|
344
|
+
})
|
|
345
|
+
};
|
|
346
|
+
}
|
|
347
|
+
case "content": {
|
|
348
|
+
const { children: currentModalChildren, ...rest } = currentModal.props;
|
|
349
|
+
return {
|
|
350
|
+
modalProps: rest,
|
|
351
|
+
content: currentModalChildren
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
default:
|
|
355
|
+
return {
|
|
356
|
+
modalProps: {},
|
|
357
|
+
content: null
|
|
358
|
+
};
|
|
359
|
+
}
|
|
360
|
+
};
|
|
361
|
+
const { modalProps: currentModalProps, content } = getCurrentModal();
|
|
362
|
+
return /* @__PURE__ */ jsxs2(ModalsContext, {
|
|
363
|
+
value: ctx,
|
|
364
|
+
children: [/* @__PURE__ */ jsx2(Modal, {
|
|
365
|
+
zIndex: getDefaultZIndex("modal") + 1,
|
|
366
|
+
...modalProps,
|
|
367
|
+
...currentModalProps,
|
|
368
|
+
opened: state.modals.length > 0,
|
|
369
|
+
onClose: () => closeModal2(state.current?.id),
|
|
370
|
+
children: content
|
|
371
|
+
}), children]
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
export {
|
|
375
|
+
useModals,
|
|
376
|
+
updateModal,
|
|
377
|
+
updateContextModal,
|
|
378
|
+
openModal,
|
|
379
|
+
openContextModal,
|
|
380
|
+
openConfirmModal,
|
|
381
|
+
modals,
|
|
382
|
+
closeModal,
|
|
383
|
+
closeAllModals,
|
|
384
|
+
ModalsProvider
|
|
385
|
+
};
|
|
386
|
+
|
|
387
|
+
//# debugId=9B83FAB049B7517864756E2164756E21
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../node_modules/@mantine/modals/esm/context.mjs", "../node_modules/@mantine/modals/esm/use-modals/use-modals.mjs", "../node_modules/@mantine/modals/esm/events.mjs", "../node_modules/@mantine/modals/esm/ConfirmModal.mjs", "../node_modules/@mantine/modals/esm/reducer.mjs", "../node_modules/@mantine/modals/esm/ModalsProvider.mjs"],
|
|
4
|
+
"sourcesContent": [
|
|
5
|
+
"\"use client\";\nimport { createContext } from \"react\";\n//#region packages/@mantine/modals/src/context.ts\nconst ModalsContext = createContext(null);\nModalsContext.displayName = \"@mantine/modals/ModalsContext\";\n//#endregion\nexport { ModalsContext };\n\n//# sourceMappingURL=context.mjs.map",
|
|
6
|
+
"\"use client\";\nimport { ModalsContext } from \"../context.mjs\";\nimport { use } from \"react\";\n//#region packages/@mantine/modals/src/use-modals/use-modals.ts\nfunction useModals() {\n\tconst ctx = use(ModalsContext);\n\tif (!ctx) throw new Error(\"[@mantine/modals] useModals hook was called outside of context, wrap your app with ModalsProvider component\");\n\treturn ctx;\n}\n//#endregion\nexport { useModals };\n\n//# sourceMappingURL=use-modals.mjs.map",
|
|
7
|
+
"\"use client\";\nimport { createUseExternalEvents } from \"@mantine/core\";\nimport { randomId } from \"@mantine/hooks\";\n//#region packages/@mantine/modals/src/events.ts\nconst [useModalsEvents, createEvent] = createUseExternalEvents(\"mantine-modals\");\nconst openModal = (payload) => {\n\tconst id = payload.modalId || randomId();\n\tcreateEvent(\"openModal\")({\n\t\t...payload,\n\t\tmodalId: id\n\t});\n\treturn id;\n};\nconst openConfirmModal = (payload) => {\n\tconst id = payload.modalId || randomId();\n\tcreateEvent(\"openConfirmModal\")({\n\t\t...payload,\n\t\tmodalId: id\n\t});\n\treturn id;\n};\nconst openContextModal = (payload) => {\n\tconst id = payload.modalId || randomId();\n\tcreateEvent(\"openContextModal\")({\n\t\t...payload,\n\t\tmodalId: id\n\t});\n\treturn id;\n};\nconst closeModal = createEvent(\"closeModal\");\nconst closeAllModals = createEvent(\"closeAllModals\");\nconst updateModal = (payload) => createEvent(\"updateModal\")(payload);\nconst updateContextModal = (payload) => createEvent(\"updateContextModal\")(payload);\nconst modals = {\n\topen: openModal,\n\tclose: closeModal,\n\tcloseAll: closeAllModals,\n\topenConfirmModal,\n\topenContextModal,\n\tupdateModal,\n\tupdateContextModal\n};\n//#endregion\nexport { closeAllModals, closeModal, modals, openConfirmModal, openContextModal, openModal, updateContextModal, updateModal, useModalsEvents };\n\n//# sourceMappingURL=events.mjs.map",
|
|
8
|
+
"\"use client\";\nimport { useModals } from \"./use-modals/use-modals.mjs\";\nimport { Box, Button, Group } from \"@mantine/core\";\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\n//#region packages/@mantine/modals/src/ConfirmModal.tsx\nfunction ConfirmModal({ id, cancelProps, confirmProps, labels = {\n\tcancel: \"\",\n\tconfirm: \"\"\n}, closeOnConfirm = true, closeOnCancel = true, groupProps, onCancel, onConfirm, children }) {\n\tconst { cancel: cancelLabel, confirm: confirmLabel } = labels;\n\tconst ctx = useModals();\n\tconst handleCancel = (event) => {\n\t\ttypeof cancelProps?.onClick === \"function\" && cancelProps?.onClick(event);\n\t\ttypeof onCancel === \"function\" && onCancel();\n\t\tcloseOnCancel && ctx.closeModal(id);\n\t};\n\tconst handleConfirm = (event) => {\n\t\ttypeof confirmProps?.onClick === \"function\" && confirmProps?.onClick(event);\n\t\ttypeof onConfirm === \"function\" && onConfirm();\n\t\tcloseOnConfirm && ctx.closeModal(id);\n\t};\n\treturn /* @__PURE__ */ jsxs(Fragment, { children: [children && /* @__PURE__ */ jsx(Box, {\n\t\tmb: \"md\",\n\t\tchildren\n\t}), /* @__PURE__ */ jsxs(Group, {\n\t\tmt: children ? 0 : \"md\",\n\t\tjustify: \"flex-end\",\n\t\t...groupProps,\n\t\tchildren: [/* @__PURE__ */ jsx(Button, {\n\t\t\tvariant: \"default\",\n\t\t\t...cancelProps,\n\t\t\tonClick: handleCancel,\n\t\t\tchildren: cancelProps?.children || cancelLabel\n\t\t}), /* @__PURE__ */ jsx(Button, {\n\t\t\t...confirmProps,\n\t\t\tonClick: handleConfirm,\n\t\t\tchildren: confirmProps?.children || confirmLabel\n\t\t})]\n\t})] });\n}\n//#endregion\nexport { ConfirmModal };\n\n//# sourceMappingURL=ConfirmModal.mjs.map",
|
|
9
|
+
"\"use client\";\n//#region packages/@mantine/modals/src/reducer.ts\nfunction handleCloseModal(modal, canceled) {\n\tif (canceled && modal.type === \"confirm\") modal.props.onCancel?.();\n\tmodal.props.onClose?.();\n}\nfunction modalsReducer(state, action) {\n\tswitch (action.type) {\n\t\tcase \"OPEN\":\n\t\t\tif (state.modals.some((modal) => modal.id === action.modal.id)) return state;\n\t\t\treturn {\n\t\t\t\tcurrent: action.modal,\n\t\t\t\tmodals: [...state.modals, action.modal]\n\t\t\t};\n\t\tcase \"CLOSE\": {\n\t\t\tif (!state.modals.find((m) => m.id === action.modalId)) return state;\n\t\t\tconst remainingModals = state.modals.filter((m) => m.id !== action.modalId);\n\t\t\treturn {\n\t\t\t\tcurrent: remainingModals[remainingModals.length - 1] || state.current,\n\t\t\t\tmodals: remainingModals\n\t\t\t};\n\t\t}\n\t\tcase \"CLOSE_ALL\":\n\t\t\tif (!state.modals.length) return state;\n\t\t\treturn {\n\t\t\t\tcurrent: state.current,\n\t\t\t\tmodals: []\n\t\t\t};\n\t\tcase \"UPDATE\": {\n\t\t\tconst { modalId, newProps } = action;\n\t\t\tconst updatedModals = state.modals.map((modal) => {\n\t\t\t\tif (modal.id !== modalId) return modal;\n\t\t\t\tif (modal.type === \"content\" || modal.type === \"confirm\") return {\n\t\t\t\t\t...modal,\n\t\t\t\t\tprops: {\n\t\t\t\t\t\t...modal.props,\n\t\t\t\t\t\t...newProps\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tif (modal.type === \"context\") return {\n\t\t\t\t\t...modal,\n\t\t\t\t\tprops: {\n\t\t\t\t\t\t...modal.props,\n\t\t\t\t\t\t...newProps,\n\t\t\t\t\t\tinnerProps: {\n\t\t\t\t\t\t\t...modal.props.innerProps,\n\t\t\t\t\t\t\t...newProps.innerProps\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\treturn modal;\n\t\t\t});\n\t\t\tconst currentModal = state.current?.id === modalId ? updatedModals.find((modal) => modal.id === modalId) || state.current : state.current;\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\tmodals: updatedModals,\n\t\t\t\tcurrent: currentModal\n\t\t\t};\n\t\t}\n\t\tdefault: return state;\n\t}\n}\n//#endregion\nexport { handleCloseModal, modalsReducer };\n\n//# sourceMappingURL=reducer.mjs.map",
|
|
10
|
+
"\"use client\";\nimport { ModalsContext } from \"./context.mjs\";\nimport { ConfirmModal } from \"./ConfirmModal.mjs\";\nimport { useModalsEvents } from \"./events.mjs\";\nimport { handleCloseModal, modalsReducer } from \"./reducer.mjs\";\nimport { useCallback, useReducer, useRef } from \"react\";\nimport { Modal, getDefaultZIndex } from \"@mantine/core\";\nimport { randomId } from \"@mantine/hooks\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\n//#region packages/@mantine/modals/src/ModalsProvider.tsx\nfunction separateConfirmModalProps(props) {\n\tif (!props) return {\n\t\tconfirmProps: {},\n\t\tmodalProps: {}\n\t};\n\tconst { id, children, onCancel, onConfirm, closeOnConfirm, closeOnCancel, cancelProps, confirmProps, groupProps, labels, ...others } = props;\n\treturn {\n\t\tconfirmProps: {\n\t\t\tid,\n\t\t\tchildren,\n\t\t\tonCancel,\n\t\t\tonConfirm,\n\t\t\tcloseOnConfirm,\n\t\t\tcloseOnCancel,\n\t\t\tcancelProps,\n\t\t\tconfirmProps,\n\t\t\tgroupProps,\n\t\t\tlabels\n\t\t},\n\t\tmodalProps: {\n\t\t\tid,\n\t\t\t...others\n\t\t}\n\t};\n}\nfunction ModalsProvider({ children, modalProps, labels, modals }) {\n\tconst [state, dispatch] = useReducer(modalsReducer, {\n\t\tmodals: [],\n\t\tcurrent: null\n\t});\n\tconst stateRef = useRef(state);\n\tstateRef.current = state;\n\tconst closingRef = useRef(false);\n\tconst closeAll = useCallback((canceled) => {\n\t\tif (!closingRef.current) {\n\t\t\tclosingRef.current = true;\n\t\t\tstateRef.current.modals.concat().reverse().forEach((modal) => {\n\t\t\t\thandleCloseModal(modal, canceled);\n\t\t\t});\n\t\t\tclosingRef.current = false;\n\t\t}\n\t\tdispatch({\n\t\t\ttype: \"CLOSE_ALL\",\n\t\t\tcanceled\n\t\t});\n\t}, [stateRef, dispatch]);\n\tconst openModal = useCallback(({ modalId, ...props }) => {\n\t\tconst id = modalId || randomId();\n\t\tdispatch({\n\t\t\ttype: \"OPEN\",\n\t\t\tmodal: {\n\t\t\t\tid,\n\t\t\t\ttype: \"content\",\n\t\t\t\tprops\n\t\t\t}\n\t\t});\n\t\treturn id;\n\t}, [dispatch]);\n\tconst openConfirmModal = useCallback(({ modalId, ...props }) => {\n\t\tconst id = modalId || randomId();\n\t\tdispatch({\n\t\t\ttype: \"OPEN\",\n\t\t\tmodal: {\n\t\t\t\tid,\n\t\t\t\ttype: \"confirm\",\n\t\t\t\tprops\n\t\t\t}\n\t\t});\n\t\treturn id;\n\t}, [dispatch]);\n\tconst openContextModal = useCallback((modal, { modalId, ...props }) => {\n\t\tconst id = modalId || randomId();\n\t\tdispatch({\n\t\t\ttype: \"OPEN\",\n\t\t\tmodal: {\n\t\t\t\tid,\n\t\t\t\ttype: \"context\",\n\t\t\t\tprops,\n\t\t\t\tctx: modal\n\t\t\t}\n\t\t});\n\t\treturn id;\n\t}, [dispatch]);\n\tconst closeModal = useCallback((id, canceled) => {\n\t\tif (!closingRef.current) {\n\t\t\tconst modal = stateRef.current.modals.find((m) => m.id === id);\n\t\t\tif (modal) {\n\t\t\t\tclosingRef.current = true;\n\t\t\t\thandleCloseModal(modal, canceled);\n\t\t\t\tclosingRef.current = false;\n\t\t\t}\n\t\t}\n\t\tdispatch({\n\t\t\ttype: \"CLOSE\",\n\t\t\tmodalId: id,\n\t\t\tcanceled\n\t\t});\n\t}, [stateRef, dispatch]);\n\tconst updateModal = useCallback(({ modalId, ...newProps }) => {\n\t\tdispatch({\n\t\t\ttype: \"UPDATE\",\n\t\t\tmodalId,\n\t\t\tnewProps\n\t\t});\n\t}, [dispatch]);\n\tconst updateContextModal = useCallback(({ modalId, ...newProps }) => {\n\t\tdispatch({\n\t\t\ttype: \"UPDATE\",\n\t\t\tmodalId,\n\t\t\tnewProps\n\t\t});\n\t}, [dispatch]);\n\tuseModalsEvents({\n\t\topenModal,\n\t\topenConfirmModal,\n\t\topenContextModal: ({ modal, ...payload }) => openContextModal(modal, payload),\n\t\tcloseModal,\n\t\tcloseContextModal: closeModal,\n\t\tcloseAllModals: closeAll,\n\t\tupdateModal,\n\t\tupdateContextModal\n\t});\n\tconst ctx = {\n\t\tmodalProps: modalProps || {},\n\t\tmodals: state.modals,\n\t\topenModal,\n\t\topenConfirmModal,\n\t\topenContextModal,\n\t\tcloseModal,\n\t\tcloseContextModal: closeModal,\n\t\tcloseAll,\n\t\tupdateModal,\n\t\tupdateContextModal\n\t};\n\tconst getCurrentModal = () => {\n\t\tconst currentModal = stateRef.current.current;\n\t\tswitch (currentModal?.type) {\n\t\t\tcase \"context\": {\n\t\t\t\tconst { innerProps, ...rest } = currentModal.props;\n\t\t\t\tconst ContextModal = modals[currentModal.ctx];\n\t\t\t\treturn {\n\t\t\t\t\tmodalProps: rest,\n\t\t\t\t\tcontent: /* @__PURE__ */ jsx(ContextModal, {\n\t\t\t\t\t\tinnerProps,\n\t\t\t\t\t\tcontext: ctx,\n\t\t\t\t\t\tid: currentModal.id\n\t\t\t\t\t})\n\t\t\t\t};\n\t\t\t}\n\t\t\tcase \"confirm\": {\n\t\t\t\tconst { modalProps: separatedModalProps, confirmProps: separatedConfirmProps } = separateConfirmModalProps(currentModal.props);\n\t\t\t\treturn {\n\t\t\t\t\tmodalProps: separatedModalProps,\n\t\t\t\t\tcontent: /* @__PURE__ */ jsx(ConfirmModal, {\n\t\t\t\t\t\t...separatedConfirmProps,\n\t\t\t\t\t\tid: currentModal.id,\n\t\t\t\t\t\tlabels: currentModal.props.labels || labels\n\t\t\t\t\t})\n\t\t\t\t};\n\t\t\t}\n\t\t\tcase \"content\": {\n\t\t\t\tconst { children: currentModalChildren, ...rest } = currentModal.props;\n\t\t\t\treturn {\n\t\t\t\t\tmodalProps: rest,\n\t\t\t\t\tcontent: currentModalChildren\n\t\t\t\t};\n\t\t\t}\n\t\t\tdefault: return {\n\t\t\t\tmodalProps: {},\n\t\t\t\tcontent: null\n\t\t\t};\n\t\t}\n\t};\n\tconst { modalProps: currentModalProps, content } = getCurrentModal();\n\treturn /* @__PURE__ */ jsxs(ModalsContext, {\n\t\tvalue: ctx,\n\t\tchildren: [/* @__PURE__ */ jsx(Modal, {\n\t\t\tzIndex: getDefaultZIndex(\"modal\") + 1,\n\t\t\t...modalProps,\n\t\t\t...currentModalProps,\n\t\t\topened: state.modals.length > 0,\n\t\t\tonClose: () => closeModal(state.current?.id),\n\t\t\tchildren: content\n\t\t}), children]\n\t});\n}\n//#endregion\nexport { ModalsProvider };\n\n//# sourceMappingURL=ModalsProvider.mjs.map"
|
|
11
|
+
],
|
|
12
|
+
"mappings": ";;;;;;;;;;;;;;AACA;AADA;AAGA,IAAM,gBAAgB,cAAc,IAAI;AACxC,cAAc,cAAc;;;ACF5B;AAFA;AAIA,SAAS,SAAS,GAAG;AAAA,EACpB,MAAM,MAAM,IAAI,aAAa;AAAA,EAC7B,IAAI,CAAC;AAAA,IAAK,MAAM,IAAI,MAAM,6GAA6G;AAAA,EACvI,OAAO;AAAA;;;ACPR;AAIA,KAAO,iBAAiB,eAAe,wBAAwB,gBAAgB;AAC/E,IAAM,YAAY,CAAC,YAAY;AAAA,EAC9B,MAAM,KAAK,QAAQ,WAAW,SAAS;AAAA,EACvC,YAAY,WAAW,EAAE;AAAA,OACrB;AAAA,IACH,SAAS;AAAA,EACV,CAAC;AAAA,EACD,OAAO;AAAA;AAER,IAAM,mBAAmB,CAAC,YAAY;AAAA,EACrC,MAAM,KAAK,QAAQ,WAAW,SAAS;AAAA,EACvC,YAAY,kBAAkB,EAAE;AAAA,OAC5B;AAAA,IACH,SAAS;AAAA,EACV,CAAC;AAAA,EACD,OAAO;AAAA;AAER,IAAM,mBAAmB,CAAC,YAAY;AAAA,EACrC,MAAM,KAAK,QAAQ,WAAW,SAAS;AAAA,EACvC,YAAY,kBAAkB,EAAE;AAAA,OAC5B;AAAA,IACH,SAAS;AAAA,EACV,CAAC;AAAA,EACD,OAAO;AAAA;AAER,IAAM,aAAa,YAAY,YAAY;AAC3C,IAAM,iBAAiB,YAAY,gBAAgB;AACnD,IAAM,cAAc,CAAC,YAAY,YAAY,aAAa,EAAE,OAAO;AACnE,IAAM,qBAAqB,CAAC,YAAY,YAAY,o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