daisy-ui-kit 5.0.0-pre.19 → 5.0.0-pre.20

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.
@@ -36,11 +36,11 @@ const props = withDefaults(
36
36
  }>(),
37
37
  {
38
38
  value: (val: any) => {
39
- if (!val) {
39
+ if (val == null) {
40
40
  return null
41
41
  }
42
42
 
43
- return typeof val === 'string' ? (val as string) : val?.value || val?.id || val?._id || val
43
+ return typeof val === 'string' ? (val as string) : (val?.value ?? val?.id ?? val?._id ?? val)
44
44
  },
45
45
  label: (val: any) => (typeof val === 'string' ? (val as string) : val.label || val.name || val.title),
46
46
  resultAsObject: false,
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.19",
4
+ "version": "5.0.0-pre.20",
5
5
  "packageManager": "pnpm@10.10.0",
6
6
  "author": "feathers.dev",
7
7
  "exports": {