import {dom as $b7b7a92703138c9b$export$df3a06d6289f983e, useContextProps as $b7b7a92703138c9b$export$29f1550f4b0d4415, useRenderProps as $b7b7a92703138c9b$export$4d86445c2cf5e3} from "./utils.js";
import {useToolbar as $fplM8$useToolbar} from "react-aria/private/toolbar/useToolbar";
import {filterDOMProps as $fplM8$filterDOMProps} from "react-aria/private/utils/filterDOMProps";
import {mergeProps as $fplM8$mergeProps} from "react-aria/mergeProps";
import $fplM8$react, {createContext as $fplM8$createContext, forwardRef as $fplM8$forwardRef} from "react";

/*
 * Copyright 2023 Adobe. All rights reserved.
 * This file is licensed to you under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License. You may obtain a copy
 * of the License at http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under
 * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
 * OF ANY KIND, either express or implied. See the License for the specific language
 * governing permissions and limitations under the License.
 */ 




const $f7b0f4777851ba21$export$6311e7ab80ef752f = /*#__PURE__*/ (0, $fplM8$createContext)({});
const $f7b0f4777851ba21$export$4c260019440d418f = /*#__PURE__*/ (0, $fplM8$forwardRef)(function Toolbar(props, ref) {
    [props, ref] = (0, $b7b7a92703138c9b$export$29f1550f4b0d4415)(props, ref, $f7b0f4777851ba21$export$6311e7ab80ef752f);
    let { toolbarProps: toolbarProps } = (0, $fplM8$useToolbar)(props, ref);
    let renderProps = (0, $b7b7a92703138c9b$export$4d86445c2cf5e3)({
        ...props,
        values: {
            orientation: props.orientation || 'horizontal'
        },
        defaultClassName: 'react-aria-Toolbar'
    });
    let DOMProps = (0, $fplM8$filterDOMProps)(props, {
        global: true
    });
    delete DOMProps.id;
    return /*#__PURE__*/ (0, $fplM8$react).createElement((0, $b7b7a92703138c9b$export$df3a06d6289f983e).div, {
        ...(0, $fplM8$mergeProps)(DOMProps, renderProps, toolbarProps),
        ref: ref,
        slot: props.slot || undefined,
        "data-orientation": props.orientation || 'horizontal'
    }, renderProps.children);
});


export {$f7b0f4777851ba21$export$6311e7ab80ef752f as ToolbarContext, $f7b0f4777851ba21$export$4c260019440d418f as Toolbar};
//# sourceMappingURL=Toolbar.js.map
