@acronis-platform/shadcn-uikit 0.32.4 → 0.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/base.css +1 -1
  2. package/dist/components/icons/dynamic-icons.js +15 -0
  3. package/dist/components/icons/dynamic-icons.js.map +1 -0
  4. package/dist/components/mode-toggle.js +14 -10
  5. package/dist/components/mode-toggle.js.map +1 -1
  6. package/dist/components/ui/accordion.js +4 -3
  7. package/dist/components/ui/accordion.js.map +1 -1
  8. package/dist/components/ui/badge.d.ts +1 -1
  9. package/dist/components/ui/badge.js +8 -6
  10. package/dist/components/ui/badge.js.map +1 -1
  11. package/dist/components/ui/breadcrumb.js +5 -4
  12. package/dist/components/ui/breadcrumb.js.map +1 -1
  13. package/dist/components/ui/calendar.js +11 -10
  14. package/dist/components/ui/calendar.js.map +1 -1
  15. package/dist/components/ui/carousel.js +14 -13
  16. package/dist/components/ui/carousel.js.map +1 -1
  17. package/dist/components/ui/checkbox.js +2 -1
  18. package/dist/components/ui/checkbox.js.map +1 -1
  19. package/dist/components/ui/chip.js +5 -4
  20. package/dist/components/ui/chip.js.map +1 -1
  21. package/dist/components/ui/combobox.js +10 -9
  22. package/dist/components/ui/combobox.js.map +1 -1
  23. package/dist/components/ui/command.d.ts +2 -2
  24. package/dist/components/ui/command.js +7 -6
  25. package/dist/components/ui/command.js.map +1 -1
  26. package/dist/components/ui/data-table/data-table-column-header.js +14 -13
  27. package/dist/components/ui/data-table/data-table-column-header.js.map +1 -1
  28. package/dist/components/ui/data-table/data-table-pagination.js +23 -22
  29. package/dist/components/ui/data-table/data-table-pagination.js.map +1 -1
  30. package/dist/components/ui/data-table/data-table-toolbar.js +13 -12
  31. package/dist/components/ui/data-table/data-table-toolbar.js.map +1 -1
  32. package/dist/components/ui/data-table/data-table-view-options.js +4 -3
  33. package/dist/components/ui/data-table/data-table-view-options.js.map +1 -1
  34. package/dist/components/ui/dialog.js +16 -15
  35. package/dist/components/ui/dialog.js.map +1 -1
  36. package/dist/components/ui/dropdown-menu.js +9 -8
  37. package/dist/components/ui/dropdown-menu.js.map +1 -1
  38. package/dist/components/ui/empty.js +1 -1
  39. package/dist/components/ui/empty.js.map +1 -1
  40. package/dist/components/ui/filter.js +5 -4
  41. package/dist/components/ui/filter.js.map +1 -1
  42. package/dist/components/ui/navigation-menu.js +11 -10
  43. package/dist/components/ui/navigation-menu.js.map +1 -1
  44. package/dist/components/ui/pagination.js +14 -13
  45. package/dist/components/ui/pagination.js.map +1 -1
  46. package/dist/components/ui/radio-group.js +12 -11
  47. package/dist/components/ui/radio-group.js.map +1 -1
  48. package/dist/components/ui/resizable.js +5 -4
  49. package/dist/components/ui/resizable.js.map +1 -1
  50. package/dist/components/ui/select.js +9 -8
  51. package/dist/components/ui/select.js.map +1 -1
  52. package/dist/components/ui/sheet.js +12 -11
  53. package/dist/components/ui/sheet.js.map +1 -1
  54. package/dist/components/ui/sidebar.js +7 -6
  55. package/dist/components/ui/sidebar.js.map +1 -1
  56. package/dist/components/ui/stack.d.ts +2 -2
  57. package/dist/components/ui/tree.js +31 -30
  58. package/dist/components/ui/tree.js.map +1 -1
  59. package/dist/components.css +1 -1
  60. package/dist/shadcn-uikit-full.css +1 -1
  61. package/dist/shadcn-uikit.css +1 -1
  62. package/dist/utilities.css +1 -1
  63. package/package.json +1 -2
@@ -1,7 +1,8 @@
1
1
  import { jsx as e, jsxs as s, Fragment as f } from "react/jsx-runtime";
2
2
  import * as l from "react";
3
- import { X as c } from "lucide-react";
4
3
  import { cn as i } from "../../lib/utils.js";
4
+ import "../icons/dynamic-icons.js";
5
+ import { CloseIcon as c } from "../icons/auto-generated.js";
5
6
  import { DialogBackdrop as D } from "../../node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/dialog/backdrop/DialogBackdrop.js";
6
7
  import { DialogPopup as u } from "../../node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/dialog/popup/DialogPopup.js";
7
8
  import { DialogPortal as d } from "../../node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/dialog/portal/DialogPortal.js";
@@ -10,7 +11,7 @@ import { DialogClose as n } from "../../node_modules/.pnpm/@base-ui_react@1.1.0_
10
11
  import { DialogDescription as y } from "../../node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/dialog/description/DialogDescription.js";
11
12
  import { DialogRoot as N } from "../../node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/dialog/root/DialogRoot.js";
12
13
  import { DialogTrigger as b } from "../../node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/dialog/trigger/DialogTrigger.js";
13
- const A = N, E = b, G = d, I = n, m = l.forwardRef(({ className: o, ...a }, t) => /* @__PURE__ */ e(
14
+ const E = N, G = b, J = d, K = n, m = l.forwardRef(({ className: o, ...a }, t) => /* @__PURE__ */ e(
14
15
  D,
15
16
  {
16
17
  ref: t,
@@ -22,18 +23,18 @@ const A = N, E = b, G = d, I = n, m = l.forwardRef(({ className: o, ...a }, t) =
22
23
  }
23
24
  ));
24
25
  m.displayName = "DialogOverlay";
25
- const w = l.forwardRef(({ className: o, children: a, portal: t = !0, ...g }, p) => {
26
+ const w = l.forwardRef(({ className: o, children: a, portal: t = !0, ...p }, g) => {
26
27
  const r = /* @__PURE__ */ s(f, { children: [
27
28
  /* @__PURE__ */ e(m, {}),
28
29
  /* @__PURE__ */ e(
29
30
  u,
30
31
  {
31
- ref: p,
32
+ ref: g,
32
33
  className: i(
33
34
  "fixed left-[50%] top-[50%] z-50 flex w-full max-w-lg translate-x-[-50%] translate-y-[-50%] flex-col overflow-hidden rounded bg-muted shadow-[0px_10px_20px_rgba(36,49,67,0.9)] duration-200 data-[open]:animate-in data-[closed]:animate-out data-[closed]:fade-out-0 data-[open]:fade-in-0 data-[closed]:zoom-out-95 data-[open]:zoom-in-95 data-[closed]:slide-out-to-left-1/2 data-[closed]:slide-out-to-top-dialog-offset data-[open]:slide-in-from-left-1/2 data-[open]:slide-in-from-top-dialog-offset",
34
35
  o
35
36
  ),
36
- ...g,
37
+ ...p,
37
38
  children: a
38
39
  }
39
40
  )
@@ -52,7 +53,7 @@ const h = ({ className: o, ...a }) => /* @__PURE__ */ e(
52
53
  }
53
54
  );
54
55
  h.displayName = "DialogHeader";
55
- const v = ({ className: o, ...a }) => /* @__PURE__ */ e(
56
+ const C = ({ className: o, ...a }) => /* @__PURE__ */ e(
56
57
  "div",
57
58
  {
58
59
  className: i(
@@ -62,8 +63,8 @@ const v = ({ className: o, ...a }) => /* @__PURE__ */ e(
62
63
  ...a
63
64
  }
64
65
  );
65
- v.displayName = "DialogFooter";
66
- const C = l.forwardRef(({ className: o, ...a }, t) => /* @__PURE__ */ e(
66
+ C.displayName = "DialogFooter";
67
+ const v = l.forwardRef(({ className: o, ...a }, t) => /* @__PURE__ */ e(
67
68
  x,
68
69
  {
69
70
  ref: t,
@@ -74,7 +75,7 @@ const C = l.forwardRef(({ className: o, ...a }, t) => /* @__PURE__ */ e(
74
75
  ...a
75
76
  }
76
77
  ));
77
- C.displayName = "DialogTitle";
78
+ v.displayName = "DialogTitle";
78
79
  const R = l.forwardRef(({ className: o, ...a }, t) => /* @__PURE__ */ s(
79
80
  n,
80
81
  {
@@ -103,17 +104,17 @@ const B = l.forwardRef(({ className: o, ...a }, t) => /* @__PURE__ */ e(
103
104
  ));
104
105
  B.displayName = "DialogDescription";
105
106
  export {
106
- A as Dialog,
107
+ E as Dialog,
107
108
  T as DialogBody,
108
- I as DialogClose,
109
+ K as DialogClose,
109
110
  R as DialogCloseButton,
110
111
  w as DialogContent,
111
112
  B as DialogDescription,
112
- v as DialogFooter,
113
+ C as DialogFooter,
113
114
  h as DialogHeader,
114
115
  m as DialogOverlay,
115
- G as DialogPortal,
116
- C as DialogTitle,
117
- E as DialogTrigger
116
+ J as DialogPortal,
117
+ v as DialogTitle,
118
+ G as DialogTrigger
118
119
  };
119
120
  //# sourceMappingURL=dialog.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dialog.js","sources":["../../../src/components/ui/dialog.tsx"],"sourcesContent":["import * as React from 'react'\nimport { Dialog as BaseDialog } from '@base-ui/react'\nimport { X } from 'lucide-react'\n\nimport { cn } from '@/lib/utils'\n\n// Re-export Root as Dialog so callers use <Dialog open={...}> identical to Radix usage\nconst Dialog = BaseDialog.Root\n\nconst DialogTrigger = BaseDialog.Trigger\n\nconst DialogPortal = BaseDialog.Portal\n\nconst DialogClose = BaseDialog.Close\n\nconst DialogOverlay = React.forwardRef<\n React.ElementRef<typeof BaseDialog.Backdrop>,\n React.ComponentPropsWithoutRef<typeof BaseDialog.Backdrop>\n>(({ className, ...props }, ref) => (\n <BaseDialog.Backdrop\n ref={ref}\n className={cn(\n 'fixed inset-0 z-50 bg-black/80 data-[open]:animate-in data-[closed]:animate-out data-[closed]:fade-out-0 data-[open]:fade-in-0',\n className\n )}\n {...props}\n />\n))\nDialogOverlay.displayName = 'DialogOverlay'\n\nconst DialogContent = React.forwardRef<\n React.ElementRef<typeof BaseDialog.Popup>,\n React.ComponentPropsWithoutRef<typeof BaseDialog.Popup> & {\n portal?: boolean\n }\n>(({ className, children, portal = true, ...props }, ref) => {\n // Base UI requires Popup to be rendered inside a Portal for proper stacking context.\n // When portal=false the caller opts out (e.g. inline usage in tests).\n const popup = (\n <>\n <DialogOverlay />\n <BaseDialog.Popup\n ref={ref}\n className={cn(\n 'fixed left-[50%] top-[50%] z-50 flex w-full max-w-lg translate-x-[-50%] translate-y-[-50%] flex-col overflow-hidden rounded bg-muted shadow-[0px_10px_20px_rgba(36,49,67,0.9)] duration-200 data-[open]:animate-in data-[closed]:animate-out data-[closed]:fade-out-0 data-[open]:fade-in-0 data-[closed]:zoom-out-95 data-[open]:zoom-in-95 data-[closed]:slide-out-to-left-1/2 data-[closed]:slide-out-to-top-dialog-offset data-[open]:slide-in-from-left-1/2 data-[open]:slide-in-from-top-dialog-offset',\n className\n )}\n {...props}\n >\n {children}\n </BaseDialog.Popup>\n </>\n )\n\n return portal ? <BaseDialog.Portal>{popup}</BaseDialog.Portal> : popup\n})\nDialogContent.displayName = 'DialogContent'\n\nconst DialogHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\n 'flex h-16 items-center gap-4 border-b border-border bg-card px-5 py-4',\n className\n )}\n {...props}\n />\n)\nDialogHeader.displayName = 'DialogHeader'\n\nconst DialogFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\n 'flex h-16 items-center justify-end gap-4 border-t border-border bg-card px-6 py-4',\n className\n )}\n {...props}\n />\n)\nDialogFooter.displayName = 'DialogFooter'\n\nconst DialogTitle = React.forwardRef<\n React.ElementRef<typeof BaseDialog.Title>,\n React.ComponentPropsWithoutRef<typeof BaseDialog.Title>\n>(({ className, ...props }, ref) => (\n <BaseDialog.Title\n ref={ref}\n className={cn(\n 'flex-1 text-2xl font-normal leading-8 text-foreground',\n className\n )}\n {...props}\n />\n))\nDialogTitle.displayName = 'DialogTitle'\n\nconst DialogCloseButton = React.forwardRef<\n React.ElementRef<typeof BaseDialog.Close>,\n React.ComponentPropsWithoutRef<typeof BaseDialog.Close>\n>(({ className, ...props }, ref) => (\n <BaseDialog.Close\n ref={ref}\n className={cn(\n 'rounded p-1 text-[#2668C5] opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none',\n className\n )}\n {...props}\n >\n <X className=\"h-6 w-6\" />\n <span className=\"sr-only\">Close</span>\n </BaseDialog.Close>\n))\nDialogCloseButton.displayName = 'DialogCloseButton'\n\nconst DialogBody = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn('flex-1 overflow-auto p-6', className)} {...props} />\n)\nDialogBody.displayName = 'DialogBody'\n\nconst DialogDescription = React.forwardRef<\n React.ElementRef<typeof BaseDialog.Description>,\n React.ComponentPropsWithoutRef<typeof BaseDialog.Description>\n>(({ className, ...props }, ref) => (\n <BaseDialog.Description\n ref={ref}\n className={cn('text-sm text-muted-foreground', className)}\n {...props}\n />\n))\nDialogDescription.displayName = 'DialogDescription'\n\nexport {\n Dialog,\n DialogPortal,\n DialogOverlay,\n DialogClose,\n DialogCloseButton,\n DialogTrigger,\n DialogContent,\n DialogHeader,\n DialogFooter,\n DialogTitle,\n DialogBody,\n DialogDescription,\n}\n"],"names":["Dialog","BaseDialog.Root","DialogTrigger","BaseDialog.Trigger","DialogPortal","BaseDialog.Portal","DialogClose","BaseDialog.Close","DialogOverlay","React","className","props","ref","jsx","BaseDialog.Backdrop","cn","DialogContent","children","portal","popup","jsxs","Fragment","BaseDialog.Popup","DialogHeader","DialogFooter","DialogTitle","BaseDialog.Title","DialogCloseButton","X","DialogBody","DialogDescription","BaseDialog.Description"],"mappings":";;;;;;;;;;;;AAOA,MAAMA,IAASC,GAETC,IAAgBC,GAEhBC,IAAeC,GAEfC,IAAcC,GAEdC,IAAgBC,EAAM,WAG1B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1B,gBAAAC;AAAA,EAACC;AAAAA,EAAA;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAL;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,EAAA;AACN,CACD;AACDH,EAAc,cAAc;AAE5B,MAAMQ,IAAgBP,EAAM,WAK1B,CAAC,EAAE,WAAAC,GAAW,UAAAO,GAAU,QAAAC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AAA,MACAL;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,IAEJ,UAAA;AAAA,MAAA,gBAAAE,EAACe,GAAA,EAAE,WAAU,UAAA,CAAU;AAAA,MACvB,gBAAAf,EAAC,QAAA,EAAK,WAAU,WAAU,UAAA,QAAA,CAAK;AAAA,IAAA;AAAA,EAAA;AACjC,CACD;AACDc,EAAkB,cAAc;AAEhC,MAAME,IAAa,CAAC,EAAE,WAAAnB,GAAW,GAAGC,EAAA,MAClC,gBAAAE,EAAC,OAAA,EAAI,WAAWE,EAAG,4BAA4BL,CAAS,GAAI,GAAGC,EAAA,CAAO;AAExEkB,EAAW,cAAc;AAEzB,MAAMC,IAAoBrB,EAAM,WAG9B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1B,gBAAAC;AAAA,EAACkB;AAAAA,EAAA;AAAA,IACC,KAAAnB;AAAA,IACA,WAAWG,EAAG,iCAAiCL,CAAS;AAAA,IACvD,GAAGC;AAAA,EAAA;AACN,CACD;AACDmB,EAAkB,cAAc;"}
1
+ {"version":3,"file":"dialog.js","sources":["../../../src/components/ui/dialog.tsx"],"sourcesContent":["import * as React from 'react'\nimport { Dialog as BaseDialog } from '@base-ui/react'\nimport { CloseIcon } from '@/components/icons'\n\nimport { cn } from '@/lib/utils'\n\n// Re-export Root as Dialog so callers use <Dialog open={...}> identical to Radix usage\nconst Dialog = BaseDialog.Root\n\nconst DialogTrigger = BaseDialog.Trigger\n\nconst DialogPortal = BaseDialog.Portal\n\nconst DialogClose = BaseDialog.Close\n\nconst DialogOverlay = React.forwardRef<\n React.ElementRef<typeof BaseDialog.Backdrop>,\n React.ComponentPropsWithoutRef<typeof BaseDialog.Backdrop>\n>(({ className, ...props }, ref) => (\n <BaseDialog.Backdrop\n ref={ref}\n className={cn(\n 'fixed inset-0 z-50 bg-black/80 data-[open]:animate-in data-[closed]:animate-out data-[closed]:fade-out-0 data-[open]:fade-in-0',\n className\n )}\n {...props}\n />\n))\nDialogOverlay.displayName = 'DialogOverlay'\n\nconst DialogContent = React.forwardRef<\n React.ElementRef<typeof BaseDialog.Popup>,\n React.ComponentPropsWithoutRef<typeof BaseDialog.Popup> & {\n portal?: boolean\n }\n>(({ className, children, portal = true, ...props }, ref) => {\n // Base UI requires Popup to be rendered inside a Portal for proper stacking context.\n // When portal=false the caller opts out (e.g. inline usage in tests).\n const popup = (\n <>\n <DialogOverlay />\n <BaseDialog.Popup\n ref={ref}\n className={cn(\n 'fixed left-[50%] top-[50%] z-50 flex w-full max-w-lg translate-x-[-50%] translate-y-[-50%] flex-col overflow-hidden rounded bg-muted shadow-[0px_10px_20px_rgba(36,49,67,0.9)] duration-200 data-[open]:animate-in data-[closed]:animate-out data-[closed]:fade-out-0 data-[open]:fade-in-0 data-[closed]:zoom-out-95 data-[open]:zoom-in-95 data-[closed]:slide-out-to-left-1/2 data-[closed]:slide-out-to-top-dialog-offset data-[open]:slide-in-from-left-1/2 data-[open]:slide-in-from-top-dialog-offset',\n className\n )}\n {...props}\n >\n {children}\n </BaseDialog.Popup>\n </>\n )\n\n return portal ? <BaseDialog.Portal>{popup}</BaseDialog.Portal> : popup\n})\nDialogContent.displayName = 'DialogContent'\n\nconst DialogHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\n 'flex h-16 items-center gap-4 border-b border-border bg-card px-5 py-4',\n className\n )}\n {...props}\n />\n)\nDialogHeader.displayName = 'DialogHeader'\n\nconst DialogFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\n 'flex h-16 items-center justify-end gap-4 border-t border-border bg-card px-6 py-4',\n className\n )}\n {...props}\n />\n)\nDialogFooter.displayName = 'DialogFooter'\n\nconst DialogTitle = React.forwardRef<\n React.ElementRef<typeof BaseDialog.Title>,\n React.ComponentPropsWithoutRef<typeof BaseDialog.Title>\n>(({ className, ...props }, ref) => (\n <BaseDialog.Title\n ref={ref}\n className={cn(\n 'flex-1 text-2xl font-normal leading-8 text-foreground',\n className\n )}\n {...props}\n />\n))\nDialogTitle.displayName = 'DialogTitle'\n\nconst DialogCloseButton = React.forwardRef<\n React.ElementRef<typeof BaseDialog.Close>,\n React.ComponentPropsWithoutRef<typeof BaseDialog.Close>\n>(({ className, ...props }, ref) => (\n <BaseDialog.Close\n ref={ref}\n className={cn(\n 'rounded p-1 text-[#2668C5] opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none',\n className\n )}\n {...props}\n >\n <CloseIcon className=\"h-6 w-6\" />\n <span className=\"sr-only\">Close</span>\n </BaseDialog.Close>\n))\nDialogCloseButton.displayName = 'DialogCloseButton'\n\nconst DialogBody = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn('flex-1 overflow-auto p-6', className)} {...props} />\n)\nDialogBody.displayName = 'DialogBody'\n\nconst DialogDescription = React.forwardRef<\n React.ElementRef<typeof BaseDialog.Description>,\n React.ComponentPropsWithoutRef<typeof BaseDialog.Description>\n>(({ className, ...props }, ref) => (\n <BaseDialog.Description\n ref={ref}\n className={cn('text-sm text-muted-foreground', className)}\n {...props}\n />\n))\nDialogDescription.displayName = 'DialogDescription'\n\nexport {\n Dialog,\n DialogPortal,\n DialogOverlay,\n DialogClose,\n DialogCloseButton,\n DialogTrigger,\n DialogContent,\n DialogHeader,\n DialogFooter,\n DialogTitle,\n DialogBody,\n DialogDescription,\n}\n"],"names":["Dialog","BaseDialog.Root","DialogTrigger","BaseDialog.Trigger","DialogPortal","BaseDialog.Portal","DialogClose","BaseDialog.Close","DialogOverlay","React","className","props","ref","jsx","BaseDialog.Backdrop","cn","DialogContent","children","portal","popup","jsxs","Fragment","BaseDialog.Popup","DialogHeader","DialogFooter","DialogTitle","BaseDialog.Title","DialogCloseButton","CloseIcon","DialogBody","DialogDescription","BaseDialog.Description"],"mappings":";;;;;;;;;;;;;AAOA,MAAMA,IAASC,GAETC,IAAgBC,GAEhBC,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GAASC,MAC1B,gBAAAC;AAAA,EAACa;AAAAA,EAAA;AAAA,IACC,KAAAd;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAL;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,EAAA;AACN,CACD;AACDc,EAAY,cAAc;AAE1B,MAAME,IAAoBlB,EAAM,WAG9B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1B,gBAAAQ;AAAA,EAACb;AAAAA,EAAA;AAAA,IACC,KAAAK;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAL;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,IAEJ,UAAA;AAAA,MAAA,gBAAAE,EAACe,GAAA,EAAU,WAAU,UAAA,CAAU;AAAA,MAC/B,gBAAAf,EAAC,QAAA,EAAK,WAAU,WAAU,UAAA,QAAA,CAAK;AAAA,IAAA;AAAA,EAAA;AACjC,CACD;AACDc,EAAkB,cAAc;AAEhC,MAAME,IAAa,CAAC,EAAE,WAAAnB,GAAW,GAAGC,EAAA,MAClC,gBAAAE,EAAC,OAAA,EAAI,WAAWE,EAAG,4BAA4BL,CAAS,GAAI,GAAGC,EAAA,CAAO;AAExEkB,EAAW,cAAc;AAEzB,MAAMC,IAAoBrB,EAAM,WAG9B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1B,gBAAAC;AAAA,EAACkB;AAAAA,EAAA;AAAA,IACC,KAAAnB;AAAA,IACA,WAAWG,EAAG,iCAAiCL,CAAS;AAAA,IACvD,GAAGC;AAAA,EAAA;AACN,CACD;AACDmB,EAAkB,cAAc;"}
@@ -1,7 +1,8 @@
1
1
  import { jsxs as s, jsx as t } from "react/jsx-runtime";
2
2
  import * as i from "react";
3
- import { ChevronRight as g, Check as w, Circle as b } from "lucide-react";
4
3
  import { cn as a } from "../../lib/utils.js";
4
+ import "../icons/dynamic-icons.js";
5
+ import { ChevronRightIcon as g, CheckIcon as w, CircleIcon as b } from "../icons/auto-generated.js";
5
6
  import { MenuSubmenuTrigger as h } from "../../node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/menu/submenu-trigger/MenuSubmenuTrigger.js";
6
7
  import { MenuPositioner as m } from "../../node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/menu/positioner/MenuPositioner.js";
7
8
  import { MenuPopup as l } from "../../node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/menu/popup/MenuPopup.js";
@@ -16,7 +17,7 @@ import { MenuTrigger as R } from "../../node_modules/.pnpm/@base-ui_react@1.1.0_
16
17
  import { MenuGroup as I } from "../../node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/menu/group/MenuGroup.js";
17
18
  import { MenuSubmenuRoot as _ } from "../../node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/menu/submenu-root/MenuSubmenuRoot.js";
18
19
  import { MenuRadioGroup as C } from "../../node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/menu/radio-group/MenuRadioGroup.js";
19
- const oe = N, te = R, ne = I, re = c, ae = _, ie = C, S = i.forwardRef(({ className: e, inset: o, children: n, ...r }, d) => /* @__PURE__ */ s(
20
+ const te = N, ne = R, re = I, ae = c, ie = _, de = C, S = i.forwardRef(({ className: e, inset: o, children: n, ...r }, d) => /* @__PURE__ */ s(
20
21
  h,
21
22
  {
22
23
  ref: d,
@@ -128,20 +129,20 @@ L.displayName = "DropdownMenuSeparator";
128
129
  const q = ({ className: e, ...o }) => /* @__PURE__ */ t("span", { className: a("ml-auto text-xs tracking-widest opacity-60", e), ...o });
129
130
  q.displayName = "DropdownMenuShortcut";
130
131
  export {
131
- oe as DropdownMenu,
132
+ te as DropdownMenu,
132
133
  j as DropdownMenuCheckboxItem,
133
134
  z as DropdownMenuContent,
134
- ne as DropdownMenuGroup,
135
+ re as DropdownMenuGroup,
135
136
  T as DropdownMenuItem,
136
137
  P as DropdownMenuLabel,
137
- re as DropdownMenuPortal,
138
- ie as DropdownMenuRadioGroup,
138
+ ae as DropdownMenuPortal,
139
+ de as DropdownMenuRadioGroup,
139
140
  G as DropdownMenuRadioItem,
140
141
  L as DropdownMenuSeparator,
141
142
  q as DropdownMenuShortcut,
142
- ae as DropdownMenuSub,
143
+ ie as DropdownMenuSub,
143
144
  k as DropdownMenuSubContent,
144
145
  S as DropdownMenuSubTrigger,
145
- te as DropdownMenuTrigger
146
+ ne as DropdownMenuTrigger
146
147
  };
147
148
  //# sourceMappingURL=dropdown-menu.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown-menu.js","sources":["../../../src/components/ui/dropdown-menu.tsx"],"sourcesContent":["import * as React from 'react'\nimport { Menu } from '@base-ui/react'\nimport { Check, ChevronRight, Circle } from 'lucide-react'\n\nimport { cn } from '@/lib/utils'\n\nconst DropdownMenu = Menu.Root\n\nconst DropdownMenuTrigger = Menu.Trigger\n\nconst DropdownMenuGroup = Menu.Group\n\nconst DropdownMenuPortal = Menu.Portal\n\n// Base UI uses Menu.SubmenuRoot instead of a flat Sub component.\n// SubmenuTrigger must be a direct child of the parent Menu.Popup,\n// and it must be wrapped in Menu.SubmenuRoot to establish the submenu context.\nconst DropdownMenuSub = Menu.SubmenuRoot\n\nconst DropdownMenuRadioGroup = Menu.RadioGroup\n\nconst DropdownMenuSubTrigger = React.forwardRef<\n HTMLElement,\n Omit<Menu.SubmenuTrigger.Props, 'ref'> & {\n inset?: boolean\n }\n>(({ className, inset, children, ...props }, ref) => (\n <Menu.SubmenuTrigger\n ref={ref}\n className={cn(\n 'flex cursor-default select-none items-center gap-4 px-4 py-2 text-sm leading-6 outline-none transition-colors hover:bg-accent focus:bg-accent data-[open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',\n inset && 'pl-8',\n className\n )}\n {...props}\n >\n {children}\n <ChevronRight className=\"ml-auto\" />\n </Menu.SubmenuTrigger>\n))\nDropdownMenuSubTrigger.displayName = 'DropdownMenuSubTrigger'\n\nconst DropdownMenuSubContent = React.forwardRef<\n HTMLDivElement,\n Omit<Menu.Popup.Props, 'ref'> & {\n sideOffset?: number\n }\n>(({ className, sideOffset = 4, ...props }, ref) => (\n <Menu.Positioner sideOffset={sideOffset}>\n <Menu.Popup\n ref={ref}\n className={cn(\n 'z-50 min-w-[8rem] overflow-hidden rounded bg-popover py-2 text-popover-foreground shadow-[0px_10px_20px_rgba(36,49,67,0.2)] data-[open]:animate-in data-[closed]:animate-out data-[closed]:fade-out-0 data-[open]:fade-in-0 data-[closed]:zoom-out-95 data-[open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',\n className\n )}\n {...props}\n />\n </Menu.Positioner>\n))\nDropdownMenuSubContent.displayName = 'DropdownMenuSubContent'\n\nconst DropdownMenuContent = React.forwardRef<\n HTMLDivElement,\n Omit<Menu.Popup.Props, 'ref'> & {\n portal?: boolean\n sideOffset?: number\n align?: 'start' | 'center' | 'end'\n side?: 'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start'\n }\n>(({ className, portal = true, sideOffset = 4, align, side, ...props }, ref) => {\n const positioner = (\n <Menu.Positioner sideOffset={sideOffset} align={align} side={side}>\n <Menu.Popup\n ref={ref}\n className={cn(\n 'z-50 min-w-[8rem] overflow-y-auto overflow-x-hidden rounded bg-popover py-2 text-popover-foreground shadow-[0px_10px_20px_rgba(36,49,67,0.2)] data-[open]:animate-in data-[closed]:animate-out data-[closed]:fade-out-0 data-[open]:fade-in-0 data-[closed]:zoom-out-95 data-[open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',\n className\n )}\n {...props}\n />\n </Menu.Positioner>\n )\n\n return portal ? <Menu.Portal>{positioner}</Menu.Portal> : positioner\n})\nDropdownMenuContent.displayName = 'DropdownMenuContent'\n\nconst DropdownMenuItem = React.forwardRef<\n HTMLElement,\n Omit<Menu.Item.Props, 'ref'> & {\n inset?: boolean\n }\n>(({ className, inset, ...props }, ref) => (\n <Menu.Item\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center gap-4 px-4 py-2 text-sm leading-6 outline-none transition-colors hover:bg-primary/10 focus:bg-primary/10 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',\n inset && 'pl-8',\n className\n )}\n {...props}\n />\n))\nDropdownMenuItem.displayName = 'DropdownMenuItem'\n\nconst DropdownMenuCheckboxItem = React.forwardRef<\n HTMLElement,\n Omit<Menu.CheckboxItem.Props, 'ref'>\n>(({ className, children, checked, ...props }, ref) => (\n <Menu.CheckboxItem\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center py-2 pl-10 pr-4 text-sm leading-6 outline-none transition-colors hover:bg-accent focus:bg-accent data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n className\n )}\n checked={checked}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <Menu.CheckboxItemIndicator>\n <Check className=\"h-4 w-4\" />\n </Menu.CheckboxItemIndicator>\n </span>\n {children}\n </Menu.CheckboxItem>\n))\nDropdownMenuCheckboxItem.displayName = 'DropdownMenuCheckboxItem'\n\nconst DropdownMenuRadioItem = React.forwardRef<\n HTMLElement,\n Omit<Menu.RadioItem.Props, 'ref'>\n>(({ className, children, ...props }, ref) => (\n <Menu.RadioItem\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center py-2 pl-10 pr-4 text-sm leading-6 outline-none transition-colors hover:bg-accent focus:bg-accent data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n className\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <Menu.RadioItemIndicator>\n <Circle className=\"h-2 w-2 fill-current\" />\n </Menu.RadioItemIndicator>\n </span>\n {children}\n </Menu.RadioItem>\n))\nDropdownMenuRadioItem.displayName = 'DropdownMenuRadioItem'\n\n// Menu.GroupLabel requires a Menu.Group parent (Base UI constraint), but shadcn's\n// DropdownMenuLabel is used standalone. Render a plain div to match the original API.\nconst DropdownMenuLabel = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & {\n inset?: boolean\n }\n>(({ className, inset, ...props }, ref) => (\n <div\n ref={ref}\n className={cn('px-4 py-2 text-sm font-semibold leading-6', inset && 'pl-8', className)}\n {...props}\n />\n))\nDropdownMenuLabel.displayName = 'DropdownMenuLabel'\n\n// Base UI has no built-in Separator in Menu — render a plain div with role=\"separator\"\nconst DropdownMenuSeparator = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n role=\"separator\"\n className={cn('-mx-1 my-1 h-px bg-muted', className)}\n {...props}\n />\n))\nDropdownMenuSeparator.displayName = 'DropdownMenuSeparator'\n\nconst DropdownMenuShortcut = ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>) => {\n return <span className={cn('ml-auto text-xs tracking-widest opacity-60', className)} {...props} />\n}\nDropdownMenuShortcut.displayName = 'DropdownMenuShortcut'\n\nexport {\n DropdownMenu,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuGroup,\n DropdownMenuPortal,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuRadioGroup,\n}\n"],"names":["DropdownMenu","Menu.Root","DropdownMenuTrigger","Menu.Trigger","DropdownMenuGroup","Menu.Group","DropdownMenuPortal","Menu.Portal","DropdownMenuSub","Menu.SubmenuRoot","DropdownMenuRadioGroup","Menu.RadioGroup","DropdownMenuSubTrigger","React","className","inset","children","props","ref","jsxs","Menu.SubmenuTrigger","cn","jsx","ChevronRight","DropdownMenuSubContent","sideOffset","Menu.Positioner","Menu.Popup","DropdownMenuContent","portal","align","side","positioner","DropdownMenuItem","Menu.Item","DropdownMenuCheckboxItem","checked","Menu.CheckboxItem","Menu.CheckboxItemIndicator","Check","DropdownMenuRadioItem","Menu.RadioItem","Menu.RadioItemIndicator","Circle","DropdownMenuLabel","DropdownMenuSeparator","DropdownMenuShortcut"],"mappings":";;;;;;;;;;;;;;;;;;AAMA,MAAMA,KAAeC,GAEfC,KAAsBC,GAEtBC,KAAoBC,GAEpBC,KAAqBC,GAKrBC,KAAkBC,GAElBC,KAAyBC,GAEzBC,IAAyBC,EAAM,WAKnC,CAAC,EAAE,WAAAC,GAAW,OAAAC,GAAO,UAAAC,GAAU,GAAGC,KAASC,MAC3C,gBAAAC;AAAA,EAACC;AAAAA,EAAA;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAN,KAAS;AAAA,MACTD;AAAA,IAAA;AAAA,IAED,GAAGG;AAAA,IAEH,UAAA;AAAA,MAAAD;AAAA,MACD,gBAAAM,EAACC,GAAA,EAAa,WAAU,UAAA,CAAU;AAAA,IAAA;AAAA,EAAA;AACpC,CACD;AACDX,EAAuB,cAAc;AAErC,MAAMY,IAAyBX,EAAM,WAKnC,CAAC,EAAE,WAAAC,GAAW,YAAAW,IAAa,GAAG,GAAGR,EAAA,GAASC,MAC1C,gBAAAI,EAACI,GAAA,EAAgB,YAAA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E,WAAAhC,GAAW,GAAGG,QACrC,gBAAAK,EAAC,UAAK,WAAWD,EAAG,8CAA8CP,CAAS,GAAI,GAAGG,GAAO;AAElG6B,EAAqB,cAAc;"}
1
+ {"version":3,"file":"dropdown-menu.js","sources":["../../../src/components/ui/dropdown-menu.tsx"],"sourcesContent":["import * as React from 'react'\nimport { Menu } from '@base-ui/react'\nimport { CheckIcon, ChevronRightIcon, CircleIcon } from '@/components/icons'\n\nimport { cn } from '@/lib/utils'\n\nconst DropdownMenu = Menu.Root\n\nconst DropdownMenuTrigger = Menu.Trigger\n\nconst DropdownMenuGroup = Menu.Group\n\nconst DropdownMenuPortal = Menu.Portal\n\n// Base UI uses Menu.SubmenuRoot instead of a flat Sub component.\n// SubmenuTrigger must be a direct child of the parent Menu.Popup,\n// and it must be wrapped in Menu.SubmenuRoot to establish the submenu context.\nconst DropdownMenuSub = Menu.SubmenuRoot\n\nconst DropdownMenuRadioGroup = Menu.RadioGroup\n\nconst DropdownMenuSubTrigger = React.forwardRef<\n HTMLElement,\n Omit<Menu.SubmenuTrigger.Props, 'ref'> & {\n inset?: boolean\n }\n>(({ className, inset, children, ...props }, ref) => (\n <Menu.SubmenuTrigger\n ref={ref}\n className={cn(\n 'flex cursor-default select-none items-center gap-4 px-4 py-2 text-sm leading-6 outline-none transition-colors hover:bg-accent focus:bg-accent data-[open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',\n inset && 'pl-8',\n className\n )}\n {...props}\n >\n {children}\n <ChevronRightIcon className=\"ml-auto\" />\n </Menu.SubmenuTrigger>\n))\nDropdownMenuSubTrigger.displayName = 'DropdownMenuSubTrigger'\n\nconst DropdownMenuSubContent = React.forwardRef<\n HTMLDivElement,\n Omit<Menu.Popup.Props, 'ref'> & {\n sideOffset?: number\n }\n>(({ className, sideOffset = 4, ...props }, ref) => (\n <Menu.Positioner sideOffset={sideOffset}>\n <Menu.Popup\n ref={ref}\n className={cn(\n 'z-50 min-w-[8rem] overflow-hidden rounded bg-popover py-2 text-popover-foreground shadow-[0px_10px_20px_rgba(36,49,67,0.2)] data-[open]:animate-in data-[closed]:animate-out data-[closed]:fade-out-0 data-[open]:fade-in-0 data-[closed]:zoom-out-95 data-[open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',\n className\n )}\n {...props}\n />\n </Menu.Positioner>\n))\nDropdownMenuSubContent.displayName = 'DropdownMenuSubContent'\n\nconst DropdownMenuContent = React.forwardRef<\n HTMLDivElement,\n Omit<Menu.Popup.Props, 'ref'> & {\n portal?: boolean\n sideOffset?: number\n align?: 'start' | 'center' | 'end'\n side?: 'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start'\n }\n>(({ className, portal = true, sideOffset = 4, align, side, ...props }, ref) => {\n const positioner = (\n <Menu.Positioner sideOffset={sideOffset} align={align} side={side}>\n <Menu.Popup\n ref={ref}\n className={cn(\n 'z-50 min-w-[8rem] overflow-y-auto overflow-x-hidden rounded bg-popover py-2 text-popover-foreground shadow-[0px_10px_20px_rgba(36,49,67,0.2)] data-[open]:animate-in data-[closed]:animate-out data-[closed]:fade-out-0 data-[open]:fade-in-0 data-[closed]:zoom-out-95 data-[open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',\n className\n )}\n {...props}\n />\n </Menu.Positioner>\n )\n\n return portal ? <Menu.Portal>{positioner}</Menu.Portal> : positioner\n})\nDropdownMenuContent.displayName = 'DropdownMenuContent'\n\nconst DropdownMenuItem = React.forwardRef<\n HTMLElement,\n Omit<Menu.Item.Props, 'ref'> & {\n inset?: boolean\n }\n>(({ className, inset, ...props }, ref) => (\n <Menu.Item\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center gap-4 px-4 py-2 text-sm leading-6 outline-none transition-colors hover:bg-primary/10 focus:bg-primary/10 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',\n inset && 'pl-8',\n className\n )}\n {...props}\n />\n))\nDropdownMenuItem.displayName = 'DropdownMenuItem'\n\nconst DropdownMenuCheckboxItem = React.forwardRef<\n HTMLElement,\n Omit<Menu.CheckboxItem.Props, 'ref'>\n>(({ className, children, checked, ...props }, ref) => (\n <Menu.CheckboxItem\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center py-2 pl-10 pr-4 text-sm leading-6 outline-none transition-colors hover:bg-accent focus:bg-accent data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n className\n )}\n checked={checked}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <Menu.CheckboxItemIndicator>\n <CheckIcon className=\"h-4 w-4\" />\n </Menu.CheckboxItemIndicator>\n </span>\n {children}\n </Menu.CheckboxItem>\n))\nDropdownMenuCheckboxItem.displayName = 'DropdownMenuCheckboxItem'\n\nconst DropdownMenuRadioItem = React.forwardRef<\n HTMLElement,\n Omit<Menu.RadioItem.Props, 'ref'>\n>(({ className, children, ...props }, ref) => (\n <Menu.RadioItem\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center py-2 pl-10 pr-4 text-sm leading-6 outline-none transition-colors hover:bg-accent focus:bg-accent data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n className\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <Menu.RadioItemIndicator>\n <CircleIcon className=\"h-2 w-2 fill-current\" />\n </Menu.RadioItemIndicator>\n </span>\n {children}\n </Menu.RadioItem>\n))\nDropdownMenuRadioItem.displayName = 'DropdownMenuRadioItem'\n\n// Menu.GroupLabel requires a Menu.Group parent (Base UI constraint), but shadcn's\n// DropdownMenuLabel is used standalone. Render a plain div to match the original API.\nconst DropdownMenuLabel = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & {\n inset?: boolean\n }\n>(({ className, inset, ...props }, ref) => (\n <div\n ref={ref}\n className={cn('px-4 py-2 text-sm font-semibold leading-6', inset && 'pl-8', className)}\n {...props}\n />\n))\nDropdownMenuLabel.displayName = 'DropdownMenuLabel'\n\n// Base UI has no built-in Separator in Menu — render a plain div with role=\"separator\"\nconst DropdownMenuSeparator = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n role=\"separator\"\n className={cn('-mx-1 my-1 h-px bg-muted', className)}\n {...props}\n />\n))\nDropdownMenuSeparator.displayName = 'DropdownMenuSeparator'\n\nconst DropdownMenuShortcut = ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>) => {\n return <span className={cn('ml-auto text-xs tracking-widest opacity-60', className)} {...props} />\n}\nDropdownMenuShortcut.displayName = 'DropdownMenuShortcut'\n\nexport {\n DropdownMenu,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuGroup,\n DropdownMenuPortal,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuRadioGroup,\n}\n"],"names":["DropdownMenu","Menu.Root","DropdownMenuTrigger","Menu.Trigger","DropdownMenuGroup","Menu.Group","DropdownMenuPortal","Menu.Portal","DropdownMenuSub","Menu.SubmenuRoot","DropdownMenuRadioGroup","Menu.RadioGroup","DropdownMenuSubTrigger","React","className","inset","children","props","ref","jsxs","Menu.SubmenuTrigger","cn","jsx","ChevronRightIcon","DropdownMenuSubContent","sideOffset","Menu.Positioner","Menu.Popup","DropdownMenuContent","portal","align","side","positioner","DropdownMenuItem","Menu.Item","DropdownMenuCheckboxItem","checked","Menu.CheckboxItem","Menu.CheckboxItemIndicator","CheckIcon","DropdownMenuRadioItem","Menu.RadioItem","Menu.RadioItemIndicator","CircleIcon","DropdownMenuLabel","DropdownMenuSeparator","DropdownMenuShortcut"],"mappings":";;;;;;;;;;;;;;;;;;;AAMA,MAAMA,KAAeC,GAEfC,KAAsBC,GAEtBC,KAAoBC,GAEpBC,KAAqBC,GAKrBC,KAAkBC,GAElBC,KAAyBC,GAEzBC,IAAyBC,EAAM,WAKnC,CAAC,EAAE,WAAAC,GAAW,OAAAC,GAAO,UAAAC,GAAU,GAAGC,KAASC,MAC3C,gBAAAC;AAAA,EAACC;AAAAA,EAAA;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAN,KAAS;AAAA,MACTD;AAAA,IAAA;AAAA,IAED,GAAGG;AAAA,IAEH,UAAA;AAAA,MAAAD;AAAA,MACD,gBAAAM,EAACC,GAAA,EAAiB,WAAU,UAAA,CAAU;AAAA,IAAA;AAAA,EAAA;AACxC,CACD;AACDX,EAAuB,cAAc;AAErC,MAAMY,IAAyBX,EAAM,WAKnC,CAAC,EAAE,WAAAC,GAAW,YAAAW,IAAa,GAAG,GAAGR,EAAA,GAASC,MAC1C,gBAAAI,EAACI,GAAA,EAAgB,YAAAD,GACf,UAAA,gBAAAH;AAAA,EAACK;AAAAA,EAAA;AAAA,IACC,KAAAT;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAP;AAAA,IAAA;AAAA,IAED,GAAGG;AAAA,EAAA;AACN,GACF,CACD;AACDO,EAAuB,cAAc;AAErC,MAAMI,IAAsBf,EAAM,WAQhC,CAAC,EAAE,WAAAC,GAAW,QAAAe,IAAS,IAAM,YAAAJ,IAAa,GAAG,OAAAK,GAAO,MAAAC,GAAM,GAAGd,EAAA,GAASC,MAAQ;AAC9E,QAAMc,IACJ,gBAAAV,EAACI,GAAA,EAAgB,YAAAD,GAAwB,OAAAK,GAAc,MAAAC,GACrD,UAAA,gBAAAT;AAAA,IAACK;AAAAA,IAAA;AAAA,MACC,KA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,EAAC,QAAA,EAAK,WAAU,gEACd,UAAA,gBAAAA,EAACoB,GAAA,EACC,UAAA,gBAAApB,EAACqB,GAAA,EAAW,WAAU,uBAAA,CAAuB,EAAA,CAC/C,GACF;AAAA,MACC3B;AAAA,IAAA;AAAA,EAAA;AACH,CACD;AACDwB,EAAsB,cAAc;AAIpC,MAAMI,IAAoB/B,EAAM,WAK9B,CAAC,EAAE,WAAAC,GAAW,OAAAC,GAAO,GAAGE,KAASC,MACjC,gBAAAI;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,KAAAJ;AAAA,IACA,WAAWG,EAAG,6CAA6CN,KAAS,QAAQD,CAAS;AAAA,IACpF,GAAGG;AAAA,EAAA;AACN,CACD;AACD2B,EAAkB,cAAc;AAGhC,MAAMC,IAAwBhC,EAAM,WAGlC,CAAC,EAAE,WAAAC,GAAW,GAAGG,EAAA,GAASC,MAC1B,gBAAAI;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,KAAAJ;AAAA,IACA,MAAK;AAAA,IACL,WAAWG,EAAG,4BAA4BP,CAAS;AAAA,IAClD,GAAGG;AAAA,EAAA;AACN,CACD;AACD4B,EAAsB,cAAc;AAEpC,MAAMC,IAAuB,CAAC,EAAE,WAAAhC,GAAW,GAAGG,QACrC,gBAAAK,EAAC,UAAK,WAAWD,EAAG,8CAA8CP,CAAS,GAAI,GAAGG,GAAO;AAElG6B,EAAqB,cAAc;"}
@@ -19,7 +19,7 @@ function m({ className: t, ...e }) {
19
19
  {
20
20
  "data-slot": "empty-icon",
21
21
  className: l(
22
- "mb-4 flex h-[var(--empty-icon-size)] w-[var(--empty-icon-size)] items-center justify-center [&_svg]:h-full [&_svg]:w-full",
22
+ "mb-4 flex h-[var(--empty-icon-size,72px)] w-[var(--empty-icon-size,72px)] items-center justify-center [&_svg]:h-full [&_svg]:w-full",
23
23
  t
24
24
  ),
25
25
  ...e
@@ -1 +1 @@
1
- {"version":3,"file":"empty.js","sources":["../../../src/components/ui/empty.tsx"],"sourcesContent":["import { cn } from '@/lib/utils'\n\nfunction Empty({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"empty\"\n className={cn(\n 'flex w-full max-w-[448px] flex-col items-center justify-center text-center text-[hsl(var(--empty-foreground))]',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction EmptyIcon({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"empty-icon\"\n className={cn(\n 'mb-4 flex h-[var(--empty-icon-size)] w-[var(--empty-icon-size)] items-center justify-center [&_svg]:h-full [&_svg]:w-full',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction EmptyHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"empty-header\"\n className={cn('flex w-full flex-col items-center gap-2 text-center', className)}\n {...props}\n />\n )\n}\n\nfunction EmptyTitle({ className, ...props }: React.ComponentProps<'h3'>) {\n return (\n <h3\n data-slot=\"empty-title\"\n className={cn('text-lg font-normal leading-6', className)}\n {...props}\n />\n )\n}\n\nfunction EmptyDescription({ className, ...props }: React.ComponentProps<'p'>) {\n return (\n <p data-slot=\"empty-description\" className={cn('text-sm leading-6', className)} {...props} />\n )\n}\n\nfunction EmptyActions({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"empty-actions\"\n className={cn('mt-4 flex flex-col items-center gap-4', className)}\n {...props}\n />\n )\n}\n\nfunction EmptyLinks({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"empty-links\"\n className={cn('flex flex-col items-center gap-2', className)}\n {...props}\n />\n )\n}\n\nexport { Empty, EmptyIcon, EmptyHeader, EmptyTitle, EmptyDescription, EmptyActions, EmptyLinks }\n"],"names":["Empty","className","props","jsx","cn","EmptyIcon","EmptyHeader","EmptyTitle","EmptyDescription","EmptyActions","EmptyLinks"],"mappings":";;AAEA,SAASA,EAAM,EAAE,WAAAC,GAAW,GAAGC,KAAsC;AACnE,SACE,gBAAAC;AAAA,IAAC;AAAA,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ACV,WAAWC,EAAG,oCAAoCH,CAAS;AAAA,MAC1D,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;"}
1
+ {"version":3,"file":"empty.js","sources":["../../../src/components/ui/empty.tsx"],"sourcesContent":["import { cn } from '@/lib/utils'\n\nfunction Empty({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"empty\"\n className={cn(\n 'flex w-full max-w-[448px] flex-col items-center justify-center text-center text-[hsl(var(--empty-foreground))]',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction EmptyIcon({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"empty-icon\"\n className={cn(\n 'mb-4 flex h-[var(--empty-icon-size,72px)] w-[var(--empty-icon-size,72px)] items-center justify-center [&_svg]:h-full [&_svg]:w-full',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction EmptyHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"empty-header\"\n className={cn('flex w-full flex-col items-center gap-2 text-center', className)}\n {...props}\n />\n )\n}\n\nfunction EmptyTitle({ className, ...props }: React.ComponentProps<'h3'>) {\n return (\n <h3\n data-slot=\"empty-title\"\n className={cn('text-lg font-normal leading-6', className)}\n {...props}\n />\n )\n}\n\nfunction EmptyDescription({ className, ...props }: React.ComponentProps<'p'>) {\n return (\n <p data-slot=\"empty-description\" className={cn('text-sm leading-6', className)} {...props} />\n )\n}\n\nfunction EmptyActions({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"empty-actions\"\n className={cn('mt-4 flex flex-col items-center gap-4', className)}\n {...props}\n />\n )\n}\n\nfunction EmptyLinks({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"empty-links\"\n className={cn('flex flex-col items-center gap-2', className)}\n {...props}\n />\n )\n}\n\nexport { Empty, EmptyIcon, EmptyHeader, EmptyTitle, EmptyDescription, EmptyActions, EmptyLinks }\n"],"names":["Empty","className","props","jsx","cn","EmptyIc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AA,IAAA;AAAA,EAAA;AAGV;AAEA,SAASQ,EAAW,EAAE,WAAAT,GAAW,GAAGC,KAAsC;AACxE,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAWC,EAAG,oCAAoCH,CAAS;AAAA,MAC1D,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;"}
@@ -1,7 +1,8 @@
1
1
  import { jsxs as m, jsx as t } from "react/jsx-runtime";
2
2
  import * as n from "react";
3
- import { Filter as f } from "lucide-react";
4
- import { cn as p } from "../../lib/utils.js";
3
+ import { cn as f } from "../../lib/utils.js";
4
+ import "../icons/dynamic-icons.js";
5
+ import { FilterIcon as p } from "../icons/auto-generated.js";
5
6
  import { Button as x } from "./button.js";
6
7
  const c = n.forwardRef(
7
8
  ({ className: r, count: e, active: s = !1, variant: i = "ghost", children: l, ...a }, o) => /* @__PURE__ */ m(
@@ -9,7 +10,7 @@ const c = n.forwardRef(
9
10
  {
10
11
  ref: o,
11
12
  variant: i,
12
- className: p(
13
+ className: f(
13
14
  "gap-2 text-[hsl(var(--filter-text))] hover:text-[hsl(var(--filter-text))] hover:bg-transparent",
14
15
  s && "font-semibold",
15
16
  r
@@ -17,7 +18,7 @@ const c = n.forwardRef(
17
18
  ...a,
18
19
  children: [
19
20
  e !== void 0 && e > 0 && /* @__PURE__ */ t("span", { className: "flex items-center justify-center px-1 min-w-[16px] h-4 text-[11px] font-bold leading-4 tracking-wider uppercase bg-[hsl(var(--filter-counter-bg))] text-[hsl(var(--filter-counter-text))] rounded-sm", children: e }),
20
- !e && /* @__PURE__ */ t(f, { className: "h-4 w-4 text-[hsl(var(--filter-icon))]" }),
21
+ !e && /* @__PURE__ */ t(p, { className: "h-4 w-4 text-[hsl(var(--filter-icon))]" }),
21
22
  /* @__PURE__ */ t("span", { className: "text-sm font-semibold leading-6", children: l || "Filter" })
22
23
  ]
23
24
  }
@@ -1 +1 @@
1
- {"version":3,"file":"filter.js","sources":["../../../src/components/ui/filter.tsx"],"sourcesContent":["import * as React from 'react'\nimport { Filter as FilterIcon } from 'lucide-react'\nimport { cn } from '@/lib/utils'\nimport { Button } from '@/components/ui/button'\n\nexport interface FilterProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n count?: number\n active?: boolean\n variant?: 'default' | 'outline' | 'ghost'\n}\n\nconst Filter = React.forwardRef<HTMLButtonElement, FilterProps>(\n ({ className, count, active = false, variant = 'ghost', children, ...props }, ref) => {\n return (\n <Button\n ref={ref}\n variant={variant}\n className={cn(\n 'gap-2 text-[hsl(var(--filter-text))] hover:text-[hsl(var(--filter-text))] hover:bg-transparent',\n active && 'font-semibold',\n className\n )}\n {...props}\n >\n {count !== undefined && count > 0 && (\n <span className=\"flex items-center justify-center px-1 min-w-[16px] h-4 text-[11px] font-bold leading-4 tracking-wider uppercase bg-[hsl(var(--filter-counter-bg))] text-[hsl(var(--filter-counter-text))] rounded-sm\">\n {count}\n </span>\n )}\n {!count && <FilterIcon className=\"h-4 w-4 text-[hsl(var(--filter-icon))]\" />}\n <span className=\"text-sm font-semibold leading-6\">{children || 'Filter'}</span>\n </Button>\n )\n }\n)\nFilter.displayName = 'Filter'\n\nexport { Filter }\n"],"names":["Filter","React","className","count","active","variant","children","props","ref","jsxs","Button","cn","jsx","FilterIcon"],"mappings":";;;;;AAWA,MAAMA,IAASC,EAAM;AAAA,EACnB,CAAC,EAAE,WAAAC,GAAW,OAAAC,GAAO,QAAAC,IAAS,IAAO,SAAAC,IAAU,SAAS,UAAAC,GAAU,GAAGC,EAAA,GAASC,MAE1E,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,KAAAF;AAAA,MACA,SAAAH;AAAA,MACA,WAAWM;AAAA,QACT;AAAA,QACAP,KAAU;AAAA,QACVF;AAAA,MAAA;AAAA,MAED,GAAGK;AAAA,MAEH,UAAA;AAAA,QAAAJ,MAAU,UAAaA,IAAQ,uBAC7B,QAAA,EAAK,WAAU,wMACb,UAAAA,EAAA,CACH;AAAA,QAED,CAACA,KAAS,gBAAAS,EAACC,GAAA,EAAW,WAAU,yCAAA,CAAyC;AAAA,QAC1E,gBAAAD,EAAC,QAAA,EAAK,WAAU,mCAAmC,eAAY,SAAA,CAAS;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIhF;AACAZ,EAAO,cAAc;"}
1
+ {"version":3,"file":"filter.js","sources":["../../../src/components/ui/filter.tsx"],"sourcesContent":["import * as React from 'react'\nimport { FilterIcon } from '@/components/icons'\nimport { cn } from '@/lib/utils'\nimport { Button } from '@/components/ui/button'\n\nexport interface FilterProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n count?: number\n active?: boolean\n variant?: 'default' | 'outline' | 'ghost'\n}\n\nconst Filter = React.forwardRef<HTMLButtonElement, FilterProps>(\n ({ className, count, active = false, variant = 'ghost', children, ...props }, ref) => {\n return (\n <Button\n ref={ref}\n variant={variant}\n className={cn(\n 'gap-2 text-[hsl(var(--filter-text))] hover:text-[hsl(var(--filter-text))] hover:bg-transparent',\n active && 'font-semibold',\n className\n )}\n {...props}\n >\n {count !== undefined && count > 0 && (\n <span className=\"flex items-center justify-center px-1 min-w-[16px] h-4 text-[11px] font-bold leading-4 tracking-wider uppercase bg-[hsl(var(--filter-counter-bg))] text-[hsl(var(--filter-counter-text))] rounded-sm\">\n {count}\n </span>\n )}\n {!count && <FilterIcon className=\"h-4 w-4 text-[hsl(var(--filter-icon))]\" />}\n <span className=\"text-sm font-semibold leading-6\">{children || 'Filter'}</span>\n </Button>\n )\n }\n)\nFilter.displayName = 'Filter'\n\nexport { Filter }\n"],"names":["Filter","React","className","count","active","variant","children","props","ref","jsxs","Button","cn","jsx","FilterIcon"],"mappings":";;;;;;AAWA,MAAMA,IAASC,EAAM;AAAA,EACnB,CAAC,EAAE,WAAAC,GAAW,OAAAC,GAAO,QAAAC,IAAS,IAAO,SAAAC,IAAU,SAAS,UAAAC,GAAU,GAAGC,EAAA,GAASC,MAE1E,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,KAAAF;AAAA,MACA,SAAAH;AAAA,MACA,WAAWM;AAAA,QACT;AAAA,QACAP,KAAU;AAAA,QACVF;AAAA,MAAA;AAAA,MAED,GAAGK;AAAA,MAEH,UAAA;AAAA,QAAAJ,MAAU,UAAaA,IAAQ,uBAC7B,QAAA,EAAK,WAAU,wMACb,UAAAA,EAAA,CACH;AAAA,QAED,CAACA,KAAS,gBAAAS,EAACC,GAAA,EAAW,WAAU,yCAAA,CAAyC;AAAA,QAC1E,gBAAAD,EAAC,QAAA,EAAK,WAAU,mCAAmC,eAAY,SAAA,CAAS;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIhF;AACAZ,EAAO,cAAc;"}
@@ -2,8 +2,9 @@ import { jsxs as s, jsx as i } from "react/jsx-runtime";
2
2
  import * as r from "react";
3
3
  import * as t from "@radix-ui/react-navigation-menu";
4
4
  import { cva as l } from "../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js";
5
- import { ChevronDown as c } from "lucide-react";
6
5
  import { cn as n } from "../../lib/utils.js";
6
+ import "../icons/dynamic-icons.js";
7
+ import { ChevronDownIcon as c } from "../icons/auto-generated.js";
7
8
  const f = r.forwardRef(({ className: e, children: a, ...o }, d) => /* @__PURE__ */ s(
8
9
  t.Root,
9
10
  {
@@ -17,7 +18,7 @@ const f = r.forwardRef(({ className: e, children: a, ...o }, d) => /* @__PURE__
17
18
  }
18
19
  ));
19
20
  f.displayName = t.Root.displayName;
20
- const u = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ i(
21
+ const p = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ i(
21
22
  t.List,
22
23
  {
23
24
  ref: o,
@@ -25,14 +26,14 @@ const u = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ i(
25
26
  ...a
26
27
  }
27
28
  ));
28
- u.displayName = t.List.displayName;
29
- const b = t.Item, p = l(
29
+ p.displayName = t.List.displayName;
30
+ const M = t.Item, u = l(
30
31
  "group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent"
31
32
  ), g = r.forwardRef(({ className: e, children: a, ...o }, d) => /* @__PURE__ */ s(
32
33
  t.Trigger,
33
34
  {
34
35
  ref: d,
35
- className: n(p(), "group", e),
36
+ className: n(u(), "group", e),
36
37
  ...o,
37
38
  children: [
38
39
  a,
@@ -60,7 +61,7 @@ const v = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ i(
60
61
  }
61
62
  ));
62
63
  v.displayName = t.Content.displayName;
63
- const M = t.Link, m = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ i("div", { className: n("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ i(
64
+ const R = t.Link, m = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ i("div", { className: n("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ i(
64
65
  t.Viewport,
65
66
  {
66
67
  className: n(
@@ -89,11 +90,11 @@ export {
89
90
  f as NavigationMenu,
90
91
  v as NavigationMenuContent,
91
92
  N as NavigationMenuIndicator,
92
- b as NavigationMenuItem,
93
- M as NavigationMenuLink,
94
- u as NavigationMenuList,
93
+ M as NavigationMenuItem,
94
+ R as NavigationMenuLink,
95
+ p as NavigationMenuList,
95
96
  g as NavigationMenuTrigger,
96
97
  m as NavigationMenuViewport,
97
- p as navigationMenuTriggerStyle
98
+ u as navigationMenuTriggerStyle
98
99
  };
99
100
  //# sourceMappingURL=navigation-menu.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"navigation-menu.js","sources":["../../../src/components/ui/navigation-menu.tsx"],"sourcesContent":["import * as React from 'react'\nimport * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu'\nimport { cva } from 'class-variance-authority'\nimport { ChevronDown } from 'lucide-react'\n\nimport { cn } from '@/lib/utils'\n\nconst NavigationMenu = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Root>\n>(({ className, children, ...props }, ref) => (\n <NavigationMenuPrimitive.Root\n ref={ref}\n className={cn('relative z-10 flex max-w-max flex-1 items-center justify-center', className)}\n {...props}\n >\n {children}\n <NavigationMenuViewport />\n </NavigationMenuPrimitive.Root>\n))\nNavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName\n\nconst NavigationMenuList = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.List>\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.List\n ref={ref}\n className={cn('group flex flex-1 list-none items-center justify-center space-x-1', className)}\n {...props}\n />\n))\nNavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName\n\nconst NavigationMenuItem = NavigationMenuPrimitive.Item\n\nconst navigationMenuTriggerStyle = cva(\n 'group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent'\n)\n\nconst NavigationMenuTrigger = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n <NavigationMenuPrimitive.Trigger\n ref={ref}\n className={cn(navigationMenuTriggerStyle(), 'group', className)}\n {...props}\n >\n {children}{' '}\n <ChevronDown\n className=\"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180\"\n aria-hidden=\"true\"\n />\n </NavigationMenuPrimitive.Trigger>\n))\nNavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName\n\nconst NavigationMenuContent = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.Content\n ref={ref}\n className={cn(\n 'left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ',\n className\n )}\n {...props}\n />\n))\nNavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName\n\nconst NavigationMenuLink = NavigationMenuPrimitive.Link\n\nconst NavigationMenuViewport = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Viewport>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Viewport>\n>(({ className, ...props }, ref) => (\n <div className={cn('absolute left-0 top-full flex justify-center')}>\n <NavigationMenuPrimitive.Viewport\n className={cn(\n 'origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]',\n className\n )}\n ref={ref}\n {...props}\n />\n </div>\n))\nNavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName\n\nconst NavigationMenuIndicator = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Indicator>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Indicator>\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.Indicator\n ref={ref}\n className={cn(\n 'top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in',\n className\n )}\n {...props}\n >\n <div className=\"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md\" />\n </NavigationMenuPrimitive.Indicator>\n))\nNavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName\n\nexport {\n navigationMenuTriggerStyle,\n NavigationMenu,\n NavigationMenuList,\n NavigationMenuItem,\n NavigationMenuContent,\n NavigationMenuTrigger,\n NavigationMenuLink,\n NavigationMenuIndicator,\n NavigationMenuViewport,\n}\n"],"names":["NavigationMenu","React","className","children","props","ref","jsxs","NavigationMenuPrimitive","cn","NavigationMenuViewport","NavigationMenuList","jsx","NavigationMenuItem","navigationMenuTriggerStyle","cva","NavigationMenuTrigger","ChevronDown","NavigationMenuContent","NavigationMenuLink","NavigationMenuIndicator"],"mappings":";;;;;;AAOA,MAAMA,IAAiBC,EAAM,WAG3B,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,GAAGC,KAASC,MACpC,gBAAAC;AAAA,EAACC,EAAwB;AAAA,EAAxB;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG,EAAG,mEAAmEN,CAAS;AAAA,IACzF,GAAGE;AAAA,IAEH,UAAA;AAAA,MAAAD;AAAA,wBACAM,GAAA,CAAA,CAAuB;AAAA,IAAA;AAAA,EAAA;AAC1B,CACD;AACDT,EAAe,cAAcO,EAAwB,KAAK;AAE1D,MAAMG,IAAqBT,EAAM,WAG/B,CAAC,EAAE,WAAAC,GAAW,GAAGE,EAAA,GAASC,MAC1B,gBAAAM;AAAA,EAACJ,EAAwB;AAAA,EAAxB;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG,EAAG,qEAAqEN,CAAS;AAAA,IAC3F,GAAGE;AAAA,EAAA;AACN,CACD;AACDM,EAAmB,cAAcH,EAA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AAA,EAACJ,EAAwB;AAAA,EAAxB;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAN;AAAA,IAAA;AAAA,IAED,GAAGE;AAAA,IAEJ,UAAA,gBAAAO,EAAC,OAAA,EAAI,WAAU,yEAAA,CAAyE;AAAA,EAAA;AAC1F,CACD;AACDQ,EAAwB,cAAcZ,EAAwB,UAAU;"}
1
+ {"version":3,"file":"navigation-menu.js","sources":["../../../src/components/ui/navigation-menu.tsx"],"sourcesContent":["import * as React from 'react'\nimport * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu'\nimport { cva } from 'class-variance-authority'\nimport { ChevronDownIcon } from '@/components/icons'\n\nimport { cn } from '@/lib/utils'\n\nconst NavigationMenu = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Root>\n>(({ className, children, ...props }, ref) => (\n <NavigationMenuPrimitive.Root\n ref={ref}\n className={cn('relative z-10 flex max-w-max flex-1 items-center justify-center', className)}\n {...props}\n >\n {children}\n <NavigationMenuViewport />\n </NavigationMenuPrimitive.Root>\n))\nNavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName\n\nconst NavigationMenuList = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.List>\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.List\n ref={ref}\n className={cn('group flex flex-1 list-none items-center justify-center space-x-1', className)}\n {...props}\n />\n))\nNavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName\n\nconst NavigationMenuItem = NavigationMenuPrimitive.Item\n\nconst navigationMenuTriggerStyle = cva(\n 'group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent'\n)\n\nconst NavigationMenuTrigger = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n <NavigationMenuPrimitive.Trigger\n ref={ref}\n className={cn(navigationMenuTriggerStyle(), 'group', className)}\n {...props}\n >\n {children}{' '}\n <ChevronDownIcon\n className=\"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180\"\n aria-hidden=\"true\"\n />\n </NavigationMenuPrimitive.Trigger>\n))\nNavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName\n\nconst NavigationMenuContent = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.Content\n ref={ref}\n className={cn(\n 'left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ',\n className\n )}\n {...props}\n />\n))\nNavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName\n\nconst NavigationMenuLink = NavigationMenuPrimitive.Link\n\nconst NavigationMenuViewport = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Viewport>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Viewport>\n>(({ className, ...props }, ref) => (\n <div className={cn('absolute left-0 top-full flex justify-center')}>\n <NavigationMenuPrimitive.Viewport\n className={cn(\n 'origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]',\n className\n )}\n ref={ref}\n {...props}\n />\n </div>\n))\nNavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName\n\nconst NavigationMenuIndicator = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Indicator>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Indicator>\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.Indicator\n ref={ref}\n className={cn(\n 'top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in',\n className\n )}\n {...props}\n >\n <div className=\"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md\" />\n </NavigationMenuPrimitive.Indicator>\n))\nNavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName\n\nexport {\n navigationMenuTriggerStyle,\n NavigationMenu,\n NavigationMenuList,\n NavigationMenuItem,\n NavigationMenuContent,\n NavigationMenuTrigger,\n NavigationMenuLink,\n NavigationMenuIndicator,\n NavigationMenuViewport,\n}\n"],"names":["NavigationMenu","React","className","children","props","ref","jsxs","NavigationMenuPrimitive","cn","NavigationMenuViewport","NavigationMenuList","jsx","NavigationMenuItem","navigationMenuTriggerStyle","cva","NavigationMenuTrigger","ChevronDownIcon","NavigationMenuContent","NavigationMenuLink","NavigationMenuIndicator"],"mappings":";;;;;;;AAOA,MAAMA,IAAiBC,EAAM,WAG3B,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,GAAGC,KAASC,MACpC,gBAAAC;AAAA,EAACC,EAAwB;AAAA,EAAxB;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG,EAAG,mEAAmEN,CAAS;AAAA,IACzF,GAAGE;AAAA,IAEH,UAAA;AAAA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ASC,MAC1B,gBAAAM,EAAC,OAAA,EAAI,WAAWH,EAAG,8CAA8C,GAC/D,UAAA,gBAAAG;AAAA,EAACJ,EAAwB;AAAA,EAAxB;AAAA,IACC,WAAWC;AAAA,MACT;AAAA,MACAN;AAAA,IAAA;AAAA,IAEF,KAAAG;AAAA,IACC,GAAGD;AAAA,EAAA;AACN,GACF,CACD;AACDK,EAAuB,cAAcF,EAAwB,SAAS;AAEtE,MAAMY,IAA0BlB,EAAM,WAGpC,CAAC,EAAE,WAAAC,GAAW,GAAGE,EAAA,GAASC,MAC1B,gBAAAM;AAAA,EAACJ,EAAwB;AAAA,EAAxB;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAN;AAAA,IAAA;AAAA,IAED,GAAGE;AAAA,IAEJ,UAAA,gBAAAO,EAAC,OAAA,EAAI,WAAU,yEAAA,CAAyE;AAAA,EAAA;AAC1F,CACD;AACDQ,EAAwB,cAAcZ,EAAwB,UAAU;"}
@@ -1,7 +1,8 @@
1
1
  import { jsx as i, jsxs as l } from "react/jsx-runtime";
2
- import * as r from "react";
3
- import { MoreHorizontal as m, ChevronRight as p, ChevronLeft as c } from "lucide-react";
2
+ import * as s from "react";
4
3
  import { cn as n } from "../../lib/utils.js";
4
+ import "../icons/dynamic-icons.js";
5
+ import { EllipsisHIcon as m, ChevronRightIcon as p, ChevronLeftIcon as c } from "../icons/auto-generated.js";
5
6
  import { buttonVariants as g } from "./button.js";
6
7
  const f = ({ className: e, ...a }) => /* @__PURE__ */ i(
7
8
  "nav",
@@ -13,37 +14,37 @@ const f = ({ className: e, ...a }) => /* @__PURE__ */ i(
13
14
  }
14
15
  );
15
16
  f.displayName = "Pagination";
16
- const d = r.forwardRef(
17
- ({ className: e, ...a }, t) => /* @__PURE__ */ i("ul", { ref: t, className: n("flex flex-row items-center gap-1", e), ...a })
17
+ const d = s.forwardRef(
18
+ ({ className: e, ...a }, o) => /* @__PURE__ */ i("ul", { ref: o, className: n("flex flex-row items-center gap-1", e), ...a })
18
19
  );
19
20
  d.displayName = "PaginationContent";
20
- const N = r.forwardRef(
21
- ({ className: e, ...a }, t) => /* @__PURE__ */ i("li", { ref: t, className: n("", e), ...a })
21
+ const N = s.forwardRef(
22
+ ({ className: e, ...a }, o) => /* @__PURE__ */ i("li", { ref: o, className: n("", e), ...a })
22
23
  );
23
24
  N.displayName = "PaginationItem";
24
- const o = ({ className: e, isActive: a, size: t = "icon", ...s }) => /* @__PURE__ */ i(
25
+ const t = ({ className: e, isActive: a, size: o = "icon", ...r }) => /* @__PURE__ */ i(
25
26
  "a",
26
27
  {
27
28
  "aria-current": a ? "page" : void 0,
28
29
  className: n(
29
30
  g({
30
31
  variant: a ? "default" : "ghost",
31
- size: t
32
+ size: o
32
33
  }),
33
34
  "h-8 w-8 p-0 font-semibold",
34
35
  a && "bg-primary/20 text-foreground hover:bg-primary/20",
35
36
  !a && "text-primary hover:bg-accent hover:text-primary",
36
37
  e
37
38
  ),
38
- ...s
39
+ ...r
39
40
  }
40
41
  );
41
- o.displayName = "PaginationLink";
42
+ t.displayName = "PaginationLink";
42
43
  const h = ({
43
44
  className: e,
44
45
  ...a
45
46
  }) => /* @__PURE__ */ i(
46
- o,
47
+ t,
47
48
  {
48
49
  "aria-label": "Go to previous page",
49
50
  size: "default",
@@ -54,7 +55,7 @@ const h = ({
54
55
  );
55
56
  h.displayName = "PaginationPrevious";
56
57
  const u = ({ className: e, ...a }) => /* @__PURE__ */ i(
57
- o,
58
+ t,
58
59
  {
59
60
  "aria-label": "Go to next page",
60
61
  size: "default",
@@ -82,7 +83,7 @@ export {
82
83
  d as PaginationContent,
83
84
  P as PaginationEllipsis,
84
85
  N as PaginationItem,
85
- o as PaginationLink,
86
+ t as PaginationLink,
86
87
  u as PaginationNext,
87
88
  h as PaginationPrevious
88
89
  };
@@ -1 +1 @@
1
- {"version":3,"file":"pagination.js","sources":["../../../src/components/ui/pagination.tsx"],"sourcesContent":["import * as React from 'react'\nimport { ChevronLeft, ChevronRight, MoreHorizontal } from 'lucide-react'\nimport { cn } from '@/lib/utils'\nimport { ButtonProps, buttonVariants } from '@/components/ui/button'\n\nconst Pagination = ({ className, ...props }: React.ComponentProps<'nav'>) => (\n <nav\n role=\"navigation\"\n aria-label=\"pagination\"\n className={cn('mx-auto flex w-full justify-center', className)}\n {...props}\n />\n)\nPagination.displayName = 'Pagination'\n\nconst PaginationContent = React.forwardRef<HTMLUListElement, React.ComponentProps<'ul'>>(\n ({ className, ...props }, ref) => (\n <ul ref={ref} className={cn('flex flex-row items-center gap-1', className)} {...props} />\n )\n)\nPaginationContent.displayName = 'PaginationContent'\n\nconst PaginationItem = React.forwardRef<HTMLLIElement, React.ComponentProps<'li'>>(\n ({ className, ...props }, ref) => <li ref={ref} className={cn('', className)} {...props} />\n)\nPaginationItem.displayName = 'PaginationItem'\n\ntype PaginationLinkProps = {\n isActive?: boolean\n} & Pick<ButtonProps, 'size'> &\n React.ComponentProps<'a'>\n\nconst PaginationLink = ({ className, isActive, size = 'icon', ...props }: PaginationLinkProps) => (\n <a\n aria-current={isActive ? 'page' : undefined}\n className={cn(\n buttonVariants({\n variant: isActive ? 'default' : 'ghost',\n size,\n }),\n 'h-8 w-8 p-0 font-semibold',\n isActive && 'bg-primary/20 text-foreground hover:bg-primary/20',\n !isActive && 'text-primary hover:bg-accent hover:text-primary',\n className\n )}\n {...props}\n />\n)\nPaginationLink.displayName = 'PaginationLink'\n\nconst PaginationPrevious = ({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink>) => (\n <PaginationLink\n aria-label=\"Go to previous page\"\n size=\"default\"\n className={cn('h-8 w-8 p-0', className)}\n {...props}\n >\n <ChevronLeft className=\"h-4 w-4\" />\n </PaginationLink>\n)\nPaginationPrevious.displayName = 'PaginationPrevious'\n\nconst PaginationNext = ({ className, ...props }: React.ComponentProps<typeof PaginationLink>) => (\n <PaginationLink\n aria-label=\"Go to next page\"\n size=\"default\"\n className={cn('h-8 w-8 p-0', className)}\n {...props}\n >\n <ChevronRight className=\"h-4 w-4\" />\n </PaginationLink>\n)\nPaginationNext.displayName = 'PaginationNext'\n\nconst PaginationEllipsis = ({ className, ...props }: React.ComponentProps<'span'>) => (\n <span\n aria-hidden\n className={cn('flex h-8 w-8 items-center justify-center font-semibold text-foreground/70', className)}\n {...props}\n >\n <MoreHorizontal className=\"h-4 w-4\" />\n <span className=\"sr-only\">More pages</span>\n </span>\n)\nPaginationEllipsis.displayName = 'PaginationEllipsis'\n\nexport {\n Pagination,\n PaginationContent,\n PaginationEllipsis,\n PaginationItem,\n PaginationLink,\n PaginationNext,\n PaginationPrevious,\n}\n"],"names":["Pagination","className","props","jsx","cn","PaginationContent","React","ref","PaginationItem","PaginationLink","isActive","size","buttonVariants","PaginationPrevious","ChevronLeft","PaginationNext","ChevronRight","PaginationEllipsis","jsxs","MoreHorizontal"],"mappings":";;;;;AAKA,MAAMA,IAAa,CAAC,EAAE,WAAAC,GAAW,GAAGC,QAClC,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,MAAK;AAAA,IACL,cAAW;AAAA,IACX,WAAWC,EAAG,sCAAsCH,CAAS;AAAA,IAC5D,GAAGC;AAAA,EAAA;AACN;AAEFF,EAAW,cAAc;AAEzB,MAAMK,IAAoBC,EAAM;AAAA,EAC9B,CAAC,EAAE,WAAAL,GAAW,GAAGC,EAAA,GAASK,MACxB,gBAAAJ,EAAC,MAAA,EAAG,KAAAI,GAAU,WAAWH,EAAG,oCAAoCH,CAAS,GAAI,GAAGC,EAAA,CAAO;AAE3F;AACAG,EAAkB,cAAc;AAEhC,MAAMG,IAAiBF,EAAM;AAAA,EAC3B,CAAC,EAAE,WAAAL,GAAW,GAAGC,EAAA,GAASK,MAAQ,gBAAAJ,EAAC,MAAA,EAAG,KAAAI,GAAU,WAAWH,EAAG,IAAIH,CAAS,GAAI,GAAGC,EAAA,CAAO;AAC3F;AACAM,EAAe,cAAc;AAO7B,MAAMC,IAAiB,CAAC,EAAE,WAAAR,G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AU,WAAU,UAAA,aAAA,CAAU;AAAA,IAAA;AAAA,EAAA;AACtC;AAEFc,EAAmB,cAAc;"}
1
+ {"version":3,"file":"pagination.js","sources":["../../../src/components/ui/pagination.tsx"],"sourcesContent":["import * as React from 'react'\nimport { ChevronLeftIcon, ChevronRightIcon, EllipsisHIcon } from '@/components/icons'\nimport { cn } from '@/lib/utils'\nimport { ButtonProps, buttonVariants } from '@/components/ui/button'\n\nconst Pagination = ({ className, ...props }: React.ComponentProps<'nav'>) => (\n <nav\n role=\"navigation\"\n aria-label=\"pagination\"\n className={cn('mx-auto flex w-full justify-center', className)}\n {...props}\n />\n)\nPagination.displayName = 'Pagination'\n\nconst PaginationContent = React.forwardRef<HTMLUListElement, React.ComponentProps<'ul'>>(\n ({ className, ...props }, ref) => (\n <ul ref={ref} className={cn('flex flex-row items-center gap-1', className)} {...props} />\n )\n)\nPaginationContent.displayName = 'PaginationContent'\n\nconst PaginationItem = React.forwardRef<HTMLLIElement, React.ComponentProps<'li'>>(\n ({ className, ...props }, ref) => <li ref={ref} className={cn('', className)} {...props} />\n)\nPaginationItem.displayName = 'PaginationItem'\n\ntype PaginationLinkProps = {\n isActive?: boolean\n} & Pick<ButtonProps, 'size'> &\n React.ComponentProps<'a'>\n\nconst PaginationLink = ({ className, isActive, size = 'icon', ...props }: PaginationLinkProps) => (\n <a\n aria-current={isActive ? 'page' : undefined}\n className={cn(\n buttonVariants({\n variant: isActive ? 'default' : 'ghost',\n size,\n }),\n 'h-8 w-8 p-0 font-semibold',\n isActive && 'bg-primary/20 text-foreground hover:bg-primary/20',\n !isActive && 'text-primary hover:bg-accent hover:text-primary',\n className\n )}\n {...props}\n />\n)\nPaginationLink.displayName = 'PaginationLink'\n\nconst PaginationPrevious = ({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink>) => (\n <PaginationLink\n aria-label=\"Go to previous page\"\n size=\"default\"\n className={cn('h-8 w-8 p-0', className)}\n {...props}\n >\n <ChevronLeftIcon className=\"h-4 w-4\" />\n </PaginationLink>\n)\nPaginationPrevious.displayName = 'PaginationPrevious'\n\nconst PaginationNext = ({ className, ...props }: React.ComponentProps<typeof PaginationLink>) => (\n <PaginationLink\n aria-label=\"Go to next page\"\n size=\"default\"\n className={cn('h-8 w-8 p-0', className)}\n {...props}\n >\n <ChevronRightIcon className=\"h-4 w-4\" />\n </PaginationLink>\n)\nPaginationNext.displayName = 'PaginationNext'\n\nconst PaginationEllipsis = ({ className, ...props }: React.ComponentProps<'span'>) => (\n <span\n aria-hidden\n className={cn('flex h-8 w-8 items-center justify-center font-semibold text-foreground/70', className)}\n {...props}\n >\n <EllipsisHIcon className=\"h-4 w-4\" />\n <span className=\"sr-only\">More pages</span>\n </span>\n)\nPaginationEllipsis.displayName = 'PaginationEllipsis'\n\nexport {\n Pagination,\n PaginationContent,\n PaginationEllipsis,\n PaginationItem,\n PaginationLink,\n PaginationNext,\n PaginationPrevious,\n}\n"],"names":["Pagination","className","props","jsx","cn","PaginationContent","React","ref","PaginationItem","PaginationLink","isActive","size","buttonVariants","PaginationPrevious","ChevronLeftIcon","PaginationNext","ChevronRightIcon","PaginationEllipsis","jsxs","EllipsisHIcon"],"mappings":";;;;;;AAKA,MAAMA,IAAa,CAAC,EAAE,WAAAC,GAAW,GAAGC,QAClC,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,MAAK;AAAA,IACL,cAAW;AAAA,IACX,WAAWC,EAAG,sCAAsCH,CAAS;AAAA,IAC5D,GAAGC;AAAA,EAAA;AACN;AAEFF,EAAW,cAAc;AAEzB,MAAMK,IAAoBC,EAAM;AAAA,EAC9B,CAAC,EAAE,WAAAL,GAAW,GAAGC,EAAA,GAASK,MACxB,gBAAAJ,EAAC,MAAA,EAAG,KAAAI,GAAU,WAAWH,EAAG,oCAAoCH,CAAS,GAAI,GAAGC,EAAA,CAAO;AAE3F;AACAG,EAAkB,cAAc;AAEhC,MAAMG,IAAiBF,EAAM;AAAA,EAC3B,CAAC,EAAE,WAAAL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;AAAA,IACC,eAAW;AAAA,IACX,WAAWd,EAAG,6EAA6EH,CAAS;AAAA,IACnG,GAAGC;AAAA,IAEJ,UAAA;AAAA,MAAA,gBAAAC,EAACgB,GAAA,EAAc,WAAU,UAAA,CAAU;AAAA,MACnC,gBAAAhB,EAAC,QAAA,EAAK,WAAU,WAAU,UAAA,aAAA,CAAU;AAAA,IAAA;AAAA,EAAA;AACtC;AAEFc,EAAmB,cAAc;"}
@@ -1,14 +1,15 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import * as t from "react";
3
- import { Circle as s } from "lucide-react";
4
3
  import { cn as a } from "../../lib/utils.js";
4
+ import "../icons/dynamic-icons.js";
5
+ import { CircleIcon as s } from "../icons/auto-generated.js";
5
6
  import { RadioGroup as c } from "../../node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/radio-group/RadioGroup.js";
6
- import { RadioRoot as d } from "../../node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/radio/root/RadioRoot.js";
7
- import { RadioIndicator as m } from "../../node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/radio/indicator/RadioIndicator.js";
8
- const f = t.forwardRef(({ className: o, ...e }, i) => /* @__PURE__ */ r(c, { className: a("grid gap-2", o), ...e, ref: i }));
9
- f.displayName = "RadioGroup";
10
- const n = t.forwardRef(({ className: o, ...e }, i) => /* @__PURE__ */ r(
11
- d,
7
+ import { RadioRoot as m } from "../../node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/radio/root/RadioRoot.js";
8
+ import { RadioIndicator as d } from "../../node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/radio/indicator/RadioIndicator.js";
9
+ const n = t.forwardRef(({ className: o, ...e }, i) => /* @__PURE__ */ r(c, { className: a("grid gap-2", o), ...e, ref: i }));
10
+ n.displayName = "RadioGroup";
11
+ const f = t.forwardRef(({ className: o, ...e }, i) => /* @__PURE__ */ r(
12
+ m,
12
13
  {
13
14
  ref: i,
14
15
  className: a(
@@ -16,12 +17,12 @@ const n = t.forwardRef(({ className: o, ...e }, i) => /* @__PURE__ */ r(
16
17
  o
17
18
  ),
18
19
  ...e,
19
- children: /* @__PURE__ */ r(m, { className: "flex items-center justify-center", children: /* @__PURE__ */ r(s, { className: "h-2.5 w-2.5 fill-current text-current" }) })
20
+ children: /* @__PURE__ */ r(d, { className: "flex items-center justify-center", children: /* @__PURE__ */ r(s, { className: "h-2.5 w-2.5 fill-current text-current" }) })
20
21
  }
21
22
  ));
22
- n.displayName = "RadioGroupItem";
23
+ f.displayName = "RadioGroupItem";
23
24
  export {
24
- f as RadioGroup,
25
- n as RadioGroupItem
25
+ n as RadioGroup,
26
+ f as RadioGroupItem
26
27
  };
27
28
  //# sourceMappingURL=radio-group.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"radio-group.js","sources":["../../../src/components/ui/radio-group.tsx"],"sourcesContent":["import * as React from 'react'\nimport { RadioGroup as RadioGroupPrimitive } from '@base-ui/react/radio-group'\nimport { Radio } from '@base-ui/react/radio'\nimport { Circle } from 'lucide-react'\n\nimport { cn } from '@/lib/utils'\n\nconst RadioGroup = React.forwardRef<\n React.ComponentRef<typeof RadioGroupPrimitive>,\n React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive>\n>(({ className, ...props }, ref) => {\n return <RadioGroupPrimitive className={cn('grid gap-2', className)} {...props} ref={ref} />\n})\nRadioGroup.displayName = 'RadioGroup'\n\nconst RadioGroupItem = React.forwardRef<\n React.ComponentRef<typeof Radio.Root>,\n React.ComponentPropsWithoutRef<typeof Radio.Root>\n>(({ className, ...props }, ref) => {\n return (\n <Radio.Root\n ref={ref}\n className={cn(\n 'aspect-square h-4 w-4 flex items-center justify-center rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',\n className\n )}\n {...props}\n >\n <Radio.Indicator className=\"flex items-center justify-center\">\n <Circle className=\"h-2.5 w-2.5 fill-current text-current\" />\n </Radio.Indicator>\n </Radio.Root>\n )\n})\nRadioGroupItem.displayName = 'RadioGroupItem'\n\nexport { RadioGroup, RadioGroupItem }"],"names":["RadioGroup","React","className","props","ref","jsx","RadioGroupPrimitive","cn","RadioGroupItem","Radio.Root","Radio.Indicator","Circle"],"mappings":";;;;;;;AAOA,MAAMA,IAAaC,EAAM,WAGvB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MACnB,gBAAAC,EAACC,KAAoB,WAAWC,EAAG,cAAcL,CAAS,GAAI,GAAGC,GAAO,KAAAC,GAAU,CAC1F;AACDJ,EAAW,cAAc;AAEzB,MAAMQ,IAAiBP,EAAM,WAG3B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAExB,gBAAAC;AAAA,EAACI;AAAAA,EAAA;AAAA,IACC,KAAAL;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAL;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,IAEJ,UAAA,gBAAAE,EAACK,GAAA,EAAgB,WAAU,oCACzB,UAAA,gBAAAL,EAACM,GAAA,EAAO,WAAU,wCAAA,CAAwC,EAAA,CAC5D;AAAA,EAAA;AAAA,CAGL;AACDH,EAAe,cAAc;"}
1
+ {"version":3,"file":"radio-group.js","sources":["../../../src/components/ui/radio-group.tsx"],"sourcesContent":["import * as React from 'react'\nimport { RadioGroup as RadioGroupPrimitive } from '@base-ui/react/radio-group'\nimport { Radio } from '@base-ui/react/radio'\nimport { CircleIcon } from '@/components/icons'\n\nimport { cn } from '@/lib/utils'\n\nconst RadioGroup = React.forwardRef<\n React.ComponentRef<typeof RadioGroupPrimitive>,\n React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive>\n>(({ className, ...props }, ref) => {\n return <RadioGroupPrimitive className={cn('grid gap-2', className)} {...props} ref={ref} />\n})\nRadioGroup.displayName = 'RadioGroup'\n\nconst RadioGroupItem = React.forwardRef<\n React.ComponentRef<typeof Radio.Root>,\n React.ComponentPropsWithoutRef<typeof Radio.Root>\n>(({ className, ...props }, ref) => {\n return (\n <Radio.Root\n ref={ref}\n className={cn(\n 'aspect-square h-4 w-4 flex items-center justify-center rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',\n className\n )}\n {...props}\n >\n <Radio.Indicator className=\"flex items-center justify-center\">\n <CircleIcon className=\"h-2.5 w-2.5 fill-current text-current\" />\n </Radio.Indicator>\n </Radio.Root>\n )\n})\nRadioGroupItem.displayName = 'RadioGroupItem'\n\nexport { RadioGroup, RadioGroupItem }"],"names":["RadioGroup","React","className","props","ref","jsx","RadioGroupPrimitive","cn","RadioGroupItem","Radio.Root","Radio.Indicator","CircleIcon"],"mappings":";;;;;;;;AAOA,MAAMA,IAAaC,EAAM,WAGvB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MACnB,gBAAAC,EAACC,KAAoB,WAAWC,EAAG,cAAcL,CAAS,GAAI,GAAGC,GAAO,KAAAC,GAAU,CAC1F;AACDJ,EAAW,cAAc;AAEzB,MAAMQ,IAAiBP,EAAM,WAG3B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAExB,gBAAAC;AAAA,EAACI;AAAAA,EAAA;AAAA,IACC,KAAAL;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAL;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,IAEJ,UAAA,gBAAAE,EAACK,GAAA,EAAgB,WAAU,oCACzB,UAAA,gBAAAL,EAACM,GAAA,EAAW,WAAU,wCAAA,CAAwC,EAAA,CAChE;AAAA,EAAA;AAAA,CAGL;AACDH,EAAe,cAAc;"}
@@ -1,8 +1,9 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { GripVertical as l } from "lucide-react";
3
- import { Panel as o, Group as n, Separator as c } from "../../node_modules/.pnpm/react-resizable-panels@4.4.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-resizable-panels/dist/react-resizable-panels.js";
4
2
  import { cn as t } from "../../lib/utils.js";
5
- const u = ({
3
+ import "../icons/dynamic-icons.js";
4
+ import { GripDotsIcon as l } from "../icons/auto-generated.js";
5
+ import { Panel as o, Group as n, Separator as c } from "../../node_modules/.pnpm/react-resizable-panels@4.4.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-resizable-panels/dist/react-resizable-panels.js";
6
+ const m = ({
6
7
  className: a,
7
8
  ...r
8
9
  }) => /* @__PURE__ */ e(
@@ -32,6 +33,6 @@ const u = ({
32
33
  export {
33
34
  g as ResizableHandle,
34
35
  v as ResizablePanel,
35
- u as ResizablePanelGroup
36
+ m as ResizablePanelGroup
36
37
  };
37
38
  //# sourceMappingURL=resizable.js.map