UNPKG

@atlaskit/select

Version:

Select allows users to make a single selection or multiple selections from a list of options.

52 lines (49 loc) 1.71 kB
/* components.tsx generated by @compiled/babel-plugin v3.0.2 */ import _extends from "@babel/runtime/helpers/extends"; import "./components.compiled.css"; import * as React from 'react'; import { ax, ix } from "@compiled/react/runtime"; import SearchIcon from '@atlaskit/icon/core/search'; import { components } from '@atlaskit/react-select/components'; // ============================== // Custom Components // ============================== const dropdownStyles = null; const DropdownIndicator = () => /*#__PURE__*/React.createElement("div", { className: ax(["_1bsbzwfg _12l2v77o _y3gn1h6o"]) }, /*#__PURE__*/React.createElement(SearchIcon, { color: "currentColor", label: "" })); const controlStyles = null; const Control = ({ innerRef, innerProps, ...props }) => /*#__PURE__*/React.createElement("div", { ref: innerRef, className: ax(["_85i51b66 _1q51u2gc _y4tiu2gc _bozgu2gc"]) }, /*#__PURE__*/React.createElement(components.Control, _extends({}, props, { innerProps: innerProps }))); // NOTE `props` intentionally omitted from `Fragment` const Menu = ({ children, innerProps }) => /*#__PURE__*/React.createElement("div", innerProps, children); const ClearIndicator = props => /*#__PURE__*/ // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props React.createElement(components.ClearIndicator, props); const MultiValueRemove = props => /*#__PURE__*/ // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props React.createElement(components.MultiValueRemove, props); // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports export const defaultComponents = { Control, DropdownIndicator, Menu, ClearIndicator, MultiValueRemove };