ywana-core8 0.0.841 → 0.0.843
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/dist/index.cjs +1 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +1 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +1 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/textfield-outlined.css +1 -1
- package/src/html/textfield.test.js +1 -3
- package/src/incubator/task.js +4 -2
package/package.json
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
import React, { useState } from 'react'
|
2
2
|
import { DropDown, TextField, TextArea, TokenField } from '.'
|
3
|
-
import { Wrapper } from '../../__reactpreview__/Wrapper'
|
4
3
|
import { DateRange } from './textfield'
|
5
4
|
|
6
5
|
const TextFieldTest = (prop) => {
|
@@ -33,7 +32,7 @@ const TextFieldTest = (prop) => {
|
|
33
32
|
return (
|
34
33
|
<>
|
35
34
|
<TextField id="labelLeft" labelPosition="left" label="Label Left" value={form.labelLeft} onChange={change}/>
|
36
|
-
<TextField id="name" label="Name" value={form.name} onChange={change}/>
|
35
|
+
<TextField id="name" label="Name" value={form.name} onChange={change} outlined/>
|
37
36
|
<br/>
|
38
37
|
<DropDown id="b1" label="Boolean1" labelPosition="left" onChange={change} options={options2} value={form.b1} />
|
39
38
|
<br/>
|
@@ -47,7 +46,6 @@ const TextFieldTest = (prop) => {
|
|
47
46
|
<TextArea id="text1" label="Text 1" value={form.text1} onChange={change} />
|
48
47
|
<TextField id="date1" type="DATE" label="Date" value={form.date1} onChange={change} />
|
49
48
|
<DateRange id="range1" value={form.range1} onChange={change}/>
|
50
|
-
|
51
49
|
</>
|
52
50
|
)
|
53
51
|
}
|
package/src/incubator/task.js
CHANGED
@@ -19,13 +19,15 @@ export const TaskContextProvider = (props) => {
|
|
19
19
|
|
20
20
|
useEffect(() => {
|
21
21
|
const _interval = setInterval(async () => {
|
22
|
-
console.log("TASKS INTERVAL", listeners)
|
23
22
|
const taskIDs = Object.keys(listeners)
|
24
23
|
for (let i = 0; i < taskIDs.length; i++) {
|
24
|
+
|
25
25
|
const taskID = taskIDs[i]
|
26
|
-
const listener = listeners[taskID]
|
27
26
|
const tsk = await task(taskID)
|
27
|
+
|
28
|
+
const listener = listeners[taskID]
|
28
29
|
if (listener) listener(tsk)
|
30
|
+
|
29
31
|
}
|
30
32
|
}, frequency)
|
31
33
|
return () => clearInterval(_interval)
|