@matthiaskrijgsman/mat-ui 0.0.40 → 0.0.41

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/dist/index.d.ts CHANGED
@@ -60,6 +60,7 @@ export { DropdownButton } from "./components/dropdown-menu/DropdownButton.tsx";
60
60
  export { DropdownButtonGroup } from "./components/dropdown-menu/DropdownButtonGroup.tsx";
61
61
  export { DropdownPanel } from "./components/dropdown-menu/DropdownPanel.tsx";
62
62
  export { DropdownMenu } from "./components/dropdown-menu/DropdownMenu.tsx";
63
+ export { useDropdownDismiss, DropdownDismissContext } from "./components/dropdown-menu/use-dropdown-dismiss.ts";
63
64
  export { usePopover } from "./popover/use-popover.tsx";
64
65
  export { useSelectPopover } from "./popover/use-select-popover.tsx";
65
66
  export { PopoverBase } from "./popover/PopoverBase.tsx";
package/dist/index.js CHANGED
@@ -1908,7 +1908,7 @@ const m = (...n) => n.filter(Boolean).join(" "), $n = [
1908
1908
  error: b,
1909
1909
  size: R = "md",
1910
1910
  disabled: N = !1,
1911
- clearable: h = !0
1911
+ clearable: h = !1
1912
1912
  } = n, [v, f] = W(!1), [p, u] = W(null), I = C.useRef(null), x = C.useRef([]), y = r?.find((w) => H(w) && G(w.value, a)), k = se(
1913
1913
  () => r.map((w, g) => !H(w) || w.disabled ? g : -1).filter((w) => w !== -1),
1914
1914
  [r]
@@ -2043,7 +2043,7 @@ const m = (...n) => n.filter(Boolean).join(" "), $n = [
2043
2043
  error: R,
2044
2044
  size: N = "md",
2045
2045
  disabled: h = !1,
2046
- clearable: v = !0
2046
+ clearable: v = !1
2047
2047
  } = n, [f, p] = W(!1), [u, I] = W(r), [x, y] = W(""), [k, S] = W(null), O = C.useRef(null), P = C.useRef(null), T = C.useRef([]), z = r?.find((E) => H(E) && G(E.value, i)), w = se(() => x !== "" ? u : r, [x, u, r]), g = se(
2048
2048
  () => w.map((E, U) => !H(E) || E.disabled ? U : -1).filter((E) => E !== -1),
2049
2049
  [w]
@@ -2217,7 +2217,7 @@ const m = (...n) => n.filter(Boolean).join(" "), $n = [
2217
2217
  error: N,
2218
2218
  size: h = "md",
2219
2219
  disabled: v = !1,
2220
- clearable: f = !0
2220
+ clearable: f = !1
2221
2221
  } = n, [p, u] = W(!1), I = C.useRef(null), [x, y] = W(""), [k, S] = W([]), [O, P] = W(null), T = C.useRef(null), [z, w] = W(!1), [g, M] = W(!1), [L, $] = W(null), j = C.useRef([]), re = se(
2222
2222
  () => k.map((B, A) => !H(B) || B.disabled ? A : -1).filter((B) => B !== -1),
2223
2223
  [k]
@@ -2501,7 +2501,7 @@ const Ll = (n) => {
2501
2501
  singleLine: h = !1,
2502
2502
  color: v = "blue",
2503
2503
  disabled: f = !1,
2504
- clearable: p = !0
2504
+ clearable: p = !1
2505
2505
  } = n, [u, I] = W(!1), [x, y] = W(r), [k, S] = W(""), [O, P] = W(null), T = C.useRef(null), z = C.useRef(null), w = C.useRef([]), g = C.useRef(null), M = C.useRef(null), L = se(
2506
2506
  () => i.map((D) => r.find((F) => H(F) && G(F.value, D))).filter((D) => D !== void 0),
2507
2507
  [i, r]
@@ -3445,6 +3445,7 @@ export {
3445
3445
  Bl as Divider,
3446
3446
  X as DropdownButton,
3447
3447
  Ct as DropdownButtonGroup,
3448
+ jt as DropdownDismissContext,
3448
3449
  Ue as DropdownMenu,
3449
3450
  ve as DropdownPanel,
3450
3451
  Wt as Input,
@@ -3500,6 +3501,7 @@ export {
3500
3501
  wr as UploadFileTile,
3501
3502
  H as isSelectOption,
3502
3503
  wt as lexicalTheme,
3504
+ yr as useDropdownDismiss,
3503
3505
  we as useLexicalToolbar,
3504
3506
  _t as useLexicalToolbarState,
3505
3507
  ct as usePopover,