frappe-ui 0.1.66 → 0.1.67

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "frappe-ui",
3
- "version": "0.1.66",
3
+ "version": "0.1.67",
4
4
  "description": "A set of components and utilities for rapid UI development",
5
5
  "main": "./src/index.js",
6
6
  "scripts": {
@@ -4,7 +4,11 @@
4
4
  :show="open"
5
5
  @after-leave="$emit('after-leave')"
6
6
  >
7
- <HDialog as="div" class="fixed inset-0 z-10 overflow-y-auto" @close="close">
7
+ <HDialog
8
+ as="div"
9
+ class="fixed inset-0 z-10 overflow-y-auto"
10
+ @close="!disableOutsideClickToClose && close()"
11
+ >
8
12
  <div
9
13
  class="flex min-h-screen flex-col items-center px-4 py-4 text-center"
10
14
  :class="dialogPositionClasses"
@@ -149,14 +153,14 @@
149
153
  </template>
150
154
 
151
155
  <script>
152
- import { computed, ref } from 'vue'
153
156
  import {
154
- Dialog as HDialog,
155
157
  DialogPanel,
156
158
  DialogTitle,
159
+ Dialog as HDialog,
157
160
  TransitionChild,
158
161
  TransitionRoot,
159
162
  } from '@headlessui/vue'
163
+ import { ref } from 'vue'
160
164
  import Button from './Button.vue'
161
165
  import FeatherIcon from './FeatherIcon.vue'
162
166
 
@@ -173,6 +177,10 @@ export default {
173
177
  return {}
174
178
  },
175
179
  },
180
+ disableOutsideClickToClose: {
181
+ type: Boolean,
182
+ default: false,
183
+ },
176
184
  },
177
185
  emits: ['update:modelValue', 'close', 'after-leave'],
178
186
  components: {