@conscia-labs/design-system 0.4.0 → 1.0.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.
@@ -1,32 +1,56 @@
1
1
  import * as class_variance_authority_types from 'class-variance-authority/types';
2
2
  import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
- import * as AvatarPrimitive from '@radix-ui/react-avatar';
5
- import { B as Button, C as Card, a as CardContent, b as CardDescription, c as CardHeader, d as CardTitle, I as Input } from '../card-BFUHJgV-.js';
6
- export { S as Separator, e as buttonVariants } from '../card-BFUHJgV-.js';
7
- import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
8
- import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
9
- import * as SelectPrimitive from '@radix-ui/react-select';
10
- import * as SwitchPrimitive from '@radix-ui/react-switch';
11
- import * as DialogPrimitive from '@radix-ui/react-dialog';
12
- import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
13
- import * as LabelPrimitive from '@radix-ui/react-label';
14
- import * as TabsPrimitive from '@radix-ui/react-tabs';
15
- import * as TooltipPrimitive from '@radix-ui/react-tooltip';
4
+ import { AlertDialog as AlertDialog$1 } from '@base-ui/react/alert-dialog';
5
+ import { B as Button, C as Card, b as CardContent, c as CardDescription, d as CardFooter, e as CardHeader, h as CardTitle, I as IconButton, j as Input, a as ButtonProps } from '../card-DmBKqvj_.js';
6
+ export { f as CardHeaderProps, g as CardProps, i as IconButtonProps, S as Separator, k as SeparatorProps, l as buttonVariants, m as cardVariants } from '../card-DmBKqvj_.js';
7
+ import { Checkbox as Checkbox$1 } from '@base-ui/react/checkbox';
8
+ import { Collapsible as Collapsible$1 } from '@base-ui/react/collapsible';
9
+ import { Select as Select$1 } from '@base-ui/react/select';
10
+ import { Switch as Switch$1 } from '@base-ui/react/switch';
11
+ import { Dialog as Dialog$1 } from '@base-ui/react/dialog';
12
+ import { Menu } from '@base-ui/react/menu';
13
+ import { Popover as Popover$1 } from '@base-ui/react/popover';
14
+ import { Drawer } from '@base-ui/react/drawer';
15
+ import { Tabs as Tabs$1 } from '@base-ui/react/tabs';
16
+ import { ToastObject } from '@base-ui/react/toast';
17
+ import { Tooltip as Tooltip$1 } from '@base-ui/react/tooltip';
16
18
  export { cn } from '../utils/index.js';
17
- import '@radix-ui/react-separator';
19
+ import '@base-ui/react/use-render';
18
20
  import 'clsx';
19
21
 
20
22
  declare const alertVariants: (props?: ({
21
23
  variant?: "default" | "success" | "warning" | "danger" | "information" | null | undefined;
22
24
  } & class_variance_authority_types.ClassProp) | undefined) => string;
23
- declare function Alert({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>): React.JSX.Element;
25
+ type AlertProps = React.ComponentProps<"div"> & VariantProps<typeof alertVariants>;
26
+ declare function Alert({ children, className, variant, role, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, ...props }: AlertProps): React.JSX.Element;
24
27
  declare function AlertTitle({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
25
28
  declare function AlertDescription({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
26
29
 
27
- declare function Avatar({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Root>): React.JSX.Element;
28
- declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>): React.JSX.Element;
29
- declare function AvatarFallback({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Fallback>): React.JSX.Element;
30
+ declare function AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialog$1.Root>): React.JSX.Element;
31
+ declare function AlertDialogTrigger({ ...props }: React.ComponentProps<typeof AlertDialog$1.Trigger>): React.JSX.Element;
32
+ declare function AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialog$1.Portal>): React.JSX.Element;
33
+ declare function AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialog$1.Backdrop>): React.JSX.Element;
34
+ declare function AlertDialogContent({ className, children, ...props }: React.ComponentProps<typeof AlertDialog$1.Popup>): React.JSX.Element;
35
+ declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
36
+ declare function AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof AlertDialog$1.Title>): React.JSX.Element;
37
+ declare function AlertDialogDescription({ className, ...props }: React.ComponentProps<typeof AlertDialog$1.Description>): React.JSX.Element;
38
+ declare function AlertDialogBody({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
39
+ declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
40
+ declare function AlertDialogCancel({ ...props }: React.ComponentProps<typeof AlertDialog$1.Close>): React.JSX.Element;
41
+ declare function AlertDialogAction({ ...props }: React.ComponentProps<typeof AlertDialog$1.Close>): React.JSX.Element;
42
+ declare function AlertDialogClose({ ...props }: React.ComponentProps<typeof AlertDialog$1.Close>): React.JSX.Element;
43
+
44
+ declare function Avatar({ children, className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
45
+ declare function AvatarImage({ alt, className, onError, onLoad, src, ...props }: React.ComponentProps<"img">): React.JSX.Element;
46
+ declare function AvatarFallback({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
47
+
48
+ type AvatarGroupProps = React.ComponentProps<"div"> & {
49
+ max?: number;
50
+ size?: "sm" | "default" | "lg";
51
+ total?: number;
52
+ };
53
+ declare function AvatarGroup({ children, className, max, size, total, ...props }: AvatarGroupProps): React.JSX.Element;
30
54
 
31
55
  declare const badgeVariants: (props?: ({
32
56
  variant?: "default" | "destructive" | "outline" | "secondary" | "neutral" | "success" | "warning" | "danger" | "information" | "accent" | "info" | null | undefined;
@@ -36,35 +60,56 @@ declare function Badge({ className, variant, ...props }: React.ComponentProps<"s
36
60
  type BrandIconProps = React.ComponentPropsWithoutRef<"svg">;
37
61
  declare function BrandIcon({ "aria-label": ariaLabel, className, ...props }: BrandIconProps): React.JSX.Element;
38
62
 
39
- declare function Checkbox({ className, ...props }: React.ComponentProps<typeof CheckboxPrimitive.Root>): React.JSX.Element;
63
+ type BrandWordmarkProps = React.ComponentPropsWithoutRef<"svg">;
64
+ declare function BrandWordmark({ "aria-label": ariaLabel, className, ...props }: BrandWordmarkProps): React.JSX.Element;
40
65
 
41
- declare function Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>): React.JSX.Element;
42
- declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Trigger>): React.JSX.Element;
43
- declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Content>): React.JSX.Element;
66
+ declare function Checkbox({ className, ...props }: React.ComponentProps<typeof Checkbox$1.Root>): React.JSX.Element;
44
67
 
45
- declare function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>): React.JSX.Element;
46
- declare function SelectGroup({ ...props }: React.ComponentProps<typeof SelectPrimitive.Group>): React.JSX.Element;
47
- declare function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>): React.JSX.Element;
48
- declare function SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
49
- size?: "sm" | "default";
68
+ declare function Collapsible({ open: controlledOpen, defaultOpen, onOpenChange, children, ...props }: React.ComponentProps<typeof Collapsible$1.Root>): React.JSX.Element;
69
+ declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof Collapsible$1.Trigger>): React.JSX.Element;
70
+ declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof Collapsible$1.Panel>): React.JSX.Element;
71
+
72
+ type SelectProps = Omit<React.ComponentProps<typeof Select$1.Root>, "onValueChange"> & {
73
+ onValueChange?: (value: string) => void;
74
+ };
75
+ declare function Select({ onValueChange, children, items, ...props }: SelectProps & {
76
+ children?: React.ReactNode;
77
+ items?: React.ComponentProps<typeof Select$1.Root>["items"];
50
78
  }): React.JSX.Element;
51
- declare function SelectContent({ className, children, position, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>): React.JSX.Element;
52
- declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>): React.JSX.Element;
53
- declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>): React.JSX.Element;
54
- declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>): React.JSX.Element;
55
- declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): React.JSX.Element;
56
- declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): React.JSX.Element;
57
-
58
- declare function Switch({ className, size, ...props }: React.ComponentProps<typeof SwitchPrimitive.Root> & {
79
+ declare function SelectGroup({ ...props }: React.ComponentProps<typeof Select$1.Group>): React.JSX.Element;
80
+ declare function SelectValue({ ...props }: React.ComponentProps<typeof Select$1.Value>): React.JSX.Element;
81
+ declare function SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof Select$1.Trigger> & {
59
82
  size?: "sm" | "default";
60
83
  }): React.JSX.Element;
84
+ declare function SelectContent({ className, children, ...props }: React.ComponentProps<typeof Select$1.Popup>): React.JSX.Element;
85
+ declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof Select$1.Item>): React.JSX.Element;
86
+ declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof Select$1.GroupLabel>): React.JSX.Element;
87
+ declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof Select$1.Separator>): React.JSX.Element;
88
+ declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof Select$1.ScrollUpArrow>): React.JSX.Element;
89
+ declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof Select$1.ScrollDownArrow>): React.JSX.Element;
90
+
91
+ type SwitchProps = Omit<React.ComponentProps<typeof Switch$1.Root>, "children"> & {
92
+ size?: "sm" | "default";
93
+ /** The text shown in the track when the switch is checked. */
94
+ onLabel?: React.ReactNode;
95
+ /** The text shown in the track when the switch is unchecked. */
96
+ offLabel?: React.ReactNode;
97
+ };
98
+ type LabeledSwitchProps = Omit<SwitchProps, "onLabel" | "offLabel"> & {
99
+ onLabel?: React.ReactNode;
100
+ offLabel?: React.ReactNode;
101
+ };
102
+ declare function Switch({ className, size, onLabel, offLabel, ...props }: SwitchProps): React.JSX.Element;
103
+ declare function LabeledSwitch({ onLabel, offLabel, ...props }: LabeledSwitchProps): React.JSX.Element;
61
104
 
62
105
  declare function Table({ className, ...props }: React.ComponentProps<"table">): React.JSX.Element;
63
106
  declare function TableHeader({ className, ...props }: React.ComponentProps<"thead">): React.JSX.Element;
64
107
  declare function TableBody({ className, ...props }: React.ComponentProps<"tbody">): React.JSX.Element;
108
+ declare function TableFooter({ className, ...props }: React.ComponentProps<"tfoot">): React.JSX.Element;
65
109
  declare function TableRow({ className, ...props }: React.ComponentProps<"tr">): React.JSX.Element;
66
110
  declare function TableHead({ className, ...props }: React.ComponentProps<"th">): React.JSX.Element;
67
111
  declare function TableCell({ className, ...props }: React.ComponentProps<"td">): React.JSX.Element;
112
+ declare function TableCaption({ className, ...props }: React.ComponentProps<"caption">): React.JSX.Element;
68
113
 
69
114
  declare function Textarea({ className, ...props }: React.ComponentProps<"textarea">): React.JSX.Element;
70
115
 
@@ -73,7 +118,7 @@ declare function Textarea({ className, ...props }: React.ComponentProps<"textare
73
118
  * clean primitive names from @conscia-labs/design-system.
74
119
  */
75
120
  declare const ConsciaButton: typeof Button;
76
- declare function ConsciaIconButton({ size, ...props }: React.ComponentProps<typeof Button>): React.JSX.Element;
121
+ declare const ConsciaIconButton: typeof IconButton;
77
122
  declare const ConsciaCard: typeof Card;
78
123
  declare const ConsciaCardContent: typeof CardContent;
79
124
  declare const ConsciaCardDescription: typeof CardDescription;
@@ -81,6 +126,7 @@ declare function ConsciaCardHeader({ actionRight, className, children, ...props
81
126
  actionRight?: React.ReactNode;
82
127
  }): React.JSX.Element;
83
128
  declare const ConsciaCardTitle: typeof CardTitle;
129
+ declare const ConsciaCardFooter: typeof CardFooter;
84
130
  declare const ConsciaCheckbox: typeof Checkbox;
85
131
  declare const ConsciaInput: typeof Input;
86
132
  declare const ConsciaSwitch: typeof Switch;
@@ -98,37 +144,42 @@ declare const ConsciaTableHeader: typeof TableHeader;
98
144
  declare const ConsciaTableHead: typeof TableHead;
99
145
  declare const ConsciaTableRow: typeof TableRow;
100
146
 
101
- declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): React.JSX.Element;
102
- declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): React.JSX.Element;
103
- declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): React.JSX.Element;
104
- declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): React.JSX.Element;
105
- declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): React.JSX.Element;
106
- declare function DialogContent({ className, children, showCloseButton, size, closeLabel, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
147
+ declare function Dialog({ ...props }: React.ComponentProps<typeof Dialog$1.Root>): React.JSX.Element;
148
+ declare function DialogTrigger({ ...props }: React.ComponentProps<typeof Dialog$1.Trigger>): React.JSX.Element;
149
+ declare function DialogClose({ ...props }: React.ComponentProps<typeof Dialog$1.Close>): React.JSX.Element;
150
+ declare function DialogPortal({ ...props }: React.ComponentProps<typeof Dialog$1.Portal>): React.JSX.Element;
151
+ declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof Dialog$1.Backdrop>): React.JSX.Element;
152
+ declare function DialogContent({ className, children, showCloseButton, size, closeLabel, ...props }: React.ComponentProps<typeof Dialog$1.Popup> & {
107
153
  showCloseButton?: boolean;
108
154
  size?: "small" | "default" | "large";
109
155
  closeLabel?: string;
110
156
  }): React.JSX.Element;
111
157
  declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
112
- declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): React.JSX.Element;
113
- declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): React.JSX.Element;
158
+ declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof Dialog$1.Title>): React.JSX.Element;
159
+ declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof Dialog$1.Description>): React.JSX.Element;
114
160
  declare function DialogBody({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
115
161
  declare function DialogFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
116
162
 
117
- declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): React.JSX.Element;
118
- declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>): React.JSX.Element;
119
- declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>): React.JSX.Element;
120
- declare function DropdownMenuSubTrigger({ className, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger>): React.JSX.Element;
121
- declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): React.JSX.Element;
122
- declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): React.JSX.Element;
123
- declare function DropdownMenuContent({ className, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>): React.JSX.Element;
124
- declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
163
+ declare function DropdownMenu({ ...props }: React.ComponentProps<typeof Menu.Root>): React.JSX.Element;
164
+ declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof Menu.Group>): React.JSX.Element;
165
+ declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof Menu.SubmenuRoot>): React.JSX.Element;
166
+ declare function DropdownMenuSubTrigger({ className, children, ...props }: React.ComponentProps<typeof Menu.SubmenuTrigger>): React.JSX.Element;
167
+ declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof Menu.Popup>): React.JSX.Element;
168
+ declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof Menu.Trigger>): React.JSX.Element;
169
+ declare function DropdownMenuContent({ className, sideOffset, side, align, ...props }: React.ComponentProps<typeof Menu.Popup> & {
170
+ sideOffset?: number;
171
+ side?: React.ComponentProps<typeof Menu.Positioner>["side"];
172
+ align?: React.ComponentProps<typeof Menu.Positioner>["align"];
173
+ }): React.JSX.Element;
174
+ declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof Menu.Item> & {
125
175
  inset?: boolean;
126
176
  variant?: "default" | "destructive";
127
177
  }): React.JSX.Element;
128
- declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
178
+ declare function DropdownMenuLinkItem({ className, ...props }: React.ComponentProps<typeof Menu.LinkItem>): React.JSX.Element;
179
+ declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<"div"> & {
129
180
  inset?: boolean;
130
181
  }): React.JSX.Element;
131
- declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): React.JSX.Element;
182
+ declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof Menu.Separator>): React.JSX.Element;
132
183
 
133
184
  declare function Field({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
134
185
  declare function FieldGroup({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
@@ -136,6 +187,14 @@ declare function FieldLabel({ className, ...props }: React.ComponentProps<"label
136
187
  declare function FieldDescription({ className, ...props }: React.ComponentProps<"p">): React.JSX.Element;
137
188
  declare function FieldError({ className, ...props }: React.ComponentProps<"p">): React.JSX.Element;
138
189
 
190
+ type FilterChipProps = React.ComponentProps<"div"> & {
191
+ label: React.ReactNode;
192
+ onRemove?: () => void;
193
+ removeLabel?: string;
194
+ value?: React.ReactNode;
195
+ };
196
+ declare function FilterChip({ className, label, onRemove, removeLabel, value, ...props }: FilterChipProps): React.JSX.Element;
197
+
139
198
  type FormSelectOption = {
140
199
  value: string;
141
200
  label: React.ReactNode;
@@ -160,7 +219,28 @@ type FormSelectProps = {
160
219
  declare function FormSelect({ name, id, value, defaultValue, required, disabled, placeholder, options, className, triggerClassName, contentClassName, onValueChange, onClick, "aria-label": ariaLabel, }: FormSelectProps): React.JSX.Element;
161
220
  declare const ConsciaFormSelect: typeof FormSelect;
162
221
 
163
- declare function Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>): React.JSX.Element;
222
+ declare function Label({ className, ...props }: React.ComponentProps<"label">): React.JSX.Element;
223
+
224
+ type LoadingButtonProps = Omit<ButtonProps, "children"> & {
225
+ children: React.ReactNode;
226
+ pending?: boolean;
227
+ pendingLabel?: React.ReactNode;
228
+ };
229
+ /**
230
+ * Keeps async actions visually stable and prevents duplicate submissions while
231
+ * the owning mutation is pending.
232
+ */
233
+ declare function LoadingButton({ children, pending, pendingLabel, disabled, ...props }: LoadingButtonProps): React.JSX.Element;
234
+
235
+ declare function Popover({ ...props }: React.ComponentProps<typeof Popover$1.Root>): React.JSX.Element;
236
+ declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof Popover$1.Trigger>): React.JSX.Element;
237
+ declare function PopoverPortal({ ...props }: React.ComponentProps<typeof Popover$1.Portal>): React.JSX.Element;
238
+ declare function PopoverPositioner({ className, ...props }: React.ComponentProps<typeof Popover$1.Positioner>): React.JSX.Element;
239
+ declare function PopoverContent({ className, children, ...props }: React.ComponentProps<typeof Popover$1.Popup>): React.JSX.Element;
240
+ declare function PopoverArrow({ ...props }: React.ComponentProps<typeof Popover$1.Arrow>): React.JSX.Element;
241
+ declare function PopoverTitle({ className, ...props }: React.ComponentProps<typeof Popover$1.Title>): React.JSX.Element;
242
+ declare function PopoverDescription({ className, ...props }: React.ComponentProps<typeof Popover$1.Description>): React.JSX.Element;
243
+ declare function PopoverClose({ ...props }: React.ComponentProps<typeof Popover$1.Close>): React.JSX.Element;
164
244
 
165
245
  type SearchableSelectOption = {
166
246
  value: string;
@@ -185,56 +265,121 @@ type SearchableSelectProps = {
185
265
  className?: string;
186
266
  "aria-label"?: string;
187
267
  };
188
- declare function SearchableSelect({ id, name, value, options, onValueChange, placeholder, searchPlaceholder, emptyMessage, disabled, clearable, clearLabel, optionsLabel, className, "aria-label": ariaLabel, }: SearchableSelectProps): React.JSX.Element;
189
-
190
- declare function Sheet({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): React.JSX.Element;
191
- declare function SheetTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): React.JSX.Element;
192
- declare function SheetPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): React.JSX.Element;
193
- declare function SheetClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): React.JSX.Element;
194
- declare function SheetOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): React.JSX.Element;
195
- declare const sheetSideClasses: {
196
- top: string;
197
- right: string;
198
- bottom: string;
199
- left: string;
200
- };
201
- declare function SheetContent({ className, children, side, closeLabel, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
202
- side?: keyof typeof sheetSideClasses;
268
+ declare function SearchableSelect({ id, name, value, options, onValueChange, placeholder, searchPlaceholder, emptyMessage, disabled, clearable, clearLabel, optionsLabel, className, "aria-label": ariaLabel }: SearchableSelectProps): React.JSX.Element;
269
+
270
+ type SheetSide = "top" | "right" | "bottom" | "left";
271
+ type SheetProps = React.ComponentProps<typeof Drawer.Root> & {
272
+ /** Sets the panel position and the corresponding swipe-to-dismiss direction. */
273
+ side?: SheetSide;
274
+ };
275
+ declare function Sheet({ side, swipeDirection, ...props }: SheetProps): React.JSX.Element;
276
+ declare function SheetTrigger({ ...props }: React.ComponentProps<typeof Drawer.Trigger>): React.JSX.Element;
277
+ declare function SheetPortal({ ...props }: React.ComponentProps<typeof Drawer.Portal>): React.JSX.Element;
278
+ declare function SheetClose({ ...props }: React.ComponentProps<typeof Drawer.Close>): React.JSX.Element;
279
+ declare function SheetOverlay({ className, ...props }: React.ComponentProps<typeof Drawer.Backdrop>): React.JSX.Element;
280
+ declare function SheetContent({ className, children, side: sideProp, closeLabel, ...props }: React.ComponentProps<typeof Drawer.Popup> & {
281
+ side?: SheetSide;
203
282
  closeLabel?: string;
204
283
  }): React.JSX.Element;
205
284
  declare function SheetHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
206
- declare function SheetTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): React.JSX.Element;
207
- declare function SheetDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): React.JSX.Element;
208
- declare function SheetBody({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
285
+ declare function SheetTitle({ className, ...props }: React.ComponentProps<typeof Drawer.Title>): React.JSX.Element;
286
+ declare function SheetDescription({ className, ...props }: React.ComponentProps<typeof Drawer.Description>): React.JSX.Element;
287
+ declare function SheetBody({ className, ...props }: React.ComponentProps<typeof Drawer.Content>): React.JSX.Element;
209
288
  declare function SheetFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
210
289
 
211
- declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
290
+ declare function Skeleton({ "aria-hidden": ariaHidden, className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
291
+
292
+ type SpinnerProps = React.ComponentProps<"span"> & {
293
+ label?: string;
294
+ size?: "sm" | "default" | "lg";
295
+ };
296
+ declare function Spinner({ "aria-label": ariaLabel, className, label, size, ...props }: SpinnerProps): React.JSX.Element;
212
297
 
213
298
  type TabsVariant = "underline" | "segmented";
214
299
  type TabsSize = "default" | "compact";
215
- declare function Tabs({ className, variant, size, ...props }: React.ComponentProps<typeof TabsPrimitive.Root> & {
300
+ declare function Tabs({ className, variant, size, ...props }: React.ComponentProps<typeof Tabs$1.Root> & {
216
301
  variant?: TabsVariant;
217
302
  size?: TabsSize;
218
303
  }): React.JSX.Element;
219
- declare function TabsList({ className, variant, size, children, ref: externalRef, onScroll, ...props }: React.ComponentProps<typeof TabsPrimitive.List> & {
304
+ declare function TabsList({ className, variant, size, children, ref: externalRef, onScroll, ...props }: React.ComponentProps<typeof Tabs$1.List> & {
220
305
  variant?: TabsVariant;
221
306
  size?: TabsSize;
222
307
  }): React.JSX.Element;
223
- declare function TabsTrigger({ className, variant, size, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger> & {
308
+ declare function TabsTrigger({ className, variant, size, ...props }: React.ComponentProps<typeof Tabs$1.Tab> & {
224
309
  variant?: TabsVariant;
225
310
  size?: TabsSize;
226
311
  }): React.JSX.Element;
227
- declare function TabsContent({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Content>): React.JSX.Element;
312
+ declare function TabsContent({ className, ...props }: React.ComponentProps<typeof Tabs$1.Panel>): React.JSX.Element;
228
313
  declare function NavigationTabs({ className, ...props }: React.ComponentProps<"nav">): React.JSX.Element;
229
314
  declare function NavigationTabsList({ className, ref: externalRef, onScroll, ...props }: React.ComponentProps<"div">): React.JSX.Element;
230
- declare function NavigationTab({ className, active, asChild, ref: externalRef, ...props }: React.ComponentProps<"a"> & {
315
+ declare function NavigationTab({ className, active, ref: externalRef, ...props }: React.ComponentProps<"a"> & {
231
316
  active?: boolean;
232
- asChild?: boolean;
233
317
  }): React.JSX.Element;
234
318
 
235
- declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): React.JSX.Element;
236
- declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): React.JSX.Element;
237
- declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): React.JSX.Element;
238
- declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): React.JSX.Element;
319
+ type ToastVariant = "default" | "error" | "information" | "success" | "warning";
320
+ type ToastPriority = "high" | "low";
321
+ type ToastActionOptions = {
322
+ label: string;
323
+ onClick?: React.MouseEventHandler<HTMLButtonElement>;
324
+ };
325
+ type ToastOptions = {
326
+ action?: ToastActionOptions;
327
+ description?: React.ReactNode;
328
+ id?: string;
329
+ priority?: ToastPriority;
330
+ timeout?: number;
331
+ title: React.ReactNode;
332
+ variant?: ToastVariant;
333
+ };
334
+ type ToastUpdateOptions = Partial<ToastOptions>;
335
+ type ToastPromiseOptions<Value> = {
336
+ error: string | ToastOptions | ((error: unknown) => string | ToastOptions);
337
+ loading: string | ToastOptions;
338
+ success: string | ToastOptions | ((result: Value) => string | ToastOptions);
339
+ };
340
+ type ToastData = {
341
+ variant: ToastVariant;
342
+ };
343
+ type ToastProviderProps = {
344
+ children?: React.ReactNode;
345
+ limit?: number;
346
+ timeout?: number;
347
+ };
348
+ type ToastViewportProps = React.ComponentProps<"div"> & {
349
+ placement?: "bottom-end" | "bottom-start" | "top-end" | "top-start";
350
+ };
351
+ type ToastRecord = ToastObject<ToastData>;
352
+ declare function ToastProvider({ children, limit, timeout }: ToastProviderProps): React.JSX.Element;
353
+ declare function useToast(): {
354
+ add(options: ToastOptions): string;
355
+ close(id?: string): void;
356
+ update(id: string, options: ToastUpdateOptions): void;
357
+ promise<Value>(promise: Promise<Value>, options: ToastPromiseOptions<Value>): Promise<Value>;
358
+ };
359
+ declare function ToastViewport({ className, placement, ...props }: ToastViewportProps): React.JSX.Element;
360
+ declare function Toast({ children, className, toast, ...props }: React.ComponentProps<"div"> & {
361
+ toast: ToastRecord;
362
+ }): React.JSX.Element;
363
+ declare function ToastContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
364
+ declare function ToastTitle({ className, ...props }: React.ComponentProps<"h2">): React.JSX.Element;
365
+ declare function ToastDescription({ className, ...props }: React.ComponentProps<"p">): React.JSX.Element;
366
+ declare function ToastAction({ className, ...props }: React.ComponentProps<"button">): React.JSX.Element;
367
+ declare function ToastClose({ "aria-label": ariaLabel, children, className, ...props }: React.ComponentProps<"button">): React.JSX.Element;
368
+
369
+ declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof Tooltip$1.Provider> & {
370
+ delayDuration?: number;
371
+ }): React.JSX.Element;
372
+ declare function Tooltip({ ...props }: React.ComponentProps<typeof Tooltip$1.Root>): React.JSX.Element;
373
+ declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof Tooltip$1.Trigger>): React.JSX.Element;
374
+ declare function TooltipContent({ className, sideOffset, side, align, children, ...props }: React.ComponentProps<typeof Tooltip$1.Popup> & {
375
+ sideOffset?: number;
376
+ side?: React.ComponentProps<typeof Tooltip$1.Positioner>["side"];
377
+ align?: React.ComponentProps<typeof Tooltip$1.Positioner>["align"];
378
+ }): React.JSX.Element;
379
+
380
+ type ShortcutHintProps = React.ComponentProps<"kbd"> & {
381
+ label?: string;
382
+ };
383
+ declare function ShortcutHint({ "aria-label": ariaLabel, children, className, label, ...props }: ShortcutHintProps): React.JSX.Element;
239
384
 
240
- export { Alert, AlertDescription, AlertTitle, Avatar, AvatarFallback, AvatarImage, Badge, BrandIcon, type BrandIconProps, Button, Card, CardContent, CardDescription, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, ConsciaButton, ConsciaCard, ConsciaCardContent, ConsciaCardDescription, ConsciaCardHeader, ConsciaCardTitle, ConsciaCheckbox, ConsciaFormSelect, ConsciaIconButton, ConsciaInput, ConsciaSelect, ConsciaSelectContent, ConsciaSelectGroup, ConsciaSelectItem, ConsciaSelectTrigger, ConsciaSelectValue, ConsciaSwitch, ConsciaTable, ConsciaTableBody, ConsciaTableCell, ConsciaTableHead, ConsciaTableHeader, ConsciaTableRow, ConsciaTextarea, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Field, FieldDescription, FieldError, FieldGroup, FieldLabel, FormSelect, type FormSelectOption, type FormSelectProps, Input, Label, NavigationTab, NavigationTabs, NavigationTabsList, SearchableSelect, type SearchableSelectOption, type SearchableSelectProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, Switch, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, type TabsSize, TabsTrigger, type TabsVariant, Textarea, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, alertVariants, badgeVariants };
385
+ export { Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogBody, AlertDialogCancel, AlertDialogClose, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AlertTitle, Avatar, AvatarFallback, AvatarGroup, type AvatarGroupProps, AvatarImage, Badge, BrandIcon, type BrandIconProps, BrandWordmark, type BrandWordmarkProps, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, ConsciaButton, ConsciaCard, ConsciaCardContent, ConsciaCardDescription, ConsciaCardFooter, ConsciaCardHeader, ConsciaCardTitle, ConsciaCheckbox, ConsciaFormSelect, ConsciaIconButton, ConsciaInput, ConsciaSelect, ConsciaSelectContent, ConsciaSelectGroup, ConsciaSelectItem, ConsciaSelectTrigger, ConsciaSelectValue, ConsciaSwitch, ConsciaTable, ConsciaTableBody, ConsciaTableCell, ConsciaTableHead, ConsciaTableHeader, ConsciaTableRow, ConsciaTextarea, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuLinkItem, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Field, FieldDescription, FieldError, FieldGroup, FieldLabel, FilterChip, type FilterChipProps, FormSelect, type FormSelectOption, type FormSelectProps, IconButton, Input, Label, LabeledSwitch, type LabeledSwitchProps, LoadingButton, type LoadingButtonProps, NavigationTab, NavigationTabs, NavigationTabsList, Popover, PopoverArrow, PopoverClose, PopoverContent, PopoverDescription, PopoverPortal, PopoverPositioner, PopoverTitle, PopoverTrigger, SearchableSelect, type SearchableSelectOption, type SearchableSelectProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, ShortcutHint, type ShortcutHintProps, Skeleton, Spinner, type SpinnerProps, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, type TabsSize, TabsTrigger, type TabsVariant, Textarea, Toast, ToastAction, type ToastActionOptions, ToastClose, ToastContent, ToastDescription, type ToastOptions, type ToastPriority, type ToastPromiseOptions, ToastProvider, type ToastProviderProps, type ToastRecord, ToastTitle, type ToastUpdateOptions, type ToastVariant, ToastViewport, type ToastViewportProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, alertVariants, badgeVariants, useToast };