33 lines
1.0 KiB
JavaScript
33 lines
1.0 KiB
JavaScript
'use client';
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
Object.defineProperty(exports, "useSwatchPickerRow_unstable", {
|
|
enumerable: true,
|
|
get: function() {
|
|
return useSwatchPickerRow_unstable;
|
|
}
|
|
});
|
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
const _reactutilities = require("@fluentui/react-utilities");
|
|
const _swatchPicker = require("../../contexts/swatchPicker");
|
|
const useSwatchPickerRow_unstable = (props, ref)=>{
|
|
const { style, ...rest } = props;
|
|
const spacing = (0, _swatchPicker.useSwatchPickerContextValue_unstable)((ctx)=>ctx.spacing);
|
|
return {
|
|
components: {
|
|
root: 'div'
|
|
},
|
|
root: _reactutilities.slot.always((0, _reactutilities.getIntrinsicElementProps)('div', {
|
|
ref,
|
|
role: 'row',
|
|
...rest
|
|
}), {
|
|
elementType: 'div'
|
|
}),
|
|
spacing
|
|
};
|
|
};
|