@pos-360/horizon 0.16.0 → 0.18.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-7WVGPVSG.js → chunk-5XF7Y25B.js} +63 -6
- package/dist/chunk-5XF7Y25B.js.map +1 -0
- package/dist/{chunk-UWBZTH6L.js → chunk-6KBCME37.js} +445 -331
- package/dist/chunk-6KBCME37.js.map +1 -0
- package/dist/{chunk-G36NTARE.mjs → chunk-AORFIAS4.mjs} +29 -33
- package/dist/chunk-AORFIAS4.mjs.map +1 -0
- package/dist/{chunk-KQYOZC7B.mjs → chunk-DNRDNWUF.mjs} +369 -255
- package/dist/chunk-DNRDNWUF.mjs.map +1 -0
- package/dist/{chunk-QCQOCLJH.js → chunk-T7ITROJS.js} +104 -108
- package/dist/chunk-T7ITROJS.js.map +1 -0
- package/dist/{chunk-THQLVDXH.mjs → chunk-UQ66UPWH.mjs} +63 -8
- package/dist/chunk-UQ66UPWH.mjs.map +1 -0
- package/dist/enhanced.d.mts +2 -0
- package/dist/enhanced.d.ts +2 -0
- package/dist/enhanced.js +28 -28
- package/dist/enhanced.mjs +2 -2
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +144 -140
- package/dist/index.mjs +3 -3
- package/dist/primitives.d.mts +28 -2
- package/dist/primitives.d.ts +28 -2
- package/dist/primitives.js +116 -112
- 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-7WVGPVSG.js.map +0 -1
- package/dist/chunk-G36NTARE.mjs.map +0 -1
- package/dist/chunk-KQYOZC7B.mjs.map +0 -1
- package/dist/chunk-QCQOCLJH.js.map +0 -1
- package/dist/chunk-THQLVDXH.mjs.map +0 -1
- package/dist/chunk-UWBZTH6L.js.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
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-DNRDNWUF.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-AORFIAS4.mjs';
|
|
3
|
+
export { Badge, Caption, Code, Heading, Label, Text, Tooltip, badgeVariants, captionVariants, cn, codeVariants, headingVariants, labelVariants, textVariants } from './chunk-UQ66UPWH.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,13 +12,14 @@ 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
25
|
variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
|
|
@@ -239,6 +240,30 @@ 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
|
+
cellClassName?: string | ((row: T) => string);
|
|
244
|
+
bulkEdit?: {
|
|
245
|
+
kind: "input";
|
|
246
|
+
type?: "text" | "number";
|
|
247
|
+
placeholder?: string;
|
|
248
|
+
leadingDecorator?: string;
|
|
249
|
+
label?: string;
|
|
250
|
+
renderPreview?: (value: string) => React.ReactNode;
|
|
251
|
+
} | {
|
|
252
|
+
kind: "select";
|
|
253
|
+
options: {
|
|
254
|
+
label: string;
|
|
255
|
+
value: string;
|
|
256
|
+
}[];
|
|
257
|
+
placeholder?: string;
|
|
258
|
+
label?: string;
|
|
259
|
+
} | {
|
|
260
|
+
kind: "segmented-control";
|
|
261
|
+
options: {
|
|
262
|
+
label: string;
|
|
263
|
+
value: string;
|
|
264
|
+
}[];
|
|
265
|
+
label?: string;
|
|
266
|
+
};
|
|
242
267
|
}
|
|
243
268
|
interface TableProps<T = any> extends React.HTMLAttributes<HTMLTableElement> {
|
|
244
269
|
selectable?: boolean;
|
|
@@ -252,6 +277,7 @@ interface TableProps<T = any> extends React.HTMLAttributes<HTMLTableElement> {
|
|
|
252
277
|
visibleColumns?: string[];
|
|
253
278
|
showDividers?: boolean;
|
|
254
279
|
highlightMode?: "row" | "column" | "cross" | "none";
|
|
280
|
+
onBulkEdit?: (columnKey: string, value: string) => void;
|
|
255
281
|
}
|
|
256
282
|
declare const Table: <T = any>(props: TableProps<T> & {
|
|
257
283
|
ref?: React.Ref<HTMLTableElement>;
|
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,13 +12,14 @@ 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
25
|
variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
|
|
@@ -239,6 +240,30 @@ 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
|
+
cellClassName?: string | ((row: T) => string);
|
|
244
|
+
bulkEdit?: {
|
|
245
|
+
kind: "input";
|
|
246
|
+
type?: "text" | "number";
|
|
247
|
+
placeholder?: string;
|
|
248
|
+
leadingDecorator?: string;
|
|
249
|
+
label?: string;
|
|
250
|
+
renderPreview?: (value: string) => React.ReactNode;
|
|
251
|
+
} | {
|
|
252
|
+
kind: "select";
|
|
253
|
+
options: {
|
|
254
|
+
label: string;
|
|
255
|
+
value: string;
|
|
256
|
+
}[];
|
|
257
|
+
placeholder?: string;
|
|
258
|
+
label?: string;
|
|
259
|
+
} | {
|
|
260
|
+
kind: "segmented-control";
|
|
261
|
+
options: {
|
|
262
|
+
label: string;
|
|
263
|
+
value: string;
|
|
264
|
+
}[];
|
|
265
|
+
label?: string;
|
|
266
|
+
};
|
|
242
267
|
}
|
|
243
268
|
interface TableProps<T = any> extends React.HTMLAttributes<HTMLTableElement> {
|
|
244
269
|
selectable?: boolean;
|
|
@@ -252,6 +277,7 @@ interface TableProps<T = any> extends React.HTMLAttributes<HTMLTableElement> {
|
|
|
252
277
|
visibleColumns?: string[];
|
|
253
278
|
showDividers?: boolean;
|
|
254
279
|
highlightMode?: "row" | "column" | "cross" | "none";
|
|
280
|
+
onBulkEdit?: (columnKey: string, value: string) => void;
|
|
255
281
|
}
|
|
256
282
|
declare const Table: <T = any>(props: TableProps<T> & {
|
|
257
283
|
ref?: React.Ref<HTMLTableElement>;
|