@gv-tech/design-system 2.15.1 → 2.16.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 (171) hide show
  1. package/dist/accordion.cjs +1 -1
  2. package/dist/accordion.cjs.map +1 -1
  3. package/dist/accordion.mjs +11 -11
  4. package/dist/accordion.mjs.map +1 -1
  5. package/dist/alert-dialog.cjs +1 -1
  6. package/dist/alert-dialog.cjs.map +1 -1
  7. package/dist/alert-dialog.mjs +21 -21
  8. package/dist/alert-dialog.mjs.map +1 -1
  9. package/dist/alert.cjs +1 -1
  10. package/dist/alert.mjs +1 -1
  11. package/dist/avatar.cjs +1 -1
  12. package/dist/avatar.cjs.map +1 -1
  13. package/dist/avatar.mjs +12 -12
  14. package/dist/avatar.mjs.map +1 -1
  15. package/dist/badge.cjs +1 -1
  16. package/dist/badge.mjs +1 -1
  17. package/dist/breadcrumb.cjs +1 -1
  18. package/dist/breadcrumb.mjs +1 -1
  19. package/dist/button.cjs +1 -1
  20. package/dist/button.mjs +1 -1
  21. package/dist/calendar.cjs +1 -1
  22. package/dist/calendar.mjs +1 -1
  23. package/dist/card.cjs +1 -1
  24. package/dist/card.mjs +1 -1
  25. package/dist/carousel.cjs +1 -1
  26. package/dist/carousel.mjs +1 -1
  27. package/dist/chart.cjs +1 -1
  28. package/dist/chart.mjs +1 -1
  29. package/dist/checkbox.cjs +1 -1
  30. package/dist/checkbox.cjs.map +1 -1
  31. package/dist/checkbox.mjs +2 -2
  32. package/dist/checkbox.mjs.map +1 -1
  33. package/dist/command.cjs +1 -1
  34. package/dist/command.cjs.map +1 -1
  35. package/dist/command.mjs +24 -24
  36. package/dist/command.mjs.map +1 -1
  37. package/dist/context-menu.cjs +1 -1
  38. package/dist/context-menu.cjs.map +1 -1
  39. package/dist/context-menu.mjs +42 -42
  40. package/dist/context-menu.mjs.map +1 -1
  41. package/dist/design-system.css +1 -1
  42. package/dist/dialog.cjs +1 -1
  43. package/dist/dialog.cjs.map +1 -1
  44. package/dist/dialog.mjs +18 -18
  45. package/dist/dialog.mjs.map +1 -1
  46. package/dist/drawer.cjs +1 -1
  47. package/dist/drawer.cjs.map +1 -1
  48. package/dist/drawer.mjs +19 -19
  49. package/dist/drawer.mjs.map +1 -1
  50. package/dist/dropdown-menu.cjs +1 -1
  51. package/dist/dropdown-menu.cjs.map +1 -1
  52. package/dist/dropdown-menu.mjs +58 -58
  53. package/dist/dropdown-menu.mjs.map +1 -1
  54. package/dist/form.cjs +1 -1
  55. package/dist/form.mjs +1 -1
  56. package/dist/hover-card.cjs +1 -1
  57. package/dist/hover-card.cjs.map +1 -1
  58. package/dist/hover-card.mjs +4 -4
  59. package/dist/hover-card.mjs.map +1 -1
  60. package/dist/index.cjs +1 -1
  61. package/dist/index.cjs.map +1 -1
  62. package/dist/index.d.ts +65 -0
  63. package/dist/index.mjs +37 -35
  64. package/dist/index.mjs.map +1 -1
  65. package/dist/input.cjs +1 -1
  66. package/dist/input.mjs +1 -1
  67. package/dist/label.cjs +1 -1
  68. package/dist/label.cjs.map +1 -1
  69. package/dist/label.mjs +3 -3
  70. package/dist/label.mjs.map +1 -1
  71. package/dist/menubar.cjs +1 -1
  72. package/dist/menubar.cjs.map +1 -1
  73. package/dist/menubar.mjs +44 -44
  74. package/dist/menubar.mjs.map +1 -1
  75. package/dist/navigation-menu.cjs +1 -1
  76. package/dist/navigation-menu.cjs.map +1 -1
  77. package/dist/navigation-menu.mjs +21 -21
  78. package/dist/navigation-menu.mjs.map +1 -1
  79. package/dist/pagination.cjs +1 -1
  80. package/dist/pagination.mjs +1 -1
  81. package/dist/popover.cjs +1 -1
  82. package/dist/popover.cjs.map +1 -1
  83. package/dist/popover.mjs +8 -8
  84. package/dist/popover.mjs.map +1 -1
  85. package/dist/progress.cjs +1 -1
  86. package/dist/progress.cjs.map +1 -1
  87. package/dist/progress.mjs +9 -9
  88. package/dist/progress.mjs.map +1 -1
  89. package/dist/radio-group.cjs +1 -1
  90. package/dist/radio-group.cjs.map +1 -1
  91. package/dist/radio-group.mjs +8 -8
  92. package/dist/radio-group.mjs.map +1 -1
  93. package/dist/resizable.cjs +1 -1
  94. package/dist/resizable.mjs +1 -1
  95. package/dist/scroll-area.cjs +1 -1
  96. package/dist/scroll-area.cjs.map +1 -1
  97. package/dist/scroll-area.mjs +11 -11
  98. package/dist/scroll-area.mjs.map +1 -1
  99. package/dist/search.cjs +1 -1
  100. package/dist/search.cjs.map +1 -1
  101. package/dist/search.d.ts +1 -0
  102. package/dist/search.mjs +50 -37
  103. package/dist/search.mjs.map +1 -1
  104. package/dist/select.cjs +1 -1
  105. package/dist/select.cjs.map +1 -1
  106. package/dist/select.mjs +38 -38
  107. package/dist/select.mjs.map +1 -1
  108. package/dist/separator.cjs +1 -1
  109. package/dist/separator.cjs.map +1 -1
  110. package/dist/separator.mjs +7 -7
  111. package/dist/separator.mjs.map +1 -1
  112. package/dist/sheet.cjs +1 -1
  113. package/dist/sheet.cjs.map +1 -1
  114. package/dist/sheet.mjs +17 -17
  115. package/dist/sheet.mjs.map +1 -1
  116. package/dist/skeleton.cjs +1 -1
  117. package/dist/skeleton.mjs +1 -1
  118. package/dist/slider.cjs +1 -1
  119. package/dist/slider.cjs.map +1 -1
  120. package/dist/slider.mjs +2 -2
  121. package/dist/slider.mjs.map +1 -1
  122. package/dist/switch.cjs +1 -1
  123. package/dist/switch.cjs.map +1 -1
  124. package/dist/switch.mjs +7 -7
  125. package/dist/switch.mjs.map +1 -1
  126. package/dist/table-of-contents.cjs +2 -0
  127. package/dist/table-of-contents.cjs.map +1 -0
  128. package/dist/table-of-contents.d.ts +68 -0
  129. package/dist/table-of-contents.mjs +161 -0
  130. package/dist/table-of-contents.mjs.map +1 -0
  131. package/dist/table.cjs +1 -1
  132. package/dist/table.mjs +1 -1
  133. package/dist/tabs.cjs +1 -1
  134. package/dist/tabs.cjs.map +1 -1
  135. package/dist/tabs.mjs +13 -13
  136. package/dist/tabs.mjs.map +1 -1
  137. package/dist/text.cjs +1 -1
  138. package/dist/text.mjs +1 -1
  139. package/dist/textarea.cjs +1 -1
  140. package/dist/textarea.mjs +1 -1
  141. package/dist/{theme-toggle-CEOvAx_E.js → theme-toggle-B3z50t2s.js} +2 -2
  142. package/dist/{theme-toggle-CEOvAx_E.js.map → theme-toggle-B3z50t2s.js.map} +1 -1
  143. package/dist/{theme-toggle-B1DHy3Aq.mjs → theme-toggle-BUU8zhDg.mjs} +2 -2
  144. package/dist/{theme-toggle-B1DHy3Aq.mjs.map → theme-toggle-BUU8zhDg.mjs.map} +1 -1
  145. package/dist/theme-toggle.cjs +1 -1
  146. package/dist/theme-toggle.mjs +2 -2
  147. package/dist/toast.cjs +1 -1
  148. package/dist/toast.cjs.map +1 -1
  149. package/dist/toast.mjs +17 -17
  150. package/dist/toast.mjs.map +1 -1
  151. package/dist/toggle-group.cjs +1 -1
  152. package/dist/toggle-group.cjs.map +1 -1
  153. package/dist/toggle-group.mjs +18 -18
  154. package/dist/toggle-group.mjs.map +1 -1
  155. package/dist/toggle.cjs +1 -1
  156. package/dist/toggle.cjs.map +1 -1
  157. package/dist/toggle.mjs +6 -6
  158. package/dist/toggle.mjs.map +1 -1
  159. package/dist/tooltip.cjs +1 -1
  160. package/dist/tooltip.cjs.map +1 -1
  161. package/dist/tooltip.mjs +11 -11
  162. package/dist/tooltip.mjs.map +1 -1
  163. package/dist/utils--qajXu5A.js +2 -0
  164. package/dist/utils--qajXu5A.js.map +1 -0
  165. package/dist/utils-CgPEtJt0.mjs +12 -0
  166. package/dist/utils-CgPEtJt0.mjs.map +1 -0
  167. package/package.json +15 -14
  168. package/dist/utils-DKStzUzN.js +0 -2
  169. package/dist/utils-DKStzUzN.js.map +0 -1
  170. package/dist/utils-Dk-Gx69q.mjs +0 -8
  171. package/dist/utils-Dk-Gx69q.mjs.map +0 -1
package/dist/chart.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { j as r, r as $, L as R, s as T } from "./vendor-DxBXMLEx.mjs";
3
3
  import * as f from "react";
4
- import { c as i } from "./utils-Dk-Gx69q.mjs";
4
+ import { c as i } from "./utils-CgPEtJt0.mjs";
5
5
  const E = { light: "", dark: ".dark" }, w = f.createContext(null);
6
6
  function k() {
7
7
  const a = f.useContext(w);
package/dist/checkbox.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./vendor-DQFuDa7q.js"),a=require("react"),o=require("./utils-DKStzUzN.js");function i(e){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(c,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return c.default=e,Object.freeze(c)}const d=i(a),s=d.forwardRef(({className:e,...c},r)=>t.jsxRuntimeExports.jsx(t.Checkbox,{ref:r,className:o.cn("peer border-primary focus-visible:ring-ring data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground grid h-4 w-4 shrink-0 place-content-center rounded-sm border shadow focus-visible:ring-1 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",e),...c,children:t.jsxRuntimeExports.jsx(t.CheckboxIndicator,{className:o.cn("grid place-content-center text-current"),children:t.jsxRuntimeExports.jsx(t.Check,{className:"h-4 w-4"})})}));s.displayName=t.Checkbox.displayName;exports.Checkbox=s;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./vendor-DQFuDa7q.js"),a=require("react"),n=require("./utils--qajXu5A.js");function i(e){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(c,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return c.default=e,Object.freeze(c)}const d=i(a),s=d.forwardRef(({className:e,...c},r)=>t.jsxRuntimeExports.jsx(t.Checkbox,{ref:r,className:n.cn("peer border-primary focus-visible:ring-ring data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground grid h-4 w-4 shrink-0 place-content-center rounded-sm border shadow focus-visible:ring-1 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",e),...c,children:t.jsxRuntimeExports.jsx(t.CheckboxIndicator,{className:n.cn("grid place-content-center text-current"),children:t.jsxRuntimeExports.jsx(t.Check,{className:"h-4 w-4"})})}));s.displayName=t.Checkbox?.displayName||"Checkbox";exports.Checkbox=s;
2
2
  //# sourceMappingURL=checkbox.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox.cjs","sources":["../packages/ui-web/src/checkbox.tsx"],"sourcesContent":["'use client';\nimport * as CheckboxPrimitive from '@radix-ui/react-checkbox';\nimport { Check } from 'lucide-react';\nimport * as React from 'react';\n\nimport type { CheckboxBaseProps } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nexport interface CheckboxProps\n extends\n Omit<React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>, keyof CheckboxBaseProps>,\n CheckboxBaseProps {}\n\nconst Checkbox = React.forwardRef<React.ElementRef<typeof CheckboxPrimitive.Root>, CheckboxProps>(\n ({ className, ...props }, ref) => (\n <CheckboxPrimitive.Root\n ref={ref}\n className={cn(\n 'peer border-primary focus-visible:ring-ring data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground grid h-4 w-4 shrink-0 place-content-center rounded-sm border shadow focus-visible:ring-1 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <CheckboxPrimitive.Indicator className={cn('grid place-content-center text-current')}>\n <Check className=\"h-4 w-4\" />\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n ),\n);\nCheckbox.displayName = CheckboxPrimitive.Root.displayName;\n\nexport { Checkbox };\n"],"names":["Checkbox","React","className","props","ref","jsx","CheckboxPrimitive.Root","cn","CheckboxPrimitive.Indicator","Check"],"mappings":"mdAaMA,EAAWC,EAAM,WACrB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IACxBC,EAAAA,kBAAAA,IAACC,EAAAA,SAAA,CACC,IAAAF,EACA,UAAWG,EAAAA,GACT,+RACAL,CAAA,EAED,GAAGC,EAEJ,SAAAE,EAAAA,kBAAAA,IAACG,EAAAA,kBAAA,CAA4B,UAAWD,EAAAA,GAAG,wCAAwC,EACjF,SAAAF,EAAAA,kBAAAA,IAACI,EAAAA,MAAA,CAAM,UAAU,SAAA,CAAU,CAAA,CAC7B,CAAA,CAAA,CAGN,EACAT,EAAS,YAAcM,EAAAA,SAAuB"}
1
+ {"version":3,"file":"checkbox.cjs","sources":["../packages/ui-web/src/checkbox.tsx"],"sourcesContent":["'use client';\nimport * as CheckboxPrimitive from '@radix-ui/react-checkbox';\nimport { Check } from 'lucide-react';\nimport * as React from 'react';\n\nimport type { CheckboxBaseProps } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nexport interface CheckboxProps\n extends\n Omit<React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>, keyof CheckboxBaseProps>,\n CheckboxBaseProps {}\n\nconst Checkbox = React.forwardRef<React.ElementRef<typeof CheckboxPrimitive.Root>, CheckboxProps>(\n ({ className, ...props }, ref) => (\n <CheckboxPrimitive.Root\n ref={ref}\n className={cn(\n 'peer border-primary focus-visible:ring-ring data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground grid h-4 w-4 shrink-0 place-content-center rounded-sm border shadow focus-visible:ring-1 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <CheckboxPrimitive.Indicator className={cn('grid place-content-center text-current')}>\n <Check className=\"h-4 w-4\" />\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n ),\n);\nCheckbox.displayName = CheckboxPrimitive.Root?.displayName || 'Checkbox';\n\nexport { Checkbox };\n"],"names":["Checkbox","React","className","props","ref","jsx","CheckboxPrimitive.Root","cn","CheckboxPrimitive.Indicator","Check"],"mappings":"mdAaMA,EAAWC,EAAM,WACrB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IACxBC,EAAAA,kBAAAA,IAACC,EAAAA,SAAA,CACC,IAAAF,EACA,UAAWG,EAAAA,GACT,+RACAL,CAAA,EAED,GAAGC,EAEJ,SAAAE,EAAAA,kBAAAA,IAACG,EAAAA,kBAAA,CAA4B,UAAWD,EAAAA,GAAG,wCAAwC,EACjF,SAAAF,EAAAA,kBAAAA,IAACI,EAAAA,MAAA,CAAM,UAAU,SAAA,CAAU,CAAA,CAC7B,CAAA,CAAA,CAGN,EACAT,EAAS,YAAcM,YAAwB,aAAe"}
package/dist/checkbox.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { j as e, t as a, v as t, w as i } from "./vendor-DxBXMLEx.mjs";
3
3
  import * as n from "react";
4
- import { c as r } from "./utils-Dk-Gx69q.mjs";
4
+ import { c as r } from "./utils-CgPEtJt0.mjs";
5
5
  const d = n.forwardRef(
6
6
  ({ className: s, ...c }, o) => /* @__PURE__ */ e.jsx(
7
7
  a,
@@ -16,7 +16,7 @@ const d = n.forwardRef(
16
16
  }
17
17
  )
18
18
  );
19
- d.displayName = a.displayName;
19
+ d.displayName = a?.displayName || "Checkbox";
20
20
  export {
21
21
  d as Checkbox
22
22
  };
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox.mjs","sources":["../packages/ui-web/src/checkbox.tsx"],"sourcesContent":["'use client';\nimport * as CheckboxPrimitive from '@radix-ui/react-checkbox';\nimport { Check } from 'lucide-react';\nimport * as React from 'react';\n\nimport type { CheckboxBaseProps } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nexport interface CheckboxProps\n extends\n Omit<React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>, keyof CheckboxBaseProps>,\n CheckboxBaseProps {}\n\nconst Checkbox = React.forwardRef<React.ElementRef<typeof CheckboxPrimitive.Root>, CheckboxProps>(\n ({ className, ...props }, ref) => (\n <CheckboxPrimitive.Root\n ref={ref}\n className={cn(\n 'peer border-primary focus-visible:ring-ring data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground grid h-4 w-4 shrink-0 place-content-center rounded-sm border shadow focus-visible:ring-1 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <CheckboxPrimitive.Indicator className={cn('grid place-content-center text-current')}>\n <Check className=\"h-4 w-4\" />\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n ),\n);\nCheckbox.displayName = CheckboxPrimitive.Root.displayName;\n\nexport { Checkbox };\n"],"names":["Checkbox","React","className","props","ref","jsx","CheckboxPrimitive.Root","cn","CheckboxPrimitive.Indicator","Check"],"mappings":";;;;AAaA,MAAMA,IAAWC,EAAM;AAAA,EACrB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MACxBC,gBAAAA,EAAAA;AAAAA,IAACC;AAAAA,IAAA;AAAA,MACC,KAAAF;AAAA,MACA,WAAWG;AAAA,QACT;AAAA,QACAL;AAAA,MAAA;AAAA,MAED,GAAGC;AAAA,MAEJ,UAAAE,gBAAAA,EAAAA,IAACG,GAAA,EAA4B,WAAWD,EAAG,wCAAwC,GACjF,UAAAF,gBAAAA,EAAAA,IAACI,GAAA,EAAM,WAAU,UAAA,CAAU,EAAA,CAC7B;AAAA,IAAA;AAAA,EAAA;AAGN;AACAT,EAAS,cAAcM,EAAuB;"}
1
+ {"version":3,"file":"checkbox.mjs","sources":["../packages/ui-web/src/checkbox.tsx"],"sourcesContent":["'use client';\nimport * as CheckboxPrimitive from '@radix-ui/react-checkbox';\nimport { Check } from 'lucide-react';\nimport * as React from 'react';\n\nimport type { CheckboxBaseProps } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nexport interface CheckboxProps\n extends\n Omit<React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>, keyof CheckboxBaseProps>,\n CheckboxBaseProps {}\n\nconst Checkbox = React.forwardRef<React.ElementRef<typeof CheckboxPrimitive.Root>, CheckboxProps>(\n ({ className, ...props }, ref) => (\n <CheckboxPrimitive.Root\n ref={ref}\n className={cn(\n 'peer border-primary focus-visible:ring-ring data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground grid h-4 w-4 shrink-0 place-content-center rounded-sm border shadow focus-visible:ring-1 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <CheckboxPrimitive.Indicator className={cn('grid place-content-center text-current')}>\n <Check className=\"h-4 w-4\" />\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n ),\n);\nCheckbox.displayName = CheckboxPrimitive.Root?.displayName || 'Checkbox';\n\nexport { Checkbox };\n"],"names":["Checkbox","React","className","props","ref","jsx","CheckboxPrimitive.Root","cn","CheckboxPrimitive.Indicator","Check"],"mappings":";;;;AAaA,MAAMA,IAAWC,EAAM;AAAA,EACrB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MACxBC,gBAAAA,EAAAA;AAAAA,IAACC;AAAAA,IAAA;AAAA,MACC,KAAAF;AAAA,MACA,WAAWG;AAAA,QACT;AAAA,QACAL;AAAA,MAAA;AAAA,MAED,GAAGC;AAAA,MAEJ,UAAAE,gBAAAA,EAAAA,IAACG,GAAA,EAA4B,WAAWD,EAAG,wCAAwC,GACjF,UAAAF,gBAAAA,EAAAA,IAACI,GAAA,EAAM,WAAU,UAAA,CAAU,EAAA,CAC7B;AAAA,IAAA;AAAA,EAAA;AAGN;AACAT,EAAS,cAAcM,GAAwB,eAAe;"}
package/dist/command.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./vendor-DQFuDa7q.js"),f=require("react"),n=require("./dialog.cjs"),r=require("./utils-DKStzUzN.js");function _(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const d=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(o,a,d.get?d:{enumerable:!0,get:()=>t[a]})}}return o.default=t,Object.freeze(o)}const s=_(f),m=s.forwardRef(({className:t,...o},a)=>e.jsxRuntimeExports.jsx(e._e,{ref:a,className:r.cn("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),...o}));m.displayName=e._e.displayName;const h=({children:t,...o})=>e.jsxRuntimeExports.jsx(n.Dialog,{...o,children:e.jsxRuntimeExports.jsxs(n.DialogContent,{className:"overflow-hidden p-0",children:[e.jsxRuntimeExports.jsx(n.DialogTitle,{className:"sr-only",children:"Search"}),e.jsxRuntimeExports.jsx(n.DialogDescription,{className:"sr-only",children:"Search for documentation and components."}),e.jsxRuntimeExports.jsx(m,{className:"[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:t})]})}),i=s.forwardRef(({className:t,...o},a)=>e.jsxRuntimeExports.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[e.jsxRuntimeExports.jsx(e.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),e.jsxRuntimeExports.jsx(e._e.Input,{ref:a,className:r.cn("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-50",t),...o})]}));i.displayName=e._e.Input.displayName;const p=s.forwardRef(({className:t,...o},a)=>e.jsxRuntimeExports.jsx(e._e.List,{ref:a,className:r.cn("max-h-[300px] overflow-x-hidden overflow-y-auto",t),...o}));p.displayName=e._e.List.displayName;const c=s.forwardRef((t,o)=>e.jsxRuntimeExports.jsx(e._e.Empty,{ref:o,className:"py-6 text-center text-sm",...t}));c.displayName=e._e.Empty.displayName;const u=s.forwardRef(({className:t,...o},a)=>e.jsxRuntimeExports.jsx(e._e.Group,{ref:a,className:r.cn("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),...o}));u.displayName=e._e.Group.displayName;const l=s.forwardRef(({className:t,...o},a)=>e.jsxRuntimeExports.jsx(e._e.Separator,{ref:a,className:r.cn("bg-border -mx-1 h-px",t),...o}));l.displayName=e._e.Separator.displayName;const x=s.forwardRef(({className:t,...o},a)=>e.jsxRuntimeExports.jsx(e._e.Item,{ref:a,className:r.cn("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t),...o}));x.displayName=e._e.Item.displayName;const g=({className:t,...o})=>e.jsxRuntimeExports.jsx("span",{className:r.cn("text-muted-foreground ml-auto text-xs tracking-widest",t),...o});g.displayName="CommandShortcut";exports.Command=m;exports.CommandDialog=h;exports.CommandEmpty=c;exports.CommandGroup=u;exports.CommandInput=i;exports.CommandItem=x;exports.CommandList=p;exports.CommandSeparator=l;exports.CommandShortcut=g;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./vendor-DQFuDa7q.js"),f=require("react"),m=require("./dialog.cjs"),n=require("./utils--qajXu5A.js");function _(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const d=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(o,a,d.get?d:{enumerable:!0,get:()=>t[a]})}}return o.default=t,Object.freeze(o)}const r=_(f),s=r.forwardRef(({className:t,...o},a)=>e.jsxRuntimeExports.jsx(e._e,{ref:a,className:n.cn("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),...o}));s.displayName=e._e?.displayName||"Command";const y=({children:t,...o})=>e.jsxRuntimeExports.jsx(m.Dialog,{...o,children:e.jsxRuntimeExports.jsxs(m.DialogContent,{className:"overflow-hidden p-0",children:[e.jsxRuntimeExports.jsx(m.DialogTitle,{className:"sr-only",children:"Search"}),e.jsxRuntimeExports.jsx(m.DialogDescription,{className:"sr-only",children:"Search for documentation and components."}),e.jsxRuntimeExports.jsx(s,{className:"[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:t})]})}),i=r.forwardRef(({className:t,...o},a)=>e.jsxRuntimeExports.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[e.jsxRuntimeExports.jsx(e.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),e.jsxRuntimeExports.jsx(e._e.Input,{ref:a,className:n.cn("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-50",t),...o})]}));i.displayName=e._e.Input?.displayName||"CommandInput";const p=r.forwardRef(({className:t,...o},a)=>e.jsxRuntimeExports.jsx(e._e.List,{ref:a,className:n.cn("max-h-[300px] overflow-x-hidden overflow-y-auto",t),...o}));p.displayName=e._e.List?.displayName||"CommandList";const c=r.forwardRef((t,o)=>e.jsxRuntimeExports.jsx(e._e.Empty,{ref:o,className:"py-6 text-center text-sm",...t}));c.displayName=e._e.Empty?.displayName||"CommandEmpty";const u=r.forwardRef(({className:t,...o},a)=>e.jsxRuntimeExports.jsx(e._e.Group,{ref:a,className:n.cn("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),...o}));u.displayName=e._e.Group?.displayName||"CommandGroup";const l=r.forwardRef(({className:t,...o},a)=>e.jsxRuntimeExports.jsx(e._e.Separator,{ref:a,className:n.cn("bg-border -mx-1 h-px",t),...o}));l.displayName=e._e.Separator?.displayName||"CommandSeparator";const x=r.forwardRef(({className:t,...o},a)=>e.jsxRuntimeExports.jsx(e._e.Item,{ref:a,className:n.cn("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t),...o}));x.displayName=e._e.Item?.displayName||"CommandItem";const g=({className:t,...o})=>e.jsxRuntimeExports.jsx("span",{className:n.cn("text-muted-foreground ml-auto text-xs tracking-widest",t),...o});g.displayName="CommandShortcut";exports.Command=s;exports.CommandDialog=y;exports.CommandEmpty=c;exports.CommandGroup=u;exports.CommandInput=i;exports.CommandItem=x;exports.CommandList=p;exports.CommandSeparator=l;exports.CommandShortcut=g;
2
2
  //# sourceMappingURL=command.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"command.cjs","sources":["../packages/ui-web/src/command.tsx"],"sourcesContent":["'use client';\n\nimport { type DialogProps } from '@radix-ui/react-dialog';\nimport { Command as CommandPrimitive } from 'cmdk';\nimport { Search } from 'lucide-react';\nimport * as React from 'react';\n\nimport {\n CommandBaseProps,\n CommandEmptyBaseProps,\n CommandGroupBaseProps,\n CommandInputBaseProps,\n CommandItemBaseProps,\n CommandListBaseProps,\n CommandSeparatorBaseProps,\n CommandShortcutBaseProps,\n} from '@gv-tech/ui-core';\nimport { Dialog, DialogContent, DialogDescription, DialogTitle } from './dialog';\nimport { cn } from './lib/utils';\n\nconst Command = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive> & CommandBaseProps\n>(({ className, ...props }, ref) => (\n <CommandPrimitive\n ref={ref}\n className={cn(\n 'bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md',\n className,\n )}\n {...props}\n />\n));\nCommand.displayName = CommandPrimitive.displayName;\n\nconst CommandDialog = ({ children, ...props }: DialogProps) => {\n return (\n <Dialog {...props}>\n <DialogContent className=\"overflow-hidden p-0\">\n <DialogTitle className=\"sr-only\">Search</DialogTitle>\n <DialogDescription className=\"sr-only\">Search for documentation and components.</DialogDescription>\n <Command className=\"[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5\">\n {children}\n </Command>\n </DialogContent>\n </Dialog>\n );\n};\n\nconst CommandInput = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Input>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input> & CommandInputBaseProps\n>(({ className, ...props }, ref) => (\n <div className=\"flex items-center border-b px-3\" cmdk-input-wrapper=\"\">\n <Search className=\"mr-2 h-4 w-4 shrink-0 opacity-50\" />\n <CommandPrimitive.Input\n ref={ref}\n className={cn(\n 'placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-50',\n className,\n )}\n {...props}\n />\n </div>\n));\n\nCommandInput.displayName = CommandPrimitive.Input.displayName;\n\nconst CommandList = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.List> & CommandListBaseProps\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.List\n ref={ref}\n className={cn('max-h-[300px] overflow-x-hidden overflow-y-auto', className)}\n {...props}\n />\n));\n\nCommandList.displayName = CommandPrimitive.List.displayName;\n\nconst CommandEmpty = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Empty>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Empty> & CommandEmptyBaseProps\n>((props, ref) => <CommandPrimitive.Empty ref={ref} className=\"py-6 text-center text-sm\" {...props} />);\n\nCommandEmpty.displayName = CommandPrimitive.Empty.displayName;\n\nconst CommandGroup = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Group>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Group> & CommandGroupBaseProps\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Group\n ref={ref}\n className={cn(\n 'text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium',\n className,\n )}\n {...props}\n />\n));\n\nCommandGroup.displayName = CommandPrimitive.Group.displayName;\n\nconst CommandSeparator = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Separator> & CommandSeparatorBaseProps\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Separator ref={ref} className={cn('bg-border -mx-1 h-px', className)} {...props} />\n));\nCommandSeparator.displayName = CommandPrimitive.Separator.displayName;\n\nconst CommandItem = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item> & CommandItemBaseProps\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Item\n ref={ref}\n className={cn(\n 'data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',\n className,\n )}\n {...props}\n />\n));\n\nCommandItem.displayName = CommandPrimitive.Item.displayName;\n\nconst CommandShortcut = ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement> & CommandShortcutBaseProps) => {\n return <span className={cn('text-muted-foreground ml-auto text-xs tracking-widest', className)} {...props} />;\n};\nCommandShortcut.displayName = 'CommandShortcut';\n\nexport {\n Command,\n CommandDialog,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n CommandSeparator,\n CommandShortcut,\n};\nexport type {\n CommandEmptyBaseProps as CommandEmptyProps,\n CommandGroupBaseProps as CommandGroupProps,\n CommandInputBaseProps as CommandInputProps,\n CommandItemBaseProps as CommandItemProps,\n CommandListBaseProps as CommandListProps,\n CommandBaseProps as CommandProps,\n CommandSeparatorBaseProps as CommandSeparatorProps,\n CommandShortcutBaseProps as CommandShortcutProps,\n};\n"],"names":["Command","React","className","props","ref","jsx","CommandPrimitive","cn","CommandDialog","children","Dialog","jsxs","DialogContent","DialogTitle","DialogDescription","CommandInput","Search","CommandList","CommandEmpty","CommandGroup","CommandSeparator","CommandItem","CommandShortcut"],"mappings":"6eAoBMA,EAAUC,EAAM,WAGpB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,kBAAAA,IAACC,EAAAA,GAAA,CACC,IAAAF,EACA,UAAWG,EAAAA,GACT,4FACAL,CAAA,EAED,GAAGC,CAAA,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AE,EAEtGe,EAAa,YAAcZ,KAAiB,MAAM,YAElD,MAAMa,EAAelB,EAAM,WAGzB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,kBAAAA,IAACC,EAAAA,GAAiB,MAAjB,CACC,IAAAF,EACA,UAAWG,EAAAA,GACT,yNACAL,CAAA,EAED,GAAGC,CAAA,CACN,CACD,EAEDgB,EAAa,YAAcb,KAAiB,MAAM,YAElD,MAAMc,EAAmBnB,EAAM,WAG7B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,kBAAAA,IAACC,EAAAA,GAAiB,UAAjB,CAA2B,IAAAF,EAAU,UAAWG,EAAAA,GAAG,uBAAwBL,CAAS,EAAI,GAAGC,EAAO,CACpG,EACDiB,EAAiB,YAAcd,KAAiB,UAAU,YAE1D,MAAMe,EAAcpB,EAAM,WAGxB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,kBAAAA,IAACC,EAAAA,GAAiB,KAAjB,CACC,IAAAF,EACA,UAAWG,EAAAA,GACT,0TACAL,CAAA,EAED,GAAGC,CAAA,CACN,CACD,EAEDkB,EAAY,YAAcf,KAAiB,KAAK,YAEhD,MAAMgB,EAAkB,CAAC,CAAE,UAAApB,EAAW,GAAGC,KAChCE,EAAAA,kBAAAA,IAAC,QAAK,UAAWE,EAAAA,GAAG,wDAAyDL,CAAS,EAAI,GAAGC,EAAO,EAE7GmB,EAAgB,YAAc"}
1
+ {"version":3,"file":"command.cjs","sources":["../packages/ui-web/src/command.tsx"],"sourcesContent":["'use client';\n\nimport { type DialogProps } from '@radix-ui/react-dialog';\nimport { Command as CommandPrimitive } from 'cmdk';\nimport { Search } from 'lucide-react';\nimport * as React from 'react';\n\nimport {\n CommandBaseProps,\n CommandEmptyBaseProps,\n CommandGroupBaseProps,\n CommandInputBaseProps,\n CommandItemBaseProps,\n CommandListBaseProps,\n CommandSeparatorBaseProps,\n CommandShortcutBaseProps,\n} from '@gv-tech/ui-core';\nimport { Dialog, DialogContent, DialogDescription, DialogTitle } from './dialog';\nimport { cn } from './lib/utils';\n\nconst Command = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive> & CommandBaseProps\n>(({ className, ...props }, ref) => (\n <CommandPrimitive\n ref={ref}\n className={cn(\n 'bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md',\n className,\n )}\n {...props}\n />\n));\nCommand.displayName = CommandPrimitive?.displayName || 'Command';\n\nconst CommandDialog = ({ children, ...props }: DialogProps) => {\n return (\n <Dialog {...props}>\n <DialogContent className=\"overflow-hidden p-0\">\n <DialogTitle className=\"sr-only\">Search</DialogTitle>\n <DialogDescription className=\"sr-only\">Search for documentation and components.</DialogDescription>\n <Command className=\"[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5\">\n {children}\n </Command>\n </DialogContent>\n </Dialog>\n );\n};\n\nconst CommandInput = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Input>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input> & CommandInputBaseProps\n>(({ className, ...props }, ref) => (\n <div className=\"flex items-center border-b px-3\" cmdk-input-wrapper=\"\">\n <Search className=\"mr-2 h-4 w-4 shrink-0 opacity-50\" />\n <CommandPrimitive.Input\n ref={ref}\n className={cn(\n 'placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-50',\n className,\n )}\n {...props}\n />\n </div>\n));\n\nCommandInput.displayName = CommandPrimitive.Input?.displayName || 'CommandInput';\n\nconst CommandList = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.List> & CommandListBaseProps\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.List\n ref={ref}\n className={cn('max-h-[300px] overflow-x-hidden overflow-y-auto', className)}\n {...props}\n />\n));\n\nCommandList.displayName = CommandPrimitive.List?.displayName || 'CommandList';\n\nconst CommandEmpty = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Empty>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Empty> & CommandEmptyBaseProps\n>((props, ref) => <CommandPrimitive.Empty ref={ref} className=\"py-6 text-center text-sm\" {...props} />);\n\nCommandEmpty.displayName = CommandPrimitive.Empty?.displayName || 'CommandEmpty';\n\nconst CommandGroup = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Group>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Group> & CommandGroupBaseProps\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Group\n ref={ref}\n className={cn(\n 'text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium',\n className,\n )}\n {...props}\n />\n));\n\nCommandGroup.displayName = CommandPrimitive.Group?.displayName || 'CommandGroup';\n\nconst CommandSeparator = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Separator> & CommandSeparatorBaseProps\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Separator ref={ref} className={cn('bg-border -mx-1 h-px', className)} {...props} />\n));\nCommandSeparator.displayName = CommandPrimitive.Separator?.displayName || 'CommandSeparator';\n\nconst CommandItem = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item> & CommandItemBaseProps\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Item\n ref={ref}\n className={cn(\n 'data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',\n className,\n )}\n {...props}\n />\n));\n\nCommandItem.displayName = CommandPrimitive.Item?.displayName || 'CommandItem';\n\nconst CommandShortcut = ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement> & CommandShortcutBaseProps) => {\n return <span className={cn('text-muted-foreground ml-auto text-xs tracking-widest', className)} {...props} />;\n};\nCommandShortcut.displayName = 'CommandShortcut';\n\nexport {\n Command,\n CommandDialog,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n CommandSeparator,\n CommandShortcut,\n};\nexport type {\n CommandEmptyBaseProps as CommandEmptyProps,\n CommandGroupBaseProps as CommandGroupProps,\n CommandInputBaseProps as CommandInputProps,\n CommandItemBaseProps as CommandItemProps,\n CommandListBaseProps as CommandListProps,\n CommandBaseProps as CommandProps,\n CommandSeparatorBaseProps as CommandSeparatorProps,\n CommandShortcutBaseProps as CommandShortcutProps,\n};\n"],"names":["Command","React","className","props","ref","jsx","CommandPrimitive","cn","CommandDialog","children","Dialog","jsxs","DialogContent","DialogTitle","DialogDescription","CommandInput","Search","CommandList","CommandEmpty","CommandGroup","CommandSeparator","CommandItem","CommandShortcut"],"mappings":"6eAoBMA,EAAUC,EAAM,WAGpB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,kBAAAA,IAACC,EAAAA,GAAA,CACC,IAAAF,EACA,UAAWG,EAAAA,GACT,4FACAL,CAAA,EAED,GAAGC,CAAA,CACN,CACD,EACDH,EAAQ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O,CAAE,EAEtGe,EAAa,YAAcZ,EAAAA,GAAiB,OAAO,aAAe,eAElE,MAAMa,EAAelB,EAAM,WAGzB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,kBAAAA,IAACC,EAAAA,GAAiB,MAAjB,CACC,IAAAF,EACA,UAAWG,EAAAA,GACT,yNACAL,CAAA,EAED,GAAGC,CAAA,CACN,CACD,EAEDgB,EAAa,YAAcb,EAAAA,GAAiB,OAAO,aAAe,eAElE,MAAMc,EAAmBnB,EAAM,WAG7B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,kBAAAA,IAACC,EAAAA,GAAiB,UAAjB,CAA2B,IAAAF,EAAU,UAAWG,EAAAA,GAAG,uBAAwBL,CAAS,EAAI,GAAGC,EAAO,CACpG,EACDiB,EAAiB,YAAcd,EAAAA,GAAiB,WAAW,aAAe,mBAE1E,MAAMe,EAAcpB,EAAM,WAGxB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,kBAAAA,IAACC,EAAAA,GAAiB,KAAjB,CACC,IAAAF,EACA,UAAWG,EAAAA,GACT,0TACAL,CAAA,EAED,GAAGC,CAAA,CACN,CACD,EAEDkB,EAAY,YAAcf,EAAAA,GAAiB,MAAM,aAAe,cAEhE,MAAMgB,EAAkB,CAAC,CAAE,UAAApB,EAAW,GAAGC,KAChCE,EAAAA,kBAAAA,IAAC,QAAK,UAAWE,EAAAA,GAAG,wDAAyDL,CAAS,EAAI,GAAGC,EAAO,EAE7GmB,EAAgB,YAAc"}
package/dist/command.mjs CHANGED
@@ -1,31 +1,31 @@
1
1
  "use client";
2
2
  import { j as o, aS as t, aT as n } from "./vendor-DxBXMLEx.mjs";
3
- import * as r from "react";
3
+ import * as m from "react";
4
4
  import { Dialog as p, DialogContent as i, DialogTitle as c, DialogDescription as l } from "./dialog.mjs";
5
- import { c as s } from "./utils-Dk-Gx69q.mjs";
6
- const m = r.forwardRef(({ className: e, ...a }, d) => /* @__PURE__ */ o.jsx(
5
+ import { c as r } from "./utils-CgPEtJt0.mjs";
6
+ const s = m.forwardRef(({ className: e, ...a }, d) => /* @__PURE__ */ o.jsx(
7
7
  t,
8
8
  {
9
9
  ref: d,
10
- className: s(
10
+ className: r(
11
11
  "bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
12
12
  e
13
13
  ),
14
14
  ...a
15
15
  }
16
16
  ));
17
- m.displayName = t.displayName;
17
+ s.displayName = t?.displayName || "Command";
18
18
  const v = ({ children: e, ...a }) => /* @__PURE__ */ o.jsx(p, { ...a, children: /* @__PURE__ */ o.jsxs(i, { className: "overflow-hidden p-0", children: [
19
19
  /* @__PURE__ */ o.jsx(c, { className: "sr-only", children: "Search" }),
20
20
  /* @__PURE__ */ o.jsx(l, { className: "sr-only", children: "Search for documentation and components." }),
21
- /* @__PURE__ */ o.jsx(m, { className: "[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: e })
22
- ] }) }), u = r.forwardRef(({ className: e, ...a }, d) => /* @__PURE__ */ o.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
21
+ /* @__PURE__ */ o.jsx(s, { className: "[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: e })
22
+ ] }) }), u = m.forwardRef(({ className: e, ...a }, d) => /* @__PURE__ */ o.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
23
23
  /* @__PURE__ */ o.jsx(n, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
24
24
  /* @__PURE__ */ o.jsx(
25
25
  t.Input,
26
26
  {
27
27
  ref: d,
28
- className: s(
28
+ className: r(
29
29
  "placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-50",
30
30
  e
31
31
  ),
@@ -33,48 +33,48 @@ const v = ({ children: e, ...a }) => /* @__PURE__ */ o.jsx(p, { ...a, children:
33
33
  }
34
34
  )
35
35
  ] }));
36
- u.displayName = t.Input.displayName;
37
- const x = r.forwardRef(({ className: e, ...a }, d) => /* @__PURE__ */ o.jsx(
36
+ u.displayName = t.Input?.displayName || "CommandInput";
37
+ const x = m.forwardRef(({ className: e, ...a }, d) => /* @__PURE__ */ o.jsx(
38
38
  t.List,
39
39
  {
40
40
  ref: d,
41
- className: s("max-h-[300px] overflow-x-hidden overflow-y-auto", e),
41
+ className: r("max-h-[300px] overflow-x-hidden overflow-y-auto", e),
42
42
  ...a
43
43
  }
44
44
  ));
45
- x.displayName = t.List.displayName;
46
- const g = r.forwardRef((e, a) => /* @__PURE__ */ o.jsx(t.Empty, { ref: a, className: "py-6 text-center text-sm", ...e }));
47
- g.displayName = t.Empty.displayName;
48
- const f = r.forwardRef(({ className: e, ...a }, d) => /* @__PURE__ */ o.jsx(
45
+ x.displayName = t.List?.displayName || "CommandList";
46
+ const g = m.forwardRef((e, a) => /* @__PURE__ */ o.jsx(t.Empty, { ref: a, className: "py-6 text-center text-sm", ...e }));
47
+ g.displayName = t.Empty?.displayName || "CommandEmpty";
48
+ const f = m.forwardRef(({ className: e, ...a }, d) => /* @__PURE__ */ o.jsx(
49
49
  t.Group,
50
50
  {
51
51
  ref: d,
52
- className: s(
52
+ className: r(
53
53
  "text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",
54
54
  e
55
55
  ),
56
56
  ...a
57
57
  }
58
58
  ));
59
- f.displayName = t.Group.displayName;
60
- const h = r.forwardRef(({ className: e, ...a }, d) => /* @__PURE__ */ o.jsx(t.Separator, { ref: d, className: s("bg-border -mx-1 h-px", e), ...a }));
61
- h.displayName = t.Separator.displayName;
62
- const y = r.forwardRef(({ className: e, ...a }, d) => /* @__PURE__ */ o.jsx(
59
+ f.displayName = t.Group?.displayName || "CommandGroup";
60
+ const h = m.forwardRef(({ className: e, ...a }, d) => /* @__PURE__ */ o.jsx(t.Separator, { ref: d, className: r("bg-border -mx-1 h-px", e), ...a }));
61
+ h.displayName = t.Separator?.displayName || "CommandSeparator";
62
+ const y = m.forwardRef(({ className: e, ...a }, d) => /* @__PURE__ */ o.jsx(
63
63
  t.Item,
64
64
  {
65
65
  ref: d,
66
- className: s(
66
+ className: r(
67
67
  "data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
68
68
  e
69
69
  ),
70
70
  ...a
71
71
  }
72
72
  ));
73
- y.displayName = t.Item.displayName;
74
- const N = ({ className: e, ...a }) => /* @__PURE__ */ o.jsx("span", { className: s("text-muted-foreground ml-auto text-xs tracking-widest", e), ...a });
73
+ y.displayName = t.Item?.displayName || "CommandItem";
74
+ const N = ({ className: e, ...a }) => /* @__PURE__ */ o.jsx("span", { className: r("text-muted-foreground ml-auto text-xs tracking-widest", e), ...a });
75
75
  N.displayName = "CommandShortcut";
76
76
  export {
77
- m as Command,
77
+ s as Command,
78
78
  v as CommandDialog,
79
79
  g as CommandEmpty,
80
80
  f as CommandGroup,
@@ -1 +1 @@
1
- {"version":3,"file":"command.mjs","sources":["../packages/ui-web/src/command.tsx"],"sourcesContent":["'use client';\n\nimport { type DialogProps } from '@radix-ui/react-dialog';\nimport { Command as CommandPrimitive } from 'cmdk';\nimport { Search } from 'lucide-react';\nimport * as React from 'react';\n\nimport {\n CommandBaseProps,\n CommandEmptyBaseProps,\n CommandGroupBaseProps,\n CommandInputBaseProps,\n CommandItemBaseProps,\n CommandListBaseProps,\n CommandSeparatorBaseProps,\n CommandShortcutBaseProps,\n} from '@gv-tech/ui-core';\nimport { Dialog, DialogContent, DialogDescription, DialogTitle } from './dialog';\nimport { cn } from './lib/utils';\n\nconst Command = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive> & CommandBaseProps\n>(({ className, ...props }, ref) => (\n <CommandPrimitive\n ref={ref}\n className={cn(\n 'bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md',\n className,\n )}\n {...props}\n />\n));\nCommand.displayName = CommandPrimitive.displayName;\n\nconst CommandDialog = ({ children, ...props }: DialogProps) => {\n return (\n <Dialog {...props}>\n <DialogContent className=\"overflow-hidden p-0\">\n <DialogTitle className=\"sr-only\">Search</DialogTitle>\n <DialogDescription className=\"sr-only\">Search for documentation and components.</DialogDescription>\n <Command className=\"[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5\">\n {children}\n </Command>\n </DialogContent>\n </Dialog>\n );\n};\n\nconst CommandInput = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Input>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input> & CommandInputBaseProps\n>(({ className, ...props }, ref) => (\n <div className=\"flex items-center border-b px-3\" cmdk-input-wrapper=\"\">\n <Search className=\"mr-2 h-4 w-4 shrink-0 opacity-50\" />\n <CommandPrimitive.Input\n ref={ref}\n className={cn(\n 'placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-50',\n className,\n )}\n {...props}\n />\n </div>\n));\n\nCommandInput.displayName = CommandPrimitive.Input.displayName;\n\nconst CommandList = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.List> & CommandListBaseProps\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.List\n ref={ref}\n className={cn('max-h-[300px] overflow-x-hidden overflow-y-auto', className)}\n {...props}\n />\n));\n\nCommandList.displayName = CommandPrimitive.List.displayName;\n\nconst CommandEmpty = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Empty>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Empty> & CommandEmptyBaseProps\n>((props, ref) => <CommandPrimitive.Empty ref={ref} className=\"py-6 text-center text-sm\" {...props} />);\n\nCommandEmpty.displayName = CommandPrimitive.Empty.displayName;\n\nconst CommandGroup = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Group>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Group> & CommandGroupBaseProps\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Group\n ref={ref}\n className={cn(\n 'text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium',\n className,\n )}\n {...props}\n />\n));\n\nCommandGroup.displayName = CommandPrimitive.Group.displayName;\n\nconst CommandSeparator = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Separator> & CommandSeparatorBaseProps\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Separator ref={ref} className={cn('bg-border -mx-1 h-px', className)} {...props} />\n));\nCommandSeparator.displayName = CommandPrimitive.Separator.displayName;\n\nconst CommandItem = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item> & CommandItemBaseProps\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Item\n ref={ref}\n className={cn(\n 'data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',\n className,\n )}\n {...props}\n />\n));\n\nCommandItem.displayName = CommandPrimitive.Item.displayName;\n\nconst CommandShortcut = ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement> & CommandShortcutBaseProps) => {\n return <span className={cn('text-muted-foreground ml-auto text-xs tracking-widest', className)} {...props} />;\n};\nCommandShortcut.displayName = 'CommandShortcut';\n\nexport {\n Command,\n CommandDialog,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n CommandSeparator,\n CommandShortcut,\n};\nexport type {\n CommandEmptyBaseProps as CommandEmptyProps,\n CommandGroupBaseProps as CommandGroupProps,\n CommandInputBaseProps as CommandInputProps,\n CommandItemBaseProps as CommandItemProps,\n CommandListBaseProps as CommandListProps,\n CommandBaseProps as CommandProps,\n CommandSeparatorBaseProps as CommandSeparatorProps,\n CommandShortcutBaseProps as CommandShortcutProps,\n};\n"],"names":["Command","React","className","props","ref","jsx","CommandPrimitive","cn","CommandDialog","children","Dialog","jsxs","DialogContent","DialogTitle","DialogDescription","CommandInput","Search","CommandList","CommandEmpty","CommandGroup","CommandSeparator","CommandItem","CommandShortcut"],"mappings":";;;;;AAoBA,MAAMA,IAAUC,EAAM,WAGpB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BC,gBAAAA,EAAAA;AAAAA,EAACC;AAAAA,EAAA;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAL;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,EAAA;AACN,CACD;AACDH,EAAQ,cAAcM,EAAiB;AAEvC,MAAME,IAAgB,CAAC,EAAE,UAAAC,GAAU,GAAGN,8BAEjCO,GAAA,EAAQ,GAAGP,GACV,UAAAQ,gBAAAA,EAAAA,KAACC,GAAA,EAAc,WAAU,uBACvB,UAAA;AAAA,EAAAP,gBAAAA,EAAAA,IAACQ,GAAA,EAAY,WAAU,WAAU,UAAA,UAAM;AAAA,EACvCR,gBAAAA,EAAAA,IAACS,GAAA,EAAkB,WAAU,WAAU,UAAA,4CAAwC;AAAA,EAC/ET,gBAAAA,EAAAA,IAACL,GAAA,EAAQ,WAAU,+WAChB,UAAAS,EAAA,CACH;AAAA,EAAA,CACF,EAAA,CACF,GAIEM,IAAed,EAAM,WAGzB,CAAC,EAAE,WAAAC,GAAW,GAAGC,KAASC,MAC1BO,gBAAAA,EAAAA,KAAC,OAAA,EAAI,WAAU,mCAAkC,sBAAmB,IAClE,UAAA;AAAA,EAAAN,gBAAAA,EAAAA,IAACW,GAAA,EAAO,WAAU,mCAAA,CAAmC;AAAA,EACrDX,gBAAAA,EAAAA;AAAAA,IAACC,EAAiB;AAAA,IAAjB;AAAA,MACC,KAAAF;AAAA,MACA,WAAWG;AAAA,QACT;AAAA,QACAL;AAAA,MAAA;AAAA,MAED,GAAGC;AAAA,IA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,IAAA;AAAA,IAED,GAAGC;AAAA,EAAA;AACN,CACD;AAEDkB,EAAY,cAAcf,EAAiB,KAAK;AAEhD,MAAMgB,IAAkB,CAAC,EAAE,WAAApB,GAAW,GAAGC,QAChCE,gBAAAA,EAAAA,IAAC,UAAK,WAAWE,EAAG,yDAAyDL,CAAS,GAAI,GAAGC,GAAO;AAE7GmB,EAAgB,cAAc;"}
1
+ {"version":3,"file":"command.mjs","sources":["../packages/ui-web/src/command.tsx"],"sourcesContent":["'use client';\n\nimport { type DialogProps } from '@radix-ui/react-dialog';\nimport { Command as CommandPrimitive } from 'cmdk';\nimport { Search } from 'lucide-react';\nimport * as React from 'react';\n\nimport {\n CommandBaseProps,\n CommandEmptyBaseProps,\n CommandGroupBaseProps,\n CommandInputBaseProps,\n CommandItemBaseProps,\n CommandListBaseProps,\n CommandSeparatorBaseProps,\n CommandShortcutBaseProps,\n} from '@gv-tech/ui-core';\nimport { Dialog, DialogContent, DialogDescription, DialogTitle } from './dialog';\nimport { cn } from './lib/utils';\n\nconst Command = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive> & CommandBaseProps\n>(({ className, ...props }, ref) => (\n <CommandPrimitive\n ref={ref}\n className={cn(\n 'bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md',\n className,\n )}\n {...props}\n />\n));\nCommand.displayName = CommandPrimitive?.displayName || 'Command';\n\nconst CommandDialog = ({ children, ...props }: DialogProps) => {\n return (\n <Dialog {...props}>\n <DialogContent className=\"overflow-hidden p-0\">\n <DialogTitle className=\"sr-only\">Search</DialogTitle>\n <DialogDescription className=\"sr-only\">Search for documentation and components.</DialogDescription>\n <Command className=\"[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5\">\n {children}\n </Command>\n </DialogContent>\n </Dialog>\n );\n};\n\nconst CommandInput = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Input>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input> & CommandInputBaseProps\n>(({ className, ...props }, ref) => (\n <div className=\"flex items-center border-b px-3\" cmdk-input-wrapper=\"\">\n <Search className=\"mr-2 h-4 w-4 shrink-0 opacity-50\" />\n <CommandPrimitive.Input\n ref={ref}\n className={cn(\n 'placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-50',\n className,\n )}\n {...props}\n />\n </div>\n));\n\nCommandInput.displayName = CommandPrimitive.Input?.displayName || 'CommandInput';\n\nconst CommandList = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.List> & CommandListBaseProps\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.List\n ref={ref}\n className={cn('max-h-[300px] overflow-x-hidden overflow-y-auto', className)}\n {...props}\n />\n));\n\nCommandList.displayName = CommandPrimitive.List?.displayName || 'CommandList';\n\nconst CommandEmpty = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Empty>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Empty> & CommandEmptyBaseProps\n>((props, ref) => <CommandPrimitive.Empty ref={ref} className=\"py-6 text-center text-sm\" {...props} />);\n\nCommandEmpty.displayName = CommandPrimitive.Empty?.displayName || 'CommandEmpty';\n\nconst CommandGroup = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Group>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Group> & CommandGroupBaseProps\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Group\n ref={ref}\n className={cn(\n 'text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium',\n className,\n )}\n {...props}\n />\n));\n\nCommandGroup.displayName = CommandPrimitive.Group?.displayName || 'CommandGroup';\n\nconst CommandSeparator = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Separator> & CommandSeparatorBaseProps\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Separator ref={ref} className={cn('bg-border -mx-1 h-px', className)} {...props} />\n));\nCommandSeparator.displayName = CommandPrimitive.Separator?.displayName || 'CommandSeparator';\n\nconst CommandItem = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item> & CommandItemBaseProps\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Item\n ref={ref}\n className={cn(\n 'data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',\n className,\n )}\n {...props}\n />\n));\n\nCommandItem.displayName = CommandPrimitive.Item?.displayName || 'CommandItem';\n\nconst CommandShortcut = ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement> & CommandShortcutBaseProps) => {\n return <span className={cn('text-muted-foreground ml-auto text-xs tracking-widest', className)} {...props} />;\n};\nCommandShortcut.displayName = 'CommandShortcut';\n\nexport {\n Command,\n CommandDialog,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n CommandSeparator,\n CommandShortcut,\n};\nexport type {\n CommandEmptyBaseProps as CommandEmptyProps,\n CommandGroupBaseProps as CommandGroupProps,\n CommandInputBaseProps as CommandInputProps,\n CommandItemBaseProps as CommandItemProps,\n CommandListBaseProps as CommandListProps,\n CommandBaseProps as CommandProps,\n CommandSeparatorBaseProps as CommandSeparatorProps,\n CommandShortcutBaseProps as CommandShortcutProps,\n};\n"],"names":["Command","React","className","props","ref","jsx","CommandPrimitive","cn","CommandDialog","children","Dialog","jsxs","DialogContent","DialogTitle","DialogDescription","CommandInput","Search","CommandList","CommandEmpty","CommandGroup","CommandSeparator","CommandItem","CommandShortcut"],"mappings":";;;;;AAoBA,MAAMA,IAAUC,EAAM,WAGpB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BC,gBAAAA,EAAAA;AAAAA,EAACC;AAAAA,EAAA;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAL;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,EAAA;AACN,CACD;AACDH,EAAQ,cAAcM,GAAkB,eAAe;AAEvD,MAAME,IAAgB,CAAC,EAAE,UAAAC,GAAU,GAAGN,8BAEjCO,GAAA,EAAQ,GAAGP,GACV,UAAAQ,gBAAAA,EAAAA,KAACC,GAAA,EAAc,WAAU,uBACvB,UAAA;AAAA,EAAAP,gBAAAA,EAAAA,IAACQ,GAAA,EAAY,WAAU,WAAU,UAAA,UAAM;AAAA,EACvCR,gBAAAA,EAAAA,IAACS,GAAA,EAAkB,WAAU,WAAU,UAAA,4CAAwC;AAAA,EAC/ET,gBAAAA,EAAAA,IAACL,GAAA,EAAQ,WAAU,+WAChB,UAAAS,EAAA,CACH;AAAA,EAAA,CACF,EAAA,CACF,GAIEM,IAAed,EAAM,WAGzB,CAAC,EAAE,WAAAC,GAAW,GAAGC,KAASC,MAC1BO,gBAAAA,EAAAA,KAAC,OAAA,EAAI,WAAU,mCAAkC,sBAAmB,IAClE,UAAA;AAAA,EAAAN,gBAAAA,EAAAA,IAACW,GAAA,EAAO,WAAU,mCAAA,CAAmC;AAAA,EACrDX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AAM,WAGxB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BC,gBAAAA,EAAAA;AAAAA,EAACC,EAAiB;AAAA,EAAjB;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAL;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,EAAA;AACN,CACD;AAEDkB,EAAY,cAAcf,EAAiB,MAAM,eAAe;AAEhE,MAAMgB,IAAkB,CAAC,EAAE,WAAApB,GAAW,GAAGC,QAChCE,gBAAAA,EAAAA,IAAC,UAAK,WAAWE,EAAG,yDAAyDL,CAAS,GAAI,GAAGC,GAAO;AAE7GmB,EAAgB,cAAc;"}
@@ -1,2 +1,2 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./vendor-DQFuDa7q.js"),g=require("react"),s=require("./utils-DKStzUzN.js");function C(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(o,n,a.get?a:{enumerable:!0,get:()=>t[n]})}}return o.default=t,Object.freeze(o)}const r=C(g),j=e.Root2$2,R=e.Trigger,h=e.Group2,y=e.Portal2$1,M=e.Sub2,N=e.RadioGroup2,d=r.forwardRef(({className:t,inset:o,children:n,...a},i)=>e.jsxRuntimeExports.jsxs(e.SubTrigger2,{ref:i,className:s.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none",o&&"pl-8",t),...a,children:[n,e.jsxRuntimeExports.jsx(e.ChevronRight,{className:"ml-auto h-4 w-4"})]}));d.displayName=e.SubTrigger2.displayName;const u=r.forwardRef(({className:t,...o},n)=>e.jsxRuntimeExports.jsx(e.SubContent2,{ref:n,className:s.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=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 z-50 min-w-[8rem] origin-[--radix-context-menu-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-lg",t),...o}));u.displayName=e.SubContent2.displayName;const c=r.forwardRef(({className:t,...o},n)=>e.jsxRuntimeExports.jsx(e.Portal2$1,{children:e.jsxRuntimeExports.jsx(e.Content2$2,{ref:n,className:s.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=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 z-50 max-h-[--radix-context-menu-content-available-height] min-w-[8rem] origin-[--radix-context-menu-content-transform-origin] overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",t),...o})}));c.displayName=e.Content2$2.displayName;const l=r.forwardRef(({className:t,inset:o,...n},a)=>e.jsxRuntimeExports.jsx(e.Item2,{ref:a,className:s.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o&&"pl-8",t),...n}));l.displayName=e.Item2.displayName;const m=r.forwardRef(({className:t,children:o,checked:n,...a},i)=>e.jsxRuntimeExports.jsxs(e.CheckboxItem2,{ref:i,className:s.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:n,...a,children:[e.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsxRuntimeExports.jsx(e.ItemIndicator2,{children:e.jsxRuntimeExports.jsx(e.Check,{className:"h-4 w-4"})})}),o]}));m.displayName=e.CheckboxItem2.displayName;const x=r.forwardRef(({className:t,children:o,...n},a)=>e.jsxRuntimeExports.jsxs(e.RadioItem2,{ref:a,className:s.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...n,children:[e.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsxRuntimeExports.jsx(e.ItemIndicator2,{children:e.jsxRuntimeExports.jsx(e.Circle,{className:"h-4 w-4 fill-current"})})}),o]}));x.displayName=e.RadioItem2.displayName;const p=r.forwardRef(({className:t,inset:o,...n},a)=>e.jsxRuntimeExports.jsx(e.Label2,{ref:a,className:s.cn("text-foreground px-2 py-1.5 text-sm font-semibold",o&&"pl-8",t),...n}));p.displayName=e.Label2.displayName;const f=r.forwardRef(({className:t,...o},n)=>e.jsxRuntimeExports.jsx(e.Separator2,{ref:n,className:s.cn("bg-border -mx-1 my-1 h-px",t),...o}));f.displayName=e.Separator2.displayName;const b=({className:t,...o})=>e.jsxRuntimeExports.jsx("span",{className:s.cn("text-muted-foreground ml-auto text-xs tracking-widest",t),...o});b.displayName="ContextMenuShortcut";exports.ContextMenu=j;exports.ContextMenuCheckboxItem=m;exports.ContextMenuContent=c;exports.ContextMenuGroup=h;exports.ContextMenuItem=l;exports.ContextMenuLabel=p;exports.ContextMenuPortal=y;exports.ContextMenuRadioGroup=N;exports.ContextMenuRadioItem=x;exports.ContextMenuSeparator=f;exports.ContextMenuShortcut=b;exports.ContextMenuSub=M;exports.ContextMenuSubContent=u;exports.ContextMenuSubTrigger=d;exports.ContextMenuTrigger=R;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./vendor-DQFuDa7q.js"),b=require("react"),s=require("./utils--qajXu5A.js");function g(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const a=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(n,o,a.get?a:{enumerable:!0,get:()=>t[o]})}}return n.default=t,Object.freeze(n)}const r=g(b),j=e.Root2$2,M=e.Trigger,R=e.Group2,h=e.Portal2$1,y=e.Sub2,N=e.RadioGroup2,d=r.forwardRef(({className:t,inset:n,children:o,...a},i)=>e.jsxRuntimeExports.jsxs(e.SubTrigger2,{ref:i,className:s.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none",n&&"pl-8",t),...a,children:[o,e.jsxRuntimeExports.jsx(e.ChevronRight,{className:"ml-auto h-4 w-4"})]}));d.displayName=e.SubTrigger2?.displayName||"ContextMenuSubTrigger";const u=r.forwardRef(({className:t,...n},o)=>e.jsxRuntimeExports.jsx(e.SubContent2,{ref:o,className:s.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=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 z-50 min-w-[8rem] origin-[--radix-context-menu-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-lg",t),...n}));u.displayName=e.SubContent2?.displayName||"ContextMenuSubContent";const c=r.forwardRef(({className:t,...n},o)=>e.jsxRuntimeExports.jsx(e.Portal2$1,{children:e.jsxRuntimeExports.jsx(e.Content2$2,{ref:o,className:s.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=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 z-50 max-h-[--radix-context-menu-content-available-height] min-w-[8rem] origin-[--radix-context-menu-content-transform-origin] overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",t),...n})}));c.displayName=e.Content2$2?.displayName||"ContextMenuContent";const x=r.forwardRef(({className:t,inset:n,...o},a)=>e.jsxRuntimeExports.jsx(e.Item2,{ref:a,className:s.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n&&"pl-8",t),...o}));x.displayName=e.Item2?.displayName||"ContextMenuItem";const l=r.forwardRef(({className:t,children:n,checked:o,...a},i)=>e.jsxRuntimeExports.jsxs(e.CheckboxItem2,{ref:i,className:s.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:o,...a,children:[e.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsxRuntimeExports.jsx(e.ItemIndicator2,{children:e.jsxRuntimeExports.jsx(e.Check,{className:"h-4 w-4"})})}),n]}));l.displayName=e.CheckboxItem2?.displayName||"ContextMenuCheckboxItem";const m=r.forwardRef(({className:t,children:n,...o},a)=>e.jsxRuntimeExports.jsxs(e.RadioItem2,{ref:a,className:s.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...o,children:[e.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsxRuntimeExports.jsx(e.ItemIndicator2,{children:e.jsxRuntimeExports.jsx(e.Circle,{className:"h-4 w-4 fill-current"})})}),n]}));m.displayName=e.RadioItem2?.displayName||"ContextMenuRadioItem";const p=r.forwardRef(({className:t,inset:n,...o},a)=>e.jsxRuntimeExports.jsx(e.Label2,{ref:a,className:s.cn("text-foreground px-2 py-1.5 text-sm font-semibold",n&&"pl-8",t),...o}));p.displayName=e.Label2?.displayName||"ContextMenuLabel";const f=r.forwardRef(({className:t,...n},o)=>e.jsxRuntimeExports.jsx(e.Separator2,{ref:o,className:s.cn("bg-border -mx-1 my-1 h-px",t),...n}));f.displayName=e.Separator2?.displayName||"ContextMenuSeparator";const C=({className:t,...n})=>e.jsxRuntimeExports.jsx("span",{className:s.cn("text-muted-foreground ml-auto text-xs tracking-widest",t),...n});C.displayName="ContextMenuShortcut";exports.ContextMenu=j;exports.ContextMenuCheckboxItem=l;exports.ContextMenuContent=c;exports.ContextMenuGroup=R;exports.ContextMenuItem=x;exports.ContextMenuLabel=p;exports.ContextMenuPortal=h;exports.ContextMenuRadioGroup=N;exports.ContextMenuRadioItem=m;exports.ContextMenuSeparator=f;exports.ContextMenuShortcut=C;exports.ContextMenuSub=y;exports.ContextMenuSubContent=u;exports.ContextMenuSubTrigger=d;exports.ContextMenuTrigger=M;
2
2
  //# sourceMappingURL=context-menu.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"context-menu.cjs","sources":["../packages/ui-web/src/context-menu.tsx"],"sourcesContent":["'use client';\nimport * as ContextMenuPrimitive from '@radix-ui/react-context-menu';\nimport { Check, ChevronRight, Circle } from 'lucide-react';\nimport * as React from 'react';\n\nimport {\n ContextMenuBaseProps,\n ContextMenuCheckboxItemBaseProps,\n ContextMenuContentBaseProps,\n ContextMenuGroupBaseProps,\n ContextMenuItemBaseProps,\n ContextMenuLabelBaseProps,\n ContextMenuRadioGroupBaseProps,\n ContextMenuRadioItemBaseProps,\n ContextMenuSeparatorBaseProps,\n ContextMenuShortcutBaseProps,\n ContextMenuSubBaseProps,\n ContextMenuSubContentBaseProps,\n ContextMenuSubTriggerBaseProps,\n ContextMenuTriggerBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst ContextMenu = ContextMenuPrimitive.Root;\n\nconst ContextMenuTrigger = ContextMenuPrimitive.Trigger;\n\nconst ContextMenuGroup = ContextMenuPrimitive.Group;\n\nconst ContextMenuPortal = ContextMenuPrimitive.Portal;\n\nconst ContextMenuSub = ContextMenuPrimitive.Sub;\n\nconst ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;\n\nconst ContextMenuSubTrigger = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubTrigger> & ContextMenuSubTriggerBaseProps\n>(({ className, inset, children, ...props }, ref) => (\n <ContextMenuPrimitive.SubTrigger\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none',\n inset && 'pl-8',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRight className=\"ml-auto h-4 w-4\" />\n </ContextMenuPrimitive.SubTrigger>\n));\nContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;\n\nconst ContextMenuSubContent = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubContent> & ContextMenuSubContentBaseProps\n>(({ className, ...props }, ref) => (\n <ContextMenuPrimitive.SubContent\n ref={ref}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=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 z-50 min-w-[8rem] origin-[--radix-context-menu-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-lg',\n className,\n )}\n {...props}\n />\n));\nContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;\n\nconst ContextMenuContent = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Content> & ContextMenuContentBaseProps\n>(({ className, ...props }, ref) => (\n <ContextMenuPrimitive.Portal>\n <ContextMenuPrimitive.Content\n ref={ref}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=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 z-50 max-h-[--radix-context-menu-content-available-height] min-w-[8rem] origin-[--radix-context-menu-content-transform-origin] overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md',\n className,\n )}\n {...props}\n />\n </ContextMenuPrimitive.Portal>\n));\nContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;\n\nconst ContextMenuItem = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Item> & ContextMenuItemBaseProps\n>(({ className, inset, ...props }, ref) => (\n <ContextMenuPrimitive.Item\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n));\nContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;\n\nconst ContextMenuCheckboxItem = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.CheckboxItem> & ContextMenuCheckboxItemBaseProps\n>(({ className, children, checked, ...props }, ref) => (\n <ContextMenuPrimitive.CheckboxItem\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none 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 <ContextMenuPrimitive.ItemIndicator>\n <Check className=\"h-4 w-4\" />\n </ContextMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </ContextMenuPrimitive.CheckboxItem>\n));\nContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;\n\nconst ContextMenuRadioItem = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.RadioItem> & ContextMenuRadioItemBaseProps\n>(({ className, children, ...props }, ref) => (\n <ContextMenuPrimitive.RadioItem\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none 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 <ContextMenuPrimitive.ItemIndicator>\n <Circle className=\"h-4 w-4 fill-current\" />\n </ContextMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </ContextMenuPrimitive.RadioItem>\n));\nContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;\n\nconst ContextMenuLabel = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Label> & ContextMenuLabelBaseProps\n>(({ className, inset, ...props }, ref) => (\n <ContextMenuPrimitive.Label\n ref={ref}\n className={cn('text-foreground px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className)}\n {...props}\n />\n));\nContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;\n\nconst ContextMenuSeparator = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Separator> & ContextMenuSeparatorBaseProps\n>(({ className, ...props }, ref) => (\n <ContextMenuPrimitive.Separator ref={ref} className={cn('bg-border -mx-1 my-1 h-px', className)} {...props} />\n));\nContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName;\n\nconst ContextMenuShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement> & ContextMenuShortcutBaseProps) => {\n return <span className={cn('text-muted-foreground ml-auto text-xs tracking-widest', className)} {...props} />;\n};\nContextMenuShortcut.displayName = 'ContextMenuShortcut';\n\nexport {\n ContextMenu,\n ContextMenuCheckboxItem,\n ContextMenuContent,\n ContextMenuGroup,\n ContextMenuItem,\n ContextMenuLabel,\n ContextMenuPortal,\n ContextMenuRadioGroup,\n ContextMenuRadioItem,\n ContextMenuSeparator,\n ContextMenuShortcut,\n ContextMenuSub,\n ContextMenuSubContent,\n ContextMenuSubTrigger,\n ContextMenuTrigger,\n};\n\nexport type {\n ContextMenuCheckboxItemBaseProps as ContextMenuCheckboxItemProps,\n ContextMenuContentBaseProps as ContextMenuContentProps,\n ContextMenuGroupBaseProps as ContextMenuGroupProps,\n ContextMenuItemBaseProps as ContextMenuItemProps,\n ContextMenuLabelBaseProps as ContextMenuLabelProps,\n ContextMenuBaseProps as ContextMenuProps,\n ContextMenuRadioGroupBaseProps as ContextMenuRadioGroupProps,\n ContextMenuRadioItemBaseProps as ContextMenuRadioItemProps,\n ContextMenuSeparatorBaseProps as ContextMenuSeparatorProps,\n ContextMenuShortcutBaseProps as ContextMenuShortcutProps,\n ContextMenuSubContentBaseProps as ContextMenuSubContentProps,\n ContextMenuSubBaseProps as ContextMenuSubProps,\n ContextMenuSubTriggerBaseProps as ContextMenuSubTriggerProps,\n ContextMenuTriggerBaseProps as ContextMenuTriggerProps,\n};\n"],"names":["ContextMenu","ContextMenuPrimitive.Root","ContextMenuTrigger","ContextMenuPrimitive.Trigger","ContextMenuGroup","ContextMenuPrimitive.Group","ContextMenuPortal","ContextMenuPrimitive.Portal","ContextMenuSub","ContextMenuPrimitive.Sub","ContextMenuRadioGroup","ContextMenuPrimitive.RadioGroup","ContextMenuSubTrigger","React","className","inset","children","props","ref","jsxs","ContextMenuPrimitive.SubTrigger","cn","jsx","ChevronRight","ContextMenuSubContent","ContextMenuPrimitive.SubContent","ContextMenuContent","ContextMenuPrimitive.Content","ContextMenuItem","ContextMenuPrimitive.Item","ContextMenuCheckboxItem","checked","ContextMenuPrimitive.CheckboxItem","ContextMenuPrimitive.ItemIndicator","Check","ContextMenuRadioItem","ContextMenuPrimitive.RadioItem","Circle","ContextMenuLabel","ContextMenuPrimitive.Label","ContextMenuSeparator","ContextMenuPrimitive.Separator","ContextMenuShortcut"],"mappings":"mdAuBMA,EAAcC,EAAAA,QAEdC,EAAqBC,EAAAA,QAErBC,EAAmBC,EAAAA,OAEnBC,EAAoBC,EAAAA,UAEpBC,EAAiBC,EAAAA,KAEjBC,EAAwBC,EAAAA,YAExBC,EAAwBC,EAAM,WAGlC,CAAC,CAAE,UAAAC,EAAW,MAAAC,EAAO,SAAAC,EAAU,GAAGC,GAASC,IAC3CC,EAAAA,kBAAAA,KAACC,EAAAA,YAAA,CACC,IAAAF,EACA,UAAWG,EAAAA,GACT,6MACAN,GAAS,OACTD,CAAA,EAED,GAAGG,EAEH,SAAA,CAAAD,EACDM,EAAAA,kBAAAA,IAACC,EAAAA,aAAA,CAAa,UAAU,iBAAA,CAAkB,CAAA,CAAA,CAC5C,CACD,EACDX,EAAsB,YAAcQ,EAAAA,YAAgC,YAEpE,MAAMI,EAAwBX,EAAM,WAGlC,CAAC,CAAE,UAAAC,EAAW,GAAGG,CAAA,EAASC,IAC1BI,EAAAA,kBAAAA,IAACG,EAAAA,YAAA,CACC,IAAAP,EACA,U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A,WAAA,CACC,IAAAlB,EACA,UAAWG,EAAAA,GACT,qNACAP,CAAA,EAED,GAAGG,EAEJ,SAAA,CAAAK,EAAAA,kBAAAA,IAAC,OAAA,CAAK,UAAU,+DACd,SAAAA,EAAAA,kBAAAA,IAACW,EAAAA,eAAA,CACC,SAAAX,EAAAA,kBAAAA,IAACe,EAAAA,OAAA,CAAO,UAAU,sBAAA,CAAuB,CAAA,CAC3C,EACF,EACCrB,CAAA,CAAA,CACH,CACD,EACDmB,EAAqB,YAAcC,EAAAA,WAA+B,YAElE,MAAME,EAAmBzB,EAAM,WAG7B,CAAC,CAAE,UAAAC,EAAW,MAAAC,EAAO,GAAGE,GAASC,IACjCI,EAAAA,kBAAAA,IAACiB,EAAAA,OAAA,CACC,IAAArB,EACA,UAAWG,EAAAA,GAAG,oDAAqDN,GAAS,OAAQD,CAAS,EAC5F,GAAGG,CAAA,CACN,CACD,EACDqB,EAAiB,YAAcC,EAAAA,OAA2B,YAE1D,MAAMC,EAAuB3B,EAAM,WAGjC,CAAC,CAAE,UAAAC,EAAW,GAAGG,CAAA,EAASC,IAC1BI,EAAAA,kBAAAA,IAACmB,EAAAA,WAAA,CAA+B,IAAAvB,EAAU,UAAWG,EAAAA,GAAG,4BAA6BP,CAAS,EAAI,GAAGG,EAAO,CAC7G,EACDuB,EAAqB,YAAcC,EAAAA,WAA+B,YAElE,MAAMC,EAAsB,CAAC,CAC3B,UAAA5B,EACA,GAAGG,CACL,IACSK,EAAAA,kBAAAA,IAAC,QAAK,UAAWD,EAAAA,GAAG,wDAAyDP,CAAS,EAAI,GAAGG,EAAO,EAE7GyB,EAAoB,YAAc"}
1
+ {"version":3,"file":"context-menu.cjs","sources":["../packages/ui-web/src/context-menu.tsx"],"sourcesContent":["'use client';\nimport * as ContextMenuPrimitive from '@radix-ui/react-context-menu';\nimport { Check, ChevronRight, Circle } from 'lucide-react';\nimport * as React from 'react';\n\nimport {\n ContextMenuBaseProps,\n ContextMenuCheckboxItemBaseProps,\n ContextMenuContentBaseProps,\n ContextMenuGroupBaseProps,\n ContextMenuItemBaseProps,\n ContextMenuLabelBaseProps,\n ContextMenuRadioGroupBaseProps,\n ContextMenuRadioItemBaseProps,\n ContextMenuSeparatorBaseProps,\n ContextMenuShortcutBaseProps,\n ContextMenuSubBaseProps,\n ContextMenuSubContentBaseProps,\n ContextMenuSubTriggerBaseProps,\n ContextMenuTriggerBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst ContextMenu = ContextMenuPrimitive.Root;\n\nconst ContextMenuTrigger = ContextMenuPrimitive.Trigger;\n\nconst ContextMenuGroup = ContextMenuPrimitive.Group;\n\nconst ContextMenuPortal = ContextMenuPrimitive.Portal;\n\nconst ContextMenuSub = ContextMenuPrimitive.Sub;\n\nconst ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;\n\nconst ContextMenuSubTrigger = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubTrigger> & ContextMenuSubTriggerBaseProps\n>(({ className, inset, children, ...props }, ref) => (\n <ContextMenuPrimitive.SubTrigger\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none',\n inset && 'pl-8',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRight className=\"ml-auto h-4 w-4\" />\n </ContextMenuPrimitive.SubTrigger>\n));\nContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger?.displayName || 'ContextMenuSubTrigger';\n\nconst ContextMenuSubContent = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubContent> & ContextMenuSubContentBaseProps\n>(({ className, ...props }, ref) => (\n <ContextMenuPrimitive.SubContent\n ref={ref}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=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 z-50 min-w-[8rem] origin-[--radix-context-menu-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-lg',\n className,\n )}\n {...props}\n />\n));\nContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent?.displayName || 'ContextMenuSubContent';\n\nconst ContextMenuContent = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Content> & ContextMenuContentBaseProps\n>(({ className, ...props }, ref) => (\n <ContextMenuPrimitive.Portal>\n <ContextMenuPrimitive.Content\n ref={ref}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=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 z-50 max-h-[--radix-context-menu-content-available-height] min-w-[8rem] origin-[--radix-context-menu-content-transform-origin] overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md',\n className,\n )}\n {...props}\n />\n </ContextMenuPrimitive.Portal>\n));\nContextMenuContent.displayName = ContextMenuPrimitive.Content?.displayName || 'ContextMenuContent';\n\nconst ContextMenuItem = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Item> & ContextMenuItemBaseProps\n>(({ className, inset, ...props }, ref) => (\n <ContextMenuPrimitive.Item\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n));\nContextMenuItem.displayName = ContextMenuPrimitive.Item?.displayName || 'ContextMenuItem';\n\nconst ContextMenuCheckboxItem = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.CheckboxItem> & ContextMenuCheckboxItemBaseProps\n>(({ className, children, checked, ...props }, ref) => (\n <ContextMenuPrimitive.CheckboxItem\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none 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 <ContextMenuPrimitive.ItemIndicator>\n <Check className=\"h-4 w-4\" />\n </ContextMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </ContextMenuPrimitive.CheckboxItem>\n));\nContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem?.displayName || 'ContextMenuCheckboxItem';\n\nconst ContextMenuRadioItem = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.RadioItem> & ContextMenuRadioItemBaseProps\n>(({ className, children, ...props }, ref) => (\n <ContextMenuPrimitive.RadioItem\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none 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 <ContextMenuPrimitive.ItemIndicator>\n <Circle className=\"h-4 w-4 fill-current\" />\n </ContextMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </ContextMenuPrimitive.RadioItem>\n));\nContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem?.displayName || 'ContextMenuRadioItem';\n\nconst ContextMenuLabel = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Label> & ContextMenuLabelBaseProps\n>(({ className, inset, ...props }, ref) => (\n <ContextMenuPrimitive.Label\n ref={ref}\n className={cn('text-foreground px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className)}\n {...props}\n />\n));\nContextMenuLabel.displayName = ContextMenuPrimitive.Label?.displayName || 'ContextMenuLabel';\n\nconst ContextMenuSeparator = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Separator> & ContextMenuSeparatorBaseProps\n>(({ className, ...props }, ref) => (\n <ContextMenuPrimitive.Separator ref={ref} className={cn('bg-border -mx-1 my-1 h-px', className)} {...props} />\n));\nContextMenuSeparator.displayName = ContextMenuPrimitive.Separator?.displayName || 'ContextMenuSeparator';\n\nconst ContextMenuShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement> & ContextMenuShortcutBaseProps) => {\n return <span className={cn('text-muted-foreground ml-auto text-xs tracking-widest', className)} {...props} />;\n};\nContextMenuShortcut.displayName = 'ContextMenuShortcut';\n\nexport {\n ContextMenu,\n ContextMenuCheckboxItem,\n ContextMenuContent,\n ContextMenuGroup,\n ContextMenuItem,\n ContextMenuLabel,\n ContextMenuPortal,\n ContextMenuRadioGroup,\n ContextMenuRadioItem,\n ContextMenuSeparator,\n ContextMenuShortcut,\n ContextMenuSub,\n ContextMenuSubContent,\n ContextMenuSubTrigger,\n ContextMenuTrigger,\n};\n\nexport type {\n ContextMenuCheckboxItemBaseProps as ContextMenuCheckboxItemProps,\n ContextMenuContentBaseProps as ContextMenuContentProps,\n ContextMenuGroupBaseProps as ContextMenuGroupProps,\n ContextMenuItemBaseProps as ContextMenuItemProps,\n ContextMenuLabelBaseProps as ContextMenuLabelProps,\n ContextMenuBaseProps as ContextMenuProps,\n ContextMenuRadioGroupBaseProps as ContextMenuRadioGroupProps,\n ContextMenuRadioItemBaseProps as ContextMenuRadioItemProps,\n ContextMenuSeparatorBaseProps as ContextMenuSeparatorProps,\n ContextMenuShortcutBaseProps as ContextMenuShortcutProps,\n ContextMenuSubContentBaseProps as ContextMenuSubContentProps,\n ContextMenuSubBaseProps as ContextMenuSubProps,\n ContextMenuSubTriggerBaseProps as ContextMenuSubTriggerProps,\n ContextMenuTriggerBaseProps as ContextMenuTriggerProps,\n};\n"],"names":["ContextMenu","ContextMenuPrimitive.Root","ContextMenuTrigger","ContextMenuPrimitive.Trigger","ContextMenuGroup","ContextMenuPrimitive.Group","ContextMenuPortal","ContextMenuPrimitive.Portal","ContextMenuSub","ContextMenuPrimitive.Sub","ContextMenuRadioGroup","ContextMenuPrimitive.RadioGroup","ContextMenuSubTrigger","React","className","inset","children","props","ref","jsxs","ContextMenuPrimitive.SubTrigger","cn","jsx","ChevronRight","ContextMenuSubContent","ContextMenuPrimitive.SubContent","ContextMenuContent","ContextMenuPrimitive.Content","ContextMenuItem","ContextMenuPrimitive.Item","ContextMenuCheckboxItem","checked","ContextMenuPrimitive.CheckboxItem","ContextMenuPrimitive.ItemIndicator","Check","ContextMenuRadioItem","ContextMenuPrimitive.RadioItem","Circle","ContextMenuLabel","ContextMenuPrimitive.Label","ContextMenuSeparator","ContextMenuPrimitive.Separator","ContextMenuShortcut"],"mappings":"mdAuBMA,EAAcC,EAAAA,QAEdC,EAAqBC,EAAAA,QAErBC,EAAmBC,EAAAA,OAEnBC,EAAoBC,EAAAA,UAEpBC,EAAiBC,EAAAA,KAEjBC,EAAwBC,EAAAA,YAExBC,EAAwBC,EAAM,WAGlC,CAAC,CAAE,UAAAC,EAAW,MAAAC,EAAO,SAAAC,EAAU,GAAGC,GAASC,IAC3CC,EAAAA,kBAA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AElF,MAAMC,EAAsB,CAAC,CAC3B,UAAA5B,EACA,GAAGG,CACL,IACSK,EAAAA,kBAAAA,IAAC,QAAK,UAAWD,EAAAA,GAAG,wDAAyDP,CAAS,EAAI,GAAGG,EAAO,EAE7GyB,EAAoB,YAAc"}
@@ -1,53 +1,53 @@
1
1
  "use client";
2
- import { j as a, B as i, l as h, G as l, J as c, K as m, M as u, N as p, Q as f, w as N, U as x, V as y, W as g, X as b, Y as C, Z as w, _ as j, $ as M, a0 as R } from "./vendor-DxBXMLEx.mjs";
3
- import * as d from "react";
4
- import { c as n } from "./utils-Dk-Gx69q.mjs";
5
- const J = C, K = R, Q = w, U = c, V = M, W = j, v = d.forwardRef(({ className: e, inset: t, children: o, ...s }, r) => /* @__PURE__ */ a.jsxs(
2
+ import { j as a, B as i, l as C, G as l, J as c, K as m, M as u, N as x, Q as p, w as h, U as f, V as N, W as b, X as g, Y as y, Z as M, _ as w, $ as j, a0 as R } from "./vendor-DxBXMLEx.mjs";
3
+ import * as r from "react";
4
+ import { c as s } from "./utils-CgPEtJt0.mjs";
5
+ const J = y, K = R, Q = M, U = c, V = j, W = w, v = r.forwardRef(({ className: e, inset: t, children: o, ...n }, d) => /* @__PURE__ */ a.jsxs(
6
6
  i,
7
7
  {
8
- ref: r,
9
- className: n(
8
+ ref: d,
9
+ className: s(
10
10
  "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none",
11
11
  t && "pl-8",
12
12
  e
13
13
  ),
14
- ...s,
14
+ ...n,
15
15
  children: [
16
16
  o,
17
- /* @__PURE__ */ a.jsx(h, { className: "ml-auto h-4 w-4" })
17
+ /* @__PURE__ */ a.jsx(C, { className: "ml-auto h-4 w-4" })
18
18
  ]
19
19
  }
20
20
  ));
21
- v.displayName = i.displayName;
22
- const S = d.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsx(
21
+ v.displayName = i?.displayName || "ContextMenuSubTrigger";
22
+ const S = r.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsx(
23
23
  l,
24
24
  {
25
25
  ref: o,
26
- className: n(
26
+ className: s(
27
27
  "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=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 z-50 min-w-[8rem] origin-[--radix-context-menu-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-lg",
28
28
  e
29
29
  ),
30
30
  ...t
31
31
  }
32
32
  ));
33
- S.displayName = l.displayName;
34
- const I = d.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsx(c, { children: /* @__PURE__ */ a.jsx(
33
+ S.displayName = l?.displayName || "ContextMenuSubContent";
34
+ const I = r.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsx(c, { children: /* @__PURE__ */ a.jsx(
35
35
  m,
36
36
  {
37
37
  ref: o,
38
- className: n(
38
+ className: s(
39
39
  "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=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 z-50 max-h-[--radix-context-menu-content-available-height] min-w-[8rem] origin-[--radix-context-menu-content-transform-origin] overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
40
40
  e
41
41
  ),
42
42
  ...t
43
43
  }
44
44
  ) }));
45
- I.displayName = m.displayName;
46
- const z = d.forwardRef(({ className: e, inset: t, ...o }, s) => /* @__PURE__ */ a.jsx(
45
+ I.displayName = m?.displayName || "ContextMenuContent";
46
+ const z = r.forwardRef(({ className: e, inset: t, ...o }, n) => /* @__PURE__ */ a.jsx(
47
47
  u,
48
48
  {
49
- ref: s,
50
- className: n(
49
+ ref: n,
50
+ className: s(
51
51
  "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
52
52
  t && "pl-8",
53
53
  e
@@ -55,66 +55,66 @@ const z = d.forwardRef(({ className: e, inset: t, ...o }, s) => /* @__PURE__ */
55
55
  ...o
56
56
  }
57
57
  ));
58
- z.displayName = u.displayName;
59
- const G = d.forwardRef(({ className: e, children: t, checked: o, ...s }, r) => /* @__PURE__ */ a.jsxs(
60
- p,
58
+ z.displayName = u?.displayName || "ContextMenuItem";
59
+ const k = r.forwardRef(({ className: e, children: t, checked: o, ...n }, d) => /* @__PURE__ */ a.jsxs(
60
+ x,
61
61
  {
62
- ref: r,
63
- className: n(
62
+ ref: d,
63
+ className: s(
64
64
  "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
65
65
  e
66
66
  ),
67
67
  checked: o,
68
- ...s,
68
+ ...n,
69
69
  children: [
70
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(f, { children: /* @__PURE__ */ a.jsx(N, { className: "h-4 w-4" }) }) }),
70
+ /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(p, { children: /* @__PURE__ */ a.jsx(h, { className: "h-4 w-4" }) }) }),
71
71
  t
72
72
  ]
73
73
  }
74
74
  ));
75
- G.displayName = p.displayName;
76
- const k = d.forwardRef(({ className: e, children: t, ...o }, s) => /* @__PURE__ */ a.jsxs(
77
- x,
75
+ k.displayName = x?.displayName || "ContextMenuCheckboxItem";
76
+ const G = r.forwardRef(({ className: e, children: t, ...o }, n) => /* @__PURE__ */ a.jsxs(
77
+ f,
78
78
  {
79
- ref: s,
80
- className: n(
79
+ ref: n,
80
+ className: s(
81
81
  "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
82
82
  e
83
83
  ),
84
84
  ...o,
85
85
  children: [
86
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(f, { children: /* @__PURE__ */ a.jsx(y, { className: "h-4 w-4 fill-current" }) }) }),
86
+ /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(p, { children: /* @__PURE__ */ a.jsx(N, { className: "h-4 w-4 fill-current" }) }) }),
87
87
  t
88
88
  ]
89
89
  }
90
90
  ));
91
- k.displayName = x.displayName;
92
- const T = d.forwardRef(({ className: e, inset: t, ...o }, s) => /* @__PURE__ */ a.jsx(
93
- g,
91
+ G.displayName = f?.displayName || "ContextMenuRadioItem";
92
+ const T = r.forwardRef(({ className: e, inset: t, ...o }, n) => /* @__PURE__ */ a.jsx(
93
+ b,
94
94
  {
95
- ref: s,
96
- className: n("text-foreground px-2 py-1.5 text-sm font-semibold", t && "pl-8", e),
95
+ ref: n,
96
+ className: s("text-foreground px-2 py-1.5 text-sm font-semibold", t && "pl-8", e),
97
97
  ...o
98
98
  }
99
99
  ));
100
- T.displayName = g.displayName;
101
- const L = d.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsx(b, { ref: o, className: n("bg-border -mx-1 my-1 h-px", e), ...t }));
102
- L.displayName = b.displayName;
100
+ T.displayName = b?.displayName || "ContextMenuLabel";
101
+ const L = r.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a.jsx(g, { ref: o, className: s("bg-border -mx-1 my-1 h-px", e), ...t }));
102
+ L.displayName = g?.displayName || "ContextMenuSeparator";
103
103
  const P = ({
104
104
  className: e,
105
105
  ...t
106
- }) => /* @__PURE__ */ a.jsx("span", { className: n("text-muted-foreground ml-auto text-xs tracking-widest", e), ...t });
106
+ }) => /* @__PURE__ */ a.jsx("span", { className: s("text-muted-foreground ml-auto text-xs tracking-widest", e), ...t });
107
107
  P.displayName = "ContextMenuShortcut";
108
108
  export {
109
109
  J as ContextMenu,
110
- G as ContextMenuCheckboxItem,
110
+ k as ContextMenuCheckboxItem,
111
111
  I as ContextMenuContent,
112
112
  Q as ContextMenuGroup,
113
113
  z as ContextMenuItem,
114
114
  T as ContextMenuLabel,
115
115
  U as ContextMenuPortal,
116
116
  W as ContextMenuRadioGroup,
117
- k as ContextMenuRadioItem,
117
+ G as ContextMenuRadioItem,
118
118
  L as ContextMenuSeparator,
119
119
  P as ContextMenuShortcut,
120
120
  V as ContextMenuSub,