@brightlocal/ui-components 2.18.0 → 2.20.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 (67) hide show
  1. package/README.md +1 -1
  2. package/component-meta.json +11 -2
  3. package/dist/alert-dialog.cjs +1 -1
  4. package/dist/alert-dialog.d.ts.map +1 -1
  5. package/dist/alert-dialog.js +34 -33
  6. package/dist/blocks/sidebar.cjs +1 -1
  7. package/dist/blocks/sidebar.d.ts +20 -0
  8. package/dist/blocks/sidebar.d.ts.map +1 -1
  9. package/dist/blocks/sidebar.js +423 -390
  10. package/dist/browser-entry.d.ts +2 -0
  11. package/dist/browser-entry.d.ts.map +1 -1
  12. package/dist/context-menu.cjs +1 -1
  13. package/dist/context-menu.d.ts.map +1 -1
  14. package/dist/context-menu.js +47 -46
  15. package/dist/dialog.cjs +1 -1
  16. package/dist/dialog.d.ts.map +1 -1
  17. package/dist/dialog.js +35 -34
  18. package/dist/dropdown-menu.cjs +1 -1
  19. package/dist/dropdown-menu.d.ts.map +1 -1
  20. package/dist/dropdown-menu.js +48 -47
  21. package/dist/global-layout.cjs +1 -1
  22. package/dist/global-layout.d.ts.map +1 -1
  23. package/dist/global-layout.js +44 -42
  24. package/dist/hooks/use-overlay-pointer-lock.cjs +1 -0
  25. package/dist/hooks/use-overlay-pointer-lock.d.ts +20 -0
  26. package/dist/hooks/use-overlay-pointer-lock.d.ts.map +1 -0
  27. package/dist/hooks/use-overlay-pointer-lock.js +39 -0
  28. package/dist/index.cjs +1 -1
  29. package/dist/index.d.ts +1 -0
  30. package/dist/index.d.ts.map +1 -1
  31. package/dist/index.js +88 -86
  32. package/dist/logo.cjs +1 -1
  33. package/dist/logo.d.ts.map +1 -1
  34. package/dist/logo.js +44 -37
  35. package/dist/popover.cjs +1 -1
  36. package/dist/popover.d.ts.map +1 -1
  37. package/dist/popover.js +21 -20
  38. package/dist/select.cjs +1 -1
  39. package/dist/select.d.ts.map +1 -1
  40. package/dist/select.js +25 -23
  41. package/dist/separator.cjs +1 -1
  42. package/dist/separator.d.ts +14 -0
  43. package/dist/separator.d.ts.map +1 -1
  44. package/dist/separator.js +90 -44
  45. package/dist/sheet.cjs +1 -1
  46. package/dist/sheet.d.ts.map +1 -1
  47. package/dist/sheet.js +29 -28
  48. package/dist/stepper.cjs +1 -1
  49. package/dist/stepper.d.ts +15 -13
  50. package/dist/stepper.d.ts.map +1 -1
  51. package/dist/stepper.js +84 -85
  52. package/package.json +3 -3
  53. package/src/blocks/sidebar.tsx +81 -14
  54. package/src/browser-entry.ts +10 -0
  55. package/src/components/alert-dialog.tsx +20 -14
  56. package/src/components/context-menu.tsx +19 -13
  57. package/src/components/dialog.tsx +4 -0
  58. package/src/components/dropdown-menu.tsx +4 -0
  59. package/src/components/global-layout.tsx +3 -1
  60. package/src/components/logo.tsx +19 -25
  61. package/src/components/popover.tsx +22 -16
  62. package/src/components/select.tsx +4 -0
  63. package/src/components/separator.tsx +91 -23
  64. package/src/components/sheet.tsx +4 -0
  65. package/src/components/stepper.tsx +93 -80
  66. package/src/hooks/use-overlay-pointer-lock.ts +128 -0
  67. package/src/index.ts +1 -0
@@ -12,6 +12,8 @@ export declare const useContext: typeof React.useContext;
12
12
  export declare const useReducer: typeof React.useReducer;
13
13
  export declare const useLayoutEffect: typeof React.useLayoutEffect;
14
14
  export declare const Fragment: React.ExoticComponent<React.FragmentProps>;
15
+ export declare const version: string;
16
+ export declare const buildTime: string;
15
17
  export declare function mount(name: string, container: HTMLElement, props?: Record<string, unknown>): () => void;
16
18
  export declare function render(element: React.ReactNode, container: HTMLElement): () => void;
17
19
  //# sourceMappingURL=browser-entry.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"browser-entry.d.ts","sourceRoot":"","sources":["../src/browser-entry.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAE9B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,QAAQ,MAAM,WAAW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C,eAAO,MAAM,UAAU,yBAAmB,CAAC;AAC3C,eAAO,MAAM,UAAU,yBAAmB,CAAC;AAC3C,eAAO,MAAM,eAAe,8BAAwB,CAAC;AACrD,eAAO,MAAM,QAAQ,4CAAiB,CAAC;AAOvC,eAAO,MAAM,OAAO,QAC+C,CAAC;AACpE,eAAO,MAAM,SAAS,QAC0C,CAAC;AAmBjE,wBAAgB,KAAK,CACnB,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,WAAW,EACtB,KAAK,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,GAClC,MAAM,IAAI,CA0BZ;AAED,wBAAgB,MAAM,CACpB,OAAO,EAAE,KAAK,CAAC,SAAS,EACxB,SAAS,EAAE,WAAW,GACrB,MAAM,IAAI,CAaZ"}
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),I=require("react"),z=require("@radix-ui/react-context-menu"),m=require("@brightlocal/icons"),d=require("@brightlocal/ui-components/lib/utils");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(z);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 j=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}));j.displayName="ContextMenuSubContent";const y=s.forwardRef(({className:e,...n},t)=>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})}));y.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 R=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]}));R.displayName="ContextMenuCheckboxItem";const S=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]}));S.displayName="ContextMenuRadioItem";const k=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}));k.displayName="ContextMenuLabel";const w=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}));w.displayName="ContextMenuSeparator";const v=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}));v.displayName="ContextMenuShortcut";exports.ContextMenu=p;exports.ContextMenuCheckboxItem=R;exports.ContextMenuContent=y;exports.ContextMenuGroup=b;exports.ContextMenuItem=N;exports.ContextMenuLabel=k;exports.ContextMenuPortal=g;exports.ContextMenuRadioGroup=M;exports.ContextMenuRadioItem=S;exports.ContextMenuSeparator=w;exports.ContextMenuShortcut=v;exports.ContextMenuSub=C;exports.ContextMenuSubContent=j;exports.ContextMenuSubTrigger=h;exports.ContextMenuTrigger=f;
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 +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;AAKrE;;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,iBA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AC,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
+ {"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,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GAEG;AACH,QAAA,MAAM,oBAAoB,kGA4BzB,CAAC;AAGF;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,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"}
@@ -3,11 +3,12 @@ import * as r from "react";
3
3
  import * as n from "@radix-ui/react-context-menu";
4
4
  import { Check as p, Circle as f, ChevronRight as x } from "@brightlocal/icons";
5
5
  import { cn as s } from "@brightlocal/ui-components/lib/utils";
6
- function b({ ...e }) {
6
+ import { useOverlayPointerLock as b } from "@brightlocal/ui-components/hooks/use-overlay-pointer-lock";
7
+ function g({ ...e }) {
7
8
  return /* @__PURE__ */ t(n.Root, { "data-slot": "context-menu", ...e });
8
9
  }
9
- b.displayName = "ContextMenu";
10
- const g = r.forwardRef(({ dataHook: e, ...a }, o) => /* @__PURE__ */ t(
10
+ g.displayName = "ContextMenu";
11
+ const C = r.forwardRef(({ dataHook: e, ...a }, o) => /* @__PURE__ */ t(
11
12
  n.Trigger,
12
13
  {
13
14
  ref: o,
@@ -16,20 +17,20 @@ const g = r.forwardRef(({ dataHook: e, ...a }, o) => /* @__PURE__ */ t(
16
17
  ...a
17
18
  }
18
19
  ));
19
- g.displayName = "ContextMenuTrigger";
20
- function C({ ...e }) {
20
+ C.displayName = "ContextMenuTrigger";
21
+ function h({ ...e }) {
21
22
  return /* @__PURE__ */ t(n.Group, { "data-slot": "context-menu-group", ...e });
22
23
  }
23
- C.displayName = "ContextMenuGroup";
24
- function h({ ...e }) {
24
+ h.displayName = "ContextMenuGroup";
25
+ function M({ ...e }) {
25
26
  return /* @__PURE__ */ t(n.Portal, { "data-slot": "context-menu-portal", ...e });
26
27
  }
27
- h.displayName = "ContextMenuPortal";
28
- function M({ ...e }) {
28
+ M.displayName = "ContextMenuPortal";
29
+ function N({ ...e }) {
29
30
  return /* @__PURE__ */ t(n.Sub, { "data-slot": "context-menu-sub", ...e });
30
31
  }
31
- M.displayName = "ContextMenuSub";
32
- function N({ ...e }) {
32
+ N.displayName = "ContextMenuSub";
33
+ function y({ ...e }) {
33
34
  return /* @__PURE__ */ t(
34
35
  n.RadioGroup,
35
36
  {
@@ -38,8 +39,8 @@ function N({ ...e }) {
38
39
  }
39
40
  );
40
41
  }
41
- N.displayName = "ContextMenuRadioGroup";
42
- const y = r.forwardRef(
42
+ y.displayName = "ContextMenuRadioGroup";
43
+ const k = r.forwardRef(
43
44
  ({
44
45
  className: e,
45
46
  inset: a,
@@ -69,8 +70,8 @@ const y = r.forwardRef(
69
70
  }
70
71
  )
71
72
  );
72
- y.displayName = "ContextMenuSubTrigger";
73
- const k = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t(
73
+ k.displayName = "ContextMenuSubTrigger";
74
+ const R = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t(
74
75
  n.SubContent,
75
76
  {
76
77
  ref: o,
@@ -82,8 +83,8 @@ const k = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t(
82
83
  ...a
83
84
  }
84
85
  ));
85
- k.displayName = "ContextMenuSubContent";
86
- const R = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t(n.Portal, { children: /* @__PURE__ */ t(
86
+ R.displayName = "ContextMenuSubContent";
87
+ const w = r.forwardRef(({ className: e, ...a }, o) => (b(), /* @__PURE__ */ t(n.Portal, { children: /* @__PURE__ */ t(
87
88
  n.Content,
88
89
  {
89
90
  ref: o,
@@ -94,9 +95,9 @@ const R = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t(n.Portal
94
95
  "data-slot": "context-menu-content",
95
96
  ...a
96
97
  }
97
- ) }));
98
- R.displayName = "ContextMenuContent";
99
- const w = r.forwardRef(
98
+ ) })));
99
+ w.displayName = "ContextMenuContent";
100
+ const v = r.forwardRef(
100
101
  ({ className: e, inset: a, dataHook: o, trackingEl: d, trackingLabel: i, ...l }, c) => /* @__PURE__ */ t(
101
102
  n.Item,
102
103
  {
@@ -114,8 +115,8 @@ const w = r.forwardRef(
114
115
  }
115
116
  )
116
117
  );
117
- w.displayName = "ContextMenuItem";
118
- const v = r.forwardRef(
118
+ v.displayName = "ContextMenuItem";
119
+ const S = r.forwardRef(
119
120
  ({
120
121
  className: e,
121
122
  children: a,
@@ -145,8 +146,8 @@ const v = r.forwardRef(
145
146
  }
146
147
  )
147
148
  );
148
- v.displayName = "ContextMenuCheckboxItem";
149
- const S = r.forwardRef(
149
+ S.displayName = "ContextMenuCheckboxItem";
150
+ const I = r.forwardRef(
150
151
  ({ className: e, children: a, dataHook: o, trackingEl: d, trackingLabel: i, ...l }, c) => /* @__PURE__ */ m(
151
152
  n.RadioItem,
152
153
  {
@@ -167,8 +168,8 @@ const S = r.forwardRef(
167
168
  }
168
169
  )
169
170
  );
170
- S.displayName = "ContextMenuRadioItem";
171
- const I = r.forwardRef(({ className: e, inset: a, ...o }, d) => /* @__PURE__ */ t(
171
+ I.displayName = "ContextMenuRadioItem";
172
+ const z = r.forwardRef(({ className: e, inset: a, ...o }, d) => /* @__PURE__ */ t(
172
173
  n.Label,
173
174
  {
174
175
  ref: d,
@@ -181,8 +182,8 @@ const I = r.forwardRef(({ className: e, inset: a, ...o }, d) => /* @__PURE__ */
181
182
  ...o
182
183
  }
183
184
  ));
184
- I.displayName = "ContextMenuLabel";
185
- const z = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t(
185
+ z.displayName = "ContextMenuLabel";
186
+ const G = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t(
186
187
  n.Separator,
187
188
  {
188
189
  ref: o,
@@ -191,8 +192,8 @@ const z = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t(
191
192
  ...a
192
193
  }
193
194
  ));
194
- z.displayName = "ContextMenuSeparator";
195
- const G = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t(
195
+ G.displayName = "ContextMenuSeparator";
196
+ const P = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t(
196
197
  "span",
197
198
  {
198
199
  ref: o,
@@ -204,21 +205,21 @@ const G = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t(
204
205
  ...a
205
206
  }
206
207
  ));
207
- G.displayName = "ContextMenuShortcut";
208
+ P.displayName = "ContextMenuShortcut";
208
209
  export {
209
- b as ContextMenu,
210
- v as ContextMenuCheckboxItem,
211
- R as ContextMenuContent,
212
- C as ContextMenuGroup,
213
- w as ContextMenuItem,
214
- I as ContextMenuLabel,
215
- h as ContextMenuPortal,
216
- N as ContextMenuRadioGroup,
217
- S as ContextMenuRadioItem,
218
- z as ContextMenuSeparator,
219
- G as ContextMenuShortcut,
220
- M as ContextMenuSub,
221
- k as ContextMenuSubContent,
222
- y as ContextMenuSubTrigger,
223
- g as ContextMenuTrigger
210
+ g as ContextMenu,
211
+ S as ContextMenuCheckboxItem,
212
+ w as ContextMenuContent,
213
+ h as ContextMenuGroup,
214
+ 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
224
225
  };
package/dist/dialog.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),h=require("react"),w=require("@radix-ui/react-dialog"),R=require("@brightlocal/icons"),r=require("@brightlocal/ui-components/lib/utils");function c(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const s=c(h),l=c(w),g=l.Root;g.displayName="Dialog";const f=s.forwardRef(({dataHook:e,...a},t)=>o.jsx(l.Trigger,{ref:t,"data-slot":"dialog-trigger",...e!=null&&{"data-hook":e},...a}));f.displayName="DialogTrigger";function n({...e}){return o.jsx(l.Portal,{...e})}n.displayName="DialogPortal";const u=s.forwardRef(({...e},a)=>o.jsx(l.Close,{ref:a,"data-slot":"dialog-close",...e}));u.displayName="DialogClose";const d=s.forwardRef(({className:e,...a},t)=>o.jsx(l.Overlay,{ref:t,className:r.cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),"data-slot":"dialog-overlay",...a}));d.displayName="DialogOverlay";const m=s.forwardRef(({className:e,children:a,dataHook:t,trackingEl:i,trackingLabel:b,closeLabel:j,...N},v)=>o.jsxs(n,{children:[o.jsx(d,{}),o.jsxs(l.Content,{ref:v,className:r.cn("bg-background text-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 border-card-border fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-8 rounded-xl border p-8 shadow-lg duration-200 sm:max-w-lg",e),"data-hook":t,"data-slot":"dialog-content","data-tracking-el":i,"data-tracking-label":b,...N,children:[a,o.jsxs(l.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-8 right-8 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0",children:[o.jsx(R.X,{}),o.jsx("span",{className:"sr-only",children:j??"Close"})]})]})]}));m.displayName="DialogContent";const p=s.forwardRef(({className:e,...a},t)=>o.jsx("div",{ref:t,className:r.cn("flex flex-col gap-2 text-center sm:text-left",e),"data-slot":"dialog-header",...a}));p.displayName="DialogHeader";const D=s.forwardRef(({className:e,...a},t)=>o.jsx("div",{ref:t,className:r.cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),"data-slot":"dialog-footer",...a}));D.displayName="DialogFooter";const x=s.forwardRef(({className:e,dataHook:a,...t},i)=>o.jsx(l.Title,{ref:i,className:r.cn("text-lg leading-none font-semibold",e),"data-hook":a,"data-slot":"dialog-title",...t}));x.displayName="DialogTitle";const y=s.forwardRef(({className:e,dataHook:a,...t},i)=>o.jsx(l.Description,{ref:i,className:r.cn("text-muted-foreground text-sm",e),"data-hook":a,"data-slot":"dialog-description",...t}));y.displayName="DialogDescription";exports.Dialog=g;exports.DialogClose=u;exports.DialogContent=m;exports.DialogDescription=y;exports.DialogFooter=D;exports.DialogHeader=p;exports.DialogOverlay=d;exports.DialogPortal=n;exports.DialogTitle=x;exports.DialogTrigger=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),h=require("react"),w=require("@radix-ui/react-dialog"),k=require("@brightlocal/icons"),r=require("@brightlocal/ui-components/lib/utils"),O=require("@brightlocal/ui-components/hooks/use-overlay-pointer-lock");function c(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const l=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,l.get?l:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const s=c(h),i=c(w),g=i.Root;g.displayName="Dialog";const f=s.forwardRef(({dataHook:e,...a},t)=>o.jsx(i.Trigger,{ref:t,"data-slot":"dialog-trigger",...e!=null&&{"data-hook":e},...a}));f.displayName="DialogTrigger";function n({...e}){return o.jsx(i.Portal,{...e})}n.displayName="DialogPortal";const u=s.forwardRef(({...e},a)=>o.jsx(i.Close,{ref:a,"data-slot":"dialog-close",...e}));u.displayName="DialogClose";const d=s.forwardRef(({className:e,...a},t)=>o.jsx(i.Overlay,{ref:t,className:r.cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),"data-slot":"dialog-overlay",...a}));d.displayName="DialogOverlay";const m=s.forwardRef(({className:e,children:a,dataHook:t,trackingEl:l,trackingLabel:b,closeLabel:j,...v},N)=>(O.useOverlayPointerLock(),o.jsxs(n,{children:[o.jsx(d,{}),o.jsxs(i.Content,{ref:N,className:r.cn("bg-background text-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 border-card-border fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-8 rounded-xl border p-8 shadow-lg duration-200 sm:max-w-lg",e),"data-hook":t,"data-slot":"dialog-content","data-tracking-el":l,"data-tracking-label":b,...v,children:[a,o.jsxs(i.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-8 right-8 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0",children:[o.jsx(k.X,{}),o.jsx("span",{className:"sr-only",children:j??"Close"})]})]})]})));m.displayName="DialogContent";const p=s.forwardRef(({className:e,...a},t)=>o.jsx("div",{ref:t,className:r.cn("flex flex-col gap-2 text-center sm:text-left",e),"data-slot":"dialog-header",...a}));p.displayName="DialogHeader";const D=s.forwardRef(({className:e,...a},t)=>o.jsx("div",{ref:t,className:r.cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),"data-slot":"dialog-footer",...a}));D.displayName="DialogFooter";const x=s.forwardRef(({className:e,dataHook:a,...t},l)=>o.jsx(i.Title,{ref:l,className:r.cn("text-lg leading-none font-semibold",e),"data-hook":a,"data-slot":"dialog-title",...t}));x.displayName="DialogTitle";const y=s.forwardRef(({className:e,dataHook:a,...t},l)=>o.jsx(i.Description,{ref:l,className:r.cn("text-muted-foreground text-sm",e),"data-hook":a,"data-slot":"dialog-description",...t}));y.displayName="DialogDescription";exports.Dialog=g;exports.DialogClose=u;exports.DialogContent=m;exports.DialogDescription=y;exports.DialogFooter=D;exports.DialogHeader=p;exports.DialogOverlay=d;exports.DialogPortal=n;exports.DialogTitle=x;exports.DialogTrigger=f;
@@ -1 +1 @@
1
- {"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../src/components/dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAK1D;;;GAGG;AACH,QAAA,MAAM,MAAM,uCAAuB,CAAC;AAGpC;;GAEG;AACH,UAAU,kBAAmB,SAAQ,KAAK,CAAC,cAAc,CACvD,OAAO,eAAe,CAAC,OAAO,CAC/B;IACC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC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MAAM,YAAY,mKAahB,CAAC;AAGH;;GAEG;AACH,UAAU,gBAAiB,SAAQ,KAAK,CAAC,cAAc,CACrD,OAAO,eAAe,CAAC,KAAK,CAC7B;IACC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,QAAA,MAAM,WAAW,0GAWf,CAAC;AAGH;;GAEG;AACH,UAAU,sBAAuB,SAAQ,KAAK,CAAC,cAAc,CAC3D,OAAO,eAAe,CAAC,WAAW,CACnC;IACC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,QAAA,MAAM,iBAAiB,kHAWrB,CAAC;AAGH,OAAO,EACL,MAAM,EACN,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,WAAW,EACX,aAAa,GACd,CAAC;AAEF,YAAY,EACV,kBAAkB,EAClB,sBAAsB,EACtB,gBAAgB,EAChB,kBAAkB,GACnB,CAAC"}
package/dist/dialog.js CHANGED
@@ -2,10 +2,11 @@ import { jsx as t, jsxs as d } from "react/jsx-runtime";
2
2
  import * as i from "react";
3
3
  import * as l from "@radix-ui/react-dialog";
4
4
  import { X as u } from "@brightlocal/icons";
5
- import { cn as s } from "@brightlocal/ui-components/lib/utils";
6
- const D = l.Root;
7
- D.displayName = "Dialog";
8
- const x = i.forwardRef(({ dataHook: a, ...o }, e) => /* @__PURE__ */ t(
5
+ import { cn as r } from "@brightlocal/ui-components/lib/utils";
6
+ import { useOverlayPointerLock as D } from "@brightlocal/ui-components/hooks/use-overlay-pointer-lock";
7
+ const x = l.Root;
8
+ x.displayName = "Dialog";
9
+ const y = i.forwardRef(({ dataHook: a, ...o }, e) => /* @__PURE__ */ t(
9
10
  l.Trigger,
10
11
  {
11
12
  ref: e,
@@ -14,20 +15,20 @@ const x = i.forwardRef(({ dataHook: a, ...o }, e) => /* @__PURE__ */ t(
14
15
  ...o
15
16
  }
16
17
  ));
17
- x.displayName = "DialogTrigger";
18
+ y.displayName = "DialogTrigger";
18
19
  function n({
19
20
  ...a
20
21
  }) {
21
22
  return /* @__PURE__ */ t(l.Portal, { ...a });
22
23
  }
23
24
  n.displayName = "DialogPortal";
24
- const y = i.forwardRef(({ ...a }, o) => /* @__PURE__ */ t(l.Close, { ref: o, "data-slot": "dialog-close", ...a }));
25
- y.displayName = "DialogClose";
25
+ const N = i.forwardRef(({ ...a }, o) => /* @__PURE__ */ t(l.Close, { ref: o, "data-slot": "dialog-close", ...a }));
26
+ N.displayName = "DialogClose";
26
27
  const g = i.forwardRef(({ className: a, ...o }, e) => /* @__PURE__ */ t(
27
28
  l.Overlay,
28
29
  {
29
30
  ref: e,
30
- className: s(
31
+ className: r(
31
32
  "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
32
33
  a
33
34
  ),
@@ -36,28 +37,28 @@ const g = i.forwardRef(({ className: a, ...o }, e) => /* @__PURE__ */ t(
36
37
  }
37
38
  ));
38
39
  g.displayName = "DialogOverlay";
39
- const N = i.forwardRef(
40
+ const h = i.forwardRef(
40
41
  ({
41
42
  className: a,
42
43
  children: o,
43
44
  dataHook: e,
44
- trackingEl: r,
45
+ trackingEl: s,
45
46
  trackingLabel: c,
46
47
  closeLabel: f,
47
48
  ...m
48
- }, p) => /* @__PURE__ */ d(n, { children: [
49
+ }, p) => (D(), /* @__PURE__ */ d(n, { children: [
49
50
  /* @__PURE__ */ t(g, {}),
50
51
  /* @__PURE__ */ d(
51
52
  l.Content,
52
53
  {
53
54
  ref: p,
54
- className: s(
55
+ className: r(
55
56
  "bg-background text-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 border-card-border fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-8 rounded-xl border p-8 shadow-lg duration-200 sm:max-w-lg",
56
57
  a
57
58
  ),
58
59
  "data-hook": e,
59
60
  "data-slot": "dialog-content",
60
- "data-tracking-el": r,
61
+ "data-tracking-el": s,
61
62
  "data-tracking-label": c,
62
63
  ...m,
63
64
  children: [
@@ -69,24 +70,24 @@ const N = i.forwardRef(
69
70
  ]
70
71
  }
71
72
  )
72
- ] })
73
+ ] }))
73
74
  );
74
- N.displayName = "DialogContent";
75
- const h = i.forwardRef(({ className: a, ...o }, e) => /* @__PURE__ */ t(
75
+ h.displayName = "DialogContent";
76
+ const v = i.forwardRef(({ className: a, ...o }, e) => /* @__PURE__ */ t(
76
77
  "div",
77
78
  {
78
79
  ref: e,
79
- className: s("flex flex-col gap-2 text-center sm:text-left", a),
80
+ className: r("flex flex-col gap-2 text-center sm:text-left", a),
80
81
  "data-slot": "dialog-header",
81
82
  ...o
82
83
  }
83
84
  ));
84
- h.displayName = "DialogHeader";
85
+ v.displayName = "DialogHeader";
85
86
  const b = i.forwardRef(({ className: a, ...o }, e) => /* @__PURE__ */ t(
86
87
  "div",
87
88
  {
88
89
  ref: e,
89
- className: s(
90
+ className: r(
90
91
  "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
91
92
  a
92
93
  ),
@@ -95,37 +96,37 @@ const b = i.forwardRef(({ className: a, ...o }, e) => /* @__PURE__ */ t(
95
96
  }
96
97
  ));
97
98
  b.displayName = "DialogFooter";
98
- const v = i.forwardRef(({ className: a, dataHook: o, ...e }, r) => /* @__PURE__ */ t(
99
+ const w = i.forwardRef(({ className: a, dataHook: o, ...e }, s) => /* @__PURE__ */ t(
99
100
  l.Title,
100
101
  {
101
- ref: r,
102
- className: s("text-lg leading-none font-semibold", a),
102
+ ref: s,
103
+ className: r("text-lg leading-none font-semibold", a),
103
104
  "data-hook": o,
104
105
  "data-slot": "dialog-title",
105
106
  ...e
106
107
  }
107
108
  ));
108
- v.displayName = "DialogTitle";
109
- const w = i.forwardRef(({ className: a, dataHook: o, ...e }, r) => /* @__PURE__ */ t(
109
+ w.displayName = "DialogTitle";
110
+ const k = i.forwardRef(({ className: a, dataHook: o, ...e }, s) => /* @__PURE__ */ t(
110
111
  l.Description,
111
112
  {
112
- ref: r,
113
- className: s("text-muted-foreground text-sm", a),
113
+ ref: s,
114
+ className: r("text-muted-foreground text-sm", a),
114
115
  "data-hook": o,
115
116
  "data-slot": "dialog-description",
116
117
  ...e
117
118
  }
118
119
  ));
119
- w.displayName = "DialogDescription";
120
+ k.displayName = "DialogDescription";
120
121
  export {
121
- D as Dialog,
122
- y as DialogClose,
123
- N as DialogContent,
124
- w as DialogDescription,
122
+ x as Dialog,
123
+ N as DialogClose,
124
+ h as DialogContent,
125
+ k as DialogDescription,
125
126
  b as DialogFooter,
126
- h as DialogHeader,
127
+ v as DialogHeader,
127
128
  g as DialogOverlay,
128
129
  n as DialogPortal,
129
- v as DialogTitle,
130
- x as DialogTrigger
130
+ w as DialogTitle,
131
+ y as DialogTrigger
131
132
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),z=require("react"),P=require("@radix-ui/react-dropdown-menu"),c=require("@brightlocal/icons"),l=require("@brightlocal/ui-components/lib/utils");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(z),r=m(P);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},p)=>o.jsx(r.Portal,{children:o.jsx(r.Content,{ref:p,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},p)=>o.jsxs(r.CheckboxItem,{ref:p,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(c.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(c.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},p)=>o.jsxs(r.SubTrigger,{ref:p,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(c.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:p,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:p,...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(c.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 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 +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;AAUvE;;GAEG;AACH,iBAAS,YAAY,CAAC,EACpB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,IAAI,CAAC,2CAEzD;kBAJQ,YAAY;;;AAQrB;;GAEG;AACH,iBAAS,kBAAkB,CAAC,EAC1B,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,MAAM,CAAC,2CAE3D;kBAJQ,kBAAkB;;;AAQ3B,KAAK,wBAAwB,GAAG,KAAK,CAAC,wBAAwB,CAC5D,OAAO,qBAAqB,CAAC,OAAO,CACrC,GAAG;IACF;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IACl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;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;AAWvE;;GAEG;AACH,iBAAS,YAAY,CAAC,EACpB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,IAAI,CAAC,2CAEzD;kBAJQ,YAAY;;;AAQrB;;GAEG;AACH,iBAAS,kBAAkB,CAAC,EAC1B,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,MAAM,CAAC,2CAE3D;kBAJQ,kBAAkB;;;AAQ3B,KAAK,wBAAwB,GAAG,KAAK,CAAC,wBAAwB,CAC5D,OAAO,qBAA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