react-edit-text
Advanced tools
Comparing version 5.1.0 to 5.1.1
@@ -44,2 +44,12 @@ var classnames = require('classnames'); | ||
var EditIcon = function EditIcon() { | ||
return /*#__PURE__*/jsxRuntime.jsx("svg", { | ||
xmlns: "http://www.w3.org/2000/svg", | ||
viewBox: "0 0 512 512", | ||
children: /*#__PURE__*/jsxRuntime.jsx("path", { | ||
d: "M421.7 220.3L188.5 453.4L154.6 419.5L158.1 416H112C103.2 416 96 408.8 96 400V353.9L92.51 357.4C87.78 362.2 84.31 368 82.42 374.4L59.44 452.6L137.6 429.6C143.1 427.7 149.8 424.2 154.6 419.5L188.5 453.4C178.1 463.8 165.2 471.5 151.1 475.6L30.77 511C22.35 513.5 13.24 511.2 7.03 504.1C.8198 498.8-1.502 489.7 .976 481.2L36.37 360.9C40.53 346.8 48.16 333.9 58.57 323.5L291.7 90.34L421.7 220.3zM492.7 58.75C517.7 83.74 517.7 124.3 492.7 149.3L444.3 197.7L314.3 67.72L362.7 19.32C387.7-5.678 428.3-5.678 453.3 19.32L492.7 58.75z" | ||
}) | ||
}); | ||
}; | ||
var styles = {"label":"_4GdcU","textareaView":"_G0k44","shared":"_i5--j","placeholder":"_TDklp","inline":"_gmkRL","readonly":"_-wzeg","displayContainer":"_IYz6Z","editButton":"_NGZSv"}; | ||
@@ -79,30 +89,2 @@ | ||
var EditIcon = function EditIcon() { | ||
return /*#__PURE__*/jsxRuntime.jsx("svg", { | ||
xmlns: "http://www.w3.org/2000/svg", | ||
viewBox: "0 0 512 512", | ||
children: /*#__PURE__*/jsxRuntime.jsx("path", { | ||
d: "M421.7 220.3L188.5 453.4L154.6 419.5L158.1 416H112C103.2 416 96 408.8 96 400V353.9L92.51 357.4C87.78 362.2 84.31 368 82.42 374.4L59.44 452.6L137.6 429.6C143.1 427.7 149.8 424.2 154.6 419.5L188.5 453.4C178.1 463.8 165.2 471.5 151.1 475.6L30.77 511C22.35 513.5 13.24 511.2 7.03 504.1C.8198 498.8-1.502 489.7 .976 481.2L36.37 360.9C40.53 346.8 48.16 333.9 58.57 323.5L291.7 90.34L421.7 220.3zM492.7 58.75C517.7 83.74 517.7 124.3 492.7 149.3L444.3 197.7L314.3 67.72L362.7 19.32C387.7-5.678 428.3-5.678 453.3 19.32L492.7 58.75z" | ||
}) | ||
}); | ||
}; | ||
var sharedDefaultProps = { | ||
id: undefined, | ||
name: undefined, | ||
className: undefined, | ||
value: undefined, | ||
formatDisplayText: function formatDisplayText(x) { | ||
return x; | ||
}, | ||
defaultValue: undefined, | ||
placeholder: '', | ||
onSave: function onSave() {}, | ||
onChange: function onChange() {}, | ||
onEditMode: function onEditMode() {}, | ||
onBlur: function onBlur() {}, | ||
style: {}, | ||
readonly: false, | ||
inputClassName: undefined | ||
}; | ||
var sharedPropTypes = { | ||
@@ -131,15 +113,5 @@ id: PropTypes__default["default"].string, | ||
}); | ||
var EditTextDefaultProps = _extends({}, sharedDefaultProps, { | ||
type: 'text', | ||
inline: false, | ||
showEditButton: false, | ||
editButtonContent: /*#__PURE__*/jsxRuntime.jsx(EditIcon, {}), | ||
editButtonProps: {} | ||
}); | ||
var EditTextareaPropTypes = _extends({}, sharedPropTypes, { | ||
rows: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].oneOf(['auto'])]) | ||
}); | ||
var EditTextareaDefaultProps = _extends({}, sharedDefaultProps, { | ||
rows: 3 | ||
}); | ||
@@ -150,18 +122,34 @@ function EditText(_ref) { | ||
className = _ref.className, | ||
placeholder = _ref.placeholder, | ||
inline = _ref.inline, | ||
style = _ref.style, | ||
readonly = _ref.readonly, | ||
type = _ref.type, | ||
_ref$placeholder = _ref.placeholder, | ||
placeholder = _ref$placeholder === void 0 ? '' : _ref$placeholder, | ||
_ref$inline = _ref.inline, | ||
inline = _ref$inline === void 0 ? false : _ref$inline, | ||
_ref$style = _ref.style, | ||
style = _ref$style === void 0 ? {} : _ref$style, | ||
_ref$readonly = _ref.readonly, | ||
readonly = _ref$readonly === void 0 ? false : _ref$readonly, | ||
_ref$type = _ref.type, | ||
type = _ref$type === void 0 ? 'text' : _ref$type, | ||
value = _ref.value, | ||
defaultValue = _ref.defaultValue, | ||
formatDisplayText = _ref.formatDisplayText, | ||
onEditMode = _ref.onEditMode, | ||
_onChange = _ref.onChange, | ||
onSave = _ref.onSave, | ||
onBlur = _ref.onBlur, | ||
showEditButton = _ref.showEditButton, | ||
editButtonContent = _ref.editButtonContent, | ||
editButtonProps = _ref.editButtonProps, | ||
_ref$formatDisplayTex = _ref.formatDisplayText, | ||
formatDisplayText = _ref$formatDisplayTex === void 0 ? function (x) { | ||
return x; | ||
} : _ref$formatDisplayTex, | ||
_ref$onEditMode = _ref.onEditMode, | ||
onEditMode = _ref$onEditMode === void 0 ? function () {} : _ref$onEditMode, | ||
_ref$onChange = _ref.onChange, | ||
_onChange = _ref$onChange === void 0 ? function () {} : _ref$onChange, | ||
_ref$onSave = _ref.onSave, | ||
onSave = _ref$onSave === void 0 ? function () {} : _ref$onSave, | ||
_ref$onBlur = _ref.onBlur, | ||
onBlur = _ref$onBlur === void 0 ? function () {} : _ref$onBlur, | ||
_ref$showEditButton = _ref.showEditButton, | ||
showEditButton = _ref$showEditButton === void 0 ? false : _ref$showEditButton, | ||
_ref$editButtonConten = _ref.editButtonContent, | ||
editButtonContent = _ref$editButtonConten === void 0 ? /*#__PURE__*/jsxRuntime.jsx(EditIcon, {}) : _ref$editButtonConten, | ||
_ref$editButtonProps = _ref.editButtonProps, | ||
editButtonProps = _ref$editButtonProps === void 0 ? {} : _ref$editButtonProps, | ||
inputClassName = _ref.inputClassName; | ||
var inputRef = React__default["default"].useRef(null); | ||
@@ -313,3 +301,2 @@ | ||
} | ||
EditText.defaultProps = EditTextDefaultProps; | ||
EditText.propTypes = EditTextPropTypes; | ||
@@ -353,16 +340,28 @@ | ||
var id = _ref.id, | ||
rows = _ref.rows, | ||
_ref$rows = _ref.rows, | ||
rows = _ref$rows === void 0 ? 3 : _ref$rows, | ||
name = _ref.name, | ||
className = _ref.className, | ||
placeholder = _ref.placeholder, | ||
style = _ref.style, | ||
readonly = _ref.readonly, | ||
_ref$placeholder = _ref.placeholder, | ||
placeholder = _ref$placeholder === void 0 ? '' : _ref$placeholder, | ||
_ref$style = _ref.style, | ||
style = _ref$style === void 0 ? {} : _ref$style, | ||
_ref$readonly = _ref.readonly, | ||
readonly = _ref$readonly === void 0 ? false : _ref$readonly, | ||
value = _ref.value, | ||
defaultValue = _ref.defaultValue, | ||
formatDisplayText = _ref.formatDisplayText, | ||
onEditMode = _ref.onEditMode, | ||
_onChange = _ref.onChange, | ||
onSave = _ref.onSave, | ||
onBlur = _ref.onBlur, | ||
_ref$formatDisplayTex = _ref.formatDisplayText, | ||
formatDisplayText = _ref$formatDisplayTex === void 0 ? function (x) { | ||
return x; | ||
} : _ref$formatDisplayTex, | ||
_ref$onEditMode = _ref.onEditMode, | ||
onEditMode = _ref$onEditMode === void 0 ? function () {} : _ref$onEditMode, | ||
_ref$onChange = _ref.onChange, | ||
_onChange = _ref$onChange === void 0 ? function () {} : _ref$onChange, | ||
_ref$onSave = _ref.onSave, | ||
onSave = _ref$onSave === void 0 ? function () {} : _ref$onSave, | ||
_ref$onBlur = _ref.onBlur, | ||
onBlur = _ref$onBlur === void 0 ? function () {} : _ref$onBlur, | ||
inputClassName = _ref.inputClassName; | ||
var inputRef = React__default["default"].useRef(null); | ||
@@ -501,3 +500,2 @@ | ||
} | ||
EditTextarea.defaultProps = EditTextareaDefaultProps; | ||
EditTextarea.propTypes = EditTextareaPropTypes; | ||
@@ -504,0 +502,0 @@ |
@@ -38,2 +38,12 @@ import classnames from 'classnames'; | ||
var EditIcon = function EditIcon() { | ||
return /*#__PURE__*/jsx("svg", { | ||
xmlns: "http://www.w3.org/2000/svg", | ||
viewBox: "0 0 512 512", | ||
children: /*#__PURE__*/jsx("path", { | ||
d: "M421.7 220.3L188.5 453.4L154.6 419.5L158.1 416H112C103.2 416 96 408.8 96 400V353.9L92.51 357.4C87.78 362.2 84.31 368 82.42 374.4L59.44 452.6L137.6 429.6C143.1 427.7 149.8 424.2 154.6 419.5L188.5 453.4C178.1 463.8 165.2 471.5 151.1 475.6L30.77 511C22.35 513.5 13.24 511.2 7.03 504.1C.8198 498.8-1.502 489.7 .976 481.2L36.37 360.9C40.53 346.8 48.16 333.9 58.57 323.5L291.7 90.34L421.7 220.3zM492.7 58.75C517.7 83.74 517.7 124.3 492.7 149.3L444.3 197.7L314.3 67.72L362.7 19.32C387.7-5.678 428.3-5.678 453.3 19.32L492.7 58.75z" | ||
}) | ||
}); | ||
}; | ||
var styles = {"label":"_4GdcU","textareaView":"_G0k44","shared":"_i5--j","placeholder":"_TDklp","inline":"_gmkRL","readonly":"_-wzeg","displayContainer":"_IYz6Z","editButton":"_NGZSv"}; | ||
@@ -73,30 +83,2 @@ | ||
var EditIcon = function EditIcon() { | ||
return /*#__PURE__*/jsx("svg", { | ||
xmlns: "http://www.w3.org/2000/svg", | ||
viewBox: "0 0 512 512", | ||
children: /*#__PURE__*/jsx("path", { | ||
d: "M421.7 220.3L188.5 453.4L154.6 419.5L158.1 416H112C103.2 416 96 408.8 96 400V353.9L92.51 357.4C87.78 362.2 84.31 368 82.42 374.4L59.44 452.6L137.6 429.6C143.1 427.7 149.8 424.2 154.6 419.5L188.5 453.4C178.1 463.8 165.2 471.5 151.1 475.6L30.77 511C22.35 513.5 13.24 511.2 7.03 504.1C.8198 498.8-1.502 489.7 .976 481.2L36.37 360.9C40.53 346.8 48.16 333.9 58.57 323.5L291.7 90.34L421.7 220.3zM492.7 58.75C517.7 83.74 517.7 124.3 492.7 149.3L444.3 197.7L314.3 67.72L362.7 19.32C387.7-5.678 428.3-5.678 453.3 19.32L492.7 58.75z" | ||
}) | ||
}); | ||
}; | ||
var sharedDefaultProps = { | ||
id: undefined, | ||
name: undefined, | ||
className: undefined, | ||
value: undefined, | ||
formatDisplayText: function formatDisplayText(x) { | ||
return x; | ||
}, | ||
defaultValue: undefined, | ||
placeholder: '', | ||
onSave: function onSave() {}, | ||
onChange: function onChange() {}, | ||
onEditMode: function onEditMode() {}, | ||
onBlur: function onBlur() {}, | ||
style: {}, | ||
readonly: false, | ||
inputClassName: undefined | ||
}; | ||
var sharedPropTypes = { | ||
@@ -125,15 +107,5 @@ id: PropTypes.string, | ||
}); | ||
var EditTextDefaultProps = _extends({}, sharedDefaultProps, { | ||
type: 'text', | ||
inline: false, | ||
showEditButton: false, | ||
editButtonContent: /*#__PURE__*/jsx(EditIcon, {}), | ||
editButtonProps: {} | ||
}); | ||
var EditTextareaPropTypes = _extends({}, sharedPropTypes, { | ||
rows: PropTypes.oneOfType([PropTypes.number, PropTypes.oneOf(['auto'])]) | ||
}); | ||
var EditTextareaDefaultProps = _extends({}, sharedDefaultProps, { | ||
rows: 3 | ||
}); | ||
@@ -144,18 +116,34 @@ function EditText(_ref) { | ||
className = _ref.className, | ||
placeholder = _ref.placeholder, | ||
inline = _ref.inline, | ||
style = _ref.style, | ||
readonly = _ref.readonly, | ||
type = _ref.type, | ||
_ref$placeholder = _ref.placeholder, | ||
placeholder = _ref$placeholder === void 0 ? '' : _ref$placeholder, | ||
_ref$inline = _ref.inline, | ||
inline = _ref$inline === void 0 ? false : _ref$inline, | ||
_ref$style = _ref.style, | ||
style = _ref$style === void 0 ? {} : _ref$style, | ||
_ref$readonly = _ref.readonly, | ||
readonly = _ref$readonly === void 0 ? false : _ref$readonly, | ||
_ref$type = _ref.type, | ||
type = _ref$type === void 0 ? 'text' : _ref$type, | ||
value = _ref.value, | ||
defaultValue = _ref.defaultValue, | ||
formatDisplayText = _ref.formatDisplayText, | ||
onEditMode = _ref.onEditMode, | ||
_onChange = _ref.onChange, | ||
onSave = _ref.onSave, | ||
onBlur = _ref.onBlur, | ||
showEditButton = _ref.showEditButton, | ||
editButtonContent = _ref.editButtonContent, | ||
editButtonProps = _ref.editButtonProps, | ||
_ref$formatDisplayTex = _ref.formatDisplayText, | ||
formatDisplayText = _ref$formatDisplayTex === void 0 ? function (x) { | ||
return x; | ||
} : _ref$formatDisplayTex, | ||
_ref$onEditMode = _ref.onEditMode, | ||
onEditMode = _ref$onEditMode === void 0 ? function () {} : _ref$onEditMode, | ||
_ref$onChange = _ref.onChange, | ||
_onChange = _ref$onChange === void 0 ? function () {} : _ref$onChange, | ||
_ref$onSave = _ref.onSave, | ||
onSave = _ref$onSave === void 0 ? function () {} : _ref$onSave, | ||
_ref$onBlur = _ref.onBlur, | ||
onBlur = _ref$onBlur === void 0 ? function () {} : _ref$onBlur, | ||
_ref$showEditButton = _ref.showEditButton, | ||
showEditButton = _ref$showEditButton === void 0 ? false : _ref$showEditButton, | ||
_ref$editButtonConten = _ref.editButtonContent, | ||
editButtonContent = _ref$editButtonConten === void 0 ? /*#__PURE__*/jsx(EditIcon, {}) : _ref$editButtonConten, | ||
_ref$editButtonProps = _ref.editButtonProps, | ||
editButtonProps = _ref$editButtonProps === void 0 ? {} : _ref$editButtonProps, | ||
inputClassName = _ref.inputClassName; | ||
var inputRef = React.useRef(null); | ||
@@ -307,3 +295,2 @@ | ||
} | ||
EditText.defaultProps = EditTextDefaultProps; | ||
EditText.propTypes = EditTextPropTypes; | ||
@@ -347,16 +334,28 @@ | ||
var id = _ref.id, | ||
rows = _ref.rows, | ||
_ref$rows = _ref.rows, | ||
rows = _ref$rows === void 0 ? 3 : _ref$rows, | ||
name = _ref.name, | ||
className = _ref.className, | ||
placeholder = _ref.placeholder, | ||
style = _ref.style, | ||
readonly = _ref.readonly, | ||
_ref$placeholder = _ref.placeholder, | ||
placeholder = _ref$placeholder === void 0 ? '' : _ref$placeholder, | ||
_ref$style = _ref.style, | ||
style = _ref$style === void 0 ? {} : _ref$style, | ||
_ref$readonly = _ref.readonly, | ||
readonly = _ref$readonly === void 0 ? false : _ref$readonly, | ||
value = _ref.value, | ||
defaultValue = _ref.defaultValue, | ||
formatDisplayText = _ref.formatDisplayText, | ||
onEditMode = _ref.onEditMode, | ||
_onChange = _ref.onChange, | ||
onSave = _ref.onSave, | ||
onBlur = _ref.onBlur, | ||
_ref$formatDisplayTex = _ref.formatDisplayText, | ||
formatDisplayText = _ref$formatDisplayTex === void 0 ? function (x) { | ||
return x; | ||
} : _ref$formatDisplayTex, | ||
_ref$onEditMode = _ref.onEditMode, | ||
onEditMode = _ref$onEditMode === void 0 ? function () {} : _ref$onEditMode, | ||
_ref$onChange = _ref.onChange, | ||
_onChange = _ref$onChange === void 0 ? function () {} : _ref$onChange, | ||
_ref$onSave = _ref.onSave, | ||
onSave = _ref$onSave === void 0 ? function () {} : _ref$onSave, | ||
_ref$onBlur = _ref.onBlur, | ||
onBlur = _ref$onBlur === void 0 ? function () {} : _ref$onBlur, | ||
inputClassName = _ref.inputClassName; | ||
var inputRef = React.useRef(null); | ||
@@ -495,3 +494,2 @@ | ||
} | ||
EditTextarea.defaultProps = EditTextareaDefaultProps; | ||
EditTextarea.propTypes = EditTextareaPropTypes; | ||
@@ -498,0 +496,0 @@ |
@@ -44,2 +44,12 @@ (function (global, factory) { | ||
var EditIcon = function EditIcon() { | ||
return /*#__PURE__*/jsxRuntime.jsx("svg", { | ||
xmlns: "http://www.w3.org/2000/svg", | ||
viewBox: "0 0 512 512", | ||
children: /*#__PURE__*/jsxRuntime.jsx("path", { | ||
d: "M421.7 220.3L188.5 453.4L154.6 419.5L158.1 416H112C103.2 416 96 408.8 96 400V353.9L92.51 357.4C87.78 362.2 84.31 368 82.42 374.4L59.44 452.6L137.6 429.6C143.1 427.7 149.8 424.2 154.6 419.5L188.5 453.4C178.1 463.8 165.2 471.5 151.1 475.6L30.77 511C22.35 513.5 13.24 511.2 7.03 504.1C.8198 498.8-1.502 489.7 .976 481.2L36.37 360.9C40.53 346.8 48.16 333.9 58.57 323.5L291.7 90.34L421.7 220.3zM492.7 58.75C517.7 83.74 517.7 124.3 492.7 149.3L444.3 197.7L314.3 67.72L362.7 19.32C387.7-5.678 428.3-5.678 453.3 19.32L492.7 58.75z" | ||
}) | ||
}); | ||
}; | ||
var styles = {"label":"_4GdcU","textareaView":"_G0k44","shared":"_i5--j","placeholder":"_TDklp","inline":"_gmkRL","readonly":"_-wzeg","displayContainer":"_IYz6Z","editButton":"_NGZSv"}; | ||
@@ -79,30 +89,2 @@ | ||
var EditIcon = function EditIcon() { | ||
return /*#__PURE__*/jsxRuntime.jsx("svg", { | ||
xmlns: "http://www.w3.org/2000/svg", | ||
viewBox: "0 0 512 512", | ||
children: /*#__PURE__*/jsxRuntime.jsx("path", { | ||
d: "M421.7 220.3L188.5 453.4L154.6 419.5L158.1 416H112C103.2 416 96 408.8 96 400V353.9L92.51 357.4C87.78 362.2 84.31 368 82.42 374.4L59.44 452.6L137.6 429.6C143.1 427.7 149.8 424.2 154.6 419.5L188.5 453.4C178.1 463.8 165.2 471.5 151.1 475.6L30.77 511C22.35 513.5 13.24 511.2 7.03 504.1C.8198 498.8-1.502 489.7 .976 481.2L36.37 360.9C40.53 346.8 48.16 333.9 58.57 323.5L291.7 90.34L421.7 220.3zM492.7 58.75C517.7 83.74 517.7 124.3 492.7 149.3L444.3 197.7L314.3 67.72L362.7 19.32C387.7-5.678 428.3-5.678 453.3 19.32L492.7 58.75z" | ||
}) | ||
}); | ||
}; | ||
var sharedDefaultProps = { | ||
id: undefined, | ||
name: undefined, | ||
className: undefined, | ||
value: undefined, | ||
formatDisplayText: function formatDisplayText(x) { | ||
return x; | ||
}, | ||
defaultValue: undefined, | ||
placeholder: '', | ||
onSave: function onSave() {}, | ||
onChange: function onChange() {}, | ||
onEditMode: function onEditMode() {}, | ||
onBlur: function onBlur() {}, | ||
style: {}, | ||
readonly: false, | ||
inputClassName: undefined | ||
}; | ||
var sharedPropTypes = { | ||
@@ -131,15 +113,5 @@ id: PropTypes__default["default"].string, | ||
}); | ||
var EditTextDefaultProps = _extends({}, sharedDefaultProps, { | ||
type: 'text', | ||
inline: false, | ||
showEditButton: false, | ||
editButtonContent: /*#__PURE__*/jsxRuntime.jsx(EditIcon, {}), | ||
editButtonProps: {} | ||
}); | ||
var EditTextareaPropTypes = _extends({}, sharedPropTypes, { | ||
rows: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].oneOf(['auto'])]) | ||
}); | ||
var EditTextareaDefaultProps = _extends({}, sharedDefaultProps, { | ||
rows: 3 | ||
}); | ||
@@ -150,18 +122,34 @@ function EditText(_ref) { | ||
className = _ref.className, | ||
placeholder = _ref.placeholder, | ||
inline = _ref.inline, | ||
style = _ref.style, | ||
readonly = _ref.readonly, | ||
type = _ref.type, | ||
_ref$placeholder = _ref.placeholder, | ||
placeholder = _ref$placeholder === void 0 ? '' : _ref$placeholder, | ||
_ref$inline = _ref.inline, | ||
inline = _ref$inline === void 0 ? false : _ref$inline, | ||
_ref$style = _ref.style, | ||
style = _ref$style === void 0 ? {} : _ref$style, | ||
_ref$readonly = _ref.readonly, | ||
readonly = _ref$readonly === void 0 ? false : _ref$readonly, | ||
_ref$type = _ref.type, | ||
type = _ref$type === void 0 ? 'text' : _ref$type, | ||
value = _ref.value, | ||
defaultValue = _ref.defaultValue, | ||
formatDisplayText = _ref.formatDisplayText, | ||
onEditMode = _ref.onEditMode, | ||
_onChange = _ref.onChange, | ||
onSave = _ref.onSave, | ||
onBlur = _ref.onBlur, | ||
showEditButton = _ref.showEditButton, | ||
editButtonContent = _ref.editButtonContent, | ||
editButtonProps = _ref.editButtonProps, | ||
_ref$formatDisplayTex = _ref.formatDisplayText, | ||
formatDisplayText = _ref$formatDisplayTex === void 0 ? function (x) { | ||
return x; | ||
} : _ref$formatDisplayTex, | ||
_ref$onEditMode = _ref.onEditMode, | ||
onEditMode = _ref$onEditMode === void 0 ? function () {} : _ref$onEditMode, | ||
_ref$onChange = _ref.onChange, | ||
_onChange = _ref$onChange === void 0 ? function () {} : _ref$onChange, | ||
_ref$onSave = _ref.onSave, | ||
onSave = _ref$onSave === void 0 ? function () {} : _ref$onSave, | ||
_ref$onBlur = _ref.onBlur, | ||
onBlur = _ref$onBlur === void 0 ? function () {} : _ref$onBlur, | ||
_ref$showEditButton = _ref.showEditButton, | ||
showEditButton = _ref$showEditButton === void 0 ? false : _ref$showEditButton, | ||
_ref$editButtonConten = _ref.editButtonContent, | ||
editButtonContent = _ref$editButtonConten === void 0 ? /*#__PURE__*/jsxRuntime.jsx(EditIcon, {}) : _ref$editButtonConten, | ||
_ref$editButtonProps = _ref.editButtonProps, | ||
editButtonProps = _ref$editButtonProps === void 0 ? {} : _ref$editButtonProps, | ||
inputClassName = _ref.inputClassName; | ||
var inputRef = React__default["default"].useRef(null); | ||
@@ -313,3 +301,2 @@ | ||
} | ||
EditText.defaultProps = EditTextDefaultProps; | ||
EditText.propTypes = EditTextPropTypes; | ||
@@ -353,16 +340,28 @@ | ||
var id = _ref.id, | ||
rows = _ref.rows, | ||
_ref$rows = _ref.rows, | ||
rows = _ref$rows === void 0 ? 3 : _ref$rows, | ||
name = _ref.name, | ||
className = _ref.className, | ||
placeholder = _ref.placeholder, | ||
style = _ref.style, | ||
readonly = _ref.readonly, | ||
_ref$placeholder = _ref.placeholder, | ||
placeholder = _ref$placeholder === void 0 ? '' : _ref$placeholder, | ||
_ref$style = _ref.style, | ||
style = _ref$style === void 0 ? {} : _ref$style, | ||
_ref$readonly = _ref.readonly, | ||
readonly = _ref$readonly === void 0 ? false : _ref$readonly, | ||
value = _ref.value, | ||
defaultValue = _ref.defaultValue, | ||
formatDisplayText = _ref.formatDisplayText, | ||
onEditMode = _ref.onEditMode, | ||
_onChange = _ref.onChange, | ||
onSave = _ref.onSave, | ||
onBlur = _ref.onBlur, | ||
_ref$formatDisplayTex = _ref.formatDisplayText, | ||
formatDisplayText = _ref$formatDisplayTex === void 0 ? function (x) { | ||
return x; | ||
} : _ref$formatDisplayTex, | ||
_ref$onEditMode = _ref.onEditMode, | ||
onEditMode = _ref$onEditMode === void 0 ? function () {} : _ref$onEditMode, | ||
_ref$onChange = _ref.onChange, | ||
_onChange = _ref$onChange === void 0 ? function () {} : _ref$onChange, | ||
_ref$onSave = _ref.onSave, | ||
onSave = _ref$onSave === void 0 ? function () {} : _ref$onSave, | ||
_ref$onBlur = _ref.onBlur, | ||
onBlur = _ref$onBlur === void 0 ? function () {} : _ref$onBlur, | ||
inputClassName = _ref.inputClassName; | ||
var inputRef = React__default["default"].useRef(null); | ||
@@ -501,3 +500,2 @@ | ||
} | ||
EditTextarea.defaultProps = EditTextareaDefaultProps; | ||
EditTextarea.propTypes = EditTextareaPropTypes; | ||
@@ -504,0 +502,0 @@ |
{ | ||
"name": "react-edit-text", | ||
"version": "5.1.0", | ||
"version": "5.1.1", | ||
"description": "Simple editable text component for React", | ||
@@ -5,0 +5,0 @@ "author": "Brian Min <bymi15@yahoo.com> (https://github.com/bymi15)", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
185512
1798