ywana-core8 0.0.598 → 0.0.599

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.598",
3
+ "version": "0.0.599",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -270,7 +270,7 @@ const EntityEditor = ({ field, value = {}, onChange }) => {
270
270
  * String Editor
271
271
  */
272
272
  export const StringEditor = ({ field, value = '', onChange, content, outlined }) => {
273
- const { id, format, label, options, editable = true, predictive = false, multivalue = false, Editor } = field
273
+ const { id, format, options, required=false, editable = true, predictive = false, multivalue = false, Editor } = field
274
274
 
275
275
  function change(id, value) {
276
276
  if (onChange) onChange(id, value)
@@ -282,6 +282,9 @@ export const StringEditor = ({ field, value = '', onChange, content, outlined })
282
282
  }
283
283
 
284
284
  function renderFormat(format, options) {
285
+
286
+ const label = required ? `${field.label} *` : field.label
287
+
285
288
  switch (format) {
286
289
  case FORMATS.IMG:
287
290
  return (