@camped-ui/command 1.0.8 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -1 +1,13 @@
1
- # @camped-ui/collapsible
1
+ # command
2
+
3
+ Command component is a fast, composable, and unstyled command menu designed for React. It provides a versatile and efficient way to create command menus in React applications. The component's flexibility allows developers to compose and customize the menu to fit the specific needs of their application. Whether creating context menus, dropdowns, or any scenario requiring a command-based interface, the Command component streamlines the process with speed and simplicity.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ yarn add @camped-ui/command
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ View docs [here](https://ui.camped.academy/docs/components/command).
package/dist/index.d.ts CHANGED
@@ -6,9 +6,11 @@ declare const Command: React.ForwardRefExoticComponent<Omit<{
6
6
  label?: string;
7
7
  shouldFilter?: boolean;
8
8
  filter?: (value: string, search: string) => number;
9
+ defaultValue?: string;
9
10
  value?: string;
10
11
  onValueChange?: (value: string) => void;
11
12
  loop?: boolean;
13
+ vimBindings?: boolean;
12
14
  } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
15
  interface CommandDialogProps extends DialogProps {
14
16
  }
@@ -28,6 +30,7 @@ declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
28
30
  } & Omit<React.HTMLAttributes<HTMLDivElement>, "value" | "heading"> & {
29
31
  heading?: React.ReactNode;
30
32
  value?: string;
33
+ forceMount?: boolean;
31
34
  } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
32
35
  declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement> & {
33
36
  alwaysRender?: boolean;
@@ -38,6 +41,7 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
38
41
  disabled?: boolean;
39
42
  onSelect?: (value: string) => void;
40
43
  value?: string;
44
+ forceMount?: boolean;
41
45
  } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
42
46
  declare const CommandShortcut: {
43
47
  ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAO1D,QAAA,MAAM,OAAO;;;;;;;;;sFAYX,CAAC;AAGH,UAAU,kBAAmB,SAAQ,WAAW;CAAG;AAEnD,QAAA,MAAM,aAAa,2BAA4B,kBAAkB,4CAUhE,CAAC;AAEF,QAAA,MAAM,YAAY;;;0FAehB,CAAC;AAIH,QAAA,MAAM,WAAW;;6HASf,CAAC;AAIH,QAAA,MAAM,YAAY;;6HAShB,CAAC;AAIH,QAAA,MAAM,YAAY;;;;;sFAYhB,CAAC;AAIH,QAAA,MAAM,gBAAgB;;sFASpB,CAAC;AAGH,QAAA,MAAM,WAAW;;;;;;sFAYf,CAAC;AAIH,QAAA,MAAM,eAAe;8BAGlB,MAAM,cAAc,CAAC,eAAe,CAAC;;CAUvC,CAAC;AAGF,OAAO,EACL,OAAO,EACP,aAAa,EACb,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,eAAe,EACf,gBAAgB,GACjB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAO1D,QAAA,MAAM,OAAO;;;;;;;;;;;sFAYX,CAAC;AAGH,UAAU,kBAAmB,SAAQ,WAAW;CAAG;AAEnD,QAAA,MAAM,aAAa,2BAA4B,kBAAkB,4CAUhE,CAAC;AAEF,QAAA,MAAM,YAAY;;;0FAehB,CAAC;AAIH,QAAA,MAAM,WAAW;;6HASf,CAAC;AAIH,QAAA,MAAM,YAAY;;6HAShB,CAAC;AAIH,QAAA,MAAM,YAAY;;;;;;sFAYhB,CAAC;AAIH,QAAA,MAAM,gBAAgB;;sFASpB,CAAC;AAGH,QAAA,MAAM,WAAW;;;;;;;sFAYf,CAAC;AAIH,QAAA,MAAM,eAAe;8BAGlB,MAAM,cAAc,CAAC,eAAe,CAAC;;CAUvC,CAAC;AAGF,OAAO,EACL,OAAO,EACP,aAAa,EACb,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,eAAe,EACf,gBAAgB,GACjB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camped-ui/command",
3
- "version": "1.0.8",
3
+ "version": "2.1.0",
4
4
  "main": "dist/index.js",
5
5
  "scripts": {
6
6
  "publish-package": "npm publish --access public",
@@ -10,7 +10,7 @@
10
10
  "dependencies": {
11
11
  "@radix-ui/react-dialog": "^1.0.2",
12
12
  "cmdk": "^0.2.0",
13
- "@camped-ui/dialog": "1.0.8"
13
+ "@camped-ui/dialog": "2.0.2"
14
14
  },
15
15
  "peerDependencies": {
16
16
  "lucide-react": "*",
@@ -21,6 +21,13 @@
21
21
  "registry": "https://registry.npmjs.org/",
22
22
  "access": "public"
23
23
  },
24
- "author": "IncrescoTech",
25
- "homepage": "https://github.com/incresco#readme"
24
+ "author": "incresco",
25
+ "homepage": "https://ui.camped.academy",
26
+ "keywords": [
27
+ "camped",
28
+ "command",
29
+ "camped-ui",
30
+ "next.js",
31
+ "components"
32
+ ]
26
33
  }