v1.0 with SW PWA enabled
This commit is contained in:
21
frontend/node_modules/cmdk/LICENSE.md
generated
vendored
Normal file
21
frontend/node_modules/cmdk/LICENSE.md
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2022 Paco Coursey
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
483
frontend/node_modules/cmdk/README.md
generated
vendored
Normal file
483
frontend/node_modules/cmdk/README.md
generated
vendored
Normal file
@ -0,0 +1,483 @@
|
||||
<p align="center">
|
||||
<img src="./website/public/og.png" />
|
||||
</p>
|
||||
|
||||
# ⌘K [](https://www.npmjs.com/package/cmdk?activeTab=code) [](https://www.npmjs.com/package/cmdk)
|
||||
|
||||
⌘K is a command menu React component that can also be used as an accessible combobox. You render items, it filters and sorts them automatically. ⌘K supports a fully composable API <sup><sup>[How?](/ARCHITECTURE.md)</sup></sup>, so you can wrap items in other components or even as static JSX.
|
||||
|
||||
Demo and examples: [cmdk.paco.me](https://cmdk.paco.me)
|
||||
|
||||
## Install
|
||||
|
||||
```bash
|
||||
pnpm install cmdk
|
||||
```
|
||||
|
||||
## Use
|
||||
|
||||
```tsx
|
||||
import { Command } from 'cmdk'
|
||||
|
||||
const CommandMenu = () => {
|
||||
return (
|
||||
<Command label="Command Menu">
|
||||
<Command.Input />
|
||||
<Command.List>
|
||||
<Command.Empty>No results found.</Command.Empty>
|
||||
|
||||
<Command.Group heading="Letters">
|
||||
<Command.Item>a</Command.Item>
|
||||
<Command.Item>b</Command.Item>
|
||||
<Command.Separator />
|
||||
<Command.Item>c</Command.Item>
|
||||
</Command.Group>
|
||||
|
||||
<Command.Item>Apple</Command.Item>
|
||||
</Command.List>
|
||||
</Command>
|
||||
)
|
||||
}
|
||||
```
|
||||
|
||||
Or in a dialog:
|
||||
|
||||
```tsx
|
||||
import { Command } from 'cmdk'
|
||||
|
||||
const CommandMenu = () => {
|
||||
const [open, setOpen] = React.useState(false)
|
||||
|
||||
// Toggle the menu when ⌘K is pressed
|
||||
React.useEffect(() => {
|
||||
const down = (e) => {
|
||||
if (e.key === 'k' && (e.metaKey || e.ctrlKey)) {
|
||||
e.preventDefault()
|
||||
setOpen((open) => !open)
|
||||
}
|
||||
}
|
||||
|
||||
document.addEventListener('keydown', down)
|
||||
return () => document.removeEventListener('keydown', down)
|
||||
}, [])
|
||||
|
||||
return (
|
||||
<Command.Dialog open={open} onOpenChange={setOpen} label="Global Command Menu">
|
||||
<Command.Input />
|
||||
<Command.List>
|
||||
<Command.Empty>No results found.</Command.Empty>
|
||||
|
||||
<Command.Group heading="Letters">
|
||||
<Command.Item>a</Command.Item>
|
||||
<Command.Item>b</Command.Item>
|
||||
<Command.Separator />
|
||||
<Command.Item>c</Command.Item>
|
||||
</Command.Group>
|
||||
|
||||
<Command.Item>Apple</Command.Item>
|
||||
</Command.List>
|
||||
</Command.Dialog>
|
||||
)
|
||||
}
|
||||
```
|
||||
|
||||
## Parts and styling
|
||||
|
||||
All parts forward props, including `ref`, to an appropriate element. Each part has a specific data-attribute (starting with `cmdk-`) that can be used for styling.
|
||||
|
||||
### Command `[cmdk-root]`
|
||||
|
||||
Render this to show the command menu inline, or use [Dialog](#dialog-cmdk-dialog-cmdk-overlay) to render in a elevated context. Can be controlled with the `value` and `onValueChange` props.
|
||||
|
||||
> **Note**
|
||||
>
|
||||
> Values are always trimmed with the [trim()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trim) method.
|
||||
|
||||
```tsx
|
||||
const [value, setValue] = React.useState('apple')
|
||||
|
||||
return (
|
||||
<Command value={value} onValueChange={setValue}>
|
||||
<Command.Input />
|
||||
<Command.List>
|
||||
<Command.Item>Orange</Command.Item>
|
||||
<Command.Item>Apple</Command.Item>
|
||||
</Command.List>
|
||||
</Command>
|
||||
)
|
||||
```
|
||||
|
||||
You can provide a custom `filter` function that is called to rank each item. Note that the value will be trimmed.
|
||||
|
||||
```tsx
|
||||
<Command
|
||||
filter={(value, search) => {
|
||||
if (value.includes(search)) return 1
|
||||
return 0
|
||||
}}
|
||||
/>
|
||||
```
|
||||
|
||||
A third argument, `keywords`, can also be provided to the filter function. Keywords act as aliases for the item value, and can also affect the rank of the item. Keywords are trimmed.
|
||||
|
||||
```tsx
|
||||
<Command
|
||||
filter={(value, search, keywords) => {
|
||||
const extendValue = value + ' ' + keywords.join(' ')
|
||||
if (extendValue.includes(search)) return 1
|
||||
return 0
|
||||
}}
|
||||
/>
|
||||
```
|
||||
|
||||
Or disable filtering and sorting entirely:
|
||||
|
||||
```tsx
|
||||
<Command shouldFilter={false}>
|
||||
<Command.List>
|
||||
{filteredItems.map((item) => {
|
||||
return (
|
||||
<Command.Item key={item} value={item}>
|
||||
{item}
|
||||
</Command.Item>
|
||||
)
|
||||
})}
|
||||
</Command.List>
|
||||
</Command>
|
||||
```
|
||||
|
||||
You can make the arrow keys wrap around the list (when you reach the end, it goes back to the first item) by setting the `loop` prop:
|
||||
|
||||
```tsx
|
||||
<Command loop />
|
||||
```
|
||||
|
||||
### Dialog `[cmdk-dialog]` `[cmdk-overlay]`
|
||||
|
||||
Props are forwarded to [Command](#command-cmdk-root). Composes Radix UI's Dialog component. The overlay is always rendered. See the [Radix Documentation](https://www.radix-ui.com/docs/primitives/components/dialog) for more information. Can be controlled with the `open` and `onOpenChange` props.
|
||||
|
||||
```tsx
|
||||
const [open, setOpen] = React.useState(false)
|
||||
|
||||
return (
|
||||
<Command.Dialog open={open} onOpenChange={setOpen}>
|
||||
...
|
||||
</Command.Dialog>
|
||||
)
|
||||
```
|
||||
|
||||
You can provide a `container` prop that accepts an HTML element that is forwarded to Radix UI's Dialog Portal component to specify which element the Dialog should portal into (defaults to `body`). See the [Radix Documentation](https://www.radix-ui.com/docs/primitives/components/dialog#portal) for more information.
|
||||
|
||||
```tsx
|
||||
const containerElement = React.useRef(null)
|
||||
|
||||
return (
|
||||
<>
|
||||
<Command.Dialog container={containerElement.current} />
|
||||
<div ref={containerElement} />
|
||||
</>
|
||||
)
|
||||
```
|
||||
|
||||
### Input `[cmdk-input]`
|
||||
|
||||
All props are forwarded to the underlying `input` element. Can be controlled with the `value` and `onValueChange` props.
|
||||
|
||||
```tsx
|
||||
const [search, setSearch] = React.useState('')
|
||||
|
||||
return <Command.Input value={search} onValueChange={setSearch} />
|
||||
```
|
||||
|
||||
### List `[cmdk-list]`
|
||||
|
||||
Contains items and groups. Animate height using the `--cmdk-list-height` CSS variable.
|
||||
|
||||
```css
|
||||
[cmdk-list] {
|
||||
min-height: 300px;
|
||||
height: var(--cmdk-list-height);
|
||||
max-height: 500px;
|
||||
transition: height 100ms ease;
|
||||
}
|
||||
```
|
||||
|
||||
To scroll item into view earlier near the edges of the viewport, use scroll-padding:
|
||||
|
||||
```css
|
||||
[cmdk-list] {
|
||||
scroll-padding-block-start: 8px;
|
||||
scroll-padding-block-end: 8px;
|
||||
}
|
||||
```
|
||||
|
||||
### Item `[cmdk-item]` `[data-disabled?]` `[data-selected?]`
|
||||
|
||||
Item that becomes active on pointer enter. You should provide a unique `value` for each item, but it will be automatically inferred from the `.textContent`.
|
||||
|
||||
```tsx
|
||||
<Command.Item
|
||||
onSelect={(value) => console.log('Selected', value)}
|
||||
// Value is implicity "apple" because of the provided text content
|
||||
>
|
||||
Apple
|
||||
</Command.Item>
|
||||
```
|
||||
|
||||
You can also provide a `keywords` prop to help with filtering. Keywords are trimmed.
|
||||
|
||||
```tsx
|
||||
<Command.Item keywords={['fruit', 'apple']}>Apple</Command.Item>
|
||||
```
|
||||
|
||||
```tsx
|
||||
<Command.Item
|
||||
onSelect={(value) => console.log('Selected', value)}
|
||||
// Value is implicity "apple" because of the provided text content
|
||||
>
|
||||
Apple
|
||||
</Command.Item>
|
||||
```
|
||||
|
||||
You can force an item to always render, regardless of filtering, by passing the `forceMount` prop.
|
||||
|
||||
### Group `[cmdk-group]` `[hidden?]`
|
||||
|
||||
Groups items together with the given `heading` (`[cmdk-group-heading]`).
|
||||
|
||||
```tsx
|
||||
<Command.Group heading="Fruit">
|
||||
<Command.Item>Apple</Command.Item>
|
||||
</Command.Group>
|
||||
```
|
||||
|
||||
Groups will not unmount from the DOM, rather the `hidden` attribute is applied to hide it from view. This may be relevant in your styling.
|
||||
|
||||
You can force a group to always render, regardless of filtering, by passing the `forceMount` prop.
|
||||
|
||||
### Separator `[cmdk-separator]`
|
||||
|
||||
Visible when the search query is empty or `alwaysRender` is true, hidden otherwise.
|
||||
|
||||
### Empty `[cmdk-empty]`
|
||||
|
||||
Automatically renders when there are no results for the search query.
|
||||
|
||||
### Loading `[cmdk-loading]`
|
||||
|
||||
You should conditionally render this with `progress` while loading asynchronous items.
|
||||
|
||||
```tsx
|
||||
const [loading, setLoading] = React.useState(false)
|
||||
|
||||
return <Command.List>{loading && <Command.Loading>Hang on…</Command.Loading>}</Command.List>
|
||||
```
|
||||
|
||||
### `useCommandState(state => state.selectedField)`
|
||||
|
||||
Hook that composes [`useSyncExternalStore`](https://reactjs.org/docs/hooks-reference.html#usesyncexternalstore). Pass a function that returns a slice of the command menu state to re-render when that slice changes. This hook is provided for advanced use cases and should not be commonly used.
|
||||
|
||||
A good use case would be to render a more detailed empty state, like so:
|
||||
|
||||
```tsx
|
||||
const search = useCommandState((state) => state.search)
|
||||
return <Command.Empty>No results found for "{search}".</Command.Empty>
|
||||
```
|
||||
|
||||
## Examples
|
||||
|
||||
Code snippets for common use cases.
|
||||
|
||||
### Nested items
|
||||
|
||||
Often selecting one item should navigate deeper, with a more refined set of items. For example selecting "Change theme…" should show new items "Dark theme" and "Light theme". We call these sets of items "pages", and they can be implemented with simple state:
|
||||
|
||||
```tsx
|
||||
const ref = React.useRef(null)
|
||||
const [open, setOpen] = React.useState(false)
|
||||
const [search, setSearch] = React.useState('')
|
||||
const [pages, setPages] = React.useState([])
|
||||
const page = pages[pages.length - 1]
|
||||
|
||||
return (
|
||||
<Command
|
||||
onKeyDown={(e) => {
|
||||
// Escape goes to previous page
|
||||
// Backspace goes to previous page when search is empty
|
||||
if (e.key === 'Escape' || (e.key === 'Backspace' && !search)) {
|
||||
e.preventDefault()
|
||||
setPages((pages) => pages.slice(0, -1))
|
||||
}
|
||||
}}
|
||||
>
|
||||
<Command.Input value={search} onValueChange={setSearch} />
|
||||
<Command.List>
|
||||
{!page && (
|
||||
<>
|
||||
<Command.Item onSelect={() => setPages([...pages, 'projects'])}>Search projects…</Command.Item>
|
||||
<Command.Item onSelect={() => setPages([...pages, 'teams'])}>Join a team…</Command.Item>
|
||||
</>
|
||||
)}
|
||||
|
||||
{page === 'projects' && (
|
||||
<>
|
||||
<Command.Item>Project A</Command.Item>
|
||||
<Command.Item>Project B</Command.Item>
|
||||
</>
|
||||
)}
|
||||
|
||||
{page === 'teams' && (
|
||||
<>
|
||||
<Command.Item>Team 1</Command.Item>
|
||||
<Command.Item>Team 2</Command.Item>
|
||||
</>
|
||||
)}
|
||||
</Command.List>
|
||||
</Command>
|
||||
)
|
||||
```
|
||||
|
||||
### Show sub-items when searching
|
||||
|
||||
If your items have nested sub-items that you only want to reveal when searching, render based on the search state:
|
||||
|
||||
```tsx
|
||||
const SubItem = (props) => {
|
||||
const search = useCommandState((state) => state.search)
|
||||
if (!search) return null
|
||||
return <Command.Item {...props} />
|
||||
}
|
||||
|
||||
return (
|
||||
<Command>
|
||||
<Command.Input />
|
||||
<Command.List>
|
||||
<Command.Item>Change theme…</Command.Item>
|
||||
<SubItem>Change theme to dark</SubItem>
|
||||
<SubItem>Change theme to light</SubItem>
|
||||
</Command.List>
|
||||
</Command>
|
||||
)
|
||||
```
|
||||
|
||||
### Asynchronous results
|
||||
|
||||
Render the items as they become available. Filtering and sorting will happen automatically.
|
||||
|
||||
```tsx
|
||||
const [loading, setLoading] = React.useState(false)
|
||||
const [items, setItems] = React.useState([])
|
||||
|
||||
React.useEffect(() => {
|
||||
async function getItems() {
|
||||
setLoading(true)
|
||||
const res = await api.get('/dictionary')
|
||||
setItems(res)
|
||||
setLoading(false)
|
||||
}
|
||||
|
||||
getItems()
|
||||
}, [])
|
||||
|
||||
return (
|
||||
<Command>
|
||||
<Command.Input />
|
||||
<Command.List>
|
||||
{loading && <Command.Loading>Fetching words…</Command.Loading>}
|
||||
{items.map((item) => {
|
||||
return (
|
||||
<Command.Item key={`word-${item}`} value={item}>
|
||||
{item}
|
||||
</Command.Item>
|
||||
)
|
||||
})}
|
||||
</Command.List>
|
||||
</Command>
|
||||
)
|
||||
```
|
||||
|
||||
### Use inside Popover
|
||||
|
||||
We recommend using the [Radix UI popover](https://www.radix-ui.com/docs/primitives/components/popover) component. ⌘K relies on the Radix UI Dialog component, so this will reduce your bundle size a bit due to shared dependencies.
|
||||
|
||||
```bash
|
||||
$ pnpm install @radix-ui/react-popover
|
||||
```
|
||||
|
||||
Render `Command` inside of the popover content:
|
||||
|
||||
```tsx
|
||||
import * as Popover from '@radix-ui/react-popover'
|
||||
|
||||
return (
|
||||
<Popover.Root>
|
||||
<Popover.Trigger>Toggle popover</Popover.Trigger>
|
||||
|
||||
<Popover.Content>
|
||||
<Command>
|
||||
<Command.Input />
|
||||
<Command.List>
|
||||
<Command.Item>Apple</Command.Item>
|
||||
</Command.List>
|
||||
</Command>
|
||||
</Popover.Content>
|
||||
</Popover.Root>
|
||||
)
|
||||
```
|
||||
|
||||
### Drop in stylesheets
|
||||
|
||||
You can find global stylesheets to drop in as a starting point for styling. See [website/styles/cmdk](website/styles/cmdk) for examples.
|
||||
|
||||
## FAQ
|
||||
|
||||
**Accessible?** Yes. Labeling, aria attributes, and DOM ordering tested with Voice Over and Chrome DevTools. [Dialog](#dialog-cmdk-dialog-cmdk-overlay) composes an accessible Dialog implementation.
|
||||
|
||||
**Virtualization?** No. Good performance up to 2,000-3,000 items, though. Read below to bring your own.
|
||||
|
||||
**Filter/sort items manually?** Yes. Pass `shouldFilter={false}` to [Command](#command-cmdk-root). Better memory usage and performance. Bring your own virtualization this way.
|
||||
|
||||
**React 18 safe?** Yes, required. Uses React 18 hooks like `useId` and `useSyncExternalStore`.
|
||||
|
||||
**Unstyled?** Yes, use the listed CSS selectors.
|
||||
|
||||
**Hydration mismatch?** No, likely a bug in your code. Ensure the `open` prop to `Command.Dialog` is `false` on the server.
|
||||
|
||||
**React strict mode safe?** Yes. Open an issue if you notice an issue.
|
||||
|
||||
**Weird/wrong behavior?** Make sure your `Command.Item` has a `key` and unique `value`.
|
||||
|
||||
**Concurrent mode safe?** Maybe, but concurrent mode is not yet real. Uses risky approaches like manual DOM ordering.
|
||||
|
||||
**React server component?** No, it's a client component.
|
||||
|
||||
**Listen for ⌘K automatically?** No, do it yourself to have full control over keybind context.
|
||||
|
||||
**React Native?** No, and no plans to support it. If you build a React Native version, let us know and we'll link your repository here.
|
||||
|
||||
## History
|
||||
|
||||
Written in 2019 by Paco ([@pacocoursey](https://twitter.com/pacocoursey)) to see if a composable combobox API was possible. Used for the Vercel command menu and autocomplete by Rauno ([@raunofreiberg](https://twitter.com/raunofreiberg)) in 2020. Re-written independently in 2022 with a simpler and more performant approach. Ideas and help from Shu ([@shuding\_](https://twitter.com/shuding_)).
|
||||
|
||||
[use-descendants](https://github.com/pacocoursey/use-descendants) was extracted from the 2019 version.
|
||||
|
||||
## Testing
|
||||
|
||||
First, install dependencies and Playwright browsers:
|
||||
|
||||
```bash
|
||||
pnpm install
|
||||
pnpm playwright install
|
||||
```
|
||||
|
||||
Then ensure you've built the library:
|
||||
|
||||
```bash
|
||||
pnpm build
|
||||
```
|
||||
|
||||
Then run the tests using your local build against real browser engines:
|
||||
|
||||
```bash
|
||||
pnpm test
|
||||
```
|
||||
1
frontend/node_modules/cmdk/dist/chunk-NZJY6EH4.mjs
generated
vendored
Normal file
1
frontend/node_modules/cmdk/dist/chunk-NZJY6EH4.mjs
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
var U=1,Y=.9,H=.8,J=.17,p=.1,u=.999,$=.9999;var k=.99,m=/[\\\/_+.#"@\[\(\{&]/,B=/[\\\/_+.#"@\[\(\{&]/g,K=/[\s-]/,X=/[\s-]/g;function G(_,C,h,P,A,f,O){if(f===C.length)return A===_.length?U:k;var T=`${A},${f}`;if(O[T]!==void 0)return O[T];for(var L=P.charAt(f),c=h.indexOf(L,A),S=0,E,N,R,M;c>=0;)E=G(_,C,h,P,c+1,f+1,O),E>S&&(c===A?E*=U:m.test(_.charAt(c-1))?(E*=H,R=_.slice(A,c-1).match(B),R&&A>0&&(E*=Math.pow(u,R.length))):K.test(_.charAt(c-1))?(E*=Y,M=_.slice(A,c-1).match(X),M&&A>0&&(E*=Math.pow(u,M.length))):(E*=J,A>0&&(E*=Math.pow(u,c-A))),_.charAt(c)!==C.charAt(f)&&(E*=$)),(E<p&&h.charAt(c-1)===P.charAt(f+1)||P.charAt(f+1)===P.charAt(f)&&h.charAt(c-1)!==P.charAt(f))&&(N=G(_,C,h,P,c+1,f+2,O),N*p>E&&(E=N*p)),E>S&&(S=E),c=h.indexOf(L,c+1);return O[T]=S,S}function D(_){return _.toLowerCase().replace(X," ")}function W(_,C,h){return _=h&&h.length>0?`${_+" "+h.join(" ")}`:_,G(_,C,D(_),D(C),0,0,{})}export{W as a};
|
||||
1
frontend/node_modules/cmdk/dist/chunk-XJATAMEX.mjs
generated
vendored
Normal file
1
frontend/node_modules/cmdk/dist/chunk-XJATAMEX.mjs
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
var U=1,Y=.9,a=.8,H=.17,p=.1,u=.999,J=.9999;var k=.99,m=/[\\\/_+.#"@\[\(\{&]/,B=/[\\\/_+.#"@\[\(\{&]/g,K=/[\s-]/,X=/[\s-]/g;function G(c,f,P,C,h,A,O){if(A===f.length)return h===c.length?U:k;var T=`${h},${A}`;if(O[T]!==void 0)return O[T];for(var L=C.charAt(A),E=P.indexOf(L,h),S=0,_,N,R,M;E>=0;)_=G(c,f,P,C,E+1,A+1,O),_>S&&(E===h?_*=U:m.test(c.charAt(E-1))?(_*=a,R=c.slice(h,E-1).match(B),R&&h>0&&(_*=Math.pow(u,R.length))):K.test(c.charAt(E-1))?(_*=Y,M=c.slice(h,E-1).match(X),M&&h>0&&(_*=Math.pow(u,M.length))):(_*=H,h>0&&(_*=Math.pow(u,E-h))),c.charAt(E)!==f.charAt(A)&&(_*=J)),(_<p&&P.charAt(E-1)===C.charAt(A+1)||C.charAt(A+1)===C.charAt(A)&&P.charAt(E-1)!==C.charAt(A))&&(N=G(c,f,P,C,E+1,A+2,O),N*p>_&&(_=N*p)),_>S&&(S=_),E=P.indexOf(L,E+1);return O[T]=S,S}function D(c){return c.toLowerCase().replace(X," ")}function W(c,f){return G(c,f,D(c),D(f),0,0,{})}export{W as a};
|
||||
3
frontend/node_modules/cmdk/dist/command-score.d.mts
generated
vendored
Normal file
3
frontend/node_modules/cmdk/dist/command-score.d.mts
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
declare function commandScore(string: string, abbreviation: string, aliases: string[]): number;
|
||||
|
||||
export { commandScore };
|
||||
3
frontend/node_modules/cmdk/dist/command-score.d.ts
generated
vendored
Normal file
3
frontend/node_modules/cmdk/dist/command-score.d.ts
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
declare function commandScore(string: string, abbreviation: string, aliases: string[]): number;
|
||||
|
||||
export { commandScore };
|
||||
1
frontend/node_modules/cmdk/dist/command-score.js
generated
vendored
Normal file
1
frontend/node_modules/cmdk/dist/command-score.js
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
var p=Object.defineProperty;var H=Object.getOwnPropertyDescriptor;var J=Object.getOwnPropertyNames;var $=Object.prototype.hasOwnProperty;var k=(_,E)=>{for(var h in E)p(_,h,{get:E[h],enumerable:!0})},m=(_,E,h,C)=>{if(E&&typeof E=="object"||typeof E=="function")for(let c of J(E))!$.call(_,c)&&c!==h&&p(_,c,{get:()=>E[c],enumerable:!(C=H(E,c))||C.enumerable});return _};var B=_=>m(p({},"__esModule",{value:!0}),_);var a={};k(a,{commandScore:()=>Z});module.exports=B(a);var D=1,K=.9,W=.8,j=.17,u=.1,G=.999,y=.9999;var F=.99,q=/[\\\/_+.#"@\[\(\{&]/,Q=/[\\\/_+.#"@\[\(\{&]/g,V=/[\s-]/,Y=/[\s-]/g;function L(_,E,h,C,c,P,O){if(P===E.length)return c===_.length?D:F;var T=`${c},${P}`;if(O[T]!==void 0)return O[T];for(var U=C.charAt(P),f=h.indexOf(U,c),S=0,A,N,R,M;f>=0;)A=L(_,E,h,C,f+1,P+1,O),A>S&&(f===c?A*=D:q.test(_.charAt(f-1))?(A*=W,R=_.slice(c,f-1).match(Q),R&&c>0&&(A*=Math.pow(G,R.length))):V.test(_.charAt(f-1))?(A*=K,M=_.slice(c,f-1).match(Y),M&&c>0&&(A*=Math.pow(G,M.length))):(A*=j,c>0&&(A*=Math.pow(G,f-c))),_.charAt(f)!==E.charAt(P)&&(A*=y)),(A<u&&h.charAt(f-1)===C.charAt(P+1)||C.charAt(P+1)===C.charAt(P)&&h.charAt(f-1)!==C.charAt(P))&&(N=L(_,E,h,C,f+1,P+2,O),N*u>A&&(A=N*u)),A>S&&(S=A),f=h.indexOf(U,f+1);return O[T]=S,S}function X(_){return _.toLowerCase().replace(Y," ")}function Z(_,E,h){return _=h&&h.length>0?`${_+" "+h.join(" ")}`:_,L(_,E,X(_),X(E),0,0,{})}0&&(module.exports={commandScore});
|
||||
1
frontend/node_modules/cmdk/dist/command-score.mjs
generated
vendored
Normal file
1
frontend/node_modules/cmdk/dist/command-score.mjs
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{a}from"./chunk-NZJY6EH4.mjs";export{a as commandScore};
|
||||
412
frontend/node_modules/cmdk/dist/index.d.mts
generated
vendored
Normal file
412
frontend/node_modules/cmdk/dist/index.d.mts
generated
vendored
Normal file
@ -0,0 +1,412 @@
|
||||
import * as RadixDialog from '@radix-ui/react-dialog';
|
||||
import * as React from 'react';
|
||||
|
||||
declare type Children = {
|
||||
children?: React.ReactNode;
|
||||
};
|
||||
declare type CommandFilter = (value: string, search: string, keywords?: string[]) => number;
|
||||
declare type State = {
|
||||
search: string;
|
||||
value: string;
|
||||
selectedItemId?: string;
|
||||
filtered: {
|
||||
count: number;
|
||||
items: Map<string, number>;
|
||||
groups: Set<string>;
|
||||
};
|
||||
};
|
||||
declare const defaultFilter: CommandFilter;
|
||||
declare const Command: React.ForwardRefExoticComponent<Children & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
||||
ref?: React.Ref<HTMLDivElement>;
|
||||
} & {
|
||||
asChild?: boolean;
|
||||
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
||||
/**
|
||||
* Accessible label for this command menu. Not shown visibly.
|
||||
*/
|
||||
label?: string;
|
||||
/**
|
||||
* Optionally set to `false` to turn off the automatic filtering and sorting.
|
||||
* If `false`, you must conditionally render valid items based on the search query yourself.
|
||||
*/
|
||||
shouldFilter?: boolean;
|
||||
/**
|
||||
* Custom filter function for whether each command menu item should matches the given search query.
|
||||
* It should return a number between 0 and 1, with 1 being the best match and 0 being hidden entirely.
|
||||
* By default, uses the `command-score` library.
|
||||
*/
|
||||
filter?: CommandFilter;
|
||||
/**
|
||||
* Optional default item value when it is initially rendered.
|
||||
*/
|
||||
defaultValue?: string;
|
||||
/**
|
||||
* Optional controlled state of the selected command menu item.
|
||||
*/
|
||||
value?: string;
|
||||
/**
|
||||
* Event handler called when the selected item of the menu changes.
|
||||
*/
|
||||
onValueChange?: (value: string) => void;
|
||||
/**
|
||||
* Optionally set to `true` to turn on looping around when using the arrow keys.
|
||||
*/
|
||||
loop?: boolean;
|
||||
/**
|
||||
* Optionally set to `true` to disable selection via pointer events.
|
||||
*/
|
||||
disablePointerSelection?: boolean;
|
||||
/**
|
||||
* Set to `false` to disable ctrl+n/j/p/k shortcuts. Defaults to `true`.
|
||||
*/
|
||||
vimBindings?: boolean;
|
||||
} & React.RefAttributes<HTMLDivElement>>;
|
||||
/**
|
||||
* Command menu item. Becomes active on pointer enter or through keyboard navigation.
|
||||
* Preferably pass a `value`, otherwise the value will be inferred from `children` or
|
||||
* the rendered item's `textContent`.
|
||||
*/
|
||||
declare const Item: React.ForwardRefExoticComponent<Children & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
||||
ref?: React.Ref<HTMLDivElement>;
|
||||
} & {
|
||||
asChild?: boolean;
|
||||
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "disabled" | "value"> & {
|
||||
/** Whether this item is currently disabled. */
|
||||
disabled?: boolean;
|
||||
/** Event handler for when this item is selected, either via click or keyboard selection. */
|
||||
onSelect?: (value: string) => void;
|
||||
/**
|
||||
* A unique value for this item.
|
||||
* If no value is provided, it will be inferred from `children` or the rendered `textContent`. If your `textContent` changes between renders, you _must_ provide a stable, unique `value`.
|
||||
*/
|
||||
value?: string;
|
||||
/** Optional keywords to match against when filtering. */
|
||||
keywords?: string[];
|
||||
/** Whether this item is forcibly rendered regardless of filtering. */
|
||||
forceMount?: boolean;
|
||||
} & React.RefAttributes<HTMLDivElement>>;
|
||||
declare type Group = {
|
||||
id: string;
|
||||
forceMount?: boolean;
|
||||
};
|
||||
/**
|
||||
* Group command menu items together with a heading.
|
||||
* Grouped items are always shown together.
|
||||
*/
|
||||
declare const Group: React.ForwardRefExoticComponent<Children & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
||||
ref?: React.Ref<HTMLDivElement>;
|
||||
} & {
|
||||
asChild?: boolean;
|
||||
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "heading" | "value"> & {
|
||||
/** Optional heading to render for this group. */
|
||||
heading?: React.ReactNode;
|
||||
/** If no heading is provided, you must provide a value that is unique for this group. */
|
||||
value?: string;
|
||||
/** Whether this group is forcibly rendered regardless of filtering. */
|
||||
forceMount?: boolean;
|
||||
} & React.RefAttributes<HTMLDivElement>>;
|
||||
/**
|
||||
* A visual and semantic separator between items or groups.
|
||||
* Visible when the search query is empty or `alwaysRender` is true, hidden otherwise.
|
||||
*/
|
||||
declare const Separator: React.ForwardRefExoticComponent<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
||||
ref?: React.Ref<HTMLDivElement>;
|
||||
} & {
|
||||
asChild?: boolean;
|
||||
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
||||
/** Whether this separator should always be rendered. Useful if you disable automatic filtering. */
|
||||
alwaysRender?: boolean;
|
||||
} & React.RefAttributes<HTMLDivElement>>;
|
||||
/**
|
||||
* Command menu input.
|
||||
* All props are forwarded to the underyling `input` element.
|
||||
*/
|
||||
declare const Input: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
|
||||
ref?: React.Ref<HTMLInputElement>;
|
||||
} & {
|
||||
asChild?: boolean;
|
||||
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "value" | "type"> & {
|
||||
/**
|
||||
* Optional controlled state for the value of the search input.
|
||||
*/
|
||||
value?: string;
|
||||
/**
|
||||
* Event handler called when the search value changes.
|
||||
*/
|
||||
onValueChange?: (search: string) => void;
|
||||
} & React.RefAttributes<HTMLInputElement>>;
|
||||
/**
|
||||
* Contains `Item`, `Group`, and `Separator`.
|
||||
* Use the `--cmdk-list-height` CSS variable to animate height based on the number of results.
|
||||
*/
|
||||
declare const List: React.ForwardRefExoticComponent<Children & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
||||
ref?: React.Ref<HTMLDivElement>;
|
||||
} & {
|
||||
asChild?: boolean;
|
||||
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
||||
/**
|
||||
* Accessible label for this List of suggestions. Not shown visibly.
|
||||
*/
|
||||
label?: string;
|
||||
} & React.RefAttributes<HTMLDivElement>>;
|
||||
/**
|
||||
* Renders the command menu in a Radix Dialog.
|
||||
*/
|
||||
declare const Dialog: React.ForwardRefExoticComponent<RadixDialog.DialogProps & Children & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
||||
ref?: React.Ref<HTMLDivElement>;
|
||||
} & {
|
||||
asChild?: boolean;
|
||||
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
||||
/**
|
||||
* Accessible label for this command menu. Not shown visibly.
|
||||
*/
|
||||
label?: string;
|
||||
/**
|
||||
* Optionally set to `false` to turn off the automatic filtering and sorting.
|
||||
* If `false`, you must conditionally render valid items based on the search query yourself.
|
||||
*/
|
||||
shouldFilter?: boolean;
|
||||
/**
|
||||
* Custom filter function for whether each command menu item should matches the given search query.
|
||||
* It should return a number between 0 and 1, with 1 being the best match and 0 being hidden entirely.
|
||||
* By default, uses the `command-score` library.
|
||||
*/
|
||||
filter?: CommandFilter;
|
||||
/**
|
||||
* Optional default item value when it is initially rendered.
|
||||
*/
|
||||
defaultValue?: string;
|
||||
/**
|
||||
* Optional controlled state of the selected command menu item.
|
||||
*/
|
||||
value?: string;
|
||||
/**
|
||||
* Event handler called when the selected item of the menu changes.
|
||||
*/
|
||||
onValueChange?: (value: string) => void;
|
||||
/**
|
||||
* Optionally set to `true` to turn on looping around when using the arrow keys.
|
||||
*/
|
||||
loop?: boolean;
|
||||
/**
|
||||
* Optionally set to `true` to disable selection via pointer events.
|
||||
*/
|
||||
disablePointerSelection?: boolean;
|
||||
/**
|
||||
* Set to `false` to disable ctrl+n/j/p/k shortcuts. Defaults to `true`.
|
||||
*/
|
||||
vimBindings?: boolean;
|
||||
} & {
|
||||
/** Provide a className to the Dialog overlay. */
|
||||
overlayClassName?: string;
|
||||
/** Provide a className to the Dialog content. */
|
||||
contentClassName?: string;
|
||||
/** Provide a custom element the Dialog should portal into. */
|
||||
container?: HTMLElement;
|
||||
} & React.RefAttributes<HTMLDivElement>>;
|
||||
/**
|
||||
* Automatically renders when there are no results for the search query.
|
||||
*/
|
||||
declare const Empty: React.ForwardRefExoticComponent<Children & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
||||
ref?: React.Ref<HTMLDivElement>;
|
||||
} & {
|
||||
asChild?: boolean;
|
||||
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & React.RefAttributes<HTMLDivElement>>;
|
||||
/**
|
||||
* You should conditionally render this with `progress` while loading asynchronous items.
|
||||
*/
|
||||
declare const Loading: React.ForwardRefExoticComponent<Children & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
||||
ref?: React.Ref<HTMLDivElement>;
|
||||
} & {
|
||||
asChild?: boolean;
|
||||
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
||||
/** Estimated progress of loading asynchronous options. */
|
||||
progress?: number;
|
||||
/**
|
||||
* Accessible label for this loading progressbar. Not shown visibly.
|
||||
*/
|
||||
label?: string;
|
||||
} & React.RefAttributes<HTMLDivElement>>;
|
||||
declare const pkg: React.ForwardRefExoticComponent<Children & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
||||
ref?: React.Ref<HTMLDivElement>;
|
||||
} & {
|
||||
asChild?: boolean;
|
||||
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
||||
/**
|
||||
* Accessible label for this command menu. Not shown visibly.
|
||||
*/
|
||||
label?: string;
|
||||
/**
|
||||
* Optionally set to `false` to turn off the automatic filtering and sorting.
|
||||
* If `false`, you must conditionally render valid items based on the search query yourself.
|
||||
*/
|
||||
shouldFilter?: boolean;
|
||||
/**
|
||||
* Custom filter function for whether each command menu item should matches the given search query.
|
||||
* It should return a number between 0 and 1, with 1 being the best match and 0 being hidden entirely.
|
||||
* By default, uses the `command-score` library.
|
||||
*/
|
||||
filter?: CommandFilter;
|
||||
/**
|
||||
* Optional default item value when it is initially rendered.
|
||||
*/
|
||||
defaultValue?: string;
|
||||
/**
|
||||
* Optional controlled state of the selected command menu item.
|
||||
*/
|
||||
value?: string;
|
||||
/**
|
||||
* Event handler called when the selected item of the menu changes.
|
||||
*/
|
||||
onValueChange?: (value: string) => void;
|
||||
/**
|
||||
* Optionally set to `true` to turn on looping around when using the arrow keys.
|
||||
*/
|
||||
loop?: boolean;
|
||||
/**
|
||||
* Optionally set to `true` to disable selection via pointer events.
|
||||
*/
|
||||
disablePointerSelection?: boolean;
|
||||
/**
|
||||
* Set to `false` to disable ctrl+n/j/p/k shortcuts. Defaults to `true`.
|
||||
*/
|
||||
vimBindings?: boolean;
|
||||
} & React.RefAttributes<HTMLDivElement>> & {
|
||||
List: React.ForwardRefExoticComponent<Children & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
||||
ref?: React.Ref<HTMLDivElement>;
|
||||
} & {
|
||||
asChild?: boolean;
|
||||
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
||||
/**
|
||||
* Accessible label for this List of suggestions. Not shown visibly.
|
||||
*/
|
||||
label?: string;
|
||||
} & React.RefAttributes<HTMLDivElement>>;
|
||||
Item: React.ForwardRefExoticComponent<Children & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
||||
ref?: React.Ref<HTMLDivElement>;
|
||||
} & {
|
||||
asChild?: boolean;
|
||||
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "disabled" | "value"> & {
|
||||
/** Whether this item is currently disabled. */
|
||||
disabled?: boolean;
|
||||
/** Event handler for when this item is selected, either via click or keyboard selection. */
|
||||
onSelect?: (value: string) => void;
|
||||
/**
|
||||
* A unique value for this item.
|
||||
* If no value is provided, it will be inferred from `children` or the rendered `textContent`. If your `textContent` changes between renders, you _must_ provide a stable, unique `value`.
|
||||
*/
|
||||
value?: string;
|
||||
/** Optional keywords to match against when filtering. */
|
||||
keywords?: string[];
|
||||
/** Whether this item is forcibly rendered regardless of filtering. */
|
||||
forceMount?: boolean;
|
||||
} & React.RefAttributes<HTMLDivElement>>;
|
||||
Input: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
|
||||
ref?: React.Ref<HTMLInputElement>;
|
||||
} & {
|
||||
asChild?: boolean;
|
||||
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "value" | "type"> & {
|
||||
/**
|
||||
* Optional controlled state for the value of the search input.
|
||||
*/
|
||||
value?: string;
|
||||
/**
|
||||
* Event handler called when the search value changes.
|
||||
*/
|
||||
onValueChange?: (search: string) => void;
|
||||
} & React.RefAttributes<HTMLInputElement>>;
|
||||
Group: React.ForwardRefExoticComponent<Children & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
||||
ref?: React.Ref<HTMLDivElement>;
|
||||
} & {
|
||||
asChild?: boolean;
|
||||
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "heading" | "value"> & {
|
||||
/** Optional heading to render for this group. */
|
||||
heading?: React.ReactNode;
|
||||
/** If no heading is provided, you must provide a value that is unique for this group. */
|
||||
value?: string;
|
||||
/** Whether this group is forcibly rendered regardless of filtering. */
|
||||
forceMount?: boolean;
|
||||
} & React.RefAttributes<HTMLDivElement>>;
|
||||
Separator: React.ForwardRefExoticComponent<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
||||
ref?: React.Ref<HTMLDivElement>;
|
||||
} & {
|
||||
asChild?: boolean;
|
||||
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
||||
/** Whether this separator should always be rendered. Useful if you disable automatic filtering. */
|
||||
alwaysRender?: boolean;
|
||||
} & React.RefAttributes<HTMLDivElement>>;
|
||||
Dialog: React.ForwardRefExoticComponent<RadixDialog.DialogProps & Children & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
||||
ref?: React.Ref<HTMLDivElement>;
|
||||
} & {
|
||||
asChild?: boolean;
|
||||
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
||||
/**
|
||||
* Accessible label for this command menu. Not shown visibly.
|
||||
*/
|
||||
label?: string;
|
||||
/**
|
||||
* Optionally set to `false` to turn off the automatic filtering and sorting.
|
||||
* If `false`, you must conditionally render valid items based on the search query yourself.
|
||||
*/
|
||||
shouldFilter?: boolean;
|
||||
/**
|
||||
* Custom filter function for whether each command menu item should matches the given search query.
|
||||
* It should return a number between 0 and 1, with 1 being the best match and 0 being hidden entirely.
|
||||
* By default, uses the `command-score` library.
|
||||
*/
|
||||
filter?: CommandFilter;
|
||||
/**
|
||||
* Optional default item value when it is initially rendered.
|
||||
*/
|
||||
defaultValue?: string;
|
||||
/**
|
||||
* Optional controlled state of the selected command menu item.
|
||||
*/
|
||||
value?: string;
|
||||
/**
|
||||
* Event handler called when the selected item of the menu changes.
|
||||
*/
|
||||
onValueChange?: (value: string) => void;
|
||||
/**
|
||||
* Optionally set to `true` to turn on looping around when using the arrow keys.
|
||||
*/
|
||||
loop?: boolean;
|
||||
/**
|
||||
* Optionally set to `true` to disable selection via pointer events.
|
||||
*/
|
||||
disablePointerSelection?: boolean;
|
||||
/**
|
||||
* Set to `false` to disable ctrl+n/j/p/k shortcuts. Defaults to `true`.
|
||||
*/
|
||||
vimBindings?: boolean;
|
||||
} & {
|
||||
/** Provide a className to the Dialog overlay. */
|
||||
overlayClassName?: string;
|
||||
/** Provide a className to the Dialog content. */
|
||||
contentClassName?: string;
|
||||
/** Provide a custom element the Dialog should portal into. */
|
||||
container?: HTMLElement;
|
||||
} & React.RefAttributes<HTMLDivElement>>;
|
||||
Empty: React.ForwardRefExoticComponent<Children & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
||||
ref?: React.Ref<HTMLDivElement>;
|
||||
} & {
|
||||
asChild?: boolean;
|
||||
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & React.RefAttributes<HTMLDivElement>>;
|
||||
Loading: React.ForwardRefExoticComponent<Children & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
||||
ref?: React.Ref<HTMLDivElement>;
|
||||
} & {
|
||||
asChild?: boolean;
|
||||
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
||||
/** Estimated progress of loading asynchronous options. */
|
||||
progress?: number;
|
||||
/**
|
||||
* Accessible label for this loading progressbar. Not shown visibly.
|
||||
*/
|
||||
label?: string;
|
||||
} & React.RefAttributes<HTMLDivElement>>;
|
||||
};
|
||||
|
||||
/** Run a selector against the store state. */
|
||||
declare function useCmdk<T = any>(selector: (state: State) => T): T;
|
||||
|
||||
export { pkg as Command, Dialog as CommandDialog, Empty as CommandEmpty, Group as CommandGroup, Input as CommandInput, Item as CommandItem, List as CommandList, Loading as CommandLoading, Command as CommandRoot, Separator as CommandSeparator, defaultFilter, useCmdk as useCommandState };
|
||||
412
frontend/node_modules/cmdk/dist/index.d.ts
generated
vendored
Normal file
412
frontend/node_modules/cmdk/dist/index.d.ts
generated
vendored
Normal file
@ -0,0 +1,412 @@
|
||||
import * as RadixDialog from '@radix-ui/react-dialog';
|
||||
import * as React from 'react';
|
||||
|
||||
declare type Children = {
|
||||
children?: React.ReactNode;
|
||||
};
|
||||
declare type CommandFilter = (value: string, search: string, keywords?: string[]) => number;
|
||||
declare type State = {
|
||||
search: string;
|
||||
value: string;
|
||||
selectedItemId?: string;
|
||||
filtered: {
|
||||
count: number;
|
||||
items: Map<string, number>;
|
||||
groups: Set<string>;
|
||||
};
|
||||
};
|
||||
declare const defaultFilter: CommandFilter;
|
||||
declare const Command: React.ForwardRefExoticComponent<Children & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
||||
ref?: React.Ref<HTMLDivElement>;
|
||||
} & {
|
||||
asChild?: boolean;
|
||||
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
||||
/**
|
||||
* Accessible label for this command menu. Not shown visibly.
|
||||
*/
|
||||
label?: string;
|
||||
/**
|
||||
* Optionally set to `false` to turn off the automatic filtering and sorting.
|
||||
* If `false`, you must conditionally render valid items based on the search query yourself.
|
||||
*/
|
||||
shouldFilter?: boolean;
|
||||
/**
|
||||
* Custom filter function for whether each command menu item should matches the given search query.
|
||||
* It should return a number between 0 and 1, with 1 being the best match and 0 being hidden entirely.
|
||||
* By default, uses the `command-score` library.
|
||||
*/
|
||||
filter?: CommandFilter;
|
||||
/**
|
||||
* Optional default item value when it is initially rendered.
|
||||
*/
|
||||
defaultValue?: string;
|
||||
/**
|
||||
* Optional controlled state of the selected command menu item.
|
||||
*/
|
||||
value?: string;
|
||||
/**
|
||||
* Event handler called when the selected item of the menu changes.
|
||||
*/
|
||||
onValueChange?: (value: string) => void;
|
||||
/**
|
||||
* Optionally set to `true` to turn on looping around when using the arrow keys.
|
||||
*/
|
||||
loop?: boolean;
|
||||
/**
|
||||
* Optionally set to `true` to disable selection via pointer events.
|
||||
*/
|
||||
disablePointerSelection?: boolean;
|
||||
/**
|
||||
* Set to `false` to disable ctrl+n/j/p/k shortcuts. Defaults to `true`.
|
||||
*/
|
||||
vimBindings?: boolean;
|
||||
} & React.RefAttributes<HTMLDivElement>>;
|
||||
/**
|
||||
* Command menu item. Becomes active on pointer enter or through keyboard navigation.
|
||||
* Preferably pass a `value`, otherwise the value will be inferred from `children` or
|
||||
* the rendered item's `textContent`.
|
||||
*/
|
||||
declare const Item: React.ForwardRefExoticComponent<Children & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
||||
ref?: React.Ref<HTMLDivElement>;
|
||||
} & {
|
||||
asChild?: boolean;
|
||||
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "disabled" | "value"> & {
|
||||
/** Whether this item is currently disabled. */
|
||||
disabled?: boolean;
|
||||
/** Event handler for when this item is selected, either via click or keyboard selection. */
|
||||
onSelect?: (value: string) => void;
|
||||
/**
|
||||
* A unique value for this item.
|
||||
* If no value is provided, it will be inferred from `children` or the rendered `textContent`. If your `textContent` changes between renders, you _must_ provide a stable, unique `value`.
|
||||
*/
|
||||
value?: string;
|
||||
/** Optional keywords to match against when filtering. */
|
||||
keywords?: string[];
|
||||
/** Whether this item is forcibly rendered regardless of filtering. */
|
||||
forceMount?: boolean;
|
||||
} & React.RefAttributes<HTMLDivElement>>;
|
||||
declare type Group = {
|
||||
id: string;
|
||||
forceMount?: boolean;
|
||||
};
|
||||
/**
|
||||
* Group command menu items together with a heading.
|
||||
* Grouped items are always shown together.
|
||||
*/
|
||||
declare const Group: React.ForwardRefExoticComponent<Children & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
||||
ref?: React.Ref<HTMLDivElement>;
|
||||
} & {
|
||||
asChild?: boolean;
|
||||
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "heading" | "value"> & {
|
||||
/** Optional heading to render for this group. */
|
||||
heading?: React.ReactNode;
|
||||
/** If no heading is provided, you must provide a value that is unique for this group. */
|
||||
value?: string;
|
||||
/** Whether this group is forcibly rendered regardless of filtering. */
|
||||
forceMount?: boolean;
|
||||
} & React.RefAttributes<HTMLDivElement>>;
|
||||
/**
|
||||
* A visual and semantic separator between items or groups.
|
||||
* Visible when the search query is empty or `alwaysRender` is true, hidden otherwise.
|
||||
*/
|
||||
declare const Separator: React.ForwardRefExoticComponent<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
||||
ref?: React.Ref<HTMLDivElement>;
|
||||
} & {
|
||||
asChild?: boolean;
|
||||
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
||||
/** Whether this separator should always be rendered. Useful if you disable automatic filtering. */
|
||||
alwaysRender?: boolean;
|
||||
} & React.RefAttributes<HTMLDivElement>>;
|
||||
/**
|
||||
* Command menu input.
|
||||
* All props are forwarded to the underyling `input` element.
|
||||
*/
|
||||
declare const Input: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
|
||||
ref?: React.Ref<HTMLInputElement>;
|
||||
} & {
|
||||
asChild?: boolean;
|
||||
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "value" | "type"> & {
|
||||
/**
|
||||
* Optional controlled state for the value of the search input.
|
||||
*/
|
||||
value?: string;
|
||||
/**
|
||||
* Event handler called when the search value changes.
|
||||
*/
|
||||
onValueChange?: (search: string) => void;
|
||||
} & React.RefAttributes<HTMLInputElement>>;
|
||||
/**
|
||||
* Contains `Item`, `Group`, and `Separator`.
|
||||
* Use the `--cmdk-list-height` CSS variable to animate height based on the number of results.
|
||||
*/
|
||||
declare const List: React.ForwardRefExoticComponent<Children & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
||||
ref?: React.Ref<HTMLDivElement>;
|
||||
} & {
|
||||
asChild?: boolean;
|
||||
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
||||
/**
|
||||
* Accessible label for this List of suggestions. Not shown visibly.
|
||||
*/
|
||||
label?: string;
|
||||
} & React.RefAttributes<HTMLDivElement>>;
|
||||
/**
|
||||
* Renders the command menu in a Radix Dialog.
|
||||
*/
|
||||
declare const Dialog: React.ForwardRefExoticComponent<RadixDialog.DialogProps & Children & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
||||
ref?: React.Ref<HTMLDivElement>;
|
||||
} & {
|
||||
asChild?: boolean;
|
||||
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
||||
/**
|
||||
* Accessible label for this command menu. Not shown visibly.
|
||||
*/
|
||||
label?: string;
|
||||
/**
|
||||
* Optionally set to `false` to turn off the automatic filtering and sorting.
|
||||
* If `false`, you must conditionally render valid items based on the search query yourself.
|
||||
*/
|
||||
shouldFilter?: boolean;
|
||||
/**
|
||||
* Custom filter function for whether each command menu item should matches the given search query.
|
||||
* It should return a number between 0 and 1, with 1 being the best match and 0 being hidden entirely.
|
||||
* By default, uses the `command-score` library.
|
||||
*/
|
||||
filter?: CommandFilter;
|
||||
/**
|
||||
* Optional default item value when it is initially rendered.
|
||||
*/
|
||||
defaultValue?: string;
|
||||
/**
|
||||
* Optional controlled state of the selected command menu item.
|
||||
*/
|
||||
value?: string;
|
||||
/**
|
||||
* Event handler called when the selected item of the menu changes.
|
||||
*/
|
||||
onValueChange?: (value: string) => void;
|
||||
/**
|
||||
* Optionally set to `true` to turn on looping around when using the arrow keys.
|
||||
*/
|
||||
loop?: boolean;
|
||||
/**
|
||||
* Optionally set to `true` to disable selection via pointer events.
|
||||
*/
|
||||
disablePointerSelection?: boolean;
|
||||
/**
|
||||
* Set to `false` to disable ctrl+n/j/p/k shortcuts. Defaults to `true`.
|
||||
*/
|
||||
vimBindings?: boolean;
|
||||
} & {
|
||||
/** Provide a className to the Dialog overlay. */
|
||||
overlayClassName?: string;
|
||||
/** Provide a className to the Dialog content. */
|
||||
contentClassName?: string;
|
||||
/** Provide a custom element the Dialog should portal into. */
|
||||
container?: HTMLElement;
|
||||
} & React.RefAttributes<HTMLDivElement>>;
|
||||
/**
|
||||
* Automatically renders when there are no results for the search query.
|
||||
*/
|
||||
declare const Empty: React.ForwardRefExoticComponent<Children & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
||||
ref?: React.Ref<HTMLDivElement>;
|
||||
} & {
|
||||
asChild?: boolean;
|
||||
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & React.RefAttributes<HTMLDivElement>>;
|
||||
/**
|
||||
* You should conditionally render this with `progress` while loading asynchronous items.
|
||||
*/
|
||||
declare const Loading: React.ForwardRefExoticComponent<Children & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
||||
ref?: React.Ref<HTMLDivElement>;
|
||||
} & {
|
||||
asChild?: boolean;
|
||||
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
||||
/** Estimated progress of loading asynchronous options. */
|
||||
progress?: number;
|
||||
/**
|
||||
* Accessible label for this loading progressbar. Not shown visibly.
|
||||
*/
|
||||
label?: string;
|
||||
} & React.RefAttributes<HTMLDivElement>>;
|
||||
declare const pkg: React.ForwardRefExoticComponent<Children & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
||||
ref?: React.Ref<HTMLDivElement>;
|
||||
} & {
|
||||
asChild?: boolean;
|
||||
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
||||
/**
|
||||
* Accessible label for this command menu. Not shown visibly.
|
||||
*/
|
||||
label?: string;
|
||||
/**
|
||||
* Optionally set to `false` to turn off the automatic filtering and sorting.
|
||||
* If `false`, you must conditionally render valid items based on the search query yourself.
|
||||
*/
|
||||
shouldFilter?: boolean;
|
||||
/**
|
||||
* Custom filter function for whether each command menu item should matches the given search query.
|
||||
* It should return a number between 0 and 1, with 1 being the best match and 0 being hidden entirely.
|
||||
* By default, uses the `command-score` library.
|
||||
*/
|
||||
filter?: CommandFilter;
|
||||
/**
|
||||
* Optional default item value when it is initially rendered.
|
||||
*/
|
||||
defaultValue?: string;
|
||||
/**
|
||||
* Optional controlled state of the selected command menu item.
|
||||
*/
|
||||
value?: string;
|
||||
/**
|
||||
* Event handler called when the selected item of the menu changes.
|
||||
*/
|
||||
onValueChange?: (value: string) => void;
|
||||
/**
|
||||
* Optionally set to `true` to turn on looping around when using the arrow keys.
|
||||
*/
|
||||
loop?: boolean;
|
||||
/**
|
||||
* Optionally set to `true` to disable selection via pointer events.
|
||||
*/
|
||||
disablePointerSelection?: boolean;
|
||||
/**
|
||||
* Set to `false` to disable ctrl+n/j/p/k shortcuts. Defaults to `true`.
|
||||
*/
|
||||
vimBindings?: boolean;
|
||||
} & React.RefAttributes<HTMLDivElement>> & {
|
||||
List: React.ForwardRefExoticComponent<Children & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
||||
ref?: React.Ref<HTMLDivElement>;
|
||||
} & {
|
||||
asChild?: boolean;
|
||||
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
||||
/**
|
||||
* Accessible label for this List of suggestions. Not shown visibly.
|
||||
*/
|
||||
label?: string;
|
||||
} & React.RefAttributes<HTMLDivElement>>;
|
||||
Item: React.ForwardRefExoticComponent<Children & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
||||
ref?: React.Ref<HTMLDivElement>;
|
||||
} & {
|
||||
asChild?: boolean;
|
||||
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "disabled" | "value"> & {
|
||||
/** Whether this item is currently disabled. */
|
||||
disabled?: boolean;
|
||||
/** Event handler for when this item is selected, either via click or keyboard selection. */
|
||||
onSelect?: (value: string) => void;
|
||||
/**
|
||||
* A unique value for this item.
|
||||
* If no value is provided, it will be inferred from `children` or the rendered `textContent`. If your `textContent` changes between renders, you _must_ provide a stable, unique `value`.
|
||||
*/
|
||||
value?: string;
|
||||
/** Optional keywords to match against when filtering. */
|
||||
keywords?: string[];
|
||||
/** Whether this item is forcibly rendered regardless of filtering. */
|
||||
forceMount?: boolean;
|
||||
} & React.RefAttributes<HTMLDivElement>>;
|
||||
Input: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
|
||||
ref?: React.Ref<HTMLInputElement>;
|
||||
} & {
|
||||
asChild?: boolean;
|
||||
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "value" | "type"> & {
|
||||
/**
|
||||
* Optional controlled state for the value of the search input.
|
||||
*/
|
||||
value?: string;
|
||||
/**
|
||||
* Event handler called when the search value changes.
|
||||
*/
|
||||
onValueChange?: (search: string) => void;
|
||||
} & React.RefAttributes<HTMLInputElement>>;
|
||||
Group: React.ForwardRefExoticComponent<Children & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
||||
ref?: React.Ref<HTMLDivElement>;
|
||||
} & {
|
||||
asChild?: boolean;
|
||||
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "heading" | "value"> & {
|
||||
/** Optional heading to render for this group. */
|
||||
heading?: React.ReactNode;
|
||||
/** If no heading is provided, you must provide a value that is unique for this group. */
|
||||
value?: string;
|
||||
/** Whether this group is forcibly rendered regardless of filtering. */
|
||||
forceMount?: boolean;
|
||||
} & React.RefAttributes<HTMLDivElement>>;
|
||||
Separator: React.ForwardRefExoticComponent<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
||||
ref?: React.Ref<HTMLDivElement>;
|
||||
} & {
|
||||
asChild?: boolean;
|
||||
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
||||
/** Whether this separator should always be rendered. Useful if you disable automatic filtering. */
|
||||
alwaysRender?: boolean;
|
||||
} & React.RefAttributes<HTMLDivElement>>;
|
||||
Dialog: React.ForwardRefExoticComponent<RadixDialog.DialogProps & Children & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
||||
ref?: React.Ref<HTMLDivElement>;
|
||||
} & {
|
||||
asChild?: boolean;
|
||||
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
||||
/**
|
||||
* Accessible label for this command menu. Not shown visibly.
|
||||
*/
|
||||
label?: string;
|
||||
/**
|
||||
* Optionally set to `false` to turn off the automatic filtering and sorting.
|
||||
* If `false`, you must conditionally render valid items based on the search query yourself.
|
||||
*/
|
||||
shouldFilter?: boolean;
|
||||
/**
|
||||
* Custom filter function for whether each command menu item should matches the given search query.
|
||||
* It should return a number between 0 and 1, with 1 being the best match and 0 being hidden entirely.
|
||||
* By default, uses the `command-score` library.
|
||||
*/
|
||||
filter?: CommandFilter;
|
||||
/**
|
||||
* Optional default item value when it is initially rendered.
|
||||
*/
|
||||
defaultValue?: string;
|
||||
/**
|
||||
* Optional controlled state of the selected command menu item.
|
||||
*/
|
||||
value?: string;
|
||||
/**
|
||||
* Event handler called when the selected item of the menu changes.
|
||||
*/
|
||||
onValueChange?: (value: string) => void;
|
||||
/**
|
||||
* Optionally set to `true` to turn on looping around when using the arrow keys.
|
||||
*/
|
||||
loop?: boolean;
|
||||
/**
|
||||
* Optionally set to `true` to disable selection via pointer events.
|
||||
*/
|
||||
disablePointerSelection?: boolean;
|
||||
/**
|
||||
* Set to `false` to disable ctrl+n/j/p/k shortcuts. Defaults to `true`.
|
||||
*/
|
||||
vimBindings?: boolean;
|
||||
} & {
|
||||
/** Provide a className to the Dialog overlay. */
|
||||
overlayClassName?: string;
|
||||
/** Provide a className to the Dialog content. */
|
||||
contentClassName?: string;
|
||||
/** Provide a custom element the Dialog should portal into. */
|
||||
container?: HTMLElement;
|
||||
} & React.RefAttributes<HTMLDivElement>>;
|
||||
Empty: React.ForwardRefExoticComponent<Children & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
||||
ref?: React.Ref<HTMLDivElement>;
|
||||
} & {
|
||||
asChild?: boolean;
|
||||
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & React.RefAttributes<HTMLDivElement>>;
|
||||
Loading: React.ForwardRefExoticComponent<Children & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
||||
ref?: React.Ref<HTMLDivElement>;
|
||||
} & {
|
||||
asChild?: boolean;
|
||||
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
||||
/** Estimated progress of loading asynchronous options. */
|
||||
progress?: number;
|
||||
/**
|
||||
* Accessible label for this loading progressbar. Not shown visibly.
|
||||
*/
|
||||
label?: string;
|
||||
} & React.RefAttributes<HTMLDivElement>>;
|
||||
};
|
||||
|
||||
/** Run a selector against the store state. */
|
||||
declare function useCmdk<T = any>(selector: (state: State) => T): T;
|
||||
|
||||
export { pkg as Command, Dialog as CommandDialog, Empty as CommandEmpty, Group as CommandGroup, Input as CommandInput, Item as CommandItem, List as CommandList, Loading as CommandLoading, Command as CommandRoot, Separator as CommandSeparator, defaultFilter, useCmdk as useCommandState };
|
||||
1
frontend/node_modules/cmdk/dist/index.js
generated
vendored
Normal file
1
frontend/node_modules/cmdk/dist/index.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
frontend/node_modules/cmdk/dist/index.mjs
generated
vendored
Normal file
1
frontend/node_modules/cmdk/dist/index.mjs
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
49
frontend/node_modules/cmdk/package.json
generated
vendored
Normal file
49
frontend/node_modules/cmdk/package.json
generated
vendored
Normal file
@ -0,0 +1,49 @@
|
||||
{
|
||||
"name": "cmdk",
|
||||
"version": "1.1.1",
|
||||
"license": "MIT",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.mjs",
|
||||
"types": "./dist/index.d.ts",
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"import": "./dist/index.mjs",
|
||||
"require": "./dist/index.js"
|
||||
}
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^18 || ^19 || ^19.0.0-rc",
|
||||
"react-dom": "^18 || ^19 || ^19.0.0-rc"
|
||||
},
|
||||
"dependencies": {
|
||||
"@radix-ui/react-compose-refs": "^1.1.1",
|
||||
"@radix-ui/react-dialog": "^1.1.6",
|
||||
"@radix-ui/react-id": "^1.1.0",
|
||||
"@radix-ui/react-primitive": "^2.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/react": "18.0.15"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/pacocoursey/cmdk.git",
|
||||
"directory": "cmdk"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/pacocoursey/cmdk/issues"
|
||||
},
|
||||
"homepage": "https://github.com/pacocoursey/cmdk#readme",
|
||||
"author": {
|
||||
"name": "Paco",
|
||||
"url": "https://github.com/pacocoursey"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsup src",
|
||||
"dev": "tsup src --watch"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user