@brightlocal/ui-components 2.21.0 → 2.23.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 (70) hide show
  1. package/README.md +2 -1
  2. package/component-meta.json +40 -5
  3. package/dist/alert.cjs +1 -1
  4. package/dist/alert.d.ts.map +1 -1
  5. package/dist/alert.js +31 -31
  6. package/dist/blocks/data-table.cjs +1 -1
  7. package/dist/blocks/data-table.d.ts +35 -3
  8. package/dist/blocks/data-table.d.ts.map +1 -1
  9. package/dist/blocks/data-table.js +178 -152
  10. package/dist/context-menu.cjs +1 -1
  11. package/dist/context-menu.d.ts.map +1 -1
  12. package/dist/context-menu.js +111 -109
  13. package/dist/dropdown-menu.cjs +1 -1
  14. package/dist/dropdown-menu.d.ts.map +1 -1
  15. package/dist/dropdown-menu.js +109 -121
  16. package/dist/hover-card.cjs +1 -1
  17. package/dist/hover-card.d.ts.map +1 -1
  18. package/dist/hover-card.js +45 -45
  19. package/dist/index.cjs +1 -1
  20. package/dist/index.d.ts +1 -0
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/index.js +311 -308
  23. package/dist/lib/utils.cjs +1 -1
  24. package/dist/lib/utils.d.ts +1 -0
  25. package/dist/lib/utils.d.ts.map +1 -1
  26. package/dist/lib/utils.js +7 -5
  27. package/dist/loading.cjs +1 -0
  28. package/dist/loading.d.ts +46 -0
  29. package/dist/loading.d.ts.map +1 -0
  30. package/dist/loading.js +142 -0
  31. package/dist/map.cjs +1 -1
  32. package/dist/map.d.ts.map +1 -1
  33. package/dist/map.js +1 -1
  34. package/dist/menubar.cjs +1 -1
  35. package/dist/menubar.d.ts.map +1 -1
  36. package/dist/menubar.js +97 -99
  37. package/dist/navigation-menu.cjs +1 -1
  38. package/dist/navigation-menu.d.ts +5 -7
  39. package/dist/navigation-menu.d.ts.map +1 -1
  40. package/dist/navigation-menu.js +82 -90
  41. package/dist/popover.cjs +1 -1
  42. package/dist/popover.d.ts.map +1 -1
  43. package/dist/popover.js +27 -26
  44. package/dist/select.cjs +2 -2
  45. package/dist/select.d.ts.map +1 -1
  46. package/dist/select.js +29 -35
  47. package/dist/table.cjs +1 -1
  48. package/dist/table.d.ts +22 -2
  49. package/dist/table.d.ts.map +1 -1
  50. package/dist/table.js +57 -43
  51. package/dist/tooltip.cjs +1 -1
  52. package/dist/tooltip.d.ts +21 -2
  53. package/dist/tooltip.d.ts.map +1 -1
  54. package/dist/tooltip.js +37 -34
  55. package/package.json +1 -1
  56. package/src/blocks/data-table.tsx +58 -4
  57. package/src/components/alert.tsx +9 -13
  58. package/src/components/context-menu.tsx +8 -3
  59. package/src/components/dropdown-menu.tsx +6 -15
  60. package/src/components/hover-card.tsx +6 -3
  61. package/src/components/loading.tsx +322 -0
  62. package/src/components/map.tsx +3 -1
  63. package/src/components/menubar.tsx +6 -5
  64. package/src/components/navigation-menu.tsx +80 -101
  65. package/src/components/popover.tsx +6 -2
  66. package/src/components/select.tsx +5 -8
  67. package/src/components/table.tsx +44 -7
  68. package/src/components/tooltip.tsx +36 -8
  69. package/src/index.ts +1 -0
  70. package/src/lib/utils.ts +3 -0
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),I=require("react"),P=require("@radix-ui/react-context-menu"),m=require("@brightlocal/icons"),d=require("@brightlocal/ui-components/lib/utils"),z=require("@brightlocal/ui-components/hooks/use-overlay-pointer-lock");function x(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const s=x(I),a=x(P);function p({...e}){return o.jsx(a.Root,{"data-slot":"context-menu",...e})}p.displayName="ContextMenu";const f=s.forwardRef(({dataHook:e,...n},t)=>o.jsx(a.Trigger,{ref:t,"data-hook":e,"data-slot":"context-menu-trigger",...n}));f.displayName="ContextMenuTrigger";function b({...e}){return o.jsx(a.Group,{"data-slot":"context-menu-group",...e})}b.displayName="ContextMenuGroup";function g({...e}){return o.jsx(a.Portal,{"data-slot":"context-menu-portal",...e})}g.displayName="ContextMenuPortal";function C({...e}){return o.jsx(a.Sub,{"data-slot":"context-menu-sub",...e})}C.displayName="ContextMenuSub";function M({...e}){return o.jsx(a.RadioGroup,{"data-slot":"context-menu-radio-group",...e})}M.displayName="ContextMenuRadioGroup";const h=s.forwardRef(({className:e,inset:n,children:t,dataHook:r,trackingEl:u,trackingLabel:i,...c},l)=>o.jsxs(a.SubTrigger,{ref:l,className:d.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none",n&&"pl-8",e),"data-hook":r,"data-slot":"context-menu-sub-trigger","data-tracking-el":u,"data-tracking-label":i,...c,children:[t,o.jsx(m.ChevronRight,{className:"ml-auto"})]}));h.displayName="ContextMenuSubTrigger";const y=s.forwardRef(({className:e,...n},t)=>o.jsx(a.SubContent,{ref:t,className:d.cn("border-border 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] overflow-hidden rounded-md border p-1 shadow-md",e),"data-slot":"context-menu-sub-content",...n}));y.displayName="ContextMenuSubContent";const j=s.forwardRef(({className:e,...n},t)=>(z.useOverlayPointerLock(),o.jsx(a.Portal,{children:o.jsx(a.Content,{ref:t,className:d.cn("border-border bg-popover text-popover-foreground animate-in fade-in-80 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] overflow-hidden rounded-md border p-1 shadow-md",e),"data-slot":"context-menu-content",...n})})));j.displayName="ContextMenuContent";const N=s.forwardRef(({className:e,inset:n,dataHook:t,trackingEl:r,trackingLabel:u,...i},c)=>o.jsx(a.Item,{ref:c,className:d.cn("focus:bg-accent focus: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]:pointer-events-none data-[disabled]:opacity-50",n&&"pl-8",e),"data-hook":t,"data-slot":"context-menu-item","data-tracking-el":r,"data-tracking-label":u,...i}));N.displayName="ContextMenuItem";const k=s.forwardRef(({className:e,children:n,checked:t,dataHook:r,trackingEl:u,trackingLabel:i,...c},l)=>o.jsxs(a.CheckboxItem,{ref:l,checked:t,className:d.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",e),"data-hook":r,"data-slot":"context-menu-checkbox-item","data-tracking-el":u,"data-tracking-label":i,...c,children:[o.jsx("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:o.jsx(a.ItemIndicator,{children:o.jsx(m.Check,{})})}),n]}));k.displayName="ContextMenuCheckboxItem";const R=s.forwardRef(({className:e,children:n,dataHook:t,trackingEl:r,trackingLabel:u,...i},c)=>o.jsxs(a.RadioItem,{ref:c,className:d.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",e),"data-hook":t,"data-slot":"context-menu-radio-item","data-tracking-el":r,"data-tracking-label":u,...i,children:[o.jsx("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:o.jsx(a.ItemIndicator,{children:o.jsx(m.Circle,{className:"fill-current",size:8})})}),n]}));R.displayName="ContextMenuRadioItem";const S=s.forwardRef(({className:e,inset:n,...t},r)=>o.jsx(a.Label,{ref:r,className:d.cn("text-foreground px-2 py-1.5 text-sm font-semibold",n&&"pl-8",e),"data-slot":"context-menu-label",...t}));S.displayName="ContextMenuLabel";const v=s.forwardRef(({className:e,...n},t)=>o.jsx(a.Separator,{ref:t,className:d.cn("bg-border -mx-1 my-1 h-px",e),"data-slot":"context-menu-separator",...n}));v.displayName="ContextMenuSeparator";const w=s.forwardRef(({className:e,...n},t)=>o.jsx("span",{ref:t,className:d.cn("text-muted-foreground ml-auto text-xs tracking-widest",e),"data-slot":"context-menu-shortcut",...n}));w.displayName="ContextMenuShortcut";exports.ContextMenu=p;exports.ContextMenuCheckboxItem=k;exports.ContextMenuContent=j;exports.ContextMenuGroup=b;exports.ContextMenuItem=N;exports.ContextMenuLabel=S;exports.ContextMenuPortal=g;exports.ContextMenuRadioGroup=M;exports.ContextMenuRadioItem=R;exports.ContextMenuSeparator=v;exports.ContextMenuShortcut=w;exports.ContextMenuSub=C;exports.ContextMenuSubContent=y;exports.ContextMenuSubTrigger=h;exports.ContextMenuTrigger=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),w=require("react"),T=require("@radix-ui/react-context-menu"),x=require("@brightlocal/icons"),s=require("@brightlocal/ui-components/lib/utils"),O=require("@brightlocal/ui-components/hooks/use-overlay-pointer-lock");function m(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const u=m(w),a=m(T);function p({...e}){return o.jsx(a.Root,{"data-slot":"context-menu",...e})}p.displayName="ContextMenu";const f=u.forwardRef(({dataHook:e,...n},t)=>o.jsx(a.Trigger,{ref:t,"data-hook":e,"data-slot":"context-menu-trigger",...n}));f.displayName="ContextMenuTrigger";function C({...e}){return o.jsx(a.Group,{"data-slot":"context-menu-group",...e})}C.displayName="ContextMenuGroup";function b({...e}){return o.jsx(a.Portal,{"data-slot":"context-menu-portal",...e})}b.displayName="ContextMenuPortal";function g({...e}){return o.jsx(a.Sub,{"data-slot":"context-menu-sub",...e})}g.displayName="ContextMenuSub";function M({...e}){return o.jsx(a.RadioGroup,{"data-slot":"context-menu-radio-group",...e})}M.displayName="ContextMenuRadioGroup";const N=u.forwardRef(({className:e,inset:n,children:t,dataHook:r,trackingEl:c,trackingLabel:d,...l},i)=>o.jsxs(a.SubTrigger,{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 gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none",n&&"pl-8",e),"data-hook":r,"data-slot":"context-menu-sub-trigger","data-tracking-el":c,"data-tracking-label":d,...l,children:[t,o.jsx(x.ChevronRight,{className:"ml-auto"})]}));N.displayName="ContextMenuSubTrigger";const y=u.forwardRef(({className:e,...n},t)=>o.jsx(a.SubContent,{ref:t,className:s.cn("border-border bg-popover text-popover-foreground z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md",s.FLOATING_CONTENT_ANIMATION,e),"data-slot":"context-menu-sub-content",...n}));y.displayName="ContextMenuSubContent";const j=u.forwardRef(({className:e,...n},t)=>(O.useOverlayPointerLock(),o.jsx(a.Portal,{children:o.jsx(a.Content,{ref:t,className:s.cn("border-border bg-popover text-popover-foreground z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md",s.FLOATING_CONTENT_ANIMATION,e),"data-slot":"context-menu-content",...n})})));j.displayName="ContextMenuContent";const h=u.forwardRef(({className:e,inset:n,dataHook:t,trackingEl:r,trackingLabel:c,...d},l)=>o.jsx(a.Item,{ref:l,className:s.cn("focus:bg-accent focus: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]:pointer-events-none data-[disabled]:opacity-50",n&&"pl-8",e),"data-hook":t,"data-slot":"context-menu-item","data-tracking-el":r,"data-tracking-label":c,...d}));h.displayName="ContextMenuItem";const k=u.forwardRef(({className:e,children:n,checked:t,dataHook:r,trackingEl:c,trackingLabel:d,...l},i)=>o.jsxs(a.CheckboxItem,{ref:i,checked:t,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",e),"data-hook":r,"data-slot":"context-menu-checkbox-item","data-tracking-el":c,"data-tracking-label":d,...l,children:[o.jsx("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:o.jsx(a.ItemIndicator,{children:o.jsx(x.Check,{})})}),n]}));k.displayName="ContextMenuCheckboxItem";const R=u.forwardRef(({className:e,children:n,dataHook:t,trackingEl:r,trackingLabel:c,...d},l)=>o.jsxs(a.RadioItem,{ref:l,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",e),"data-hook":t,"data-slot":"context-menu-radio-item","data-tracking-el":r,"data-tracking-label":c,...d,children:[o.jsx("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:o.jsx(a.ItemIndicator,{children:o.jsx(x.Circle,{className:"fill-current",size:8})})}),n]}));R.displayName="ContextMenuRadioItem";const S=u.forwardRef(({className:e,inset:n,...t},r)=>o.jsx(a.Label,{ref:r,className:s.cn("text-foreground px-2 py-1.5 text-sm font-semibold",n&&"pl-8",e),"data-slot":"context-menu-label",...t}));S.displayName="ContextMenuLabel";const I=u.forwardRef(({className:e,...n},t)=>o.jsx(a.Separator,{ref:t,className:s.cn("bg-border -mx-1 my-1 h-px",e),"data-slot":"context-menu-separator",...n}));I.displayName="ContextMenuSeparator";const v=u.forwardRef(({className:e,...n},t)=>o.jsx("span",{ref:t,className:s.cn("text-muted-foreground ml-auto text-xs tracking-widest",e),"data-slot":"context-menu-shortcut",...n}));v.displayName="ContextMenuShortcut";exports.ContextMenu=p;exports.ContextMenuCheckboxItem=k;exports.ContextMenuContent=j;exports.ContextMenuGroup=C;exports.ContextMenuItem=h;exports.ContextMenuLabel=S;exports.ContextMenuPortal=b;exports.ContextMenuRadioGroup=M;exports.ContextMenuRadioItem=R;exports.ContextMenuSeparator=I;exports.ContextMenuShortcut=v;exports.ContextMenuSub=g;exports.ContextMenuSubContent=y;exports.ContextMenuSubTrigger=N;exports.ContextMenuTrigger=f;
@@ -1 +1 @@
1
- {"version":3,"file":"context-menu.d.ts","sourceRoot":"","sources":["../../src/components/context-menu.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AAMrE;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,cAAc,CACjD,OAAO,oBAAoB,CAAC,IAAI,CACjC,CAAC;AAEF;;;GAGG;AACH,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,2CAElD;kBAFQ,WAAW;;;AAKpB;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,KAAK,CAAC,cAAc,CACnE,OAAO,oBAAoB,CAAC,OAAO,CACpC;IACC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,QAAA,MAAM,kBAAkB,8GAUtB,CAAC;AAGH;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,cAAc,CACtD,OAAO,oBAAoB,CAAC,KAAK,CAClC,CAAC;AAEF;;GAEG;AACH,iBAAS,gBAAgB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,qBAAqB,2CAI5D;kBAJQ,gBAAgB;;;AAOzB;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A,MAAM,gBAAgB,8FAcpB,CAAC;AAGH;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,KAAK,CAAC,wBAAwB,CACpE,OAAO,oBAAoB,CAAC,SAAS,CACtC,CAAC;AAEF;;GAEG;AACH,QAAA,MAAM,oBAAoB,0KAUxB,CAAC;AAGH;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,CAAC;AAE7E;;GAEG;AACH,QAAA,MAAM,mBAAmB,kGAavB,CAAC;AAGH,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,uBAAuB,EACvB,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,GACtB,CAAC"}
1
+ {"version":3,"file":"context-menu.d.ts","sourceRoot":"","sources":["../../src/components/context-menu.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AASrE;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,cAAc,CACjD,OAAO,oBAAoB,CAAC,IAAI,CACjC,CAAC;AAEF;;;GAGG;AACH,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,2CAElD;kBAFQ,WAAW;;;AAKpB;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,KAAK,CAAC,cAAc,CACnE,OAAO,oBAAoB,CAAC,OAAO,CACpC;IACC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,QAAA,MAAM,kBAAkB,8GAUtB,CAAC;AAGH;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,cAAc,CACtD,OAAO,oBAAoB,C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,KAAK,CAAC,wBAAwB,CAC3E,OAAO,oBAAoB,CAAC,KAAK,CAClC;IACC;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;AACH,QAAA,MAAM,gBAAgB,8FAcpB,CAAC;AAGH;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,KAAK,CAAC,wBAAwB,CACpE,OAAO,oBAAoB,CAAC,SAAS,CACtC,CAAC;AAEF;;GAEG;AACH,QAAA,MAAM,oBAAoB,0KAUxB,CAAC;AAGH;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,CAAC;AAE7E;;GAEG;AACH,QAAA,MAAM,mBAAmB,kGAavB,CAAC;AAGH,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,uBAAuB,EACvB,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,GACtB,CAAC"}
@@ -1,117 +1,119 @@
1
1
  import { jsx as t, jsxs as m } from "react/jsx-runtime";
2
2
  import * as r from "react";
3
- import * as n from "@radix-ui/react-context-menu";
4
- import { Check as p, Circle as f, ChevronRight as x } from "@brightlocal/icons";
5
- import { cn as s } from "@brightlocal/ui-components/lib/utils";
6
- import { useOverlayPointerLock as b } from "@brightlocal/ui-components/hooks/use-overlay-pointer-lock";
7
- function g({ ...e }) {
8
- return /* @__PURE__ */ t(n.Root, { "data-slot": "context-menu", ...e });
3
+ import * as a from "@radix-ui/react-context-menu";
4
+ import { Check as p, Circle as f, ChevronRight as b } from "@brightlocal/icons";
5
+ import { cn as s, FLOATING_CONTENT_ANIMATION as x } from "@brightlocal/ui-components/lib/utils";
6
+ import { useOverlayPointerLock as g } from "@brightlocal/ui-components/hooks/use-overlay-pointer-lock";
7
+ function C({ ...e }) {
8
+ return /* @__PURE__ */ t(a.Root, { "data-slot": "context-menu", ...e });
9
9
  }
10
- g.displayName = "ContextMenu";
11
- const C = r.forwardRef(({ dataHook: e, ...a }, o) => /* @__PURE__ */ t(
12
- n.Trigger,
10
+ C.displayName = "ContextMenu";
11
+ const N = r.forwardRef(({ dataHook: e, ...o }, n) => /* @__PURE__ */ t(
12
+ a.Trigger,
13
13
  {
14
- ref: o,
14
+ ref: n,
15
15
  "data-hook": e,
16
16
  "data-slot": "context-menu-trigger",
17
- ...a
17
+ ...o
18
18
  }
19
19
  ));
20
- C.displayName = "ContextMenuTrigger";
21
- function h({ ...e }) {
22
- return /* @__PURE__ */ t(n.Group, { "data-slot": "context-menu-group", ...e });
23
- }
24
- h.displayName = "ContextMenuGroup";
20
+ N.displayName = "ContextMenuTrigger";
25
21
  function M({ ...e }) {
26
- return /* @__PURE__ */ t(n.Portal, { "data-slot": "context-menu-portal", ...e });
22
+ return /* @__PURE__ */ t(a.Group, { "data-slot": "context-menu-group", ...e });
27
23
  }
28
- M.displayName = "ContextMenuPortal";
29
- function N({ ...e }) {
30
- return /* @__PURE__ */ t(n.Sub, { "data-slot": "context-menu-sub", ...e });
24
+ M.displayName = "ContextMenuGroup";
25
+ function h({ ...e }) {
26
+ return /* @__PURE__ */ t(a.Portal, { "data-slot": "context-menu-portal", ...e });
31
27
  }
32
- N.displayName = "ContextMenuSub";
28
+ h.displayName = "ContextMenuPortal";
33
29
  function y({ ...e }) {
30
+ return /* @__PURE__ */ t(a.Sub, { "data-slot": "context-menu-sub", ...e });
31
+ }
32
+ y.displayName = "ContextMenuSub";
33
+ function k({ ...e }) {
34
34
  return /* @__PURE__ */ t(
35
- n.RadioGroup,
35
+ a.RadioGroup,
36
36
  {
37
37
  "data-slot": "context-menu-radio-group",
38
38
  ...e
39
39
  }
40
40
  );
41
41
  }
42
- y.displayName = "ContextMenuRadioGroup";
43
- const k = r.forwardRef(
42
+ k.displayName = "ContextMenuRadioGroup";
43
+ const R = r.forwardRef(
44
44
  ({
45
45
  className: e,
46
- inset: a,
47
- children: o,
46
+ inset: o,
47
+ children: n,
48
48
  dataHook: d,
49
- trackingEl: i,
50
- trackingLabel: l,
51
- ...c
52
- }, u) => /* @__PURE__ */ m(
53
- n.SubTrigger,
49
+ trackingEl: c,
50
+ trackingLabel: u,
51
+ ...l
52
+ }, i) => /* @__PURE__ */ m(
53
+ a.SubTrigger,
54
54
  {
55
- ref: u,
55
+ ref: i,
56
56
  className: s(
57
57
  "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none",
58
- a && "pl-8",
58
+ o && "pl-8",
59
59
  e
60
60
  ),
61
61
  "data-hook": d,
62
62
  "data-slot": "context-menu-sub-trigger",
63
- "data-tracking-el": i,
64
- "data-tracking-label": l,
65
- ...c,
63
+ "data-tracking-el": c,
64
+ "data-tracking-label": u,
65
+ ...l,
66
66
  children: [
67
- o,
68
- /* @__PURE__ */ t(x, { className: "ml-auto" })
67
+ n,
68
+ /* @__PURE__ */ t(b, { className: "ml-auto" })
69
69
  ]
70
70
  }
71
71
  )
72
72
  );
73
- k.displayName = "ContextMenuSubTrigger";
74
- const R = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t(
75
- n.SubContent,
73
+ R.displayName = "ContextMenuSubTrigger";
74
+ const w = r.forwardRef(({ className: e, ...o }, n) => /* @__PURE__ */ t(
75
+ a.SubContent,
76
76
  {
77
- ref: o,
77
+ ref: n,
78
78
  className: s(
79
- "border-border 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] overflow-hidden rounded-md border p-1 shadow-md",
79
+ "border-border bg-popover text-popover-foreground z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md",
80
+ x,
80
81
  e
81
82
  ),
82
83
  "data-slot": "context-menu-sub-content",
83
- ...a
84
+ ...o
84
85
  }
85
86
  ));
86
- R.displayName = "ContextMenuSubContent";
87
- const w = r.forwardRef(({ className: e, ...a }, o) => (b(), /* @__PURE__ */ t(n.Portal, { children: /* @__PURE__ */ t(
88
- n.Content,
87
+ w.displayName = "ContextMenuSubContent";
88
+ const I = r.forwardRef(({ className: e, ...o }, n) => (g(), /* @__PURE__ */ t(a.Portal, { children: /* @__PURE__ */ t(
89
+ a.Content,
89
90
  {
90
- ref: o,
91
+ ref: n,
91
92
  className: s(
92
- "border-border bg-popover text-popover-foreground animate-in fade-in-80 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] overflow-hidden rounded-md border p-1 shadow-md",
93
+ "border-border bg-popover text-popover-foreground z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md",
94
+ x,
93
95
  e
94
96
  ),
95
97
  "data-slot": "context-menu-content",
96
- ...a
98
+ ...o
97
99
  }
98
100
  ) })));
99
- w.displayName = "ContextMenuContent";
101
+ I.displayName = "ContextMenuContent";
100
102
  const v = r.forwardRef(
101
- ({ className: e, inset: a, dataHook: o, trackingEl: d, trackingLabel: i, ...l }, c) => /* @__PURE__ */ t(
102
- n.Item,
103
+ ({ className: e, inset: o, dataHook: n, trackingEl: d, trackingLabel: c, ...u }, l) => /* @__PURE__ */ t(
104
+ a.Item,
103
105
  {
104
- ref: c,
106
+ ref: l,
105
107
  className: s(
106
108
  "focus:bg-accent focus: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]:pointer-events-none data-[disabled]:opacity-50",
107
- a && "pl-8",
109
+ o && "pl-8",
108
110
  e
109
111
  ),
110
- "data-hook": o,
112
+ "data-hook": n,
111
113
  "data-slot": "context-menu-item",
112
114
  "data-tracking-el": d,
113
- "data-tracking-label": i,
114
- ...l
115
+ "data-tracking-label": c,
116
+ ...u
115
117
  }
116
118
  )
117
119
  );
@@ -119,107 +121,107 @@ v.displayName = "ContextMenuItem";
119
121
  const S = r.forwardRef(
120
122
  ({
121
123
  className: e,
122
- children: a,
123
- checked: o,
124
+ children: o,
125
+ checked: n,
124
126
  dataHook: d,
125
- trackingEl: i,
126
- trackingLabel: l,
127
- ...c
128
- }, u) => /* @__PURE__ */ m(
129
- n.CheckboxItem,
127
+ trackingEl: c,
128
+ trackingLabel: u,
129
+ ...l
130
+ }, i) => /* @__PURE__ */ m(
131
+ a.CheckboxItem,
130
132
  {
131
- ref: u,
132
- checked: o,
133
+ ref: i,
134
+ checked: n,
133
135
  className: s(
134
136
  "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",
135
137
  e
136
138
  ),
137
139
  "data-hook": d,
138
140
  "data-slot": "context-menu-checkbox-item",
139
- "data-tracking-el": i,
140
- "data-tracking-label": l,
141
- ...c,
141
+ "data-tracking-el": c,
142
+ "data-tracking-label": u,
143
+ ...l,
142
144
  children: [
143
- /* @__PURE__ */ t("span", { className: "absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t(n.ItemIndicator, { children: /* @__PURE__ */ t(p, {}) }) }),
144
- a
145
+ /* @__PURE__ */ t("span", { className: "absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t(a.ItemIndicator, { children: /* @__PURE__ */ t(p, {}) }) }),
146
+ o
145
147
  ]
146
148
  }
147
149
  )
148
150
  );
149
151
  S.displayName = "ContextMenuCheckboxItem";
150
- const I = r.forwardRef(
151
- ({ className: e, children: a, dataHook: o, trackingEl: d, trackingLabel: i, ...l }, c) => /* @__PURE__ */ m(
152
- n.RadioItem,
152
+ const T = r.forwardRef(
153
+ ({ className: e, children: o, dataHook: n, trackingEl: d, trackingLabel: c, ...u }, l) => /* @__PURE__ */ m(
154
+ a.RadioItem,
153
155
  {
154
- ref: c,
156
+ ref: l,
155
157
  className: s(
156
158
  "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",
157
159
  e
158
160
  ),
159
- "data-hook": o,
161
+ "data-hook": n,
160
162
  "data-slot": "context-menu-radio-item",
161
163
  "data-tracking-el": d,
162
- "data-tracking-label": i,
163
- ...l,
164
+ "data-tracking-label": c,
165
+ ...u,
164
166
  children: [
165
- /* @__PURE__ */ t("span", { className: "absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t(n.ItemIndicator, { children: /* @__PURE__ */ t(f, { className: "fill-current", size: 8 }) }) }),
166
- a
167
+ /* @__PURE__ */ t("span", { className: "absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t(a.ItemIndicator, { children: /* @__PURE__ */ t(f, { className: "fill-current", size: 8 }) }) }),
168
+ o
167
169
  ]
168
170
  }
169
171
  )
170
172
  );
171
- I.displayName = "ContextMenuRadioItem";
172
- const z = r.forwardRef(({ className: e, inset: a, ...o }, d) => /* @__PURE__ */ t(
173
- n.Label,
173
+ T.displayName = "ContextMenuRadioItem";
174
+ const G = r.forwardRef(({ className: e, inset: o, ...n }, d) => /* @__PURE__ */ t(
175
+ a.Label,
174
176
  {
175
177
  ref: d,
176
178
  className: s(
177
179
  "text-foreground px-2 py-1.5 text-sm font-semibold",
178
- a && "pl-8",
180
+ o && "pl-8",
179
181
  e
180
182
  ),
181
183
  "data-slot": "context-menu-label",
182
- ...o
184
+ ...n
183
185
  }
184
186
  ));
185
- z.displayName = "ContextMenuLabel";
186
- const G = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t(
187
- n.Separator,
187
+ G.displayName = "ContextMenuLabel";
188
+ const P = r.forwardRef(({ className: e, ...o }, n) => /* @__PURE__ */ t(
189
+ a.Separator,
188
190
  {
189
- ref: o,
191
+ ref: n,
190
192
  className: s("bg-border -mx-1 my-1 h-px", e),
191
193
  "data-slot": "context-menu-separator",
192
- ...a
194
+ ...o
193
195
  }
194
196
  ));
195
- G.displayName = "ContextMenuSeparator";
196
- const P = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t(
197
+ P.displayName = "ContextMenuSeparator";
198
+ const z = r.forwardRef(({ className: e, ...o }, n) => /* @__PURE__ */ t(
197
199
  "span",
198
200
  {
199
- ref: o,
201
+ ref: n,
200
202
  className: s(
201
203
  "text-muted-foreground ml-auto text-xs tracking-widest",
202
204
  e
203
205
  ),
204
206
  "data-slot": "context-menu-shortcut",
205
- ...a
207
+ ...o
206
208
  }
207
209
  ));
208
- P.displayName = "ContextMenuShortcut";
210
+ z.displayName = "ContextMenuShortcut";
209
211
  export {
210
- g as ContextMenu,
212
+ C as ContextMenu,
211
213
  S as ContextMenuCheckboxItem,
212
- w as ContextMenuContent,
213
- h as ContextMenuGroup,
214
+ I as ContextMenuContent,
215
+ M as ContextMenuGroup,
214
216
  v as ContextMenuItem,
215
- z as ContextMenuLabel,
216
- M as ContextMenuPortal,
217
- y as ContextMenuRadioGroup,
218
- I as ContextMenuRadioItem,
219
- G as ContextMenuSeparator,
220
- P as ContextMenuShortcut,
221
- N as ContextMenuSub,
222
- R as ContextMenuSubContent,
223
- k as ContextMenuSubTrigger,
224
- C as ContextMenuTrigger
217
+ G as ContextMenuLabel,
218
+ h as ContextMenuPortal,
219
+ k as ContextMenuRadioGroup,
220
+ T as ContextMenuRadioItem,
221
+ P as ContextMenuSeparator,
222
+ z as ContextMenuShortcut,
223
+ y as ContextMenuSub,
224
+ w as ContextMenuSubContent,
225
+ R as ContextMenuSubTrigger,
226
+ N as ContextMenuTrigger
225
227
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),P=require("react"),z=require("@radix-ui/react-dropdown-menu"),p=require("@brightlocal/icons"),l=require("@brightlocal/ui-components/lib/utils"),G=require("@brightlocal/ui-components/hooks/use-overlay-pointer-lock");function m(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const u=m(P),r=m(z);function f({...e}){return o.jsx(r.Root,{...e})}f.displayName="DropdownMenu";function g({...e}){return o.jsx(r.Portal,{...e})}g.displayName="DropdownMenuPortal";const w=u.forwardRef(({className:e,dataHook:t,trackingEl:n,trackingLabel:a,...d},s)=>o.jsx(r.Trigger,{ref:s,className:e,"data-slot":"dropdown-menu-trigger","data-tracking-el":n,"data-tracking-label":a,...t!=null&&{"data-hook":t},...d}));w.displayName="DropdownMenuTrigger";const x=u.forwardRef(({className:e,sideOffset:t=4,align:n="start",dataHook:a,trackingEl:d,trackingLabel:s,...i},c)=>(G.useOverlayPointerLock(),o.jsx(r.Portal,{children:o.jsx(r.Content,{ref:c,align:n,className:l.cn(["bg-popover text-popover-foreground","z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem]","origin-(--radix-dropdown-menu-content-transform-origin)","overflow-x-hidden overflow-y-auto","rounded-md border p-1 shadow-md","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"],e),"data-hook":a,"data-slot":"dropdown-menu-content","data-tracking-el":d,"data-tracking-label":s,sideOffset:t,...i})})));x.displayName="DropdownMenuContent";function b({...e}){return o.jsx(r.Group,{...e})}b.displayName="DropdownMenuGroup";const h=u.forwardRef(({className:e,inset:t,dataHook:n,trackingEl:a,trackingLabel:d,...s},i)=>o.jsx(r.Item,{ref:i,className:l.cn(["relative flex cursor-default items-center gap-2 self-stretch select-none","rounded-sm px-2 py-1.5 text-sm leading-normal outline-hidden","[&>span]:overflow-hidden [&>span]:text-ellipsis [&>span]:whitespace-nowrap","focus:bg-accent focus:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","data-[inset]:pl-8","[&_svg]:pointer-events-none [&_svg]:shrink-0"],e),"data-hook":n,"data-inset":t,"data-slot":"dropdown-menu-item","data-tracking-el":a,"data-tracking-label":d,...s}));h.displayName="DropdownMenuItem";const D=u.forwardRef(({className:e,children:t,checked:n,dataHook:a,trackingEl:d,trackingLabel:s,...i},c)=>o.jsxs(r.CheckboxItem,{ref:c,checked:n,className:l.cn(["relative flex cursor-default items-center gap-2 select-none","rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden","focus:bg-accent focus:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","[&_svg]:pointer-events-none [&_svg]:shrink-0"],e),"data-hook":a,"data-slot":"dropdown-menu-checkbox-item","data-tracking-el":d,"data-tracking-label":s,...i,children:[o.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:o.jsx(r.ItemIndicator,{children:o.jsx(p.Check,{})})}),t]}));D.displayName="DropdownMenuCheckboxItem";function M({...e}){return o.jsx(r.RadioGroup,{...e})}M.displayName="DropdownMenuRadioGroup";const v=u.forwardRef(({className:e,children:t,dataHook:n,trackingEl:a,trackingLabel:d,...s},i)=>o.jsxs(r.RadioItem,{ref:i,className:l.cn(["relative flex cursor-default items-center gap-2 select-none","rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden","focus:bg-accent focus:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","[&_svg]:pointer-events-none [&_svg]:shrink-0"],e),"data-hook":n,"data-slot":"dropdown-menu-radio-item","data-tracking-el":a,"data-tracking-label":d,...s,children:[o.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:o.jsx(r.ItemIndicator,{children:o.jsx(p.Circle,{className:"fill-current",size:8})})}),t]}));v.displayName="DropdownMenuRadioItem";const y=u.forwardRef(({className:e,inset:t,dataHook:n,...a},d)=>o.jsx(r.Label,{ref:d,className:l.cn(["px-2 py-1.5 text-sm leading-normal font-semibold","data-[inset]:pl-8"],e),"data-hook":n,"data-inset":t,"data-slot":"dropdown-menu-label",...a}));y.displayName="DropdownMenuLabel";const j=u.forwardRef(({className:e,...t},n)=>o.jsx(r.Separator,{ref:n,className:l.cn(["bg-border -mx-1 my-1 h-px"],e),"data-slot":"dropdown-menu-separator",...t}));j.displayName="DropdownMenuSeparator";function N({className:e,...t}){return o.jsx("span",{className:l.cn(["text-popover-foreground ml-auto text-xs leading-normal opacity-60"],e),"data-slot":"dropdown-menu-shortcut",...t})}N.displayName="DropdownMenuShortcut";function k({...e}){return o.jsx(r.Sub,{...e})}k.displayName="DropdownMenuSub";const R=u.forwardRef(({className:e,inset:t,children:n,dataHook:a,trackingEl:d,trackingLabel:s,...i},c)=>o.jsxs(r.SubTrigger,{ref:c,className:l.cn(["flex cursor-default items-center gap-2 select-none","rounded-sm px-2 py-1.5 text-sm outline-hidden","focus:bg-accent focus:text-accent-foreground","data-[state=open]:bg-accent data-[state=open]:text-accent-foreground","data-[inset]:pl-8","[&_svg]:pointer-events-none [&_svg]:shrink-0"],e),"data-hook":a,"data-inset":t,"data-slot":"dropdown-menu-sub-trigger","data-tracking-el":d,"data-tracking-label":s,...i,children:[n,o.jsx(p.ChevronRight,{className:"ml-auto"})]}));R.displayName="DropdownMenuSubTrigger";const S=u.forwardRef(({className:e,...t},n)=>o.jsx(r.SubContent,{ref:n,className:l.cn(["bg-popover text-popover-foreground","z-50 min-w-[8rem]","origin-(--radix-dropdown-menu-content-transform-origin)","overflow-hidden rounded-md border p-1 shadow-lg","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"],e),"data-slot":"dropdown-menu-sub-content",...t}));S.displayName="DropdownMenuSubContent";const C=u.forwardRef(({className:e,dataHook:t,trackingEl:n,trackingLabel:a,avatar:d,title:s,description:i,disabled:c,ariaLabel:I,...T},_)=>o.jsxs(r.Trigger,{ref:_,"aria-label":I??s,className:l.cn(["flex items-center gap-2 rounded-lg border px-3 py-2","bg-popover shadow-sm","outline-none","hover:bg-accent","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","disabled:pointer-events-none disabled:opacity-50"],e),"data-hook":t,"data-slot":"dropdown-menu-trigger-avatar","data-tracking-el":n,"data-tracking-label":a,disabled:c,...T,children:[d,o.jsxs("div",{className:"flex min-w-0 flex-1 flex-col items-start",children:[o.jsx("span",{className:"w-full overflow-hidden text-sm leading-normal font-semibold text-ellipsis whitespace-nowrap",children:s}),i&&o.jsx("span",{className:"text-muted-foreground w-full overflow-hidden text-xs leading-normal text-ellipsis whitespace-nowrap",children:i})]}),o.jsx(p.ChevronsUpDown,{className:"text-muted-foreground opacity-50"})]}));C.displayName="DropdownMenuTriggerAvatar";exports.DropdownMenu=f;exports.DropdownMenuCheckboxItem=D;exports.DropdownMenuContent=x;exports.DropdownMenuGroup=b;exports.DropdownMenuItem=h;exports.DropdownMenuLabel=y;exports.DropdownMenuPortal=g;exports.DropdownMenuRadioGroup=M;exports.DropdownMenuRadioItem=v;exports.DropdownMenuSeparator=j;exports.DropdownMenuShortcut=N;exports.DropdownMenuSub=k;exports.DropdownMenuSubContent=S;exports.DropdownMenuSubTrigger=R;exports.DropdownMenuTrigger=w;exports.DropdownMenuTriggerAvatar=C;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),O=require("react"),P=require("@radix-ui/react-dropdown-menu"),p=require("@brightlocal/icons"),l=require("@brightlocal/ui-components/lib/utils"),G=require("@brightlocal/ui-components/hooks/use-overlay-pointer-lock");function m(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const u=m(O),a=m(P);function g({...e}){return n.jsx(a.Root,{...e})}g.displayName="DropdownMenu";function w({...e}){return n.jsx(a.Portal,{...e})}w.displayName="DropdownMenuPortal";const f=u.forwardRef(({className:e,dataHook:o,trackingEl:t,trackingLabel:r,...d},s)=>n.jsx(a.Trigger,{ref:s,className:e,"data-slot":"dropdown-menu-trigger","data-tracking-el":t,"data-tracking-label":r,...o!=null&&{"data-hook":o},...d}));f.displayName="DropdownMenuTrigger";const x=u.forwardRef(({className:e,sideOffset:o=4,align:t="start",dataHook:r,trackingEl:d,trackingLabel:s,...i},c)=>(G.useOverlayPointerLock(),n.jsx(a.Portal,{children:n.jsx(a.Content,{ref:c,align:t,className:l.cn(["bg-popover text-popover-foreground","z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem]","origin-(--radix-dropdown-menu-content-transform-origin)","overflow-x-hidden overflow-y-auto","rounded-md border p-1 shadow-md",l.FLOATING_CONTENT_ANIMATION],e),"data-hook":r,"data-slot":"dropdown-menu-content","data-tracking-el":d,"data-tracking-label":s,sideOffset:o,...i})})));x.displayName="DropdownMenuContent";function b({...e}){return n.jsx(a.Group,{...e})}b.displayName="DropdownMenuGroup";const h=u.forwardRef(({className:e,inset:o,dataHook:t,trackingEl:r,trackingLabel:d,...s},i)=>n.jsx(a.Item,{ref:i,className:l.cn(["relative flex cursor-default items-center gap-2 self-stretch select-none","rounded-sm px-2 py-1.5 text-sm leading-normal outline-hidden","[&>span]:overflow-hidden [&>span]:text-ellipsis [&>span]:whitespace-nowrap","focus:bg-accent focus:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","data-[inset]:pl-8","[&_svg]:pointer-events-none [&_svg]:shrink-0"],e),"data-hook":t,"data-inset":o,"data-slot":"dropdown-menu-item","data-tracking-el":r,"data-tracking-label":d,...s}));h.displayName="DropdownMenuItem";const M=u.forwardRef(({className:e,children:o,checked:t,dataHook:r,trackingEl:d,trackingLabel:s,...i},c)=>n.jsxs(a.CheckboxItem,{ref:c,checked:t,className:l.cn(["relative flex cursor-default items-center gap-2 select-none","rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden","focus:bg-accent focus:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","[&_svg]:pointer-events-none [&_svg]:shrink-0"],e),"data-hook":r,"data-slot":"dropdown-menu-checkbox-item","data-tracking-el":d,"data-tracking-label":s,...i,children:[n.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:n.jsx(a.ItemIndicator,{children:n.jsx(p.Check,{})})}),o]}));M.displayName="DropdownMenuCheckboxItem";function D({...e}){return n.jsx(a.RadioGroup,{...e})}D.displayName="DropdownMenuRadioGroup";const v=u.forwardRef(({className:e,children:o,dataHook:t,trackingEl:r,trackingLabel:d,...s},i)=>n.jsxs(a.RadioItem,{ref:i,className:l.cn(["relative flex cursor-default items-center gap-2 select-none","rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden","focus:bg-accent focus:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","[&_svg]:pointer-events-none [&_svg]:shrink-0"],e),"data-hook":t,"data-slot":"dropdown-menu-radio-item","data-tracking-el":r,"data-tracking-label":d,...s,children:[n.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:n.jsx(a.ItemIndicator,{children:n.jsx(p.Circle,{className:"fill-current",size:8})})}),o]}));v.displayName="DropdownMenuRadioItem";const N=u.forwardRef(({className:e,inset:o,dataHook:t,...r},d)=>n.jsx(a.Label,{ref:d,className:l.cn(["px-2 py-1.5 text-sm leading-normal font-semibold","data-[inset]:pl-8"],e),"data-hook":t,"data-inset":o,"data-slot":"dropdown-menu-label",...r}));N.displayName="DropdownMenuLabel";const y=u.forwardRef(({className:e,...o},t)=>n.jsx(a.Separator,{ref:t,className:l.cn(["bg-border -mx-1 my-1 h-px"],e),"data-slot":"dropdown-menu-separator",...o}));y.displayName="DropdownMenuSeparator";function j({className:e,...o}){return n.jsx("span",{className:l.cn(["text-popover-foreground ml-auto text-xs leading-normal opacity-60"],e),"data-slot":"dropdown-menu-shortcut",...o})}j.displayName="DropdownMenuShortcut";function k({...e}){return n.jsx(a.Sub,{...e})}k.displayName="DropdownMenuSub";const R=u.forwardRef(({className:e,inset:o,children:t,dataHook:r,trackingEl:d,trackingLabel:s,...i},c)=>n.jsxs(a.SubTrigger,{ref:c,className:l.cn(["flex cursor-default items-center gap-2 select-none","rounded-sm px-2 py-1.5 text-sm outline-hidden","focus:bg-accent focus:text-accent-foreground","data-[state=open]:bg-accent data-[state=open]:text-accent-foreground","data-[inset]:pl-8","[&_svg]:pointer-events-none [&_svg]:shrink-0"],e),"data-hook":r,"data-inset":o,"data-slot":"dropdown-menu-sub-trigger","data-tracking-el":d,"data-tracking-label":s,...i,children:[t,n.jsx(p.ChevronRight,{className:"ml-auto"})]}));R.displayName="DropdownMenuSubTrigger";const S=u.forwardRef(({className:e,...o},t)=>n.jsx(a.SubContent,{ref:t,className:l.cn(["bg-popover text-popover-foreground","z-50 min-w-[8rem]","origin-(--radix-dropdown-menu-content-transform-origin)","overflow-hidden rounded-md border p-1 shadow-lg",l.FLOATING_CONTENT_ANIMATION],e),"data-slot":"dropdown-menu-sub-content",...o}));S.displayName="DropdownMenuSubContent";const I=u.forwardRef(({className:e,dataHook:o,trackingEl:t,trackingLabel:r,avatar:d,title:s,description:i,disabled:c,ariaLabel:T,...C},_)=>n.jsxs(a.Trigger,{ref:_,"aria-label":T??s,className:l.cn(["flex items-center gap-2 rounded-lg border px-3 py-2","bg-popover shadow-sm","outline-none","hover:bg-accent","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","disabled:pointer-events-none disabled:opacity-50"],e),"data-hook":o,"data-slot":"dropdown-menu-trigger-avatar","data-tracking-el":t,"data-tracking-label":r,disabled:c,...C,children:[d,n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col items-start",children:[n.jsx("span",{className:"w-full overflow-hidden text-sm leading-normal font-semibold text-ellipsis whitespace-nowrap",children:s}),i&&n.jsx("span",{className:"text-muted-foreground w-full overflow-hidden text-xs leading-normal text-ellipsis whitespace-nowrap",children:i})]}),n.jsx(p.ChevronsUpDown,{className:"text-muted-foreground opacity-50"})]}));I.displayName="DropdownMenuTriggerAvatar";exports.DropdownMenu=g;exports.DropdownMenuCheckboxItem=M;exports.DropdownMenuContent=x;exports.DropdownMenuGroup=b;exports.DropdownMenuItem=h;exports.DropdownMenuLabel=N;exports.DropdownMenuPortal=w;exports.DropdownMenuRadioGroup=D;exports.DropdownMenuRadioItem=v;exports.DropdownMenuSeparator=y;exports.DropdownMenuShortcut=j;exports.DropdownMenuSub=k;exports.DropdownMenuSubContent=S;exports.DropdownMenuSubTrigger=R;exports.DropdownMenuTrigger=f;exports.DropdownMenuTriggerAvatar=I;
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown-menu.d.ts","sourceRoot":"","sources":["../../src/components/dropdown-menu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AAWvE;;GAEG;AACH,iBAAS,YAAY,CAAC,EACpB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAA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C,wBAAwB,CAClE,OAAO,qBAAqB,CAAC,OAAO,CACrC,GAAG;IACF;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,QAAA,MAAM,yBAAyB;IAlC7B;;OAEG;eACQ,MAAM;IACjB;;OAEG;iBACU,MAAM;IACnB;;OAEG;oBACa,MAAM;IACtB;;OAEG;YACK,KAAK,CAAC,SAAS;IACvB;;OAEG;WACI,MAAM;IACb;;OAEG;kBACW,MAAM;IACpB;;;OAGG;gBACS,MAAM;2CA8DnB,CAAC;AAIF,OAAO,EACL,YAAY,EACZ,wBAAwB,EACxB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,eAAe,EACf,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,yBAAyB,GAC1B,CAAC;AAEF,YAAY,EACV,wBAAwB,EACxB,wBAAwB,EACxB,qBAAqB,EACrB,6BAA6B,EAC7B,0BAA0B,EAC1B,sBAAsB,EACtB,2BAA2B,EAC3B,8BAA8B,GAC/B,CAAC"}
1
+ {"version":3,"file":"dropdown-menu.d.ts","sourceRoot":"","sources":["../../src/components/dropdown-menu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AAcvE;;GAEG;A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