@kismet-ux/constellation 1.4.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?: "primary" | "secondary" | "destructive" | "warning" | "success" | "info" | "slate" | "inherit" | 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> {