frappe-ui 0.0.37 → 0.0.38

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.0.37",
3
+ "version": "0.0.38",
4
4
  "description": "A set of components and utilities for rapid UI development",
5
5
  "main": "./src/index.js",
6
6
  "scripts": {
@@ -75,8 +75,12 @@ export default {
75
75
  transition: {
76
76
  default: null,
77
77
  },
78
+ hideOnBlur: {
79
+ default: true,
80
+ },
78
81
  },
79
82
  emits: ['open', 'close', 'update:show'],
83
+ expose: ['open', 'close'],
80
84
  data() {
81
85
  return {
82
86
  showPopup: false,
@@ -110,7 +114,7 @@ export default {
110
114
  }
111
115
  this.close()
112
116
  }
113
- if (!this.showPropPassed) {
117
+ if (this.hideOnBlur) {
114
118
  document.addEventListener('click', this.listener)
115
119
  }
116
120
  this.$nextTick(() => {