frappe-ui 0.0.1 → 0.0.2

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.1",
3
+ "version": "0.0.2",
4
4
  "description": "A set of components and utilities for rapid UI development",
5
5
  "main": "./src/index.js",
6
6
  "scripts": {
@@ -17,7 +17,6 @@
17
17
  "@tailwindcss/typography": "^0.5.0",
18
18
  "autoprefixer": "^10.4.2",
19
19
  "feather-icons": "^4.28.0",
20
- "lodash": "^4.17.21",
21
20
  "postcss": "^8.4.5",
22
21
  "socket.io-client": "^2.4.0",
23
22
  "tailwindcss": "^3.0.12"
@@ -58,7 +58,6 @@
58
58
 
59
59
  <script>
60
60
  import Popover from './Popover.vue'
61
- import uniq from 'lodash/uniq'
62
61
  import onOutsideClick from '../directives/onOutsideClick'
63
62
 
64
63
  export default {
@@ -104,12 +103,14 @@ export default {
104
103
  if (Array.isArray(this.groups)) {
105
104
  return this.groups
106
105
  }
107
- let groupNames = uniq(
108
- this.items
109
- .map((d) => d.group)
110
- .filter(Boolean)
111
- .sort()
112
- )
106
+ let groupNames = [
107
+ ...new Set(
108
+ this.items
109
+ .map((d) => d.group)
110
+ .filter(Boolean)
111
+ .sort()
112
+ ),
113
+ ]
113
114
  if (groupNames.length > 0) {
114
115
  return groupNames
115
116
  }