nuance-ui 0.1.52 → 0.1.53

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/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^4.0.0"
6
6
  },
7
- "version": "0.1.52",
7
+ "version": "0.1.53",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "3.6.1"
@@ -6,6 +6,7 @@ import Box from "../../box.vue";
6
6
  import NTransition from "../../transition/transition.vue";
7
7
  import { useProvideDialogState } from "../lib";
8
8
  import css from "./dialog.module.css";
9
+ defineOptions({ inheritAttrs: false });
9
10
  const {
10
11
  withinPortal = false,
11
12
  closeOnClickOutside = true,
@@ -4,9 +4,10 @@ import DialogRoot from "../dialog/ui/dialog-root.vue";
4
4
  import css from "./drawer.module.css";
5
5
  const {
6
6
  position = "left",
7
- withoutOverlay = true,
7
+ withoutOverlay = false,
8
+ withinPortal = false,
9
+ closeOnClickOutside = true,
8
10
  mod,
9
- withinPortal = true,
10
11
  ...rest
11
12
  } = defineProps({
12
13
  position: { type: String, required: false },
@@ -47,6 +48,7 @@ const transition = computed(() => {
47
48
  :class='css.content'
48
49
  :within-portal
49
50
  :without-overlay
51
+ :close-on-click-outside
50
52
  :transition
51
53
  v-bind='rest'
52
54
  @open='$emit("open")'
@@ -5,9 +5,9 @@ const {
5
5
  centered,
6
6
  fullScreen,
7
7
  mod,
8
+ withoutOverlay = false,
8
9
  withinPortal = false,
9
10
  closeOnClickOutside = true,
10
- withoutOverlay = false,
11
11
  ...rest
12
12
  } = defineProps({
13
13
  centered: { type: Boolean, required: false },
@@ -1,13 +1,12 @@
1
1
  <script setup>
2
2
  import { $modals } from "@nui/composals";
3
- const activeModals = $modals.modals;
4
3
  </script>
5
4
 
6
5
  <template>
7
6
  <div id='nui-modals-root'>
8
7
  <component
9
8
  :is='entry.component'
10
- v-for='[id, entry] in activeModals'
9
+ v-for='[id, entry] in $modals.modals'
11
10
  :key='id'
12
11
  v-bind='entry.props'
13
12
  />
@@ -4,7 +4,7 @@ export function useModal(id) {
4
4
  const state = computed(() => $modals.state(id));
5
5
  const opened = computed({
6
6
  get: () => state.value?.opened,
7
- set: (opened2) => opened2 ? $modals.show(id, state.value.props) : $modals.reject(id)
7
+ set: (opened2) => opened2 ? $modals.show(id, state.value.props) : $modals.reject(id, "cancel")
8
8
  });
9
9
  if (!state)
10
10
  throw new Error(`Modal ${id} is not exist`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuance-ui",
3
- "version": "0.1.52",
3
+ "version": "0.1.53",
4
4
  "description": "A UI Library for Modern Web Apps, powered by Vue.",
5
5
  "repository": {
6
6
  "type": "git",