"use strict";const e=require("./main-BnSpWlaf.cjs"),t=require("./jsx-runtime-Dszzpdy0.cjs");require("./css-B0VZnJIa.cjs");const a=require("./Toggle-DRTtCc6y.cjs");require("react");const m=require("./useKeysData-Do63LaI0.cjs");require("./provider-Fw6FIHoE.cjs");require("react-dom");const l=({keys:s,value:n,onChange:i,allowNone:o,multiple:u,...x})=>{const j=m.useKeysData(s);return t.jsxRuntimeExports.jsx(e.Frame$1,{closeDialogOnSelect:!1,...j,allowNone:o,multiple:u,value:n,onChange:i,children:t.jsxRuntimeExports.jsx(e.Box,{pack:!0,...x})})},r=({itemKey:s,...n})=>{const{setSelected:i}=e.useContext$3(),{selected:o,onSelect:u}=e.useItemState(s);return t.jsxRuntimeExports.jsx(a.Toggle,{...n,onChange:u,value:o,onContextMenu:x=>{i([s]),x.preventDefault()}})},c=({value:s,...n})=>t.jsxRuntimeExports.jsxs(l,{...n,value:s,keys:e.ALIGNMENTS,children:[t.jsxRuntimeExports.jsx(r,{itemKey:"start",children:t.jsxRuntimeExports.jsx(e.TextAlign.Left,{})}),t.jsxRuntimeExports.jsx(r,{itemKey:"center",children:t.jsxRuntimeExports.jsx(e.TextAlign.Center,{})}),t.jsxRuntimeExports.jsx(r,{itemKey:"end",children:t.jsxRuntimeExports.jsx(e.TextAlign.Right,{})})]}),p=Object.freeze(Object.defineProperty({__proto__:null,ALIGNMENTS:e.ALIGNMENTS,Box:e.Box,JUSTIFICATIONS:e.JUSTIFICATIONS,SelectAlignment:c,alignmentZ:e.alignmentZ,justificationZ:e.justificationZ,parseDirection:e.parseDirection,shouldReverse:e.shouldReverse},Symbol.toStringTag,{value:"Module"}));exports.Button=r;exports.Buttons=l;exports.SelectAlignment=c;exports.external=p;
