daisy-ui-kit 5.0.0-pre.29 → 5.0.0-pre.30

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,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { computed, inject, provide, ref, watch } from 'vue'
2
+ import { computed, inject, provide, ref, useId, watch } from 'vue'
3
3
 
4
4
  const props = defineProps<{
5
5
  variant?: 'arrow' | 'plus'
@@ -20,7 +20,7 @@ const useAccordion = accordionValue.value !== null
20
20
  const internalChecked = ref(props.open || false)
21
21
 
22
22
  // Generate unique ID for checkbox
23
- const checkboxId = `collapse-${Math.random().toString(36).substr(2, 9)}`
23
+ const checkboxId = `collapse-${useId()}`
24
24
  provide('collapseCheckboxId', checkboxId)
25
25
  provide('collapseToggle', props.toggle || useAccordion)
26
26
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "daisy-ui-kit",
3
3
  "type": "module",
4
- "version": "5.0.0-pre.29",
4
+ "version": "5.0.0-pre.30",
5
5
  "packageManager": "pnpm@10.10.0",
6
6
  "author": "feathers.dev",
7
7
  "exports": {