@bazza-ui/react 0.1.0-canary.16 → 0.1.0-canary.17

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.
Files changed (150) hide show
  1. package/dist/combobox/index.cjs +1 -1
  2. package/dist/combobox/index.cjs.map +1 -1
  3. package/dist/combobox/index.d.ts +842 -834
  4. package/dist/combobox/index.js +1 -1
  5. package/dist/combobox/index.js.map +1 -1
  6. package/dist/command-menu/index.cjs +1 -1
  7. package/dist/command-menu/index.cjs.map +1 -1
  8. package/dist/command-menu/index.d.ts +123 -96
  9. package/dist/command-menu/index.js +1 -1
  10. package/dist/command-menu/index.js.map +1 -1
  11. package/dist/context-menu/index.cjs +1 -1
  12. package/dist/context-menu/index.cjs.map +1 -1
  13. package/dist/context-menu/index.d.ts +701 -658
  14. package/dist/context-menu/index.js +1 -1
  15. package/dist/context-menu/index.js.map +1 -1
  16. package/dist/dropdown-menu/index.cjs +1 -1
  17. package/dist/dropdown-menu/index.cjs.map +1 -1
  18. package/dist/dropdown-menu/index.d.ts +723 -680
  19. package/dist/dropdown-menu/index.js +1 -1
  20. package/dist/dropdown-menu/index.js.map +1 -1
  21. package/dist/events-DDOsDu4X.d.ts +2091 -0
  22. package/dist/index-Cabqj7qI.d.ts +2003 -0
  23. package/dist/index-D8OrKThQ.d.ts +977 -0
  24. package/dist/internal/listbox/index.cjs +1 -2
  25. package/dist/internal/listbox/index.d.ts +2 -272
  26. package/dist/internal/listbox/index.js +1 -2
  27. package/dist/internal/popup-menu/index.cjs +1 -2
  28. package/dist/internal/popup-menu/index.d.ts +4 -238
  29. package/dist/internal/popup-menu/index.js +1 -2
  30. package/dist/items-CD2hw6-3.js +2 -0
  31. package/dist/items-CD2hw6-3.js.map +1 -0
  32. package/dist/items-DYDljwnt.cjs +2 -0
  33. package/dist/items-DYDljwnt.cjs.map +1 -0
  34. package/dist/{items-B6HeFO_8.d.cts → items-ceX--VIv.d.ts} +21 -19
  35. package/dist/kbd/index.cjs +1 -1
  36. package/dist/kbd/index.cjs.map +1 -1
  37. package/dist/kbd/index.d.ts +35 -35
  38. package/dist/kbd/index.js +1 -1
  39. package/dist/kbd/index.js.map +1 -1
  40. package/dist/listbox-CnwUlLZA.js +2 -0
  41. package/dist/listbox-CnwUlLZA.js.map +1 -0
  42. package/dist/listbox-DYvJTiF6.cjs +2 -0
  43. package/dist/listbox-DYvJTiF6.cjs.map +1 -0
  44. package/dist/loaders/index.cjs +1 -1
  45. package/dist/loaders/index.cjs.map +1 -1
  46. package/dist/loaders/index.d.ts +218 -188
  47. package/dist/loaders/index.js +1 -1
  48. package/dist/loaders/index.js.map +1 -1
  49. package/dist/merge-element-props-0mpNO7ZH.cjs +2 -0
  50. package/dist/merge-element-props-0mpNO7ZH.cjs.map +1 -0
  51. package/dist/merge-element-props-PxUvRHax.js +2 -0
  52. package/dist/merge-element-props-PxUvRHax.js.map +1 -0
  53. package/dist/platform-C-sxBTRa.cjs +2 -0
  54. package/dist/platform-C-sxBTRa.cjs.map +1 -0
  55. package/dist/platform-C4_cGUkS.js +2 -0
  56. package/dist/platform-C4_cGUkS.js.map +1 -0
  57. package/dist/popup-menu-BBAzAXIe.cjs +2 -0
  58. package/dist/popup-menu-BBAzAXIe.cjs.map +1 -0
  59. package/dist/popup-menu-HmBMJEZc.js +2 -0
  60. package/dist/popup-menu-HmBMJEZc.js.map +1 -0
  61. package/dist/resolve-state-props-C-zbhdXd.cjs +2 -0
  62. package/dist/resolve-state-props-C-zbhdXd.cjs.map +1 -0
  63. package/dist/resolve-state-props-D31kizRZ.js +2 -0
  64. package/dist/resolve-state-props-D31kizRZ.js.map +1 -0
  65. package/dist/rolldown-runtime-5lHFv1cW.cjs +1 -0
  66. package/dist/rolldown-runtime-DK3Fl9T5.js +1 -0
  67. package/dist/select/index.cjs +1 -1
  68. package/dist/select/index.cjs.map +1 -1
  69. package/dist/select/index.d.ts +835 -828
  70. package/dist/select/index.js +1 -1
  71. package/dist/select/index.js.map +1 -1
  72. package/dist/suggestion-menu/index.cjs +4 -0
  73. package/dist/suggestion-menu/index.cjs.map +1 -0
  74. package/dist/suggestion-menu/index.d.ts +359 -0
  75. package/dist/suggestion-menu/index.js +4 -0
  76. package/dist/suggestion-menu/index.js.map +1 -0
  77. package/dist/types-BbN28E3_.d.ts +50 -0
  78. package/dist/video-player/index.cjs +2 -2
  79. package/dist/video-player/index.cjs.map +1 -1
  80. package/dist/video-player/index.d.ts +964 -1000
  81. package/dist/video-player/index.js +2 -2
  82. package/dist/video-player/index.js.map +1 -1
  83. package/package.json +14 -5
  84. package/dist/ListboxStore-B8oTpM57.d.cts +0 -453
  85. package/dist/ListboxStore-CV5vPUUc.d.ts +0 -453
  86. package/dist/chunk-3HMQLMSF.js +0 -2
  87. package/dist/chunk-3HMQLMSF.js.map +0 -1
  88. package/dist/chunk-4C666HHU.js +0 -2
  89. package/dist/chunk-4C666HHU.js.map +0 -1
  90. package/dist/chunk-5T5B5SPR.cjs +0 -2
  91. package/dist/chunk-5T5B5SPR.cjs.map +0 -1
  92. package/dist/chunk-A4Z5BY7H.js +0 -2
  93. package/dist/chunk-A4Z5BY7H.js.map +0 -1
  94. package/dist/chunk-IT372NHF.js +0 -2
  95. package/dist/chunk-IT372NHF.js.map +0 -1
  96. package/dist/chunk-JFEVUUPC.cjs +0 -2
  97. package/dist/chunk-JFEVUUPC.cjs.map +0 -1
  98. package/dist/chunk-KO3DXT3Y.js +0 -2
  99. package/dist/chunk-KO3DXT3Y.js.map +0 -1
  100. package/dist/chunk-LXXK4S4Q.js +0 -2
  101. package/dist/chunk-LXXK4S4Q.js.map +0 -1
  102. package/dist/chunk-M4G6J7DP.cjs +0 -2
  103. package/dist/chunk-M4G6J7DP.cjs.map +0 -1
  104. package/dist/chunk-MPPIEWSL.js +0 -2
  105. package/dist/chunk-MPPIEWSL.js.map +0 -1
  106. package/dist/chunk-PCNHYMD6.cjs +0 -2
  107. package/dist/chunk-PCNHYMD6.cjs.map +0 -1
  108. package/dist/chunk-RTG6U56O.cjs +0 -2
  109. package/dist/chunk-RTG6U56O.cjs.map +0 -1
  110. package/dist/chunk-SCDHQZFI.cjs +0 -2
  111. package/dist/chunk-SCDHQZFI.cjs.map +0 -1
  112. package/dist/chunk-XMZZ62VJ.cjs +0 -2
  113. package/dist/chunk-XMZZ62VJ.cjs.map +0 -1
  114. package/dist/combobox/index.d.cts +0 -1066
  115. package/dist/command-menu/index.d.cts +0 -154
  116. package/dist/command-score-CTJ9NV6n.d.cts +0 -23
  117. package/dist/command-score-CTJ9NV6n.d.ts +0 -23
  118. package/dist/context-menu/index.d.cts +0 -696
  119. package/dist/dropdown-menu/index.d.cts +0 -723
  120. package/dist/events-BTHQ2OoH.d.ts +0 -1860
  121. package/dist/events-DVcrtGe3.d.cts +0 -1860
  122. package/dist/input-C95v6jB0.d.cts +0 -46
  123. package/dist/input-CYweYB_i.d.ts +0 -46
  124. package/dist/internal/listbox/index.cjs.map +0 -1
  125. package/dist/internal/listbox/index.d.cts +0 -272
  126. package/dist/internal/listbox/index.js.map +0 -1
  127. package/dist/internal/popup-menu/index.cjs.map +0 -1
  128. package/dist/internal/popup-menu/index.d.cts +0 -238
  129. package/dist/internal/popup-menu/index.js.map +0 -1
  130. package/dist/items-B6HeFO_8.d.ts +0 -37
  131. package/dist/kbd/index.d.cts +0 -61
  132. package/dist/loaders/index.d.cts +0 -363
  133. package/dist/loading-C6WZGUc3.d.cts +0 -29
  134. package/dist/loading-CC4n55sR.d.ts +0 -29
  135. package/dist/resolve-B-j0eW24.d.cts +0 -406
  136. package/dist/resolve-B1F-a3P1.d.ts +0 -406
  137. package/dist/scroll-arrow-BBoKckL_.d.cts +0 -544
  138. package/dist/scroll-arrow-fl3B5sVO.d.ts +0 -544
  139. package/dist/select/index.d.cts +0 -1005
  140. package/dist/separator-Dn15rte3.d.ts +0 -275
  141. package/dist/separator-NjsBVzek.d.cts +0 -275
  142. package/dist/surface-context-CGLDpMej.d.ts +0 -14
  143. package/dist/surface-context-CN4Lb_6F.d.cts +0 -14
  144. package/dist/type-guards-BHHzjRvZ.d.cts +0 -351
  145. package/dist/type-guards-C0e_GpeY.d.ts +0 -351
  146. package/dist/types-DT4FOOa2.d.cts +0 -51
  147. package/dist/types-DT4FOOa2.d.ts +0 -51
  148. package/dist/use-listbox-item-NzZuY34-.d.cts +0 -212
  149. package/dist/use-listbox-item-NzZuY34-.d.ts +0 -212
  150. package/dist/video-player/index.d.cts +0 -1391
@@ -1,154 +0,0 @@
1
- import { h as GetResolvedIdFn, j as PopupMenuIdScope, m as PopupMenuCheckboxItem, q as PopupMenuItem, r as PopupMenuLinkItem, u as PopupMenuNode, N as NodeDef, y as PopupMenuSubpageTrigger } from '../events-DVcrtGe3.cjs';
2
- export { R as AsyncLoaderConfig, S as AsyncLoaderFetchStatus, T as AsyncLoaderLoadingPhase, U as AsyncLoaderResult, V as AsyncLoaderSource, W as AsyncLoaderStatus, X as AsyncNodesConfig, Y as AsyncRenderState, Z as AsyncResultBehavior, _ as AsyncState, $ as BreadcrumbNode, a0 as CheckboxItemDef, a1 as CheckboxItemRenderParams, a2 as CheckboxItemRenderProps, z as CommandMenuCheckboxItemProps, A as CommandMenuCheckboxItemState, B as CommandMenuItemProps, D as CommandMenuItemState, E as CommandMenuLinkItemProps, F as CommandMenuLinkItemState, O as CommandMenuSubpageTriggerProps, Q as CommandMenuSubpageTriggerState, a3 as DataListChildrenState, a4 as DeepSearchConfig, a5 as DisabledBranchBehavior, a6 as DisplayGroupNode, a7 as DisplayNode, a8 as DisplayRadioGroupNode, a9 as DisplayRowNode, aa as DisplaySeparatorNode, ab as DisplaySubpageNode, ac as GroupBehavior, ad as GroupDef, af as GroupRenderContext, ag as GroupRenderParams, ah as IncludeInDeepSearch, ai as InitialQueryBehavior, aj as ItemDef, ak as ItemRenderParams, al as ItemRenderProps, am as LinkItemDef, an as LinkItemRenderParams, ao as LinkItemRenderProps, ap as LoaderComponentProps, aq as QueryAsyncNodesConfig, ar as QueryLoaderConfig, as as RadioGroupBehavior, at as RadioGroupDef, av as RadioGroupRenderParams, aw as RadioGroupRenderProps, ax as RadioItemDef, ay as RadioItemRenderParams, az as RadioItemRenderProps, aA as RowRenderContext, aB as ScoredNode, aC as SeparatorDef, aD as SeparatorRenderParams, aE as StaticAsyncNodesConfig, aF as StaticLoaderConfig, aG as SubmenuDef, aH as SubmenuRenderParams, aI as SubmenuRenderProps, aJ as SubpageContentRenderParams, aK as SubpageDef, aL as SubpageTriggerRenderParams, aM as SubpageTriggerRenderProps, aQ as UnresolvedMenuNode, aR as defineRadioGroup, aS as isDisplayGroupNode, aT as isDisplayRadioGroupNode, aU as isDisplayRowNode, aV as isDisplaySeparatorNode } from '../events-DVcrtGe3.cjs';
3
- export { S as SurfaceContextValue, u as useMaybeSurfaceContext, a as useSurfaceContext } from '../surface-context-CN4Lb_6F.cjs';
4
- import { P as PopupMenuEmpty, a as PopupMenuGroup, b as PopupMenuGroupLabel, c as PopupMenuIcon, d as PopupMenuList, e as PopupMenuSeparator, f as PopupMenuSurface } from '../separator-NjsBVzek.cjs';
5
- export { g as CommandMenuEmptyProps, h as CommandMenuEmptyState, i as CommandMenuGroupLabelProps, j as CommandMenuGroupLabelState, k as CommandMenuGroupProps, l as CommandMenuGroupState, m as CommandMenuIconProps, n as CommandMenuIconState, o as CommandMenuListChildrenState, p as CommandMenuListProps, q as CommandMenuListState, r as CommandMenuSeparatorProps, s as CommandMenuSeparatorState, t as CommandMenuSurfaceProps, u as CommandMenuSurfaceState } from '../separator-NjsBVzek.cjs';
6
- import { P as PopupMenuLoading } from '../loading-C6WZGUc3.cjs';
7
- export { a as CommandMenuLoadingProps, b as CommandMenuLoadingState } from '../loading-C6WZGUc3.cjs';
8
- import { A as PopupMenuSubpageProps, P as PopupMenuCheckboxItemIndicator, a as PopupMenuFocusZone, b as PopupMenuFooter, c as PopupMenuHeader, e as PopupMenuShortcut, g as PopupMenuSubpageBack, h as PopupMenuSubpageBackItem } from '../resolve-B-j0eW24.cjs';
9
- export { B as AsyncMenuCoordinatorValue, l as CommandMenuCheckboxItemIndicatorProps, m as CommandMenuCheckboxItemIndicatorState, n as CommandMenuFocusZoneProps, o as CommandMenuFocusZoneState, p as CommandMenuFooterProps, q as CommandMenuFooterState, r as CommandMenuHeaderProps, s as CommandMenuHeaderState, d as CommandMenuRadioGroupValue, C as CommandMenuRadioGroupValueProps, t as CommandMenuShortcutProps, v as CommandMenuShortcutState, w as CommandMenuSubpageBackItemProps, x as CommandMenuSubpageBackItemState, y as CommandMenuSubpageBackProps, z as CommandMenuSubpageBackState, E as DataListContext, F as DataSurfaceContext, D as DataSurfaceContextValue, R as RenderNodeFn, G as defaultGetResolvedId, H as isPopupMenuNode, u as useAsyncMenuCoordinator, i as useDataList, I as useDataSurfaceContext, j as useMaybeAsyncMenuCoordinator, k as useMaybeDataList, J as useMaybeDataSurfaceContext } from '../resolve-B-j0eW24.cjs';
10
- import * as _base_ui_react_dialog from '@base-ui/react/dialog';
11
- import { Dialog } from '@base-ui/react/dialog';
12
- import * as React from 'react';
13
- import { a as PopupMenuInputProps, b as PopupMenuInputState } from '../input-C95v6jB0.cjs';
14
- import { a as ComponentRenderFn } from '../types-DT4FOOa2.cjs';
15
- import * as react_jsx_runtime from 'react/jsx-runtime';
16
- import '../ListboxStore-B8oTpM57.cjs';
17
- import '@base-ui/utils/store';
18
-
19
- interface CommandMenuBackdropProps extends Dialog.Backdrop.Props {
20
- }
21
- type CommandMenuBackdropState = Dialog.Backdrop.State;
22
- /**
23
- * An overlay displayed beneath the command menu popup.
24
- *
25
- * Pressing down on the backdrop closes the menu immediately (pointerdown),
26
- * matching the outside-press behavior of the other menus, instead of waiting
27
- * for the Dialog's click-time dismissal. Consumers can opt out by calling
28
- * `event.preventDefault()` in their own `onPointerDown`.
29
- */
30
- declare const CommandMenuBackdrop: React.ForwardRefExoticComponent<Omit<CommandMenuBackdrop.Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
31
- declare namespace CommandMenuBackdrop {
32
- interface Props extends CommandMenuBackdropProps {
33
- }
34
- type State = CommandMenuBackdropState;
35
- }
36
-
37
- interface CommandMenuInputProps extends PopupMenuInputProps {
38
- }
39
- type CommandMenuInputState = PopupMenuInputState;
40
- /**
41
- * Search input for filtering command menu items.
42
- */
43
- declare const CommandMenuInput: React.ForwardRefExoticComponent<Omit<CommandMenuInput.Props, "ref"> & React.RefAttributes<HTMLInputElement>>;
44
- declare namespace CommandMenuInput {
45
- interface Props extends CommandMenuInputProps {
46
- }
47
- type State = CommandMenuInputState;
48
- }
49
-
50
- interface CommandMenuPopupState extends Dialog.Popup.State {
51
- /**
52
- * Whether any non-root subpage is currently open.
53
- */
54
- hasOpenSubpage: boolean;
55
- /**
56
- * Active subpage ID, or null when the root surface is active.
57
- */
58
- subpageId: string | null;
59
- }
60
- interface CommandMenuPopupProps extends Omit<Dialog.Popup.Props, 'className' | 'render'> {
61
- /**
62
- * CSS class applied to the element, or a function that
63
- * returns a class based on the component's state.
64
- */
65
- className?: string | ((state: CommandMenuPopupState) => string);
66
- /**
67
- * Allows replacing the popup element with a custom element.
68
- * The render state includes dialog popup + subpage navigation state.
69
- */
70
- render?: React.ReactElement | ComponentRenderFn<React.HTMLAttributes<HTMLElement>, CommandMenuPopupState>;
71
- }
72
- /**
73
- * A container for the command menu contents.
74
- * Wraps Dialog.Popup with popup-menu subpage and data providers.
75
- */
76
- declare const CommandMenuPopup: React.ForwardRefExoticComponent<Omit<CommandMenuPopupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
77
- declare namespace CommandMenuPopup {
78
- type Props = CommandMenuPopupProps;
79
- type State = CommandMenuPopupState;
80
- }
81
-
82
- interface CommandMenuPortalProps extends Dialog.Portal.Props {
83
- }
84
- type CommandMenuPortalState = Dialog.Portal.State;
85
- /**
86
- * A portal element that moves the command menu popup to a different part of the DOM.
87
- */
88
- declare const CommandMenuPortal: React.ForwardRefExoticComponent<Omit<_base_ui_react_dialog.DialogPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
89
- declare namespace CommandMenuPortal {
90
- type Props = CommandMenuPortalProps;
91
- type State = CommandMenuPortalState;
92
- }
93
-
94
- interface CommandMenuRootProps {
95
- children: React.ReactNode;
96
- open?: boolean;
97
- defaultOpen?: boolean;
98
- onOpenChange?: (open: boolean) => void;
99
- onOpenChangeComplete?: (open: boolean) => void;
100
- hotkey?: string;
101
- modal?: boolean;
102
- disabled?: boolean;
103
- /**
104
- * Computes canonical Resolved IDs for data-first content from the Unresolved Menu Node (definitional facts only).
105
- * @default encoded surface Definition Path joined with `/`; `idScope="menu"` uses the Definition Key
106
- * Read once when the menu root mounts — later changes have no effect. To retain the old dot-path default, use `node => node.def.id ?? node.definitionPath.join('.')`. This does not recreate former tree-item ancestry; exact compatibility requires walking `node.parent` and reproducing the old slug/key lineage.
107
- * @example
108
- * <CommandMenu.Root getResolvedId={(node) => node.def.id ?? node.definitionPath.join('.')} />
109
- */
110
- getResolvedId?: GetResolvedIdFn;
111
- /** Definition Key uniqueness scope. Read once when the menu root mounts. @default 'surface' */
112
- idScope?: PopupMenuIdScope;
113
- }
114
- /**
115
- * Groups all parts of the command menu.
116
- * Manages open state and provides popup-menu context to children.
117
- * Doesn't render its own HTML element.
118
- */
119
- declare function CommandMenuRoot(props: CommandMenuRoot.Props): react_jsx_runtime.JSX.Element;
120
- declare namespace CommandMenuRoot {
121
- interface Props extends CommandMenuRootProps {
122
- }
123
- }
124
-
125
- interface CommandMenuSubpageProps extends PopupMenuSubpageProps {
126
- }
127
- /**
128
- * Groups all parts of a command menu subpage.
129
- */
130
- declare function CommandMenuSubpage(props: CommandMenuSubpage.Props): react_jsx_runtime.JSX.Element;
131
- declare namespace CommandMenuSubpage {
132
- interface Props extends CommandMenuSubpageProps {
133
- }
134
- }
135
-
136
- interface CommandMenuTriggerProps extends Dialog.Trigger.Props {
137
- }
138
- type CommandMenuTriggerState = Dialog.Trigger.State;
139
- /**
140
- * A button that opens the command menu.
141
- */
142
- declare const CommandMenuTrigger: React.ForwardRefExoticComponent<Omit<CommandMenuTrigger.Props, "ref"> & React.RefAttributes<HTMLButtonElement>>;
143
- declare namespace CommandMenuTrigger {
144
- interface Props extends CommandMenuTriggerProps {
145
- }
146
- type State = CommandMenuTriggerState;
147
- }
148
-
149
- declare const index_parts_NodeDef: typeof NodeDef;
150
- declare namespace index_parts {
151
- export { CommandMenuBackdrop as Backdrop, PopupMenuCheckboxItem as CheckboxItem, PopupMenuCheckboxItemIndicator as CheckboxItemIndicator, PopupMenuEmpty as Empty, PopupMenuFocusZone as FocusZone, PopupMenuFooter as Footer, PopupMenuGroup as Group, PopupMenuGroupLabel as GroupLabel, PopupMenuHeader as Header, PopupMenuIcon as Icon, CommandMenuInput as Input, PopupMenuItem as Item, PopupMenuLinkItem as LinkItem, PopupMenuList as List, PopupMenuLoading as Loading, PopupMenuNode as Node, index_parts_NodeDef as NodeDef, CommandMenuPopup as Popup, CommandMenuPortal as Portal, CommandMenuRoot as Root, PopupMenuSeparator as Separator, PopupMenuShortcut as Shortcut, CommandMenuSubpage as Subpage, PopupMenuSubpageBack as SubpageBack, PopupMenuSubpageBackItem as SubpageBackItem, PopupMenuSubpageTrigger as SubpageTrigger, PopupMenuSurface as Surface, CommandMenuTrigger as Trigger };
152
- }
153
-
154
- export { index_parts as CommandMenu, type CommandMenuBackdropProps, type CommandMenuBackdropState, PopupMenuFocusZone as CommandMenuFocusZone, PopupMenuFooter as CommandMenuFooter, PopupMenuHeader as CommandMenuHeader, type CommandMenuInputProps, type CommandMenuInputState, type CommandMenuPopupProps, type CommandMenuPopupState, type CommandMenuPortalProps, type CommandMenuPortalState, type CommandMenuRootProps, type CommandMenuSubpageProps, type CommandMenuTriggerProps, type CommandMenuTriggerState, GetResolvedIdFn, NodeDef, PopupMenuIdScope, PopupMenuNode };
@@ -1,23 +0,0 @@
1
- /**
2
- * Fuzzy matching algorithm for command palette-style filtering.
3
- * Vendored from cmdk (https://github.com/pacocoursey/cmdk)
4
- *
5
- * The scores are arranged so that a continuous match of characters will
6
- * result in a total score of 1.
7
- */
8
- /**
9
- * Calculates a fuzzy match score between a string and an abbreviation.
10
- *
11
- * @param string - The string to match against
12
- * @param abbreviation - The search query
13
- * @param keywords - Optional additional keywords to include in matching
14
- * @returns A score between 0 and 1, where 1 is a perfect match and 0 is no match
15
- */
16
- declare function commandScore(string: string, abbreviation: string, keywords?: string[]): number;
17
- /**
18
- * Default filter function for listbox items.
19
- * Returns a score > 0 for matches, 0 for non-matches.
20
- */
21
- declare const defaultFilter: typeof commandScore;
22
-
23
- export { commandScore as c, defaultFilter as d };
@@ -1,23 +0,0 @@
1
- /**
2
- * Fuzzy matching algorithm for command palette-style filtering.
3
- * Vendored from cmdk (https://github.com/pacocoursey/cmdk)
4
- *
5
- * The scores are arranged so that a continuous match of characters will
6
- * result in a total score of 1.
7
- */
8
- /**
9
- * Calculates a fuzzy match score between a string and an abbreviation.
10
- *
11
- * @param string - The string to match against
12
- * @param abbreviation - The search query
13
- * @param keywords - Optional additional keywords to include in matching
14
- * @returns A score between 0 and 1, where 1 is a perfect match and 0 is no match
15
- */
16
- declare function commandScore(string: string, abbreviation: string, keywords?: string[]): number;
17
- /**
18
- * Default filter function for listbox items.
19
- * Returns a score > 0 for matches, 0 for non-matches.
20
- */
21
- declare const defaultFilter: typeof commandScore;
22
-
23
- export { commandScore as c, defaultFilter as d };