"use strict";const s=require("react/jsx-runtime"),n=require("@chakra-ui/react"),f=require("./extract-style-props-DVhOcGEi.cjs.js"),x=require("./index-Dzrt5_tw.cjs.js"),l=require("./utils-BNYGVv6l.cjs.js"),p=require("./useToolbar-xJrixYVd.cjs.js"),P=require("./mergeProps-DD8aR8go.cjs.js"),h=require("./filterDOMProps-AbzzCIX-.cjs.js"),c=require("react"),q=c.createContext({}),C=c.forwardRef(function(e,t){[e,t]=l.$64fa3d84918910a7$export$29f1550f4b0d4415(e,t,q);let{toolbarProps:a}=p.$2680b1829e803644$export$fa142eb1681c520(e,t),o=l.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,values:{orientation:e.orientation||"horizontal"},defaultClassName:"react-aria-Toolbar"}),r=h.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return delete r.id,c.createElement("div",{...P.$3ef42575df84b30b$export$9d1611c77c2fe928(r,o,a),ref:t,slot:e.slot||void 0,"data-orientation":e.orientation||"horizontal"},o.children)}),{withContext:m}=n.createRecipeContext({key:"nimbusToolbar"}),R=m("div"),T=({ref:i,orientation:e="horizontal",...t})=>{const a=n.useRecipe({recipe:x.toolbarRecipe}),[o,r]=a.splitVariantProps({orientation:e,...t}),[d,u]=f.extractStyleProps(r),b=n.useChakraContext().normalizeValue(e),$=n.useBreakpointValue(b)??"horizontal";return s.jsx(R,{orientation:e,...o,...d,asChild:!0,children:s.jsx(C,{ref:i,orientation:$,...u})})};exports.Toolbar=T;
//# sourceMappingURL=toolbar-CX6F_Hyi.cjs.js.map
