@clidey/ux 0.22.0 → 0.24.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/index.d.ts +29 -11
- package/dist/index.js +1472 -1190
- package/dist/styles.css +1 -1
- package/package.json +18 -8
package/dist/index.d.ts
CHANGED
|
@@ -126,7 +126,7 @@ export declare function ContextMenuCheckboxItem({ className, children, checked,
|
|
|
126
126
|
|
|
127
127
|
export declare function ContextMenuContent({ className, ...props }: React_2.ComponentProps<typeof ContextMenuPrimitive.Content>): JSX.Element;
|
|
128
128
|
|
|
129
|
-
export declare function ContextMenuItem({ className, inset, variant, ...props }: React_2.ComponentProps<typeof ContextMenuPrimitive.Item> & {
|
|
129
|
+
export declare function ContextMenuItem({ className, inset, variant, disabled, onClick, ...props }: React_2.ComponentProps<typeof ContextMenuPrimitive.Item> & {
|
|
130
130
|
inset?: boolean;
|
|
131
131
|
variant?: "default" | "destructive";
|
|
132
132
|
}): JSX.Element;
|
|
@@ -276,15 +276,17 @@ export declare function ResizableHandle({ withHandle, className, ...props }: Rea
|
|
|
276
276
|
withHandle?: boolean;
|
|
277
277
|
}): JSX.Element;
|
|
278
278
|
|
|
279
|
-
export declare function ResizablePanel({ ...props }: React_2.ComponentProps<typeof ResizablePrimitive.Panel>): JSX.Element;
|
|
279
|
+
export declare function ResizablePanel({ className, ...props }: React_2.ComponentProps<typeof ResizablePrimitive.Panel>): JSX.Element;
|
|
280
280
|
|
|
281
|
-
export declare function ResizablePanelGroup({ className, ...props }: React_2.ComponentProps<typeof ResizablePrimitive.PanelGroup>): JSX.Element;
|
|
281
|
+
export declare function ResizablePanelGroup({ className, direction, ...props }: React_2.ComponentProps<typeof ResizablePrimitive.PanelGroup>): JSX.Element;
|
|
282
282
|
|
|
283
283
|
export declare function ScrollArea({ className, children, ...props }: React_2.ComponentProps<typeof ScrollAreaPrimitive.Root>): JSX.Element;
|
|
284
284
|
|
|
285
|
+
export declare function ScrollBar({ className, orientation, ...props }: React_2.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): JSX.Element;
|
|
286
|
+
|
|
285
287
|
export declare function SearchInput({ className, ...props }: React_2.ComponentProps<"input">): JSX.Element;
|
|
286
288
|
|
|
287
|
-
export declare function SearchSelect({ options, placeholder, searchPlaceholder, value, onChange, buttonClassName, contentClassName, disabled, extraOptions, side, align, onlyIcon, label, inputProps, buttonProps, }: SearchSelectProps): JSX.Element;
|
|
289
|
+
export declare function SearchSelect({ options, placeholder, searchPlaceholder, value, defaultValue, onChange, onValueChange, notFoundMessage, buttonClassName, contentClassName, disabled, extraOptions, side, align, onlyIcon, label, inputProps, buttonProps, }: SearchSelectProps): JSX.Element;
|
|
288
290
|
|
|
289
291
|
declare type SearchSelectOption = {
|
|
290
292
|
value: string;
|
|
@@ -298,7 +300,10 @@ declare type SearchSelectProps = {
|
|
|
298
300
|
placeholder?: string;
|
|
299
301
|
searchPlaceholder?: string;
|
|
300
302
|
value?: string;
|
|
303
|
+
defaultValue?: string;
|
|
301
304
|
onChange?: (value: string) => void;
|
|
305
|
+
onValueChange?: (value: string) => void;
|
|
306
|
+
notFoundMessage?: string;
|
|
302
307
|
buttonClassName?: string;
|
|
303
308
|
contentClassName?: string;
|
|
304
309
|
disabled?: boolean;
|
|
@@ -321,6 +326,8 @@ export declare function SelectItem({ className, children, ...props }: React_2.Co
|
|
|
321
326
|
|
|
322
327
|
export declare function SelectLabel({ className, ...props }: React_2.ComponentProps<typeof SelectPrimitive.Label>): JSX.Element;
|
|
323
328
|
|
|
329
|
+
export declare function SelectSeparator({ className, ...props }: React_2.ComponentProps<typeof SelectPrimitive.Separator>): JSX.Element;
|
|
330
|
+
|
|
324
331
|
export declare function SelectTrigger({ className, size, children, ...props }: React_2.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
325
332
|
size?: "sm" | "default";
|
|
326
333
|
}): JSX.Element;
|
|
@@ -365,7 +372,9 @@ declare type SidebarContextProps = {
|
|
|
365
372
|
|
|
366
373
|
export declare function SidebarFooter({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
367
374
|
|
|
368
|
-
export declare function SidebarGroup({ className, ...props }: React_2.ComponentProps<"div">
|
|
375
|
+
export declare function SidebarGroup({ className, collapsible, ...props }: React_2.ComponentProps<"div"> & {
|
|
376
|
+
collapsible?: boolean;
|
|
377
|
+
}): JSX.Element;
|
|
369
378
|
|
|
370
379
|
export declare function SidebarGroupAction({ className, asChild, ...props }: React_2.ComponentProps<"button"> & {
|
|
371
380
|
asChild?: boolean;
|
|
@@ -465,15 +474,15 @@ declare type StackListProps = {
|
|
|
465
474
|
|
|
466
475
|
export declare function Switch({ className, ...props }: React_2.ComponentProps<typeof SwitchPrimitive.Root>): JSX.Element;
|
|
467
476
|
|
|
468
|
-
export declare function Table({ className, ...props }: React_2.ComponentProps<"table">): JSX.Element;
|
|
477
|
+
export declare function Table({ className, style, ...props }: React_2.ComponentProps<"table">): JSX.Element;
|
|
469
478
|
|
|
470
479
|
export declare function TableBody({ className, ...props }: React_2.ComponentProps<"tbody">): JSX.Element;
|
|
471
480
|
|
|
472
481
|
export declare function TableCaption({ className, ...props }: React_2.ComponentProps<"caption">): JSX.Element;
|
|
473
482
|
|
|
474
|
-
export declare function TableCell({ className, ...props }: React_2.ComponentProps<"td">): JSX.Element;
|
|
483
|
+
export declare function TableCell({ className, children, ...props }: React_2.ComponentProps<"td">): JSX.Element;
|
|
475
484
|
|
|
476
|
-
export declare function TableHead({ className, ...props }: React_2.ComponentProps<"th"> & {
|
|
485
|
+
export declare function TableHead({ className, icon, children, ...props }: React_2.ComponentProps<"th"> & {
|
|
477
486
|
icon?: React_2.ReactNode;
|
|
478
487
|
}): JSX.Element;
|
|
479
488
|
|
|
@@ -508,7 +517,7 @@ declare type ThemeProviderState = {
|
|
|
508
517
|
|
|
509
518
|
export { toast }
|
|
510
519
|
|
|
511
|
-
export declare const Toaster: ({ ...props }: ToasterProps) => JSX.Element;
|
|
520
|
+
export declare const Toaster: ({ className, ...props }: ToasterProps) => JSX.Element;
|
|
512
521
|
|
|
513
522
|
export declare function Tooltip({ ...props }: React_2.ComponentProps<typeof TooltipPrimitive.Root>): JSX.Element;
|
|
514
523
|
|
|
@@ -540,14 +549,23 @@ export declare function useSidebar(): SidebarContextProps;
|
|
|
540
549
|
|
|
541
550
|
export declare const useTheme: () => ThemeProviderState;
|
|
542
551
|
|
|
543
|
-
|
|
552
|
+
/**
|
|
553
|
+
* Highly optimized VirtualizedTableBody
|
|
554
|
+
* - O(1) lookup for constant row height
|
|
555
|
+
* - O(log n) lookup for variable row height (via binary search on prefix sum cache)
|
|
556
|
+
* - requestAnimationFrame batching for scroll updates
|
|
557
|
+
*/
|
|
558
|
+
export declare function VirtualizedTableBody({ rowCount, rowHeight, height, className, style, overscan, children, }: VirtualizedTableBodyProps): JSX.Element;
|
|
544
559
|
|
|
545
560
|
declare type VirtualizedTableBodyProps = {
|
|
546
561
|
rowCount: number;
|
|
547
|
-
rowHeight?: number
|
|
562
|
+
rowHeight?: number | ((args: {
|
|
563
|
+
index: number;
|
|
564
|
+
}) => number);
|
|
548
565
|
height?: number;
|
|
549
566
|
className?: string;
|
|
550
567
|
style?: React_2.CSSProperties;
|
|
568
|
+
overscan?: number;
|
|
551
569
|
children: (index: number, style: React_2.CSSProperties) => React_2.ReactNode;
|
|
552
570
|
};
|
|
553
571
|
|