ywana-core8 0.0.882 → 0.0.884
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 +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +5 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +5 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/ContentEditor.js +3 -1
- package/src/html/tab.js +4 -2
- package/src/html/tree.js +2 -0
package/package.json
CHANGED
@@ -390,9 +390,11 @@ export const MultiSelectionEditor = ({ field, value = [], content, onChange }) =
|
|
390
390
|
return opts
|
391
391
|
}
|
392
392
|
|
393
|
+
|
394
|
+
|
393
395
|
return (
|
394
396
|
<div className="multiselection-editor">
|
395
|
-
<label>{label}</label>
|
397
|
+
<label><Text>{label}</Text></label>
|
396
398
|
{buildOptions().map(option => {
|
397
399
|
const checked = value.includes(option.value)
|
398
400
|
switch (format) {
|
package/src/html/tab.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import React, { useState } from 'react'
|
2
2
|
import { Fragment } from 'react'
|
3
|
-
import { Icon } from '../html'
|
3
|
+
import { Icon, TEXTFORMATS, Text } from '../html'
|
4
4
|
import './tab.css'
|
5
5
|
|
6
6
|
/**
|
@@ -43,10 +43,12 @@ export const Tab = (props) => {
|
|
43
43
|
}
|
44
44
|
|
45
45
|
const style = selected ? "selected" : ""
|
46
|
+
const labelTxt = label ? <Text format={TEXTFORMATS.STRING}>{label}</Text> : null
|
47
|
+
|
46
48
|
return (
|
47
49
|
<div className={`tab ${style}`} onClick={select}>
|
48
50
|
{icon ? <Icon icon={icon} size="small" /> : null}
|
49
|
-
{
|
51
|
+
{labelTxt}
|
50
52
|
{actions ? actions : null}
|
51
53
|
</div>
|
52
54
|
)
|
package/src/html/tree.js
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import { Icon } from './icon'
|
3
|
+
import { Text, TEXTFORMATS } from './text'
|
3
4
|
import './tree.css'
|
4
5
|
|
5
6
|
/**
|
@@ -40,6 +41,7 @@ export const TreeItem = ({ id, icon = 'description', label, actions, onSelect, s
|
|
40
41
|
}
|
41
42
|
|
42
43
|
const style = selected ? "selected" : ""
|
44
|
+
const labelTxt = label ? <Text format={TEXTFORMATS.STRING}>{label}</Text> : null
|
43
45
|
|
44
46
|
return (
|
45
47
|
<div className={`tree-item final ${style}`} onClick={select}>
|