@ulu/frontend-vue 0.1.3-beta.14 → 0.1.3-beta.15

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.
@@ -1936,6 +1936,27 @@ const ao = ["id", "aria-controls", "aria-expanded"], ro = ["id", "aria-hidden",
1936
1936
  items: {
1937
1937
  type: Array,
1938
1938
  default: () => []
1939
+ },
1940
+ /**
1941
+ * If using summary text sets the inner element the text is wrapped in, usually a headline or strong
1942
+ */
1943
+ triggerTextElement: {
1944
+ type: String,
1945
+ default: "strong"
1946
+ },
1947
+ /**
1948
+ * Class modifiers (ie. 'transparent', 'secondary', etc)
1949
+ */
1950
+ modifiers: [String, Array],
1951
+ /**
1952
+ * Enable or configure animations.
1953
+ * - `false` (default) to disable all animations.
1954
+ * - `true` to enable animations with default settings.
1955
+ * - An object to provide custom options to auto-animate (e.g., { duration: 100, easing: 'linear' }).
1956
+ */
1957
+ animate: {
1958
+ type: [Boolean, Object],
1959
+ default: !0
1939
1960
  }
1940
1961
  },
1941
1962
  setup(e) {
@@ -1957,7 +1978,10 @@ const ao = ["id", "aria-controls", "aria-expanded"], ro = ["id", "aria-hidden",
1957
1978
  "model-value": a.isOpen,
1958
1979
  "onUpdate:modelValue": (c) => s(r, c),
1959
1980
  "trigger-text": a.title,
1960
- classes: a.classes
1981
+ classes: a.classes,
1982
+ "trigger-text-element": e.triggerTextElement,
1983
+ modifiers: e.modifiers,
1984
+ animate: e.animate
1961
1985
  }, Te({
1962
1986
  default: $(({ isOpen: c, toggle: i }) => [
1963
1987
  g(l.$slots, "item", {
@@ -1993,7 +2017,7 @@ const ao = ["id", "aria-controls", "aria-expanded"], ro = ["id", "aria-hidden",
1993
2017
  ]),
1994
2018
  key: "1"
1995
2019
  } : void 0
1996
- ]), 1032, ["model-value", "onUpdate:modelValue", "trigger-text", "classes"]))), 128))
2020
+ ]), 1032, ["model-value", "onUpdate:modelValue", "trigger-text", "classes", "trigger-text-element", "modifiers", "animate"]))), 128))
1997
2021
  ]));
1998
2022
  }
1999
2023
  }, os = {
@@ -5,7 +5,10 @@ type __VLS_WithSlots<T, S> = T & (new () => {
5
5
  });
6
6
  declare const __VLS_component: import("vue").DefineComponent<{}, {
7
7
  $props: Partial<typeof props>;
8
+ animate: boolean | Record<string, any>;
9
+ triggerTextElement: string;
8
10
  items: unknown[];
11
+ modifiers?: string | unknown[] | undefined;
9
12
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
10
13
  type __VLS_Slots = {
11
14
  trigger?: ((props: {
@@ -28,6 +31,9 @@ type __VLS_Slots = {
28
31
  }) => any) | undefined;
29
32
  };
30
33
  declare const props: {
34
+ readonly animate: boolean | Record<string, any>;
35
+ readonly triggerTextElement: string;
31
36
  readonly items: unknown[];
37
+ readonly modifiers?: string | unknown[] | undefined;
32
38
  };
33
39
  //# sourceMappingURL=UluAccordionGroup.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UluAccordionGroup.vue.d.ts","sourceRoot":"","sources":["../../../../lib/components/collapsible/UluAccordionGroup.vue"],"names":[],"mappings":"wBAoNqB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;;qBAEpD,CAAC,EAAE,CAAC;;;AARzB;YAGmB,OAAO,CAAC,OAAO,KAAK,CAAC;;2OAErC;;;;;;;;;;;;;;;;;;;;;AA9IH;;EASG"}
1
+ {"version":3,"file":"UluAccordionGroup.vue.d.ts","sourceRoot":"","sources":["../../../../lib/components/collapsible/UluAccordionGroup.vue"],"names":[],"mappings":"wBAsQqB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;;qBAEpD,CAAC,EAAE,CAAC;;;AARzB;YAGmB,OAAO,CAAC,OAAO,KAAK,CAAC;;;;;2OAErC;;;;;;;;;;;;;;;;;;;;;AAzKH;;;;;EA8BG"}
@@ -7,6 +7,9 @@
7
7
  @update:modelValue="(newValue) => handleToggle(index, newValue)"
8
8
  :trigger-text="item.title"
9
9
  :classes="item.classes"
10
+ :trigger-text-element="triggerTextElement"
11
+ :modifiers="modifiers"
12
+ :animate="animate"
10
13
  >
11
14
  <template #trigger="{ isOpen }" v-if="$slots.trigger">
12
15
  <slot name="trigger" :item="item" :index="index" :isOpen="isOpen"></slot>
@@ -37,7 +40,28 @@ const props = defineProps({
37
40
  items: {
38
41
  type: Array,
39
42
  default: () => []
40
- }
43
+ },
44
+ /**
45
+ * If using summary text sets the inner element the text is wrapped in, usually a headline or strong
46
+ */
47
+ triggerTextElement: {
48
+ type: String,
49
+ default: "strong"
50
+ },
51
+ /**
52
+ * Class modifiers (ie. 'transparent', 'secondary', etc)
53
+ */
54
+ modifiers: [String, Array],
55
+ /**
56
+ * Enable or configure animations.
57
+ * - `false` (default) to disable all animations.
58
+ * - `true` to enable animations with default settings.
59
+ * - An object to provide custom options to auto-animate (e.g., { duration: 100, easing: 'linear' }).
60
+ */
61
+ animate: {
62
+ type: [Boolean, Object],
63
+ default: true
64
+ },
41
65
  });
42
66
 
43
67
  const internalItems = ref([]);
@@ -61,4 +85,4 @@ function handleToggle(selectedIndex, newValue) {
61
85
  internalItems.value[selectedIndex].isOpen = false;
62
86
  }
63
87
  }
64
- </script>
88
+ </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ulu/frontend-vue",
3
- "version": "0.1.3-beta.14",
3
+ "version": "0.1.3-beta.15",
4
4
  "description": "A modular and tree-shakeable Vue 3 component library for the Ulu frontend",
5
5
  "type": "module",
6
6
  "files": [