akar 1.13.0 → 2.0.0

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "akar",
3
3
  "type": "module",
4
- "version": "1.13.0",
4
+ "version": "2.0.0",
5
5
  "description": "Vue UI components",
6
6
  "author": "Vinicunca Contributors (https://github.com/vinicunca)",
7
7
  "license": "MIT",
@@ -74,8 +74,8 @@
74
74
  "@internationalized/number": "^3.6.5",
75
75
  "@tanstack/vue-virtual": "^3.13.12",
76
76
  "@vinicunca/perkakas": "1.9.0",
77
- "@vueuse/core": "13.9.0",
78
- "@vueuse/shared": "13.9.0",
77
+ "@vueuse/core": "14.1.0",
78
+ "@vueuse/shared": "14.1.0",
79
79
  "aria-hidden": "^1.2.6",
80
80
  "defu": "^6.1.4"
81
81
  },
@@ -92,7 +92,7 @@
92
92
  "@vitest/coverage-istanbul": "^3.2.4",
93
93
  "@vue/test-utils": "^2.4.6",
94
94
  "@vue/tsconfig": "^0.8.1",
95
- "happy-dom": "^20.0.0",
95
+ "happy-dom": "^20.0.11",
96
96
  "jsdom": "^27.0.0",
97
97
  "tsdown": "^0.12.9",
98
98
  "vite": "^7.2.4",
@@ -45,7 +45,12 @@ export const [
45
45
  import { computed } from 'vue';
46
46
  import { ACollapsibleRoot } from '../collapsible';
47
47
 
48
- const props = defineProps<AAccordionItemProps>();
48
+ const props = withDefaults(
49
+ defineProps<AAccordionItemProps>(),
50
+ {
51
+ unmountOnHide: undefined,
52
+ },
53
+ );
49
54
 
50
55
  defineSlots<{
51
56
  default?: (props: {
@@ -119,7 +124,7 @@ function handleArrowKey(event: KeyboardEvent) {
119
124
  :open="open"
120
125
  :as="props.as"
121
126
  :as-child="props.asChild"
122
- :unmount-on-hide="rootContext.unmountOnHide.value"
127
+ :unmount-on-hide="props.unmountOnHide ?? rootContext.unmountOnHide.value"
123
128
  @keydown.up.down.left.right.home.end="handleArrowKey"
124
129
  >
125
130
  <slot :open="open" />