@pos-360/horizon 0.11.0 → 0.12.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.
@@ -9,6 +9,9 @@ import * as LabelPrimitive from '@radix-ui/react-label';
9
9
  import * as PopoverPrimitive from '@radix-ui/react-popover';
10
10
  import * as SelectPrimitive from '@radix-ui/react-select';
11
11
  import * as TabsPrimitive from '@radix-ui/react-tabs';
12
+ import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
13
+ import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
14
+ import * as SwitchPrimitive from '@radix-ui/react-switch';
12
15
 
13
16
  declare const badgeVariants: (props?: ({
14
17
  variant?: "default" | "secondary" | "destructive" | "outline" | "success" | "warning" | "info" | "purple" | "purpleOutline" | null | undefined;
@@ -250,7 +253,6 @@ interface TableRowCheckboxProps {
250
253
  declare const TableRowCheckbox: React.ForwardRefExoticComponent<TableRowCheckboxProps & React.RefAttributes<HTMLDivElement>>;
251
254
  declare const useTableSelection: () => TableContextValue;
252
255
 
253
- type TabsColor = "default" | "primary" | "success" | "danger" | "warning" | "secondary";
254
256
  interface TabsProps extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.Root> {
255
257
  defaultValue?: string;
256
258
  value?: string;
@@ -258,7 +260,6 @@ interface TabsProps extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.
258
260
  }
259
261
  declare const Tabs: React.ForwardRefExoticComponent<TabsProps & React.RefAttributes<HTMLDivElement>>;
260
262
  interface TabsListProps extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.List> {
261
- color?: TabsColor;
262
263
  }
263
264
  declare const TabsList: React.ForwardRefExoticComponent<TabsListProps & React.RefAttributes<HTMLDivElement>>;
264
265
  interface TabsTriggerProps extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger> {
@@ -275,19 +276,59 @@ declare const toggleGroupVariants: (props?: ({
275
276
  } & class_variance_authority_types.ClassProp) | undefined) => string;
276
277
  declare const toggleItemVariants: (props?: ({
277
278
  size?: "default" | "sm" | "lg" | null | undefined;
278
- active?: boolean | null | undefined;
279
+ iconOnly?: boolean | null | undefined;
279
280
  } & class_variance_authority_types.ClassProp) | undefined) => string;
281
+ type ToggleRadius = "none" | "sm" | "md" | "lg" | "full";
280
282
  interface ToggleOption {
281
- label: string;
282
283
  value: string;
284
+ label?: string;
285
+ icon?: React.ReactNode;
283
286
  disabled?: boolean;
287
+ ariaLabel?: string;
284
288
  }
285
- interface ToggleProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange">, VariantProps<typeof toggleGroupVariants> {
289
+ interface ToggleProps extends Omit<React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root>, "onChange" | "onValueChange" | "type" | "value" | "defaultValue">, VariantProps<typeof toggleGroupVariants> {
286
290
  options: ToggleOption[];
291
+ value?: string[];
292
+ onChange?: (value: string[]) => void;
293
+ defaultValue?: string[];
294
+ radius?: ToggleRadius;
295
+ }
296
+ declare function Toggle({ className, options, value, onChange, size, radius, ...props }: ToggleProps): react_jsx_runtime.JSX.Element;
297
+
298
+ declare const segmentedControlVariants: (props?: ({
299
+ size?: "default" | "sm" | "lg" | null | undefined;
300
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
301
+ declare const segmentedControlItemVariants: (props?: ({
302
+ size?: "default" | "sm" | "lg" | null | undefined;
303
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
304
+ type SegmentedControlRadius = "none" | "sm" | "md" | "lg" | "full";
305
+ interface SegmentedControlOption {
306
+ label: string;
287
307
  value: string;
288
- onChange: (value: string) => void;
308
+ disabled?: boolean;
309
+ }
310
+ interface SegmentedControlProps extends Omit<React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>, "onChange" | "onValueChange" | "value">, VariantProps<typeof segmentedControlVariants> {
311
+ options: SegmentedControlOption[];
312
+ value?: string;
313
+ onChange?: (value: string) => void;
314
+ radius?: SegmentedControlRadius;
315
+ }
316
+ declare function SegmentedControl({ className, options, value, onChange, size, radius, ...props }: SegmentedControlProps): react_jsx_runtime.JSX.Element;
317
+
318
+ declare const switchTrackVariants: (props?: ({
319
+ size?: "default" | "sm" | "lg" | null | undefined;
320
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
321
+ declare const switchThumbVariants: (props?: ({
322
+ size?: "default" | "sm" | "lg" | null | undefined;
323
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
324
+ declare const switchLabelVariants: (props?: ({
325
+ size?: "default" | "sm" | "lg" | null | undefined;
326
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
327
+ interface SwitchProps extends React.ComponentPropsWithoutRef<typeof SwitchPrimitive.Root>, VariantProps<typeof switchTrackVariants> {
328
+ label?: string;
329
+ labelPosition?: "left" | "right";
289
330
  }
290
- declare function Toggle({ className, options, value, onChange, size, ...props }: ToggleProps): react_jsx_runtime.JSX.Element;
331
+ declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
291
332
 
292
333
  declare const headingVariants: (props?: ({
293
334
  level?: 1 | 3 | 4 | 2 | 5 | 6 | null | undefined;
@@ -330,4 +371,4 @@ interface CodeProps extends Omit<React.HTMLAttributes<HTMLElement>, "color">, Va
330
371
  }
331
372
  declare const Code: React.ForwardRefExoticComponent<CodeProps & React.RefAttributes<HTMLElement>>;
332
373
 
333
- export { Badge, type BadgeProps, Button, type ButtonProps, Caption, type CaptionProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Code, type CodeProps, 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, 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, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, TableRowCheckbox, TableSelectAll, Tabs, type TabsColor, TabsContent, TabsList, TabsTrigger, Text, type TextProps, Textarea, type TextareaProps, Toggle, type ToggleOption, type ToggleProps, badgeVariants, buttonVariants, captionVariants, codeVariants, headingVariants, labelVariants, separatorVariants, textVariants, toggleGroupVariants, toggleItemVariants, useFormContext, useFormFieldContext, useTableSelection };
374
+ export { Badge, type BadgeProps, Button, type ButtonProps, Caption, type CaptionProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Code, type CodeProps, 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, TableFooter, TableHead, TableHeader, TableRow, TableRowCheckbox, TableSelectAll, Tabs, TabsContent, TabsList, TabsTrigger, 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, useFormContext, useFormFieldContext, useTableSelection };
@@ -9,6 +9,9 @@ import * as LabelPrimitive from '@radix-ui/react-label';
9
9
  import * as PopoverPrimitive from '@radix-ui/react-popover';
10
10
  import * as SelectPrimitive from '@radix-ui/react-select';
11
11
  import * as TabsPrimitive from '@radix-ui/react-tabs';
12
+ import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
13
+ import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
14
+ import * as SwitchPrimitive from '@radix-ui/react-switch';
12
15
 
13
16
  declare const badgeVariants: (props?: ({
14
17
  variant?: "default" | "secondary" | "destructive" | "outline" | "success" | "warning" | "info" | "purple" | "purpleOutline" | null | undefined;
@@ -250,7 +253,6 @@ interface TableRowCheckboxProps {
250
253
  declare const TableRowCheckbox: React.ForwardRefExoticComponent<TableRowCheckboxProps & React.RefAttributes<HTMLDivElement>>;
251
254
  declare const useTableSelection: () => TableContextValue;
252
255
 
253
- type TabsColor = "default" | "primary" | "success" | "danger" | "warning" | "secondary";
254
256
  interface TabsProps extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.Root> {
255
257
  defaultValue?: string;
256
258
  value?: string;
@@ -258,7 +260,6 @@ interface TabsProps extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.
258
260
  }
259
261
  declare const Tabs: React.ForwardRefExoticComponent<TabsProps & React.RefAttributes<HTMLDivElement>>;
260
262
  interface TabsListProps extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.List> {
261
- color?: TabsColor;
262
263
  }
263
264
  declare const TabsList: React.ForwardRefExoticComponent<TabsListProps & React.RefAttributes<HTMLDivElement>>;
264
265
  interface TabsTriggerProps extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger> {
@@ -275,19 +276,59 @@ declare const toggleGroupVariants: (props?: ({
275
276
  } & class_variance_authority_types.ClassProp) | undefined) => string;
276
277
  declare const toggleItemVariants: (props?: ({
277
278
  size?: "default" | "sm" | "lg" | null | undefined;
278
- active?: boolean | null | undefined;
279
+ iconOnly?: boolean | null | undefined;
279
280
  } & class_variance_authority_types.ClassProp) | undefined) => string;
281
+ type ToggleRadius = "none" | "sm" | "md" | "lg" | "full";
280
282
  interface ToggleOption {
281
- label: string;
282
283
  value: string;
284
+ label?: string;
285
+ icon?: React.ReactNode;
283
286
  disabled?: boolean;
287
+ ariaLabel?: string;
284
288
  }
285
- interface ToggleProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange">, VariantProps<typeof toggleGroupVariants> {
289
+ interface ToggleProps extends Omit<React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root>, "onChange" | "onValueChange" | "type" | "value" | "defaultValue">, VariantProps<typeof toggleGroupVariants> {
286
290
  options: ToggleOption[];
291
+ value?: string[];
292
+ onChange?: (value: string[]) => void;
293
+ defaultValue?: string[];
294
+ radius?: ToggleRadius;
295
+ }
296
+ declare function Toggle({ className, options, value, onChange, size, radius, ...props }: ToggleProps): react_jsx_runtime.JSX.Element;
297
+
298
+ declare const segmentedControlVariants: (props?: ({
299
+ size?: "default" | "sm" | "lg" | null | undefined;
300
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
301
+ declare const segmentedControlItemVariants: (props?: ({
302
+ size?: "default" | "sm" | "lg" | null | undefined;
303
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
304
+ type SegmentedControlRadius = "none" | "sm" | "md" | "lg" | "full";
305
+ interface SegmentedControlOption {
306
+ label: string;
287
307
  value: string;
288
- onChange: (value: string) => void;
308
+ disabled?: boolean;
309
+ }
310
+ interface SegmentedControlProps extends Omit<React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>, "onChange" | "onValueChange" | "value">, VariantProps<typeof segmentedControlVariants> {
311
+ options: SegmentedControlOption[];
312
+ value?: string;
313
+ onChange?: (value: string) => void;
314
+ radius?: SegmentedControlRadius;
315
+ }
316
+ declare function SegmentedControl({ className, options, value, onChange, size, radius, ...props }: SegmentedControlProps): react_jsx_runtime.JSX.Element;
317
+
318
+ declare const switchTrackVariants: (props?: ({
319
+ size?: "default" | "sm" | "lg" | null | undefined;
320
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
321
+ declare const switchThumbVariants: (props?: ({
322
+ size?: "default" | "sm" | "lg" | null | undefined;
323
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
324
+ declare const switchLabelVariants: (props?: ({
325
+ size?: "default" | "sm" | "lg" | null | undefined;
326
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
327
+ interface SwitchProps extends React.ComponentPropsWithoutRef<typeof SwitchPrimitive.Root>, VariantProps<typeof switchTrackVariants> {
328
+ label?: string;
329
+ labelPosition?: "left" | "right";
289
330
  }
290
- declare function Toggle({ className, options, value, onChange, size, ...props }: ToggleProps): react_jsx_runtime.JSX.Element;
331
+ declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
291
332
 
292
333
  declare const headingVariants: (props?: ({
293
334
  level?: 1 | 3 | 4 | 2 | 5 | 6 | null | undefined;
@@ -330,4 +371,4 @@ interface CodeProps extends Omit<React.HTMLAttributes<HTMLElement>, "color">, Va
330
371
  }
331
372
  declare const Code: React.ForwardRefExoticComponent<CodeProps & React.RefAttributes<HTMLElement>>;
332
373
 
333
- export { Badge, type BadgeProps, Button, type ButtonProps, Caption, type CaptionProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Code, type CodeProps, 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, 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, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, TableRowCheckbox, TableSelectAll, Tabs, type TabsColor, TabsContent, TabsList, TabsTrigger, Text, type TextProps, Textarea, type TextareaProps, Toggle, type ToggleOption, type ToggleProps, badgeVariants, buttonVariants, captionVariants, codeVariants, headingVariants, labelVariants, separatorVariants, textVariants, toggleGroupVariants, toggleItemVariants, useFormContext, useFormFieldContext, useTableSelection };
374
+ export { Badge, type BadgeProps, Button, type ButtonProps, Caption, type CaptionProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Code, type CodeProps, 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, TableFooter, TableHead, TableHeader, TableRow, TableRowCheckbox, TableSelectAll, Tabs, TabsContent, TabsList, TabsTrigger, 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, useFormContext, useFormFieldContext, useTableSelection };