"use strict";const o=require("./jsx-runtime-nZSsnGb7.cjs");require("@synnaxlabs/x");const e=require("./css-CloSmhZB.cjs"),u=require("./Box-CNUz5BsV.cjs"),x=require("./Copy-BgRUUzWz.cjs"),S=require("react"),d=require("./Text-XHBXXDRS.cjs"),m=require("./Editable-HUPqTaui.cjs"),p=require("./types-DI2vtOGs.cjs"),C=({children:r=[],...t})=>o.jsxRuntimeExports.jsx(u.Box$1,{x:!0,gap:"small",align:"center",className:e.CSS.BE("header","actions"),...t,children:r}),[j,l]=d.create({defaultValue:{divided:!1,level:"h1"},displayName:"Header.Context"}),E=({className:r,level:t="p",divided:s=!1,bordered:n=!0,padded:a=!1,...c})=>{const i=S.useMemo(()=>({level:t,divided:s}),[t,s]);return o.jsxRuntimeExports.jsx(j,{value:i,children:o.jsxRuntimeExports.jsx(u.Box$1,{el:"header",x:!0,align:"center",justify:"between",className:e.CSS(e.CSS.B("header"),n&&e.CSS.bordered("bottom"),s&&e.CSS.BM("header","divided"),a&&e.CSS.BM("header","padded"),r),...c})})},B=({children:r="",className:t,onClick:s,...n})=>{const{level:a}=l();return o.jsxRuntimeExports.jsx(x.Button,{variant:"text",size:p.LEVEL_COMPONENT_SIZES[a],onClick:s,className:e.CSS(e.CSS.B("header-button-title"),t),sharp:!0,...n,children:r})},h=({className:r,level:t,...s})=>{const{level:n}=l();return o.jsxRuntimeExports.jsx(m.Text,{className:e.CSS(e.CSS.BE("header","text"),r),level:t??n,gap:1.5,...s})},q=Object.freeze(Object.defineProperty({__proto__:null,Actions:C,ButtonTitle:B,Header:E,Title:h,useContext:l},Symbol.toStringTag,{value:"Module"}));exports.external=q;
