@hex-core/components 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_tsup-dts-rollup.d.ts +3105 -0
- package/dist/accordion.d.ts +4 -13
- package/dist/alert-dialog.d.ts +11 -34
- package/dist/alert.d.ts +4 -17
- package/dist/aspect-ratio.d.ts +1 -7
- package/dist/avatar.d.ts +3 -11
- package/dist/badge.d.ts +3 -22
- package/dist/breadcrumb.d.ts +7 -27
- package/dist/button.d.ts +3 -13
- package/dist/calendar.d.ts +1 -17
- package/dist/card.d.ts +6 -16
- package/dist/checkbox.d.ts +2 -11
- package/dist/citation.d.ts +2 -0
- package/dist/citation.js +70 -0
- package/dist/citation.js.map +1 -0
- package/dist/cluster.d.ts +3 -34
- package/dist/code-block-copy.d.ts +2 -0
- package/dist/code-block-copy.js +108 -0
- package/dist/code-block-copy.js.map +1 -0
- package/dist/code-block.d.ts +3 -0
- package/dist/code-block.js +90 -0
- package/dist/code-block.js.map +1 -0
- package/dist/collapsible.d.ts +3 -11
- package/dist/color-picker.d.ts +2 -44
- package/dist/combobox.d.ts +3 -45
- package/dist/command.d.ts +9 -111
- package/dist/composer.d.ts +2 -0
- package/dist/composer.js +75 -0
- package/dist/composer.js.map +1 -0
- package/dist/container.d.ts +3 -41
- package/dist/context-menu.d.ts +12 -37
- package/dist/data-table.d.ts +2 -33
- package/dist/date-picker.d.ts +2 -43
- package/dist/dialog.d.ts +11 -46
- package/dist/drawer.d.ts +10 -41
- package/dist/dropdown-menu.d.ts +13 -39
- package/dist/dropzone.d.ts +3 -54
- package/dist/file-tree.d.ts +3 -53
- package/dist/form.d.ts +8 -45
- package/dist/grid.d.ts +3 -50
- package/dist/hover-card.d.ts +3 -11
- package/dist/index.d.ts +298 -179
- package/dist/index.js +674 -1
- package/dist/index.js.map +1 -1
- package/dist/input-otp.d.ts +5 -19
- package/dist/input.d.ts +2 -6
- package/dist/label.d.ts +2 -11
- package/dist/loading-indicator.d.ts +3 -0
- package/dist/loading-indicator.js +64 -0
- package/dist/loading-indicator.js.map +1 -0
- package/dist/markdown.d.ts +2 -0
- package/dist/markdown.js +28 -0
- package/dist/markdown.js.map +1 -0
- package/dist/menubar.d.ts +11 -35
- package/dist/message-actions.d.ts +2 -0
- package/dist/message-actions.js +28 -0
- package/dist/message-actions.js.map +1 -0
- package/dist/message-list.d.ts +2 -0
- package/dist/message-list.js +49 -0
- package/dist/message-list.js.map +1 -0
- package/dist/message.d.ts +3 -0
- package/dist/message.js +35 -0
- package/dist/message.js.map +1 -0
- package/dist/multi-combobox.d.ts +3 -51
- package/dist/navigation-menu.d.ts +9 -23
- package/dist/pagination.d.ts +7 -40
- package/dist/popover.d.ts +4 -13
- package/dist/progress.d.ts +1 -10
- package/dist/radio-group.d.ts +2 -9
- package/dist/reasoning.d.ts +2 -0
- package/dist/reasoning.js +90 -0
- package/dist/reasoning.js.map +1 -0
- package/dist/resizable.d.ts +3 -28
- package/dist/schemas.d.ts +72 -121
- package/dist/schemas.js +849 -1
- package/dist/schemas.js.map +1 -1
- package/dist/scroll-area.d.ts +3 -18
- package/dist/select.d.ts +8 -21
- package/dist/separator.d.ts +2 -11
- package/dist/sheet.d.ts +10 -39
- package/dist/sidebar.d.ts +8 -75
- package/dist/skeleton.d.ts +1 -11
- package/dist/slider.d.ts +2 -20
- package/dist/sonner.d.ts +2 -14
- package/dist/spacer.d.ts +3 -38
- package/dist/stack.d.ts +3 -34
- package/dist/stepper.d.ts +4 -48
- package/dist/suggestion.d.ts +2 -0
- package/dist/suggestion.js +55 -0
- package/dist/suggestion.js.map +1 -0
- package/dist/switch.d.ts +2 -11
- package/dist/table.d.ts +8 -24
- package/dist/tabs.d.ts +4 -13
- package/dist/textarea.d.ts +2 -10
- package/dist/time-picker.d.ts +2 -34
- package/dist/timeline.d.ts +4 -42
- package/dist/toggle-group.d.ts +2 -17
- package/dist/toggle.d.ts +2 -19
- package/dist/tool-call.d.ts +2 -0
- package/dist/tool-call.js +133 -0
- package/dist/tool-call.js.map +1 -0
- package/dist/tooltip.d.ts +4 -13
- package/package.json +4 -1
- package/dist/button-variants-Bx6gCUFp.d.ts +0 -19
package/dist/drawer.d.ts
CHANGED
|
@@ -1,41 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
*/
|
|
12
|
-
declare function Drawer({ shouldScaleBackground, ...props }: DrawerRootProps): react_jsx_runtime.JSX.Element;
|
|
13
|
-
declare namespace Drawer {
|
|
14
|
-
var displayName: string;
|
|
15
|
-
}
|
|
16
|
-
/** The element that opens the drawer when clicked. */
|
|
17
|
-
declare const DrawerTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
18
|
-
/** Portals drawer overlay and content into the body. */
|
|
19
|
-
declare const DrawerPortal: typeof vaul.Portal;
|
|
20
|
-
/** Closes the drawer when rendered inside DrawerContent. */
|
|
21
|
-
declare const DrawerClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
22
|
-
/** Dimmed backdrop behind the drawer content. */
|
|
23
|
-
declare const DrawerOverlay: React.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
-
/** The drawer content panel. Slides up from the bottom and can be dragged down to dismiss. */
|
|
25
|
-
declare const DrawerContent: React.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
-
/**
|
|
27
|
-
* Header container inside DrawerContent; stacks title and description.
|
|
28
|
-
* @returns A div with vertical rhythm.
|
|
29
|
-
*/
|
|
30
|
-
declare function DrawerHeader({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
31
|
-
/**
|
|
32
|
-
* Footer container inside DrawerContent; stacks action buttons.
|
|
33
|
-
* @returns A div that stacks buttons vertically with consistent gutters.
|
|
34
|
-
*/
|
|
35
|
-
declare function DrawerFooter({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
36
|
-
/** Accessible drawer title; vaul wires it to aria-labelledby automatically. */
|
|
37
|
-
declare const DrawerTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
38
|
-
/** Accessible drawer description; vaul wires it to aria-describedby automatically. */
|
|
39
|
-
declare const DrawerDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
40
|
-
|
|
41
|
-
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
|
|
1
|
+
export { Drawer_alias_1 as Drawer } from './_tsup-dts-rollup.js';
|
|
2
|
+
export { DrawerPortal_alias_1 as DrawerPortal } from './_tsup-dts-rollup.js';
|
|
3
|
+
export { DrawerOverlay_alias_1 as DrawerOverlay } from './_tsup-dts-rollup.js';
|
|
4
|
+
export { DrawerTrigger_alias_1 as DrawerTrigger } from './_tsup-dts-rollup.js';
|
|
5
|
+
export { DrawerClose_alias_1 as DrawerClose } from './_tsup-dts-rollup.js';
|
|
6
|
+
export { DrawerContent_alias_1 as DrawerContent } from './_tsup-dts-rollup.js';
|
|
7
|
+
export { DrawerHeader_alias_1 as DrawerHeader } from './_tsup-dts-rollup.js';
|
|
8
|
+
export { DrawerFooter_alias_1 as DrawerFooter } from './_tsup-dts-rollup.js';
|
|
9
|
+
export { DrawerTitle_alias_1 as DrawerTitle } from './_tsup-dts-rollup.js';
|
|
10
|
+
export { DrawerDescription_alias_1 as DrawerDescription } from './_tsup-dts-rollup.js';
|
package/dist/dropdown-menu.d.ts
CHANGED
|
@@ -1,39 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
15
|
-
/** Group for checkable radio items (one selected at a time). */
|
|
16
|
-
declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
-
/** The visible dropdown panel. */
|
|
18
|
-
declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
-
/** A clickable menu item. */
|
|
20
|
-
declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
21
|
-
inset?: boolean;
|
|
22
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
-
/** A menu item with a checkbox state. */
|
|
24
|
-
declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
-
/** A menu item in a radio group. */
|
|
26
|
-
declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
-
/** A non-interactive section heading inside the menu. */
|
|
28
|
-
declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
29
|
-
inset?: boolean;
|
|
30
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
31
|
-
/** Horizontal divider between menu items. */
|
|
32
|
-
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
33
|
-
/**
|
|
34
|
-
* Right-aligned shortcut text (e.g. ⌘K) shown next to a menu item.
|
|
35
|
-
* @returns A span with muted, tracked typography
|
|
36
|
-
*/
|
|
37
|
-
declare function DropdownMenuShortcut({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
38
|
-
|
|
39
|
-
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuTrigger };
|
|
1
|
+
export { DropdownMenu_alias_1 as DropdownMenu } from './_tsup-dts-rollup.js';
|
|
2
|
+
export { DropdownMenuTrigger_alias_1 as DropdownMenuTrigger } from './_tsup-dts-rollup.js';
|
|
3
|
+
export { DropdownMenuContent_alias_1 as DropdownMenuContent } from './_tsup-dts-rollup.js';
|
|
4
|
+
export { DropdownMenuItem_alias_1 as DropdownMenuItem } from './_tsup-dts-rollup.js';
|
|
5
|
+
export { DropdownMenuCheckboxItem_alias_1 as DropdownMenuCheckboxItem } from './_tsup-dts-rollup.js';
|
|
6
|
+
export { DropdownMenuRadioItem_alias_1 as DropdownMenuRadioItem } from './_tsup-dts-rollup.js';
|
|
7
|
+
export { DropdownMenuLabel_alias_1 as DropdownMenuLabel } from './_tsup-dts-rollup.js';
|
|
8
|
+
export { DropdownMenuSeparator_alias_1 as DropdownMenuSeparator } from './_tsup-dts-rollup.js';
|
|
9
|
+
export { DropdownMenuShortcut_alias_1 as DropdownMenuShortcut } from './_tsup-dts-rollup.js';
|
|
10
|
+
export { DropdownMenuGroup_alias_1 as DropdownMenuGroup } from './_tsup-dts-rollup.js';
|
|
11
|
+
export { DropdownMenuPortal_alias_1 as DropdownMenuPortal } from './_tsup-dts-rollup.js';
|
|
12
|
+
export { DropdownMenuSub_alias_1 as DropdownMenuSub } from './_tsup-dts-rollup.js';
|
|
13
|
+
export { DropdownMenuRadioGroup_alias_1 as DropdownMenuRadioGroup } from './_tsup-dts-rollup.js';
|
package/dist/dropzone.d.ts
CHANGED
|
@@ -1,54 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
interface DropzoneProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange" | "onDrop" | "children"> {
|
|
5
|
-
/** Fired with the accepted file list every time the user picks or drops files. */
|
|
6
|
-
onFilesSelected?: (files: File[]) => void;
|
|
7
|
-
/**
|
|
8
|
-
* Fired when files are dropped/picked but ALL of them are filtered out by
|
|
9
|
-
* `accept` / `maxSize` / `maxFiles`. Useful for surfacing "file too large"
|
|
10
|
-
* or "wrong type" toasts to the user. Receives the rejected File[].
|
|
11
|
-
*/
|
|
12
|
-
onFilesRejected?: (files: File[]) => void;
|
|
13
|
-
/** `accept` attribute forwarded to the hidden file input (e.g. "image/*", ".csv"). */
|
|
14
|
-
accept?: string;
|
|
15
|
-
/** Allow multiple files. Default true. */
|
|
16
|
-
multiple?: boolean;
|
|
17
|
-
/** Maximum total file count (after dedupe). Excess files are dropped silently — surface in your handler. */
|
|
18
|
-
maxFiles?: number;
|
|
19
|
-
/** Maximum size per file in bytes. Files over the cap are filtered before onFilesSelected fires. */
|
|
20
|
-
maxSize?: number;
|
|
21
|
-
/** Disable interaction. */
|
|
22
|
-
disabled?: boolean;
|
|
23
|
-
/** Optional render override for the dropzone body. Receives drag state. */
|
|
24
|
-
children?: React.ReactNode | ((state: DropzoneRenderState) => React.ReactNode);
|
|
25
|
-
/** Required accessible name for the drop area. */
|
|
26
|
-
"aria-label": string;
|
|
27
|
-
}
|
|
28
|
-
interface DropzoneRenderState {
|
|
29
|
-
isDragOver: boolean;
|
|
30
|
-
isDisabled: boolean;
|
|
31
|
-
openFileDialog: () => void;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Drag-and-drop file input built on the native HTML5 drag-drop API plus a
|
|
35
|
-
* visually-hidden (sr-only) `<input type="file">` for screen-reader and
|
|
36
|
-
* keyboard access.
|
|
37
|
-
*
|
|
38
|
-
* Two interaction surfaces:
|
|
39
|
-
* - The visible drop area is a `role="button"` div with `tabIndex=0` and the
|
|
40
|
-
* required `aria-label`. Click, Enter, or Space proxies through to click the
|
|
41
|
-
* hidden input, opening the system file dialog.
|
|
42
|
-
* - The hidden input itself remains in the accessibility tree (sr-only, NOT
|
|
43
|
-
* `aria-hidden`) so AT-driven file pickers can find it directly.
|
|
44
|
-
*
|
|
45
|
-
* Pass `children` as a node (default placeholder) or a function receiving
|
|
46
|
-
* `{ isDragOver, isDisabled, openFileDialog }` for full layout control.
|
|
47
|
-
* @returns A drop area + hidden file input pair that yields a File[].
|
|
48
|
-
*/
|
|
49
|
-
declare function Dropzone({ onFilesSelected, onFilesRejected, accept, multiple, maxFiles, maxSize, disabled, children, className, "aria-label": ariaLabel, ...rest }: DropzoneProps): react_jsx_runtime.JSX.Element;
|
|
50
|
-
declare namespace Dropzone {
|
|
51
|
-
var displayName: string;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export { Dropzone, type DropzoneProps, type DropzoneRenderState };
|
|
1
|
+
export { Dropzone_alias_1 as Dropzone } from './_tsup-dts-rollup.js';
|
|
2
|
+
export { DropzoneProps_alias_1 as DropzoneProps } from './_tsup-dts-rollup.js';
|
|
3
|
+
export { DropzoneRenderState_alias_1 as DropzoneRenderState } from './_tsup-dts-rollup.js';
|
package/dist/file-tree.d.ts
CHANGED
|
@@ -1,53 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
interface FileTreeNode {
|
|
5
|
-
/** Stable unique id used as React key + ARIA target. */
|
|
6
|
-
id: string;
|
|
7
|
-
/** Display name (file or folder). */
|
|
8
|
-
name: string;
|
|
9
|
-
/** Nested children. Presence (even if empty array) marks the node as a folder. */
|
|
10
|
-
children?: FileTreeNode[];
|
|
11
|
-
/** Optional icon override. Default chooses folder/file based on `children`. */
|
|
12
|
-
icon?: React.ReactNode;
|
|
13
|
-
/** Disable selection + expand toggle. */
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
}
|
|
16
|
-
interface FileTreeProps {
|
|
17
|
-
/** Root nodes. */
|
|
18
|
-
nodes: FileTreeNode[];
|
|
19
|
-
/** Uncontrolled initial expanded ids. */
|
|
20
|
-
defaultExpanded?: string[];
|
|
21
|
-
/** Controlled expanded ids. */
|
|
22
|
-
expanded?: string[];
|
|
23
|
-
/** Fired when expanded set changes (array of ids). */
|
|
24
|
-
onExpandedChange?: (ids: string[]) => void;
|
|
25
|
-
/** Controlled selected node id. */
|
|
26
|
-
selected?: string;
|
|
27
|
-
/** Fired when the user activates a node (click, Enter, or Space). */
|
|
28
|
-
onSelect?: (id: string) => void;
|
|
29
|
-
/** Required accessible name for the tree container. */
|
|
30
|
-
"aria-label": string;
|
|
31
|
-
/** Extra class names on the root tree element. */
|
|
32
|
-
className?: string;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Hierarchical tree view for files, folders, settings sections, or any nested
|
|
36
|
-
* navigation. Built on the WAI-ARIA tree pattern: `role="tree"` root,
|
|
37
|
-
* `role="treeitem"` per node, `role="group"` per child group, with
|
|
38
|
-
* `aria-level` / `aria-expanded` / `aria-selected` reflecting state.
|
|
39
|
-
*
|
|
40
|
-
* Keyboard: Up/Down move between visible items; Right expands a folder or
|
|
41
|
-
* moves to the first child; Left collapses or moves to the parent;
|
|
42
|
-
* Enter/Space activate the focused node; Home/End jump to the first/last.
|
|
43
|
-
*
|
|
44
|
-
* Expanded state is uncontrolled by default (`defaultExpanded`). Pass
|
|
45
|
-
* `expanded` + `onExpandedChange` for controlled mode.
|
|
46
|
-
* @returns A keyboard-accessible nested tree.
|
|
47
|
-
*/
|
|
48
|
-
declare function FileTree({ nodes, defaultExpanded, expanded: expandedProp, onExpandedChange, selected, onSelect, "aria-label": ariaLabel, className, }: FileTreeProps): react_jsx_runtime.JSX.Element;
|
|
49
|
-
declare namespace FileTree {
|
|
50
|
-
var displayName: string;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export { FileTree, type FileTreeNode, type FileTreeProps };
|
|
1
|
+
export { FileTree_alias_1 as FileTree } from './_tsup-dts-rollup.js';
|
|
2
|
+
export { FileTreeNode_alias_1 as FileTreeNode } from './_tsup-dts-rollup.js';
|
|
3
|
+
export { FileTreeProps_alias_1 as FileTreeProps } from './_tsup-dts-rollup.js';
|
package/dist/form.d.ts
CHANGED
|
@@ -1,45 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
10
|
-
/**
|
|
11
|
-
* Binds a field name to a react-hook-form Controller.
|
|
12
|
-
* Provides context so FormItem children can access field state.
|
|
13
|
-
* @param props - Controller props including name, control, render
|
|
14
|
-
* @returns A Controller with FormFieldContext
|
|
15
|
-
*/
|
|
16
|
-
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
|
|
17
|
-
/**
|
|
18
|
-
* Hook that returns the current field's id, name, error, and derived aria ids.
|
|
19
|
-
* Must be called inside a FormField + FormItem subtree.
|
|
20
|
-
* @returns Field state + aria descriptors
|
|
21
|
-
*/
|
|
22
|
-
declare function useFormField(): {
|
|
23
|
-
invalid: boolean;
|
|
24
|
-
isDirty: boolean;
|
|
25
|
-
isTouched: boolean;
|
|
26
|
-
isValidating: boolean;
|
|
27
|
-
error?: react_hook_form.FieldError;
|
|
28
|
-
id: string;
|
|
29
|
-
name: string;
|
|
30
|
-
formItemId: string;
|
|
31
|
-
formDescriptionId: string;
|
|
32
|
-
formMessageId: string;
|
|
33
|
-
};
|
|
34
|
-
/** Wraps a single form field (label + control + description + message). */
|
|
35
|
-
declare const FormItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
36
|
-
/** Accessible label wired to the FormItem's control. Turns red on error. */
|
|
37
|
-
declare const FormLabel: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
|
|
38
|
-
/** Wraps the form control and wires id + aria-describedby + aria-invalid. */
|
|
39
|
-
declare const FormControl: React.ForwardRefExoticComponent<Omit<_radix_ui_react_slot.SlotProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
40
|
-
/** Optional helper text below the control. */
|
|
41
|
-
declare const FormDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
42
|
-
/** Validation error message. Renders the error string when the field is invalid. */
|
|
43
|
-
declare const FormMessage: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
44
|
-
|
|
45
|
-
export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField };
|
|
1
|
+
export { useFormField_alias_1 as useFormField } from './_tsup-dts-rollup.js';
|
|
2
|
+
export { Form_alias_1 as Form } from './_tsup-dts-rollup.js';
|
|
3
|
+
export { FormItem_alias_1 as FormItem } from './_tsup-dts-rollup.js';
|
|
4
|
+
export { FormLabel_alias_1 as FormLabel } from './_tsup-dts-rollup.js';
|
|
5
|
+
export { FormControl_alias_1 as FormControl } from './_tsup-dts-rollup.js';
|
|
6
|
+
export { FormDescription_alias_1 as FormDescription } from './_tsup-dts-rollup.js';
|
|
7
|
+
export { FormMessage_alias_1 as FormMessage } from './_tsup-dts-rollup.js';
|
|
8
|
+
export { FormField_alias_1 as FormField } from './_tsup-dts-rollup.js';
|
package/dist/grid.d.ts
CHANGED
|
@@ -1,50 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* CVA variants for Grid — CSS grid with column-count presets and shared `gap`.
|
|
8
|
-
* `cols` accepts 1/2/3/4/6 fixed columns or `"auto-fit"` for responsive auto-sizing
|
|
9
|
-
* (in which case the consumer should pass `minColWidth` for the min track size).
|
|
10
|
-
*
|
|
11
|
-
* `cols` keys are TypeScript numeric literals (`cols={3}`) at the type level;
|
|
12
|
-
* the schema's `enumValues` serializes them as strings for JSON-shape parity.
|
|
13
|
-
*/
|
|
14
|
-
declare const gridVariants: (props?: ({
|
|
15
|
-
cols?: 1 | 2 | 3 | 4 | 6 | "auto-fit" | null | undefined;
|
|
16
|
-
gap?: "sm" | "lg" | "md" | "xl" | "xs" | null | undefined;
|
|
17
|
-
align?: "center" | "start" | "end" | "stretch" | null | undefined;
|
|
18
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
19
|
-
/** Props for the Grid component. */
|
|
20
|
-
interface GridProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof gridVariants> {
|
|
21
|
-
/**
|
|
22
|
-
* Minimum column width for `cols="auto-fit"`. Tracks repeat to fill the container,
|
|
23
|
-
* never shrinking below this value. Ignored when `cols` is a fixed integer.
|
|
24
|
-
* @default "16rem"
|
|
25
|
-
*/
|
|
26
|
-
minColWidth?: string;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* CSS grid with column-count presets and consistent gap. Use for card grids,
|
|
30
|
-
* dashboards, image galleries, and any layout where children should align to
|
|
31
|
-
* shared row/column tracks.
|
|
32
|
-
*
|
|
33
|
-
* Pass `cols="auto-fit"` and `minColWidth` for responsive grids that fit as
|
|
34
|
-
* many columns as the viewport allows without media queries.
|
|
35
|
-
*
|
|
36
|
-
* @param props - Grid props including `cols`, `gap`, `align`, and `minColWidth`.
|
|
37
|
-
* @returns A CSS grid container.
|
|
38
|
-
* @example
|
|
39
|
-
* ```tsx
|
|
40
|
-
* <Grid cols={3} gap="md">
|
|
41
|
-
* {items.map((i) => <Card key={i.id}>{i.title}</Card>)}
|
|
42
|
-
* </Grid>
|
|
43
|
-
* <Grid cols="auto-fit" minColWidth="20rem" gap="lg">
|
|
44
|
-
* {responsiveItems.map(...)}
|
|
45
|
-
* </Grid>
|
|
46
|
-
* ```
|
|
47
|
-
*/
|
|
48
|
-
declare function Grid({ className, cols, gap, align, minColWidth, style, ...props }: GridProps): react_jsx_runtime.JSX.Element;
|
|
49
|
-
|
|
50
|
-
export { Grid, type GridProps, gridVariants };
|
|
1
|
+
export { GridProps_alias_1 as GridProps } from './_tsup-dts-rollup.js';
|
|
2
|
+
export { Grid_alias_1 as Grid } from './_tsup-dts-rollup.js';
|
|
3
|
+
export { gridVariants_alias_1 as gridVariants } from './_tsup-dts-rollup.js';
|
package/dist/hover-card.d.ts
CHANGED
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
/** Root container for a hover-card. */
|
|
5
|
-
declare const HoverCard: React.FC<HoverCardPrimitive.HoverCardProps>;
|
|
6
|
-
/** The element that reveals the card on hover/focus. */
|
|
7
|
-
declare const HoverCardTrigger: React.ForwardRefExoticComponent<HoverCardPrimitive.HoverCardTriggerProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
8
|
-
/** The floating hover-card content panel. Richer than a tooltip. */
|
|
9
|
-
declare const HoverCardContent: React.ForwardRefExoticComponent<Omit<HoverCardPrimitive.HoverCardContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
-
|
|
11
|
-
export { HoverCard, HoverCardContent, HoverCardTrigger };
|
|
1
|
+
export { HoverCard_alias_1 as HoverCard } from './_tsup-dts-rollup.js';
|
|
2
|
+
export { HoverCardTrigger_alias_1 as HoverCardTrigger } from './_tsup-dts-rollup.js';
|
|
3
|
+
export { HoverCardContent_alias_1 as HoverCardContent } from './_tsup-dts-rollup.js';
|