@ark-ui/react
Version:
A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.
22 lines (17 loc) • 934 B
JavaScript
'use client';
;
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const jsxRuntime = require('react/jsx-runtime');
const react$1 = require('@zag-js/react');
const react = require('react');
const factory = require('../factory.cjs');
const useFieldContext = require('../field/use-field-context.cjs');
const useColorPickerContext = require('./use-color-picker-context.cjs');
const ColorPickerHiddenInput = react.forwardRef((props, ref) => {
const colorPicker = useColorPickerContext.useColorPickerContext();
const mergedProps = react$1.mergeProps(colorPicker.getHiddenInputProps(), props);
const field = useFieldContext.useFieldContext();
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.input, { "aria-describedby": field?.ariaDescribedby, ...mergedProps, ref });
});
ColorPickerHiddenInput.displayName = "ColorPickerHiddenInput";
exports.ColorPickerHiddenInput = ColorPickerHiddenInput;