@pos-360/horizon 0.15.0 → 0.17.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/{chunk-6YUIM6WB.mjs → chunk-2PPZNXOQ.mjs} +268 -167
- package/dist/chunk-2PPZNXOQ.mjs.map +1 -0
- package/dist/{chunk-A4QVL4JL.mjs → chunk-DWMWKMZL.mjs} +29 -33
- package/dist/chunk-DWMWKMZL.mjs.map +1 -0
- package/dist/{chunk-YO72COII.js → chunk-ED6X5VKQ.js} +71 -7
- package/dist/chunk-ED6X5VKQ.js.map +1 -0
- package/dist/{chunk-AJP6WOSY.js → chunk-M3MFFZNO.js} +345 -244
- package/dist/chunk-M3MFFZNO.js.map +1 -0
- package/dist/{chunk-6CAMHXUV.js → chunk-YYVNGWHZ.js} +104 -108
- package/dist/chunk-YYVNGWHZ.js.map +1 -0
- package/dist/{chunk-E3UN74IA.mjs → chunk-ZI4BTIPU.mjs} +71 -9
- package/dist/chunk-ZI4BTIPU.mjs.map +1 -0
- package/dist/enhanced.d.mts +3 -0
- package/dist/enhanced.d.ts +3 -0
- package/dist/enhanced.js +28 -28
- package/dist/enhanced.mjs +2 -2
- package/dist/index.d.mts +3 -9
- package/dist/index.d.ts +3 -9
- package/dist/index.js +145 -141
- package/dist/index.mjs +3 -3
- package/dist/primitives.d.mts +38 -20
- package/dist/primitives.d.ts +38 -20
- package/dist/primitives.js +117 -113
- package/dist/primitives.mjs +2 -2
- package/dist/tooltip-wUBttbwG.d.mts +25 -0
- package/dist/tooltip-wUBttbwG.d.ts +25 -0
- package/package.json +1 -1
- package/dist/chunk-6CAMHXUV.js.map +0 -1
- package/dist/chunk-6YUIM6WB.mjs.map +0 -1
- package/dist/chunk-A4QVL4JL.mjs.map +0 -1
- package/dist/chunk-AJP6WOSY.js.map +0 -1
- package/dist/chunk-E3UN74IA.mjs.map +0 -1
- package/dist/chunk-YO72COII.js.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox,
|
|
2
|
-
export { AnimatedButton, ChartRenderer, CompactPanel, Dashboard, DashboardPanel, Globe, Input, LargePanel, MediumPanel, Moon, Orbit, Rocket, SideNav, SideNavFooter, SideNavHeader, SideNavItem, SideNavSection, Sparkles, Star, StatDisplay, TableRenderer, TemplateSelector, TextButton, Toast, useDashboardContext, useSideNavContext } from './chunk-
|
|
3
|
-
export { Badge, Caption, Code, Heading, Label, Text, badgeVariants, captionVariants, cn, codeVariants, headingVariants, labelVariants, textVariants } from './chunk-
|
|
1
|
+
export { Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, ColumnSelection, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Form, FormControl, FormDescription, FormField, FormLabel, FormMessage, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, SegmentedControl, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Skeleton, SkeletonAvatar, SkeletonBadge, SkeletonButton, SkeletonCard, SkeletonIcon, SkeletonInput, SkeletonSubtitle, SkeletonTableRow, SkeletonTableRows, SkeletonText, SkeletonTitle, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, TableRowCheckbox, TableSelectAll, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toggle, buttonVariants, segmentedControlItemVariants, segmentedControlVariants, separatorVariants, switchLabelVariants, switchThumbVariants, switchTrackVariants, toggleGroupVariants, toggleItemVariants, useColumnVisibility, useFormContext, useFormFieldContext, useTableSelection } from './chunk-2PPZNXOQ.mjs';
|
|
2
|
+
export { AnimatedButton, ChartRenderer, CompactPanel, Dashboard, DashboardPanel, Globe, Input, LargePanel, MediumPanel, Moon, Orbit, Rocket, SideNav, SideNavFooter, SideNavHeader, SideNavItem, SideNavSection, Sparkles, Star, StatDisplay, TableRenderer, TemplateSelector, TextButton, Toast, useDashboardContext, useSideNavContext } from './chunk-DWMWKMZL.mjs';
|
|
3
|
+
export { Badge, Caption, Code, Heading, Label, Text, Tooltip, badgeVariants, captionVariants, cn, codeVariants, headingVariants, labelVariants, textVariants } from './chunk-ZI4BTIPU.mjs';
|
|
4
4
|
export { ArrowRightIcon, CheckIcon, PlusIcon, SendIcon, TrashIcon } from './chunk-2B2BWI5A.mjs';
|
|
5
5
|
export { useToast } from './chunk-BNOZCJOK.mjs';
|
|
6
6
|
import './chunk-WFBSFUC6.mjs';
|
package/dist/primitives.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
2
|
import * as React from 'react';
|
|
4
3
|
import { VariantProps } from 'class-variance-authority';
|
|
5
4
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
5
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
7
7
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
8
8
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
@@ -12,17 +12,18 @@ import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
|
12
12
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
13
13
|
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
14
14
|
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
15
|
+
export { T as Tooltip, a as TooltipProps, b as TooltipVariant } from './tooltip-wUBttbwG.mjs';
|
|
15
16
|
|
|
16
17
|
declare const badgeVariants: (props?: ({
|
|
17
18
|
variant?: "default" | "secondary" | "destructive" | "outline" | "success" | "warning" | "info" | "purple" | "purpleOutline" | null | undefined;
|
|
18
19
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
19
20
|
interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
20
21
|
}
|
|
21
|
-
declare
|
|
22
|
+
declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLDivElement>>;
|
|
22
23
|
|
|
23
24
|
declare const buttonVariants: (props?: ({
|
|
24
|
-
variant?: "
|
|
25
|
-
size?: "
|
|
25
|
+
variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
|
|
26
|
+
size?: "sm" | "lg" | "default" | "icon" | null | undefined;
|
|
26
27
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
27
28
|
interface BaseButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
28
29
|
asChild?: boolean;
|
|
@@ -239,6 +240,21 @@ interface ColumnDef<T = any> {
|
|
|
239
240
|
/** Used by `useColumnVisibility` to set initial visible columns on mobile (viewport < 768px) */
|
|
240
241
|
mobileVisible?: boolean;
|
|
241
242
|
minWidth?: number;
|
|
243
|
+
bulkEdit?: {
|
|
244
|
+
kind: "input";
|
|
245
|
+
type?: "text" | "number";
|
|
246
|
+
placeholder?: string;
|
|
247
|
+
leadingDecorator?: string;
|
|
248
|
+
label?: string;
|
|
249
|
+
} | {
|
|
250
|
+
kind: "select";
|
|
251
|
+
options: {
|
|
252
|
+
label: string;
|
|
253
|
+
value: string;
|
|
254
|
+
}[];
|
|
255
|
+
placeholder?: string;
|
|
256
|
+
label?: string;
|
|
257
|
+
};
|
|
242
258
|
}
|
|
243
259
|
interface TableProps<T = any> extends React.HTMLAttributes<HTMLTableElement> {
|
|
244
260
|
selectable?: boolean;
|
|
@@ -252,6 +268,7 @@ interface TableProps<T = any> extends React.HTMLAttributes<HTMLTableElement> {
|
|
|
252
268
|
visibleColumns?: string[];
|
|
253
269
|
showDividers?: boolean;
|
|
254
270
|
highlightMode?: "row" | "column" | "cross" | "none";
|
|
271
|
+
onBulkEdit?: (columnKey: string, value: string) => void;
|
|
255
272
|
}
|
|
256
273
|
declare const Table: <T = any>(props: TableProps<T> & {
|
|
257
274
|
ref?: React.Ref<HTMLTableElement>;
|
|
@@ -295,13 +312,14 @@ declare function useColumnVisibility<T = any>(columns: ColumnDef<T>[], options?:
|
|
|
295
312
|
setVisibleColumns: (cols: string[]) => void;
|
|
296
313
|
};
|
|
297
314
|
|
|
298
|
-
interface
|
|
315
|
+
interface ColumnSelectionProps<T = any> {
|
|
299
316
|
columns: ColumnDef<T>[];
|
|
300
317
|
visibleColumns: string[];
|
|
301
318
|
onVisibleColumnsChange: (cols: string[]) => void;
|
|
302
319
|
triggerLabel?: string;
|
|
320
|
+
trigger?: React.ReactNode;
|
|
303
321
|
}
|
|
304
|
-
declare function
|
|
322
|
+
declare function ColumnSelection<T = any>({ columns, visibleColumns, onVisibleColumnsChange, triggerLabel, trigger, }: ColumnSelectionProps<T>): react_jsx_runtime.JSX.Element;
|
|
305
323
|
|
|
306
324
|
interface TabsProps extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.Root> {
|
|
307
325
|
defaultValue?: string;
|
|
@@ -325,10 +343,10 @@ interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement
|
|
|
325
343
|
declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
326
344
|
|
|
327
345
|
declare const toggleGroupVariants: (props?: ({
|
|
328
|
-
size?: "
|
|
346
|
+
size?: "sm" | "lg" | "default" | null | undefined;
|
|
329
347
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
330
348
|
declare const toggleItemVariants: (props?: ({
|
|
331
|
-
size?: "
|
|
349
|
+
size?: "sm" | "lg" | "default" | null | undefined;
|
|
332
350
|
iconOnly?: boolean | null | undefined;
|
|
333
351
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
334
352
|
type ToggleRadius = "none" | "sm" | "md" | "lg" | "full";
|
|
@@ -349,10 +367,10 @@ interface ToggleProps extends Omit<React.ComponentPropsWithoutRef<typeof ToggleG
|
|
|
349
367
|
declare function Toggle({ className, options, value, onChange, size, radius, ...props }: ToggleProps): react_jsx_runtime.JSX.Element;
|
|
350
368
|
|
|
351
369
|
declare const segmentedControlVariants: (props?: ({
|
|
352
|
-
size?: "
|
|
370
|
+
size?: "sm" | "lg" | "default" | null | undefined;
|
|
353
371
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
354
372
|
declare const segmentedControlItemVariants: (props?: ({
|
|
355
|
-
size?: "
|
|
373
|
+
size?: "sm" | "lg" | "default" | null | undefined;
|
|
356
374
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
357
375
|
type SegmentedControlRadius = "none" | "sm" | "md" | "lg" | "full";
|
|
358
376
|
interface SegmentedControlOption {
|
|
@@ -369,13 +387,13 @@ interface SegmentedControlProps extends Omit<React.ComponentPropsWithoutRef<type
|
|
|
369
387
|
declare function SegmentedControl({ className, options, value, onChange, size, radius, ...props }: SegmentedControlProps): react_jsx_runtime.JSX.Element;
|
|
370
388
|
|
|
371
389
|
declare const switchTrackVariants: (props?: ({
|
|
372
|
-
size?: "
|
|
390
|
+
size?: "sm" | "lg" | "default" | null | undefined;
|
|
373
391
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
374
392
|
declare const switchThumbVariants: (props?: ({
|
|
375
|
-
size?: "
|
|
393
|
+
size?: "sm" | "lg" | "default" | null | undefined;
|
|
376
394
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
377
395
|
declare const switchLabelVariants: (props?: ({
|
|
378
|
-
size?: "
|
|
396
|
+
size?: "sm" | "lg" | "default" | null | undefined;
|
|
379
397
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
380
398
|
interface SwitchProps extends React.ComponentPropsWithoutRef<typeof SwitchPrimitive.Root>, VariantProps<typeof switchTrackVariants> {
|
|
381
399
|
label?: string;
|
|
@@ -386,7 +404,7 @@ declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAtt
|
|
|
386
404
|
declare const headingVariants: (props?: ({
|
|
387
405
|
level?: 1 | 3 | 4 | 2 | 5 | 6 | null | undefined;
|
|
388
406
|
weight?: "bold" | "medium" | "semibold" | "regular" | null | undefined;
|
|
389
|
-
align?: "
|
|
407
|
+
align?: "left" | "right" | "center" | null | undefined;
|
|
390
408
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
391
409
|
type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
392
410
|
interface HeadingProps extends React.HTMLAttributes<HTMLHeadingElement>, Omit<VariantProps<typeof headingVariants>, "level"> {
|
|
@@ -398,8 +416,8 @@ declare const Heading: React.ForwardRefExoticComponent<HeadingProps & React.RefA
|
|
|
398
416
|
declare const textVariants: (props?: ({
|
|
399
417
|
size?: "sm" | "lg" | "base" | "xs" | "xl" | "2xl" | "3xl" | "4xl" | null | undefined;
|
|
400
418
|
weight?: "medium" | "semibold" | "regular" | null | undefined;
|
|
401
|
-
align?: "
|
|
402
|
-
color?: "default" | "success" | "warning" | "muted" | "error" |
|
|
419
|
+
align?: "left" | "right" | "center" | "justify" | null | undefined;
|
|
420
|
+
color?: "accent" | "default" | "success" | "warning" | "muted" | "error" | null | undefined;
|
|
403
421
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
404
422
|
interface TextProps extends Omit<React.HTMLAttributes<HTMLParagraphElement>, "color">, VariantProps<typeof textVariants> {
|
|
405
423
|
asChild?: boolean;
|
|
@@ -409,8 +427,8 @@ declare const Text: React.ForwardRefExoticComponent<TextProps & React.RefAttribu
|
|
|
409
427
|
|
|
410
428
|
declare const captionVariants: (props?: ({
|
|
411
429
|
weight?: "medium" | "regular" | null | undefined;
|
|
412
|
-
align?: "
|
|
413
|
-
color?: "default" | "success" | "warning" | "muted" | "error" |
|
|
430
|
+
align?: "left" | "right" | "center" | null | undefined;
|
|
431
|
+
color?: "accent" | "default" | "success" | "warning" | "muted" | "error" | null | undefined;
|
|
414
432
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
415
433
|
interface CaptionProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "color">, VariantProps<typeof captionVariants> {
|
|
416
434
|
}
|
|
@@ -418,10 +436,10 @@ declare const Caption: React.ForwardRefExoticComponent<CaptionProps & React.RefA
|
|
|
418
436
|
|
|
419
437
|
declare const codeVariants: (props?: ({
|
|
420
438
|
variant?: "inline" | "block" | null | undefined;
|
|
421
|
-
color?: "
|
|
439
|
+
color?: "accent" | "default" | "success" | "warning" | "error" | null | undefined;
|
|
422
440
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
423
441
|
interface CodeProps extends Omit<React.HTMLAttributes<HTMLElement>, "color">, VariantProps<typeof codeVariants> {
|
|
424
442
|
}
|
|
425
443
|
declare const Code: React.ForwardRefExoticComponent<CodeProps & React.RefAttributes<HTMLElement>>;
|
|
426
444
|
|
|
427
|
-
export { Badge, type BadgeProps, Button, type ButtonProps, Caption, type CaptionProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Code, type CodeProps, type ColumnDef,
|
|
445
|
+
export { Badge, type BadgeProps, Button, type ButtonProps, Caption, type CaptionProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Code, type CodeProps, type ColumnDef, ColumnSelection, type ColumnSelectionProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Form, FormControl, type FormControlProps, FormDescription, type FormDescriptionProps, FormField, type FormFieldProps, FormLabel, type FormLabelProps, FormMessage, type FormMessageProps, type FormProps, Heading, type HeadingProps, Label, type LabelProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, type SegmentedControlRadius, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, Skeleton, SkeletonAvatar, SkeletonBadge, SkeletonButton, SkeletonCard, SkeletonIcon, SkeletonInput, SkeletonSubtitle, SkeletonTableRow, SkeletonTableRows, SkeletonText, SkeletonTitle, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, type TableCellProps, TableFooter, TableHead, TableHeader, TableRow, TableRowCheckbox, TableSelectAll, Tabs, TabsContent, TabsList, TabsTrigger, type TabsVariant, Text, type TextProps, Textarea, type TextareaProps, Toggle, type ToggleOption, type ToggleProps, type ToggleRadius, badgeVariants, buttonVariants, captionVariants, codeVariants, headingVariants, labelVariants, segmentedControlItemVariants, segmentedControlVariants, separatorVariants, switchLabelVariants, switchThumbVariants, switchTrackVariants, textVariants, toggleGroupVariants, toggleItemVariants, useColumnVisibility, useFormContext, useFormFieldContext, useTableSelection };
|
package/dist/primitives.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
2
|
import * as React from 'react';
|
|
4
3
|
import { VariantProps } from 'class-variance-authority';
|
|
5
4
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
5
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
7
7
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
8
8
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
@@ -12,17 +12,18 @@ import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
|
12
12
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
13
13
|
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
14
14
|
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
15
|
+
export { T as Tooltip, a as TooltipProps, b as TooltipVariant } from './tooltip-wUBttbwG.js';
|
|
15
16
|
|
|
16
17
|
declare const badgeVariants: (props?: ({
|
|
17
18
|
variant?: "default" | "secondary" | "destructive" | "outline" | "success" | "warning" | "info" | "purple" | "purpleOutline" | null | undefined;
|
|
18
19
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
19
20
|
interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
20
21
|
}
|
|
21
|
-
declare
|
|
22
|
+
declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLDivElement>>;
|
|
22
23
|
|
|
23
24
|
declare const buttonVariants: (props?: ({
|
|
24
|
-
variant?: "
|
|
25
|
-
size?: "
|
|
25
|
+
variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
|
|
26
|
+
size?: "sm" | "lg" | "default" | "icon" | null | undefined;
|
|
26
27
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
27
28
|
interface BaseButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
28
29
|
asChild?: boolean;
|
|
@@ -239,6 +240,21 @@ interface ColumnDef<T = any> {
|
|
|
239
240
|
/** Used by `useColumnVisibility` to set initial visible columns on mobile (viewport < 768px) */
|
|
240
241
|
mobileVisible?: boolean;
|
|
241
242
|
minWidth?: number;
|
|
243
|
+
bulkEdit?: {
|
|
244
|
+
kind: "input";
|
|
245
|
+
type?: "text" | "number";
|
|
246
|
+
placeholder?: string;
|
|
247
|
+
leadingDecorator?: string;
|
|
248
|
+
label?: string;
|
|
249
|
+
} | {
|
|
250
|
+
kind: "select";
|
|
251
|
+
options: {
|
|
252
|
+
label: string;
|
|
253
|
+
value: string;
|
|
254
|
+
}[];
|
|
255
|
+
placeholder?: string;
|
|
256
|
+
label?: string;
|
|
257
|
+
};
|
|
242
258
|
}
|
|
243
259
|
interface TableProps<T = any> extends React.HTMLAttributes<HTMLTableElement> {
|
|
244
260
|
selectable?: boolean;
|
|
@@ -252,6 +268,7 @@ interface TableProps<T = any> extends React.HTMLAttributes<HTMLTableElement> {
|
|
|
252
268
|
visibleColumns?: string[];
|
|
253
269
|
showDividers?: boolean;
|
|
254
270
|
highlightMode?: "row" | "column" | "cross" | "none";
|
|
271
|
+
onBulkEdit?: (columnKey: string, value: string) => void;
|
|
255
272
|
}
|
|
256
273
|
declare const Table: <T = any>(props: TableProps<T> & {
|
|
257
274
|
ref?: React.Ref<HTMLTableElement>;
|
|
@@ -295,13 +312,14 @@ declare function useColumnVisibility<T = any>(columns: ColumnDef<T>[], options?:
|
|
|
295
312
|
setVisibleColumns: (cols: string[]) => void;
|
|
296
313
|
};
|
|
297
314
|
|
|
298
|
-
interface
|
|
315
|
+
interface ColumnSelectionProps<T = any> {
|
|
299
316
|
columns: ColumnDef<T>[];
|
|
300
317
|
visibleColumns: string[];
|
|
301
318
|
onVisibleColumnsChange: (cols: string[]) => void;
|
|
302
319
|
triggerLabel?: string;
|
|
320
|
+
trigger?: React.ReactNode;
|
|
303
321
|
}
|
|
304
|
-
declare function
|
|
322
|
+
declare function ColumnSelection<T = any>({ columns, visibleColumns, onVisibleColumnsChange, triggerLabel, trigger, }: ColumnSelectionProps<T>): react_jsx_runtime.JSX.Element;
|
|
305
323
|
|
|
306
324
|
interface TabsProps extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.Root> {
|
|
307
325
|
defaultValue?: string;
|
|
@@ -325,10 +343,10 @@ interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement
|
|
|
325
343
|
declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
326
344
|
|
|
327
345
|
declare const toggleGroupVariants: (props?: ({
|
|
328
|
-
size?: "
|
|
346
|
+
size?: "sm" | "lg" | "default" | null | undefined;
|
|
329
347
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
330
348
|
declare const toggleItemVariants: (props?: ({
|
|
331
|
-
size?: "
|
|
349
|
+
size?: "sm" | "lg" | "default" | null | undefined;
|
|
332
350
|
iconOnly?: boolean | null | undefined;
|
|
333
351
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
334
352
|
type ToggleRadius = "none" | "sm" | "md" | "lg" | "full";
|
|
@@ -349,10 +367,10 @@ interface ToggleProps extends Omit<React.ComponentPropsWithoutRef<typeof ToggleG
|
|
|
349
367
|
declare function Toggle({ className, options, value, onChange, size, radius, ...props }: ToggleProps): react_jsx_runtime.JSX.Element;
|
|
350
368
|
|
|
351
369
|
declare const segmentedControlVariants: (props?: ({
|
|
352
|
-
size?: "
|
|
370
|
+
size?: "sm" | "lg" | "default" | null | undefined;
|
|
353
371
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
354
372
|
declare const segmentedControlItemVariants: (props?: ({
|
|
355
|
-
size?: "
|
|
373
|
+
size?: "sm" | "lg" | "default" | null | undefined;
|
|
356
374
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
357
375
|
type SegmentedControlRadius = "none" | "sm" | "md" | "lg" | "full";
|
|
358
376
|
interface SegmentedControlOption {
|
|
@@ -369,13 +387,13 @@ interface SegmentedControlProps extends Omit<React.ComponentPropsWithoutRef<type
|
|
|
369
387
|
declare function SegmentedControl({ className, options, value, onChange, size, radius, ...props }: SegmentedControlProps): react_jsx_runtime.JSX.Element;
|
|
370
388
|
|
|
371
389
|
declare const switchTrackVariants: (props?: ({
|
|
372
|
-
size?: "
|
|
390
|
+
size?: "sm" | "lg" | "default" | null | undefined;
|
|
373
391
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
374
392
|
declare const switchThumbVariants: (props?: ({
|
|
375
|
-
size?: "
|
|
393
|
+
size?: "sm" | "lg" | "default" | null | undefined;
|
|
376
394
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
377
395
|
declare const switchLabelVariants: (props?: ({
|
|
378
|
-
size?: "
|
|
396
|
+
size?: "sm" | "lg" | "default" | null | undefined;
|
|
379
397
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
380
398
|
interface SwitchProps extends React.ComponentPropsWithoutRef<typeof SwitchPrimitive.Root>, VariantProps<typeof switchTrackVariants> {
|
|
381
399
|
label?: string;
|
|
@@ -386,7 +404,7 @@ declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAtt
|
|
|
386
404
|
declare const headingVariants: (props?: ({
|
|
387
405
|
level?: 1 | 3 | 4 | 2 | 5 | 6 | null | undefined;
|
|
388
406
|
weight?: "bold" | "medium" | "semibold" | "regular" | null | undefined;
|
|
389
|
-
align?: "
|
|
407
|
+
align?: "left" | "right" | "center" | null | undefined;
|
|
390
408
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
391
409
|
type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
392
410
|
interface HeadingProps extends React.HTMLAttributes<HTMLHeadingElement>, Omit<VariantProps<typeof headingVariants>, "level"> {
|
|
@@ -398,8 +416,8 @@ declare const Heading: React.ForwardRefExoticComponent<HeadingProps & React.RefA
|
|
|
398
416
|
declare const textVariants: (props?: ({
|
|
399
417
|
size?: "sm" | "lg" | "base" | "xs" | "xl" | "2xl" | "3xl" | "4xl" | null | undefined;
|
|
400
418
|
weight?: "medium" | "semibold" | "regular" | null | undefined;
|
|
401
|
-
align?: "
|
|
402
|
-
color?: "default" | "success" | "warning" | "muted" | "error" |
|
|
419
|
+
align?: "left" | "right" | "center" | "justify" | null | undefined;
|
|
420
|
+
color?: "accent" | "default" | "success" | "warning" | "muted" | "error" | null | undefined;
|
|
403
421
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
404
422
|
interface TextProps extends Omit<React.HTMLAttributes<HTMLParagraphElement>, "color">, VariantProps<typeof textVariants> {
|
|
405
423
|
asChild?: boolean;
|
|
@@ -409,8 +427,8 @@ declare const Text: React.ForwardRefExoticComponent<TextProps & React.RefAttribu
|
|
|
409
427
|
|
|
410
428
|
declare const captionVariants: (props?: ({
|
|
411
429
|
weight?: "medium" | "regular" | null | undefined;
|
|
412
|
-
align?: "
|
|
413
|
-
color?: "default" | "success" | "warning" | "muted" | "error" |
|
|
430
|
+
align?: "left" | "right" | "center" | null | undefined;
|
|
431
|
+
color?: "accent" | "default" | "success" | "warning" | "muted" | "error" | null | undefined;
|
|
414
432
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
415
433
|
interface CaptionProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "color">, VariantProps<typeof captionVariants> {
|
|
416
434
|
}
|
|
@@ -418,10 +436,10 @@ declare const Caption: React.ForwardRefExoticComponent<CaptionProps & React.RefA
|
|
|
418
436
|
|
|
419
437
|
declare const codeVariants: (props?: ({
|
|
420
438
|
variant?: "inline" | "block" | null | undefined;
|
|
421
|
-
color?: "
|
|
439
|
+
color?: "accent" | "default" | "success" | "warning" | "error" | null | undefined;
|
|
422
440
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
423
441
|
interface CodeProps extends Omit<React.HTMLAttributes<HTMLElement>, "color">, VariantProps<typeof codeVariants> {
|
|
424
442
|
}
|
|
425
443
|
declare const Code: React.ForwardRefExoticComponent<CodeProps & React.RefAttributes<HTMLElement>>;
|
|
426
444
|
|
|
427
|
-
export { Badge, type BadgeProps, Button, type ButtonProps, Caption, type CaptionProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Code, type CodeProps, type ColumnDef,
|
|
445
|
+
export { Badge, type BadgeProps, Button, type ButtonProps, Caption, type CaptionProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Code, type CodeProps, type ColumnDef, ColumnSelection, type ColumnSelectionProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Form, FormControl, type FormControlProps, FormDescription, type FormDescriptionProps, FormField, type FormFieldProps, FormLabel, type FormLabelProps, FormMessage, type FormMessageProps, type FormProps, Heading, type HeadingProps, Label, type LabelProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, type SegmentedControlRadius, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, Skeleton, SkeletonAvatar, SkeletonBadge, SkeletonButton, SkeletonCard, SkeletonIcon, SkeletonInput, SkeletonSubtitle, SkeletonTableRow, SkeletonTableRows, SkeletonText, SkeletonTitle, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, type TableCellProps, TableFooter, TableHead, TableHeader, TableRow, TableRowCheckbox, TableSelectAll, Tabs, TabsContent, TabsList, TabsTrigger, type TabsVariant, Text, type TextProps, Textarea, type TextareaProps, Toggle, type ToggleOption, type ToggleProps, type ToggleRadius, badgeVariants, buttonVariants, captionVariants, codeVariants, headingVariants, labelVariants, segmentedControlItemVariants, segmentedControlVariants, separatorVariants, switchLabelVariants, switchThumbVariants, switchTrackVariants, textVariants, toggleGroupVariants, toggleItemVariants, useColumnVisibility, useFormContext, useFormFieldContext, useTableSelection };
|