ywana-core8 0.0.395 → 0.0.396

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.395",
3
+ "version": "0.0.396",
4
4
  "description": "ywana-core8",
5
5
  "author": "Ernesto Roldan Garcia",
6
6
  "license": "MIT",
@@ -249,6 +249,7 @@ export const StringEditor = ({ field, value = '', onChange, content, outlined })
249
249
  case FORMATS.COLOR: return <ColorField id={id} onChange={change} value={value}/>
250
250
  case FORMATS.HTML: return <Editor id={id} value={value} onChange={change} content={content} />
251
251
  case FORMATS.DATE: return <TextField outlined={outlined} id={id} type="date" label={label} value={value} onChange={change} readOnly={!editable} />
252
+ case FORMATS.TOKENS: return <TokenField id={id} label={label} onChange={change} readOnly={!editable} options={options} />
252
253
  default:
253
254
  return options ? (
254
255
  <DropDown outlined={outlined} id={id} label={label} value={value} onChange={change} options={buildOptions()} readOnly={!editable} predictive={predictive} />
@@ -21,7 +21,8 @@ export const FORMATS = {
21
21
  HTML: 'HTML',
22
22
  URL: 'URL',
23
23
  IMG: 'IMG',
24
- COLOR: 'COLOR'
24
+ COLOR: 'COLOR',
25
+ TOKENS: 'TOKENS'
25
26
  }
26
27
 
27
28
  /**