ywana-core8 0.0.174 → 0.0.178

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.174",
3
+ "version": "0.0.178",
4
4
  "description": "ywana-core8",
5
5
  "author": "Ernesto Roldan Garcia",
6
6
  "license": "MIT",
@@ -180,6 +180,9 @@ export const FieldEditor = ({ field, onChange, content, outlined = false }) => {
180
180
  if (isHidden) {
181
181
  return null
182
182
  } else {
183
+
184
+ console.log("FieldEditor: ", label, value1)
185
+
183
186
  switch (type) {
184
187
  case TYPES.ENTITY:
185
188
  return <EntityEditor field={field} value={value1} onChange={change} />
@@ -218,7 +221,7 @@ const EntityEditor = ({ field, value = {}, onChange }) => {
218
221
 
219
222
  return (
220
223
  <div className='entity-editor'>
221
- <header>
224
+ <header>∂
222
225
  <Text use='caption'>{label}</Text>
223
226
  </header>
224
227
  <main>
@@ -245,8 +248,6 @@ export const StringEditor = ({ field, value = '', onChange, content, outlined })
245
248
  return opts
246
249
  }
247
250
 
248
- console.log('StringEditor: ', label, value )
249
-
250
251
  return (
251
252
  <div className='field-editor string-editor'>
252
253
  {
@@ -261,7 +262,7 @@ export const StringEditor = ({ field, value = '', onChange, content, outlined })
261
262
  /**
262
263
  * Number Editor
263
264
  */
264
- const NumberEditor = ({ field, value, onChange }) => {
265
+ const NumberEditor = ({ field, value, onChange, outlined = false }) => {
265
266
  const { id, label, editable = true } = field
266
267
 
267
268
  function change(id, value) {
@@ -273,11 +274,11 @@ const NumberEditor = ({ field, value, onChange }) => {
273
274
  const max = field.max
274
275
  const disabled = !editable
275
276
 
276
- console.log('StringEditor: ', label, val, value )
277
+ console.log('NumberEditor: ', label, val, value )
277
278
 
278
279
  return (
279
280
  <div className='field-editor number-editor'>
280
- <TextField outlined id={id} label={label} type='NUMBER' value={val} max={max} min={min} onChange={change} disabled={disabled} />
281
+ <TextField outlined={outlined} id={id} label={label} type='NUMBER' value={val} max={max} min={min} onChange={change} disabled={disabled} />
281
282
  </div>
282
283
  )
283
284
  }
@@ -30,6 +30,7 @@
30
30
  position: absolute;
31
31
  top: 1.7rem;
32
32
  right: .2rem;
33
+ color: rgba(150,150,150,1);
33
34
  }
34
35
 
35
36
  .textfield-outlined > label {
@@ -33,6 +33,7 @@
33
33
  position: absolute;
34
34
  top: 1.7rem;
35
35
  right: .2rem;
36
+ color: rgba(150,150,150,1);
36
37
  }
37
38
 
38
39
  .textfield > label {