UNPKG

subhasmitalmg-react-spreadsheet-import

Version:

React spreadsheet import for xlsx and csv files with column matching and validation steps

16 lines (11 loc) 766 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var jsxRuntime = require('react/jsx-runtime'); var chakraReactSelect = require('chakra-react-select'); var MenuPortal = require('./MenuPortal.js'); var react = require('@chakra-ui/react'); const MatchColumnSelect = ({ onChange, value, options, placeholder, name }) => { const styles = react.useStyleConfig("MatchColumnsStep"); return (jsxRuntime.jsx(chakraReactSelect.Select, { value: value || null, colorScheme: "gray", useBasicStyles: true, onChange: onChange, placeholder: placeholder, options: options, chakraStyles: styles.select, menuPosition: "fixed", components: MenuPortal.customComponents, "aria-label": name })); }; exports.MatchColumnSelect = MatchColumnSelect;