@cryptlex/web-components 1.3.4 → 1.3.5

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 (41) hide show
  1. package/dist/components/data-table/column-picker.es.js +12 -11
  2. package/dist/components/data-table/column-picker.es.js.map +1 -1
  3. package/dist/components/data-table/data-table.es.js +34 -31
  4. package/dist/components/data-table/data-table.es.js.map +1 -1
  5. package/dist/components/data-table/table-actions.es.js +8 -8
  6. package/dist/components/data-table/table-actions.es.js.map +1 -1
  7. package/dist/components/data-table/table-content.es.js +21 -17
  8. package/dist/components/data-table/table-content.es.js.map +1 -1
  9. package/dist/components/key-value-card/key-value-card.es.js +85 -0
  10. package/dist/components/key-value-card/key-value-card.es.js.map +1 -0
  11. package/dist/components/sidebar/app-layout.es.js +12 -22
  12. package/dist/components/sidebar/app-layout.es.js.map +1 -1
  13. package/dist/components/sidebar/nav-main.es.js +44 -42
  14. package/dist/components/sidebar/nav-main.es.js.map +1 -1
  15. package/dist/components/static-data-table/data-table.es.js +6 -6
  16. package/dist/components/static-data-table/data-table.es.js.map +1 -1
  17. package/dist/components/ui/button.es.js +10 -9
  18. package/dist/components/ui/button.es.js.map +1 -1
  19. package/dist/components/ui/chart.es.js +9 -9
  20. package/dist/components/ui/copy-button.es.js +72 -0
  21. package/dist/components/ui/copy-button.es.js.map +1 -0
  22. package/dist/components/ui/drawer.es.js +18 -21
  23. package/dist/components/ui/drawer.es.js.map +1 -1
  24. package/dist/components/ui/link-button.es.js +22 -0
  25. package/dist/components/ui/link-button.es.js.map +1 -0
  26. package/dist/components/ui/mutli-select.es.js +20 -18
  27. package/dist/components/ui/mutli-select.es.js.map +1 -1
  28. package/dist/components/ui/pagination.es.js +20 -20
  29. package/dist/components/ui/select.es.js +13 -13
  30. package/dist/components/ui/select.es.js.map +1 -1
  31. package/dist/components/ui/table.es.js +19 -19
  32. package/dist/components/ui/table.es.js.map +1 -1
  33. package/dist/index.es.d.ts +43 -15
  34. package/dist/index.es.js +225 -221
  35. package/dist/index.es.js.map +1 -1
  36. package/dist/utils/index.es.js +19 -14
  37. package/dist/utils/index.es.js.map +1 -1
  38. package/package.json +4 -3
  39. package/tailwind.preset.ts +55 -47
  40. package/dist/components/info-card/info-card.es.js +0 -71
  41. package/dist/components/info-card/info-card.es.js.map +0 -1
@@ -1,12 +1,12 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import * as t from "react";
3
- import { cn as l } from "../../utils/index.es.js";
4
- const d = t.forwardRef(
3
+ import { cn as d } from "../../utils/index.es.js";
4
+ const l = t.forwardRef(
5
5
  ({ className: e, ...a }, r) => /* @__PURE__ */ o("div", { className: "w-full", children: /* @__PURE__ */ o(
6
6
  "table",
7
7
  {
8
8
  ref: r,
9
- className: l(
9
+ className: d(
10
10
  "w-full caption-bottom text-sm [&_tr:last-child]:border-0 my-0 overflow-x-auto whitespace-nowrap",
11
11
  e
12
12
  ),
@@ -14,12 +14,12 @@ const d = t.forwardRef(
14
14
  }
15
15
  ) })
16
16
  );
17
- d.displayName = "Table";
17
+ l.displayName = "Table";
18
18
  const s = t.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ o(
19
19
  "thead",
20
20
  {
21
21
  ref: r,
22
- className: l("[&_tr]:border-b border-b", e),
22
+ className: d("[&_tr]:border-b border-b", e),
23
23
  ...a
24
24
  }
25
25
  ));
@@ -28,7 +28,7 @@ const b = t.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ o(
28
28
  "tbody",
29
29
  {
30
30
  ref: r,
31
- className: l(
31
+ className: d(
32
32
  "[&_tr:last-child]:border-b-2 [&_tr:last-child]:border-dotted",
33
33
  // Updated to 2px dotted border for the last row
34
34
  e
@@ -37,34 +37,34 @@ const b = t.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ o(
37
37
  }
38
38
  ));
39
39
  b.displayName = "TableBody";
40
- const c = t.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ o(
40
+ const m = t.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ o(
41
41
  "tfoot",
42
42
  {
43
43
  ref: r,
44
- className: l("border-t bg-card/50 font-medium [&>tr]:last:border-b-0", e),
44
+ className: d("border-t bg-card/50 font-medium [&>tr]:last:border-b-0", e),
45
45
  ...a
46
46
  }
47
47
  ));
48
- c.displayName = "TableFooter";
49
- const m = t.forwardRef(
48
+ m.displayName = "TableFooter";
49
+ const c = t.forwardRef(
50
50
  ({ className: e, ...a }, r) => /* @__PURE__ */ o(
51
51
  "tr",
52
52
  {
53
53
  ref: r,
54
- className: l(
55
- "border-b transition-colors hover:bg-card/50 data-[state=selected]:bg-card",
54
+ className: d(
55
+ "border-b border-card cursor-pointer transition-colors data-[state=selected]:bg-muted-foreground/20 hover:bg-muted-foreground/30",
56
56
  e
57
57
  ),
58
58
  ...a
59
59
  }
60
60
  )
61
61
  );
62
- m.displayName = "TableRow";
62
+ c.displayName = "TableRow";
63
63
  const i = t.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ o(
64
64
  "th",
65
65
  {
66
66
  ref: r,
67
- className: l(
67
+ className: d(
68
68
  "h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",
69
69
  e
70
70
  ),
@@ -76,7 +76,7 @@ const f = t.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ o(
76
76
  "td",
77
77
  {
78
78
  ref: r,
79
- className: l(
79
+ className: d(
80
80
  "p-4 align-middle [&:has([role=checkbox])]:pr-0 border-b [&_tr:last-child]:border-dotted",
81
81
  e
82
82
  ),
@@ -84,16 +84,16 @@ const f = t.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ o(
84
84
  }
85
85
  ));
86
86
  f.displayName = "TableCell";
87
- const n = t.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ o("caption", { ref: r, className: l("mt-4 text-sm text-muted-foreground", e), ...a }));
87
+ const n = t.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ o("caption", { ref: r, className: d("mt-4 text-sm text-muted-foreground", e), ...a }));
88
88
  n.displayName = "TableCaption";
89
89
  export {
90
- d as Table,
90
+ l as Table,
91
91
  b as TableBody,
92
92
  n as TableCaption,
93
93
  f as TableCell,
94
- c as TableFooter,
94
+ m as TableFooter,
95
95
  i as TableHead,
96
96
  s as TableHeader,
97
- m as TableRow
97
+ c as TableRow
98
98
  };
99
99
  //# sourceMappingURL=table.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"table.es.js","sources":["../../../lib/components/ui/table.tsx"],"sourcesContent":["import * as React from \"react\"\n\nimport { cn } from \"@/utils\"\n\nconst Table = React.forwardRef<HTMLTableElement, React.HTMLAttributes<HTMLTableElement>>(\n ({ className, ...props }, ref) => (\n <div className=\"w-full\">\n <table\n ref={ref}\n className={cn(\n 'w-full caption-bottom text-sm [&_tr:last-child]:border-0 my-0 overflow-x-auto whitespace-nowrap',\n className,\n )}\n {...props}\n />\n </div>\n ),\n);\nTable.displayName = 'Table';\n\nconst TableHeader = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <thead\n ref={ref}\n className={cn('[&_tr]:border-b border-b', className)} // Added border-b to apply a bottom border\n {...props}\n />\n));\nTableHeader.displayName = 'TableHeader';\n\nconst TableBody = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <tbody\n ref={ref}\n className={cn(\n '[&_tr:last-child]:border-b-2 [&_tr:last-child]:border-dotted', // Updated to 2px dotted border for the last row\n className,\n )}\n {...props}\n />\n));\nTableBody.displayName = \"TableBody\";\n\nconst TableFooter = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <tfoot\n ref={ref}\n className={cn(\"border-t bg-card/50 font-medium [&>tr]:last:border-b-0\", className)}\n {...props}\n />\n));\nTableFooter.displayName = \"TableFooter\";\n\nconst TableRow = React.forwardRef<HTMLTableRowElement, React.HTMLAttributes<HTMLTableRowElement>>(\n ({ className, ...props }, ref) => (\n <tr\n ref={ref}\n className={cn(\n \"border-b transition-colors hover:bg-card/50 data-[state=selected]:bg-card\",\n className,\n )}\n {...props}\n />\n ),\n);\nTableRow.displayName = \"TableRow\";\n\nconst TableHead = React.forwardRef<\n HTMLTableCellElement,\n React.ThHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => (\n <th\n ref={ref}\n className={cn(\n \"h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0\",\n className,\n )}\n {...props}\n />\n));\nTableHead.displayName = \"TableHead\";\n\nconst TableCell = React.forwardRef<\n HTMLTableCellElement,\n React.TdHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => (\n <td\n ref={ref}\n className={cn(\n 'p-4 align-middle [&:has([role=checkbox])]:pr-0 border-b [&_tr:last-child]:border-dotted',\n className,\n )}\n {...props}\n />\n));\nTableCell.displayName = \"TableCell\";\n\nconst TableCaption = React.forwardRef<\n HTMLTableCaptionElement,\n React.HTMLAttributes<HTMLTableCaptionElement>\n>(({ className, ...props }, ref) => (\n <caption ref={ref} className={cn(\"mt-4 text-sm text-muted-foreground\", className)} {...props} />\n));\nTableCaption.displayName = \"TableCaption\";\n\nexport { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption };\n"],"names":["Table","React","className","props","ref","jsx","cn","TableHeader","TableBody","TableFooter","TableRow","TableHead","TableCell","TableCaption"],"mappings":";;;AAIA,MAAMA,IAAQC,EAAM;AAAA,EAClB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MACxB,gBAAAC,EAAC,OAAI,EAAA,WAAU,UACb,UAAA,gBAAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAAD;AAAA,MACA,WAAWE;AAAA,QACT;AAAA,QACAJ;AAAA,MACF;AAAA,MACC,GAAGC;AA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AAAA,IACC,GAAGC;AAAA,EAAA;AACN,CACD;AACDQ,EAAU,cAAc;AAElB,MAAAC,IAAYX,EAAM,WAGtB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAC1B,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,KAAAD;AAAA,IACA,WAAWE;AAAA,MACT;AAAA,MACAJ;AAAA,IACF;AAAA,IACC,GAAGC;AAAA,EAAA;AACN,CACD;AACDS,EAAU,cAAc;AAElB,MAAAC,IAAeZ,EAAM,WAGzB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAS,GAAAC,wBACzB,WAAQ,EAAA,KAAAA,GAAU,WAAWE,EAAG,sCAAsCJ,CAAS,GAAI,GAAGC,GAAO,CAC/F;AACDU,EAAa,cAAc;"}
1
+ {"version":3,"file":"table.es.js","sources":["../../../lib/components/ui/table.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { cn } from '@/utils';\n\nconst Table = React.forwardRef<HTMLTableElement, React.HTMLAttributes<HTMLTableElement>>(\n ({ className, ...props }, ref) => (\n <div className=\"w-full\">\n <table\n ref={ref}\n className={cn(\n 'w-full caption-bottom text-sm [&_tr:last-child]:border-0 my-0 overflow-x-auto whitespace-nowrap',\n className,\n )}\n {...props}\n />\n </div>\n ),\n);\nTable.displayName = 'Table';\n\nconst TableHeader = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <thead\n ref={ref}\n className={cn('[&_tr]:border-b border-b', className)} // Added border-b to apply a bottom border\n {...props}\n />\n));\nTableHeader.displayName = 'TableHeader';\n\nconst TableBody = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <tbody\n ref={ref}\n className={cn(\n '[&_tr:last-child]:border-b-2 [&_tr:last-child]:border-dotted', // Updated to 2px dotted border for the last row\n className,\n )}\n {...props}\n />\n));\nTableBody.displayName = 'TableBody';\n\nconst TableFooter = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <tfoot\n ref={ref}\n className={cn('border-t bg-card/50 font-medium [&>tr]:last:border-b-0', className)}\n {...props}\n />\n));\nTableFooter.displayName = 'TableFooter';\n\nconst TableRow = React.forwardRef<HTMLTableRowElement, React.HTMLAttributes<HTMLTableRowElement>>(\n ({ className, ...props }, ref) => (\n <tr\n ref={ref}\n className={cn(\n 'border-b border-card cursor-pointer transition-colors data-[state=selected]:bg-muted-foreground/20 hover:bg-muted-foreground/30',\n className,\n )}\n {...props}\n />\n ),\n);\nTableRow.displayName = 'TableRow';\n\nconst TableHead = React.forwardRef<\n HTMLTableCellElement,\n React.ThHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => (\n <th\n ref={ref}\n className={cn(\n 'h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0',\n className,\n )}\n {...props}\n />\n));\nTableHead.displayName = 'TableHead';\n\nconst TableCell = React.forwardRef<\n HTMLTableCellElement,\n React.TdHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => (\n <td\n ref={ref}\n className={cn(\n 'p-4 align-middle [&:has([role=checkbox])]:pr-0 border-b [&_tr:last-child]:border-dotted',\n className,\n )}\n {...props}\n />\n));\nTableCell.displayName = 'TableCell';\n\nconst TableCaption = React.forwardRef<\n HTMLTableCaptionElement,\n React.HTMLAttributes<HTMLTableCaptionElement>\n>(({ className, ...props }, ref) => (\n <caption ref={ref} className={cn('mt-4 text-sm text-muted-foreground', className)} {...props} />\n));\nTableCaption.displayName = 'TableCaption';\n\nexport { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };\n"],"names":["Table","React","className","props","ref","jsx","cn","TableHeader","TableBody","TableFooter","TableRow","TableHead","TableCell","TableCaption"],"mappings":";;;AAIA,MAAMA,IAAQC,EAAM;AAAA,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A,EAAA;AAGV;AACAO,EAAS,cAAc;AAEjB,MAAAC,IAAYV,EAAM,WAGtB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAC1B,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,KAAAD;AAAA,IACA,WAAWE;AAAA,MACT;AAAA,MACAJ;AAAA,IACF;AAAA,IACC,GAAGC;AAAA,EAAA;AACN,CACD;AACDQ,EAAU,cAAc;AAElB,MAAAC,IAAYX,EAAM,WAGtB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAC1B,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,KAAAD;AAAA,IACA,WAAWE;AAAA,MACT;AAAA,MACAJ;AAAA,IACF;AAAA,IACC,GAAGC;AAAA,EAAA;AACN,CACD;AACDS,EAAU,cAAc;AAElB,MAAAC,IAAeZ,EAAM,WAGzB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAS,GAAAC,wBACzB,WAAQ,EAAA,KAAAA,GAAU,WAAWE,EAAG,sCAAsCJ,CAAS,GAAI,GAAGC,GAAO,CAC/F;AACDU,EAAa,cAAc;"}
@@ -4,6 +4,7 @@ import { AllowInDimension } from 'recharts/types/util/types';
4
4
  import { AnimationDuration } from 'recharts/types/util/types';
5
5
  import { AnimationTiming } from 'recharts/types/util/types';
6
6
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
7
+ import { ButtonProps as ButtonProps_2 } from './button';
7
8
  import { CartesianViewBox } from 'recharts/types/util/types';
8
9
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
9
10
  import { ClassProp } from 'class-variance-authority/types';
@@ -32,6 +33,7 @@ import { FieldPath } from 'react-hook-form';
32
33
  import { FieldValues } from 'react-hook-form';
33
34
  import { FormProviderProps } from 'react-hook-form';
34
35
  import { ForwardRefExoticComponent } from 'react';
36
+ import { InputProps as InputProps_2 } from './input';
35
37
  import { JSX as JSX_2 } from 'react/jsx-runtime';
36
38
  import * as LabelPrimitive from '@radix-ui/react-label';
37
39
  import { LucideIcon } from 'lucide-react';
@@ -327,6 +329,17 @@ export declare function convertCamelCaseToTitleCase(string: string): string;
327
329
  */
328
330
  export declare function convertToTitleCase(input: string): string;
329
331
 
332
+ export declare function CopyButton({ value, display, tooltipMessage, onCopy, }: CopyProps): JSX_2.Element;
333
+
334
+ declare interface CopyProps {
335
+ value: string;
336
+ display?: string;
337
+ tooltipMessage?: string;
338
+ className?: string;
339
+ size?: number;
340
+ onCopy?: () => void;
341
+ }
342
+
330
343
  export declare function createTableFetchFn<_any, Return>(ctxclient: Client, path: GetPaths, params?: ParamsOption<any>): TableFetchFn<Return>;
331
344
 
332
345
  export declare type CtxPortals = 'customer-portal' | 'system-portal' | 'reseller-portal' | 'admin-portal';
@@ -382,10 +395,10 @@ export declare const DialogTitle: React_2.ForwardRefExoticComponent<Omit<DialogP
382
395
 
383
396
  export declare const DialogTrigger: React_2.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
384
397
 
385
- export declare type DisplayField = {
398
+ export declare type DisplayField<T> = {
386
399
  display: string;
387
- accessor: string;
388
- type?: 'text' | 'badge' | 'boolean';
400
+ accessor: NestedKeyOf<T>;
401
+ type?: 'text' | 'badge' | 'boolean' | 'date' | 'yesno' | 'copyButton' | 'link';
389
402
  transform?: (value: any) => React.ReactNode;
390
403
  };
391
404
 
@@ -530,15 +543,6 @@ export declare function getValueFromData(data: any, accessor: string | number |
530
543
 
531
544
  export declare const ID_COLUMN: AccessorKeyColumnDef<any, any>[];
532
545
 
533
- export declare const InfoCard: React.FC<InfoCardProps>;
534
-
535
- export declare interface InfoCardProps {
536
- data: Record<string, any>;
537
- label: string;
538
- fields: DisplayField[];
539
- className?: string;
540
- }
541
-
542
546
  export declare const Input: React_2.ForwardRefExoticComponent<InputProps & React_2.RefAttributes<HTMLInputElement>>;
543
547
 
544
548
  export declare const InputOTP: React_2.ForwardRefExoticComponent<(Omit<Omit<React_2.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
@@ -597,8 +601,28 @@ export declare type JwtDecode = {
597
601
  sadmin?: string;
598
602
  };
599
603
 
604
+ export declare const KeyValueCard: <T extends {}>({ data, label, fields }: KeyValueCardProps<T>) => JSX_2.Element;
605
+
606
+ export declare interface KeyValueCardProps<T> {
607
+ data: T;
608
+ label: string;
609
+ fields: DisplayField<T>[];
610
+ className?: string;
611
+ }
612
+
600
613
  export declare const Label: React_2.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React_2.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: ClassProp | undefined) => string> & React_2.RefAttributes<HTMLLabelElement>>;
601
614
 
615
+ /**
616
+ *
617
+ * @param props buttonVariants
618
+ * @returns Button as Tanstack Link
619
+ */
620
+ export declare function LinkButton(props: VariantProps<typeof buttonVariants> & {
621
+ icon?: LucideIcon;
622
+ to: string;
623
+ children: React.ReactNode;
624
+ }): JSX_2.Element;
625
+
602
626
  export declare function Loader({ className }: LoaderProps): JSX_2.Element;
603
627
 
604
628
  declare interface LoaderProps {
@@ -634,7 +658,7 @@ export declare type NavItem = {
634
658
  label: string;
635
659
  display: boolean;
636
660
  icon: LucideIcon;
637
- chidren?: {
661
+ children?: {
638
662
  path: string;
639
663
  label: string;
640
664
  icon: LucideIcon;
@@ -646,6 +670,10 @@ export declare function NavMain({ items }: {
646
670
  items: NavItem[];
647
671
  }): JSX_2.Element;
648
672
 
673
+ declare type NestedKeyOf<T> = T extends object ? {
674
+ [K in keyof T]: K extends string | number ? `${K & string}` | `${K & string}.${NestedKeyOf<T[K]>}` : never;
675
+ }[keyof T] : never;
676
+
649
677
  export declare const OPERATORS_FOR_FILTER_TYPE: OperatorsForFilterType;
650
678
 
651
679
  export declare type OperatorsForFilterType = Record<FilterablePropertyType, FilterComparisonOperator[]>;
@@ -812,7 +840,7 @@ export declare const SidebarGroupLabel: React_2.ForwardRefExoticComponent<Omit<R
812
840
 
813
841
  export declare const SidebarHeader: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
814
842
 
815
- export declare const SidebarInput: React_2.ForwardRefExoticComponent<Omit<InputProps & React_2.RefAttributes<HTMLInputElement>, "ref"> & React_2.RefAttributes<HTMLInputElement>>;
843
+ export declare const SidebarInput: React_2.ForwardRefExoticComponent<Omit<InputProps_2 & React_2.RefAttributes<HTMLInputElement>, "ref"> & React_2.RefAttributes<HTMLInputElement>>;
816
844
 
817
845
  export declare const SidebarInset: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
818
846
 
@@ -864,7 +892,7 @@ export declare const SidebarRail: React_2.ForwardRefExoticComponent<Omit<React_2
864
892
 
865
893
  export declare const SidebarSeparator: React_2.ForwardRefExoticComponent<Omit<Omit<SeparatorProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
866
894
 
867
- export declare const SidebarTrigger: React_2.ForwardRefExoticComponent<Omit<ButtonProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
895
+ export declare const SidebarTrigger: React_2.ForwardRefExoticComponent<Omit<ButtonProps_2 & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
868
896
 
869
897
  export declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): JSX_2.Element;
870
898