markmap-toolbar 0.15.5-alpha.0 → 0.15.5-alpha.1
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.js +2 -2
- package/dist/index.mjs +2 -2
- package/dist/style.css +20 -57
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! markmap-toolbar v0.15.5-alpha.
|
|
1
|
+
/*! markmap-toolbar v0.15.5-alpha.1+013bf59 | MIT License */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
@@ -255,7 +255,7 @@ class Toolbar {
|
|
|
255
255
|
var _this$markmap;
|
|
256
256
|
const button = e.target.closest(`.${clsToolbarItem}`);
|
|
257
257
|
const active = button == null ? void 0 : button.classList.toggle(clsActive);
|
|
258
|
-
(_this$markmap = this.markmap) == null
|
|
258
|
+
(_this$markmap = this.markmap) == null || _this$markmap.setOptions({
|
|
259
259
|
toggleRecursively: active
|
|
260
260
|
});
|
|
261
261
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! markmap-toolbar v0.15.5-alpha.
|
|
1
|
+
/*! markmap-toolbar v0.15.5-alpha.1+013bf59 | MIT License */
|
|
2
2
|
function _extends() {
|
|
3
3
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
4
4
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -249,7 +249,7 @@ class Toolbar {
|
|
|
249
249
|
var _this$markmap;
|
|
250
250
|
const button = e.target.closest(`.${clsToolbarItem}`);
|
|
251
251
|
const active = button == null ? void 0 : button.classList.toggle(clsActive);
|
|
252
|
-
(_this$markmap = this.markmap) == null
|
|
252
|
+
(_this$markmap = this.markmap) == null || _this$markmap.setOptions({
|
|
253
253
|
toggleRecursively: active
|
|
254
254
|
});
|
|
255
255
|
}
|
package/dist/style.css
CHANGED
|
@@ -1,65 +1,28 @@
|
|
|
1
|
-
.mm-toolbar {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
padding: 0.25rem;
|
|
14
|
-
line-height: 1
|
|
15
|
-
}
|
|
16
|
-
.mm-toolbar:hover {
|
|
17
|
-
--tw-border-opacity: 1;
|
|
18
|
-
border-color: rgb(156 163 175 / var(--tw-border-opacity))
|
|
19
|
-
}
|
|
20
|
-
.mm-toolbar svg {
|
|
21
|
-
display: block
|
|
22
|
-
}
|
|
23
|
-
.mm-toolbar a {
|
|
24
|
-
display: inline-block;
|
|
25
|
-
text-decoration-line: none
|
|
26
|
-
}
|
|
27
|
-
.mm-toolbar-brand > img {
|
|
28
|
-
height: 1rem;
|
|
29
|
-
width: 1rem;
|
|
30
|
-
vertical-align: middle
|
|
31
|
-
}
|
|
32
|
-
.mm-toolbar-brand > span {
|
|
33
|
-
padding-left: 0.25rem;
|
|
34
|
-
padding-right: 0.25rem
|
|
35
|
-
}
|
|
36
|
-
.mm-toolbar-brand:not(:first-child), .mm-toolbar-item:not(:first-child) {
|
|
37
|
-
margin-left: 0.25rem
|
|
38
|
-
}
|
|
1
|
+
.mm-toolbar:hover {--un-border-opacity:1;border-color:rgba(156,163,175,var(--un-border-opacity));
|
|
2
|
+
}
|
|
3
|
+
.mm-toolbar svg {display:block;
|
|
4
|
+
}
|
|
5
|
+
.mm-toolbar a {display:inline-block;text-decoration:none;
|
|
6
|
+
}
|
|
7
|
+
.mm-toolbar-brand > img {width:1rem;height:1rem;vertical-align:middle;
|
|
8
|
+
}
|
|
9
|
+
.mm-toolbar-brand > span {padding-left:0.25rem;padding-right:0.25rem;
|
|
10
|
+
}
|
|
11
|
+
.mm-toolbar-brand:not(:first-child), .mm-toolbar-item:not(:first-child) {margin-left:0.25rem;
|
|
12
|
+
}
|
|
39
13
|
.mm-toolbar-brand > *, .mm-toolbar-item > * {
|
|
40
|
-
cursor: pointer;
|
|
41
|
-
text-align: center;
|
|
42
|
-
font-size: 0.75rem;
|
|
43
|
-
line-height: 1rem;
|
|
44
|
-
--tw-text-opacity: 1;
|
|
45
|
-
color: rgb(156 163 175 / var(--tw-text-opacity));
|
|
46
14
|
min-width: 20px;
|
|
47
15
|
height: 20px;
|
|
48
|
-
line-height: 20px
|
|
49
|
-
}
|
|
16
|
+
line-height: 20px;cursor:pointer;text-align:center;font-size:0.75rem;line-height:1rem;--un-text-opacity:1;color:rgba(156,163,175,var(--un-text-opacity));
|
|
17
|
+
}
|
|
18
|
+
.mm-toolbar-brand.active > *, .mm-toolbar-brand:hover > *, .mm-toolbar-item.active > *, .mm-toolbar-item:hover > * {--un-text-opacity:1;color:rgba(31,41,55,var(--un-text-opacity));
|
|
19
|
+
}
|
|
50
20
|
.mm-toolbar-brand.active,
|
|
51
21
|
.mm-toolbar-brand:hover,
|
|
52
22
|
.mm-toolbar-item.active,
|
|
53
|
-
.mm-toolbar-item:hover {
|
|
54
|
-
border-radius: 0.25rem;
|
|
55
|
-
--tw-bg-opacity: 1;
|
|
56
|
-
background-color: rgb(229 231 235 / var(--tw-bg-opacity))
|
|
57
|
-
}
|
|
58
|
-
.mm-toolbar-brand.active > *, .mm-toolbar-brand:hover > *, .mm-toolbar-item.active > *, .mm-toolbar-item:hover > * {
|
|
59
|
-
--tw-text-opacity: 1;
|
|
60
|
-
color: rgb(31 41 55 / var(--tw-text-opacity))
|
|
23
|
+
.mm-toolbar-item:hover {border-radius:0.25rem;--un-bg-opacity:1;background-color:rgba(229,231,235,var(--un-bg-opacity));
|
|
61
24
|
}
|
|
62
|
-
.mm-toolbar-brand.active, .mm-toolbar-item.active {
|
|
63
|
-
|
|
64
|
-
|
|
25
|
+
.mm-toolbar-brand.active, .mm-toolbar-item.active {--un-bg-opacity:1;background-color:rgba(209,213,219,var(--un-bg-opacity));
|
|
26
|
+
}
|
|
27
|
+
.mm-toolbar {display:flex;-moz-user-select:none;user-select:none;align-items:center;border-width:1px;--un-border-opacity:1;border-color:rgba(209,213,219,var(--un-border-opacity));border-radius:0.25rem;border-style:solid;--un-bg-opacity:1;background-color:rgba(255,255,255,var(--un-bg-opacity));padding:0.25rem;line-height:1;
|
|
65
28
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "markmap-toolbar",
|
|
3
|
-
"version": "0.15.5-alpha.
|
|
3
|
+
"version": "0.15.5-alpha.1+013bf59",
|
|
4
4
|
"description": "Extensible toolbar for markmap",
|
|
5
5
|
"author": "Gerald <gera2ld@live.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
"markmap-common": "*"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"markmap-common": "0.15.
|
|
39
|
-
"markmap-view": "0.15.
|
|
38
|
+
"markmap-common": "0.15.5-alpha.1+013bf59",
|
|
39
|
+
"markmap-view": "0.15.5-alpha.1+013bf59"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@babel/runtime": "^7.22.6",
|
|
43
43
|
"@gera2ld/jsx-dom": "^2.2.2"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "013bf59b71f2253dc54249c4a5a3097bf686494f"
|
|
46
46
|
}
|