@kismet-ux/constellation 1.3.0 → 1.4.1

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.
@@ -0,0 +1,202 @@
1
+ import * as React from 'react';
2
+ import React__default from 'react';
3
+ import { d as SidebarSection, S as SidebarNavItem, B as BreadcrumbItemData, c as NavUserProps } from './nav-user-CJIcWKyY.js';
4
+ import { R as RowProps } from './row-CS9-talZ.js';
5
+ import { I as Input } from './input-CWHXOpeH.js';
6
+ import { b as TooltipContent, B as Button } from './tooltip-CzF4au7i.js';
7
+ import { VariantProps } from 'class-variance-authority';
8
+ import * as class_variance_authority_types from 'class-variance-authority/types';
9
+
10
+ interface ColumnProps extends React__default.HTMLAttributes<HTMLDivElement> {
11
+ children?: React__default.ReactNode;
12
+ el?: React__default.ElementType<React__default.HTMLAttributes<HTMLDivElement>>;
13
+ gap?: number;
14
+ full?: boolean;
15
+ fullHeight?: boolean;
16
+ align?: 'start' | 'center' | 'end';
17
+ flex?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
18
+ }
19
+
20
+ interface ContainerProps extends React__default.HTMLAttributes<HTMLDivElement> {
21
+ children?: React__default.ReactNode;
22
+ el?: React__default.ElementType<React__default.HTMLAttributes<HTMLDivElement>>;
23
+ styled?: boolean;
24
+ direction?: 'column' | 'row';
25
+ align?: 'start' | 'center' | 'end' | 'stretch';
26
+ justify?: 'start' | 'center' | 'end' | 'space-between' | 'space-around' | 'space-evenly';
27
+ full?: boolean;
28
+ rounded?: boolean | 'extra';
29
+ outlined?: boolean;
30
+ theme?: 'primary' | 'secondary' | 'success' | 'destructive' | 'warning' | 'info' | 'slate' | 'light-slate';
31
+ elevation?: number;
32
+ padding?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 'xl' | 'lg' | 'md' | 'sm' | 'none';
33
+ darkMode?: boolean;
34
+ gap?: number;
35
+ }
36
+
37
+ type GridColumns = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
38
+ interface GridProps extends React__default.HTMLAttributes<HTMLDivElement> {
39
+ children?: React__default.ReactNode;
40
+ /** Number of columns (1–12). Default: 1. */
41
+ columns?: GridColumns;
42
+ /** Responsive column overrides. Each breakpoint sets the column count at that width and above. */
43
+ sm?: GridColumns;
44
+ md?: GridColumns;
45
+ lg?: GridColumns;
46
+ xl?: GridColumns;
47
+ /** Gap between items (0–12, maps to --size-N tokens). Default: 2. */
48
+ gap?: number;
49
+ /** Horizontal alignment of items within cells. */
50
+ align?: 'start' | 'center' | 'end' | 'stretch';
51
+ /** Vertical alignment of items within cells. */
52
+ justify?: 'start' | 'center' | 'end' | 'stretch';
53
+ /** Whether the grid fills its parent width. */
54
+ full?: boolean;
55
+ /** Semantic HTML element to render. Default: div. */
56
+ el?: React__default.ElementType<React__default.HTMLAttributes<HTMLDivElement>>;
57
+ }
58
+
59
+ type SidebarVariant = 'sidebar' | 'floating' | 'inset';
60
+ type SidebarContextValue = {
61
+ state: 'expanded' | 'collapsed';
62
+ open: boolean;
63
+ setOpen: React__default.Dispatch<React__default.SetStateAction<boolean>>;
64
+ isMobile: boolean;
65
+ openMobile: boolean;
66
+ setOpenMobile: React__default.Dispatch<React__default.SetStateAction<boolean>>;
67
+ toggleSidebar: () => void;
68
+ variant: SidebarVariant;
69
+ setVariant: React__default.Dispatch<React__default.SetStateAction<SidebarVariant>>;
70
+ };
71
+
72
+ declare function AppContent({ children, className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
73
+
74
+ interface AppFooterProps {
75
+ brand: string;
76
+ links: {
77
+ label: string;
78
+ href: string;
79
+ }[];
80
+ }
81
+ declare function AppFooter({ brand, links }: AppFooterProps): React.JSX.Element;
82
+
83
+ interface AppShellProps {
84
+ children: React.ReactNode;
85
+ /**
86
+ * Initial sidebar state. Persist this server-side (cookie, session) or in
87
+ * localStorage and pass it in, so the sidebar doesn't flash open on load.
88
+ */
89
+ defaultSidebarOpen?: boolean;
90
+ }
91
+ declare function AppShell({ children, defaultSidebarOpen }: AppShellProps): React.JSX.Element;
92
+
93
+ interface AppSidebarProps {
94
+ logo: React.ReactNode;
95
+ homeHref?: string;
96
+ currentPath?: string;
97
+ linkComponent?: React.ElementType;
98
+ sections: SidebarSection[];
99
+ footerItems?: SidebarNavItem[];
100
+ footerSeparator?: boolean;
101
+ children?: React.ReactNode;
102
+ }
103
+ declare function AppSidebar({ logo, homeHref, currentPath, linkComponent, sections, footerItems, footerSeparator, children, }: AppSidebarProps): React.JSX.Element;
104
+
105
+ interface AppSidebarHeaderProps {
106
+ breadcrumbs?: BreadcrumbItemData[];
107
+ /** Omit to hide the account menu (e.g. on signed-out chrome). */
108
+ user?: NavUserProps['user'];
109
+ userMenu?: Omit<NavUserProps, 'user'>;
110
+ /** Extra controls between the appearance toggle and the account menu. */
111
+ actions?: React.ReactNode;
112
+ }
113
+ declare function AppSidebarHeader({ breadcrumbs, user, userMenu, actions, }: AppSidebarHeaderProps): React.JSX.Element;
114
+
115
+ interface CollapseProps extends React.HTMLAttributes<HTMLDivElement> {
116
+ open: boolean;
117
+ /** Transition length in ms. Also how long the unmount is deferred. */
118
+ duration?: number;
119
+ /**
120
+ * Unmount children once the close animation finishes. Keeps focus traps,
121
+ * `autoFocus` and dismiss handlers out of the tree while the panel is shut.
122
+ * Set `false` to keep children mounted — cheaper for a panel toggled often,
123
+ * and required if they hold state you need to survive a close.
124
+ */
125
+ unmountOnClose?: boolean;
126
+ }
127
+ /**
128
+ * A panel that animates its own height, so content below slides rather than
129
+ * jumping.
130
+ *
131
+ * Uses `grid-template-rows: 0fr → 1fr` rather than animating `max-height`: it
132
+ * interpolates to the panel's real height, so there is no magic number to
133
+ * guess and no pause at the end when the guess was too generous.
134
+ */
135
+ declare const Collapse: React.ForwardRefExoticComponent<CollapseProps & React.RefAttributes<HTMLDivElement>>;
136
+
137
+ declare const Column: React.FC<ColumnProps>;
138
+
139
+ declare const Container: React.ForwardRefExoticComponent<ContainerProps & React.RefAttributes<HTMLDivElement>>;
140
+
141
+ declare const Grid: React.ForwardRefExoticComponent<GridProps & React.RefAttributes<HTMLDivElement>>;
142
+
143
+ declare const Row: React.FC<RowProps>;
144
+
145
+ declare const sidebarMenuButtonVariants: (props?: ({
146
+ variant?: "default" | "outline" | null | undefined;
147
+ size?: "sm" | "md" | "lg" | null | undefined;
148
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
149
+
150
+ declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React.ComponentProps<'div'> & {
151
+ defaultOpen?: boolean;
152
+ open?: boolean;
153
+ onOpenChange?: React.Dispatch<React.SetStateAction<boolean>>;
154
+ }): React.JSX.Element;
155
+ declare function Sidebar({ side, variant, collapsible, className, children, ...props }: React.ComponentProps<'div'> & {
156
+ side?: 'left' | 'right';
157
+ variant?: SidebarVariant;
158
+ collapsible?: 'offcanvas' | 'icon' | 'none';
159
+ }): React.JSX.Element;
160
+ declare function SidebarTrigger({ className, onClick, ...props }: React.ComponentProps<typeof Button>): React.JSX.Element;
161
+ declare function SidebarRail({ className, ...props }: React.ComponentProps<'button'>): React.JSX.Element;
162
+ declare function SidebarInset({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
163
+ declare function SidebarInput({ className, ...props }: React.ComponentProps<typeof Input>): React.JSX.Element;
164
+ declare function SidebarHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
165
+ declare function SidebarFooter({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
166
+ declare function SidebarContent({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
167
+ declare function SidebarGroup({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
168
+ declare function SidebarGroupLabel({ className, asChild, ...props }: React.ComponentProps<'div'> & {
169
+ asChild?: boolean;
170
+ }): React.JSX.Element;
171
+ declare function SidebarGroupAction({ className, asChild, ...props }: React.ComponentProps<'button'> & {
172
+ asChild?: boolean;
173
+ }): React.JSX.Element;
174
+ declare function SidebarGroupContent({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
175
+ declare function SidebarMenu({ className, ...props }: React.ComponentProps<'ul'>): React.JSX.Element;
176
+ declare function SidebarMenuItem({ className, ...props }: React.ComponentProps<'li'>): React.JSX.Element;
177
+ declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip, className, ...props }: React.ComponentProps<'button'> & {
178
+ asChild?: boolean;
179
+ isActive?: boolean;
180
+ tooltip?: string | React.ComponentProps<typeof TooltipContent>;
181
+ } & VariantProps<typeof sidebarMenuButtonVariants>): React.JSX.Element;
182
+ declare function SidebarMenuAction({ className, asChild, showOnHover, ...props }: React.ComponentProps<'button'> & {
183
+ asChild?: boolean;
184
+ showOnHover?: boolean;
185
+ }): React.JSX.Element;
186
+ declare function SidebarMenuBadge({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
187
+ declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React.ComponentProps<'div'> & {
188
+ showIcon?: boolean;
189
+ }): React.JSX.Element;
190
+ declare function SidebarMenuSub({ className, ...props }: React.ComponentProps<'ul'>): React.JSX.Element;
191
+ declare function SidebarMenuSubItem({ className, ...props }: React.ComponentProps<'li'>): React.JSX.Element;
192
+ declare function SidebarMenuSubButton({ asChild, size, isActive, tooltip, className, ...props }: React.ComponentProps<'a'> & {
193
+ asChild?: boolean;
194
+ size?: 'sm' | 'md';
195
+ isActive?: boolean;
196
+ tooltip?: string | React.ComponentProps<typeof TooltipContent>;
197
+ }): React.JSX.Element;
198
+
199
+ declare function Skeleton({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
200
+
201
+ export { AppContent as A, SidebarMenuAction as B, Collapse as C, SidebarMenuBadge as D, SidebarMenuButton as E, SidebarMenuItem as F, Grid as G, SidebarMenuSkeleton as H, SidebarMenuSub as I, SidebarMenuSubButton as J, SidebarMenuSubItem as K, SidebarProvider as L, SidebarRail as M, SidebarTrigger as N, Skeleton as P, Row as R, AppFooter as a, AppShell as c, AppSidebar as e, AppSidebarHeader as f, Column as j, Container as l, Sidebar as p, SidebarContent as q, SidebarFooter as r, SidebarGroup as s, SidebarGroupAction as t, SidebarGroupContent as u, SidebarGroupLabel as v, SidebarHeader as w, SidebarInput as x, SidebarInset as y, SidebarMenu as z };
202
+ export type { SidebarVariant as O, SidebarContextValue as S, AppFooterProps as b, AppShellProps as d, AppSidebarHeaderProps as g, AppSidebarProps as h, CollapseProps as i, ColumnProps as k, ContainerProps as m, GridColumns as n, GridProps as o };
@@ -95,7 +95,7 @@ declare function DatePicker({ value: valueProp, defaultValue, onChange, label, h
95
95
 
96
96
  declare const labelVariants: (props?: ({
97
97
  size?: "sm" | "md" | "lg" | null | undefined;
98
- theme?: "inherit" | "primary" | "secondary" | "success" | "destructive" | "warning" | "info" | "slate" | null | undefined;
98
+ theme?: "primary" | "secondary" | "destructive" | "success" | "warning" | "info" | "slate" | "inherit" | null | undefined;
99
99
  } & class_variance_authority_types.ClassProp) | undefined) => string;
100
100
 
101
101
  interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelElement>, VariantProps<typeof labelVariants> {
@@ -2,7 +2,7 @@ import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from 'react';
3
3
  import React__default, { ReactNode } from 'react';
4
4
  import * as class_variance_authority_types from 'class-variance-authority/types';
5
- import './tooltip-C25-bG7o.js';
5
+ import './tooltip-CzF4au7i.js';
6
6
  import { e as TypographyVariant } from './typography-DOZHFR5A.js';
7
7
 
8
8
  type AlertTheme = 'default' | 'primary' | 'secondary' | 'success' | 'destructive' | 'warning' | 'info' | 'slate';
@@ -45,7 +45,7 @@ type SortContextValue = {
45
45
  };
46
46
 
47
47
  declare const alertVariants: (props?: ({
48
- theme?: "default" | "primary" | "secondary" | "success" | "destructive" | "warning" | "info" | "slate" | null | undefined;
48
+ theme?: "destructive" | "primary" | "secondary" | "warning" | "success" | "info" | "slate" | "default" | null | undefined;
49
49
  } & class_variance_authority_types.ClassProp) | undefined) => string;
50
50
 
51
51
  interface AlertProps extends VariantProps<typeof alertVariants> {
@@ -82,7 +82,7 @@ type AvatarFallbackProps = React.HTMLAttributes<HTMLSpanElement>;
82
82
  declare const AvatarFallback: React.ForwardRefExoticComponent<AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>>;
83
83
 
84
84
  declare const chipVariants: (props?: ({
85
- theme?: "inherit" | "primary" | "secondary" | "success" | "destructive" | "warning" | "info" | "slate" | null | undefined;
85
+ theme?: "destructive" | "inherit" | "primary" | "secondary" | "warning" | "success" | "info" | "slate" | null | undefined;
86
86
  variant?: "soft" | "outline" | "solid" | null | undefined;
87
87
  size?: "sm" | "md" | "2xs" | "xs" | null | undefined;
88
88
  shape?: "rounded" | "pill" | null | undefined;
@@ -111,7 +111,7 @@ interface ChipProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<
111
111
  declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<HTMLSpanElement>>;
112
112
 
113
113
  declare const codeBlockVariants: (props?: ({
114
- theme?: "default" | "primary" | "secondary" | "success" | "destructive" | "warning" | "info" | "slate" | null | undefined;
114
+ theme?: "destructive" | "primary" | "secondary" | "warning" | "success" | "info" | "slate" | "default" | null | undefined;
115
115
  size?: "sm" | "md" | "lg" | null | undefined;
116
116
  } & class_variance_authority_types.ClassProp) | undefined) => string;
117
117
 
@@ -184,7 +184,7 @@ declare function DialogPortal({ children }: {
184
184
  }): React.JSX.Element;
185
185
 
186
186
  declare const emptyStateVariants: (props?: ({
187
- theme?: "default" | "primary" | "secondary" | "success" | "destructive" | "warning" | "info" | "slate" | null | undefined;
187
+ theme?: "destructive" | "primary" | "secondary" | "warning" | "success" | "info" | "slate" | "default" | null | undefined;
188
188
  size?: "sm" | "md" | "lg" | null | undefined;
189
189
  } & class_variance_authority_types.ClassProp) | undefined) => string;
190
190
 
@@ -202,7 +202,7 @@ declare const EmptyState: React.ForwardRefExoticComponent<EmptyStateProps & Reac
202
202
 
203
203
  declare const iconVariants: (props?: ({
204
204
  variant?: "outlined" | "contained" | "ghost" | "plain" | null | undefined;
205
- theme?: "inherit" | "primary" | "secondary" | "success" | "destructive" | "warning" | "info" | "slate" | null | undefined;
205
+ theme?: "destructive" | "inherit" | "primary" | "secondary" | "warning" | "success" | "info" | "slate" | null | undefined;
206
206
  size?: "sm" | "md" | "lg" | "xs" | null | undefined;
207
207
  rounded?: boolean | "extra" | null | undefined;
208
208
  } & class_variance_authority_types.ClassProp) | undefined) => string;
@@ -262,7 +262,7 @@ declare const ListItem: React.ForwardRefExoticComponent<ListItemProps & React.Re
262
262
  declare const Pagination: React.ForwardRefExoticComponent<PaginationProps & React.RefAttributes<HTMLElement>>;
263
263
 
264
264
  declare const progressBarVariants: (props?: ({
265
- theme?: "inherit" | "primary" | "secondary" | "success" | "destructive" | "warning" | "info" | "slate" | null | undefined;
265
+ theme?: "destructive" | "inherit" | "primary" | "secondary" | "warning" | "success" | "info" | "slate" | null | undefined;
266
266
  size?: "sm" | "md" | "lg" | "xs" | null | undefined;
267
267
  rounded?: boolean | null | undefined;
268
268
  animated?: boolean | null | undefined;
@@ -314,7 +314,7 @@ interface StatCardProps extends React.ComponentPropsWithoutRef<'div'> {
314
314
  declare const StatCard: React.ForwardRefExoticComponent<StatCardProps & React.RefAttributes<HTMLDivElement>>;
315
315
 
316
316
  declare const statusDotVariants: (props?: ({
317
- theme?: "inherit" | "primary" | "secondary" | "success" | "destructive" | "warning" | "info" | "slate" | null | undefined;
317
+ theme?: "destructive" | "inherit" | "primary" | "secondary" | "warning" | "success" | "info" | "slate" | null | undefined;
318
318
  size?: "sm" | "md" | "lg" | null | undefined;
319
319
  glow?: boolean | null | undefined;
320
320
  pulse?: boolean | null | undefined;
@@ -340,7 +340,7 @@ interface StatusDotProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'co
340
340
  declare const StatusDot: React.ForwardRefExoticComponent<StatusDotProps & React.RefAttributes<HTMLSpanElement>>;
341
341
 
342
342
  declare const stepProgressVariants: (props?: ({
343
- theme?: "inherit" | "primary" | "secondary" | "success" | "destructive" | "warning" | "info" | "slate" | null | undefined;
343
+ theme?: "destructive" | "inherit" | "primary" | "secondary" | "warning" | "success" | "info" | "slate" | null | undefined;
344
344
  size?: "sm" | "md" | "lg" | null | undefined;
345
345
  orientation?: "horizontal" | "vertical" | null | undefined;
346
346
  stretch?: boolean | null | undefined;
@@ -363,7 +363,7 @@ interface StepProgressProps extends Omit<React.HTMLAttributes<HTMLOListElement>,
363
363
  declare const StepProgress: React.ForwardRefExoticComponent<StepProgressProps & React.RefAttributes<HTMLOListElement>>;
364
364
 
365
365
  declare const switchVariants: (props?: ({
366
- theme?: "inherit" | "primary" | "secondary" | "success" | "destructive" | "warning" | "info" | "slate" | null | undefined;
366
+ theme?: "destructive" | "inherit" | "primary" | "secondary" | "warning" | "success" | "info" | "slate" | null | undefined;
367
367
  size?: "sm" | "md" | "lg" | null | undefined;
368
368
  } & class_variance_authority_types.ClassProp) | undefined) => string;
369
369
 
@@ -457,7 +457,7 @@ declare const TableToolbar: React.ForwardRefExoticComponent<TableToolbarProps &
457
457
 
458
458
  declare const toggleVariants: (props?: ({
459
459
  variant?: "outlined" | "contained" | "ghost" | null | undefined;
460
- theme?: "inherit" | "primary" | "secondary" | "success" | "destructive" | "warning" | "info" | "slate" | null | undefined;
460
+ theme?: "destructive" | "inherit" | "primary" | "secondary" | "warning" | "success" | "info" | "slate" | null | undefined;
461
461
  size?: "sm" | "md" | "lg" | "xs" | null | undefined;
462
462
  iconOnly?: boolean | null | undefined;
463
463
  rounded?: boolean | "extra" | null | undefined;
@@ -0,0 +1,120 @@
1
+ import * as React from 'react';
2
+ import React__default from 'react';
3
+ import './input-CWHXOpeH.js';
4
+ import { VariantProps } from 'class-variance-authority';
5
+ import * as class_variance_authority_types from 'class-variance-authority/types';
6
+
7
+ type DatePickerProps = {
8
+ value?: string;
9
+ defaultValue?: string;
10
+ onChange?: (value: string) => void;
11
+ label?: React__default.ReactNode;
12
+ helperText?: React__default.ReactNode;
13
+ error?: boolean;
14
+ disabled?: boolean;
15
+ sizeVariant?: 'sm' | 'md';
16
+ placeholder?: string;
17
+ min?: string;
18
+ max?: string;
19
+ required?: boolean;
20
+ id?: string;
21
+ className?: string;
22
+ name?: string;
23
+ };
24
+
25
+ type SelectAlign = 'start' | 'center' | 'end';
26
+ type SelectSide = 'top' | 'bottom' | 'left' | 'right';
27
+ type SelectPosition = 'item-aligned' | 'popper';
28
+ type SelectProps = {
29
+ open?: boolean;
30
+ defaultOpen?: boolean;
31
+ onOpenChange?: (open: boolean) => void;
32
+ value?: string;
33
+ defaultValue?: string;
34
+ onValueChange?: (value: string) => void;
35
+ disabled?: boolean;
36
+ required?: boolean;
37
+ name?: string;
38
+ children?: React__default.ReactNode;
39
+ };
40
+ type SelectContentProps = React__default.HTMLAttributes<HTMLDivElement> & {
41
+ position?: SelectPosition;
42
+ align?: SelectAlign;
43
+ side?: SelectSide;
44
+ sideOffset?: number;
45
+ collisionPadding?: number;
46
+ };
47
+ type SelectFieldContentProps = Pick<SelectContentProps, 'align' | 'className' | 'collisionPadding' | 'side' | 'sideOffset'>;
48
+ type SelectFieldBaseProps = Omit<SelectProps, 'value' | 'defaultValue' | 'onValueChange'> & {
49
+ 'aria-required'?: boolean;
50
+ label?: React__default.ReactNode;
51
+ helperText?: React__default.ReactNode;
52
+ error?: boolean;
53
+ placeholder?: string;
54
+ fieldClassName?: string;
55
+ contentProps?: SelectFieldContentProps;
56
+ id?: string;
57
+ children?: React__default.ReactNode;
58
+ sizeVariant?: 'sm' | 'md';
59
+ searchThreshold?: number;
60
+ };
61
+ type SingleSelectFieldProps = SelectFieldBaseProps & {
62
+ multiple?: false;
63
+ value?: string;
64
+ defaultValue?: string;
65
+ onValueChange?: (value: string) => void;
66
+ };
67
+ type MultiSelectFieldProps = SelectFieldBaseProps & {
68
+ multiple: true;
69
+ value?: string[];
70
+ defaultValue?: string[];
71
+ onValueChange?: (value: string[]) => void;
72
+ };
73
+ type SelectFieldProps = SingleSelectFieldProps | MultiSelectFieldProps;
74
+
75
+ type FormTheme = 'inherit' | 'primary' | 'secondary' | 'destructive' | 'warning' | 'success' | 'info' | 'slate';
76
+
77
+ type CheckedState = boolean | 'indeterminate';
78
+ interface CheckboxProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'onChange' | 'value' | 'defaultValue' | 'defaultChecked'> {
79
+ theme?: FormTheme;
80
+ destructive?: boolean;
81
+ checked?: CheckedState;
82
+ defaultChecked?: CheckedState;
83
+ onCheckedChange?: (checked: CheckedState) => void;
84
+ value?: string;
85
+ name?: string;
86
+ required?: boolean;
87
+ /** Optional inline label rendered to the right of the checkbox and associated via htmlFor. */
88
+ label?: React.ReactNode;
89
+ /** Optional helper / validation text rendered beneath the checkbox + label row. */
90
+ helperText?: React.ReactNode;
91
+ }
92
+ declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLButtonElement>>;
93
+
94
+ declare function DatePicker({ value: valueProp, defaultValue, onChange, label, helperText, error, disabled, sizeVariant, placeholder, min, max, required, id, className, name, }: DatePickerProps): React.JSX.Element;
95
+
96
+ declare const labelVariants: (props?: ({
97
+ size?: "sm" | "md" | "lg" | null | undefined;
98
+ theme?: "destructive" | "inherit" | "primary" | "secondary" | "warning" | "success" | "info" | "slate" | null | undefined;
99
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
100
+
101
+ interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelElement>, VariantProps<typeof labelVariants> {
102
+ theme?: FormTheme;
103
+ }
104
+ declare const Label: React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<HTMLLabelElement>>;
105
+
106
+ declare function Select({ open: openProp, defaultOpen, onOpenChange, value: valueProp, defaultValue, onValueChange, disabled, children, ...props }: SelectProps): React.JSX.Element;
107
+ declare function SelectGroup({ ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
108
+ declare function SelectValue({ children, placeholder, ...props }: React.HTMLAttributes<HTMLSpanElement> & {
109
+ placeholder?: React.ReactNode;
110
+ }): React.JSX.Element;
111
+ declare function SelectTrigger({ className, children, onClick, onKeyDown, type, ...props }: React.ButtonHTMLAttributes<HTMLButtonElement>): React.JSX.Element;
112
+ declare function SelectContent({ align, className, children, collisionPadding, onKeyDown, position, side, sideOffset, ...props }: SelectContentProps): React.JSX.Element;
113
+ declare function SelectItem({ className, children, disabled, onClick, onMouseMove, value, ...props }: React.ButtonHTMLAttributes<HTMLButtonElement> & {
114
+ value: string;
115
+ }): React.JSX.Element;
116
+ declare function SelectSeparator({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
117
+ declare function SelectField(props: SelectFieldProps): React.JSX.Element;
118
+
119
+ export { Checkbox as C, DatePicker as D, Label as L, Select as S, SelectContent as e, SelectField as g, SelectGroup as i, SelectItem as j, SelectSeparator as m, SelectTrigger as o, SelectValue as p };
120
+ export type { FormTheme as F, CheckboxProps as a, DatePickerProps as b, LabelProps as c, SelectAlign as d, SelectContentProps as f, SelectFieldProps as h, SelectPosition as k, SelectProps as l, SelectSide as n };