@mantine-vue/modals 1.1.1 → 1.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 +50 -0
- package/package.json +3 -3
package/README.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# @mantine-vue/modals
|
|
2
|
+
|
|
3
|
+
Centralized manager for dynamic and nested modals in Vue, equivalent to `@mantine/modals`.
|
|
4
|
+
|
|
5
|
+
> Mantine Vue is an independent community port of [Mantine](https://mantine.dev/) for Vue 3. It is not affiliated with or endorsed by the Mantine team.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
yarn add @mantine-vue/modals @mantine-vue/core @mantine-vue/store
|
|
11
|
+
|
|
12
|
+
# or with npm
|
|
13
|
+
npm i @mantine-vue/modals @mantine-vue/core @mantine-vue/store
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Usage
|
|
17
|
+
|
|
18
|
+
```vue
|
|
19
|
+
<script setup>
|
|
20
|
+
import { ModalsProvider, modals } from '@mantine-vue/modals'
|
|
21
|
+
|
|
22
|
+
function openConfirm() {
|
|
23
|
+
modals.openConfirmModal({
|
|
24
|
+
title: 'Please confirm your action',
|
|
25
|
+
labels: { confirm: 'Confirm', cancel: 'Cancel' },
|
|
26
|
+
onConfirm: () => console.log('Confirmed'),
|
|
27
|
+
})
|
|
28
|
+
}
|
|
29
|
+
</script>
|
|
30
|
+
|
|
31
|
+
<template>
|
|
32
|
+
<ModalsProvider>
|
|
33
|
+
<button @click="openConfirm">Open confirm modal</button>
|
|
34
|
+
</ModalsProvider>
|
|
35
|
+
</template>
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Documentation
|
|
39
|
+
|
|
40
|
+
Full API and examples: [mantine-vue.dev/x/modals](https://mantine-vue.dev/x/modals)
|
|
41
|
+
|
|
42
|
+
## Peer dependencies
|
|
43
|
+
|
|
44
|
+
- `vue` ^3.5.0
|
|
45
|
+
- `@mantine-vue/core`
|
|
46
|
+
- `@mantine-vue/store`
|
|
47
|
+
|
|
48
|
+
## License
|
|
49
|
+
|
|
50
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mantine-vue/modals",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "Vue modals management system equivalent to @mantine/modals",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"vue": "^3.5.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@mantine-vue/core": "1.1.
|
|
39
|
-
"@mantine-vue/store": "1.1.
|
|
38
|
+
"@mantine-vue/core": "1.1.3",
|
|
39
|
+
"@mantine-vue/store": "1.1.3",
|
|
40
40
|
"vue": "^3.5.0"
|
|
41
41
|
}
|
|
42
42
|
}
|