@ulu/frontend-vue 0.6.7 → 0.6.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":"UluTab.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/collapsible/UluTab.vue"],"names":[],"mappings":"AAKA;wBAsEqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AATjC,6SAMG"}
1
+ {"version":3,"file":"UluTab.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/collapsible/UluTab.vue"],"names":[],"mappings":"AAKA;wBAyEqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AATjC,6SAMG"}
@@ -1,11 +1,11 @@
1
- import { createBlock as t, openBlock as o, unref as a, withCtx as l, renderSlot as n, normalizeProps as u, guardReactiveProps as p } from "vue";
2
- import { Tab as s } from "@headlessui/vue";
1
+ import { createBlock as t, openBlock as a, unref as o, withCtx as s, renderSlot as l, normalizeProps as _, guardReactiveProps as c } from "vue";
2
+ import { Tab as n } from "@headlessui/vue";
3
3
  const i = {
4
4
  __name: "UluTab",
5
- setup(c) {
6
- return (e, _) => (o(), t(a(s), null, {
7
- default: l((r) => [
8
- n(e.$slots, "default", u(p(r)))
5
+ setup(p) {
6
+ return (e, u) => (a(), t(o(n), { class: "tabs__tab" }, {
7
+ default: s((r) => [
8
+ l(e.$slots, "default", _(c(r)))
9
9
  ]),
10
10
  _: 3
11
11
  }));
@@ -5,10 +5,14 @@ type __VLS_WithTemplateSlots<T, S> = T & (new () => {
5
5
  });
6
6
  declare const __VLS_component: import('vue').DefineComponent<{}, {
7
7
  vertical: boolean;
8
+ sticky: boolean;
9
+ transparent: boolean;
8
10
  modifiers?: string | unknown[] | undefined;
9
11
  defaultIndex?: number | undefined;
10
12
  $props: {
11
13
  readonly vertical?: boolean | undefined;
14
+ readonly sticky?: boolean | undefined;
15
+ readonly transparent?: boolean | undefined;
12
16
  readonly modifiers?: string | unknown[] | undefined;
13
17
  readonly defaultIndex?: number | undefined;
14
18
  };
@@ -1 +1 @@
1
- {"version":3,"file":"UluTabGroup.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/collapsible/UluTabGroup.vue"],"names":[],"mappings":"AAoBA;wBAmJqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAVjC;;;;;;;;;2OAOG"}
1
+ {"version":3,"file":"UluTabGroup.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/collapsible/UluTabGroup.vue"],"names":[],"mappings":"AAeA;wBA2KqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAVjC;;;;;;;;;;;;;2OAOG"}
@@ -1,7 +1,7 @@
1
- import { createBlock as l, openBlock as i, unref as t, withCtx as n, createElementVNode as d, mergeProps as c, renderSlot as u, normalizeProps as f, guardReactiveProps as m } from "vue";
2
- import { TabGroup as p } from "@headlessui/vue";
3
- import { useModifiers as v } from "../../composables/useModifiers.js";
4
- const h = /* @__PURE__ */ Object.assign({
1
+ import { computed as n, createBlock as i, openBlock as l, unref as a, withCtx as c, createElementVNode as d, mergeProps as u, renderSlot as f, normalizeProps as p, guardReactiveProps as m } from "vue";
2
+ import { TabGroup as v } from "@headlessui/vue";
3
+ import { useModifiers as b } from "../../composables/useModifiers.js";
4
+ const y = /* @__PURE__ */ Object.assign({
5
5
  inheritAttrs: !1
6
6
  }, {
7
7
  __name: "UluTabGroup",
@@ -14,27 +14,38 @@ const h = /* @__PURE__ */ Object.assign({
14
14
  * Whether or not to use vertical layout
15
15
  */
16
16
  vertical: Boolean,
17
+ /**
18
+ * Whether or not to use sticky modifier (tablist)
19
+ */
20
+ sticky: Boolean,
21
+ /**
22
+ * Whether or not to use transparent modifier (tab panels)
23
+ */
24
+ transparent: Boolean,
17
25
  /**
18
26
  * Class modifiers (ie. 'transparent', 'secondary', etc)
19
27
  */
20
28
  modifiers: [String, Array]
21
29
  },
22
- setup(e) {
23
- const a = e, { resolvedModifiers: s } = v({ props: a, baseClass: "tabs" });
24
- return (r, b) => (i(), l(t(p), {
25
- defaultIndex: e.defaultIndex,
26
- vertical: e.vertical
30
+ setup(t) {
31
+ const e = t, { resolvedModifiers: s } = b({
32
+ props: e,
33
+ baseClass: "tabs",
34
+ internal: n(() => ({
35
+ vertical: e.vertical,
36
+ sticky: e.sticky,
37
+ transparent: e.transparent
38
+ }))
39
+ });
40
+ return (r, k) => (l(), i(a(v), {
41
+ defaultIndex: t.defaultIndex,
42
+ vertical: t.vertical
27
43
  }, {
28
- default: n((o) => [
29
- d("div", c(r.$attrs, {
30
- class: ["tabs", [
31
- t(s),
32
- {
33
- "tabs--vertical": e.vertical
34
- }
35
- ]]
44
+ default: c((o) => [
45
+ d("div", u(r.$attrs, {
46
+ class: ["tabs", a(s)]
36
47
  }), [
37
- u(r.$slots, "default", f(m(o)))
48
+ f(r.$slots, "default", p(m(o)))
38
49
  ], 16)
39
50
  ]),
40
51
  _: 3
@@ -42,5 +53,5 @@ const h = /* @__PURE__ */ Object.assign({
42
53
  }
43
54
  });
44
55
  export {
45
- h as default
56
+ y as default
46
57
  };
@@ -1 +1 @@
1
- {"version":3,"file":"UluTabPanel.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/collapsible/UluTabPanel.vue"],"names":[],"mappings":"AAKA;wBAsEqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AATjC,6SAMG"}
1
+ {"version":3,"file":"UluTabPanel.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/collapsible/UluTabPanel.vue"],"names":[],"mappings":"AAKA;wBAyEqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AATjC,6SAMG"}
@@ -1,11 +1,11 @@
1
- import { createBlock as t, openBlock as a, unref as o, withCtx as l, renderSlot as n, normalizeProps as u, guardReactiveProps as p } from "vue";
2
- import { TabPanel as s } from "@headlessui/vue";
1
+ import { createBlock as r, openBlock as t, unref as o, withCtx as l, renderSlot as n, normalizeProps as s, guardReactiveProps as p } from "vue";
2
+ import { TabPanel as _ } from "@headlessui/vue";
3
3
  const i = {
4
4
  __name: "UluTabPanel",
5
5
  setup(c) {
6
- return (e, _) => (a(), t(o(s), null, {
7
- default: l((r) => [
8
- n(e.$slots, "default", u(p(r)))
6
+ return (e, u) => (t(), r(o(_), { class: "tabs__tabpanel" }, {
7
+ default: l((a) => [
8
+ n(e.$slots, "default", s(p(a)))
9
9
  ]),
10
10
  _: 3
11
11
  }));
@@ -5,13 +5,13 @@ type __VLS_WithTemplateSlots<T, S> = T & (new () => {
5
5
  });
6
6
  declare const __VLS_component: import('vue').DefineComponent<{}, {
7
7
  iconOnly: boolean;
8
+ transparent: boolean;
8
9
  iconBefore: boolean;
9
10
  primary: boolean;
10
11
  secondary: boolean;
11
12
  small: boolean;
12
13
  large: boolean;
13
14
  outline: boolean;
14
- transparent: boolean;
15
15
  noMargin: boolean;
16
16
  type?: string | undefined;
17
17
  size?: string | undefined;
@@ -26,13 +26,13 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
26
26
  ariaLabel?: string | undefined;
27
27
  $props: {
28
28
  readonly iconOnly?: boolean | undefined;
29
+ readonly transparent?: boolean | undefined;
29
30
  readonly iconBefore?: boolean | undefined;
30
31
  readonly primary?: boolean | undefined;
31
32
  readonly secondary?: boolean | undefined;
32
33
  readonly small?: boolean | undefined;
33
34
  readonly large?: boolean | undefined;
34
35
  readonly outline?: boolean | undefined;
35
- readonly transparent?: boolean | undefined;
36
36
  readonly noMargin?: boolean | undefined;
37
37
  readonly type?: string | undefined;
38
38
  readonly size?: string | undefined;