@energie360/ui-library 0.1.28 → 0.1.30

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.
@@ -1,12 +1,15 @@
1
1
  <script setup lang="ts">
2
2
  import { ref, watch, computed, useTemplateRef } from 'vue'
3
3
  import { UIcon } from '../../elements'
4
+ import { UBadge } from '../../components'
5
+ import { Badge } from '../badge/u-badge.vue'
4
6
 
5
7
  // TODO: Label animation when collapsed is a mess. Refactor it as soon as possbile!
6
8
 
7
9
  interface Props {
8
10
  label?: string
9
11
  icon: string
12
+ badge?: Badge
10
13
  href?: string
11
14
  target?: string
12
15
  active?: boolean
@@ -16,6 +19,7 @@ interface Props {
16
19
 
17
20
  const {
18
21
  label = '',
22
+ badge = undefined,
19
23
  active = false,
20
24
  collapsed = false,
21
25
  labelHidden = false,
@@ -99,7 +103,11 @@ const tag = computed(() => {
99
103
  @mouseenter="onHover"
100
104
  @mouseleave="onHoverOut"
101
105
  >
102
- <UIcon :name="icon" />
106
+ <UBadge v-if="badge" v-bind="badge">
107
+ <UIcon :name="icon" />
108
+ </UBadge>
109
+ <UIcon v-else :name="icon" />
110
+
103
111
  <span ref="label" class="navigation-toolbar-link__label" :title="label">
104
112
  <slot>{{ label }}</slot>
105
113
  </span>
@@ -1,5 +1,6 @@
1
1
  <script setup lang="ts">
2
- import { DotLottieVue } from '@lottiefiles/dotlottie-vue'
2
+ import { DotLottieVue, setWasmUrl } from '@lottiefiles/dotlottie-vue'
3
+ import wasmUrl from '@lottiefiles/dotlottie-web/dist/dotlottie-player.wasm?url'
3
4
  import { ref, onMounted, useTemplateRef } from 'vue'
4
5
 
5
6
  interface Props {
@@ -8,6 +9,8 @@ interface Props {
8
9
 
9
10
  defineProps<Props>()
10
11
 
12
+ setWasmUrl(wasmUrl)
13
+
11
14
  const innerEl = useTemplateRef('inner')
12
15
  const isEmpty = ref(false)
13
16
  const checkItems = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@energie360/ui-library",
3
- "version": "0.1.28",
3
+ "version": "0.1.30",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -24,17 +24,18 @@
24
24
  "author": "",
25
25
  "license": "MIT",
26
26
  "devDependencies": {
27
- "@tsconfig/node22": "^22.0.2",
28
- "@types/node": "^22.19.0",
27
+ "@tsconfig/node22": "^22.0.5",
28
+ "@types/node": "^22.19.2",
29
29
  "@vue/tsconfig": "^0.7.0",
30
30
  "autoprefixer": "^10.4.22",
31
31
  "chokidar": "^4.0.3",
32
32
  "postcss": "^8.5.6",
33
- "sass": "^1.94.0",
33
+ "sass": "^1.96.0",
34
34
  "typescript": "^5.9.3"
35
35
  },
36
36
  "dependencies": {
37
- "@lottiefiles/dotlottie-vue": "^0.10.7",
37
+ "@lottiefiles/dotlottie-vue": "^0.10.10",
38
+ "@lottiefiles/dotlottie-web": "^0.58.1",
38
39
  "@lottiefiles/lottie-player": "^2.0.12",
39
40
  "@energie360/design-tokens": "^1.3.0"
40
41
  },