@pos-360/horizon 0.3.0 → 0.5.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.
Files changed (47) hide show
  1. package/dist/animated-icons.js +1 -0
  2. package/dist/animated-icons.mjs +1 -0
  3. package/dist/chunk-BNOZCJOK.mjs +53 -0
  4. package/dist/chunk-BNOZCJOK.mjs.map +1 -0
  5. package/dist/{chunk-HJPQ6TOR.mjs → chunk-BSRLO5SU.mjs} +34 -34
  6. package/dist/chunk-BSRLO5SU.mjs.map +1 -0
  7. package/dist/{chunk-S2A3IDOX.js → chunk-E3TQU2GX.js} +34 -34
  8. package/dist/chunk-E3TQU2GX.js.map +1 -0
  9. package/dist/chunk-GGM3MDFM.js +32 -0
  10. package/dist/{chunk-AA25LTS4.js.map → chunk-GGM3MDFM.js.map} +1 -1
  11. package/dist/chunk-HQDEEBXV.js +55 -0
  12. package/dist/chunk-HQDEEBXV.js.map +1 -0
  13. package/dist/{chunk-BWR6DSQJ.js → chunk-L5DU65XJ.js} +106 -49
  14. package/dist/chunk-L5DU65XJ.js.map +1 -0
  15. package/dist/{chunk-TQPMV72P.mjs → chunk-SVBDAFK4.mjs} +107 -50
  16. package/dist/chunk-SVBDAFK4.mjs.map +1 -0
  17. package/dist/chunk-WFBSFUC6.mjs +29 -0
  18. package/dist/{chunk-Y6G4VKJ3.mjs.map → chunk-WFBSFUC6.mjs.map} +1 -1
  19. package/dist/enhanced.d.mts +3 -11
  20. package/dist/enhanced.d.ts +3 -11
  21. package/dist/enhanced.js +13 -12
  22. package/dist/enhanced.mjs +2 -1
  23. package/dist/hooks.d.mts +30 -1
  24. package/dist/hooks.d.ts +30 -1
  25. package/dist/hooks.js +8 -1
  26. package/dist/hooks.mjs +2 -1
  27. package/dist/index.d.mts +3 -1
  28. package/dist/index.d.ts +3 -1
  29. package/dist/index.js +112 -107
  30. package/dist/index.mjs +4 -3
  31. package/dist/primitives.js +95 -94
  32. package/dist/primitives.mjs +2 -1
  33. package/dist/tailwind.d.mts +44 -14
  34. package/dist/tailwind.d.ts +44 -14
  35. package/dist/tailwind.js +218 -1
  36. package/dist/tailwind.js.map +1 -1
  37. package/dist/tailwind.mjs +218 -1
  38. package/dist/tailwind.mjs.map +1 -1
  39. package/dist/toast-cr-vEOyB.d.mts +18 -0
  40. package/dist/toast-cr-vEOyB.d.ts +18 -0
  41. package/package.json +1 -1
  42. package/dist/chunk-AA25LTS4.js +0 -4
  43. package/dist/chunk-BWR6DSQJ.js.map +0 -1
  44. package/dist/chunk-HJPQ6TOR.mjs.map +0 -1
  45. package/dist/chunk-S2A3IDOX.js.map +0 -1
  46. package/dist/chunk-TQPMV72P.mjs.map +0 -1
  47. package/dist/chunk-Y6G4VKJ3.mjs +0 -3
@@ -1,8 +1,9 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React$1 from 'react';
3
- import React__default, { ReactNode, ButtonHTMLAttributes } from 'react';
3
+ import { ReactNode, ButtonHTMLAttributes } from 'react';
4
4
  import { LucideIcon } from 'lucide-react';
5
5
  export { Globe, Moon, Orbit, Rocket, Sparkles, Star } from 'lucide-react';
6
+ export { T as Toast, a as ToastProps } from './toast-cr-vEOyB.js';
6
7
 
7
8
  interface AnimatedButtonProps {
8
9
  label: string;
@@ -97,13 +98,4 @@ interface TextButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
97
98
  }
98
99
  declare const TextButton: ({ children, onClick, disabled, leadingDecorator, trailingDecorator, variant, size, className, type, ...buttonProps }: TextButtonProps) => react_jsx_runtime.JSX.Element;
99
100
 
100
- interface ToastProps {
101
- message: string;
102
- type: "success" | "error";
103
- duration?: number;
104
- onDismiss?: () => void;
105
- isVisible: boolean;
106
- }
107
- declare const Toast: React__default.FC<ToastProps>;
108
-
109
- export { type AccentColor, AnimatedButton, type AnimatedButtonProps, Input, type InputProps, type SelectOption, type Template, TemplateSelector, type TemplateSelectorProps, TextButton, type TextButtonProps, Toast, type ToastProps };
101
+ export { type AccentColor, AnimatedButton, type AnimatedButtonProps, Input, type InputProps, type SelectOption, type Template, TemplateSelector, type TemplateSelectorProps, TextButton, type TextButtonProps };
package/dist/enhanced.js CHANGED
@@ -1,53 +1,54 @@
1
1
  'use strict';
2
2
 
3
- var chunkBWR6DSQJ_js = require('./chunk-BWR6DSQJ.js');
3
+ var chunkL5DU65XJ_js = require('./chunk-L5DU65XJ.js');
4
4
  require('./chunk-TMZLQK74.js');
5
+ require('./chunk-GGM3MDFM.js');
5
6
 
6
7
 
7
8
 
8
9
  Object.defineProperty(exports, "AnimatedButton", {
9
10
  enumerable: true,
10
- get: function () { return chunkBWR6DSQJ_js.AnimatedButton; }
11
+ get: function () { return chunkL5DU65XJ_js.AnimatedButton; }
11
12
  });
12
13
  Object.defineProperty(exports, "Globe", {
13
14
  enumerable: true,
14
- get: function () { return chunkBWR6DSQJ_js.Globe; }
15
+ get: function () { return chunkL5DU65XJ_js.Globe; }
15
16
  });
16
17
  Object.defineProperty(exports, "Input", {
17
18
  enumerable: true,
18
- get: function () { return chunkBWR6DSQJ_js.Input; }
19
+ get: function () { return chunkL5DU65XJ_js.Input; }
19
20
  });
20
21
  Object.defineProperty(exports, "Moon", {
21
22
  enumerable: true,
22
- get: function () { return chunkBWR6DSQJ_js.Moon; }
23
+ get: function () { return chunkL5DU65XJ_js.Moon; }
23
24
  });
24
25
  Object.defineProperty(exports, "Orbit", {
25
26
  enumerable: true,
26
- get: function () { return chunkBWR6DSQJ_js.Orbit; }
27
+ get: function () { return chunkL5DU65XJ_js.Orbit; }
27
28
  });
28
29
  Object.defineProperty(exports, "Rocket", {
29
30
  enumerable: true,
30
- get: function () { return chunkBWR6DSQJ_js.Rocket; }
31
+ get: function () { return chunkL5DU65XJ_js.Rocket; }
31
32
  });
32
33
  Object.defineProperty(exports, "Sparkles", {
33
34
  enumerable: true,
34
- get: function () { return chunkBWR6DSQJ_js.Sparkles; }
35
+ get: function () { return chunkL5DU65XJ_js.Sparkles; }
35
36
  });
36
37
  Object.defineProperty(exports, "Star", {
37
38
  enumerable: true,
38
- get: function () { return chunkBWR6DSQJ_js.Star; }
39
+ get: function () { return chunkL5DU65XJ_js.Star; }
39
40
  });
40
41
  Object.defineProperty(exports, "TemplateSelector", {
41
42
  enumerable: true,
42
- get: function () { return chunkBWR6DSQJ_js.TemplateSelector; }
43
+ get: function () { return chunkL5DU65XJ_js.TemplateSelector; }
43
44
  });
44
45
  Object.defineProperty(exports, "TextButton", {
45
46
  enumerable: true,
46
- get: function () { return chunkBWR6DSQJ_js.TextButton; }
47
+ get: function () { return chunkL5DU65XJ_js.TextButton; }
47
48
  });
48
49
  Object.defineProperty(exports, "Toast", {
49
50
  enumerable: true,
50
- get: function () { return chunkBWR6DSQJ_js.Toast; }
51
+ get: function () { return chunkL5DU65XJ_js.Toast; }
51
52
  });
52
53
  //# sourceMappingURL=enhanced.js.map
53
54
  //# sourceMappingURL=enhanced.js.map
package/dist/enhanced.mjs CHANGED
@@ -1,4 +1,5 @@
1
- export { AnimatedButton, Globe, Input, Moon, Orbit, Rocket, Sparkles, Star, TemplateSelector, TextButton, Toast } from './chunk-TQPMV72P.mjs';
1
+ export { AnimatedButton, Globe, Input, Moon, Orbit, Rocket, Sparkles, Star, TemplateSelector, TextButton, Toast } from './chunk-SVBDAFK4.mjs';
2
2
  import './chunk-TDRL2RCT.mjs';
3
+ import './chunk-WFBSFUC6.mjs';
3
4
  //# sourceMappingURL=enhanced.mjs.map
4
5
  //# sourceMappingURL=enhanced.mjs.map
package/dist/hooks.d.mts CHANGED
@@ -1,2 +1,31 @@
1
+ import { b as ToastVariant, c as ToastAction } from './toast-cr-vEOyB.mjs';
2
+ import 'react';
1
3
 
2
- export { }
4
+ interface ToastData {
5
+ message: string;
6
+ variant?: ToastVariant;
7
+ duration?: number;
8
+ icon?: React.ReactNode | boolean;
9
+ action?: ToastAction;
10
+ expandedContent?: React.ReactNode;
11
+ }
12
+ declare function useToast(): {
13
+ toast: {
14
+ isVisible: boolean;
15
+ onDismiss: () => void;
16
+ message: string;
17
+ variant?: ToastVariant;
18
+ duration?: number;
19
+ icon?: React.ReactNode | boolean;
20
+ action?: ToastAction;
21
+ expandedContent?: React.ReactNode;
22
+ } | null;
23
+ showToast: (toastData: ToastData) => void;
24
+ showSuccess: (message: string, options?: Omit<ToastData, "message" | "variant">) => void;
25
+ showError: (message: string, options?: Omit<ToastData, "message" | "variant">) => void;
26
+ showWarning: (message: string, options?: Omit<ToastData, "message" | "variant">) => void;
27
+ showInfo: (message: string, options?: Omit<ToastData, "message" | "variant">) => void;
28
+ hideToast: () => void;
29
+ };
30
+
31
+ export { type ToastData, useToast };
package/dist/hooks.d.ts CHANGED
@@ -1,2 +1,31 @@
1
+ import { b as ToastVariant, c as ToastAction } from './toast-cr-vEOyB.js';
2
+ import 'react';
1
3
 
2
- export { }
4
+ interface ToastData {
5
+ message: string;
6
+ variant?: ToastVariant;
7
+ duration?: number;
8
+ icon?: React.ReactNode | boolean;
9
+ action?: ToastAction;
10
+ expandedContent?: React.ReactNode;
11
+ }
12
+ declare function useToast(): {
13
+ toast: {
14
+ isVisible: boolean;
15
+ onDismiss: () => void;
16
+ message: string;
17
+ variant?: ToastVariant;
18
+ duration?: number;
19
+ icon?: React.ReactNode | boolean;
20
+ action?: ToastAction;
21
+ expandedContent?: React.ReactNode;
22
+ } | null;
23
+ showToast: (toastData: ToastData) => void;
24
+ showSuccess: (message: string, options?: Omit<ToastData, "message" | "variant">) => void;
25
+ showError: (message: string, options?: Omit<ToastData, "message" | "variant">) => void;
26
+ showWarning: (message: string, options?: Omit<ToastData, "message" | "variant">) => void;
27
+ showInfo: (message: string, options?: Omit<ToastData, "message" | "variant">) => void;
28
+ hideToast: () => void;
29
+ };
30
+
31
+ export { type ToastData, useToast };
package/dist/hooks.js CHANGED
@@ -1,6 +1,13 @@
1
1
  'use strict';
2
2
 
3
- require('./chunk-AA25LTS4.js');
3
+ var chunkHQDEEBXV_js = require('./chunk-HQDEEBXV.js');
4
+ require('./chunk-GGM3MDFM.js');
4
5
 
6
+
7
+
8
+ Object.defineProperty(exports, "useToast", {
9
+ enumerable: true,
10
+ get: function () { return chunkHQDEEBXV_js.useToast; }
11
+ });
5
12
  //# sourceMappingURL=hooks.js.map
6
13
  //# sourceMappingURL=hooks.js.map
package/dist/hooks.mjs CHANGED
@@ -1,3 +1,4 @@
1
- import './chunk-Y6G4VKJ3.mjs';
1
+ export { useToast } from './chunk-BNOZCJOK.mjs';
2
+ import './chunk-WFBSFUC6.mjs';
2
3
  //# sourceMappingURL=hooks.mjs.map
3
4
  //# sourceMappingURL=hooks.mjs.map
package/dist/index.d.mts CHANGED
@@ -1,6 +1,8 @@
1
1
  export { Badge, BadgeProps, Button, ButtonProps, Caption, CaptionProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Code, 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, FormControlProps, FormDescription, FormDescriptionProps, FormField, FormFieldProps, FormLabel, FormLabelProps, FormMessage, FormMessageProps, FormProps, Heading, HeadingProps, Label, LabelProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Skeleton, SkeletonAvatar, SkeletonBadge, SkeletonButton, SkeletonCard, SkeletonIcon, SkeletonInput, SkeletonSubtitle, SkeletonTableRow, SkeletonTableRows, SkeletonText, SkeletonTitle, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Text, TextProps, Textarea, TextareaProps, badgeVariants, buttonVariants, captionVariants, codeVariants, headingVariants, labelVariants, textVariants, useFormContext, useFormFieldContext } from './primitives.mjs';
2
- export { AccentColor, AnimatedButton, AnimatedButtonProps, Input, InputProps, SelectOption, Template, TemplateSelector, TemplateSelectorProps, TextButton, TextButtonProps, Toast, ToastProps } from './enhanced.mjs';
2
+ export { AccentColor, AnimatedButton, AnimatedButtonProps, Input, InputProps, SelectOption, Template, TemplateSelector, TemplateSelectorProps, TextButton, TextButtonProps } from './enhanced.mjs';
3
+ export { T as Toast, a as ToastProps } from './toast-cr-vEOyB.mjs';
3
4
  export { ArrowRightIcon, ArrowRightIconHandle, ArrowRightIconProps, CheckIcon, CheckIconHandle, CheckIconProps, PlusIcon, PlusIconHandle, PlusIconProps, SendIcon, SendIconHandle, SendIconProps, TrashIcon, TrashIconHandle, TrashIconProps } from './animated-icons.mjs';
5
+ export { ToastData, useToast } from './hooks.mjs';
4
6
  import { ClassValue } from 'clsx';
5
7
  export { Globe, Moon, Orbit, Rocket, Sparkles, Star } from 'lucide-react';
6
8
  import 'react/jsx-runtime';
package/dist/index.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  export { Badge, BadgeProps, Button, ButtonProps, Caption, CaptionProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Code, 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, FormControlProps, FormDescription, FormDescriptionProps, FormField, FormFieldProps, FormLabel, FormLabelProps, FormMessage, FormMessageProps, FormProps, Heading, HeadingProps, Label, LabelProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Skeleton, SkeletonAvatar, SkeletonBadge, SkeletonButton, SkeletonCard, SkeletonIcon, SkeletonInput, SkeletonSubtitle, SkeletonTableRow, SkeletonTableRows, SkeletonText, SkeletonTitle, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Text, TextProps, Textarea, TextareaProps, badgeVariants, buttonVariants, captionVariants, codeVariants, headingVariants, labelVariants, textVariants, useFormContext, useFormFieldContext } from './primitives.js';
2
- export { AccentColor, AnimatedButton, AnimatedButtonProps, Input, InputProps, SelectOption, Template, TemplateSelector, TemplateSelectorProps, TextButton, TextButtonProps, Toast, ToastProps } from './enhanced.js';
2
+ export { AccentColor, AnimatedButton, AnimatedButtonProps, Input, InputProps, SelectOption, Template, TemplateSelector, TemplateSelectorProps, TextButton, TextButtonProps } from './enhanced.js';
3
+ export { T as Toast, a as ToastProps } from './toast-cr-vEOyB.js';
3
4
  export { ArrowRightIcon, ArrowRightIconHandle, ArrowRightIconProps, CheckIcon, CheckIconHandle, CheckIconProps, PlusIcon, PlusIconHandle, PlusIconProps, SendIcon, SendIconHandle, SendIconProps, TrashIcon, TrashIconHandle, TrashIconProps } from './animated-icons.js';
5
+ export { ToastData, useToast } from './hooks.js';
4
6
  import { ClassValue } from 'clsx';
5
7
  export { Globe, Moon, Orbit, Rocket, Sparkles, Star } from 'lucide-react';
6
8
  import 'react/jsx-runtime';