@eqtylab/equality 4.1.0 → 4.3.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/dist/index.cjs CHANGED
@@ -1362,7 +1362,7 @@ var DialogDescription = React15__namespace.forwardRef(({ className, ...props },
1362
1362
  }
1363
1363
  ));
1364
1364
  DialogDescription.displayName = DialogPrimitive__namespace.Description.displayName;
1365
- var DialogContent = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles16__default.default["dialog-body"], "styled-vertical-scrollbar", className), ...props });
1365
+ var DialogContent = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles16__default.default["dialog-body"], className), ...props });
1366
1366
  DialogContent.displayName = "DialogContent";
1367
1367
  function Command({ className, ...props }) {
1368
1368
  return /* @__PURE__ */ jsxRuntime.jsx(cmdk.Command, { "data-slot": "command", className: cn(styles17__default.default.command, className), ...props });
@@ -1830,18 +1830,79 @@ var DrawerDescription = React15__namespace.forwardRef(({ className, ...props },
1830
1830
  DrawerDescription.displayName = vaul.Drawer.Description.displayName;
1831
1831
  var DrawerInnerContent = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles21__default.default["drawer-inner-content"], className), ...props });
1832
1832
  DrawerInnerContent.displayName = "DrawerInnerContent";
1833
- var CheckIcon2 = LucideIcons.Check;
1834
- var ChevronRightIcon2 = LucideIcons.ChevronRight;
1835
- var CircleIcon = LucideIcons.Circle;
1836
- var SearchIcon2 = LucideIcons.Search;
1837
- var DropdownMenuSearchContext = React15__namespace.createContext(null);
1838
- var useDropdownMenuSearch = () => React15__namespace.useContext(DropdownMenuSearchContext);
1839
- var useIsSearching = () => {
1840
- const ctx = useDropdownMenuSearch();
1841
- return !!ctx && ctx.query.trim().length > 0;
1842
- };
1843
- var DropdownMenuBreadcrumbContext = React15__namespace.createContext([]);
1844
- var useBreadcrumbAncestry = () => React15__namespace.useContext(DropdownMenuBreadcrumbContext);
1833
+ function useMatchRegistry() {
1834
+ const itemsRef = React15__namespace.useRef(/* @__PURE__ */ new Map());
1835
+ const [matchCount, setMatchCount] = React15__namespace.useState(0);
1836
+ const registerItem = React15__namespace.useCallback((id, matches) => {
1837
+ const delta = Number(matches) - Number(itemsRef.current.get(id) ?? false);
1838
+ itemsRef.current.set(id, matches);
1839
+ if (delta) setMatchCount((count2) => count2 + delta);
1840
+ }, []);
1841
+ const unregisterItem = React15__namespace.useCallback((id) => {
1842
+ if (itemsRef.current.get(id)) setMatchCount((count2) => count2 - 1);
1843
+ itemsRef.current.delete(id);
1844
+ }, []);
1845
+ return React15__namespace.useMemo(
1846
+ () => ({ registerItem, unregisterItem, matchCount }),
1847
+ [registerItem, unregisterItem, matchCount]
1848
+ );
1849
+ }
1850
+ function useListSearchState(open) {
1851
+ const [enabled, setEnabled] = React15__namespace.useState(false);
1852
+ const [visible, setVisible] = React15__namespace.useState(false);
1853
+ const [query, setQuery] = React15__namespace.useState("");
1854
+ const [listId, setListId] = React15__namespace.useState(void 0);
1855
+ const [focusSignal, setFocusSignal] = React15__namespace.useState(0);
1856
+ const requestFocus = React15__namespace.useCallback(() => setFocusSignal((n) => n + 1), []);
1857
+ const { registerItem, unregisterItem, matchCount } = useMatchRegistry();
1858
+ const reveal = React15__namespace.useCallback((seed) => {
1859
+ setVisible(true);
1860
+ setQuery(seed);
1861
+ }, []);
1862
+ const resetForOpen = React15__namespace.useCallback(() => {
1863
+ setVisible(false);
1864
+ setQuery("");
1865
+ }, []);
1866
+ const [previousOpen, setPreviousOpen] = React15__namespace.useState(open);
1867
+ if (open !== previousOpen) {
1868
+ setPreviousOpen(open);
1869
+ if (open) resetForOpen();
1870
+ }
1871
+ return React15__namespace.useMemo(
1872
+ () => ({
1873
+ enabled,
1874
+ setEnabled,
1875
+ visible,
1876
+ reveal,
1877
+ query,
1878
+ setQuery,
1879
+ focusSignal,
1880
+ requestFocus,
1881
+ registerItem,
1882
+ unregisterItem,
1883
+ matchCount,
1884
+ resetForOpen,
1885
+ listId,
1886
+ setListId
1887
+ }),
1888
+ [
1889
+ enabled,
1890
+ visible,
1891
+ reveal,
1892
+ query,
1893
+ focusSignal,
1894
+ requestFocus,
1895
+ registerItem,
1896
+ unregisterItem,
1897
+ matchCount,
1898
+ resetForOpen,
1899
+ listId
1900
+ ]
1901
+ );
1902
+ }
1903
+ var isSearchActive = (state) => !!state && state.query.trim().length > 0;
1904
+ var isSearchEmpty = (state) => isSearchActive(state) && state.matchCount === 0;
1905
+ var formatResultCount = (count2) => `${count2} result${count2 === 1 ? "" : "s"} available`;
1845
1906
  function getNodeText(node) {
1846
1907
  if (node == null || typeof node === "boolean") return "";
1847
1908
  if (typeof node === "string" || typeof node === "number") return String(node);
@@ -1851,6 +1912,66 @@ function getNodeText(node) {
1851
1912
  }
1852
1913
  return "";
1853
1914
  }
1915
+ var matchesQuery = (query, textValue, children) => {
1916
+ const normalized = query.trim().toLowerCase();
1917
+ return !normalized || (textValue ?? getNodeText(children)).toLowerCase().includes(normalized);
1918
+ };
1919
+ function useRegisterMatch(registry, enabled, id, matches) {
1920
+ const registerItem = registry?.registerItem;
1921
+ const unregisterItem = registry?.unregisterItem;
1922
+ React15__namespace.useEffect(() => {
1923
+ if (!enabled || !registerItem || !unregisterItem) return;
1924
+ registerItem(id, matches);
1925
+ return () => unregisterItem(id);
1926
+ }, [enabled, registerItem, unregisterItem, id, matches]);
1927
+ }
1928
+ function useFilterableItem(state, textValue, children, group) {
1929
+ const id = React15__namespace.useId();
1930
+ const matches = matchesQuery(state?.query ?? "", textValue, children);
1931
+ const enabled = state?.enabled ?? false;
1932
+ useRegisterMatch(state, enabled, id, matches);
1933
+ useRegisterMatch(group, enabled, id, matches);
1934
+ return matches;
1935
+ }
1936
+ function useSearchInput(state, alwaysVisible, forwardedRef) {
1937
+ const { setEnabled, reveal, visible, focusSignal } = state;
1938
+ const inputRef = React15__namespace.useRef(null);
1939
+ const ref = React15__namespace.useCallback(
1940
+ (node) => assignRefs(node, inputRef, forwardedRef),
1941
+ [forwardedRef]
1942
+ );
1943
+ React15__namespace.useEffect(() => {
1944
+ setEnabled(true);
1945
+ return () => setEnabled(false);
1946
+ }, [setEnabled]);
1947
+ React15__namespace.useEffect(() => {
1948
+ if (!visible) return;
1949
+ const input = inputRef.current;
1950
+ if (!input) return;
1951
+ input.focus();
1952
+ input.setSelectionRange(input.value.length, input.value.length);
1953
+ }, [visible, focusSignal]);
1954
+ React15__namespace.useEffect(() => {
1955
+ if (alwaysVisible && !visible) reveal("");
1956
+ }, [alwaysVisible, visible, reveal]);
1957
+ return { ref, isRendered: alwaysVisible || visible };
1958
+ }
1959
+ var isPrintableKey = (event) => event.key.length === 1 && !event.metaKey && !event.ctrlKey && !event.altKey && /\S/.test(event.key);
1960
+ function assignRefs(node, ...refs) {
1961
+ refs.forEach((ref) => {
1962
+ if (typeof ref === "function") ref(node);
1963
+ else if (ref) ref.current = node;
1964
+ });
1965
+ }
1966
+ var CheckIcon2 = LucideIcons.Check;
1967
+ var ChevronRightIcon2 = LucideIcons.ChevronRight;
1968
+ var CircleIcon = LucideIcons.Circle;
1969
+ var SearchIcon2 = LucideIcons.Search;
1970
+ var DropdownMenuSearchContext = React15__namespace.createContext(null);
1971
+ var useDropdownMenuSearch = () => React15__namespace.useContext(DropdownMenuSearchContext);
1972
+ var useIsSearching = () => isSearchActive(useDropdownMenuSearch());
1973
+ var DropdownMenuBreadcrumbContext = React15__namespace.createContext([]);
1974
+ var useBreadcrumbAncestry = () => React15__namespace.useContext(DropdownMenuBreadcrumbContext);
1854
1975
  var SUB_CONTENT_NAME = "DropdownMenuSubContent";
1855
1976
  var SUB_TRIGGER_NAME = "DropdownMenuSubTrigger";
1856
1977
  function hasDisplayName(node, name) {
@@ -1880,100 +2001,24 @@ function getSubTriggerLabel(nodes) {
1880
2001
  const trigger = React15__namespace.Children.toArray(nodes).find(isSubTrigger);
1881
2002
  return trigger ? getNodeText(trigger.props.children) : "";
1882
2003
  }
1883
- function useFilterableItem(textValue, children) {
1884
- const ctx = useDropdownMenuSearch();
1885
- const id = React15__namespace.useId();
1886
- const query = ctx?.query.trim().toLowerCase() ?? "";
1887
- const visible = !query || (textValue ?? getNodeText(children)).toLowerCase().includes(query);
1888
- const enabled = ctx?.enabled ?? false;
1889
- const registerItem = ctx?.registerItem;
1890
- const unregisterItem = ctx?.unregisterItem;
1891
- React15__namespace.useEffect(() => {
1892
- if (!enabled || !registerItem || !unregisterItem) return;
1893
- registerItem(id, visible);
1894
- return () => unregisterItem(id);
1895
- }, [enabled, registerItem, unregisterItem, id, visible]);
1896
- return visible;
1897
- }
1898
2004
  var DropdownMenu = ({
1899
2005
  children,
2006
+ open,
1900
2007
  onOpenChange,
1901
2008
  ...props
1902
2009
  }) => {
1903
- const [enabled, setEnabled] = React15__namespace.useState(false);
1904
- const [visible, setVisible] = React15__namespace.useState(false);
1905
- const [query, setQuery] = React15__namespace.useState("");
1906
- const [focusSignal, setFocusSignal] = React15__namespace.useState(0);
1907
- const requestFocus = React15__namespace.useCallback(() => setFocusSignal((n) => n + 1), []);
1908
- const [listId, setListId] = React15__namespace.useState(void 0);
1909
- const itemsRef = React15__namespace.useRef(/* @__PURE__ */ new Map());
1910
- const [matchCount, setMatchCount] = React15__namespace.useState(0);
1911
- const recount = React15__namespace.useCallback(() => {
1912
- let count2 = 0;
1913
- itemsRef.current.forEach((matches) => {
1914
- if (matches) count2 += 1;
1915
- });
1916
- setMatchCount(count2);
1917
- }, []);
1918
- const registerItem = React15__namespace.useCallback(
1919
- (id, matches) => {
1920
- itemsRef.current.set(id, matches);
1921
- recount();
1922
- },
1923
- [recount]
1924
- );
1925
- const unregisterItem = React15__namespace.useCallback(
1926
- (id) => {
1927
- itemsRef.current.delete(id);
1928
- recount();
1929
- },
1930
- [recount]
1931
- );
1932
- const reveal = React15__namespace.useCallback((seed) => {
1933
- setVisible(true);
1934
- setQuery(seed);
1935
- }, []);
2010
+ const search = useListSearchState(open);
2011
+ const { resetForOpen } = search;
1936
2012
  const handleOpenChange = React15__namespace.useCallback(
1937
- (open) => {
1938
- if (open) {
1939
- setVisible(false);
1940
- setQuery("");
1941
- }
1942
- onOpenChange?.(open);
2013
+ (nextOpen) => {
2014
+ if (nextOpen) resetForOpen();
2015
+ onOpenChange?.(nextOpen);
1943
2016
  },
1944
- [onOpenChange]
1945
- );
1946
- const value = React15__namespace.useMemo(
1947
- () => ({
1948
- enabled,
1949
- setEnabled,
1950
- visible,
1951
- reveal,
1952
- query,
1953
- setQuery,
1954
- focusSignal,
1955
- requestFocus,
1956
- listId,
1957
- setListId,
1958
- registerItem,
1959
- unregisterItem,
1960
- matchCount
1961
- }),
1962
- [
1963
- enabled,
1964
- visible,
1965
- reveal,
1966
- query,
1967
- focusSignal,
1968
- requestFocus,
1969
- listId,
1970
- registerItem,
1971
- unregisterItem,
1972
- matchCount
1973
- ]
2017
+ [onOpenChange, resetForOpen]
1974
2018
  );
1975
- return /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuSearchContext.Provider, { value, children: /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Root, { onOpenChange: handleOpenChange, ...props, children }) });
2019
+ return /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuSearchContext.Provider, { value: search, children: /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Root, { open, onOpenChange: handleOpenChange, ...props, children }) });
1976
2020
  };
2021
+ DropdownMenu.displayName = "DropdownMenu";
1977
2022
  var DropdownMenuTrigger = DropdownMenuPrimitive__namespace.Trigger;
1978
2023
  var DropdownMenuGroup = DropdownMenuPrimitive__namespace.Group;
1979
2024
  var DropdownMenuPortal = ({ children }) => /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Portal, { container: usePortalContainer(), children });
@@ -2025,7 +2070,7 @@ var MENU_ITEM_SELECTOR = '[role="menuitem"]:not([data-disabled]),[role="menuitem
2025
2070
  var DropdownMenuContent = React15__namespace.forwardRef(({ className, sideOffset = 4, onKeyDown, children, ...props }, ref) => {
2026
2071
  const ctx = useDropdownMenuSearch();
2027
2072
  const setListId = ctx?.setListId;
2028
- const searching = !!ctx && ctx.query.trim().length > 0;
2073
+ const searching = isSearchActive(ctx);
2029
2074
  const resultCount = ctx?.matchCount ?? 0;
2030
2075
  const composedContentRef = React15__namespace.useCallback(
2031
2076
  (node) => {
@@ -2057,8 +2102,7 @@ var DropdownMenuContent = React15__namespace.forwardRef(({ className, sideOffset
2057
2102
  }
2058
2103
  }
2059
2104
  if (event.defaultPrevented) return;
2060
- const isPrintable = event.key.length === 1 && !event.metaKey && !event.ctrlKey && !event.altKey && /\S/.test(event.key);
2061
- if (!isPrintable) return;
2105
+ if (!isPrintableKey(event)) return;
2062
2106
  const target = event.target;
2063
2107
  if (target?.closest?.("[data-dropdown-search]")) return;
2064
2108
  event.preventDefault();
@@ -2071,28 +2115,20 @@ var DropdownMenuContent = React15__namespace.forwardRef(({ className, sideOffset
2071
2115
  },
2072
2116
  ...props,
2073
2117
  children: [
2074
- ctx?.enabled ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles22__default.default["dropdown-menu-sr-status"], role: "status", "aria-live": "polite", children: searching && resultCount > 0 ? `${resultCount} result${resultCount === 1 ? "" : "s"} available` : null }) : null,
2118
+ ctx?.enabled ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles22__default.default["dropdown-menu-sr-status"], role: "status", "aria-live": "polite", children: searching && resultCount > 0 ? formatResultCount(resultCount) : null }) : null,
2075
2119
  children
2076
2120
  ]
2077
2121
  }
2078
2122
  ) });
2079
2123
  });
2080
2124
  DropdownMenuContent.displayName = DropdownMenuPrimitive__namespace.Content.displayName;
2081
- function assignRefs(node, ...refs) {
2082
- refs.forEach((ref) => {
2083
- if (typeof ref === "function") ref(node);
2084
- else if (ref) ref.current = node;
2085
- });
2086
- }
2087
2125
  var DropdownMenuSearch = React15__namespace.forwardRef(
2088
2126
  ({
2089
2127
  className,
2090
2128
  placeholder = "Search...",
2091
2129
  icon,
2092
- /* Render the input immediately instead of revealing on first keypress */
2093
2130
  alwaysVisible = false,
2094
2131
  onKeyDown,
2095
- /* Pulled out of props so the placeholder fallback below isn't overwritten by the spread */
2096
2132
  "aria-label": ariaLabel,
2097
2133
  ...props
2098
2134
  }, forwardedRef) => {
@@ -2100,32 +2136,15 @@ var DropdownMenuSearch = React15__namespace.forwardRef(
2100
2136
  if (!ctx) {
2101
2137
  throw new Error("DropdownMenuSearch must be used within a DropdownMenu");
2102
2138
  }
2103
- const { setEnabled, reveal, visible, focusSignal } = ctx;
2104
- const inputRef = React15__namespace.useRef(null);
2105
- React15__namespace.useEffect(() => {
2106
- setEnabled(true);
2107
- return () => setEnabled(false);
2108
- }, [setEnabled]);
2109
- React15__namespace.useEffect(() => {
2110
- if (!visible) return;
2111
- const el = inputRef.current;
2112
- if (!el) return;
2113
- el.focus();
2114
- const end = el.value.length;
2115
- el.setSelectionRange(end, end);
2116
- }, [visible, focusSignal]);
2117
- React15__namespace.useEffect(() => {
2118
- if (alwaysVisible && !visible) reveal("");
2119
- }, [alwaysVisible, visible, reveal]);
2120
- if (!alwaysVisible && !visible) return null;
2139
+ const { ref, isRendered } = useSearchInput(ctx, alwaysVisible, forwardedRef);
2140
+ if (!isRendered) return null;
2121
2141
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles22__default.default["dropdown-menu-search"], children: [
2122
2142
  /* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", className: styles22__default.default["dropdown-menu-item-icon"], children: icon ?? /* @__PURE__ */ jsxRuntime.jsx(SearchIcon2, { className: styles22__default.default["icon-size"] }) }),
2123
2143
  /* @__PURE__ */ jsxRuntime.jsx(
2124
2144
  "input",
2125
2145
  {
2126
- ref: (node) => {
2127
- assignRefs(node, inputRef, forwardedRef);
2128
- },
2146
+ ...props,
2147
+ ref,
2129
2148
  "data-dropdown-search": "",
2130
2149
  className: cn(styles22__default.default["dropdown-menu-search-input"], className),
2131
2150
  value: ctx.query,
@@ -2137,19 +2156,19 @@ var DropdownMenuSearch = React15__namespace.forwardRef(
2137
2156
  onChange: (event) => ctx.setQuery(event.target.value),
2138
2157
  onKeyDown: (event) => {
2139
2158
  onKeyDown?.(event);
2140
- if (event.key === "ArrowDown" || event.key === "ArrowUp") {
2159
+ if (event.key === "Enter" && !isSearchActive(ctx)) return;
2160
+ if (event.key === "ArrowDown" || event.key === "ArrowUp" || event.key === "Enter") {
2141
2161
  const menu = event.currentTarget.closest('[role="menu"]');
2142
2162
  const items = menu ? Array.from(menu.querySelectorAll(MENU_ITEM_SELECTOR)) : [];
2143
- if (items.length) {
2144
- event.preventDefault();
2145
- (event.key === "ArrowUp" ? items[items.length - 1] : items[0]).focus();
2146
- }
2163
+ if (!items.length || event.defaultPrevented) return;
2164
+ event.preventDefault();
2165
+ if (event.key === "Enter") items[0].click();
2166
+ else (event.key === "ArrowUp" ? items[items.length - 1] : items[0]).focus();
2147
2167
  return;
2148
2168
  }
2149
- if (["Enter", "Escape", "Tab"].includes(event.key)) return;
2169
+ if (["Escape", "Tab"].includes(event.key)) return;
2150
2170
  event.stopPropagation();
2151
- },
2152
- ...props
2171
+ }
2153
2172
  }
2154
2173
  )
2155
2174
  ] });
@@ -2163,15 +2182,14 @@ var DropdownMenuEmpty = ({
2163
2182
  }) => {
2164
2183
  const ctx = useDropdownMenuSearch();
2165
2184
  if (!ctx) return null;
2166
- const query = ctx.query.trim();
2167
- const isEmpty = !!query && ctx.matchCount === 0;
2185
+ const isEmpty = isSearchEmpty(ctx);
2168
2186
  return /* @__PURE__ */ jsxRuntime.jsx(
2169
2187
  "div",
2170
2188
  {
2189
+ ...props,
2171
2190
  role: "status",
2172
2191
  "aria-live": "polite",
2173
2192
  className: isEmpty ? cn(styles22__default.default["dropdown-menu-empty"], className) : void 0,
2174
- ...props,
2175
2193
  children: isEmpty ? children : null
2176
2194
  }
2177
2195
  );
@@ -2186,7 +2204,7 @@ var ItemBreadcrumb = () => {
2186
2204
  ] }, index)) });
2187
2205
  };
2188
2206
  var DropdownMenuItem = React15__namespace.forwardRef(({ className, inset, variant = "neutral", textValue, children, ...props }, ref) => {
2189
- const visible = useFilterableItem(textValue, children);
2207
+ const visible = useFilterableItem(useDropdownMenuSearch(), textValue, children);
2190
2208
  if (!visible) return null;
2191
2209
  return /* @__PURE__ */ jsxRuntime.jsxs(
2192
2210
  DropdownMenuPrimitive__namespace.Item,
@@ -2210,7 +2228,7 @@ var DropdownMenuItem = React15__namespace.forwardRef(({ className, inset, varian
2210
2228
  });
2211
2229
  DropdownMenuItem.displayName = DropdownMenuPrimitive__namespace.Item.displayName;
2212
2230
  var DropdownMenuCheckboxItem = React15__namespace.forwardRef(({ className, children, checked, textValue, ...props }, ref) => {
2213
- const visible = useFilterableItem(textValue, children);
2231
+ const visible = useFilterableItem(useDropdownMenuSearch(), textValue, children);
2214
2232
  if (!visible) return null;
2215
2233
  return /* @__PURE__ */ jsxRuntime.jsxs(
2216
2234
  DropdownMenuPrimitive__namespace.CheckboxItem,
@@ -2230,7 +2248,7 @@ var DropdownMenuCheckboxItem = React15__namespace.forwardRef(({ className, child
2230
2248
  });
2231
2249
  DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive__namespace.CheckboxItem.displayName;
2232
2250
  var DropdownMenuRadioItem = React15__namespace.forwardRef(({ className, children, textValue, ...props }, ref) => {
2233
- const visible = useFilterableItem(textValue, children);
2251
+ const visible = useFilterableItem(useDropdownMenuSearch(), textValue, children);
2234
2252
  if (!visible) return null;
2235
2253
  return /* @__PURE__ */ jsxRuntime.jsxs(
2236
2254
  DropdownMenuPrimitive__namespace.RadioItem,
@@ -2319,6 +2337,10 @@ var FilterDropdown = ({
2319
2337
  const filteredOptions = options.filter(
2320
2338
  (option) => option.value && option.value.trim() !== "" && option.label && option.label.trim() !== ""
2321
2339
  );
2340
+ const clearAll = (className) => (
2341
+ // An empty textValue keeps this out of search results, so Enter can't clear every filter
2342
+ /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuItem, { textValue: "", onSelect: onClearAll, className, children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: buttonVariants({ variant: "link", size: "sm" }), children: "Clear all" }) })
2343
+ );
2322
2344
  return /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu, { children: [
2323
2345
  /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, disabled, children: /* @__PURE__ */ jsxRuntime.jsxs(
2324
2346
  Button,
@@ -2342,14 +2364,16 @@ var FilterDropdown = ({
2342
2364
  className: cn(styles24__default.default["dropdown-menu-content"], contentClassName),
2343
2365
  children: [
2344
2366
  searchable && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
2345
- /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuSearch, { placeholder: searchPlaceholder }),
2367
+ /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuSearch, { alwaysVisible: true, placeholder: searchPlaceholder, "aria-label": label }),
2346
2368
  /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuEmpty, { children: emptyPlaceholder })
2347
2369
  ] }),
2348
- /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenuLabel, { children: [
2349
- "Filters",
2350
- hasSelectedFilters && /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "link", size: "sm", onClick: onClearAll, children: "Clear all" })
2370
+ !searchable && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
2371
+ /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenuLabel, { className: styles24__default.default["filters-header"], children: [
2372
+ "Filters",
2373
+ hasSelectedFilters && clearAll(styles24__default.default["clear-all-inline"])
2374
+ ] }),
2375
+ /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuSeparator, {})
2351
2376
  ] }),
2352
- /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuSeparator, {}),
2353
2377
  filteredOptions.map((option) => {
2354
2378
  const isSelected = selectedFilters.includes(option.value);
2355
2379
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -2362,7 +2386,11 @@ var FilterDropdown = ({
2362
2386
  },
2363
2387
  option.value
2364
2388
  );
2365
- })
2389
+ }),
2390
+ searchable && hasSelectedFilters && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles24__default.default["clear-all-footer"], children: [
2391
+ /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuSeparator, {}),
2392
+ clearAll(styles24__default.default["clear-all"])
2393
+ ] })
2366
2394
  ]
2367
2395
  }
2368
2396
  )
@@ -2710,8 +2738,59 @@ var NotFound = ({
2710
2738
  var CheckIcon3 = LucideIcons.Check;
2711
2739
  var ChevronDownIcon2 = LucideIcons.ChevronDown;
2712
2740
  var ChevronUpIcon = LucideIcons.ChevronUp;
2713
- var Select = SelectPrimitive__namespace.Root;
2714
- var SelectGroup = SelectPrimitive__namespace.Group;
2741
+ var SearchIcon3 = LucideIcons.Search;
2742
+ var SEARCH_INPUT_SELECTOR = "[data-select-search]";
2743
+ var NAVIGABLE_OPTION_SELECTOR = '[role="option"]:not([data-disabled]):not([hidden])';
2744
+ var RADIX_HANDLED_SEARCH_KEYS = ["ArrowDown", "ArrowUp", "Escape", "Tab"];
2745
+ var SelectSearchContext = React15__namespace.createContext(null);
2746
+ var useSelectSearch = () => React15__namespace.useContext(SelectSearchContext);
2747
+ var useIsSearching2 = () => isSearchActive(useSelectSearch());
2748
+ var SelectGroupMatchContext = React15__namespace.createContext(null);
2749
+ var Select = ({
2750
+ open,
2751
+ onOpenChange,
2752
+ ...props
2753
+ }) => {
2754
+ const search = useListSearchState(open);
2755
+ const { resetForOpen } = search;
2756
+ const interactedRef = React15__namespace.useRef(false);
2757
+ const markInteracted = React15__namespace.useCallback(() => {
2758
+ interactedRef.current = true;
2759
+ }, []);
2760
+ const interactedSinceOpen = React15__namespace.useCallback(() => interactedRef.current, []);
2761
+ React15__namespace.useEffect(() => {
2762
+ if (open) interactedRef.current = false;
2763
+ }, [open]);
2764
+ const handleOpenChange = React15__namespace.useCallback(
2765
+ (nextOpen) => {
2766
+ if (nextOpen) {
2767
+ resetForOpen();
2768
+ interactedRef.current = false;
2769
+ }
2770
+ onOpenChange?.(nextOpen);
2771
+ },
2772
+ [onOpenChange, resetForOpen]
2773
+ );
2774
+ const value = React15__namespace.useMemo(
2775
+ () => ({ ...search, markInteracted, interactedSinceOpen }),
2776
+ [search, markInteracted, interactedSinceOpen]
2777
+ );
2778
+ return /* @__PURE__ */ jsxRuntime.jsx(SelectSearchContext.Provider, { value, children: /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Root, { open, onOpenChange: handleOpenChange, ...props }) });
2779
+ };
2780
+ Select.displayName = "Select";
2781
+ var SelectGroup = React15__namespace.forwardRef(({ hidden, ...props }, ref) => {
2782
+ const searching = useIsSearching2();
2783
+ const registry = useMatchRegistry();
2784
+ return /* @__PURE__ */ jsxRuntime.jsx(SelectGroupMatchContext.Provider, { value: registry, children: /* @__PURE__ */ jsxRuntime.jsx(
2785
+ SelectPrimitive__namespace.Group,
2786
+ {
2787
+ ref,
2788
+ ...props,
2789
+ hidden: hidden || searching && registry.matchCount === 0 || void 0
2790
+ }
2791
+ ) });
2792
+ });
2793
+ SelectGroup.displayName = SelectPrimitive__namespace.Group.displayName;
2715
2794
  var SelectValue = SelectPrimitive__namespace.Value;
2716
2795
  var SelectTrigger = React15__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(SelectPrimitive__namespace.Trigger, { ref, className: cn(styles35__default.default["select-trigger"], className), ...props, children: [
2717
2796
  children,
@@ -2744,50 +2823,217 @@ var selectContentElevationVariants = generateElevationVariants(
2744
2823
  "select-content",
2745
2824
  ELEVATION.OVERLAY
2746
2825
  );
2747
- var SelectContent = React15__namespace.forwardRef(({ className, children, position = "popper", elevation = ELEVATION.OVERLAY, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(SelectPortal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
2748
- SelectPrimitive__namespace.Content,
2749
- {
2750
- ref,
2751
- className: cn(
2752
- styles35__default.default["select-content"],
2753
- position === "popper" && styles35__default.default["select-content--popper"],
2754
- selectContentElevationVariants({ elevation }),
2755
- className
2756
- ),
2757
- position,
2758
- ...props,
2759
- children: [
2760
- /* @__PURE__ */ jsxRuntime.jsx(SelectScrollUpButton, {}),
2826
+ var SelectContent = React15__namespace.forwardRef(
2827
+ ({
2828
+ className,
2829
+ children,
2830
+ position = "popper",
2831
+ elevation = ELEVATION.OVERLAY,
2832
+ onKeyDown,
2833
+ onKeyDownCapture,
2834
+ onPointerMoveCapture,
2835
+ onFocus,
2836
+ ...props
2837
+ }, ref) => {
2838
+ const ctx = useSelectSearch();
2839
+ const setListId = ctx?.setListId;
2840
+ const searching = isSearchActive(ctx);
2841
+ const resultCount = ctx?.matchCount ?? 0;
2842
+ const composedContentRef = React15__namespace.useCallback(
2843
+ (node) => {
2844
+ assignRefs(node, ref);
2845
+ setListId?.(node?.id || void 0);
2846
+ },
2847
+ [ref, setListId]
2848
+ );
2849
+ const handleFocus = (event) => {
2850
+ onFocus?.(event);
2851
+ if (!ctx?.enabled || !ctx.visible || ctx.interactedSinceOpen()) return;
2852
+ if (event.target.closest(SEARCH_INPUT_SELECTOR)) return;
2853
+ ctx.requestFocus();
2854
+ };
2855
+ const handleKeyDown = (event) => {
2856
+ onKeyDown?.(event);
2857
+ if (!ctx?.enabled || event.defaultPrevented) return;
2858
+ const target = event.target;
2859
+ if (target?.closest(SEARCH_INPUT_SELECTOR)) return;
2860
+ if (event.key === "ArrowUp" && ctx.visible) {
2861
+ const firstOption = event.currentTarget.querySelector(NAVIGABLE_OPTION_SELECTOR);
2862
+ if (firstOption && firstOption === target?.closest(NAVIGABLE_OPTION_SELECTOR)) {
2863
+ event.preventDefault();
2864
+ ctx.requestFocus();
2865
+ return;
2866
+ }
2867
+ }
2868
+ if (event.key === "Backspace" && ctx.visible && ctx.query) {
2869
+ event.preventDefault();
2870
+ ctx.setQuery(ctx.query.slice(0, -1));
2871
+ ctx.requestFocus();
2872
+ return;
2873
+ }
2874
+ if (!isPrintableKey(event)) return;
2875
+ event.preventDefault();
2876
+ if (!ctx.visible) {
2877
+ ctx.reveal(event.key);
2878
+ } else {
2879
+ ctx.setQuery(ctx.query + event.key);
2880
+ ctx.requestFocus();
2881
+ }
2882
+ };
2883
+ return /* @__PURE__ */ jsxRuntime.jsx(SelectPortal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
2884
+ SelectPrimitive__namespace.Content,
2885
+ {
2886
+ ref: composedContentRef,
2887
+ className: cn(
2888
+ styles35__default.default["select-content"],
2889
+ position === "popper" && styles35__default.default["select-content--popper"],
2890
+ selectContentElevationVariants({ elevation }),
2891
+ className
2892
+ ),
2893
+ position,
2894
+ onFocus: handleFocus,
2895
+ onKeyDown: handleKeyDown,
2896
+ onKeyDownCapture: (event) => {
2897
+ onKeyDownCapture?.(event);
2898
+ ctx?.markInteracted();
2899
+ },
2900
+ onPointerMoveCapture: (event) => {
2901
+ onPointerMoveCapture?.(event);
2902
+ ctx?.markInteracted();
2903
+ },
2904
+ ...props,
2905
+ children: [
2906
+ ctx?.enabled ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles35__default.default["select-sr-status"], role: "status", "aria-live": "polite", children: searching && resultCount > 0 ? formatResultCount(resultCount) : null }) : null,
2907
+ /* @__PURE__ */ jsxRuntime.jsx(SelectScrollUpButton, {}),
2908
+ /* @__PURE__ */ jsxRuntime.jsx(
2909
+ SelectPrimitive__namespace.Viewport,
2910
+ {
2911
+ className: cn(
2912
+ styles35__default.default["select-viewport"],
2913
+ position === "popper" && styles35__default.default["select-viewport--popper"]
2914
+ ),
2915
+ children
2916
+ }
2917
+ ),
2918
+ /* @__PURE__ */ jsxRuntime.jsx(SelectScrollDownButton, {})
2919
+ ]
2920
+ }
2921
+ ) });
2922
+ }
2923
+ );
2924
+ SelectContent.displayName = SelectPrimitive__namespace.Content.displayName;
2925
+ var SelectSearch = React15__namespace.forwardRef(
2926
+ ({
2927
+ className,
2928
+ placeholder = "Search...",
2929
+ icon,
2930
+ alwaysVisible = true,
2931
+ onKeyDown,
2932
+ "aria-label": ariaLabel,
2933
+ ...props
2934
+ }, forwardedRef) => {
2935
+ const ctx = useSelectSearch();
2936
+ if (!ctx) {
2937
+ throw new Error("SelectSearch must be used within a Select");
2938
+ }
2939
+ const { ref, isRendered } = useSearchInput(ctx, alwaysVisible, forwardedRef);
2940
+ if (!isRendered) return null;
2941
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles35__default.default["select-search"], children: [
2942
+ /* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", className: styles35__default.default["select-search-icon"], children: icon ?? /* @__PURE__ */ jsxRuntime.jsx(SearchIcon3, { className: cn(styles35__default.default["select-icon"], styles35__default.default["select-icon--sm"]) }) }),
2761
2943
  /* @__PURE__ */ jsxRuntime.jsx(
2762
- SelectPrimitive__namespace.Viewport,
2944
+ "input",
2763
2945
  {
2764
- className: cn(
2765
- styles35__default.default["select-viewport"],
2766
- position === "popper" && styles35__default.default["select-viewport--popper"]
2767
- ),
2768
- children
2946
+ ...props,
2947
+ ref,
2948
+ "data-select-search": "",
2949
+ className: cn(styles35__default.default["select-search-input"], className),
2950
+ value: ctx.query,
2951
+ placeholder,
2952
+ "aria-label": ariaLabel ?? placeholder,
2953
+ role: "searchbox",
2954
+ "aria-controls": ctx.listId,
2955
+ "aria-autocomplete": "list",
2956
+ onChange: (event) => ctx.setQuery(event.target.value),
2957
+ onKeyDown: (event) => {
2958
+ onKeyDown?.(event);
2959
+ if (event.key === "Enter" && !event.defaultPrevented && isSearchActive(ctx)) {
2960
+ event.preventDefault();
2961
+ event.stopPropagation();
2962
+ const firstOption = event.currentTarget.closest('[role="listbox"]')?.querySelector(NAVIGABLE_OPTION_SELECTOR);
2963
+ firstOption?.dispatchEvent(
2964
+ new KeyboardEvent("keydown", { key: "Enter", bubbles: true })
2965
+ );
2966
+ return;
2967
+ }
2968
+ if (!RADIX_HANDLED_SEARCH_KEYS.includes(event.key)) event.stopPropagation();
2969
+ }
2769
2970
  }
2770
- ),
2771
- /* @__PURE__ */ jsxRuntime.jsx(SelectScrollDownButton, {})
2772
- ]
2971
+ )
2972
+ ] });
2773
2973
  }
2774
- ) }));
2775
- SelectContent.displayName = SelectPrimitive__namespace.Content.displayName;
2776
- var SelectLabel = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Label, { ref, className: cn(styles35__default.default["select-label"], className), ...props }));
2974
+ );
2975
+ SelectSearch.displayName = "SelectSearch";
2976
+ var SelectEmpty = ({ className, children, ...props }) => {
2977
+ const ctx = useSelectSearch();
2978
+ if (!ctx) return null;
2979
+ const isEmpty = isSearchEmpty(ctx);
2980
+ return /* @__PURE__ */ jsxRuntime.jsx(
2981
+ "div",
2982
+ {
2983
+ ...props,
2984
+ role: "status",
2985
+ "aria-live": "polite",
2986
+ className: isEmpty ? cn(styles35__default.default["select-empty"], className) : void 0,
2987
+ children: isEmpty ? children : null
2988
+ }
2989
+ );
2990
+ };
2991
+ SelectEmpty.displayName = "SelectEmpty";
2992
+ var SelectLabel = React15__namespace.forwardRef(({ className, hidden, ...props }, ref) => {
2993
+ const searching = useIsSearching2();
2994
+ return /* @__PURE__ */ jsxRuntime.jsx(
2995
+ SelectPrimitive__namespace.Label,
2996
+ {
2997
+ ref,
2998
+ className: cn(styles35__default.default["select-label"], className),
2999
+ ...props,
3000
+ hidden: hidden || searching || void 0
3001
+ }
3002
+ );
3003
+ });
2777
3004
  SelectLabel.displayName = SelectPrimitive__namespace.Label.displayName;
2778
- var SelectItem = React15__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(SelectPrimitive__namespace.Item, { ref, className: cn(styles35__default.default["select-item"], className), ...props, children: [
2779
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles35__default.default["select-item-indicator"], children: /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(CheckIcon3, { className: styles35__default.default["select-icon"] }) }) }),
2780
- /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.ItemText, { children })
2781
- ] }));
3005
+ var SelectItem = React15__namespace.forwardRef(({ className, children, textValue, hidden, ...props }, ref) => {
3006
+ const search = useSelectSearch();
3007
+ const group = React15__namespace.useContext(SelectGroupMatchContext);
3008
+ const matches = useFilterableItem(search, textValue, children, group);
3009
+ return /* @__PURE__ */ jsxRuntime.jsxs(
3010
+ SelectPrimitive__namespace.Item,
3011
+ {
3012
+ ref,
3013
+ className: cn(styles35__default.default["select-item"], className),
3014
+ ...props,
3015
+ textValue,
3016
+ hidden: hidden || !matches || void 0,
3017
+ children: [
3018
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles35__default.default["select-item-indicator"], children: /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(CheckIcon3, { className: styles35__default.default["select-icon"] }) }) }),
3019
+ /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.ItemText, { children })
3020
+ ]
3021
+ }
3022
+ );
3023
+ });
2782
3024
  SelectItem.displayName = SelectPrimitive__namespace.Item.displayName;
2783
- var SelectSeparator = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2784
- SelectPrimitive__namespace.Separator,
2785
- {
2786
- ref,
2787
- className: cn(styles35__default.default["select-separator"], className),
2788
- ...props
2789
- }
2790
- ));
3025
+ var SelectSeparator = React15__namespace.forwardRef(({ className, ...props }, ref) => {
3026
+ const searching = useIsSearching2();
3027
+ if (searching) return null;
3028
+ return /* @__PURE__ */ jsxRuntime.jsx(
3029
+ SelectPrimitive__namespace.Separator,
3030
+ {
3031
+ ref,
3032
+ className: cn(styles35__default.default["select-separator"], className),
3033
+ ...props
3034
+ }
3035
+ );
3036
+ });
2791
3037
  SelectSeparator.displayName = SelectPrimitive__namespace.Separator.displayName;
2792
3038
  var ChevronLeftIcon2 = LucideIcons.ChevronLeft;
2793
3039
  var ChevronRightIcon3 = LucideIcons.ChevronRight;
@@ -3235,11 +3481,13 @@ var RadioDropdown = ({
3235
3481
  ] }) }),
3236
3482
  /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenuContent, { align: "end", className: styles41__default.default["dropdown-menu-content"], children: [
3237
3483
  searchable && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
3238
- /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuSearch, { placeholder: searchPlaceholder }),
3484
+ /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuSearch, { alwaysVisible: true, placeholder: searchPlaceholder, "aria-label": label }),
3239
3485
  /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuEmpty, { children: emptyPlaceholder })
3240
3486
  ] }),
3241
- /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuLabel, { children: label }),
3242
- /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuSeparator, {}),
3487
+ !searchable && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
3488
+ /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuLabel, { children: label }),
3489
+ /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuSeparator, {})
3490
+ ] }),
3243
3491
  /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuRadioGroup, { value: selectedValue, onValueChange: onSelect, children: filteredOptions.map((option) => {
3244
3492
  const hasCount = option.count !== void 0;
3245
3493
  return /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenuRadioItem, { value: option.value, children: [
@@ -3296,7 +3544,7 @@ var ScrollBar = React15__namespace.forwardRef(({ className, orientation = "verti
3296
3544
  }
3297
3545
  ));
3298
3546
  ScrollBar.displayName = ScrollAreaPrimitive__namespace.ScrollAreaScrollbar.displayName;
3299
- var SearchIcon3 = LucideIcons.Search;
3547
+ var SearchIcon4 = LucideIcons.Search;
3300
3548
  var SearchBar = ({
3301
3549
  searchQuery,
3302
3550
  setSearchQuery,
@@ -3316,7 +3564,7 @@ var SearchBar = ({
3316
3564
  value: searchQuery,
3317
3565
  onChange: handleChange,
3318
3566
  className: styles44__default.default["input"],
3319
- prefix: /* @__PURE__ */ jsxRuntime.jsx(SearchIcon3, { className: styles44__default.default["search-icon"] }),
3567
+ prefix: /* @__PURE__ */ jsxRuntime.jsx(SearchIcon4, { className: styles44__default.default["search-icon"] }),
3320
3568
  suffix: searchQuery && /* @__PURE__ */ jsxRuntime.jsx(
3321
3569
  IconButton,
3322
3570
  {
@@ -3484,7 +3732,7 @@ var SheetDescription = React15__namespace.forwardRef(({ className, ...props }, r
3484
3732
  }
3485
3733
  ));
3486
3734
  SheetDescription.displayName = DialogPrimitive__namespace.Description.displayName;
3487
- var SheetContent = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles48__default.default["sheet-body"], "styled-vertical-scrollbar", className), ...props });
3735
+ var SheetContent = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles48__default.default["sheet-body"], className), ...props });
3488
3736
  SheetContent.displayName = "SheetContent";
3489
3737
  function Skeleton({ className, ...props }) {
3490
3738
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles49__default.default["skeleton"], className), ...props });
@@ -4529,11 +4777,13 @@ exports.SectionHeading = SectionHeading;
4529
4777
  exports.SegmentedControls = SegmentedControls;
4530
4778
  exports.Select = Select;
4531
4779
  exports.SelectContent = SelectContent;
4780
+ exports.SelectEmpty = SelectEmpty;
4532
4781
  exports.SelectGroup = SelectGroup;
4533
4782
  exports.SelectItem = SelectItem;
4534
4783
  exports.SelectLabel = SelectLabel;
4535
4784
  exports.SelectScrollDownButton = SelectScrollDownButton;
4536
4785
  exports.SelectScrollUpButton = SelectScrollUpButton;
4786
+ exports.SelectSearch = SelectSearch;
4537
4787
  exports.SelectSeparator = SelectSeparator;
4538
4788
  exports.SelectTrigger = SelectTrigger;
4539
4789
  exports.SelectValue = SelectValue;