@gisce/react-ooui 1.5.10-rc.2 → 1.5.11-rc.0
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/common/Field.d.ts.map +1 -1
- package/dist/react-ooui.es.js +2 -1
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/react-ooui.umd.js +1 -1
- package/dist/react-ooui.umd.js.map +1 -1
- package/package.json +2 -2
- package/src/common/Field.tsx +2 -1
- package/src/stories/Char.stories.tsx +27 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gisce/react-ooui",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.11-rc.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist",
|
|
6
6
|
"src",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@ant-design/plots": "^1.0.9",
|
|
35
35
|
"@gisce/fiber-diagram": "^1.1.0-rc.3",
|
|
36
|
-
"@gisce/ooui": "^0.22.
|
|
36
|
+
"@gisce/ooui": "^0.22.6-rc.0",
|
|
37
37
|
"@gisce/react-formiga-components": "^1.0.9-rc.21",
|
|
38
38
|
"@gisce/react-formiga-table": "^0.8.6",
|
|
39
39
|
"@monaco-editor/react": "^4.4.5",
|
package/src/common/Field.tsx
CHANGED
|
@@ -45,6 +45,7 @@ export default function Field({
|
|
|
45
45
|
name={id}
|
|
46
46
|
valuePropName={valuePropName}
|
|
47
47
|
rules={rules}
|
|
48
|
+
help={ooui.tooltipInline ? ooui.tooltip : null}
|
|
48
49
|
>
|
|
49
50
|
{children}
|
|
50
51
|
</Form.Item>
|
|
@@ -60,7 +61,7 @@ export default function Field({
|
|
|
60
61
|
new LabelOoui({
|
|
61
62
|
name: id + "_label",
|
|
62
63
|
string: label,
|
|
63
|
-
help: tooltip,
|
|
64
|
+
help: ooui.tooltipInline ? false : tooltip,
|
|
64
65
|
fieldForLabel: id,
|
|
65
66
|
})
|
|
66
67
|
}
|
|
@@ -50,3 +50,30 @@ export const Translatable = (): React.ReactElement => {
|
|
|
50
50
|
</LocaleProvider>
|
|
51
51
|
);
|
|
52
52
|
};
|
|
53
|
+
|
|
54
|
+
export const Tooltip = (): React.ReactElement => {
|
|
55
|
+
const ooui = new CharOoui({
|
|
56
|
+
name: "field",
|
|
57
|
+
string: "Lorem ipsum",
|
|
58
|
+
help: "This is a simple help",
|
|
59
|
+
});
|
|
60
|
+
return (
|
|
61
|
+
<LocaleProvider lang="en_US">
|
|
62
|
+
<Char ooui={ooui} showLabel />
|
|
63
|
+
</LocaleProvider>
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export const TooltipInline = (): React.ReactElement => {
|
|
68
|
+
const ooui = new CharOoui({
|
|
69
|
+
name: "field",
|
|
70
|
+
string: "Lorem ipsum",
|
|
71
|
+
help: "This is a simple help",
|
|
72
|
+
help_inline: "true"
|
|
73
|
+
});
|
|
74
|
+
return (
|
|
75
|
+
<LocaleProvider lang="en_US">
|
|
76
|
+
<Char ooui={ooui} showLabel />
|
|
77
|
+
</LocaleProvider>
|
|
78
|
+
);
|
|
79
|
+
}
|