arkenstone-ui 0.0.17 → 0.0.18

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 (121) hide show
  1. package/dist/arkenstone-ui.es.js +11677 -188
  2. package/dist/arkenstone-ui.umd.js +112 -4
  3. package/dist/style.css +1 -1
  4. package/dist/types/components/access-gate.d.ts +11 -0
  5. package/dist/types/components/arkestone.d.ts +25 -0
  6. package/dist/types/components/custom/breadcrumb.d.ts +7 -0
  7. package/dist/types/components/custom/button.d.ts +4 -0
  8. package/dist/types/components/custom/index.d.ts +8 -0
  9. package/dist/types/components/custom/input.d.ts +3 -0
  10. package/dist/types/components/custom/mode-toggle.d.ts +1 -0
  11. package/dist/types/components/custom/search.d.ts +23 -0
  12. package/dist/types/components/index.d.ts +2 -0
  13. package/dist/types/components/sidebar/app-sidebar.d.ts +3 -0
  14. package/dist/types/components/sidebar/nav-main.d.ts +14 -0
  15. package/dist/types/components/sidebar/nav-secondary.d.ts +10 -0
  16. package/dist/types/components/sidebar/nav-slot2.d.ts +15 -0
  17. package/dist/types/components/sidebar/nav-user.d.ts +21 -0
  18. package/dist/types/components/tables/default-table.d.ts +17 -0
  19. package/dist/types/components/ui/accordion.d.ts +7 -0
  20. package/dist/types/components/ui/alert.d.ts +9 -0
  21. package/dist/types/components/ui/avatar.d.ts +6 -0
  22. package/dist/types/components/ui/badge.d.ts +9 -0
  23. package/dist/types/components/ui/breadcrumb.d.ts +11 -0
  24. package/dist/types/components/ui/button.d.ts +10 -0
  25. package/dist/types/components/ui/calendar.d.ts +8 -0
  26. package/dist/types/components/ui/card.d.ts +8 -0
  27. package/dist/types/components/ui/chart.d.ts +40 -0
  28. package/dist/types/components/ui/checkbox.d.ts +4 -0
  29. package/dist/types/components/ui/collapsible.d.ts +5 -0
  30. package/dist/types/components/ui/dialog.d.ts +13 -0
  31. package/dist/types/components/ui/dropdown-menu.d.ts +25 -0
  32. package/dist/types/components/ui/form.d.ts +24 -0
  33. package/dist/types/components/ui/hover-card.d.ts +6 -0
  34. package/dist/types/components/ui/icon.d.ts +7 -0
  35. package/dist/types/components/ui/input.d.ts +3 -0
  36. package/dist/types/components/ui/label.d.ts +4 -0
  37. package/dist/types/components/ui/navigation-menu.d.ts +14 -0
  38. package/dist/types/components/ui/placeholder-pattern.d.ts +5 -0
  39. package/dist/types/components/ui/popover.d.ts +6 -0
  40. package/dist/types/components/ui/scroll-area.d.ts +5 -0
  41. package/dist/types/components/ui/select.d.ts +15 -0
  42. package/dist/types/components/ui/separator.d.ts +4 -0
  43. package/dist/types/components/ui/sheet.d.ts +13 -0
  44. package/dist/types/components/ui/sidebar.d.ts +70 -0
  45. package/dist/types/components/ui/skeleton.d.ts +2 -0
  46. package/dist/types/components/ui/sonner.d.ts +3 -0
  47. package/dist/types/components/ui/table.d.ts +10 -0
  48. package/dist/types/components/ui/tabs.d.ts +7 -0
  49. package/dist/types/components/ui/toggle-group.d.ts +7 -0
  50. package/dist/types/components/ui/toggle.d.ts +9 -0
  51. package/dist/types/components/ui/tooltip.d.ts +7 -0
  52. package/dist/types/components/workspace/workspace.d.ts +1 -0
  53. package/dist/types/config/config.d.ts +41 -0
  54. package/dist/types/e-commerce/index.d.ts +1 -0
  55. package/dist/types/e-commerce/product/components/catelog/components/category-filter.d.ts +14 -0
  56. package/dist/types/e-commerce/product/components/catelog/components/filter.d.ts +60 -0
  57. package/dist/types/e-commerce/product/components/catelog/components/index.d.ts +6 -0
  58. package/dist/types/e-commerce/product/components/catelog/components/listing-controls.d.ts +12 -0
  59. package/dist/types/e-commerce/product/components/catelog/components/pagination.d.ts +37 -0
  60. package/dist/types/e-commerce/product/components/catelog/components/sort-bar.d.ts +33 -0
  61. package/dist/types/e-commerce/product/components/catelog/components/view-mode.d.ts +22 -0
  62. package/dist/types/e-commerce/product/components/catelog/index.d.ts +3 -0
  63. package/dist/types/e-commerce/product/components/catelog/layouts/catelog-content-layout.d.ts +9 -0
  64. package/dist/types/e-commerce/product/components/catelog/layouts/index.d.ts +2 -0
  65. package/dist/types/e-commerce/product/components/catelog/layouts/listings-layout.d.ts +13 -0
  66. package/dist/types/e-commerce/product/components/catelog/pages/default-catelog.d.ts +1 -0
  67. package/dist/types/e-commerce/product/components/catelog/pages/index.d.ts +1 -0
  68. package/dist/types/e-commerce/product/components/index.d.ts +2 -0
  69. package/dist/types/e-commerce/product/components/product-card/components/add-to-cart-button.d.ts +19 -0
  70. package/dist/types/e-commerce/product/components/product-card/components/brand-title.d.ts +16 -0
  71. package/dist/types/e-commerce/product/components/product-card/components/categories.d.ts +19 -0
  72. package/dist/types/e-commerce/product/components/product-card/components/discount-badge.d.ts +13 -0
  73. package/dist/types/e-commerce/product/components/product-card/components/index.d.ts +8 -0
  74. package/dist/types/e-commerce/product/components/product-card/components/price-card.d.ts +21 -0
  75. package/dist/types/e-commerce/product/components/product-card/components/product-image.d.ts +15 -0
  76. package/dist/types/e-commerce/product/components/product-card/components/view-details-button.d.ts +8 -0
  77. package/dist/types/e-commerce/product/components/product-card/components/wishlist-button.d.ts +15 -0
  78. package/dist/types/e-commerce/product/components/product-card/index.d.ts +4 -0
  79. package/dist/types/e-commerce/product/components/product-card/layouts/index.d.ts +2 -0
  80. package/dist/types/e-commerce/product/components/product-card/layouts/product-card-image-layout.d.ts +35 -0
  81. package/dist/types/e-commerce/product/components/product-card/layouts/product-card-layout.d.ts +16 -0
  82. package/dist/types/e-commerce/product/components/product-card/page/index.d.ts +1 -0
  83. package/dist/types/e-commerce/product/components/product-card/page/product-card-listing.d.ts +2 -0
  84. package/dist/types/e-commerce/product/components/product-card/product-card.d.ts +16 -0
  85. package/dist/types/e-commerce/product/index.d.ts +3 -0
  86. package/dist/types/e-commerce/product/service/brand-service.d.ts +67 -0
  87. package/dist/types/e-commerce/product/service/category-service.d.ts +68 -0
  88. package/dist/types/e-commerce/product/service/index.d.ts +7 -0
  89. package/dist/types/e-commerce/product/service/product-image-service.d.ts +44 -0
  90. package/dist/types/e-commerce/product/service/product-service.d.ts +67 -0
  91. package/dist/types/e-commerce/product/service/product-taxonomy-service.d.ts +49 -0
  92. package/dist/types/e-commerce/product/service/taxonomy-service.d.ts +69 -0
  93. package/dist/types/e-commerce/product/service/taxonomy-type-service.d.ts +68 -0
  94. package/dist/types/e-commerce/product/types/index.d.ts +87 -0
  95. package/dist/types/generics/generic-service.d.ts +0 -0
  96. package/dist/types/hooks/api.d.ts +15 -0
  97. package/dist/types/hooks/index.d.ts +1 -0
  98. package/dist/types/hooks/use-access.d.ts +7 -0
  99. package/dist/types/hooks/use-mobile.d.ts +1 -0
  100. package/dist/types/index.d.ts +7 -3
  101. package/dist/types/layouts/index.d.ts +0 -0
  102. package/dist/types/layouts/panels/default-panel-layout.d.ts +5 -0
  103. package/dist/types/lib/utils.d.ts +2 -0
  104. package/dist/types/provider/index.d.ts +1 -0
  105. package/dist/types/provider/theme-provider.d.ts +13 -0
  106. package/dist/types/stores/acl.store.d.ts +8 -0
  107. package/dist/types/stores/config.store.d.ts +10 -0
  108. package/dist/types/stores/index.d.ts +4 -0
  109. package/dist/types/stores/store-factory.d.ts +17 -0
  110. package/dist/types/stores/useStore.d.ts +43 -0
  111. package/dist/types/types/acl.d.ts +31 -0
  112. package/dist/types/types/config.d.ts +12 -0
  113. package/dist/types/types/index.d.ts +2 -0
  114. package/dist/types/util/currency-code/currency-symbols.json.d.ts +17 -0
  115. package/dist/types/util/currency-code/index.d.ts +6 -0
  116. package/dist/types/util/index.d.ts +2 -0
  117. package/dist/types/util/text-filter.d.ts +6 -0
  118. package/package.json +38 -2
  119. package/dist/types/components/button.d.ts +0 -5
  120. package/dist/types/components/janith-nirmal.d.ts +0 -3
  121. package/dist/types/pages/home.d.ts +0 -1
@@ -0,0 +1,24 @@
1
+ import { Slot } from '@radix-ui/react-slot';
2
+ import { ControllerProps, FieldPath, FieldValues } from 'react-hook-form';
3
+ import * as React from "react";
4
+ import * as LabelPrimitive from "@radix-ui/react-label";
5
+ declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: import('react-hook-form').FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
6
+ declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => import("react/jsx-runtime").JSX.Element;
7
+ declare const useFormField: () => {
8
+ invalid: boolean;
9
+ isDirty: boolean;
10
+ isTouched: boolean;
11
+ isValidating: boolean;
12
+ error?: import('react-hook-form').FieldError;
13
+ id: string;
14
+ name: string;
15
+ formItemId: string;
16
+ formDescriptionId: string;
17
+ formMessageId: string;
18
+ };
19
+ declare function FormItem({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
20
+ declare function FormLabel({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
21
+ declare function FormControl({ ...props }: React.ComponentProps<typeof Slot>): import("react/jsx-runtime").JSX.Element;
22
+ declare function FormDescription({ className, ...props }: React.ComponentProps<"p">): import("react/jsx-runtime").JSX.Element;
23
+ declare function FormMessage({ className, ...props }: React.ComponentProps<"p">): import("react/jsx-runtime").JSX.Element | null;
24
+ export { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField, };
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
3
+ declare function HoverCard({ ...props }: React.ComponentProps<typeof HoverCardPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function HoverCardTrigger({ ...props }: React.ComponentProps<typeof HoverCardPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
+ declare function HoverCardContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof HoverCardPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
6
+ export { HoverCard, HoverCardTrigger, HoverCardContent };
@@ -0,0 +1,7 @@
1
+ import { LucideIcon } from 'lucide-react';
2
+ interface IconProps {
3
+ iconNode?: LucideIcon | null;
4
+ className?: string;
5
+ }
6
+ export declare function Icon({ iconNode: IconComponent, className }: IconProps): import("react/jsx-runtime").JSX.Element | null;
7
+ export {};
@@ -0,0 +1,3 @@
1
+ import * as React from "react";
2
+ declare function Input({ className, type, ...props }: React.ComponentProps<"input">): import("react/jsx-runtime").JSX.Element;
3
+ export { Input };
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import * as LabelPrimitive from "@radix-ui/react-label";
3
+ declare function Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ export { Label };
@@ -0,0 +1,14 @@
1
+ import * as React from "react";
2
+ import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
3
+ declare function NavigationMenu({ className, children, viewport, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Root> & {
4
+ viewport?: boolean;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ declare function NavigationMenuList({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.List>): import("react/jsx-runtime").JSX.Element;
7
+ declare function NavigationMenuItem({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
8
+ declare const navigationMenuTriggerStyle: (props?: import('class-variance-authority/dist/types').ClassProp | undefined) => string;
9
+ declare function NavigationMenuTrigger({ className, children, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
10
+ declare function NavigationMenuContent({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
11
+ declare function NavigationMenuViewport({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Viewport>): import("react/jsx-runtime").JSX.Element;
12
+ declare function NavigationMenuLink({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Link>): import("react/jsx-runtime").JSX.Element;
13
+ declare function NavigationMenuIndicator({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Indicator>): import("react/jsx-runtime").JSX.Element;
14
+ export { NavigationMenu, NavigationMenuList, NavigationMenuItem, NavigationMenuContent, NavigationMenuTrigger, NavigationMenuLink, NavigationMenuIndicator, NavigationMenuViewport, navigationMenuTriggerStyle, };
@@ -0,0 +1,5 @@
1
+ interface PlaceholderPatternProps {
2
+ className?: string;
3
+ }
4
+ export declare function PlaceholderPattern({ className }: PlaceholderPatternProps): import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ import * as PopoverPrimitive from "@radix-ui/react-popover";
3
+ declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
4
+ declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
+ declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
6
+ export { Popover, PopoverTrigger, PopoverContent };
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
3
+ declare function ScrollArea({ className, children, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function ScrollBar({ className, orientation, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): import("react/jsx-runtime").JSX.Element;
5
+ export { ScrollArea, ScrollBar };
@@ -0,0 +1,15 @@
1
+ import * as React from "react";
2
+ import * as SelectPrimitive from "@radix-ui/react-select";
3
+ declare function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function SelectGroup({ ...props }: React.ComponentProps<typeof SelectPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
5
+ declare function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>): import("react/jsx-runtime").JSX.Element;
6
+ declare function SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
7
+ size?: "sm" | "default";
8
+ }): import("react/jsx-runtime").JSX.Element;
9
+ declare function SelectContent({ className, children, position, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
10
+ declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>): import("react/jsx-runtime").JSX.Element;
11
+ declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
12
+ declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
13
+ declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): import("react/jsx-runtime").JSX.Element;
14
+ declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): import("react/jsx-runtime").JSX.Element;
15
+ export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import * as SeparatorPrimitive from "@radix-ui/react-separator";
3
+ declare function Separator({ className, orientation, decorative, ...props }: React.ComponentProps<typeof SeparatorPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ export { Separator };
@@ -0,0 +1,13 @@
1
+ import * as React from "react";
2
+ import * as SheetPrimitive from "@radix-ui/react-dialog";
3
+ declare function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function SheetTrigger({ ...props }: React.ComponentProps<typeof SheetPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
+ declare function SheetClose({ ...props }: React.ComponentProps<typeof SheetPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
6
+ declare function SheetContent({ className, children, side, ...props }: React.ComponentProps<typeof SheetPrimitive.Content> & {
7
+ side?: "top" | "right" | "bottom" | "left";
8
+ }): import("react/jsx-runtime").JSX.Element;
9
+ declare function SheetHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
10
+ declare function SheetFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
11
+ declare function SheetTitle({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
12
+ declare function SheetDescription({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
13
+ export { Sheet, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, };
@@ -0,0 +1,70 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import { Button } from '../../components/ui/button';
3
+ import { Input } from '../../components/ui/input';
4
+ import { Separator } from '../../components/ui/separator';
5
+ import { TooltipContent } from './tooltip';
6
+ import * as React from "react";
7
+ type SidebarContext = {
8
+ state: "expanded" | "collapsed";
9
+ open: boolean;
10
+ setOpen: (open: boolean) => void;
11
+ openMobile: boolean;
12
+ setOpenMobile: (open: boolean) => void;
13
+ isMobile: boolean;
14
+ toggleSidebar: () => void;
15
+ };
16
+ declare const SidebarContext: React.Context<SidebarContext | null>;
17
+ declare function useSidebar(): SidebarContext;
18
+ declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React.ComponentProps<"div"> & {
19
+ defaultOpen?: boolean;
20
+ open?: boolean;
21
+ onOpenChange?: (open: boolean) => void;
22
+ }): import("react/jsx-runtime").JSX.Element;
23
+ declare function Sidebar({ side, variant, collapsible, className, children, ...props }: React.ComponentProps<"div"> & {
24
+ side?: "left" | "right";
25
+ variant?: "sidebar" | "floating" | "inset";
26
+ collapsible?: "offcanvas" | "icon" | "none";
27
+ }): import("react/jsx-runtime").JSX.Element;
28
+ declare function SidebarTrigger({ className, onClick, ...props }: React.ComponentProps<typeof Button>): import("react/jsx-runtime").JSX.Element;
29
+ declare function SidebarRail({ className, ...props }: React.ComponentProps<"button">): import("react/jsx-runtime").JSX.Element;
30
+ declare function SidebarInset({ className, ...props }: React.ComponentProps<"main">): import("react/jsx-runtime").JSX.Element;
31
+ declare function SidebarInput({ className, ...props }: React.ComponentProps<typeof Input>): import("react/jsx-runtime").JSX.Element;
32
+ declare function SidebarHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
33
+ declare function SidebarFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
34
+ declare function SidebarSeparator({ className, ...props }: React.ComponentProps<typeof Separator>): import("react/jsx-runtime").JSX.Element;
35
+ declare function SidebarContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
36
+ declare function SidebarGroup({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
37
+ declare function SidebarGroupLabel({ className, asChild, ...props }: React.ComponentProps<"div"> & {
38
+ asChild?: boolean;
39
+ }): import("react/jsx-runtime").JSX.Element;
40
+ declare function SidebarGroupAction({ className, asChild, ...props }: React.ComponentProps<"button"> & {
41
+ asChild?: boolean;
42
+ }): import("react/jsx-runtime").JSX.Element;
43
+ declare function SidebarGroupContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
44
+ declare function SidebarMenu({ className, ...props }: React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
45
+ declare function SidebarMenuItem({ className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
46
+ declare const sidebarMenuButtonVariants: (props?: ({
47
+ variant?: "default" | "outline" | null | undefined;
48
+ size?: "default" | "sm" | "lg" | null | undefined;
49
+ } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
50
+ declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip, className, ...props }: React.ComponentProps<"button"> & {
51
+ asChild?: boolean;
52
+ isActive?: boolean;
53
+ tooltip?: string | React.ComponentProps<typeof TooltipContent>;
54
+ } & VariantProps<typeof sidebarMenuButtonVariants>): import("react/jsx-runtime").JSX.Element;
55
+ declare function SidebarMenuAction({ className, asChild, showOnHover, ...props }: React.ComponentProps<"button"> & {
56
+ asChild?: boolean;
57
+ showOnHover?: boolean;
58
+ }): import("react/jsx-runtime").JSX.Element;
59
+ declare function SidebarMenuBadge({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
60
+ declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React.ComponentProps<"div"> & {
61
+ showIcon?: boolean;
62
+ }): import("react/jsx-runtime").JSX.Element;
63
+ declare function SidebarMenuSub({ className, ...props }: React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
64
+ declare function SidebarMenuSubItem({ className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
65
+ declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...props }: React.ComponentProps<"a"> & {
66
+ asChild?: boolean;
67
+ size?: "sm" | "md";
68
+ isActive?: boolean;
69
+ }): import("react/jsx-runtime").JSX.Element;
70
+ export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar, };
@@ -0,0 +1,2 @@
1
+ declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
2
+ export { Skeleton };
@@ -0,0 +1,3 @@
1
+ import { ToasterProps } from 'sonner';
2
+ declare const Toaster: ({ ...props }: ToasterProps) => import("react/jsx-runtime").JSX.Element;
3
+ export { Toaster };
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ declare function Table({ className, ...props }: React.ComponentProps<"table">): import("react/jsx-runtime").JSX.Element;
3
+ declare function TableHeader({ className, ...props }: React.ComponentProps<"thead">): import("react/jsx-runtime").JSX.Element;
4
+ declare function TableBody({ className, ...props }: React.ComponentProps<"tbody">): import("react/jsx-runtime").JSX.Element;
5
+ declare function TableFooter({ className, ...props }: React.ComponentProps<"tfoot">): import("react/jsx-runtime").JSX.Element;
6
+ declare function TableRow({ className, ...props }: React.ComponentProps<"tr">): import("react/jsx-runtime").JSX.Element;
7
+ declare function TableHead({ className, ...props }: React.ComponentProps<"th">): import("react/jsx-runtime").JSX.Element;
8
+ declare function TableCell({ className, ...props }: React.ComponentProps<"td">): import("react/jsx-runtime").JSX.Element;
9
+ declare function TableCaption({ className, ...props }: React.ComponentProps<"caption">): import("react/jsx-runtime").JSX.Element;
10
+ export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, };
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import * as TabsPrimitive from "@radix-ui/react-tabs";
3
+ declare function Tabs({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function TabsList({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.List>): import("react/jsx-runtime").JSX.Element;
5
+ declare function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
6
+ declare function TabsContent({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
7
+ export { Tabs, TabsList, TabsTrigger, TabsContent };
@@ -0,0 +1,7 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import { toggleVariants } from './toggle';
3
+ import * as React from "react";
4
+ import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
5
+ declare function ToggleGroup({ className, variant, size, children, ...props }: React.ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants>): import("react/jsx-runtime").JSX.Element;
6
+ declare function ToggleGroupItem({ className, children, variant, size, ...props }: React.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>): import("react/jsx-runtime").JSX.Element;
7
+ export { ToggleGroup, ToggleGroupItem };
@@ -0,0 +1,9 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from "react";
3
+ import * as TogglePrimitive from "@radix-ui/react-toggle";
4
+ declare const toggleVariants: (props?: ({
5
+ variant?: "default" | "outline" | null | undefined;
6
+ size?: "default" | "sm" | "lg" | null | undefined;
7
+ } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
8
+ declare function Toggle({ className, variant, size, ...props }: React.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>): import("react/jsx-runtime").JSX.Element;
9
+ export { Toggle, toggleVariants };
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import * as TooltipPrimitive from "@radix-ui/react-tooltip";
3
+ declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): import("react/jsx-runtime").JSX.Element;
4
+ declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
5
+ declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
6
+ declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
7
+ export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
@@ -0,0 +1 @@
1
+ export default function Workspace(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,41 @@
1
+ declare const Config: {
2
+ appName: string;
3
+ appDescription: string;
4
+ appSlogan: string;
5
+ appCompany: string;
6
+ appAuthors: {
7
+ name: string;
8
+ url: string;
9
+ }[];
10
+ appAuthorEmail: string;
11
+ appAuthorUrl: string;
12
+ appCompanyUrl: string;
13
+ appVersion: string;
14
+ lastUpdated: string;
15
+ apiVersion: string;
16
+ seller: {
17
+ name: string;
18
+ email: string;
19
+ phone: string;
20
+ whatsapp: string;
21
+ address: string;
22
+ website: string;
23
+ businessName: string;
24
+ businessEmail: string;
25
+ businessPhone: string;
26
+ businessWhatsapp: string;
27
+ businessAddress: string;
28
+ businessWebsite: string;
29
+ };
30
+ contact: {
31
+ address: string;
32
+ phone: string;
33
+ email: string;
34
+ website: string;
35
+ facebook: string;
36
+ instagram: string;
37
+ tiktok: string;
38
+ linkedin: string;
39
+ };
40
+ };
41
+ export default Config;
@@ -0,0 +1 @@
1
+ export * from './product';
@@ -0,0 +1,14 @@
1
+ import { ClassNamesMap } from './filter';
2
+ export type CategoryNode = {
3
+ label: string;
4
+ value: string | number | boolean;
5
+ children?: CategoryNode[];
6
+ };
7
+ export interface CategoryFilterProps {
8
+ options: CategoryNode[];
9
+ selected: (string | number | boolean)[];
10
+ onToggle: (values: (string | number | boolean)[]) => void;
11
+ level?: number;
12
+ classNames?: ClassNamesMap;
13
+ }
14
+ export default function CategoryFilter({ options, selected, onToggle, level, classNames, }: CategoryFilterProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,60 @@
1
+ import { default as React } from 'react';
2
+ export type ClassNamesMap = Partial<Record<"wrapper" | "item" | "title" | "collapseIcon" | "options" | "option" | "input" | "checkbox" | "radio" | "chip" | "toggle" | "color" | "image" | "rating" | "tag" | "icon" | "range" | "tree" | "treeNode" | "treeToggle" | "treeLabel" | "treeChildren" | "button", string>>;
3
+ export interface FilterOption {
4
+ label: string;
5
+ value: string | number | boolean;
6
+ color?: string;
7
+ image?: string;
8
+ icon?: React.ReactNode;
9
+ rating?: number;
10
+ min?: number;
11
+ max?: number;
12
+ step?: number;
13
+ children?: FilterOption[];
14
+ className?: string;
15
+ }
16
+ export interface FilterOptionItemProps extends FilterOption {
17
+ type: "checkbox" | "radio" | "chip" | "toggle" | "switch" | "color" | "image" | "rating" | "tag" | "icon" | "range" | string;
18
+ selected: any;
19
+ onCheckboxToggle: (value: string) => void;
20
+ onRadioSelect: (value: any) => void;
21
+ classNames?: ClassNamesMap;
22
+ }
23
+ export interface FiltersProps {
24
+ filters: (FilterItemProps | FilterItemProps[])[];
25
+ direction?: "vertical" | "horizontal";
26
+ value?: Record<string, string | string[] | boolean | number>;
27
+ onChange?: (values: Record<string, string | string[] | boolean | number>) => void;
28
+ verticalFilterClassName?: string;
29
+ horizontalFilterClassName?: string;
30
+ customRenderers?: Record<string, React.ComponentType<FilterRenderProps>>;
31
+ globalClassNames?: ClassNamesMap;
32
+ }
33
+ export interface FilterItemProps {
34
+ id: string;
35
+ title: string;
36
+ options: FilterOption[];
37
+ collapsible?: boolean;
38
+ defaultCollapsed?: boolean;
39
+ collapsibleIconUp?: React.ReactNode;
40
+ collapsibleIconDown?: React.ReactNode;
41
+ type?: string;
42
+ classNames?: ClassNamesMap;
43
+ component?: React.ComponentType<FilterRenderProps>;
44
+ render?: (props: FilterRenderProps) => React.ReactNode;
45
+ customProps?: Record<string, any>;
46
+ filterItemsClassName?: string;
47
+ }
48
+ export interface FilterItemInternalProps extends FilterItemProps {
49
+ state: Record<string, any>;
50
+ update: (id: string, value: any) => void;
51
+ customRenderers?: FiltersProps["customRenderers"];
52
+ globalClassNames?: ClassNamesMap;
53
+ }
54
+ export interface FilterRenderProps {
55
+ filter: FilterItemProps;
56
+ state: Record<string, any>;
57
+ update: (id: string, value: any) => void;
58
+ classNames?: ClassNamesMap;
59
+ }
60
+ export default function Filters({ filters, direction, value, onChange, verticalFilterClassName, horizontalFilterClassName, customRenderers, globalClassNames, }: FiltersProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ export * from './category-filter';
2
+ export * from './filter';
3
+ export * from './listing-controls';
4
+ export * from './pagination';
5
+ export * from './sort-bar';
6
+ export * from './view-mode';
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ import { SortBarProps } from './sort-bar';
3
+ import { ViewModeSwitcherProps } from './view-mode';
4
+ export interface ListingControlProps {
5
+ sortProps?: SortBarProps;
6
+ viewModeProps?: ViewModeSwitcherProps;
7
+ sortComponent?: React.ReactNode;
8
+ viewModeComponent?: React.ReactNode;
9
+ extra?: React.ReactNode[];
10
+ direction?: "row" | "column";
11
+ }
12
+ export declare function ListingControl({ sortProps, viewModeProps, sortComponent, viewModeComponent, extra, direction, }: ListingControlProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,37 @@
1
+ import { default as React } from 'react';
2
+ export interface PaginationProps {
3
+ /** Current page number (1-indexed) */
4
+ page: number;
5
+ /** Total items available */
6
+ total: number;
7
+ /** Page size (items per page) */
8
+ pageSize: number;
9
+ /** Change handler */
10
+ onChange: (page: number) => void;
11
+ /** Optional customizations */
12
+ show?: {
13
+ arrows?: boolean;
14
+ pages?: boolean;
15
+ summary?: boolean;
16
+ pageSize?: boolean;
17
+ };
18
+ /** Custom render overrides */
19
+ customRender?: {
20
+ renderPrev?: React.ReactNode;
21
+ renderNext?: React.ReactNode;
22
+ renderPage?: (page: number, isActive: boolean) => React.ReactNode;
23
+ renderPageSize?: React.ReactNode;
24
+ };
25
+ /** Styling */
26
+ className?: {
27
+ container?: string;
28
+ summary?: string;
29
+ page?: string;
30
+ activePage?: string;
31
+ prevNext?: string;
32
+ pageSizeSelect?: string;
33
+ pageButton?: string;
34
+ disabled?: string;
35
+ };
36
+ }
37
+ export declare function Pagination({ page, total, pageSize, onChange, show, customRender, className }: PaginationProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,33 @@
1
+ export interface SortOption {
2
+ label: string;
3
+ value: string;
4
+ }
5
+ export interface SortBarProps {
6
+ /** asc | desc */
7
+ sortOrder: "asc" | "desc";
8
+ /** Current sorting value */
9
+ sortBy: string;
10
+ /** Sorting options (developer can add more) */
11
+ sortOptions?: SortOption[];
12
+ /** Callbacks */
13
+ onSortChange: (order: "asc" | "desc") => void;
14
+ onSortByChange: (sortBy: string) => void;
15
+ labels?: {
16
+ orderTitle?: string;
17
+ orderButtonLabel?: string;
18
+ sortByTitle?: string;
19
+ };
20
+ /** Styling */
21
+ className?: {
22
+ order?: string;
23
+ orderDropdown?: string;
24
+ orderButton?: string;
25
+ dropdownContainer?: string;
26
+ sortByHeader?: string;
27
+ option?: string;
28
+ optionSelected?: string;
29
+ orderHeader?: string;
30
+ orderOption?: string;
31
+ };
32
+ }
33
+ export declare function SortBar({ sortOrder, sortBy, sortOptions, onSortChange, onSortByChange, labels, className, }: SortBarProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,22 @@
1
+ export type ViewMode = "card" | "list" | "table";
2
+ export interface ViewModeSwitcherProps {
3
+ /** Current selected view mode */
4
+ mode: ViewMode;
5
+ /** Callback when user selects a different mode */
6
+ onChange: (mode: ViewMode) => void;
7
+ /** Optional: allow developer to pass custom modes or hide some */
8
+ availableModes?: ViewMode[];
9
+ /** Styles */
10
+ className?: {
11
+ container?: string;
12
+ button?: string;
13
+ selectedButton?: string;
14
+ unselectedButton?: string;
15
+ cardButton?: string;
16
+ listButton?: string;
17
+ tableButton?: string;
18
+ /** Icon size */
19
+ iconSize?: number;
20
+ };
21
+ }
22
+ export declare function ViewModeSwitcher({ mode, onChange, availableModes, className }: ViewModeSwitcherProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export * from './components';
2
+ export * from './layouts';
3
+ export * from './pages';
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from 'react';
2
+ export type CatalogLayoutProps = {
3
+ top?: ReactNode | false;
4
+ bottom?: ReactNode | false;
5
+ left?: ReactNode | false;
6
+ right?: ReactNode | false;
7
+ listings?: ReactNode | false;
8
+ };
9
+ export default function CatalogContentLayout({ top, left, listings, right, bottom, }: CatalogLayoutProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from './catelog-content-layout';
2
+ export * from './listings-layout';
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ interface ListingProps<T> {
3
+ /** Component or element for the controls (search, filters, etc.) */
4
+ controls?: React.ReactNode;
5
+ /** Component or element for rendering the list of items */
6
+ list: React.ReactNode;
7
+ /** Component or element for pagination controls */
8
+ pagination?: React.ReactNode;
9
+ /** Optional className for styling */
10
+ className?: string;
11
+ }
12
+ export declare function Listing<T>({ controls, list, pagination, className }: ListingProps<T>): import("react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -0,0 +1 @@
1
+ export default function DefaultCatalogPage(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './default-catelog';
@@ -0,0 +1,2 @@
1
+ export * from './catelog';
2
+ export * from './product-card';
@@ -0,0 +1,19 @@
1
+ export interface AddToCartButtonProps {
2
+ /** Triggered when user clicks add-to-cart */
3
+ onAddToCart?: () => void;
4
+ iconOnly?: boolean;
5
+ showIconWithText?: boolean;
6
+ /** Icon Node */
7
+ icon?: React.ReactNode;
8
+ className?: string;
9
+ /** Labels */
10
+ labels?: {
11
+ addToCartText?: string;
12
+ inCartText?: string;
13
+ };
14
+ state?: {
15
+ isOutOfStock?: boolean;
16
+ isInCart?: boolean;
17
+ };
18
+ }
19
+ export declare function AddToCart({ onAddToCart, iconOnly, showIconWithText, icon, className, labels, state }: AddToCartButtonProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,16 @@
1
+ export interface BrandTitleProps {
2
+ brand?: React.ReactNode;
3
+ title?: React.ReactNode;
4
+ show?: {
5
+ brand?: boolean;
6
+ title?: boolean;
7
+ };
8
+ brandPlacement?: "before" | "after" | "hidden" | "top" | "bottom";
9
+ className?: {
10
+ brand?: string;
11
+ title?: string;
12
+ wrapper?: string;
13
+ separator?: string;
14
+ };
15
+ }
16
+ export declare function BrandTitle({ brand, title, show, brandPlacement, className, }: BrandTitleProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,19 @@
1
+ export interface CategoryItem {
2
+ id: string | number;
3
+ name: string;
4
+ }
5
+ export interface CategoriesBadgeListProps {
6
+ categories: CategoryItem[];
7
+ /** Max categories to display before "+X" appears */
8
+ maxCategories?: number;
9
+ /** Show +X badge */
10
+ showRemainingCount?: boolean;
11
+ className?: {
12
+ position?: string;
13
+ category?: string;
14
+ remaining?: string;
15
+ wrapper?: string;
16
+ };
17
+ onCategoryClick?: (category: CategoryItem) => void;
18
+ }
19
+ export declare function CategoriesBadgeList({ categories, maxCategories, showRemainingCount, className, onCategoryClick, }: CategoriesBadgeListProps): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ export type DiscountType = "percentage" | "fixed" | null;
3
+ export interface DiscountBadgeProps {
4
+ /** Example: 25 will render "25% OFF" */
5
+ discount?: number;
6
+ discountType?: DiscountType;
7
+ /** ISO code or symbol (e.g. "USD" or "$") */
8
+ currency?: string;
9
+ fractionDigits?: number;
10
+ renderLabel?: (value: number, type: DiscountType) => React.ReactNode;
11
+ className?: string;
12
+ }
13
+ export declare function DiscountBadge({ discount, discountType, currency, fractionDigits, renderLabel, className, }: DiscountBadgeProps): import("react/jsx-runtime").JSX.Element | null;