diff --git a/lib/components/datePicker/datePicker.d.ts b/lib/components/datePicker/datePicker.d.ts index 6ffbae1..d30c966 100644 --- a/lib/components/datePicker/datePicker.d.ts +++ b/lib/components/datePicker/datePicker.d.ts @@ -3,8 +3,10 @@ import "react-dates/initialize"; import { Moment } from "moment"; import "react-dates/lib/css/_datepicker.css"; export declare type InputProps = { + labelName?: string; + requiredFieldText?: string; value: Moment | null; - setDate: any; + update: any; format: string; placeHolder?: string; numberOfMonths?: number; diff --git a/lib/components/datePicker/datePicker.js b/lib/components/datePicker/datePicker.js index 4dcaf15..70eef79 100644 --- a/lib/components/datePicker/datePicker.js +++ b/lib/components/datePicker/datePicker.js @@ -9,33 +9,63 @@ var _react = _interopRequireDefault(require("react")); require("react-dates/initialize"); +var R = _interopRequireWildcard(require("ramda")); + var _recompose = require("recompose"); var _reactDates = require("react-dates"); require("react-dates/lib/css/_datepicker.css"); +function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -var DatePicker = function DatePicker(_ref) { - var value = _ref.value, - _ref$id = _ref.id, - id = _ref$id === void 0 ? "arkDatePicker" : _ref$id, - changeData = _ref.changeData, - focusedInput = _ref.focusedInput, - setFocusedInput = _ref.setFocusedInput, - format = _ref.format, - _ref$disabled = _ref.disabled, - disabled = _ref$disabled === void 0 ? false : _ref$disabled, - _ref$readOnly = _ref.readOnly, - readOnly = _ref$readOnly === void 0 ? false : _ref$readOnly, - _ref$placeHolder = _ref.placeHolder, - placeHolder = _ref$placeHolder === void 0 ? "Choose Date" : _ref$placeHolder, - _ref$withPortal = _ref.withPortal, - withPortal = _ref$withPortal === void 0 ? false : _ref$withPortal, - _ref$numberOfMonths = _ref.numberOfMonths, - numberOfMonths = _ref$numberOfMonths === void 0 ? 1 : _ref$numberOfMonths; - return _react.default.createElement(_reactDates.SingleDatePicker, { +var OnlyLabelName = function OnlyLabelName(_ref) { + var labelName = _ref.labelName; + return _react.default.createElement("label", { + htmlFor: "select" + }, _react.default.createElement("b", null, labelName)); +}; + +var RequiredLabelName = function RequiredLabelName(_ref2) { + var labelName = _ref2.labelName, + requiredFieldText = _ref2.requiredFieldText; + return _react.default.createElement("label", { + htmlFor: "select" + }, _react.default.createElement("div", { + className: "requiredLabel" + }, _react.default.createElement("b", null, labelName), _react.default.createElement("div", { + className: "required" + }, requiredFieldText))); +}; + +var DatePicker = function DatePicker(_ref3) { + var labelName = _ref3.labelName, + requiredFieldText = _ref3.requiredFieldText, + value = _ref3.value, + _ref3$id = _ref3.id, + id = _ref3$id === void 0 ? "arkDatePicker" : _ref3$id, + changeData = _ref3.changeData, + focusedInput = _ref3.focusedInput, + setFocusedInput = _ref3.setFocusedInput, + format = _ref3.format, + _ref3$disabled = _ref3.disabled, + disabled = _ref3$disabled === void 0 ? false : _ref3$disabled, + _ref3$readOnly = _ref3.readOnly, + readOnly = _ref3$readOnly === void 0 ? false : _ref3$readOnly, + _ref3$placeHolder = _ref3.placeHolder, + placeHolder = _ref3$placeHolder === void 0 ? "Choose Date" : _ref3$placeHolder, + _ref3$withPortal = _ref3.withPortal, + withPortal = _ref3$withPortal === void 0 ? false : _ref3$withPortal, + _ref3$numberOfMonths = _ref3.numberOfMonths, + numberOfMonths = _ref3$numberOfMonths === void 0 ? 1 : _ref3$numberOfMonths; + return _react.default.createElement(_react.default.Fragment, null, !R.isEmpty(labelName) && R.isEmpty(requiredFieldText) ? _react.default.createElement(OnlyLabelName, { + labelName: labelName + }) : null, !R.isEmpty(labelName) && !R.isEmpty(requiredFieldText) ? _react.default.createElement(RequiredLabelName, { + labelName: labelName, + requiredFieldText: requiredFieldText + }) : null, _react.default.createElement(_reactDates.SingleDatePicker, { id: id, date: value, focused: focusedInput, @@ -50,23 +80,23 @@ var DatePicker = function DatePicker(_ref) { numberOfMonths: numberOfMonths, withPortal: withPortal, placeholder: placeHolder - }); + })); }; var _default = (0, _recompose.compose)((0, _recompose.withState)("focusedInput", "updateFocusedInput", false), (0, _recompose.withHandlers)({ - changeData: function changeData(_ref2) { - var setDate = _ref2.setDate; + changeData: function changeData(_ref4) { + var update = _ref4.update; return function (val) { - return setDate(val); + return update(val); }; }, setFocusedInput: function setFocusedInput(props) { - return function (_ref3) { - var focused = _ref3.focused; + return function (_ref5) { + var focused = _ref5.focused; return props.updateFocusedInput(focused); }; } }))(DatePicker); exports.default = _default; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL2RhdGVQaWNrZXIvZGF0ZVBpY2tlci50c3giXSwibmFtZXMiOlsiRGF0ZVBpY2tlciIsInZhbHVlIiwiaWQiLCJjaGFuZ2VEYXRhIiwiZm9jdXNlZElucHV0Iiwic2V0Rm9jdXNlZElucHV0IiwiZm9ybWF0IiwiZGlzYWJsZWQiLCJyZWFkT25seSIsInBsYWNlSG9sZGVyIiwid2l0aFBvcnRhbCIsIm51bWJlck9mTW9udGhzIiwic2V0RGF0ZSIsInZhbCIsInByb3BzIiwiZm9jdXNlZCIsInVwZGF0ZUZvY3VzZWRJbnB1dCJdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUFBOztBQUNBOztBQUNBOztBQUVBOztBQUNBOzs7O0FBRUEsSUFBTUEsVUFBVSxHQUFHLFNBQWJBLFVBQWE7QUFBQSxNQUNqQkMsS0FEaUIsUUFDakJBLEtBRGlCO0FBQUEscUJBRWpCQyxFQUZpQjtBQUFBLE1BRWpCQSxFQUZpQix3QkFFWixlQUZZO0FBQUEsTUFHakJDLFVBSGlCLFFBR2pCQSxVQUhpQj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GUgT3V0cHV0UHJvcHMgPSBJbnB1dFByb3BzICYge1xyXG4gIGNoYW5nZURhdGE6IGFueTtcclxuICBzZXRGb2N1c2VkSW5wdXQ6IGFueTtcclxuICBmb2N1c2VkSW5wdXQ6IGJvb2xlYW47XHJcbn07XHJcblxyXG5leHBvcnQgZGVmYXVsdCBjb21wb3NlPE91dHB1dFByb3BzLCBJbnB1dFByb3BzPihcclxuICB3aXRoU3RhdGUoXCJmb2N1c2VkSW5wdXRcIiwgXCJ1cGRhdGVGb2N1c2VkSW5wdXRcIiwgZmFsc2UpLFxyXG4gIHdpdGhIYW5kbGVycyh7XHJcbiAgICBjaGFuZ2VEYXRhOiAoeyBzZXREYXRlIH06IHsgc2V0RGF0ZTogYW55IH0pID0+ICh2YWw6IGFueSkgPT4gc2V0RGF0ZSh2YWwpLFxyXG4gICAgc2V0Rm9jdXNlZElucHV0OiAocHJvcHM6IGFueSkgPT4gKHsgZm9jdXNlZCB9OiB7IGZvY3VzZWQ6IHN0cmluZyB9KSA9PlxyXG4gICAgICBwcm9wcy51cGRhdGVGb2N1c2VkSW5wdXQoZm9jdXNlZClcclxuICB9KVxyXG4pKERhdGVQaWNrZXIpO1xyXG4iXX0= \ No newline at end of file +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL2RhdGVQaWNrZXIvZGF0ZVBpY2tlci50c3giXSwibmFtZXMiOlsiT25seUxhYmVsTmFtZSIsImxhYmVsTmFtZSIsIlJlcXVpcmVkTGFiZWxOYW1lIiwicmVxdWlyZWRGaWVsZFRleHQiLCJEYXRlUGlja2VyIiwidmFsdWUiLCJpZCIsImNoYW5nZURhdGEiLCJmb2N1c2VkSW5wdXQiLCJzZXRGb2N1c2VkSW5wdXQiLCJmb3JtYXQiLCJkaXNhYmxlZCIsInJlYWRPbmx5IiwicGxhY2VIb2xkZXIiLCJ3aXRoUG9ydGFsIiw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VwZGF0ZSh2YWwpLFxyXG4gICAgc2V0Rm9jdXNlZElucHV0OiAocHJvcHM6IGFueSkgPT4gKHsgZm9jdXNlZCB9OiB7IGZvY3VzZWQ6IHN0cmluZyB9KSA9PlxyXG4gICAgICBwcm9wcy51cGRhdGVGb2N1c2VkSW5wdXQoZm9jdXNlZClcclxuICB9KVxyXG4pKERhdGVQaWNrZXIpO1xyXG4iXX0= \ No newline at end of file diff --git a/lib/components/dropdown/dropdown.d.ts b/lib/components/dropdown/dropdown.d.ts index 9c16c04..0de7954 100644 --- a/lib/components/dropdown/dropdown.d.ts +++ b/lib/components/dropdown/dropdown.d.ts @@ -1,9 +1,9 @@ /// -declare const Dropdown: ({ labelName, selectName, update, value, options, sortOptions, isMulti, customScrollBars, isDisabled, isSearchable, isClearable, closeMenuOnSelect, noOptionsMessage, placeholder }: { +declare const Dropdown: ({ labelName, selectName, change, value, options, sortOptions, isMulti, customScrollBars, isDisabled, isSearchable, isClearable, closeMenuOnSelect, noOptionsMessage, requiredFieldText, placeholder }: { labelName?: string | undefined; selectName: string; value: any[]; - update: any; + change: any; options: any[]; sortOptions?: boolean | undefined; isMulti?: boolean | undefined; @@ -12,6 +12,7 @@ declare const Dropdown: ({ labelName, selectName, update, value, options, sortOp isSearchable?: boolean | undefined; isClearable?: boolean | undefined; closeMenuOnSelect?: boolean | undefined; + requiredFieldText?: string | undefined; noOptionsMessage?: string | undefined; placeholder?: string | undefined; }) => JSX.Element; diff --git a/lib/components/dropdown/dropdown.js b/lib/components/dropdown/dropdown.js index e88a3bf..edefa84 100644 --- a/lib/components/dropdown/dropdown.js +++ b/lib/components/dropdown/dropdown.js @@ -21,9 +21,28 @@ function _extends() { _extends = Object.assign || function (target) { for (var i var sortByNameCaseInsensitive = R.sortBy(R.compose(R.toLower, R.prop("value"))); -var sortOptionsFunc = function sortOptionsFunc(_ref) { - var options = _ref.options, - sortOptions = _ref.sortOptions; +var OnlyLabelName = function OnlyLabelName(_ref) { + var labelName = _ref.labelName; + return _react.default.createElement("label", { + htmlFor: "select" + }, _react.default.createElement("b", null, labelName)); +}; + +var RequiredLabelName = function RequiredLabelName(_ref2) { + var labelName = _ref2.labelName, + requiredFieldText = _ref2.requiredFieldText; + return _react.default.createElement("label", { + htmlFor: "select" + }, _react.default.createElement("div", { + className: "requiredLabel" + }, _react.default.createElement("b", null, labelName), _react.default.createElement("div", { + className: "required" + }, requiredFieldText))); +}; + +var sortOptionsFunc = function sortOptionsFunc(_ref3) { + var options = _ref3.options, + sortOptions = _ref3.sortOptions; return sortOptions ? sortByNameCaseInsensitive(options) : options; }; @@ -58,40 +77,44 @@ var Menu = function Menu(props) { }, props.children)); }; -var Dropdown = function Dropdown(_ref2) { - var labelName = _ref2.labelName, - selectName = _ref2.selectName, - update = _ref2.update, - value = _ref2.value, - options = _ref2.options, - _ref2$sortOptions = _ref2.sortOptions, - sortOptions = _ref2$sortOptions === void 0 ? false : _ref2$sortOptions, - _ref2$isMulti = _ref2.isMulti, - isMulti = _ref2$isMulti === void 0 ? false : _ref2$isMulti, - _ref2$customScrollBar = _ref2.customScrollBars, - customScrollBars = _ref2$customScrollBar === void 0 ? false : _ref2$customScrollBar, - _ref2$isDisabled = _ref2.isDisabled, - isDisabled = _ref2$isDisabled === void 0 ? false : _ref2$isDisabled, - _ref2$isSearchable = _ref2.isSearchable, - isSearchable = _ref2$isSearchable === void 0 ? false : _ref2$isSearchable, - _ref2$isClearable = _ref2.isClearable, - isClearable = _ref2$isClearable === void 0 ? false : _ref2$isClearable, - _ref2$closeMenuOnSele = _ref2.closeMenuOnSelect, - closeMenuOnSelect = _ref2$closeMenuOnSele === void 0 ? false : _ref2$closeMenuOnSele, - _ref2$noOptionsMessag = _ref2.noOptionsMessage, - _noOptionsMessage = _ref2$noOptionsMessag === void 0 ? "No Options" : _ref2$noOptionsMessag, - _ref2$placeholder = _ref2.placeholder, - placeholder = _ref2$placeholder === void 0 ? "Select..." : _ref2$placeholder; - - return _react.default.createElement(_react.default.Fragment, null, labelName ? _react.default.createElement("label", { - htmlFor: "select" - }, _react.default.createElement("b", null, labelName)) : null, _react.default.createElement(_reactSelect.default, { +var Dropdown = function Dropdown(_ref4) { + var labelName = _ref4.labelName, + selectName = _ref4.selectName, + change = _ref4.change, + value = _ref4.value, + options = _ref4.options, + _ref4$sortOptions = _ref4.sortOptions, + sortOptions = _ref4$sortOptions === void 0 ? false : _ref4$sortOptions, + _ref4$isMulti = _ref4.isMulti, + isMulti = _ref4$isMulti === void 0 ? false : _ref4$isMulti, + _ref4$customScrollBar = _ref4.customScrollBars, + customScrollBars = _ref4$customScrollBar === void 0 ? false : _ref4$customScrollBar, + _ref4$isDisabled = _ref4.isDisabled, + isDisabled = _ref4$isDisabled === void 0 ? false : _ref4$isDisabled, + _ref4$isSearchable = _ref4.isSearchable, + isSearchable = _ref4$isSearchable === void 0 ? false : _ref4$isSearchable, + _ref4$isClearable = _ref4.isClearable, + isClearable = _ref4$isClearable === void 0 ? false : _ref4$isClearable, + _ref4$closeMenuOnSele = _ref4.closeMenuOnSelect, + closeMenuOnSelect = _ref4$closeMenuOnSele === void 0 ? true : _ref4$closeMenuOnSele, + _ref4$noOptionsMessag = _ref4.noOptionsMessage, + _noOptionsMessage = _ref4$noOptionsMessag === void 0 ? "No Options" : _ref4$noOptionsMessag, + requiredFieldText = _ref4.requiredFieldText, + _ref4$placeholder = _ref4.placeholder, + placeholder = _ref4$placeholder === void 0 ? "Select..." : _ref4$placeholder; + + return _react.default.createElement(_react.default.Fragment, null, !R.isEmpty(labelName) && R.isEmpty(requiredFieldText) ? _react.default.createElement(OnlyLabelName, { + labelName: labelName + }) : null, !R.isEmpty(labelName) && !R.isEmpty(requiredFieldText) ? _react.default.createElement(RequiredLabelName, { + labelName: labelName, + requiredFieldText: requiredFieldText + }) : null, _react.default.createElement(_reactSelect.default, { isMulti: isMulti, className: "arkSelect", classNamePrefix: "arkSelect", name: selectName, value: value, - onChange: update, + onChange: change, options: sortOptionsFunc({ options: options, sortOptions: sortOptions @@ -113,4 +136,4 @@ var Dropdown = function Dropdown(_ref2) { var _default = Dropdown; exports.default = _default; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL2Ryb3Bkb3duL2Ryb3Bkb3duLnRzeCJdLCJuYW1lcyI6WyJzb3J0QnlOYW1lQ2FzZUluc2Vuc2l0aXZlIiwiUiIsInNvcnRCeSIsImNvbXBvc2UiLCJ0b0xvd2VyIiwicHJvcCIsInNvcnRPcHRpb25zRnVuYyIsIm9wdGlvbnMiLCJzb3J0T3B0aW9ucyIsIlNjcm9sbGJhcnNNZW51IiwicHJvcHMiLCJwIiwiZGlzcGxheSIsInZhbHMiLCJjaGlsZHJlbiIsIk1lbnUiLCJtZW51U2hvdWxkU2Nyb2xsSW50b1ZpZXciLCJEcm9wZG93biIsImxhYmVsTmFtZSIsInNlbGVjdE5hbWUiLCJ1cGRhdGUiLCJ2YWx1ZSIsImlzTXVsdGkiLCJjdXN0b21TY3JvbGxCYXJzIiwiaXNEaXNhYmxlZCIsImlzU2VhcmNoYWJsZSIsImlzQ2xlYXJhYmxlIiwiY2xvc2VNZW51T25TZWxlY3QiLCJub09wdGlvbnNNZXNzYWdlIiwicGxhY2Vob2xkZXIiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFBQTs7QUFDQTs7QUFDQTs7QUFDQTs7Ozs7Ozs7QUFFQSxJQUFNQSx5QkFBeUIsR0FBR0MsQ0FBQyxDQUFDQyxNQUFGLENBQ2hDRCxDQUFDLENBQUNFLE9BQUYsQ0FDRUYsQ0FBQyxDQUFDRyxPQURKLEVBRUVILENBQUMsQ0FBQ0ksSUFBRixDQUFvQixPQUFwQixDQUZGLENBRGdDLENBQWxDOztBQU9BLElBQU1DLGVBQWUsR0FBRyxTQUFsQkEsZUFBa0I7QUFBQSxNQUN0QkMsT0FEc0IsUUFDdEJBLE9BRHNCO0FBQUEsTUF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BvcnQgZGVmYXVsdCBEcm9wZG93bjtcclxuIl19 \ No newline at end of file diff --git a/lib/components/numericInput/numericInput.js b/lib/components/numericInput/numericInput.js index bb10f33..c647a4e 100644 --- a/lib/components/numericInput/numericInput.js +++ b/lib/components/numericInput/numericInput.js @@ -29,7 +29,7 @@ var RequiredLabelName = function RequiredLabelName(_ref2) { htmlFor: "select" }, _react.default.createElement("div", { className: "requiredLabel" - }, _react.default.createElement("div", null, labelName), _react.default.createElement("div", { + }, _react.default.createElement("b", null, labelName), _react.default.createElement("div", { className: "required" }, requiredFieldText))); }; @@ -99,4 +99,4 @@ var _default = (0, _recompose.compose)((0, _recompose.withHandlers)({ }))(NumericInput); exports.default = _default; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL251bWVyaWNJbnB1dC9udW1lcmljSW5wdXQudHN4Il0sIm5hbWVzIjpbIk9ubHlMYWJlbE5hbWUiLCJsYWJlbE5hbWUiLCJSZXF1aXJlZExhYmVsTmFtZSIsInJlcXVpcmVkRmllbGRUZXh0IiwiTnVtZXJpY0lucHV0IiwidmFsdWUiLCJjaGFuZ2UiLCJpbnB1dENsYXNzTmFtZSIsImlkIiwicmVhZE9ubHkiLCJkaXNhYmxlZCIsImF1dG9Db21wbGV0ZSIsInN0ZXAiLCJtaW4iLCJtYXgiLCJwbGFjZWhvbGRlciIsIlIiLCJpc0VtcHR5IiwidXBkYXRlIiwiZSIsInZhbCIsInRhcmdldCIsInVuZGVmaW5lZCIsIm1pblRlc3QiLCJwYXJzZUZsb2F0IiwibWF4VGVzdCIsImFueSIsImVxdWFscyJdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUFBOztBQUNBOztBQUNBOzs7Ozs7QUFFQSxJQUFNQSxhQUFhLEdBQUcsU0FBaEJBLGFBQWdCO0FBQUEsTUFBR0MsU0FBSCxRQUFHQSxTQUFIO0FBQUEsU0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uICAgICAgICByZXF1aXJlZEZpZWxkVGV4dD17cmVxdWlyZWRGaWVsZFRleHR9XHJcbiAgICAgIC8+XHJcbiAgICApIDogbnVsbH1cclxuICAgIDxpbnB1dFxyXG4gICAgICB0eXBlPVwibnVtYmVyXCJcclxuICAgICAgY2xhc3NOYW1lPXtgZm9ybS1jb250cm9sIGFya051bWJlcklucHV0ICR7aW5wdXRDbGFzc05hbWV9ICR7XHJcbiAgICAgICAgZGlzYWJsZWQgfHwgcmVhZE9ubHkgPyBcImRpc2FibGVkXCIgOiBcIlwiXHJcbiAgICAgIH1gfVxyXG4gICAgICB2YWx1ZT17dmFsdWV9XHJcbiAgICAgIHBsYWNlaG9sZGVyPXtwbGFjZWhvbGRlcn1cclxuICAgICAgaWQ9e2lkfVxyXG4gICAgICByZWFkT25seT17cmVhZE9ubHl9XHJcbiAgICAgIG1heD17bWF4fVxyXG4gICAgICBtaW49e21pbn1cclxuICAgICAgc3RlcD17c3RlcH1cclxuICAgICAgYXV0b0NvbXBsZXRlPXthdXRvQ29tcGxldGV9XHJcbiAgICAgIGRpc2FibGVkPXtkaXNhYmxlZH1cclxuICAgICAgb25DaGFuZ2U9e2NoYW5nZX1cclxuICAgIC8+XHJcbiAgPC9kaXY+XHJcbik7XHJcblxyXG5leHBvcnQgZGVmYXVsdCBjb21wb3NlPE91dHB1dFByb3BzLCBJbnB1dFByb3BzPihcclxuICB3aXRoSGFuZGxlcnMoe1xyXG4gICAgY2hhbmdlOiAoe1xyXG4gICAgICB1cGRhdGUsXHJcbiAgICAgIG1heCxcclxuICAgICAgbWluXHJcbiAgICB9OiB7XHJcbiAgICAgIHVwZGF0ZTogYW55O1xyXG4gICAgICBtYXg/OiBudW1iZXI7XHJcbiAgICAgIG1pbj86IG51bWJlcjtcclxuICAgIH0pID0+IChlOiBhbnkpID0+IHtcclxuICAgICAgY29uc3QgdmFsID0gZS50YXJnZXQudmFsdWU7XHJcbiAgICAgIGlmIChtaW4gIT09IHVuZGVmaW5lZCB8fCBtYXggIT09IHVuZGVmaW5lZCkge1xyXG4gICAgICAgIGNvbnN0IG1pblRlc3QgPSBtaW4gIT09IHVuZGVmaW5lZCAmJiBwYXJzZUZsb2F0KHZhbCkgPCBtaW47XHJcbiAgICAgICAgY29uc3QgbWF4VGVzdCA9IG1heCAhPT0gdW5kZWZpbmVkICYmIHBhcnNlRmxvYXQodmFsKSA+IG1heDtcclxuICAgICAgICBkZWJ1Z2dlcjtcclxuICAgICAgICByZXR1cm4gUi5hbnkoUi5lcXVhbHModHJ1ZSkpKFttaW5UZXN0LCBtYXhUZXN0XSlcclxuICAgICAgICAgID8gdXBkYXRlKFwiXCIpXHJcbiAgICAgICAgICA6IHVwZGF0ZSh2YWwpO1xyXG4gICAgICB9XHJcbiAgICAgIHJldHVybiB1cGRhdGUodmFsKTtcclxuICAgIH1cclxuICB9KVxyXG4pKE51bWVyaWNJbnB1dCk7XHJcbiJdfQ== \ No newline at end of file +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL251bWVyaWNJbnB1dC9udW1lcmljSW5wdXQudHN4Il0sIm5hbWVzIjpbIk9ubHlMYWJlbE5hbWUiLCJsYWJlbE5hbWUiLCJSZXF1aXJlZExhYmVsTmFtZSIsInJlcXVpcmVkRmllbGRUZXh0IiwiTnVtZXJpY0lucHV0IiwidmFsdWUiLCJjaGFuZ2UiLCJpbnB1dENsYXNzTmFtZSIsImlkIiwicmVhZE9ubHkiLCJkaXNhYmxlZCIsImF1dG9Db21wbGV0ZSIsInN0ZXAiLCJtaW4iLCJtYXgiLCJwbGFjZWhvbGRlciIsIlIiLCJpc0VtcHR5IiwidXBkYXRlIiwiZSIsInZhbCIsInRhcmdldCIsInVuZGVmaW5lZCIsIm1pblRlc3QiLCJwYXJzZUZsb2F0IiwibWF4VGVzdCIsImFueSIsImVxdWFscyJdLCJtYXBwaW5ncyI6Ijs7Oz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XG4gICAgfSkgPT4gKGU6IGFueSkgPT4ge1xyXG4gICAgICBjb25zdCB2YWwgPSBlLnRhcmdldC52YWx1ZTtcclxuICAgICAgaWYgKG1pbiAhPT0gdW5kZWZpbmVkIHx8IG1heCAhPT0gdW5kZWZpbmVkKSB7XHJcbiAgICAgICAgY29uc3QgbWluVGVzdCA9IG1pbiAhPT0gdW5kZWZpbmVkICYmIHBhcnNlRmxvYXQodmFsKSA8IG1pbjtcclxuICAgICAgICBjb25zdCBtYXhUZXN0ID0gbWF4ICE9PSB1bmRlZmluZWQgJiYgcGFyc2VGbG9hdCh2YWwpID4gbWF4O1xyXG4gICAgICAgIGRlYnVnZ2VyO1xyXG4gICAgICAgIHJldHVybiBSLmFueShSLmVxdWFscyh0cnVlKSkoW21pblRlc3QsIG1heFRlc3RdKVxyXG4gICAgICAgICAgPyB1cGRhdGUoXCJcIilcclxuICAgICAgICAgIDogdXBkYXRlKHZhbCk7XHJcbiAgICAgIH1cclxuICAgICAgcmV0dXJuIHVwZGF0ZSh2YWwpO1xyXG4gICAgfVxyXG4gIH0pXHJcbikoTnVtZXJpY0lucHV0KTtcclxuIl19 \ No newline at end of file diff --git a/lib/components/textArea/textArea.js b/lib/components/textArea/textArea.js index 9f96ef7..75f56c4 100644 --- a/lib/components/textArea/textArea.js +++ b/lib/components/textArea/textArea.js @@ -27,7 +27,7 @@ var RequiredLabelName = function RequiredLabelName(_ref2) { htmlFor: "select" }, _react.default.createElement("div", { className: "requiredLabel" - }, _react.default.createElement("div", null, labelName), _react.default.createElement("div", { + }, _react.default.createElement("b", null, labelName), _react.default.createElement("div", { className: "required" }, requiredFieldText))); }; @@ -78,4 +78,4 @@ var TextBoxInput = function TextBoxInput(_ref3) { var _default = TextBoxInput; exports.default = _default; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL3RleHRBcmVhL3RleHRBcmVhLnR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RPbmx5fVxyXG4gICAgICBtYXhMZW5ndGg9e21heExlbmd0aH1cclxuICAgICAgbWluTGVuZ3RoPXttaW5MZW5ndGh9XHJcbiAgICAgIGF1dG9Db21wbGV0ZT17YXV0b0NvbXBsZXRlfVxyXG4gICAgICBkaXNhYmxlZD17ZGlzYWJsZWR9XHJcbiAgICAgIG9uQ2hhbmdlPXtlID0+IHVwZGF0ZShlLnRhcmdldC52YWx1ZSl9XHJcbiAgICAvPlxyXG4gIDwvZGl2PlxyXG4pO1xyXG5cclxuZXhwb3J0IGRlZmF1bHQgVGV4dEJveElucHV0O1xyXG4iXX0= \ No newline at end of file diff --git a/lib/components/textInput/textInput.js b/lib/components/textInput/textInput.js index 5e5dd3d..a8899d6 100644 --- a/lib/components/textInput/textInput.js +++ b/lib/components/textInput/textInput.js @@ -29,7 +29,7 @@ var RequiredLabelName = function RequiredLabelName(_ref2) { htmlFor: "select" }, _react.default.createElement("div", { className: "requiredLabel" - }, _react.default.createElement("div", null, labelName), _react.default.createElement("div", { + }, _react.default.createElement("b", null, labelName), _react.default.createElement("div", { className: "required" }, requiredFieldText))); }; @@ -51,7 +51,7 @@ var NumericInput = function NumericInput(_ref3) { requiredFieldText = _ref3.requiredFieldText, _ref3$placeholder = _ref3.placeholder, placeholder = _ref3$placeholder === void 0 ? "" : _ref3$placeholder; - return _react.default.createElement("div", null, !R.isEmpty(labelName) && R.isEmpty(requiredFieldText) ? _react.default.createElement(OnlyLabelName, { + return _react.default.createElement(_react.default.Fragment, null, !R.isEmpty(labelName) && R.isEmpty(requiredFieldText) ? _react.default.createElement(OnlyLabelName, { labelName: labelName }) : null, !R.isEmpty(labelName) && !R.isEmpty(requiredFieldText) ? _react.default.createElement(RequiredLabelName, { labelName: labelName, @@ -79,4 +79,4 @@ var _default = (0, _recompose.compose)((0, _recompose.withHandlers)({ }))(NumericInput); exports.default = _default; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjp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JsZWQgfHwgcmVhZE9ubHkgPyBcImRpc2FibGVkXCIgOiBcIlwiXHJcbiAgICAgIH1gfVxyXG4gICAgICB2YWx1ZT17dmFsdWV9XHJcbiAgICAgIHBsYWNlaG9sZGVyPXtwbGFjZWhvbGRlcn1cclxuICAgICAgaWQ9e2lkfVxyXG4gICAgICByZWFkT25seT17cmVhZE9ubHl9XHJcbiAgICAgIGF1dG9Db21wbGV0ZT17YXV0b0NvbXBsZXRlfVxyXG4gICAgICBkaXNhYmxlZD17ZGlzYWJsZWR9XHJcbiAgICAgIG9uQ2hhbmdlPXtjaGFuZ2V9XHJcbiAgICAvPlxyXG4gIDwvPlxyXG4pO1xyXG5cclxuZXhwb3J0IGRlZmF1bHQgY29tcG9zZTxPdXRwdXRQcm9wcywgSW5wdXRQcm9wcz4oXHJcbiAgd2l0aEhhbmRsZXJzKHtcclxuICAgIGNoYW5nZTogKHsgdXBkYXRlIH06IHsgdXBkYXRlOiBhbnkgfSkgPT4gKGU6IGFueSkgPT4gdXBkYXRlKGUudGFyZ2V0LnZhbHVlKVxyXG4gIH0pXHJcbikoTnVtZXJpY0lucHV0KTtcclxuIl19 \ No newline at end of file diff --git a/lib/index.d.ts b/lib/index.d.ts index dc37251..65ee896 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -83,11 +83,11 @@ declare const ArkComponets: { filter: any; disableFilter?: any; }) => JSX.Element; - Dropdown: ({ labelName, selectName, update, value, options, sortOptions, isMulti, customScrollBars, isDisabled, isSearchable, isClearable, closeMenuOnSelect, noOptionsMessage, placeholder }: { + Dropdown: ({ labelName, selectName, change, value, options, sortOptions, isMulti, customScrollBars, isDisabled, isSearchable, isClearable, closeMenuOnSelect, noOptionsMessage, requiredFieldText, placeholder }: { labelName?: string | undefined; selectName: string; value: any[]; - update: any; + change: any; options: any[]; sortOptions?: boolean | undefined; isMulti?: boolean | undefined; @@ -96,6 +96,7 @@ declare const ArkComponets: { isSearchable?: boolean | undefined; isClearable?: boolean | undefined; closeMenuOnSelect?: boolean | undefined; + requiredFieldText?: string | undefined; noOptionsMessage?: string | undefined; placeholder?: string | undefined; }) => JSX.Element; diff --git a/lib/styles/datePicker.css b/lib/styles/datePicker.css index 6c6ecb2..6dc88e4 100644 --- a/lib/styles/datePicker.css +++ b/lib/styles/datePicker.css @@ -3,3 +3,10 @@ padding-bottom: 10px; } .SingleDatePickerInput_clearDate:hover { background: transparent !important; } + +.requiredLabel { + display: flex; + font-weight: bold; } + .requiredLabel .required { + padding-left: 5px; + color: #d9534f; } diff --git a/lib/styles/dropdown.css b/lib/styles/dropdown.css index 6ea9430..fab0036 100644 --- a/lib/styles/dropdown.css +++ b/lib/styles/dropdown.css @@ -1,3 +1,10 @@ +.requiredLabel { + display: flex; + font-weight: bold; } + .requiredLabel .required { + padding-left: 5px; + color: #d9534f; } + .thumb-vertical, .thumb-horizontal { background-color: black; @@ -25,4 +32,15 @@ .arkSelect__control { box-shadow: none !important; border-radius: 0 !important; - border-color: #cccccc !important; } + border-color: #cccccc !important; + min-height: 28px !important; } + +.arkSelect__value-container { + height: 33px !important; } + +.arkSelect__indicators { + height: 33px !important; } + +.arkSelect__option { + height: 33px !important; + padding: 6px 12px !important; } diff --git a/lib/styles/numericInput.css b/lib/styles/numericInput.css index e8d1366..7095638 100644 --- a/lib/styles/numericInput.css +++ b/lib/styles/numericInput.css @@ -7,7 +7,7 @@ .arkNumberInput { border-radius: 0; - min-height: 40px; } + height: 33px; } .arkNumberInput:focus { box-shadow: none; border-color: #ced4da; } diff --git a/lib/utils/request/queryBuilder.js b/lib/utils/request/queryBuilder.js index 33c632a..00344fa 100644 --- a/lib/utils/request/queryBuilder.js +++ b/lib/utils/request/queryBuilder.js @@ -51,17 +51,12 @@ var simpleDataBuilder = function simpleDataBuilder(_ref4) { default: return ""; } - - return R.pipe(R.map(function (_ref6) { - var value = _ref6.value; - return "".concat(key, "=").concat(encodeURIComponent(value)); - }), R.values, R.join("&"))(data); }; -var arrDataBuilder = function arrDataBuilder(_ref7) { - var key = _ref7.key, - data = _ref7.data, - columnFilterName = _ref7.columnFilterName; +var arrDataBuilder = function arrDataBuilder(_ref6) { + var key = _ref6.key, + data = _ref6.data, + columnFilterName = _ref6.columnFilterName; return R.equals(key, "columnFilters") ? columnFilterDataBuilder({ columnFilterName: columnFilterName, data: data @@ -71,10 +66,10 @@ var arrDataBuilder = function arrDataBuilder(_ref7) { }); }; -var builder = function builder(_ref8) { - var key = _ref8.key, - data = _ref8.data, - columnFilterName = _ref8.columnFilterName; +var builder = function builder(_ref7) { + var key = _ref7.key, + data = _ref7.data, + columnFilterName = _ref7.columnFilterName; switch (keyType({ key: key, @@ -101,9 +96,9 @@ var builder = function builder(_ref8) { } }; -var queryStringBuilder = function queryStringBuilder(_ref9) { - var filters = _ref9.filters, - columnFilterName = _ref9.columnFilterName; +var queryStringBuilder = function queryStringBuilder(_ref8) { + var filters = _ref8.filters, + columnFilterName = _ref8.columnFilterName; return R.pipe(R.filter(function (x) { return x; }), R.keys, R.map(function (key) { @@ -112,9 +107,11 @@ var queryStringBuilder = function queryStringBuilder(_ref9) { data: filters, columnFilterName: columnFilterName }); + }), R.filter(function (x) { + return x; }), R.join("&"))(filters); }; var _default = queryStringBuilder; exports.default = _default; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy91dGlscy9yZXF1ZXN0L3F1ZXJ5QnVpbGRlci50cyJdLCJuYW1lcyI6WyJrZXlUeXBlIiwia2V5IiwiZGF0YSIsIlIiLCJwaXBlIiwicHJvcCIsInR5cGUiLCJjb2x1bW5GaWx0ZXJEYXRhQnVpbGRlciIsImNvbHVtbkZpbHRlck5hbWUiLCJoZWFkIiwia2V5cyIsIm1hcCIsInBhdGgiLCJqb2luIiwib2JqRGF0YUJ1aWxkZXIiLCJlbmNvZGVVUklDb21wb25lbnQiLCJzaW1wbGVEYXRhQnVpbGRlciIsInZhbHVlIiwidmFsdWVzI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QnVpbGRlcih7IGRhdGE6IFIucHJvcChrZXksIGRhdGEpIH0pO1xyXG4gICAgY2FzZSBcIk51bWJlclwiOlxyXG4gICAgY2FzZSBcIlN0cmluZ1wiOlxyXG4gICAgICByZXR1cm4gYCR7a2V5fT0ke2VuY29kZVVSSUNvbXBvbmVudChSLnByb3Aoa2V5LCBkYXRhKSl9YDtcclxuICAgIGRlZmF1bHQ6XHJcbiAgICAgIHJldHVybiBcIlwiO1xyXG4gIH1cclxufTtcclxuXHJcbmNvbnN0IHF1ZXJ5U3RyaW5nQnVpbGRlciA9ICh7XHJcbiAgZmlsdGVycyxcclxuICBjb2x1bW5GaWx0ZXJOYW1lXHJcbn06IHtcclxuICBmaWx0ZXJzOiBhbnk7XHJcbiAgY29sdW1uRmlsdGVyTmFtZT86IHN0cmluZztcclxufSkgPT5cclxuICBSLnBpcGUoXHJcbiAgICBSLmZpbHRlcigoeDogYW55KSA9PiB4KSxcclxuICAgIFIua2V5cyxcclxuICAgIFIubWFwKChrZXk6IGFueSkgPT4gYnVpbGRlcih7IGtleSwgZGF0YTogZmlsdGVycywgY29sdW1uRmlsdGVyTmFtZSB9KSksXHJcbiAgICBSLmpvaW4oXCImXCIpXHJcbiAgKShmaWx0ZXJzKTtcclxuXHJcbmV4cG9ydCBkZWZhdWx0IHF1ZXJ5U3RyaW5nQnVpbGRlcjtcclxuIl19 \ No newline at end of file +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy91dGlscy9yZXF1ZXN0L3F1ZXJ5QnVpbGRlci50cyJdLCJuYW1lcyI6WyJrZXlUeXBlIiwia2V5IiwiZGF0YSIsIlIiLCJwaXBlIiwicHJvcCIsInR5cGUiLCJjb2x1bW5GaWx0ZXJEYXRhQnVpbGRlciIsImNvbHVtbkZpbHRlck5hbWUiLCJoZWFkIiwia2V5cyIsIm1hcCIsInBhdGgiLCJqb2luIiwib2JqRGF0YUJ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zLFxyXG4gICAgUi5tYXAoKGtleTogYW55KSA9PiBgJHtrZXl9PSR7ZW5jb2RlVVJJQ29tcG9uZW50KFIucHJvcChrZXksIGRhdGEpKX1gKSxcclxuICAgIFIuam9pbihcIiZcIilcclxuICApKGRhdGEpO1xyXG5cclxuY29uc3Qgc2ltcGxlRGF0YUJ1aWxkZXIgPSAoeyBrZXksIGRhdGEgfTogeyBrZXk6IHN0cmluZzsgZGF0YTogYW55IH0pID0+IHtcclxuICBzd2l0Y2ggKFIudHlwZShkYXRhWzBdKSkge1xyXG4gICAgY2FzZSBcIk9iamVjdFwiOlxyXG4gICAgICByZXR1cm4gUi5waXBlKFxyXG4gICAgICAgIFIubWFwKFxyXG4gICAgICAgICAgKHsgdmFsdWUgfTogeyB2YWx1ZTogc3RyaW5nIH0pID0+XHJcbiAgICAgICAgICAgIGAke2tleX09JHtlbmNvZGVVUklDb21wb25lbnQodmFsdWUpfWBcclxuICAgICAgICApLFxyXG4gICAgICAgIFIudmFsdWVzLFxyXG4gICAgICAgIFIuam9pbihcIiZcIilcclxuICAgICAgKShkYXRhKTtcclxuICAgIGNhc2UgXCJOdW1iZXJcIjpcclxuICAgIGNhc2UgXCJTdHJpbmdcIjpcclxuICAgICAgcmV0dXJuIFIucGlwZShcclxuICAgICAgICBSLm1hcCgodmFsdWU6IGFueSkgPT4gYCR7a2V5fT0ke2VuY29kZVVSSUNvbXBvbmVudCh2YWx1ZSl9YCksXHJcbiAgICAgICAgUi5qb2luKFwiJlwiKVxyXG4gICAgICApKGRhdGEpO1xyXG4gICAgZGVmYXVsdDpcclxuICAgICAgcmV0dXJuIFwiXCI7XHJcbiAgfVxyXG59O1xyXG5jb25zdCBhcnJEYXRhQnVpbGRlciA9ICh7XHJcbiAga2V5LFxyXG4gIGRhdGEsXHJcbiAgY29sdW1uRmlsdGVyTmFtZVxyXG59OiB7XHJcbiAga2V5OiBzdHJpbmc7XHJcbiAgZGF0YTogYW55O1xyXG4gIGNvbHVtbkZpbHRlck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xyXG4gIGNvbHVtbkZpbHRlck5hbWU/OiBzdHJpbmc7XHJcbn0pID0+XHJcbiAgUi5waXBlKFxyXG4gICAgUi5maWx0ZXIoKHg6IGFueSkgPT4geCksXHJcbiAgICBSLmtleXMsXHJcbiAgICBSLm1hcCgoa2V5OiBhbnkpID0+IGJ1aWxkZXIoeyBrZXksIGRhdGE6IGZpbHRlcnMsIGNvbHVtbkZpbHRlck5hbWUgfSkpLFxyXG4gICAgUi5maWx0ZXIoKHg6IGFueSkgPT4geCksXHJcbiAgICBSLmpvaW4oXCImXCIpXHJcbiAgKShmaWx0ZXJzKTtcclxuXHJcbmV4cG9ydCBkZWZhdWx0IHF1ZXJ5U3RyaW5nQnVpbGRlcjtcclxuIl19 \ No newline at end of file diff --git a/package.json b/package.json index 0a768db..0bf7e08 100644 --- a/package.json +++ b/package.json @@ -24,10 +24,10 @@ "scripts": { "type-check": "tsc --noEmit", "type-check:watch": "npm run type-check -- --watch", - "build": "npm run build:types && npm run build:js", + "build": "npm run build:types && npm run build:js && npm run build:css", "build:types": "tsc --emitDeclarationOnly", "build:js": "babel src --out-dir lib --extensions \".ts,.tsx,.js\" --source-maps inline", - "build-css": "node-sass src/styles/ -o lib/styles/", + "build:css": "node-sass src/styles/ -o lib/styles/", "version": "npm run build && git add -f lib" }, "devDependencies": { diff --git a/src/components/datePicker/datePicker.tsx b/src/components/datePicker/datePicker.tsx index a07fa2b..133c3d0 100644 --- a/src/components/datePicker/datePicker.tsx +++ b/src/components/datePicker/datePicker.tsx @@ -1,11 +1,35 @@ import React from "react"; import "react-dates/initialize"; +import * as R from "ramda"; import { compose, withHandlers, withState } from "recompose"; import moment, { Moment } from "moment"; import { SingleDatePicker } from "react-dates"; import "react-dates/lib/css/_datepicker.css"; +const OnlyLabelName = ({ labelName }: { labelName?: string }) => ( + +); + +const RequiredLabelName = ({ + labelName, + requiredFieldText +}: { + labelName?: string; + requiredFieldText?: string; +}) => ( + +); + const DatePicker = ({ + labelName, + requiredFieldText, value, id = "arkDatePicker", changeData, @@ -18,27 +42,40 @@ const DatePicker = ({ withPortal = false, numberOfMonths = 1 }: OutputProps) => ( - + <> + {!R.isEmpty(labelName) && R.isEmpty(requiredFieldText) ? ( + + ) : null} + {!R.isEmpty(labelName) && !R.isEmpty(requiredFieldText) ? ( + + ) : null} + + ); export type InputProps = { + labelName?: string; + requiredFieldText?: string; value: Moment | null; - setDate: any; + update: any; format: string; placeHolder?: string; numberOfMonths?: number; @@ -56,7 +93,7 @@ export type OutputProps = InputProps & { export default compose( withState("focusedInput", "updateFocusedInput", false), withHandlers({ - changeData: ({ setDate }: { setDate: any }) => (val: any) => setDate(val), + changeData: ({ update }: { update: any }) => (val: any) => update(val), setFocusedInput: (props: any) => ({ focused }: { focused: string }) => props.updateFocusedInput(focused) }) diff --git a/src/components/dropdown/dropdown.tsx b/src/components/dropdown/dropdown.tsx index 0be17d8..5dd3b18 100644 --- a/src/components/dropdown/dropdown.tsx +++ b/src/components/dropdown/dropdown.tsx @@ -10,6 +10,27 @@ const sortByNameCaseInsensitive = R.sortBy( ) ); +const OnlyLabelName = ({ labelName }: { labelName?: string }) => ( + +); + +const RequiredLabelName = ({ + labelName, + requiredFieldText +}: { + labelName?: string; + requiredFieldText?: string; +}) => ( + +); + const sortOptionsFunc = ({ options, sortOptions @@ -48,7 +69,7 @@ const Menu = (props: any) => { const Dropdown = ({ labelName, selectName, - update, + change, value, options, sortOptions = false, @@ -57,14 +78,15 @@ const Dropdown = ({ isDisabled = false, isSearchable = false, isClearable = false, - closeMenuOnSelect = false, + closeMenuOnSelect = true, noOptionsMessage = "No Options", + requiredFieldText, placeholder = "Select..." }: { labelName?: string; selectName: string; value: any[]; - update: any; + change: any; options: any[]; sortOptions?: boolean; isMulti?: boolean; @@ -73,14 +95,19 @@ const Dropdown = ({ isSearchable?: boolean; isClearable?: boolean; closeMenuOnSelect?: boolean; + requiredFieldText?: string; noOptionsMessage?: string; placeholder?: string; }) => ( <> - {labelName ? ( - + {!R.isEmpty(labelName) && R.isEmpty(requiredFieldText) ? ( + + ) : null} + {!R.isEmpty(labelName) && !R.isEmpty(requiredFieldText) ? ( + ) : null}