@clasing/ui 0.1.124 → 0.1.126

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 (105) hide show
  1. package/dist/components/accordion.d.ts +7 -0
  2. package/dist/components/alert-dialog.d.ts +14 -0
  3. package/dist/components/alert.d.ts +15 -0
  4. package/dist/components/avatar.d.ts +6 -0
  5. package/dist/components/badge.d.ts +18 -0
  6. package/dist/components/blocks/date-picker.d.ts +30 -0
  7. package/dist/components/blocks/date-range-picker.cjs.js +1 -1
  8. package/dist/components/blocks/date-range-picker.d.ts +29 -0
  9. package/dist/components/blocks/date-range-picker.es.js +46 -38
  10. package/dist/components/blocks/interactive-card.d.ts +26 -0
  11. package/dist/components/blocks/selectable-chips.d.ts +16 -0
  12. package/dist/components/breadcrumb.d.ts +11 -0
  13. package/dist/components/button.d.ts +39 -0
  14. package/dist/components/calendar.d.ts +15 -0
  15. package/dist/components/card.d.ts +9 -0
  16. package/dist/components/chart.d.ts +43 -0
  17. package/dist/components/checkbox.cjs.js +1 -1
  18. package/dist/components/checkbox.d.ts +4 -0
  19. package/dist/components/checkbox.es.js +1 -1
  20. package/dist/components/chip.d.ts +25 -0
  21. package/dist/components/collapsible.d.ts +5 -0
  22. package/dist/components/command.d.ts +18 -0
  23. package/dist/components/context-menu.d.ts +25 -0
  24. package/dist/components/dialog.d.ts +15 -0
  25. package/dist/components/divider.d.ts +6 -0
  26. package/dist/components/drawer.d.ts +13 -0
  27. package/dist/components/dropdown-menu.d.ts +25 -0
  28. package/dist/components/hover-card.d.ts +6 -0
  29. package/dist/components/icon-component.d.ts +12 -0
  30. package/dist/components/input-otp.d.ts +11 -0
  31. package/dist/components/input.d.ts +32 -0
  32. package/dist/components/label.d.ts +4 -0
  33. package/dist/components/menubar.d.ts +26 -0
  34. package/dist/components/multi-select.cjs.js +1 -1
  35. package/dist/components/multi-select.d.ts +33 -0
  36. package/dist/components/multi-select.es.js +89 -83
  37. package/dist/components/navigation-menu.d.ts +14 -0
  38. package/dist/components/phone-input.d.ts +14 -0
  39. package/dist/components/popover.d.ts +7 -0
  40. package/dist/components/progress.d.ts +4 -0
  41. package/dist/components/resizable.d.ts +8 -0
  42. package/dist/components/scroll-area.d.ts +5 -0
  43. package/dist/components/select.d.ts +15 -0
  44. package/dist/components/sheet.d.ts +13 -0
  45. package/dist/components/skeleton.d.ts +2 -0
  46. package/dist/components/slider.d.ts +4 -0
  47. package/dist/components/sonner.d.ts +3 -0
  48. package/dist/components/switch.d.ts +11 -0
  49. package/dist/components/table.d.ts +10 -0
  50. package/dist/components/toggle-group.d.ts +7 -0
  51. package/dist/components/toggle.d.ts +9 -0
  52. package/dist/components/tooltip.d.ts +7 -0
  53. package/dist/entries/accordion.d.ts +2 -0
  54. package/dist/entries/alert-dialog.d.ts +2 -0
  55. package/dist/entries/alert.d.ts +2 -0
  56. package/dist/entries/avatar.d.ts +2 -0
  57. package/dist/entries/badge.d.ts +2 -0
  58. package/dist/entries/blocks/date-picker.d.ts +2 -0
  59. package/dist/entries/blocks/date-range-picker.d.ts +2 -0
  60. package/dist/entries/blocks/interactive-card.d.ts +2 -0
  61. package/dist/entries/blocks/selectable-chips.d.ts +2 -0
  62. package/dist/entries/breadcrumb.d.ts +2 -0
  63. package/dist/entries/button.d.ts +2 -0
  64. package/dist/entries/calendar.d.ts +2 -0
  65. package/dist/entries/card.d.ts +2 -0
  66. package/dist/entries/chart.d.ts +2 -0
  67. package/dist/entries/checkbox.d.ts +2 -0
  68. package/dist/entries/chip.d.ts +2 -0
  69. package/dist/entries/collapsible.d.ts +2 -0
  70. package/dist/entries/command.d.ts +2 -0
  71. package/dist/entries/context-menu.d.ts +2 -0
  72. package/dist/entries/dialog.d.ts +2 -0
  73. package/dist/entries/divider.d.ts +2 -0
  74. package/dist/entries/drawer.d.ts +2 -0
  75. package/dist/entries/dropdown-menu.d.ts +2 -0
  76. package/dist/entries/hooks/useOutsideClick.d.ts +2 -0
  77. package/dist/entries/hover-card.d.ts +2 -0
  78. package/dist/entries/icon-component.d.ts +2 -0
  79. package/dist/entries/input-otp.d.ts +2 -0
  80. package/dist/entries/input.d.ts +2 -0
  81. package/dist/entries/label.d.ts +2 -0
  82. package/dist/entries/menubar.d.ts +2 -0
  83. package/dist/entries/multi-select.d.ts +2 -0
  84. package/dist/entries/navigation-menu.d.ts +2 -0
  85. package/dist/entries/phone-input.d.ts +2 -0
  86. package/dist/entries/popover.d.ts +2 -0
  87. package/dist/entries/progress.d.ts +2 -0
  88. package/dist/entries/resizable.d.ts +2 -0
  89. package/dist/entries/scroll-area.d.ts +2 -0
  90. package/dist/entries/select.d.ts +2 -0
  91. package/dist/entries/sheet.d.ts +2 -0
  92. package/dist/entries/skeleton.d.ts +2 -0
  93. package/dist/entries/slider.d.ts +2 -0
  94. package/dist/entries/sonner.d.ts +2 -0
  95. package/dist/entries/switch.d.ts +2 -0
  96. package/dist/entries/table.d.ts +2 -0
  97. package/dist/entries/toggle-group.d.ts +2 -0
  98. package/dist/entries/toggle.d.ts +2 -0
  99. package/dist/entries/tooltip.d.ts +2 -0
  100. package/dist/entries/utils/types.d.ts +2 -0
  101. package/dist/hooks/useOutsideClick.d.ts +6 -0
  102. package/dist/tests/setup.d.ts +1 -0
  103. package/dist/utils/index.d.ts +5 -0
  104. package/dist/utils/types/index.d.ts +36 -0
  105. package/package.json +3 -2
@@ -0,0 +1,7 @@
1
+ import * as AccordionPrimitive from '@radix-ui/react-accordion';
2
+ import * as React from 'react';
3
+ declare function Accordion({ ...props }: React.ComponentProps<typeof AccordionPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function AccordionItem({ className, ...props }: React.ComponentProps<typeof AccordionPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
5
+ declare function AccordionTrigger({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
6
+ declare function AccordionContent({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
7
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
@@ -0,0 +1,14 @@
1
+ import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
2
+ import * as React from 'react';
3
+ declare function AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function AlertDialogTrigger({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
+ declare function AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
6
+ declare function AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
7
+ declare function AlertDialogContent({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
8
+ declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
9
+ declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
10
+ declare function AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
11
+ declare function AlertDialogDescription({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
12
+ declare function AlertDialogAction({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Action>): import("react/jsx-runtime").JSX.Element;
13
+ declare function AlertDialogCancel({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Cancel>): import("react/jsx-runtime").JSX.Element;
14
+ export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, };
@@ -0,0 +1,15 @@
1
+ import { type VariantProps } from 'class-variance-authority';
2
+ import { TablerIconName } from './icon-component';
3
+ export interface IAlertProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {
4
+ title?: string;
5
+ content?: string;
6
+ showIcon?: boolean;
7
+ iconName?: TablerIconName;
8
+ }
9
+ declare const alertVariants: (props?: ({
10
+ variant?: "error" | "info" | "success" | "warning" | "neutral" | null | undefined;
11
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
12
+ declare function Alert({ className, title, content, variant, showIcon, iconName, children, ...props }: React.ComponentProps<'div'> & VariantProps<typeof alertVariants> & IAlertProps): import("react/jsx-runtime").JSX.Element;
13
+ declare function AlertTitle({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
14
+ declare function AlertDescription({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
15
+ export { Alert, AlertDescription, AlertTitle };
@@ -0,0 +1,6 @@
1
+ import * as AvatarPrimitive from '@radix-ui/react-avatar';
2
+ import * as React from 'react';
3
+ declare function Avatar({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>): import("react/jsx-runtime").JSX.Element;
5
+ declare function AvatarFallback({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Fallback>): import("react/jsx-runtime").JSX.Element;
6
+ export { Avatar, AvatarFallback, AvatarImage };
@@ -0,0 +1,18 @@
1
+ import { type VariantProps } from 'class-variance-authority';
2
+ import * as React from 'react';
3
+ import { TablerIconName } from './icon-component';
4
+ declare const badgeVariants: (props?: ({
5
+ variant?: "default" | "error" | "outline" | "primary" | "secondary" | "destructive" | "info" | "success" | "warning" | "neutral" | "yellow" | "blue" | "violet" | null | undefined;
6
+ size?: "lg" | "md" | "sm" | "xs" | null | undefined;
7
+ weight?: "bold" | "light" | "regular" | "semibold" | null | undefined;
8
+ rounded?: "default" | "full" | null | undefined;
9
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
10
+ export interface IBadgeProps extends React.ComponentProps<'span'>, VariantProps<typeof badgeVariants> {
11
+ iconName?: TablerIconName;
12
+ iconPosition?: 'left' | 'right';
13
+ iconStroke?: string;
14
+ iconOnly?: boolean;
15
+ asChild?: boolean;
16
+ }
17
+ declare function Badge({ className, variant, size, weight, rounded, iconName, iconPosition, iconStroke, iconOnly, asChild, children, ...props }: IBadgeProps): import("react/jsx-runtime").JSX.Element;
18
+ export { Badge, badgeVariants };
@@ -0,0 +1,30 @@
1
+ import { type VariantProps } from 'class-variance-authority';
2
+ import 'react-day-picker/dist/style.css';
3
+ declare const datepickerTriggerStyles: (props?: ({
4
+ size?: "lg" | "md" | "sm" | null | undefined;
5
+ rounded?: "default" | "full" | null | undefined;
6
+ state?: "selected" | "default" | "error" | null | undefined;
7
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
+ export interface IDatepickerProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'>, VariantProps<typeof datepickerTriggerStyles> {
9
+ label?: string;
10
+ helperText?: string;
11
+ error?: string;
12
+ touched?: boolean;
13
+ value?: string;
14
+ locale?: 'enGB' | 'enUS' | 'es' | 'fr';
15
+ size?: 'sm' | 'md' | 'lg';
16
+ rounded?: 'default' | 'full';
17
+ side?: 'top' | 'right' | 'bottom' | 'left';
18
+ align?: 'start' | 'center' | 'end';
19
+ placeholder?: string;
20
+ disabledDates?: string | string[] | Date | Date[] | undefined;
21
+ enabledDates?: string | string[] | Date | Date[] | undefined;
22
+ calendarDropdowns?: boolean;
23
+ hideNavigation?: boolean;
24
+ showOutsideDays?: boolean;
25
+ minDate?: Date;
26
+ maxDate?: Date;
27
+ disabled?: boolean;
28
+ }
29
+ export declare const Datepicker: import("react").ForwardRefExoticComponent<IDatepickerProps & import("react").RefAttributes<HTMLInputElement>>;
30
+ export {};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../jsx-runtime-DUiatUiq.cjs"),$=require("../../label-CbzkBbPT.cjs"),b=require("../../index-DoxiiusW.cjs"),I=require("../../index-C8P6Mn4U.cjs"),a=require("date-fns"),w=require("react"),T=require("react-day-picker"),f=require("../../style-CA5976Oh.cjs"),P=require("../../icon-component-LY_vGYHZ.cjs"),j=require("../../popover-B8wp2cHF.cjs"),L=I.cva("border-neutral-050 focus-visible:ring-ring-default lg:hover:bg-neutral-000 flex w-full items-center gap-2 border-[0.5px] bg-white text-base whitespace-pre-wrap focus-visible:ring-[1.5px] focus-visible:ring-offset-1 focus-visible:outline-hidden disabled:border-neutral-100 disabled:bg-neutral-100 disabled:text-neutral-700 lg:disabled:hover:bg-neutral-100",{variants:{size:{sm:"text-label-md h-8 rounded-sm px-2 py-1",md:"text-label-lg h-12 rounded-md px-3 py-1",lg:"text-label-xl h-16 rounded-lg px-4 py-2"},rounded:{default:"",full:"rounded-full"},state:{default:"",selected:"bg-blue-050 focus:blue-800 border-blue-800 font-semibold text-blue-800 active:border-blue-800 lg:hover:bg-blue-100",error:"border-error-main"}},defaultVariants:{size:"md",rounded:"default",state:"default"}}),B=({onChange:d,value:o,options:x})=>e.jsxRuntimeExports.jsx("select",{className:"text-md focus-visible:ring-ring-default h-fit w-fit! cursor-pointer appearance-none rounded-md border-none pr-9 pl-1 font-semibold transition-colors focus:border-0 focus:border-transparent focus:ring-0 focus:ring-transparent focus:outline-hidden focus-visible:ring-[1.5px] focus-visible:ring-offset-1 focus-visible:outline-hidden",onChange:d,value:o,children:x?.map((n,m)=>{const g=n.value===o;return e.jsxRuntimeExports.jsx("option",{value:n.value,disabled:n.disabled,className:b.cn("disabled:hidden",{"bg-blue-050 font-semibold text-blue-800":g}),children:n.label},m)})}),G=({orientation:d="down",size:o=16})=>e.jsxRuntimeExports.jsx(P.IconComponent,{iconName:d==="left"?"IconChevronLeft":"IconChevronRight",stroke:"1.5",size:o}),F=w.forwardRef(({className:d,locale:o="enGB",placeholder:x,label:n,size:m="md",rounded:g="default",disabledDates:N,helperText:C,side:q="bottom",align:M="center",error:c,touched:p,startDate:i,endDate:l,calendarDropdowns:S=!0,onChange:R,minDate:k,maxDate:_,disabled:h=!1,...u},z)=>{const[t,v]=w.useState({from:i?new Date(i):void 0,to:l?new Date(l):void 0}),D=r=>{if(v(r),R){const s={from:r.from?a.format(r.from,"yyyy-MM-dd"):"",to:r.to?a.format(r.to,"yyyy-MM-dd"):""};R({target:{name:u.name,value:s}})}};w.useEffect(()=>{if(i){const r=new Date(i);isNaN(r.getTime())||v(s=>({...s,from:r}))}if(l){const r=new Date(l);isNaN(r.getTime())||v(s=>({...s,to:r}))}},[i,l]);const y=o==="enGB"?f.enGB:o==="enUS"?f.enUS:o==="fr"?f.fr:f.es;return e.jsxRuntimeExports.jsxs("div",{ref:z,className:b.cn("flex flex-col gap-3",d),...u,children:[n&&e.jsxRuntimeExports.jsx($.Label,{htmlFor:u.id,className:b.cn({"text-neutral-700":h}),children:n}),e.jsxRuntimeExports.jsxs(j.Popover,{children:[e.jsxRuntimeExports.jsx(j.PopoverTrigger,{children:e.jsxRuntimeExports.jsxs("button",{type:"button",className:b.cn(L({size:m,rounded:g,state:t.from&&t.to||p&&!c?"selected":c&&p?"error":"default"}),{"text-neutral-800":!t.from&&!t.to}),disabled:h,children:[e.jsxRuntimeExports.jsx(P.IconComponent,{iconName:"IconCalendar",size:20,className:"pointer-events-none"}),t.from&&t.to?`${a.format(t.from,"PPP",{locale:y})} - ${a.format(t.to,"PPP",{locale:y})}`:x||"Select a date range",e.jsxRuntimeExports.jsx("input",{hidden:!0,onChange:()=>null,value:t.from&&t.to?`${a.format(t.from,"yyyy-MM-dd")} to ${a.format(t.to,"yyyy-MM-dd")}`:`${i||""} to ${l||""}`})]})}),e.jsxRuntimeExports.jsx(j.PopoverContent,{side:q,align:M,children:e.jsxRuntimeExports.jsx(T.DayPicker,{mode:"range",captionLayout:S?"dropdown":"label",selected:t,onSelect:D,locale:y,startMonth:k||new Date(1900,0,1),endMonth:_||new Date(2100,11,31),showOutsideDays:!0,disabled:N,className:"p-2",required:!0,classNames:{root:"w-fit text-sm text-center",weekday:"text-muted-foreground font-regular",month_grid:"border-separate",month_caption:"h-9 relative flex items-center w-full",dropdowns:"absolute w-fit items-center justify-center z-10 left-1/2 flex -translate-x-1/2 top-1/2 -translate-y-1/2",button_next:"rounded-2xl border-none lg:hover:bg-neutral-050 transition-colors z-1 p-2 disabled:opacity-50 focus-visible:ring-ring-default focus-visible:outline-hidden focus-visible:ring-[1.5px] focus-visible:ring-offset-1",button_previous:"rounded-2xl border-none lg:hover:bg-neutral-050 transition-colors z-1 p-2 disabled:opacity-50 focus-visible:ring-ring-default focus-visible:outline-hidden focus-visible:ring-[1.5px] focus-visible:ring-offset-1",nav:"w-full h-9 top-0 left-0 absolute flex justify-between items-center gap-2",selected:"bg-blue-800 text-white border-[0.5px] border-blue-800! lg:hover:bg-blue-900 transition-colors font-semibold",today:"bg-blue-050 border-[0.5px] text-blue-800 lg:hover:bg-blue-100",outside:"bg-white text-neutral-200 border-[0.5px] border-neutral-000",day_button:"text-sm h-9 w-9 whitespace-nowrap border-none focus-visible:ring-ring-default focus-visible:outline-hidden focus-visible:ring-[1.5px] rounded-2xl",caption_label:"text-neutral-1000 text-base font-semibold leading-none self-center w-full",disabled:"bg-white text-neutral-200 border-[0.5px] border-neutral-000 lg:hover:bg-white!",day:"h-9 w-9 aspect-square text-sm rounded-2xl border-[0.5px] border-neutral-050 lg:hover:bg-blue-050 transition-colors p-0 whitespace-nowrap",range_end:"bg-blue-800 text-white border-[0.5px] border-blue-800! lg:hover:bg-blue-900 transition-colors font-semibold",range_start:"bg-blue-800 text-white border-[0.5px] border-blue-800! lg:hover:bg-blue-900 transition-colors font-semibold",range_middle:"bg-blue-050! border-[0.5px] border-blue-800! text-blue-800! lg:hover:bg-blue-100 transition-colors font-semibold"},components:{Dropdown:B,Chevron:({orientation:r,size:s})=>e.jsxRuntimeExports.jsx(G,{orientation:r,size:s})}})})]}),c&&p?e.jsxRuntimeExports.jsx("span",{"aria-describedby":u.id,"aria-invalid":"true",className:"text-error-main text-label-md -mt-1",children:c}):e.jsxRuntimeExports.jsx("span",{className:b.clsx("text-muted-foreground -mt-1",{"text-neutral-700":h}),"aria-describedby":u.id,children:C})]})}),E=F;E.displayName="DateRangePicker";exports.DateRangePicker=E;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../jsx-runtime-DUiatUiq.cjs"),$=require("../../label-CbzkBbPT.cjs"),b=require("../../index-DoxiiusW.cjs"),I=require("../../index-C8P6Mn4U.cjs"),a=require("date-fns"),w=require("react"),T=require("react-day-picker"),f=require("../../style-CA5976Oh.cjs"),N=require("../../icon-component-LY_vGYHZ.cjs"),j=require("../../popover-B8wp2cHF.cjs"),L=I.cva("border-neutral-050 focus-visible:ring-ring-default lg:hover:bg-neutral-000 flex w-full items-center gap-2 border-[0.5px] bg-white text-base whitespace-pre-wrap focus-visible:ring-[1.5px] focus-visible:ring-offset-1 focus-visible:outline-hidden disabled:border-neutral-100 disabled:bg-neutral-100 disabled:text-neutral-700 lg:disabled:hover:bg-neutral-100",{variants:{size:{sm:"text-label-md h-8 rounded-sm px-2 py-1",md:"text-label-lg h-12 rounded-md px-3 py-1",lg:"text-label-xl h-16 rounded-lg px-4 py-2"},rounded:{default:"",full:"rounded-full"},state:{default:"",selected:"bg-blue-050 focus:blue-800 border-blue-800 font-semibold text-blue-800 active:border-blue-800 lg:hover:bg-blue-100",error:"border-error-main"}},defaultVariants:{size:"md",rounded:"default",state:"default"}}),B=({onChange:d,value:o,options:x})=>e.jsxRuntimeExports.jsx("select",{className:"text-md focus-visible:ring-ring-default h-fit w-fit! cursor-pointer appearance-none rounded-md border-none pr-9 pl-1 font-semibold transition-colors focus:border-0 focus:border-transparent focus:ring-0 focus:ring-transparent focus:outline-hidden focus-visible:ring-[1.5px] focus-visible:ring-offset-1 focus-visible:outline-hidden",onChange:d,value:o,children:x?.map((n,m)=>{const g=n.value===o;return e.jsxRuntimeExports.jsx("option",{value:n.value,disabled:n.disabled,className:b.cn("disabled:hidden",{"bg-blue-050 font-semibold text-blue-800":g}),children:n.label},m)})}),G=({orientation:d="down",size:o=16})=>e.jsxRuntimeExports.jsx(N.IconComponent,{iconName:d==="left"?"IconChevronLeft":"IconChevronRight",stroke:"1.5",size:o}),F=w.forwardRef(({className:d,locale:o="enGB",placeholder:x,label:n,size:m="md",rounded:g="default",disabledDates:E,helperText:C,side:q="bottom",align:M="center",error:c,touched:p,startDate:i,endDate:l,calendarDropdowns:S=!0,onChange:R,minDate:k,maxDate:_,disabled:h=!1,...u},z)=>{const[t,v]=w.useState({from:i?new Date(i):void 0,to:l?new Date(l):void 0}),D=r=>{if(v(r),R){const s={from:r.from?a.format(r.from,"yyyy-MM-dd"):"",to:r.to?a.format(r.to,"yyyy-MM-dd"):""};R({target:{name:u.name,value:s}})}};w.useEffect(()=>{if(i){const r=new Date(i);isNaN(r.getTime())||v(s=>({...s,from:r}))}if(l){const r=new Date(l);isNaN(r.getTime())||v(s=>({...s,to:r}))}},[i,l]);const y=o==="enGB"?f.enGB:o==="enUS"?f.enUS:o==="fr"?f.fr:f.es;return e.jsxRuntimeExports.jsxs("div",{ref:z,className:b.cn("flex flex-col gap-3",d),...u,children:[n&&e.jsxRuntimeExports.jsx($.Label,{htmlFor:u.id,className:b.cn({"text-neutral-700":h}),children:n}),e.jsxRuntimeExports.jsxs(j.Popover,{children:[e.jsxRuntimeExports.jsx(j.PopoverTrigger,{children:e.jsxRuntimeExports.jsxs("button",{type:"button",className:b.cn(L({size:m,rounded:g,state:t.from&&t.to||p&&!c?"selected":c&&p?"error":"default"}),{"text-neutral-800":!t.from&&!t.to}),disabled:h,children:[e.jsxRuntimeExports.jsx(N.IconComponent,{iconName:"IconCalendar",size:20,className:"pointer-events-none"}),t.from&&t.to?`${a.format(t.from,"PPP",{locale:y})} - ${a.format(t.to,"PPP",{locale:y})}`:x||"Select a date range",e.jsxRuntimeExports.jsx("input",{hidden:!0,onChange:()=>null,value:t.from&&t.to?`${a.format(t.from,"yyyy-MM-dd")} to ${a.format(t.to,"yyyy-MM-dd")}`:`${i||""} to ${l||""}`})]})}),e.jsxRuntimeExports.jsx(j.PopoverContent,{className:"w-auto overflow-hidden p-0",side:q,align:M,children:e.jsxRuntimeExports.jsx(T.DayPicker,{mode:"range",captionLayout:S?"dropdown":"label",selected:t,onSelect:D,locale:y,startMonth:k||new Date(1900,0,1),endMonth:_||new Date(2100,11,31),showOutsideDays:!0,disabled:E,className:"p-2",required:!0,classNames:{root:"w-fit text-sm text-center",weekday:"text-muted-foreground font-regular",month_grid:"border-separate",month_caption:"h-9 relative flex items-center w-full",dropdowns:"absolute w-fit items-center justify-center z-10 left-1/2 flex -translate-x-1/2 top-1/2 -translate-y-1/2",button_next:"rounded-2xl border-none lg:hover:bg-neutral-050 transition-colors z-1 p-2 disabled:opacity-50 focus-visible:ring-ring-default focus-visible:outline-hidden focus-visible:ring-[1.5px] focus-visible:ring-offset-1",button_previous:"rounded-2xl border-none lg:hover:bg-neutral-050 transition-colors z-1 p-2 disabled:opacity-50 focus-visible:ring-ring-default focus-visible:outline-hidden focus-visible:ring-[1.5px] focus-visible:ring-offset-1",nav:"w-full h-9 top-0 left-0 absolute flex justify-between items-center gap-2",selected:"bg-blue-800 text-white border-[0.5px] border-blue-800! lg:hover:bg-blue-900 transition-colors font-semibold",today:"bg-blue-050 border-[0.5px] text-blue-800 lg:hover:bg-blue-100",outside:"bg-white text-neutral-200 border-[0.5px] border-neutral-000",day_button:"text-sm h-9 w-9 whitespace-nowrap border-none focus-visible:ring-ring-default focus-visible:outline-hidden focus-visible:ring-[1.5px] rounded-2xl",caption_label:"text-neutral-1000 text-base font-semibold leading-none self-center w-full",disabled:"bg-white text-neutral-200 border-[0.5px] border-neutral-000 lg:hover:bg-white!",day:"h-9 w-9 aspect-square text-sm rounded-2xl border-[0.5px] border-neutral-050 lg:hover:bg-blue-050 transition-colors p-0 whitespace-nowrap",range_end:"bg-blue-800 text-white border-[0.5px] border-blue-800! lg:hover:bg-blue-900 transition-colors font-semibold",range_start:"bg-blue-800 text-white border-[0.5px] border-blue-800! lg:hover:bg-blue-900 transition-colors font-semibold",range_middle:"bg-blue-050! border-[0.5px] border-blue-800! text-blue-800! lg:hover:bg-blue-100 transition-colors font-semibold"},components:{Dropdown:B,Chevron:({orientation:r,size:s})=>e.jsxRuntimeExports.jsx(G,{orientation:r,size:s})}})})]}),c&&p?e.jsxRuntimeExports.jsx("span",{"aria-describedby":u.id,"aria-invalid":"true",className:"text-error-main text-label-md -mt-1",children:c}):e.jsxRuntimeExports.jsx("span",{className:b.clsx("text-muted-foreground -mt-1",{"text-neutral-700":h}),"aria-describedby":u.id,children:C})]})}),P=F;P.displayName="DateRangePicker";exports.DateRangePicker=P;
@@ -0,0 +1,29 @@
1
+ import { type VariantProps } from 'class-variance-authority';
2
+ import { Matcher } from 'react-day-picker';
3
+ import 'react-day-picker/dist/style.css';
4
+ declare const dateRangePickerTriggerStyles: (props?: ({
5
+ size?: "lg" | "md" | "sm" | null | undefined;
6
+ rounded?: "default" | "full" | null | undefined;
7
+ state?: "selected" | "default" | "error" | null | undefined;
8
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
+ export interface IDateRangePickerProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'>, VariantProps<typeof dateRangePickerTriggerStyles> {
10
+ label?: string;
11
+ helperText?: string;
12
+ error?: string;
13
+ touched?: boolean;
14
+ size?: 'sm' | 'md' | 'lg';
15
+ rounded?: 'default' | 'full';
16
+ startDate: string;
17
+ endDate: string;
18
+ calendarDropdowns?: boolean;
19
+ disabledDates?: Matcher | Matcher[] | undefined;
20
+ locale?: 'enGB' | 'enUS' | 'es' | 'fr';
21
+ side?: 'top' | 'bottom' | 'left' | 'right';
22
+ align?: 'start' | 'center' | 'end';
23
+ placeholder?: string;
24
+ minDate?: Date;
25
+ maxDate?: Date;
26
+ disabled?: boolean;
27
+ }
28
+ export declare const DateRangePicker: import("react").ForwardRefExoticComponent<IDateRangePickerProps & import("react").RefAttributes<HTMLInputElement>>;
29
+ export {};
@@ -168,46 +168,54 @@ const A = $(
168
168
  ]
169
169
  }
170
170
  ) }),
171
- /* @__PURE__ */ e.jsx(O, { side: P, align: C, children: /* @__PURE__ */ e.jsx(
172
- B,
171
+ /* @__PURE__ */ e.jsx(
172
+ O,
173
173
  {
174
- mode: "range",
175
- captionLayout: M ? "dropdown" : "label",
176
- selected: t,
177
- onSelect: k,
178
- locale: v,
179
- startMonth: R || new Date(1900, 0, 1),
180
- endMonth: S || new Date(2100, 11, 31),
181
- showOutsideDays: !0,
182
- disabled: j,
183
- className: "p-2",
184
- required: !0,
185
- classNames: {
186
- root: "w-fit text-sm text-center",
187
- weekday: "text-muted-foreground font-regular",
188
- month_grid: "border-separate",
189
- month_caption: "h-9 relative flex items-center w-full",
190
- dropdowns: "absolute w-fit items-center justify-center z-10 left-1/2 flex -translate-x-1/2 top-1/2 -translate-y-1/2",
191
- button_next: "rounded-2xl border-none lg:hover:bg-neutral-050 transition-colors z-1 p-2 disabled:opacity-50 focus-visible:ring-ring-default focus-visible:outline-hidden focus-visible:ring-[1.5px] focus-visible:ring-offset-1",
192
- button_previous: "rounded-2xl border-none lg:hover:bg-neutral-050 transition-colors z-1 p-2 disabled:opacity-50 focus-visible:ring-ring-default focus-visible:outline-hidden focus-visible:ring-[1.5px] focus-visible:ring-offset-1",
193
- nav: "w-full h-9 top-0 left-0 absolute flex justify-between items-center gap-2",
194
- selected: "bg-blue-800 text-white border-[0.5px] border-blue-800! lg:hover:bg-blue-900 transition-colors font-semibold",
195
- today: "bg-blue-050 border-[0.5px] text-blue-800 lg:hover:bg-blue-100",
196
- outside: "bg-white text-neutral-200 border-[0.5px] border-neutral-000",
197
- day_button: "text-sm h-9 w-9 whitespace-nowrap border-none focus-visible:ring-ring-default focus-visible:outline-hidden focus-visible:ring-[1.5px] rounded-2xl",
198
- caption_label: "text-neutral-1000 text-base font-semibold leading-none self-center w-full",
199
- disabled: "bg-white text-neutral-200 border-[0.5px] border-neutral-000 lg:hover:bg-white!",
200
- day: "h-9 w-9 aspect-square text-sm rounded-2xl border-[0.5px] border-neutral-050 lg:hover:bg-blue-050 transition-colors p-0 whitespace-nowrap",
201
- range_end: "bg-blue-800 text-white border-[0.5px] border-blue-800! lg:hover:bg-blue-900 transition-colors font-semibold",
202
- range_start: "bg-blue-800 text-white border-[0.5px] border-blue-800! lg:hover:bg-blue-900 transition-colors font-semibold",
203
- range_middle: "bg-blue-050! border-[0.5px] border-blue-800! text-blue-800! lg:hover:bg-blue-100 transition-colors font-semibold"
204
- },
205
- components: {
206
- Dropdown: H,
207
- Chevron: ({ orientation: o, size: l }) => /* @__PURE__ */ e.jsx(J, { orientation: o, size: l })
208
- }
174
+ className: "w-auto overflow-hidden p-0",
175
+ side: P,
176
+ align: C,
177
+ children: /* @__PURE__ */ e.jsx(
178
+ B,
179
+ {
180
+ mode: "range",
181
+ captionLayout: M ? "dropdown" : "label",
182
+ selected: t,
183
+ onSelect: k,
184
+ locale: v,
185
+ startMonth: R || new Date(1900, 0, 1),
186
+ endMonth: S || new Date(2100, 11, 31),
187
+ showOutsideDays: !0,
188
+ disabled: j,
189
+ className: "p-2",
190
+ required: !0,
191
+ classNames: {
192
+ root: "w-fit text-sm text-center",
193
+ weekday: "text-muted-foreground font-regular",
194
+ month_grid: "border-separate",
195
+ month_caption: "h-9 relative flex items-center w-full",
196
+ dropdowns: "absolute w-fit items-center justify-center z-10 left-1/2 flex -translate-x-1/2 top-1/2 -translate-y-1/2",
197
+ button_next: "rounded-2xl border-none lg:hover:bg-neutral-050 transition-colors z-1 p-2 disabled:opacity-50 focus-visible:ring-ring-default focus-visible:outline-hidden focus-visible:ring-[1.5px] focus-visible:ring-offset-1",
198
+ button_previous: "rounded-2xl border-none lg:hover:bg-neutral-050 transition-colors z-1 p-2 disabled:opacity-50 focus-visible:ring-ring-default focus-visible:outline-hidden focus-visible:ring-[1.5px] focus-visible:ring-offset-1",
199
+ nav: "w-full h-9 top-0 left-0 absolute flex justify-between items-center gap-2",
200
+ selected: "bg-blue-800 text-white border-[0.5px] border-blue-800! lg:hover:bg-blue-900 transition-colors font-semibold",
201
+ today: "bg-blue-050 border-[0.5px] text-blue-800 lg:hover:bg-blue-100",
202
+ outside: "bg-white text-neutral-200 border-[0.5px] border-neutral-000",
203
+ day_button: "text-sm h-9 w-9 whitespace-nowrap border-none focus-visible:ring-ring-default focus-visible:outline-hidden focus-visible:ring-[1.5px] rounded-2xl",
204
+ caption_label: "text-neutral-1000 text-base font-semibold leading-none self-center w-full",
205
+ disabled: "bg-white text-neutral-200 border-[0.5px] border-neutral-000 lg:hover:bg-white!",
206
+ day: "h-9 w-9 aspect-square text-sm rounded-2xl border-[0.5px] border-neutral-050 lg:hover:bg-blue-050 transition-colors p-0 whitespace-nowrap",
207
+ range_end: "bg-blue-800 text-white border-[0.5px] border-blue-800! lg:hover:bg-blue-900 transition-colors font-semibold",
208
+ range_start: "bg-blue-800 text-white border-[0.5px] border-blue-800! lg:hover:bg-blue-900 transition-colors font-semibold",
209
+ range_middle: "bg-blue-050! border-[0.5px] border-blue-800! text-blue-800! lg:hover:bg-blue-100 transition-colors font-semibold"
210
+ },
211
+ components: {
212
+ Dropdown: H,
213
+ Chevron: ({ orientation: o, size: l }) => /* @__PURE__ */ e.jsx(J, { orientation: o, size: l })
214
+ }
215
+ }
216
+ )
209
217
  }
210
- ) })
218
+ )
211
219
  ] }),
212
220
  b && x ? /* @__PURE__ */ e.jsx(
213
221
  "span",
@@ -0,0 +1,26 @@
1
+ import { IBadgeProps } from '@/components/badge';
2
+ import { TablerIconName } from '@/components/icon-component';
3
+ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
4
+ import { VariantProps } from 'class-variance-authority';
5
+ type TooltipProps = React.ComponentProps<typeof TooltipPrimitive.Content>;
6
+ export interface IInteractiveCardProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof interactiveCardStyles> {
7
+ isActive?: boolean;
8
+ title?: string;
9
+ text?: string;
10
+ helperText?: string;
11
+ disabled?: boolean;
12
+ badgeVariant?: IBadgeProps['variant'];
13
+ badgeText?: string;
14
+ badgeSize?: 'xs' | 'sm' | 'md' | 'lg';
15
+ iconName?: TablerIconName;
16
+ iconText?: string;
17
+ tooltipText?: string;
18
+ tooltipTitle?: string;
19
+ tooltipIconName?: TablerIconName;
20
+ tooltipSide?: TooltipProps['side'];
21
+ tooltipSideOffset?: TooltipProps['sideOffset'];
22
+ tooltipAlign?: TooltipProps['align'];
23
+ }
24
+ declare const interactiveCardStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
25
+ export declare const InteractiveCard: import("react").ForwardRefExoticComponent<IInteractiveCardProps & import("react").RefAttributes<HTMLDivElement>>;
26
+ export {};
@@ -0,0 +1,16 @@
1
+ import { Option } from '@/utils/types';
2
+ import { Dispatch, SetStateAction } from 'react';
3
+ export interface ISelectableChipsProps {
4
+ id?: string;
5
+ label?: string;
6
+ options: Option[];
7
+ multiple?: boolean;
8
+ selectedOptions: Option['value'] | Option['value'][] | undefined;
9
+ setSelectedOptions: Dispatch<SetStateAction<Option['value'] | Option['value'][] | undefined>>;
10
+ className?: string;
11
+ disabled?: boolean;
12
+ helperText?: string;
13
+ error?: string;
14
+ touched?: boolean;
15
+ }
16
+ export declare const SelectableChips: ({ id, label, options, multiple, selectedOptions, setSelectedOptions, className, disabled, helperText, error, touched, }: ISelectableChipsProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ declare function Breadcrumb({ ...props }: React.ComponentProps<'nav'>): import("react/jsx-runtime").JSX.Element;
3
+ declare function BreadcrumbList({ className, ...props }: React.ComponentProps<'ol'>): import("react/jsx-runtime").JSX.Element;
4
+ declare function BreadcrumbItem({ className, ...props }: React.ComponentProps<'li'>): import("react/jsx-runtime").JSX.Element;
5
+ declare function BreadcrumbLink({ asChild, className, ...props }: React.ComponentProps<'a'> & {
6
+ asChild?: boolean;
7
+ }): import("react/jsx-runtime").JSX.Element;
8
+ declare function BreadcrumbPage({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
9
+ declare function BreadcrumbSeparator({ children, className, ...props }: React.ComponentProps<'li'>): import("react/jsx-runtime").JSX.Element;
10
+ declare function BreadcrumbEllipsis({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
11
+ export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, };
@@ -0,0 +1,39 @@
1
+ import { type VariantProps } from 'class-variance-authority';
2
+ import React from 'react';
3
+ import { TablerIconName } from './icon-component';
4
+ export interface IButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonStyles> {
5
+ asChild?: boolean;
6
+ iconName?: {
7
+ name: TablerIconName;
8
+ stroke?: string;
9
+ } | TablerIconName;
10
+ iconText?: string;
11
+ iconPosition?: 'left' | 'right' | 'only';
12
+ isLoading?: boolean;
13
+ isActive?: boolean;
14
+ tooltip?: React.ReactNode;
15
+ tooltipPlacement?: 'top' | 'bottom' | 'left' | 'right';
16
+ }
17
+ declare const buttonStyles: (props?: ({
18
+ variant?: "link" | "outline" | "primary" | "secondary" | "inverse" | "ghost" | "destructive" | null | undefined;
19
+ size?: "xl" | "lg" | "md" | "sm" | "xs" | null | undefined;
20
+ rounded?: "default" | "full" | null | undefined;
21
+ weight?: "bold" | "light" | "regular" | "semibold" | null | undefined;
22
+ iconPosition?: "right" | "left" | "only" | null | undefined;
23
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
24
+ declare const buttonLoadingStyles: (props?: ({
25
+ variant?: "link" | "outline" | "primary" | "secondary" | "inverse" | "ghost" | "destructive" | null | undefined;
26
+ size?: "xl" | "lg" | "md" | "sm" | "xs" | null | undefined;
27
+ rounded?: "default" | "full" | null | undefined;
28
+ weight?: "bold" | "light" | "regular" | "semibold" | null | undefined;
29
+ iconPosition?: "right" | "left" | "only" | null | undefined;
30
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
31
+ declare const buttonActiveStyles: (props?: ({
32
+ variant?: "link" | "outline" | "primary" | "secondary" | "inverse" | "ghost" | "destructive" | null | undefined;
33
+ size?: "xl" | "lg" | "md" | "sm" | "xs" | null | undefined;
34
+ rounded?: "default" | "full" | null | undefined;
35
+ weight?: "bold" | "light" | "regular" | "semibold" | null | undefined;
36
+ iconPosition?: "right" | "left" | "only" | null | undefined;
37
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
38
+ declare function Button({ className, variant, size, weight, rounded, children, iconName, iconText, iconPosition, isLoading, isActive, disabled, tooltip, tooltipPlacement, asChild, ...props }: IButtonProps): import("react/jsx-runtime").JSX.Element;
39
+ export { Button, buttonActiveStyles, buttonLoadingStyles, buttonStyles };
@@ -0,0 +1,15 @@
1
+ import 'react-day-picker/dist/style.css';
2
+ export interface ICalendarProps {
3
+ locale?: 'enGB' | 'enUS' | 'es' | 'fr';
4
+ disabledDates?: string | string[] | Date | Date[] | undefined;
5
+ enabledDates?: string | string[] | Date | Date[] | undefined;
6
+ dropdownsSelectors?: boolean;
7
+ hideNavigation?: boolean;
8
+ showOutsideDays?: boolean;
9
+ minDate?: Date;
10
+ maxDate?: Date;
11
+ value?: string;
12
+ onChange?: (value: string | undefined) => void | undefined;
13
+ className?: string;
14
+ }
15
+ export declare const Calendar: React.FC<ICalendarProps>;
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ declare function Card({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
3
+ declare function CardHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
4
+ declare function CardTitle({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
5
+ declare function CardDescription({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
6
+ declare function CardAction({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
7
+ declare function CardContent({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
8
+ declare function CardFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
9
+ export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, };
@@ -0,0 +1,43 @@
1
+ import * as React from 'react';
2
+ import * as RechartsPrimitive from 'recharts';
3
+ declare const THEMES: {
4
+ readonly light: "";
5
+ readonly dark: ".dark";
6
+ };
7
+ export type ChartConfig = {
8
+ [k in string]: {
9
+ label?: React.ReactNode;
10
+ icon?: React.ComponentType;
11
+ } & ({
12
+ color?: string;
13
+ theme?: never;
14
+ } | {
15
+ color?: never;
16
+ theme: Record<keyof typeof THEMES, string>;
17
+ });
18
+ };
19
+ declare function ChartContainer({ id, className, children, config, ...props }: React.ComponentProps<'div'> & {
20
+ config: ChartConfig;
21
+ children: React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>['children'];
22
+ }): import("react/jsx-runtime").JSX.Element;
23
+ declare const ChartStyle: ({ id, config }: {
24
+ id: string;
25
+ config: ChartConfig;
26
+ }) => import("react/jsx-runtime").JSX.Element | null;
27
+ declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
28
+ declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }: React.ComponentProps<typeof RechartsPrimitive.Tooltip> & React.ComponentProps<'div'> & {
29
+ hideLabel?: boolean;
30
+ hideIndicator?: boolean;
31
+ indicator?: 'line' | 'dot' | 'dashed';
32
+ nameKey?: string;
33
+ labelKey?: string;
34
+ payload?: any[];
35
+ label?: string;
36
+ }): import("react/jsx-runtime").JSX.Element | null;
37
+ declare const ChartLegend: typeof RechartsPrimitive.Legend;
38
+ declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey, }: React.ComponentProps<'div'> & Pick<RechartsPrimitive.LegendProps, 'verticalAlign'> & {
39
+ hideIcon?: boolean;
40
+ nameKey?: string;
41
+ payload?: any[];
42
+ }): import("react/jsx-runtime").JSX.Element | null;
43
+ export { ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../jsx-runtime-DUiatUiq.cjs"),c=require("@radix-ui/react-checkbox"),a=require("../index-DoxiiusW.cjs"),s=require("../icon-component-LY_vGYHZ.cjs");function d(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const o=d(c);function u({className:e,...t}){return n.jsxRuntimeExports.jsx(o.Root,{"data-slot":"checkbox",className:a.cn("peer border-input dark:bg-input/30 data-[state=checked]:bg-secondary data-[state=checked]:text-secondary-foreground dark:data-[state=checked]:bg-secondary data-[state=checked]:border-secondary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:n.jsxRuntimeExports.jsx(o.Indicator,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:n.jsxRuntimeExports.jsx(s.IconComponent,{iconName:"IconCheck",className:"size-3.5"})})})}exports.Checkbox=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../jsx-runtime-DUiatUiq.cjs"),c=require("@radix-ui/react-checkbox"),a=require("../index-DoxiiusW.cjs"),s=require("../icon-component-LY_vGYHZ.cjs");function d(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const o=d(c);function u({className:e,...t}){return n.jsxRuntimeExports.jsx(o.Root,{"data-slot":"checkbox",className:a.cn("peer border-input dark:bg-input/30 data-[state=checked]:bg-secondary data-[state=checked]:text-secondary-foreground dark:data-[state=checked]:bg-secondary data-[state=checked]:border-secondary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:n.jsxRuntimeExports.jsx(o.Indicator,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:n.jsxRuntimeExports.jsx(s.IconComponent,{iconName:"IconCheck",className:"size-3.5"})})})}exports.Checkbox=u;
@@ -0,0 +1,4 @@
1
+ import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
2
+ import * as React from 'react';
3
+ declare function Checkbox({ className, ...props }: React.ComponentProps<typeof CheckboxPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ export { Checkbox };
@@ -11,7 +11,7 @@ function d({
11
11
  {
12
12
  "data-slot": "checkbox",
13
13
  className: a(
14
- "peer border-input dark:bg-input/30 data-[state=checked]:bg-secondary data-[state=checked]:text-secondary-foreground dark:data-[state=checked]:bg-secondary data-[state=checked]:border-secondary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
14
+ "peer border-input dark:bg-input/30 data-[state=checked]:bg-secondary data-[state=checked]:text-secondary-foreground dark:data-[state=checked]:bg-secondary data-[state=checked]:border-secondary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
15
15
  i
16
16
  ),
17
17
  ...t,
@@ -0,0 +1,25 @@
1
+ import { type VariantProps } from 'class-variance-authority';
2
+ import React from 'react';
3
+ import { TablerIconName } from './icon-component';
4
+ export interface IChipProps extends VariantProps<typeof chipStyles> {
5
+ iconLeft?: {
6
+ name: TablerIconName;
7
+ stroke?: string;
8
+ } | TablerIconName;
9
+ iconRight?: {
10
+ name: TablerIconName;
11
+ stroke?: string;
12
+ } | TablerIconName;
13
+ notification?: boolean;
14
+ onClick?: () => void;
15
+ disabled?: boolean;
16
+ className?: string;
17
+ children?: React.ReactNode;
18
+ }
19
+ declare const chipStyles: (props?: ({
20
+ intent?: "selected" | "error" | "unselected" | null | undefined;
21
+ size?: "lg" | "md" | "sm" | null | undefined;
22
+ weight?: "bold" | "light" | "regular" | "semibold" | null | undefined;
23
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
24
+ declare const ChipComponent: React.ForwardRefExoticComponent<IChipProps & React.RefAttributes<HTMLButtonElement | HTMLDivElement>>;
25
+ export { ChipComponent as Chip, chipStyles };
@@ -0,0 +1,5 @@
1
+ import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
2
+ declare function Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>): import("react/jsx-runtime").JSX.Element;
3
+ declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>): import("react/jsx-runtime").JSX.Element;
4
+ declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>): import("react/jsx-runtime").JSX.Element;
5
+ export { Collapsible, CollapsibleContent, CollapsibleTrigger };
@@ -0,0 +1,18 @@
1
+ import { Command as CommandPrimitive } from 'cmdk';
2
+ import * as React from 'react';
3
+ import { Dialog } from '@/components/dialog';
4
+ declare function Command({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>): import("react/jsx-runtime").JSX.Element;
5
+ declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: React.ComponentProps<typeof Dialog> & {
6
+ title?: string;
7
+ description?: string;
8
+ className?: string;
9
+ showCloseButton?: boolean;
10
+ }): import("react/jsx-runtime").JSX.Element;
11
+ declare function CommandInput({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Input>): import("react/jsx-runtime").JSX.Element;
12
+ declare function CommandList({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.List>): import("react/jsx-runtime").JSX.Element;
13
+ declare function CommandEmpty({ ...props }: React.ComponentProps<typeof CommandPrimitive.Empty>): import("react/jsx-runtime").JSX.Element;
14
+ declare function CommandGroup({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
15
+ declare function CommandSeparator({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
16
+ declare function CommandItem({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
17
+ declare function CommandShortcut({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
18
+ export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, };
@@ -0,0 +1,25 @@
1
+ import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
2
+ import * as React from 'react';
3
+ declare function ContextMenu({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function ContextMenuTrigger({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
+ declare function ContextMenuGroup({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
6
+ declare function ContextMenuPortal({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
7
+ declare function ContextMenuSub({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Sub>): import("react/jsx-runtime").JSX.Element;
8
+ declare function ContextMenuRadioGroup({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.RadioGroup>): import("react/jsx-runtime").JSX.Element;
9
+ declare function ContextMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.SubTrigger> & {
10
+ inset?: boolean;
11
+ }): import("react/jsx-runtime").JSX.Element;
12
+ declare function ContextMenuSubContent({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.SubContent>): import("react/jsx-runtime").JSX.Element;
13
+ declare function ContextMenuContent({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
14
+ declare function ContextMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Item> & {
15
+ inset?: boolean;
16
+ variant?: 'default' | 'destructive';
17
+ }): import("react/jsx-runtime").JSX.Element;
18
+ declare function ContextMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.CheckboxItem>): import("react/jsx-runtime").JSX.Element;
19
+ declare function ContextMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.RadioItem>): import("react/jsx-runtime").JSX.Element;
20
+ declare function ContextMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Label> & {
21
+ inset?: boolean;
22
+ }): import("react/jsx-runtime").JSX.Element;
23
+ declare function ContextMenuSeparator({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
24
+ declare function ContextMenuShortcut({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
25
+ export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, };
@@ -0,0 +1,15 @@
1
+ import * as DialogPrimitive from '@radix-ui/react-dialog';
2
+ import * as React from 'react';
3
+ declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
+ declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
6
+ declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
7
+ declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
8
+ declare function DialogContent({ className, children, showCloseButton, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
9
+ showCloseButton?: boolean;
10
+ }): import("react/jsx-runtime").JSX.Element;
11
+ declare function DialogHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
12
+ declare function DialogFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
13
+ declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
14
+ declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
15
+ export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
@@ -0,0 +1,6 @@
1
+ import { HTMLAttributes } from 'react';
2
+ interface IDividerProps extends HTMLAttributes<HTMLSpanElement> {
3
+ orientation?: 'horizontal' | 'vertical';
4
+ }
5
+ export declare const Divider: import("react").ForwardRefExoticComponent<IDividerProps & import("react").RefAttributes<HTMLSpanElement>>;
6
+ export {};
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ import { Drawer as DrawerPrimitive } from 'vaul';
3
+ declare function Drawer({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function DrawerTrigger({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
+ declare function DrawerPortal({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
6
+ declare function DrawerClose({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
7
+ declare function DrawerOverlay({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
8
+ declare function DrawerContent({ className, children, ...props }: React.ComponentProps<typeof DrawerPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
9
+ declare function DrawerHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
10
+ declare function DrawerFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
11
+ declare function DrawerTitle({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
12
+ declare function DrawerDescription({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
13
+ export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, };