/* @oracle/oraclejet-preact: undefined */
import { jsx } from 'preact/jsx-runtime';
import { forwardRef } from 'preact/compat';
import { B as ButtonSetContext } from './useButtonSetContext-6a483d7f.js';
import 'preact/hooks';
import { B as ButtonSet } from './ButtonSet-9b2c41be.js';
import { p as processGlobals } from './buttonUtils-be059939.js';
import { u as useId } from './useId-03dbfdf0.js';
import 'preact';
import './dimensions-d4159ace.js';
import './size-18139a3a.js';
import './utils-a4102e03.js';
import './Common/themes/themeContract.css.js';
import './colorUtils-16eb823f.js';
import './_curry1-25297e59.js';
import './mergeInterpolations-e2db2a66.js';
import './classNames-4e12b00d.js';
import './mergeDeepWithKey-08531060.js';
import './_curry3-0b4222d7.js';
import './_curry2-34316bcf.js';
import './_isObject-1fab0f5b.js';
import './UNSAFE_ButtonSet/themes/ButtonSetStyles.css.js';
import './ButtonSetStyles.styles.css';
import './ButtonSetPositionContext-5730d367.js';
import './toggleButtonUtils-75e3d781.js';
import './useTestId-9b504481.js';
import './LayerHost-e6402730.js';
import './Common/themes/redwood/theme.js';
import './UNSAFE_Layer/themes/LayerHostStyles.css.js';
import './LayerHostStyles.styles.css';
import './useRovingTabIndexContainer-bc7ae447.js';
import './useUser-1cd223a9.js';
import './clientHints-f850225e.js';
import './TabbableModeContext-7d8ad946.js';
import './useTabbableMode-a3a351d0.js';
import './refUtils-b9d8d91a.js';
import './id-83adac50.js';

/**
 * ButtonSet allow users to select the state of one or more related options.
 */
const ButtonSetMultiple = forwardRef(({ children, value: buttonSetItemValue, onCommit, display = 'all', testId, size = 'md', isDisabled = false, variant = 'outlined', layoutWidth = 'auto', 'aria-label': accessibleLabel, 'aria-labelledby': ariaLabelledBy, 'aria-controls': ariaControls, 'aria-describedby': ariaDescribedBy, width, ...props }, ref) => {
    const { globalEventProps } = processGlobals(props);
    return (jsx(ButtonSetContext.Provider, { value: {
            variant: variant,
            size: size,
            isDisabled: isDisabled,
            layoutWidth: layoutWidth,
            inputType: 'checkbox',
            inputName: useId(),
            display: display,
            width: width,
            buttonSetValue: buttonSetItemValue,
            onCommit: onCommit
        }, children: jsx(ButtonSet, { ref: ref, width: width, testId: testId, "aria-label": accessibleLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, "aria-controls": ariaControls, ...globalEventProps, children: children }) }));
});
ButtonSetMultiple.displayName = 'ButtonSetMultiple';

export { ButtonSetMultiple };
//# sourceMappingURL=UNSAFE_ButtonSetMultiple.js.map
