"use strict";const o=require("./jsx-runtime-Dszzpdy0.cjs"),e=require("./css-B0VZnJIa.cjs"),a=require("./main-BnSpWlaf.cjs"),c=require("react"),S=require("./provider-Fw6FIHoE.cjs");require("react-dom");const d=({children:t=[],...s})=>o.jsxRuntimeExports.jsx(a.Box,{x:!0,gap:"small",align:"center",className:e.CSS.BE("header","actions"),...s,children:t}),u=c.createContext({divided:!1,level:"h1"}),i=()=>c.use(u),j=({className:t,level:s="p",divided:r=!1,bordered:n=!0,padded:l=!1,...x})=>o.jsxRuntimeExports.jsx(u,{value:{level:s,divided:r},children:o.jsxRuntimeExports.jsx(a.Box,{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"),l&&e.CSS.BM("header","padded"),t),...x})}),m=({children:t="",className:s,onClick:r,...n})=>{const{level:l}=i();return o.jsxRuntimeExports.jsx(a.Button,{variant:"text",size:S.LEVEL_COMPONENT_SIZES[l],onClick:r,className:e.CSS(e.CSS.B("header-button-title"),s),sharp:!0,...n,children:t})},C=({className:t,level:s,...r})=>{const{level:n}=i();return o.jsxRuntimeExports.jsx(a.Text,{className:e.CSS(e.CSS.BE("header","text"),t),level:s??n,gap:1.5,...r})},p=Object.freeze(Object.defineProperty({__proto__:null,Actions:d,ButtonTitle:m,Header:j,Title:C,useContext:i},Symbol.toStringTag,{value:"Module"}));exports.external=p;
