"use strict";const o=require("./jsx-runtime-nZSsnGb7.cjs"),e=require("./css-D3NdC2sx.cjs"),u=require("./Box-D27bV7QJ.cjs"),x=require("./Button-BSek5HG5.cjs"),S=require("react"),d=require("./Text-DW5FpCk9.cjs"),m=require("./Editable-C-z-stcD.cjs"),j=require("./types-C0tUDfsz.cjs"),p=({children:s=[],...t})=>o.jsxRuntimeExports.jsx(u.Box$1,{x:!0,gap:"small",align:"center",className:e.CSS.BE("header","actions"),...t,children:s}),[C,l]=d.create({defaultValue:{divided:!1,level:"h1"},displayName:"Header.Context"}),B=({className:s,level:t="p",divided:r=!1,bordered:n=!0,padded:a=!1,...c})=>{const i=S.useMemo(()=>({level:t,divided:r}),[t,r]);return o.jsxRuntimeExports.jsx(C,{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"),r&&e.CSS.BM("header","divided"),a&&e.CSS.BM("header","padded"),s),...c})})},E=({children:s="",className:t,onClick:r,...n})=>{const{level:a}=l();return o.jsxRuntimeExports.jsx(x.Button,{variant:"text",size:j.LEVEL_COMPONENT_SIZES[a],onClick:r,className:e.CSS(e.CSS.B("header-button-title"),t),sharp:!0,...n,children:s})},h=({className:s,level:t,...r})=>{const{level:n}=l();return o.jsxRuntimeExports.jsx(m.Text,{className:e.CSS(e.CSS.BE("header","text"),s),level:t??n,gap:1.5,...r})},b=Object.freeze(Object.defineProperty({__proto__:null,Actions:p,ButtonTitle:E,Header:B,Title:h,useContext:l},Symbol.toStringTag,{value:"Module"}));exports.external=b;
