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