@invopop/popui 0.1.4-beta.49 → 0.1.4-beta.50

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.
@@ -19,6 +19,7 @@
19
19
  fullWidth = false,
20
20
  widthClass = 'min-w-[160px] max-w-[420px]',
21
21
  onSelect,
22
+ onOpenChange,
22
23
  stackLeft = false,
23
24
  stackRight = false,
24
25
  multipleLabel = 'items'
@@ -32,6 +33,10 @@
32
33
  resolveIcon(icon).then((res) => (resolvedIcon = res))
33
34
  })
34
35
 
36
+ $effect(() => {
37
+ onOpenChange?.(isOpen)
38
+ })
39
+
35
40
  let items = $derived(
36
41
  options.map((o) => ({
37
42
  ...o,
package/dist/types.d.ts CHANGED
@@ -429,6 +429,7 @@ export interface DropdownSelectProps {
429
429
  fullWidth?: boolean;
430
430
  widthClass?: string;
431
431
  onSelect?: (value: AnyProp) => void;
432
+ onOpenChange?: (isOpen: boolean) => void;
432
433
  stackLeft?: boolean;
433
434
  stackRight?: boolean;
434
435
  multipleLabel?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@invopop/popui",
3
3
  "license": "MIT",
4
- "version": "0.1.4-beta.49",
4
+ "version": "0.1.4-beta.50",
5
5
  "repository": {
6
6
  "url": "https://github.com/invopop/popui"
7
7
  },