@ulu/frontend-vue 0.2.0-beta.8 → 0.2.0-beta.9

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 +1 @@
1
- {"version":3,"file":"UluConditionalWrapper.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/utils/UluConditionalWrapper.vue"],"names":[],"mappings":"AAQA;wBA6GqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAVjC;;;;;;;2OAOG"}
1
+ {"version":3,"file":"UluConditionalWrapper.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/utils/UluConditionalWrapper.vue"],"names":[],"mappings":"AAQA;wBAsHqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAVjC;;;;;;;2OAOG"}
@@ -1,5 +1,7 @@
1
- import { createBlock as n, renderSlot as a, openBlock as o, resolveDynamicComponent as l, withCtx as r } from "vue";
2
- const s = {
1
+ import { createBlock as a, renderSlot as r, openBlock as n, resolveDynamicComponent as o, normalizeProps as s, mergeProps as l, withCtx as i } from "vue";
2
+ const d = /* @__PURE__ */ Object.assign({
3
+ inheritAttrs: !1
4
+ }, {
3
5
  __name: "UluConditionalWrapper",
4
6
  props: {
5
7
  /**
@@ -21,15 +23,15 @@ const s = {
21
23
  default: !1
22
24
  }
23
25
  },
24
- setup(e) {
25
- return (t, p) => e.unwrapped ? a(t.$slots, "default", { key: 1 }) : (o(), n(l(e.is), { key: 0 }, {
26
- default: r(() => [
27
- a(t.$slots, "default")
26
+ setup(t) {
27
+ return (e, p) => t.unwrapped ? r(e.$slots, "default", { key: 1 }) : (n(), a(o(t.is), s(l({ key: 0 }, e.$attrs)), {
28
+ default: i(() => [
29
+ r(e.$slots, "default")
28
30
  ]),
29
31
  _: 3
30
- }));
32
+ }, 16));
31
33
  }
32
- };
34
+ });
33
35
  export {
34
- s as default
36
+ d as default
35
37
  };
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <component v-if="!unwrapped" :is="is">
2
+ <component v-if="!unwrapped" :is="is" v-bind="$attrs">
3
3
  <slot></slot>
4
4
  </component>
5
5
  <template v-else>
@@ -8,6 +8,10 @@
8
8
  </template>
9
9
 
10
10
  <script setup>
11
+ defineOptions({
12
+ inheritAttrs: false
13
+ });
14
+
11
15
  defineProps({
12
16
  /**
13
17
  * The underlying component or HTML tag to render.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ulu/frontend-vue",
3
- "version": "0.2.0-beta.8",
3
+ "version": "0.2.0-beta.9",
4
4
  "description": "A modular and tree-shakeable Vue 3 component library for the Ulu frontend",
5
5
  "type": "module",
6
6
  "files": [