@atlaskit/datetime-picker
Version:
A date time picker allows the user to select an associated date and time.
63 lines (62 loc) • 1.72 kB
JavaScript
/* fixed-layer-menu.tsx generated by @compiled/babel-plugin v3.0.2 */
import _extends from "@babel/runtime/helpers/extends";
import * as React from 'react';
import { ax, ix } from "@compiled/react/runtime";
import { components } from '@atlaskit/react-select/components';
import FixedLayer from '../internal/fixed-layer';
/**
* This is the fixed layer menu used in the time picker.
*/
export const FixedLayerMenu = ({
className,
clearValue,
cx,
getStyles,
getValue,
hasValue,
innerProps,
innerRef,
isLoading,
isMulti,
isRtl,
maxMenuHeight,
menuPlacement,
menuPosition,
menuShouldScrollIntoView,
minMenuHeight,
options,
placement,
selectOption,
selectProps,
setValue,
children,
...rest
}) => /*#__PURE__*/React.createElement(FixedLayer, {
inputValue: selectProps.inputValue,
containerRef: selectProps.fixedLayerRef,
content: /*#__PURE__*/React.createElement(components.Menu, _extends({}, rest, {
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides, @atlaskit/ui-styling-standard/no-classname-prop
className: className,
clearValue: clearValue,
cx: cx,
getStyles: getStyles,
getValue: getValue,
hasValue: hasValue,
innerProps: innerProps,
innerRef: innerRef,
isLoading: isLoading,
isMulti: isMulti,
isRtl: isRtl,
maxMenuHeight: maxMenuHeight,
menuPlacement: menuPlacement,
menuPosition: menuPosition,
menuShouldScrollIntoView: false || menuShouldScrollIntoView,
minMenuHeight: minMenuHeight,
options: options,
placement: placement,
selectOption: selectOption,
selectProps: selectProps,
setValue: setValue
}), children),
testId: selectProps.testId
});