"use strict";const a=require("./jsx-runtime-CITbqOLs.cjs"),e=require("./css-CmXY6iPo.cjs"),o=require("./main-2qH2bggR.cjs"),i=require("react"),S=require("./eraser-C1jjA5cv.cjs");require("react-dom");const d=({children:t=[],...s})=>a.jsxRuntimeExports.jsx(o.Box,{x:!0,gap:"small",align:"center",className:e.CSS.BE("header","actions"),...s,children:t}),u=i.createContext({divided:!1,level:"h1"}),c=()=>i.use(u),j=({className:t,level:s="p",divided:r=!1,bordered:n=!0,padded:l=!1,...x})=>a.jsxRuntimeExports.jsx(u,{value:{level:s,divided:r},children:a.jsxRuntimeExports.jsx(o.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}=c();return a.jsxRuntimeExports.jsx(o.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}=c();return a.jsxRuntimeExports.jsx(o.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:c},Symbol.toStringTag,{value:"Module"}));exports.external=p;
