ywana-core8 0.0.274 → 0.0.277
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 +60 -51
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +17 -1
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +60 -51
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +60 -51
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/list.js +1 -1
- package/src/html/table.js +0 -2
- package/src/html/tooltip-test.js +13 -0
- package/src/html/tooltip.css +17 -1
- package/src/html/tooltip.js +7 -4
- package/src/site/site.js +1 -0
package/package.json
CHANGED
package/src/html/list.js
CHANGED
package/src/html/table.js
CHANGED
@@ -42,10 +42,8 @@ export const DataTable = (props) => {
|
|
42
42
|
// Loop until sorted (-1 or 1) or until the sort keys have been processed.
|
43
43
|
while (sorted === 0 && index < sortKeys.length) {
|
44
44
|
const key = sortKeys[index];
|
45
|
-
|
46
45
|
if (key) {
|
47
46
|
const direction = sortObject[key];
|
48
|
-
|
49
47
|
sorted = keySort(a[key], b[key], direction);
|
50
48
|
index++;
|
51
49
|
}
|
package/src/html/tooltip.css
CHANGED
@@ -1,3 +1,19 @@
|
|
1
1
|
.tooltip {
|
2
|
-
|
2
|
+
position: relative;
|
3
|
+
cursor: pointer;
|
4
|
+
}
|
5
|
+
|
6
|
+
.tooltip-text {
|
7
|
+
display: none;
|
8
|
+
z-index: 10;
|
9
|
+
}
|
10
|
+
|
11
|
+
.tooltip:hover .tooltip-text {
|
12
|
+
display: block;
|
13
|
+
position: absolute;
|
14
|
+
border: solid 1px var(--divider-color);
|
15
|
+
background-color: var(--text-color-light);
|
16
|
+
color: var(--paper-color);
|
17
|
+
padding: .5rem;
|
18
|
+
border-radius: 4px;
|
3
19
|
}
|
package/src/html/tooltip.js
CHANGED
@@ -6,12 +6,15 @@ import './tooltip.css'
|
|
6
6
|
*/
|
7
7
|
export const Tooltip = (props) => {
|
8
8
|
|
9
|
-
const { text = "
|
9
|
+
const { text = "", top = "1rem", left = "1rem" } = props
|
10
|
+
|
11
|
+
const style = { top, left }
|
10
12
|
|
11
13
|
return (
|
12
|
-
<
|
13
|
-
<
|
14
|
-
|
14
|
+
<div className="tooltip" >
|
15
|
+
<span className="tooltip-text" style={style}>{text}</span>
|
16
|
+
{props.children}
|
17
|
+
</div>
|
15
18
|
)
|
16
19
|
|
17
20
|
}
|
package/src/site/site.js
CHANGED
@@ -70,6 +70,7 @@ export const SiteProvider = ({ children, siteLang, siteDictionary, showConsole }
|
|
70
70
|
closePreview: () => { setPreview(null) },
|
71
71
|
|
72
72
|
confirm: (message) => window.confirm(message),
|
73
|
+
prompt: (message) => window.prompt(message),
|
73
74
|
|
74
75
|
notify: ({ title, body, type = "success" }) => {
|
75
76
|
Store.addNotification({
|