@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/scroll-area.d.ts
CHANGED
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
interface ScrollAreaProps extends React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root> {
|
|
5
|
-
/**
|
|
6
|
-
* tabIndex applied to the scroll viewport so keyboard users can scroll
|
|
7
|
-
* without a pointer. Defaults to `0` (focusable) — pass `-1` to skip the
|
|
8
|
-
* viewport in the tab order when ScrollArea wraps purely decorative or
|
|
9
|
-
* already-keyboard-reachable content.
|
|
10
|
-
*/
|
|
11
|
-
viewportTabIndex?: number;
|
|
12
|
-
}
|
|
13
|
-
/** A scrollable area with custom-styled scrollbars. Content must be explicitly sized. */
|
|
14
|
-
declare const ScrollArea: React.ForwardRefExoticComponent<ScrollAreaProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
-
/** Styled scrollbar track + thumb. Rendered inside ScrollArea automatically. */
|
|
16
|
-
declare const ScrollBar: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
-
|
|
18
|
-
export { ScrollArea, type ScrollAreaProps, ScrollBar };
|
|
1
|
+
export { ScrollArea_alias_1 as ScrollArea } from './_tsup-dts-rollup.js';
|
|
2
|
+
export { ScrollBar_alias_1 as ScrollBar } from './_tsup-dts-rollup.js';
|
|
3
|
+
export { ScrollAreaProps } from './_tsup-dts-rollup.js';
|
package/dist/select.d.ts
CHANGED
|
@@ -1,21 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
10
|
-
/** The button users click to open the dropdown. */
|
|
11
|
-
declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
12
|
-
/** The dropdown panel containing selectable options. */
|
|
13
|
-
declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
-
/** A non-interactive label within a SelectGroup. */
|
|
15
|
-
declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
-
/** A selectable option. */
|
|
17
|
-
declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
-
/** Horizontal divider between groups inside SelectContent. */
|
|
19
|
-
declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
-
|
|
21
|
-
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue };
|
|
1
|
+
export { Select_alias_1 as Select } from './_tsup-dts-rollup.js';
|
|
2
|
+
export { SelectGroup_alias_1 as SelectGroup } from './_tsup-dts-rollup.js';
|
|
3
|
+
export { SelectValue_alias_1 as SelectValue } from './_tsup-dts-rollup.js';
|
|
4
|
+
export { SelectTrigger_alias_1 as SelectTrigger } from './_tsup-dts-rollup.js';
|
|
5
|
+
export { SelectContent_alias_1 as SelectContent } from './_tsup-dts-rollup.js';
|
|
6
|
+
export { SelectLabel_alias_1 as SelectLabel } from './_tsup-dts-rollup.js';
|
|
7
|
+
export { SelectItem_alias_1 as SelectItem } from './_tsup-dts-rollup.js';
|
|
8
|
+
export { SelectSeparator_alias_1 as SelectSeparator } from './_tsup-dts-rollup.js';
|
package/dist/separator.d.ts
CHANGED
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* A visual divider between content sections.
|
|
6
|
-
* Built on Radix UI Separator for proper accessibility semantics.
|
|
7
|
-
*/
|
|
8
|
-
type SeparatorProps = React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>;
|
|
9
|
-
declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
-
|
|
11
|
-
export { Separator, type SeparatorProps };
|
|
1
|
+
export { SeparatorProps_alias_1 as SeparatorProps } from './_tsup-dts-rollup.js';
|
|
2
|
+
export { Separator_alias_1 as Separator } from './_tsup-dts-rollup.js';
|
package/dist/sheet.d.ts
CHANGED
|
@@ -1,39 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
/** Closes the sheet when rendered inside SheetContent. */
|
|
12
|
-
declare const SheetClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
13
|
-
/** Portals the sheet overlay and content into the body. */
|
|
14
|
-
declare const SheetPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
|
15
|
-
/** Dimmed backdrop rendered behind the sheet content. */
|
|
16
|
-
declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
-
declare const sheetVariants: (props?: ({
|
|
18
|
-
side?: "top" | "right" | "bottom" | "left" | null | undefined;
|
|
19
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
20
|
-
interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
21
|
-
}
|
|
22
|
-
/** The sheet content panel that slides in from a side of the viewport. */
|
|
23
|
-
declare const SheetContent: React.ForwardRefExoticComponent<SheetContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
-
/**
|
|
25
|
-
* Header container inside SheetContent; stacks title and description.
|
|
26
|
-
* @returns A div with vertical rhythm.
|
|
27
|
-
*/
|
|
28
|
-
declare function SheetHeader({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
29
|
-
/**
|
|
30
|
-
* Footer container inside SheetContent; aligns action buttons.
|
|
31
|
-
* @returns A div that stacks buttons on mobile and right-aligns on desktop.
|
|
32
|
-
*/
|
|
33
|
-
declare function SheetFooter({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
34
|
-
/** Accessible sheet title; Radix wires it to aria-labelledby automatically. */
|
|
35
|
-
declare const SheetTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
36
|
-
/** Accessible sheet description; Radix wires it to aria-describedby automatically. */
|
|
37
|
-
declare const SheetDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
38
|
-
|
|
39
|
-
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger };
|
|
1
|
+
export { Sheet_alias_1 as Sheet } from './_tsup-dts-rollup.js';
|
|
2
|
+
export { SheetPortal_alias_1 as SheetPortal } from './_tsup-dts-rollup.js';
|
|
3
|
+
export { SheetOverlay_alias_1 as SheetOverlay } from './_tsup-dts-rollup.js';
|
|
4
|
+
export { SheetTrigger_alias_1 as SheetTrigger } from './_tsup-dts-rollup.js';
|
|
5
|
+
export { SheetClose_alias_1 as SheetClose } from './_tsup-dts-rollup.js';
|
|
6
|
+
export { SheetContent_alias_1 as SheetContent } from './_tsup-dts-rollup.js';
|
|
7
|
+
export { SheetHeader_alias_1 as SheetHeader } from './_tsup-dts-rollup.js';
|
|
8
|
+
export { SheetFooter_alias_1 as SheetFooter } from './_tsup-dts-rollup.js';
|
|
9
|
+
export { SheetTitle_alias_1 as SheetTitle } from './_tsup-dts-rollup.js';
|
|
10
|
+
export { SheetDescription_alias_1 as SheetDescription } from './_tsup-dts-rollup.js';
|
package/dist/sidebar.d.ts
CHANGED
|
@@ -1,75 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/** Toggle or set open state. */
|
|
10
|
-
setOpen: (open: boolean) => void;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Reads sidebar state from context. Throws if used outside SidebarProvider.
|
|
14
|
-
* @returns `{ open, setOpen }` bound to the nearest SidebarProvider.
|
|
15
|
-
*/
|
|
16
|
-
declare function useSidebar(): SidebarContextValue;
|
|
17
|
-
interface SidebarProviderProps {
|
|
18
|
-
/** Controlled open state. */
|
|
19
|
-
open?: boolean;
|
|
20
|
-
/** Uncontrolled initial open state (defaults to true). */
|
|
21
|
-
defaultOpen?: boolean;
|
|
22
|
-
/** Callback fired when open state changes. */
|
|
23
|
-
onOpenChange?: (open: boolean) => void;
|
|
24
|
-
/** Children — typically a Sidebar + app content sibling. */
|
|
25
|
-
children: React.ReactNode;
|
|
26
|
-
/** Extra class names on the provider wrapper. */
|
|
27
|
-
className?: string;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Hosts sidebar state. Wrap your app shell (Sidebar + main content) in this.
|
|
31
|
-
* @returns A flex container with a SidebarContext provider.
|
|
32
|
-
*/
|
|
33
|
-
declare function SidebarProvider({ open: openProp, defaultOpen, onOpenChange, children, className, }: SidebarProviderProps): react_jsx_runtime.JSX.Element;
|
|
34
|
-
declare namespace SidebarProvider {
|
|
35
|
-
var displayName: string;
|
|
36
|
-
}
|
|
37
|
-
declare const sidebarVariants: (props?: ({
|
|
38
|
-
side?: "right" | "left" | null | undefined;
|
|
39
|
-
state?: "closed" | "open" | null | undefined;
|
|
40
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
41
|
-
interface SidebarProps extends React.HTMLAttributes<HTMLElement>, Pick<VariantProps<typeof sidebarVariants>, "side"> {
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* App-shell sidebar. Reads open state from SidebarProvider and animates width.
|
|
45
|
-
* @returns An aside element that expands/collapses.
|
|
46
|
-
*/
|
|
47
|
-
declare const Sidebar: React.ForwardRefExoticComponent<SidebarProps & React.RefAttributes<HTMLElement>>;
|
|
48
|
-
interface SidebarTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
49
|
-
/** Render as the child element (Button, etc.) using Radix Slot. */
|
|
50
|
-
asChild?: boolean;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Toggles the sidebar open/closed. Renders a button by default; use asChild to style.
|
|
54
|
-
* @returns A button that flips SidebarProvider state.
|
|
55
|
-
*/
|
|
56
|
-
declare const SidebarTrigger: React.ForwardRefExoticComponent<SidebarTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
57
|
-
/** Header container at the top of the sidebar. */
|
|
58
|
-
declare const SidebarHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
59
|
-
/** Scrollable main area of the sidebar. */
|
|
60
|
-
declare const SidebarContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
61
|
-
/** Footer container at the bottom of the sidebar. */
|
|
62
|
-
declare const SidebarFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
63
|
-
interface SidebarItemProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
64
|
-
/** Render as the child element (next/link, etc.) via Slot. */
|
|
65
|
-
asChild?: boolean;
|
|
66
|
-
/** Mark as the current/selected item. */
|
|
67
|
-
active?: boolean;
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Single selectable row inside SidebarContent. Compose icon + label in children.
|
|
71
|
-
* @returns An accessible button (or Slot) styled as a sidebar row.
|
|
72
|
-
*/
|
|
73
|
-
declare const SidebarItem: React.ForwardRefExoticComponent<SidebarItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
74
|
-
|
|
75
|
-
export { Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarItem, SidebarProvider, SidebarTrigger, useSidebar };
|
|
1
|
+
export { SidebarProvider_alias_1 as SidebarProvider } from './_tsup-dts-rollup.js';
|
|
2
|
+
export { Sidebar_alias_1 as Sidebar } from './_tsup-dts-rollup.js';
|
|
3
|
+
export { SidebarTrigger_alias_1 as SidebarTrigger } from './_tsup-dts-rollup.js';
|
|
4
|
+
export { SidebarHeader_alias_1 as SidebarHeader } from './_tsup-dts-rollup.js';
|
|
5
|
+
export { SidebarContent_alias_1 as SidebarContent } from './_tsup-dts-rollup.js';
|
|
6
|
+
export { SidebarFooter_alias_1 as SidebarFooter } from './_tsup-dts-rollup.js';
|
|
7
|
+
export { SidebarItem_alias_1 as SidebarItem } from './_tsup-dts-rollup.js';
|
|
8
|
+
export { useSidebar_alias_1 as useSidebar } from './_tsup-dts-rollup.js';
|
package/dist/skeleton.d.ts
CHANGED
|
@@ -1,11 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* A placeholder shimmer element shown while content is loading.
|
|
6
|
-
* Pair with explicit width/height via className.
|
|
7
|
-
* @returns A div with pulsing muted background
|
|
8
|
-
*/
|
|
9
|
-
declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
10
|
-
|
|
11
|
-
export { Skeleton };
|
|
1
|
+
export { Skeleton_alias_1 as Skeleton } from './_tsup-dts-rollup.js';
|
package/dist/slider.d.ts
CHANGED
|
@@ -1,20 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
interface SliderProps extends React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root> {
|
|
5
|
-
/**
|
|
6
|
-
* Per-thumb accessible labels. When the slider has multiple thumbs, pass
|
|
7
|
-
* one entry per thumb (e.g. ["Minimum", "Maximum"]). For a single-thumb
|
|
8
|
-
* slider, the Root's `aria-label` / `aria-labelledby` is mirrored onto
|
|
9
|
-
* the thumb automatically — pass `thumbLabels` only when those defaults
|
|
10
|
-
* are insufficient.
|
|
11
|
-
*/
|
|
12
|
-
thumbLabels?: string[];
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* A range input with one or more draggable thumbs.
|
|
16
|
-
* Built on Radix UI Slider with keyboard controls (arrows, Home, End, PageUp/Down).
|
|
17
|
-
*/
|
|
18
|
-
declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLSpanElement>>;
|
|
19
|
-
|
|
20
|
-
export { Slider, type SliderProps };
|
|
1
|
+
export { SliderProps } from './_tsup-dts-rollup.js';
|
|
2
|
+
export { Slider_alias_1 as Slider } from './_tsup-dts-rollup.js';
|
package/dist/sonner.d.ts
CHANGED
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { toast } from 'sonner';
|
|
4
|
-
|
|
5
|
-
type ToasterProps = React.ComponentProps<typeof Toaster$1>;
|
|
6
|
-
/**
|
|
7
|
-
* The global toast container. Render once in your app root.
|
|
8
|
-
* Re-export of Sonner's Toaster styled to use Hex UI theme tokens.
|
|
9
|
-
* @param props - Sonner Toaster props (position, richColors, etc.)
|
|
10
|
-
* @returns A styled portal container for toast notifications
|
|
11
|
-
*/
|
|
12
|
-
declare function Toaster({ ...props }: ToasterProps): react_jsx_runtime.JSX.Element;
|
|
13
|
-
|
|
14
|
-
export { Toaster };
|
|
1
|
+
export { Toaster_alias_1 as Toaster } from './_tsup-dts-rollup.js';
|
|
2
|
+
export { toast_alias_1 as toast } from './_tsup-dts-rollup.js';
|
package/dist/spacer.d.ts
CHANGED
|
@@ -1,38 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* CVA variants for Spacer — declarative whitespace.
|
|
8
|
-
* `size` sets `--spacer-size` to a `--space-*` token (with inline fallback);
|
|
9
|
-
* `axis` consumes that var via the bracket form used everywhere else in the
|
|
10
|
-
* package, so the height or width can never collapse to zero if the size
|
|
11
|
-
* variant is dropped.
|
|
12
|
-
*/
|
|
13
|
-
declare const spacerVariants: (props?: ({
|
|
14
|
-
size?: "sm" | "lg" | "md" | "xl" | "xs" | null | undefined;
|
|
15
|
-
axis?: "both" | "horizontal" | "vertical" | null | undefined;
|
|
16
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
17
|
-
/** Props for the Spacer component. */
|
|
18
|
-
interface SpacerProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children">, VariantProps<typeof spacerVariants> {
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* A declarative whitespace block. Use when you want to insert space between two
|
|
22
|
-
* siblings without relying on margin or gap (e.g. inside a flex container that
|
|
23
|
-
* doesn't own the spacing decision).
|
|
24
|
-
*
|
|
25
|
-
* Renders an empty `<div>` with `aria-hidden` since it has no semantic content.
|
|
26
|
-
*
|
|
27
|
-
* @param props - Spacer props including `size` and `axis` variant keys.
|
|
28
|
-
* @returns An empty div with the requested dimension.
|
|
29
|
-
* @example
|
|
30
|
-
* ```tsx
|
|
31
|
-
* <h1>Title</h1>
|
|
32
|
-
* <Spacer size="lg" />
|
|
33
|
-
* <p>Body</p>
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
declare function Spacer({ className, size, axis, ...props }: SpacerProps): react_jsx_runtime.JSX.Element;
|
|
37
|
-
|
|
38
|
-
export { Spacer, type SpacerProps, spacerVariants };
|
|
1
|
+
export { SpacerProps_alias_1 as SpacerProps } from './_tsup-dts-rollup.js';
|
|
2
|
+
export { Spacer_alias_1 as Spacer } from './_tsup-dts-rollup.js';
|
|
3
|
+
export { spacerVariants_alias_1 as spacerVariants } from './_tsup-dts-rollup.js';
|
package/dist/stack.d.ts
CHANGED
|
@@ -1,34 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* CVA variants for Stack — vertical flex flow. `gap`, `align`, and `justify`
|
|
8
|
-
* pull from the shared layout-variant maps so any change to the gap scale
|
|
9
|
-
* propagates to Cluster and Grid simultaneously.
|
|
10
|
-
*/
|
|
11
|
-
declare const stackVariants: (props?: ({
|
|
12
|
-
gap?: "sm" | "lg" | "md" | "xl" | "xs" | null | undefined;
|
|
13
|
-
align?: "center" | "start" | "end" | "stretch" | null | undefined;
|
|
14
|
-
justify?: "center" | "start" | "end" | "between" | null | undefined;
|
|
15
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
16
|
-
/** Props for the Stack component. */
|
|
17
|
-
interface StackProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof stackVariants> {
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Vertical flex flow with token-bound gap. Children stack top-to-bottom.
|
|
21
|
-
* @param props - Stack props including `gap`, `align`, and `justify` variant keys.
|
|
22
|
-
* @returns A flex column with consistent vertical spacing.
|
|
23
|
-
* @example
|
|
24
|
-
* ```tsx
|
|
25
|
-
* <Stack gap="lg">
|
|
26
|
-
* <h2>Section title</h2>
|
|
27
|
-
* <p>Paragraph one.</p>
|
|
28
|
-
* <p>Paragraph two.</p>
|
|
29
|
-
* </Stack>
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
declare function Stack({ className, gap, align, justify, ...props }: StackProps): react_jsx_runtime.JSX.Element;
|
|
33
|
-
|
|
34
|
-
export { Stack, type StackProps, stackVariants };
|
|
1
|
+
export { StackProps_alias_1 as StackProps } from './_tsup-dts-rollup.js';
|
|
2
|
+
export { Stack_alias_1 as Stack } from './_tsup-dts-rollup.js';
|
|
3
|
+
export { stackVariants_alias_1 as stackVariants } from './_tsup-dts-rollup.js';
|
package/dist/stepper.d.ts
CHANGED
|
@@ -1,48 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
interface StepperStep {
|
|
6
|
-
/** Stable unique id used as the React key. */
|
|
7
|
-
id: string;
|
|
8
|
-
/** Step name shown next to the indicator. */
|
|
9
|
-
label: string;
|
|
10
|
-
/** Optional secondary text under the label. */
|
|
11
|
-
description?: string;
|
|
12
|
-
/** Disable the step (only applies when onStepClick is provided). */
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Override the index-derived status. Use `"error"` to mark a failed step
|
|
16
|
-
* (e.g. validation failure in a form wizard); `"complete"` / `"current"` /
|
|
17
|
-
* `"upcoming"` are derived from `current` by default.
|
|
18
|
-
*/
|
|
19
|
-
status?: StepStatus;
|
|
20
|
-
}
|
|
21
|
-
interface StepperProps extends Omit<React.HTMLAttributes<HTMLOListElement>, "aria-label" | "onClick"> {
|
|
22
|
-
/** Ordered list of steps. */
|
|
23
|
-
steps: StepperStep[];
|
|
24
|
-
/** Index of the current step (controlled). */
|
|
25
|
-
current: number;
|
|
26
|
-
/** Layout direction. */
|
|
27
|
-
orientation?: "horizontal" | "vertical";
|
|
28
|
-
/** Indicator size. */
|
|
29
|
-
size?: "sm" | "md";
|
|
30
|
-
/** When provided, each step is rendered as a clickable button. */
|
|
31
|
-
onStepClick?: (index: number) => void;
|
|
32
|
-
/** Required accessible name for the ordered list. */
|
|
33
|
-
"aria-label": string;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Linear progress indicator for multi-step flows (form wizards, onboarding,
|
|
37
|
-
* checkout). Pure semantic HTML — `<ol>` of `<li>` with `aria-current="step"`
|
|
38
|
-
* on the current item; per-step `status` overrides allow marking "error".
|
|
39
|
-
*
|
|
40
|
-
* Pass `onStepClick` to make completed/non-disabled steps interactive.
|
|
41
|
-
* @returns An accessible ordered step list.
|
|
42
|
-
*/
|
|
43
|
-
declare function Stepper({ steps, current, orientation, size, onStepClick, "aria-label": ariaLabel, className, ...rest }: StepperProps): react_jsx_runtime.JSX.Element;
|
|
44
|
-
declare namespace Stepper {
|
|
45
|
-
var displayName: string;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export { type StepStatus, Stepper, type StepperProps, type StepperStep };
|
|
1
|
+
export { Stepper_alias_1 as Stepper } from './_tsup-dts-rollup.js';
|
|
2
|
+
export { StepperProps_alias_1 as StepperProps } from './_tsup-dts-rollup.js';
|
|
3
|
+
export { StepperStep_alias_1 as StepperStep } from './_tsup-dts-rollup.js';
|
|
4
|
+
export { StepStatus_alias_1 as StepStatus } from './_tsup-dts-rollup.js';
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { clsx } from 'clsx';
|
|
4
|
+
import { twMerge } from 'tailwind-merge';
|
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
function cn(...inputs) {
|
|
8
|
+
return twMerge(clsx(inputs));
|
|
9
|
+
}
|
|
10
|
+
function Suggestion({
|
|
11
|
+
value,
|
|
12
|
+
onSelect,
|
|
13
|
+
children,
|
|
14
|
+
className,
|
|
15
|
+
type = "button",
|
|
16
|
+
onClick,
|
|
17
|
+
...props
|
|
18
|
+
}) {
|
|
19
|
+
function handleClick(event) {
|
|
20
|
+
const payload = value ?? extractText(children);
|
|
21
|
+
onSelect(payload);
|
|
22
|
+
onClick?.(event);
|
|
23
|
+
}
|
|
24
|
+
return /* @__PURE__ */ jsx(
|
|
25
|
+
"button",
|
|
26
|
+
{
|
|
27
|
+
type,
|
|
28
|
+
onClick: handleClick,
|
|
29
|
+
className: cn(
|
|
30
|
+
"inline-flex items-center rounded-full border border-foreground/15 bg-background px-3 py-1.5 text-sm",
|
|
31
|
+
"transition-all duration-[var(--duration-normal,200ms)] ease-out",
|
|
32
|
+
"hover:border-foreground/30 hover:bg-secondary/40 hover:shadow-sm",
|
|
33
|
+
"active:scale-[0.98]",
|
|
34
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
35
|
+
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
36
|
+
className
|
|
37
|
+
),
|
|
38
|
+
...props,
|
|
39
|
+
children
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
function extractText(node) {
|
|
44
|
+
if (node == null || typeof node === "boolean") return "";
|
|
45
|
+
if (typeof node === "string" || typeof node === "number") return String(node);
|
|
46
|
+
if (Array.isArray(node)) return node.map(extractText).join(" ").replace(/\s+/g, " ").trim();
|
|
47
|
+
if (React.isValidElement(node)) {
|
|
48
|
+
return extractText(node.props.children);
|
|
49
|
+
}
|
|
50
|
+
return "";
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export { Suggestion };
|
|
54
|
+
//# sourceMappingURL=suggestion.js.map
|
|
55
|
+
//# sourceMappingURL=suggestion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/lib/utils.ts","../src/ai/suggestion/suggestion.tsx"],"names":[],"mappings":";;;;;AAQO,SAAS,MAAM,MAAA,EAAsB;AAC3C,EAAA,OAAO,OAAA,CAAQ,IAAA,CAAK,MAAM,CAAC,CAAA;AAC5B;ACuBA,SAAS,UAAA,CAAW;AAAA,EACnB,KAAA;AAAA,EACA,QAAA;AAAA,EACA,QAAA;AAAA,EACA,SAAA;AAAA,EACA,IAAA,GAAO,QAAA;AAAA,EACP,OAAA;AAAA,EACA,GAAG;AACJ,CAAA,EAAoB;AACnB,EAAA,SAAS,YAAY,KAAA,EAA4C;AAChE,IAAA,MAAM,OAAA,GAAU,KAAA,IAAS,WAAA,CAAY,QAAQ,CAAA;AAC7C,IAAA,QAAA,CAAS,OAAO,CAAA;AAChB,IAAA,OAAA,GAAU,KAAK,CAAA;AAAA,EAChB;AAEA,EAAA,uBACC,GAAA;AAAA,IAAC,QAAA;AAAA,IAAA;AAAA,MACA,IAAA;AAAA,MACA,OAAA,EAAS,WAAA;AAAA,MACT,SAAA,EAAW,EAAA;AAAA,QACV,qGAAA;AAAA,QACA,iEAAA;AAAA,QACA,kEAAA;AAAA,QACA,qBAAA;AAAA,QACA,qGAAA;AAAA,QACA,iDAAA;AAAA,QACA;AAAA,OACD;AAAA,MACC,GAAG,KAAA;AAAA,MAEH;AAAA;AAAA,GACF;AAEF;AAUA,SAAS,YAAY,IAAA,EAA+B;AACnD,EAAA,IAAI,IAAA,IAAQ,IAAA,IAAQ,OAAO,IAAA,KAAS,WAAW,OAAO,EAAA;AACtD,EAAA,IAAI,OAAO,SAAS,QAAA,IAAY,OAAO,SAAS,QAAA,EAAU,OAAO,OAAO,IAAI,CAAA;AAC5E,EAAA,IAAI,MAAM,OAAA,CAAQ,IAAI,CAAA,EAAG,OAAO,KAAK,GAAA,CAAI,WAAW,CAAA,CAAE,IAAA,CAAK,GAAG,CAAA,CAAE,OAAA,CAAQ,MAAA,EAAQ,GAAG,EAAE,IAAA,EAAK;AAC1F,EAAA,IAAU,KAAA,CAAA,cAAA,CAA+C,IAAI,CAAA,EAAG;AAC/D,IAAA,OAAO,WAAA,CAAY,IAAA,CAAK,KAAA,CAAM,QAAQ,CAAA;AAAA,EACvC;AACA,EAAA,OAAO,EAAA;AACR","file":"suggestion.js","sourcesContent":["import { type ClassValue, clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\n/**\n * Merge class names with Tailwind CSS conflict resolution.\n * @param inputs - Class values (strings, arrays, objects) to merge\n * @returns A single merged class string with Tailwind conflicts resolved\n */\nexport function cn(...inputs: ClassValue[]) {\n\treturn twMerge(clsx(inputs));\n}\n","\"use client\";\n\nimport * as React from \"react\";\nimport { cn } from \"../../lib/utils.js\";\n\n/**\n * Prompt pill / quick-action chip. Click forwards `value` (or the rendered\n * string children) to `onSelect` — typically wired to drop the suggestion\n * into a `Composer` or fire it directly through `useChat.append`.\n *\n * Stateless: no submission logic, no networking. Composer (or its parent)\n * decides whether `onSelect` populates the input or auto-sends.\n *\n * @example\n * <Cluster gap=\"sm\">\n * {prompts.map((p) => (\n * <Suggestion key={p} value={p} onSelect={setInput}>{p}</Suggestion>\n * ))}\n * </Cluster>\n */\nexport interface SuggestionProps\n\textends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, \"onSelect\" | \"value\"> {\n\t/** Payload passed to `onSelect`. Defaults to the rendered children if a string. */\n\tvalue?: string;\n\tonSelect: (value: string) => void;\n\tchildren: React.ReactNode;\n}\n\n/**\n * Renders a clickable suggestion chip.\n * @param props - value/onSelect + children\n * @returns A styled button element\n */\nfunction Suggestion({\n\tvalue,\n\tonSelect,\n\tchildren,\n\tclassName,\n\ttype = \"button\",\n\tonClick,\n\t...props\n}: SuggestionProps) {\n\tfunction handleClick(event: React.MouseEvent<HTMLButtonElement>) {\n\t\tconst payload = value ?? extractText(children);\n\t\tonSelect(payload);\n\t\tonClick?.(event);\n\t}\n\n\treturn (\n\t\t<button\n\t\t\ttype={type}\n\t\t\tonClick={handleClick}\n\t\t\tclassName={cn(\n\t\t\t\t\"inline-flex items-center rounded-full border border-foreground/15 bg-background px-3 py-1.5 text-sm\",\n\t\t\t\t\"transition-all duration-[var(--duration-normal,200ms)] ease-out\",\n\t\t\t\t\"hover:border-foreground/30 hover:bg-secondary/40 hover:shadow-sm\",\n\t\t\t\t\"active:scale-[0.98]\",\n\t\t\t\t\"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2\",\n\t\t\t\t\"disabled:cursor-not-allowed disabled:opacity-50\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{children}\n\t\t</button>\n\t);\n}\n\n/**\n * Recursively pull plain-text out of a ReactNode tree so a `<Suggestion>`\n * with JSX children (e.g. `<Icon /> Try this`) still resolves to the\n * visible label when no `value` prop was set.\n *\n * @param node - children ReactNode\n * @returns The concatenated text content, trimmed of incidental whitespace\n */\nfunction extractText(node: React.ReactNode): string {\n\tif (node == null || typeof node === \"boolean\") return \"\";\n\tif (typeof node === \"string\" || typeof node === \"number\") return String(node);\n\tif (Array.isArray(node)) return node.map(extractText).join(\" \").replace(/\\s+/g, \" \").trim();\n\tif (React.isValidElement<{ children?: React.ReactNode }>(node)) {\n\t\treturn extractText(node.props.children);\n\t}\n\treturn \"\";\n}\n\nexport { Suggestion };\n"]}
|
package/dist/switch.d.ts
CHANGED
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* An accessible toggle switch built on Radix UI.
|
|
6
|
-
* Use for instant on/off settings that take effect immediately.
|
|
7
|
-
*/
|
|
8
|
-
type SwitchProps = React.ComponentPropsWithoutRef<typeof SwitchPrimitive.Root>;
|
|
9
|
-
declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchPrimitive.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
10
|
-
|
|
11
|
-
export { Switch, type SwitchProps };
|
|
1
|
+
export { SwitchProps_alias_1 as SwitchProps } from './_tsup-dts-rollup.js';
|
|
2
|
+
export { Switch_alias_1 as Switch } from './_tsup-dts-rollup.js';
|
package/dist/table.d.ts
CHANGED
|
@@ -1,24 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/** `<tfoot>` wrapper with muted background. */
|
|
10
|
-
declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
11
|
-
/** `<tr>` with hover + selected states. */
|
|
12
|
-
declare const TableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & React.RefAttributes<HTMLTableRowElement>>;
|
|
13
|
-
/** `<th>` with left-aligned muted text. */
|
|
14
|
-
declare const TableHead: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
15
|
-
/** `<td>` with consistent padding. */
|
|
16
|
-
declare const TableCell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
17
|
-
/**
|
|
18
|
-
* Visible `<caption>` rendered below the table. The parent `<Table>` sets
|
|
19
|
-
* `caption-bottom`, so the caption is announced first by screen readers when
|
|
20
|
-
* entering the table, then visually placed below the rows.
|
|
21
|
-
*/
|
|
22
|
-
declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
|
|
23
|
-
|
|
24
|
-
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
|
|
1
|
+
export { Table_alias_1 as Table } from './_tsup-dts-rollup.js';
|
|
2
|
+
export { TableHeader_alias_1 as TableHeader } from './_tsup-dts-rollup.js';
|
|
3
|
+
export { TableBody_alias_1 as TableBody } from './_tsup-dts-rollup.js';
|
|
4
|
+
export { TableFooter_alias_1 as TableFooter } from './_tsup-dts-rollup.js';
|
|
5
|
+
export { TableHead_alias_1 as TableHead } from './_tsup-dts-rollup.js';
|
|
6
|
+
export { TableRow_alias_1 as TableRow } from './_tsup-dts-rollup.js';
|
|
7
|
+
export { TableCell_alias_1 as TableCell } from './_tsup-dts-rollup.js';
|
|
8
|
+
export { TableCaption_alias_1 as TableCaption } from './_tsup-dts-rollup.js';
|
package/dist/tabs.d.ts
CHANGED
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare const Tabs: React.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
-
/** A horizontal list of tab triggers. */
|
|
7
|
-
declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
-
/** A clickable tab trigger that activates its associated content panel. */
|
|
9
|
-
declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
10
|
-
/** The content panel associated with a tab trigger. */
|
|
11
|
-
declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
-
|
|
13
|
-
export { Tabs, TabsContent, TabsList, TabsTrigger };
|
|
1
|
+
export { Tabs_alias_1 as Tabs } from './_tsup-dts-rollup.js';
|
|
2
|
+
export { TabsList_alias_1 as TabsList } from './_tsup-dts-rollup.js';
|
|
3
|
+
export { TabsTrigger_alias_1 as TabsTrigger } from './_tsup-dts-rollup.js';
|
|
4
|
+
export { TabsContent_alias_1 as TabsContent } from './_tsup-dts-rollup.js';
|
package/dist/textarea.d.ts
CHANGED
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* A styled multi-line text input with smooth focus transitions and shadow effects.
|
|
5
|
-
* Extends the native HTML textarea element with Hex UI styling.
|
|
6
|
-
*/
|
|
7
|
-
type TextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement>;
|
|
8
|
-
declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
9
|
-
|
|
10
|
-
export { Textarea, type TextareaProps };
|
|
1
|
+
export { TextareaProps_alias_1 as TextareaProps } from './_tsup-dts-rollup.js';
|
|
2
|
+
export { Textarea_alias_1 as Textarea } from './_tsup-dts-rollup.js';
|
package/dist/time-picker.d.ts
CHANGED
|
@@ -1,34 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
interface TimePickerProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "value" | "onChange" | "size"> {
|
|
4
|
-
/** Controlled time value as `"HH:MM"` or `"HH:MM:SS"` (24-hour). */
|
|
5
|
-
value?: string;
|
|
6
|
-
/** Fired with the new `"HH:MM"` (or `"HH:MM:SS"`) string when the user picks a time. */
|
|
7
|
-
onChange?: (value: string) => void;
|
|
8
|
-
/**
|
|
9
|
-
* Step in seconds — `60` shows HH:MM only (default), `1` shows HH:MM:SS.
|
|
10
|
-
* Smaller values change the spinner increment in supported browsers.
|
|
11
|
-
*/
|
|
12
|
-
step?: number;
|
|
13
|
-
/** Earliest selectable time as `"HH:MM"`. */
|
|
14
|
-
min?: string;
|
|
15
|
-
/** Latest selectable time as `"HH:MM"`. */
|
|
16
|
-
max?: string;
|
|
17
|
-
/** Disable the input. */
|
|
18
|
-
disabled?: boolean;
|
|
19
|
-
/** Accessible label for the trigger (required when no adjacent visible <label>). */
|
|
20
|
-
"aria-label"?: string;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Time input — styled wrapper around the native `<input type="time">` so the
|
|
24
|
-
* browser handles 12/24-hour locale, keyboard arrow stepping, and screen-reader
|
|
25
|
-
* announcement. Value is a `"HH:MM"` (or `"HH:MM:SS"` when `step={1}`) string.
|
|
26
|
-
*
|
|
27
|
-
* For free-form composite hour/minute fields with explicit AM/PM segments,
|
|
28
|
-
* compose Input + Select yourself — the native input covers ~95% of TimePicker
|
|
29
|
-
* use cases with full a11y, including keyboard-driven hour/minute spinning.
|
|
30
|
-
* @returns A token-styled native time input.
|
|
31
|
-
*/
|
|
32
|
-
declare const TimePicker: React.ForwardRefExoticComponent<TimePickerProps & React.RefAttributes<HTMLInputElement>>;
|
|
33
|
-
|
|
34
|
-
export { TimePicker, type TimePickerProps };
|
|
1
|
+
export { TimePicker_alias_1 as TimePicker } from './_tsup-dts-rollup.js';
|
|
2
|
+
export { TimePickerProps_alias_1 as TimePickerProps } from './_tsup-dts-rollup.js';
|