@saasmakers/ui 0.1.113 → 0.1.114

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,29 +1,10 @@
1
1
  <script lang="ts" setup>
2
2
  import type { BasePower } from '../../types/bases'
3
- // import lottie from 'lottie-web'
4
3
 
5
- const props = withDefaults(defineProps<BasePower>(), {
6
- animated: false,
4
+ withDefaults(defineProps<BasePower>(), {
7
5
  power: 'welcome',
8
6
  size: 'base',
9
7
  })
10
-
11
- const animationLoaded = ref(false)
12
- const animationPlaceholder = ref<HTMLElement>()
13
-
14
- onMounted(() => {
15
- if (props.animated && ['radar'].includes(props.power) && animationPlaceholder.value) {
16
- // lottie.loadAnimation({
17
- // autoplay: true,
18
- // container: animationPlaceholder.value,
19
- // loop: true,
20
- // path: `/animations/bases/BasePower/power-${props.power}.json`,
21
- // renderer: 'svg',
22
- // })
23
-
24
- // setTimeout(() => (animationLoaded.value = true), 1 * 1000)
25
- }
26
- })
27
8
  </script>
28
9
 
29
10
  <template>
@@ -37,17 +18,10 @@ onMounted(() => {
37
18
  }"
38
19
  >
39
20
  <img
40
- v-show="!animationLoaded"
41
21
  :alt="power"
42
22
  class="h-full w-full"
43
23
  loading="lazy"
44
24
  :src="`/images/bases/BasePower/power-${power}.svg`"
45
25
  >
46
-
47
- <div
48
- v-show="animationLoaded"
49
- ref="animationPlaceholder"
50
- class="h-full w-full"
51
- />
52
26
  </div>
53
27
  </template>
@@ -224,7 +224,6 @@ export interface BaseParagraph {
224
224
  export type BaseParagraphSize = 'base' | 'lg' | 'sm'
225
225
 
226
226
  export interface BasePower {
227
- animated?: boolean
228
227
  power?: BasePowerPower
229
228
  size?: BasePowerSize
230
229
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saasmakers/ui",
3
- "version": "0.1.113",
3
+ "version": "0.1.114",
4
4
  "private": false,
5
5
  "description": "Reusable Nuxt UI components for SaaS Makers projects",
6
6
  "repository": {
@@ -43,7 +43,6 @@
43
43
  "@vueuse/nuxt": "14.1.0",
44
44
  "chartist": "1.5.0",
45
45
  "floating-vue": "5.2.2",
46
- "lottie-web": "5.13.0",
47
46
  "motion-v": "1.7.4",
48
47
  "numbro": "2.5.0",
49
48
  "snarkdown": "2.0.0",