@agentero/design-system 0.24.3 → 0.24.5
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/mcp/manifests/components.html +1714 -1001
- package/mcp/manifests/components.json +6985 -1
- package/mcp/server.mjs +3921 -2320
- package/package.json +1 -1
- package/src/accordion/accordion.d.ts +35 -23
- package/src/accordion/accordion.js +1 -8
- package/src/accordion/index.d.ts +18 -1
- package/src/accordion/index.js +10 -2
- package/src/avatar-group/avatar-group.d.ts +2 -0
- package/src/avatar-group/avatar-group.js +0 -1
- package/src/button/button.js +0 -1
- package/src/check-list/check-list.d.ts +15 -14
- package/src/check-list/check-list.js +1 -6
- package/src/check-list/index.d.ts +11 -1
- package/src/check-list/index.js +8 -2
- package/src/command/command.d.ts +117 -43
- package/src/command/command.js +1 -9
- package/src/command/index.d.ts +86 -1
- package/src/command/index.js +12 -2
- package/src/data-table/data-table.d.ts +81 -46
- package/src/data-table/data-table.js +71 -78
- package/src/data-table/index.d.ts +175 -2
- package/src/data-table/index.js +22 -3
- package/src/data-table/table.d.ts +107 -44
- package/src/data-table/table.js +1 -12
- package/src/divider/divider.js +0 -1
- package/src/dropdown-menu/dropdown-menu.d.ts +254 -136
- package/src/dropdown-menu/dropdown-menu.js +1 -14
- package/src/dropdown-menu/index.d.ts +51 -1
- package/src/dropdown-menu/index.js +16 -2
- package/src/hover-card/hover-card.d.ts +40 -26
- package/src/hover-card/hover-card.js +1 -9
- package/src/hover-card/index.d.ts +20 -1
- package/src/hover-card/index.js +11 -2
- package/src/label/label.js +0 -1
- package/src/modal/index.d.ts +38 -1
- package/src/modal/index.js +14 -2
- package/src/modal/modal.d.ts +125 -81
- package/src/modal/modal.js +1 -11
- package/src/popover/index.d.ts +24 -1
- package/src/popover/index.js +12 -2
- package/src/popover/popover.d.ts +30 -30
- package/src/popover/popover.js +1 -10
- package/src/skeleton/skeleton.js +0 -1
- package/src/tag/tag.js +0 -1
- package/src/validation-list/validation-list.d.ts +2 -0
- package/src/validation-list/validation-list.js +0 -1
package/package.json
CHANGED
|
@@ -15,32 +15,44 @@ declare const rootStyles: import('tailwind-variants').TVReturnType<{
|
|
|
15
15
|
};
|
|
16
16
|
}, undefined, undefined, unknown, unknown, undefined>>;
|
|
17
17
|
export type AccordionRootProps = ComponentProps<typeof AccordionPrimitive.Root> & VariantProps<typeof rootStyles>;
|
|
18
|
-
export type AccordionItemProps = ComponentProps<typeof AccordionPrimitive.Item>;
|
|
19
|
-
export type AccordionTriggerProps = ComponentProps<typeof AccordionPrimitive.Trigger>;
|
|
20
|
-
export type AccordionContentProps = ComponentProps<typeof AccordionPrimitive.Content>;
|
|
21
18
|
/**
|
|
22
|
-
* Stacked, collapsible sections built on Radix UI's Accordion
|
|
23
|
-
* ARIA come for free
|
|
24
|
-
* `Content`. `type="single"` (optionally `collapsible`) opens one at a time;
|
|
19
|
+
* Stacked, collapsible sections built on Radix UI's Accordion, so keyboard nav
|
|
20
|
+
* and ARIA come for free. Compose `Root` with `Item`s, each holding a `Trigger`
|
|
21
|
+
* and `Content`. `type="single"` (optionally `collapsible`) opens one at a time;
|
|
25
22
|
* `type="multiple"` opens sections independently. `enclosed` renders the group
|
|
26
23
|
* as a bordered card.
|
|
24
|
+
*
|
|
25
|
+
* @summary Root of a group of collapsible sections
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```tsx
|
|
29
|
+
* import { Accordion } from '@agentero/design-system/accordion';
|
|
30
|
+
*
|
|
31
|
+
* <Accordion.Root type="single" collapsible>
|
|
32
|
+
* <Accordion.Item value="coverages">
|
|
33
|
+
* <Accordion.Trigger>Coverages</Accordion.Trigger>
|
|
34
|
+
* <Accordion.Content>…</Accordion.Content>
|
|
35
|
+
* </Accordion.Item>
|
|
36
|
+
* </Accordion.Root>
|
|
37
|
+
* ```
|
|
27
38
|
*/
|
|
28
|
-
export declare const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
};
|
|
39
|
+
export declare const Root: {
|
|
40
|
+
({ className, enclosed, ...props }: AccordionRootProps): import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
displayName: string;
|
|
42
|
+
};
|
|
43
|
+
export type AccordionItemProps = ComponentProps<typeof AccordionPrimitive.Item>;
|
|
44
|
+
export declare const Item: {
|
|
45
|
+
({ className, ...props }: AccordionItemProps): import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
displayName: string;
|
|
47
|
+
};
|
|
48
|
+
export type AccordionTriggerProps = ComponentProps<typeof AccordionPrimitive.Trigger>;
|
|
49
|
+
export declare const Trigger: {
|
|
50
|
+
({ className, children, asChild, ...props }: AccordionTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
displayName: string;
|
|
52
|
+
};
|
|
53
|
+
export type AccordionContentProps = ComponentProps<typeof AccordionPrimitive.Content>;
|
|
54
|
+
export declare const Content: {
|
|
55
|
+
({ className, children, ...props }: AccordionContentProps): import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
displayName: string;
|
|
45
57
|
};
|
|
46
58
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
import { cn as e } from "../../lib/utils.js";
|
|
3
2
|
import { IconKeyboardArrowDown as t } from "./icons.js";
|
|
4
3
|
import * as n from "@radix-ui/react-accordion";
|
|
@@ -44,11 +43,5 @@ var f = ({ className: t, children: r, ...i }) => /* @__PURE__ */ a(n.Content, {
|
|
|
44
43
|
})
|
|
45
44
|
});
|
|
46
45
|
f.displayName = "Accordion.Content";
|
|
47
|
-
var p = {
|
|
48
|
-
Root: c,
|
|
49
|
-
Item: l,
|
|
50
|
-
Trigger: d,
|
|
51
|
-
Content: f
|
|
52
|
-
};
|
|
53
46
|
//#endregion
|
|
54
|
-
export {
|
|
47
|
+
export { f as Content, l as Item, c as Root, d as Trigger };
|
package/src/accordion/index.d.ts
CHANGED
|
@@ -1,2 +1,19 @@
|
|
|
1
|
-
export { Accordion } from './accordion';
|
|
2
1
|
export type { AccordionRootProps, AccordionItemProps, AccordionTriggerProps, AccordionContentProps } from './accordion';
|
|
2
|
+
export declare const Accordion: {
|
|
3
|
+
Root: {
|
|
4
|
+
({ className, enclosed, ...props }: import('./accordion').AccordionRootProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
Item: {
|
|
8
|
+
({ className, ...props }: import('./accordion').AccordionItemProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
Trigger: {
|
|
12
|
+
({ className, children, asChild, ...props }: import('./accordion').AccordionTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
Content: {
|
|
16
|
+
({ className, children, ...props }: import('./accordion').AccordionContentProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
package/src/accordion/index.js
CHANGED
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Content as e, Item as t, Root as n, Trigger as r } from "./accordion.js";
|
|
2
|
+
//#region src/accordion/index.ts
|
|
3
|
+
var i = {
|
|
4
|
+
Root: n,
|
|
5
|
+
Item: t,
|
|
6
|
+
Trigger: r,
|
|
7
|
+
Content: e
|
|
8
|
+
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { i as Accordion };
|
|
@@ -106,6 +106,8 @@ export type AvatarGroupProps = Omit<ComponentPropsWithRef<'div'>, 'children'> &
|
|
|
106
106
|
* directly — the group clones each to force a uniform `size`/`variant` and the
|
|
107
107
|
* overlap, so wrapped children won't pick those up.
|
|
108
108
|
*
|
|
109
|
+
* @summary Overlapping row of avatars, collapsing the rest into `+N`
|
|
110
|
+
*
|
|
109
111
|
* @example
|
|
110
112
|
* <AvatarGroup size="sm" max={3}>
|
|
111
113
|
* <Avatar fallback="AL" colorize="Ada Lovelace" />
|
package/src/button/button.js
CHANGED
|
@@ -37,29 +37,30 @@ export declare const checkListRecipe: import('tailwind-variants').TVReturnType<{
|
|
|
37
37
|
icon: string;
|
|
38
38
|
}, undefined, unknown, unknown, undefined>>;
|
|
39
39
|
type RootProps = ComponentProps<'ul'>;
|
|
40
|
-
type ItemProps = ComponentProps<'li'>;
|
|
41
40
|
/**
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
41
|
+
* Container of a vertical list where every row is marked with a check icon —
|
|
42
|
+
* feature lists, benefits, availability summaries. Purely presentational: for
|
|
43
|
+
* interactive selection use a checkbox group instead.
|
|
45
44
|
*
|
|
46
|
-
* @summary
|
|
45
|
+
* @summary List container for check-marked items
|
|
47
46
|
*
|
|
48
47
|
* @example
|
|
49
48
|
* ```tsx
|
|
49
|
+
* import { CheckList } from '@agentero/design-system/check-list';
|
|
50
|
+
*
|
|
50
51
|
* <CheckList.Root>
|
|
51
52
|
* <CheckList.Item>Instant appointment</CheckList.Item>
|
|
52
53
|
* </CheckList.Root>
|
|
53
54
|
* ```
|
|
54
55
|
*/
|
|
55
|
-
export declare const
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
56
|
+
export declare const Root: {
|
|
57
|
+
({ className, ...props }: RootProps): import("react/jsx-runtime").JSX.Element;
|
|
58
|
+
displayName: string;
|
|
59
|
+
};
|
|
60
|
+
type ItemProps = ComponentProps<'li'>;
|
|
61
|
+
/** @summary List row with a leading check icon */
|
|
62
|
+
export declare const Item: {
|
|
63
|
+
({ className, children, ...props }: ItemProps): import("react/jsx-runtime").JSX.Element;
|
|
64
|
+
displayName: string;
|
|
64
65
|
};
|
|
65
66
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
import { IconCheck as e } from "./icons.js";
|
|
3
2
|
import { tv as t } from "tailwind-variants";
|
|
4
3
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
@@ -23,9 +22,5 @@ var s = ({ className: t, children: i, ...o }) => /* @__PURE__ */ r("li", {
|
|
|
23
22
|
}), i]
|
|
24
23
|
});
|
|
25
24
|
s.displayName = "CheckList.Item";
|
|
26
|
-
var c = {
|
|
27
|
-
Root: o,
|
|
28
|
-
Item: s
|
|
29
|
-
};
|
|
30
25
|
//#endregion
|
|
31
|
-
export {
|
|
26
|
+
export { s as Item, o as Root, i as checkListRecipe };
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { checkListRecipe } from './check-list';
|
|
2
|
+
export declare const CheckList: {
|
|
3
|
+
Root: {
|
|
4
|
+
({ className, ...props }: import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLUListElement>, HTMLUListElement>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
Item: {
|
|
8
|
+
({ className, children, ...props }: import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
package/src/check-list/index.js
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Item as e, Root as t, checkListRecipe as n } from "./check-list.js";
|
|
2
|
+
//#region src/check-list/index.ts
|
|
3
|
+
var r = {
|
|
4
|
+
Root: t,
|
|
5
|
+
Item: e
|
|
6
|
+
};
|
|
7
|
+
//#endregion
|
|
8
|
+
export { r as CheckList, n as checkListRecipe };
|
package/src/command/command.d.ts
CHANGED
|
@@ -73,6 +73,49 @@ export declare const commandRecipe: import('tailwind-variants').TVReturnType<{
|
|
|
73
73
|
* @property {string} [className] - Additional CSS classes to apply.
|
|
74
74
|
*/
|
|
75
75
|
type RootProps = ComponentProps<typeof CommandPrimitive>;
|
|
76
|
+
/**
|
|
77
|
+
* Surface of a filterable list built on `cmdk`: type to narrow the options,
|
|
78
|
+
* navigate with the arrow keys, select with Enter. Compose `Root` with `Input` /
|
|
79
|
+
* `List` / `Empty` / `Item`, plus `Group` when the options need sections.
|
|
80
|
+
*
|
|
81
|
+
* `Root` owns the search state, the filtering and the keyboard navigation, and
|
|
82
|
+
* carries the panel chrome (border, radius, shadow), so it can be dropped
|
|
83
|
+
* straight into a `Popover.Content` without extra wrapping to yield a combobox.
|
|
84
|
+
* Reach for `DropdownMenu` instead when the options are actions and there is
|
|
85
|
+
* nothing to search.
|
|
86
|
+
*
|
|
87
|
+
* `label` names the search input — it is the only prop that can, see `Input`.
|
|
88
|
+
*
|
|
89
|
+
* @summary Filterable command palette container
|
|
90
|
+
* @see {@link https://github.com/pacocoursey/cmdk|cmdk}
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* ```tsx
|
|
94
|
+
* import { Command } from '@agentero/design-system/command';
|
|
95
|
+
*
|
|
96
|
+
* <Command.Root label="Search lines of business">
|
|
97
|
+
* <Command.Input placeholder="Search lines of business..." />
|
|
98
|
+
* <Command.List>
|
|
99
|
+
* <Command.Item onSelect={() => select('home')}>Homeowners</Command.Item>
|
|
100
|
+
* <Command.Item onSelect={() => select('auto')}>Auto</Command.Item>
|
|
101
|
+
* </Command.List>
|
|
102
|
+
* <Command.Empty>No options found</Command.Empty>
|
|
103
|
+
* </Command.Root>
|
|
104
|
+
* ```
|
|
105
|
+
*
|
|
106
|
+
* @example
|
|
107
|
+
* ```tsx
|
|
108
|
+
* // Filtering handled upstream (async search): let every item through.
|
|
109
|
+
* <Command.Root label="Search options" shouldFilter={false}>
|
|
110
|
+
* <Command.Input placeholder="Search..." />
|
|
111
|
+
* <Command.List>...</Command.List>
|
|
112
|
+
* </Command.Root>
|
|
113
|
+
* ```
|
|
114
|
+
*/
|
|
115
|
+
export declare const Root: {
|
|
116
|
+
({ className, ...props }: RootProps): import("react/jsx-runtime").JSX.Element;
|
|
117
|
+
displayName: string;
|
|
118
|
+
};
|
|
76
119
|
/**
|
|
77
120
|
* Props for the Command Input component.
|
|
78
121
|
*
|
|
@@ -82,6 +125,28 @@ type RootProps = ComponentProps<typeof CommandPrimitive>;
|
|
|
82
125
|
* @property {string} [className] - Additional CSS classes, applied to the search **row**, not the inner `<input>`.
|
|
83
126
|
*/
|
|
84
127
|
type InputProps = ComponentProps<typeof CommandPrimitive.Input>;
|
|
128
|
+
/**
|
|
129
|
+
* Search row: a leading magnifier plus the text field that drives filtering.
|
|
130
|
+
* `className` lands on the row wrapper rather than the `<input>`, since the row
|
|
131
|
+
* is what reads as the field.
|
|
132
|
+
*
|
|
133
|
+
* Name it through `Root`'s `label`, **not** `aria-label` here: cmdk applies its
|
|
134
|
+
* own `aria-labelledby` after spreading props, so it always wins and an
|
|
135
|
+
* `aria-label` here is silently ignored.
|
|
136
|
+
*
|
|
137
|
+
* @summary Search field that filters the list as you type
|
|
138
|
+
*
|
|
139
|
+
* @example
|
|
140
|
+
* ```tsx
|
|
141
|
+
* <Command.Root label="Search options">
|
|
142
|
+
* <Command.Input placeholder="Search options..." />
|
|
143
|
+
* </Command.Root>
|
|
144
|
+
* ```
|
|
145
|
+
*/
|
|
146
|
+
export declare const Input: {
|
|
147
|
+
({ className, ...props }: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
148
|
+
displayName: string;
|
|
149
|
+
};
|
|
85
150
|
/**
|
|
86
151
|
* Props for the Command List component.
|
|
87
152
|
*
|
|
@@ -89,12 +154,42 @@ type InputProps = ComponentProps<typeof CommandPrimitive.Input>;
|
|
|
89
154
|
* @property {string} [className] - Additional CSS classes to apply.
|
|
90
155
|
*/
|
|
91
156
|
type ListProps = ComponentProps<typeof CommandPrimitive.List>;
|
|
157
|
+
/**
|
|
158
|
+
* Scrollable region holding the items. Height is capped so a long list scrolls
|
|
159
|
+
* instead of growing the surface; to change that cap, pass your own `max-h-*`.
|
|
160
|
+
*
|
|
161
|
+
* @summary Scroll container for command items
|
|
162
|
+
*/
|
|
163
|
+
export declare const List: {
|
|
164
|
+
({ className, ...props }: ListProps): import("react/jsx-runtime").JSX.Element;
|
|
165
|
+
displayName: string;
|
|
166
|
+
};
|
|
92
167
|
/**
|
|
93
168
|
* Props for the Command Empty component.
|
|
94
169
|
*
|
|
95
170
|
* @property {string} [className] - Additional CSS classes to apply.
|
|
96
171
|
*/
|
|
97
172
|
type EmptyProps = ComponentProps<typeof CommandPrimitive.Empty>;
|
|
173
|
+
/**
|
|
174
|
+
* Message rendered only while the search matches nothing; renders nothing at
|
|
175
|
+
* all when there are results, so it can sit in the tree permanently.
|
|
176
|
+
*
|
|
177
|
+
* Place it as a **sibling** of `List`, not inside it: cmdk hardcodes
|
|
178
|
+
* `role="presentation"` here and `role="listbox"` on `List`, and a
|
|
179
|
+
* presentational child fails `aria-required-children`.
|
|
180
|
+
*
|
|
181
|
+
* @summary Empty-state message shown when no item matches
|
|
182
|
+
*
|
|
183
|
+
* @example
|
|
184
|
+
* ```tsx
|
|
185
|
+
* <Command.List>{items}</Command.List>
|
|
186
|
+
* <Command.Empty>No options found</Command.Empty>
|
|
187
|
+
* ```
|
|
188
|
+
*/
|
|
189
|
+
export declare const Empty: {
|
|
190
|
+
({ className, ...props }: EmptyProps): import("react/jsx-runtime").JSX.Element;
|
|
191
|
+
displayName: string;
|
|
192
|
+
};
|
|
98
193
|
/**
|
|
99
194
|
* Props for the Command Group component.
|
|
100
195
|
*
|
|
@@ -103,6 +198,18 @@ type EmptyProps = ComponentProps<typeof CommandPrimitive.Empty>;
|
|
|
103
198
|
* @property {string} [className] - Additional CSS classes to apply.
|
|
104
199
|
*/
|
|
105
200
|
type GroupProps = ComponentProps<typeof CommandPrimitive.Group>;
|
|
201
|
+
/**
|
|
202
|
+
* Optional section wrapper around related items. Unstyled by design, so
|
|
203
|
+
* ungrouped lists carry no extra spacing. cmdk renders the heading itself, so
|
|
204
|
+
* style it from here with the descendant variant:
|
|
205
|
+
* `**:[[cmdk-group-heading]]:px-3`.
|
|
206
|
+
*
|
|
207
|
+
* @summary Unstyled grouping wrapper for related items
|
|
208
|
+
*/
|
|
209
|
+
export declare const Group: {
|
|
210
|
+
(props: GroupProps): import("react/jsx-runtime").JSX.Element;
|
|
211
|
+
displayName: string;
|
|
212
|
+
};
|
|
106
213
|
/**
|
|
107
214
|
* Props for the Command Item component.
|
|
108
215
|
*
|
|
@@ -117,54 +224,21 @@ type GroupProps = ComponentProps<typeof CommandPrimitive.Group>;
|
|
|
117
224
|
*/
|
|
118
225
|
type ItemProps = ComponentProps<typeof CommandPrimitive.Item>;
|
|
119
226
|
/**
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
* sections.
|
|
124
|
-
*
|
|
125
|
-
* `Root` carries its own panel chrome, so nesting it in a `Popover.Content`
|
|
126
|
-
* yields a combobox. Reach for `DropdownMenu` instead when the options are
|
|
127
|
-
* actions and there is nothing to search.
|
|
227
|
+
* Selectable row. cmdk keeps exactly one item active — via pointer or arrow
|
|
228
|
+
* keys — and marks it `data-selected="true"`; Enter fires `onSelect` on that
|
|
229
|
+
* row. Use `keywords` to make an item matchable by terms it doesn't display.
|
|
128
230
|
*
|
|
129
|
-
* @summary
|
|
130
|
-
* @see {@link https://github.com/pacocoursey/cmdk|cmdk}
|
|
231
|
+
* @summary Selectable command row with hover and active styling
|
|
131
232
|
*
|
|
132
233
|
* @example
|
|
133
234
|
* ```tsx
|
|
134
|
-
* <Command.
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
* <Command.Item onSelect={() => select('home')}>Homeowners</Command.Item>
|
|
138
|
-
* <Command.Item onSelect={() => select('auto')}>Auto</Command.Item>
|
|
139
|
-
* </Command.List>
|
|
140
|
-
* <Command.Empty>No options found</Command.Empty>
|
|
141
|
-
* </Command.Root>
|
|
235
|
+
* <Command.Item value="ho" keywords={['Homeowners']} onSelect={handleSelect}>
|
|
236
|
+
* Homeowners
|
|
237
|
+
* </Command.Item>
|
|
142
238
|
* ```
|
|
143
239
|
*/
|
|
144
|
-
export declare const
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
displayName: string;
|
|
148
|
-
};
|
|
149
|
-
Input: {
|
|
150
|
-
({ className, ...props }: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
151
|
-
displayName: string;
|
|
152
|
-
};
|
|
153
|
-
List: {
|
|
154
|
-
({ className, ...props }: ListProps): import("react/jsx-runtime").JSX.Element;
|
|
155
|
-
displayName: string;
|
|
156
|
-
};
|
|
157
|
-
Empty: {
|
|
158
|
-
({ className, ...props }: EmptyProps): import("react/jsx-runtime").JSX.Element;
|
|
159
|
-
displayName: string;
|
|
160
|
-
};
|
|
161
|
-
Group: {
|
|
162
|
-
(props: GroupProps): import("react/jsx-runtime").JSX.Element;
|
|
163
|
-
displayName: string;
|
|
164
|
-
};
|
|
165
|
-
Item: {
|
|
166
|
-
({ className, ...props }: ItemProps): import("react/jsx-runtime").JSX.Element;
|
|
167
|
-
displayName: string;
|
|
168
|
-
};
|
|
240
|
+
export declare const Item: {
|
|
241
|
+
({ className, ...props }: ItemProps): import("react/jsx-runtime").JSX.Element;
|
|
242
|
+
displayName: string;
|
|
169
243
|
};
|
|
170
244
|
export {};
|
package/src/command/command.js
CHANGED
|
@@ -59,13 +59,5 @@ var f = ({ className: e, ...t }) => /* @__PURE__ */ n(i.Item, {
|
|
|
59
59
|
...t
|
|
60
60
|
});
|
|
61
61
|
f.displayName = "Command.Item";
|
|
62
|
-
var p = {
|
|
63
|
-
Root: s,
|
|
64
|
-
Input: c,
|
|
65
|
-
List: l,
|
|
66
|
-
Empty: u,
|
|
67
|
-
Group: d,
|
|
68
|
-
Item: f
|
|
69
|
-
};
|
|
70
62
|
//#endregion
|
|
71
|
-
export {
|
|
63
|
+
export { u as Empty, d as Group, c as Input, f as Item, l as List, s as Root, a as commandRecipe };
|
package/src/command/index.d.ts
CHANGED
|
@@ -1 +1,86 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { commandRecipe } from './command';
|
|
2
|
+
export declare const Command: {
|
|
3
|
+
Root: {
|
|
4
|
+
({ className, ...props }: {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
} & Pick<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import('react').HTMLAttributes<HTMLDivElement>> & {
|
|
7
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
8
|
+
} & {
|
|
9
|
+
asChild?: boolean;
|
|
10
|
+
}, "key" | keyof import('react').HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
11
|
+
label?: string;
|
|
12
|
+
shouldFilter?: boolean;
|
|
13
|
+
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
14
|
+
defaultValue?: string;
|
|
15
|
+
value?: string;
|
|
16
|
+
onValueChange?: (value: string) => void;
|
|
17
|
+
loop?: boolean;
|
|
18
|
+
disablePointerSelection?: boolean;
|
|
19
|
+
vimBindings?: boolean;
|
|
20
|
+
} & import('react').RefAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
displayName: string;
|
|
22
|
+
};
|
|
23
|
+
Input: {
|
|
24
|
+
({ className, ...props }: Omit<Pick<Pick<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof import('react').InputHTMLAttributes<HTMLInputElement>> & {
|
|
25
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
26
|
+
} & {
|
|
27
|
+
asChild?: boolean;
|
|
28
|
+
}, "key" | "asChild" | keyof import('react').InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
|
|
29
|
+
value?: string;
|
|
30
|
+
onValueChange?: (search: string) => void;
|
|
31
|
+
} & import('react').RefAttributes<HTMLInputElement>): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
displayName: string;
|
|
33
|
+
};
|
|
34
|
+
List: {
|
|
35
|
+
({ className, ...props }: {
|
|
36
|
+
children?: React.ReactNode;
|
|
37
|
+
} & Pick<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import('react').HTMLAttributes<HTMLDivElement>> & {
|
|
38
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
39
|
+
} & {
|
|
40
|
+
asChild?: boolean;
|
|
41
|
+
}, "key" | keyof import('react').HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
42
|
+
label?: string;
|
|
43
|
+
} & import('react').RefAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
displayName: string;
|
|
45
|
+
};
|
|
46
|
+
Empty: {
|
|
47
|
+
({ className, ...props }: {
|
|
48
|
+
children?: React.ReactNode;
|
|
49
|
+
} & Pick<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import('react').HTMLAttributes<HTMLDivElement>> & {
|
|
50
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
51
|
+
} & {
|
|
52
|
+
asChild?: boolean;
|
|
53
|
+
}, "key" | keyof import('react').HTMLAttributes<HTMLDivElement> | "asChild"> & import('react').RefAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
displayName: string;
|
|
55
|
+
};
|
|
56
|
+
Group: {
|
|
57
|
+
(props: {
|
|
58
|
+
children?: React.ReactNode;
|
|
59
|
+
} & Omit<Pick<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import('react').HTMLAttributes<HTMLDivElement>> & {
|
|
60
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
61
|
+
} & {
|
|
62
|
+
asChild?: boolean;
|
|
63
|
+
}, "key" | keyof import('react').HTMLAttributes<HTMLDivElement> | "asChild">, "heading" | "value"> & {
|
|
64
|
+
heading?: React.ReactNode;
|
|
65
|
+
value?: string;
|
|
66
|
+
forceMount?: boolean;
|
|
67
|
+
} & import('react').RefAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
68
|
+
displayName: string;
|
|
69
|
+
};
|
|
70
|
+
Item: {
|
|
71
|
+
({ className, ...props }: {
|
|
72
|
+
children?: React.ReactNode;
|
|
73
|
+
} & Omit<Pick<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import('react').HTMLAttributes<HTMLDivElement>> & {
|
|
74
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
75
|
+
} & {
|
|
76
|
+
asChild?: boolean;
|
|
77
|
+
}, "key" | keyof import('react').HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "value" | "disabled"> & {
|
|
78
|
+
disabled?: boolean;
|
|
79
|
+
onSelect?: (value: string) => void;
|
|
80
|
+
value?: string;
|
|
81
|
+
keywords?: string[];
|
|
82
|
+
forceMount?: boolean;
|
|
83
|
+
} & import('react').RefAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
84
|
+
displayName: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
package/src/command/index.js
CHANGED
|
@@ -1,2 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Empty as e, Group as t, Input as n, Item as r, List as i, Root as a, commandRecipe as o } from "./command.js";
|
|
2
|
+
//#region src/command/index.ts
|
|
3
|
+
var s = {
|
|
4
|
+
Root: a,
|
|
5
|
+
Input: n,
|
|
6
|
+
List: i,
|
|
7
|
+
Empty: e,
|
|
8
|
+
Group: t,
|
|
9
|
+
Item: r
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { s as Command, o as commandRecipe };
|