lakelib 0.3.11 → 0.4.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/README.md +1 -1
- package/dist/lake.min.css +2 -2
- package/dist/lake.min.js +8 -8
- package/dist/lake.min.js.map +1 -1
- package/lib/lake.css +7 -1
- package/lib/lake.d.ts +10 -8
- package/lib/lake.js +75 -65
- package/lib/lake.js.map +1 -1
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Lake
|
|
2
2
|
|
|
3
3
|
[](https://github.com/lakejs/lake/actions)
|
|
4
|
-
[](https://npmjs.
|
|
4
|
+
[](https://www.npmjs.com/package/lakelib)
|
|
5
5
|
[](https://www.npmjs.com/package/lakelib)
|
|
6
6
|
|
|
7
7
|
---
|
package/dist/lake.min.css
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
.lake-container strong{font-weight:600}.lake-container i{font-style:italic}.lake-container u{text-decoration:underline}.lake-container s{text-decoration:line-through}.lake-container sub{vertical-align:sub;font-size:.85em}.lake-container sup{vertical-align:super;font-size:.85em}.lake-container code{font-family:Consolas,Courier,monospace;font-size:.9em;border-radius:3px;padding:.2em .4em;background-color:var(--lake-code-background-color)}
|
|
5
5
|
lake-box{margin:0;padding:0;text-indent:0}lake-box[type=inline]{display:inline flex}lake-box[type=block]{display:block grid;grid-template-columns:1px calc(100% - 2px) 1px;margin-bottom:16px}lake-box .lake-box-strip{display:block;min-width:1px}lake-box[type=inline] .lake-box-strip{align-self:flex-end}lake-box[type=block] .lake-box-strip{align-self:stretch}lake-box .lake-box-strip ::selection{background:0 0}lake-box .lake-box-container{display:block;align-self:center}lake-box .lake-box-activated .lake-corner-toolbar,lake-box .lake-box-focused .lake-corner-toolbar,lake-box .lake-box-hovered .lake-corner-toolbar{display:flex}lake-box .lake-box-activated .lake-resizer,lake-box .lake-box-focused .lake-resizer,lake-box .lake-box-hovered .lake-resizer{display:block}
|
|
6
6
|
button.lake-button{border-radius:5px;border:0;font-family:Arial;font-size:var(--lake-button-font-size);color:var(--lake-text-color);background-color:transparent;padding:0;margin:0 1px;line-height:0;white-space:nowrap;cursor:pointer;user-select:none}button.lake-button:focus-visible{outline:var(--lake-button-outline)}button.lake-button[disabled]{opacity:.25;cursor:default}button.lake-button img,button.lake-button svg{display:inline-block;width:16px;height:16px;margin:6px}button.lake-button svg{fill:var(--lake-text-color)}button.lake-icon-button.lake-button-hovered{background-color:var(--lake-button-background-hover-color)}button.lake-icon-button.lake-button-selected{background-color:var(--lake-button-background-active-color)}button.lake-text-button{background-color:transparent;border:1px solid var(--lake-button-border-color);padding:8px 16px;line-height:normal}button.lake-text-button.lake-button-hovered{background-color:var(--lake-button-background-hover-color)}button.lake-text-button.lake-button-selected{background-color:var(--lake-button-background-active-color)}button.lake-text-button svg{background-color:transparent;margin:0 6px 0 0;vertical-align:middle}button.lake-text-button span{display:inline-block;line-height:16px;vertical-align:middle}button.lake-primary-button{color:#fff;border-color:transparent;background-color:#5672cd}button.lake-primary-button.lake-button-hovered{background-color:#3a5ccc}
|
|
7
|
-
.lake-dropdown{position:relative;font-family:var(--lake-font-family);color:var(--lake-text-color);font-size:var(--lake-button-font-size);user-select:none}.lake-dropdown button.lake-dropdown-title{border-radius:5px;border:0;font-family:Arial;font-size:var(--lake-button-font-size);color:var(--lake-text-color);background-color:transparent;padding:0;display:flex;align-items:center;justify-content:space-between;margin-right:4px;cursor:pointer}.lake-dropdown[disabled] button.lake-dropdown-title{opacity:.25;cursor:default}.lake-dropdown.lake-character-dropdown button.lake-dropdown-title-hovered,.lake-dropdown.lake-icon-dropdown button.lake-dropdown-title-hovered,.lake-dropdown.lake-list-dropdown button.lake-dropdown-title-hovered{background-color:var(--lake-button-background-hover-color)}.lake-dropdown button.lake-dropdown-title.lake-dropdown-title-no-down{margin-right:0}.lake-dropdown .lake-dropdown-text{height:16px;line-height:normal;margin:6px;overflow:hidden;white-space:nowrap;color:var(--lake-text-color)}.lake-dropdown .lake-dropdown-icon{position:relative;line-height:0;border-radius:5px 0 0 5px}.lake-dropdown .lake-dropdown-icon-hovered{background-color:var(--lake-button-background-hover-color)}.lake-dropdown .lake-dropdown-icon img,.lake-dropdown .lake-dropdown-icon svg{width:16px;height:16px;margin:6px 2px 6px 4px}.lake-dropdown .lake-dropdown-icon svg{fill:var(--lake-text-color)}.lake-dropdown.lake-color-dropdown .lake-dropdown-icon svg:last-child{position:absolute;left:0;bottom:0;fill:none}.lake-dropdown button.lake-dropdown-title-no-down .lake-dropdown-icon img,.lake-dropdown button.lake-dropdown-title-no-down .lake-dropdown-icon svg{margin:6px}.lake-dropdown button.lake-dropdown-title-no-down .lake-dropdown-icon svg{fill:var(--lake-text-color)}.lake-dropdown .lake-dropdown-down-icon{line-height:0;border-radius:0 5px 5px 0}.lake-dropdown .lake-dropdown-down-icon-hovered{background-color:var(--lake-button-background-hover-color)}.lake-dropdown .lake-dropdown-down-icon svg{width:12px;height:12px;margin:8px 2px;fill:var(--lake-secondary-text-color)}.lake-dropdown .lake-dropdown-menu,.lake-dropdown-menu{position:absolute;top:30px;
|
|
7
|
+
.lake-dropdown{position:relative;font-family:var(--lake-font-family);color:var(--lake-text-color);font-size:var(--lake-button-font-size);user-select:none}.lake-dropdown button.lake-dropdown-title{border-radius:5px;border:0;font-family:Arial;font-size:var(--lake-button-font-size);color:var(--lake-text-color);background-color:transparent;padding:0;display:flex;align-items:center;justify-content:space-between;margin-right:4px;cursor:pointer}.lake-dropdown[disabled] button.lake-dropdown-title{opacity:.25;cursor:default}.lake-dropdown.lake-character-dropdown button.lake-dropdown-title-hovered,.lake-dropdown.lake-icon-dropdown button.lake-dropdown-title-hovered,.lake-dropdown.lake-list-dropdown button.lake-dropdown-title-hovered{background-color:var(--lake-button-background-hover-color)}.lake-dropdown button.lake-dropdown-title.lake-dropdown-title-no-down{margin-right:0}.lake-dropdown .lake-dropdown-text{height:16px;line-height:normal;margin:6px;overflow:hidden;white-space:nowrap;color:var(--lake-text-color)}.lake-dropdown .lake-dropdown-icon{position:relative;line-height:0;border-radius:5px 0 0 5px}.lake-dropdown .lake-dropdown-icon-hovered{background-color:var(--lake-button-background-hover-color)}.lake-dropdown .lake-dropdown-icon img,.lake-dropdown .lake-dropdown-icon svg{width:16px;height:16px;margin:6px 2px 6px 4px}.lake-dropdown .lake-dropdown-icon svg{fill:var(--lake-text-color)}.lake-dropdown.lake-color-dropdown .lake-dropdown-icon svg:last-child{position:absolute;left:0;bottom:0;fill:none}.lake-dropdown button.lake-dropdown-title-no-down .lake-dropdown-icon img,.lake-dropdown button.lake-dropdown-title-no-down .lake-dropdown-icon svg{margin:6px}.lake-dropdown button.lake-dropdown-title-no-down .lake-dropdown-icon svg{fill:var(--lake-text-color)}.lake-dropdown .lake-dropdown-down-icon{line-height:0;border-radius:0 5px 5px 0}.lake-dropdown .lake-dropdown-down-icon-hovered{background-color:var(--lake-button-background-hover-color)}.lake-dropdown .lake-dropdown-down-icon svg{width:12px;height:12px;margin:8px 2px;fill:var(--lake-secondary-text-color)}.lake-dropdown .lake-dropdown-menu,.lake-dropdown-menu{position:absolute;top:30px;right:0;z-index:var(--lake-popup-z-index);list-style:none;margin:0;padding:6px 0;border:1px solid var(--lake-popup-border-color);border-radius:5px;background-color:var(--lake-popup-background-color);box-shadow:var(--lake-popup-shadow);user-select:none;display:none}.lake-dropdown-menu.lake-dropdown-menu-with-scroll{overflow-y:scroll;scrollbar-width:thin}.lake-dropdown .lake-dropdown-menu li,.lake-dropdown-menu li{display:flex;align-items:center;cursor:pointer;margin:0}.lake-list-dropdown-menu li{padding:6px 24px 6px 10px}.lake-list-dropdown-menu li.lake-dropdown-item-hovered{background-color:var(--lake-button-background-hover-color)}.lake-list-dropdown-menu li.lake-dropdown-item-selected{background-color:var(--lake-button-background-hover-color)}.lake-list-dropdown-menu li .lake-dropdown-menu-check{line-height:0;visibility:hidden}.lake-list-dropdown-menu li .lake-dropdown-menu-check svg{width:12px;height:12px;fill:var(--lake-text-color)}.lake-list-dropdown-menu li .lake-dropdown-menu-icon{line-height:0;margin-left:10px}.lake-list-dropdown-menu li .lake-dropdown-menu-icon svg{width:16px;height:16px;fill:var(--lake-text-color)}.lake-list-dropdown-menu li .lake-dropdown-menu-text{margin-left:10px;white-space:nowrap}.lake-icon-dropdown-menu{flex-wrap:wrap;justify-content:center}.lake-icon-dropdown-menu li{padding:0;border-radius:2px}.lake-icon-dropdown-menu li.lake-dropdown-item-hovered{background-color:var(--lake-button-background-hover-color)}.lake-icon-dropdown-menu li.lake-dropdown-item-selected{background-color:var(--lake-button-background-hover-color)}.lake-icon-dropdown-menu li .lake-dropdown-menu-check{display:none}.lake-icon-dropdown-menu li .lake-dropdown-menu-icon{line-height:0;margin:5px}.lake-icon-dropdown-menu li .lake-dropdown-menu-icon img,.lake-icon-dropdown-menu li .lake-dropdown-menu-icon svg{width:32px;height:32px}.lake-icon-dropdown-menu li .lake-dropdown-menu-text{display:none}.lake-character-dropdown-menu{flex-wrap:wrap;justify-content:center}.lake-character-dropdown-menu li{padding:0;border-radius:2px}.lake-character-dropdown-menu li.lake-dropdown-item-hovered{background-color:var(--lake-button-background-hover-color)}.lake-character-dropdown-menu li.lake-dropdown-item-selected{background-color:var(--lake-button-background-active-color)}.lake-character-dropdown-menu li .lake-dropdown-menu-check{display:none}.lake-character-dropdown-menu li .lake-dropdown-menu-icon{display:none}.lake-character-dropdown-menu li .lake-dropdown-menu-text{text-align:center;font-size:24px;width:42px;height:42px;line-height:42px}.lake-color-dropdown-menu{flex-wrap:wrap;justify-content:center}.lake-color-dropdown-menu li{position:relative;padding:0}.lake-color-dropdown-menu li.lake-dropdown-item-hovered{background-color:var(--lake-button-background-hover-color)}.lake-color-dropdown-menu li.lake-dropdown-item-selected{background-color:var(--lake-button-background-active-color)}.lake-color-dropdown-menu li .lake-dropdown-menu-check{position:absolute;top:6px;left:6px;z-index:1;line-height:0;visibility:hidden}.lake-color-dropdown-menu li .lake-dropdown-menu-check svg{width:12px;height:12px;fill:#fff}.lake-color-dropdown-menu li[value^="#e6"i] .lake-dropdown-menu-check svg,.lake-color-dropdown-menu li[value^="#f"i] .lake-dropdown-menu-check svg{fill:#000}.lake-color-dropdown-menu li .lake-dropdown-menu-icon{line-height:0}.lake-color-dropdown-menu li .lake-dropdown-menu-icon svg{width:16px;height:16px;margin:3px 4px;fill:var(--lake-text-color)}.lake-color-dropdown-menu li .lake-dropdown-menu-text{font-size:0;box-sizing:content-box;border:1px solid var(--lake-button-background-hover-color);border-radius:2px;width:16px;height:16px;margin:3px}.lake-color-dropdown-menu li:first-child{width:100%;margin-left:10px;margin-right:10px;margin-bottom:4px}.lake-color-dropdown-menu li:first-child .lake-dropdown-menu-check{display:none}.lake-color-dropdown-menu li:first-child .lake-dropdown-menu-text{width:100%;font-size:var(--lake-button-font-size);border:1px solid transparent;height:auto}
|
|
8
8
|
.lake-popup{box-sizing:border-box;font-family:var(--lake-font-family);font-size:var(--lake-popup-font-size);font-weight:400;line-height:normal;color:var(--lake-text-color)}.lake-popup *,.lake-popup ::after,.lake-popup ::before{box-sizing:border-box}.lake-popup .lake-text-button{box-shadow:var(--lake-button-shadow)}.lake-popup input[type=text]{font-family:var(--lake-font-family);font-size:var(--lake-popup-font-size);color:var(--lake-text-color);border-radius:5px;border:1px solid var(--lake-input-border-color);padding:4px 10px}.lake-popup input[type=text]:hover{border:1px solid var(--lake-input-border-hover-color)}.lake-popup input[type=text]:focus-visible{outline:var(--lake-input-outline);outline-offset:-2px}.lake-popup .lake-row{padding-bottom:8px}
|
|
9
9
|
.lake-menu{position:absolute;top:0;left:0;z-index:var(--lake-popup-z-index);list-style:none;border:1px solid var(--lake-popup-border-color);border-radius:5px;margin:0;padding:4px 8px;width:fit-content;background-color:var(--lake-popup-background-color);box-shadow:var(--lake-popup-shadow);display:none;max-height:180px;overflow-y:scroll;scrollbar-width:thin;user-select:none}.lake-menu .lake-menu-item{display:flex;align-items:center;cursor:pointer;margin:0;padding:4px 8px;border-radius:5px;scroll-margin:4px 0}.lake-menu .lake-menu-item-selected{background-color:var(--lake-button-background-active-color)}
|
|
10
10
|
.lake-resizer{user-select:none;display:none}.lake-resizer-bottom-left,.lake-resizer-bottom-right,.lake-resizer-top-left,.lake-resizer-top-right{position:absolute;width:12px;height:12px;line-height:0;z-index:1;border:1px solid #fff;border-radius:6px;background-color:var(--lake-box-border-focus-color)}.lake-resizer-top-left{top:-5px;left:-5px;cursor:nwse-resize}.lake-resizer-top-right{top:-5px;right:-5px;cursor:nesw-resize}.lake-resizer-bottom-left{bottom:-5px;left:-5px;cursor:nesw-resize}.lake-resizer-bottom-right{bottom:-5px;right:-5px;cursor:nwse-resize}.lake-resizer-info{position:absolute;bottom:8px;right:8px;z-index:1;border-radius:4px;background-color:rgba(0,0,0,.4);padding:2px 8px;font-size:14px;line-height:normal;color:#fff;white-space:nowrap;display:none}
|
|
@@ -13,7 +13,7 @@ button.lake-button{border-radius:5px;border:0;font-family:Arial;font-size:var(--
|
|
|
13
13
|
.lake-container h1,.lake-container h2,.lake-container h3,.lake-container h4,.lake-container h5,.lake-container h6{font-weight:700;line-height:normal;border:0;margin:0;padding:0}.lake-container h1{font-size:36px;margin-bottom:16px}.lake-container h2{font-size:30px;margin-bottom:14px}.lake-container h3{font-size:24px;margin-bottom:14px}.lake-container h4{font-size:20px;margin-bottom:12px}.lake-container h5{font-size:18px;margin-bottom:10px}.lake-container h6{font-size:16px;margin-bottom:8px}
|
|
14
14
|
.lake-container ol,.lake-container ul{list-style:none;margin:0;margin-bottom:8px;padding:0}.lake-container ol lake-box[name=emoji],.lake-container ul lake-box[name=emoji]{vertical-align:middle}.lake-container ol[indent="1"],.lake-container ul[indent="1"]{padding-left:2em}.lake-container ol[indent="2"],.lake-container ul[indent="2"]{padding-left:4em}.lake-container ol[indent="3"],.lake-container ul[indent="3"]{padding-left:6em}.lake-container ol[indent="4"],.lake-container ul[indent="4"]{padding-left:8em}.lake-container ol[indent="5"],.lake-container ul[indent="5"]{padding-left:10em}.lake-container ol[indent="6"],.lake-container ul[indent="6"]{padding-left:12em}.lake-container ol[indent="7"],.lake-container ul[indent="7"]{padding-left:14em}.lake-container ol[indent="8"],.lake-container ul[indent="8"]{padding-left:16em}.lake-container ol[indent="9"],.lake-container ul[indent="9"]{padding-left:18em}.lake-container ol[indent="10"],.lake-container ul[indent="10"]{padding-left:20em}.lake-container ol li,.lake-container ul li{margin:0 0 0 20px;padding:0 0 0 4px}.lake-container ol li{list-style:decimal}.lake-container ul li{list-style:disc}.lake-container ol[indent="1"] li,.lake-container ol[indent="10"] li,.lake-container ol[indent="4"] li,.lake-container ol[indent="7"] li{list-style-type:lower-alpha}.lake-container ol[indent="2"] li,.lake-container ol[indent="5"] li,.lake-container ol[indent="8"] li{list-style-type:lower-roman}.lake-container ul[indent="1"] li,.lake-container ul[indent="10"] li,.lake-container ul[indent="4"] li,.lake-container ul[indent="7"] li{list-style-type:circle}.lake-container ul[indent="2"] li,.lake-container ul[indent="5"] li,.lake-container ul[indent="8"] li{list-style-type:square}.lake-container ul[type=checklist] li{list-style:none;position:relative;margin-left:0;padding-left:24px}.lake-container ul[type=checklist] li::before{box-sizing:content-box;content:'';position:absolute;top:3px;left:0;width:16px;height:16px;border-radius:4px}.lake-container ul[type=checklist] li[value=true]::before{border:1px solid #1890ff;background-color:#1890ff}.lake-container ul[type=checklist] li[value=false]::before{border:1px solid var(--lake-border-color);background-color:#fff}.lake-container ul[type=checklist] li::after{box-sizing:content-box;content:'';position:absolute;top:3px;left:0;margin-left:4px;margin-top:8px;width:4px;height:8px;border-bottom:2px solid #fff;border-right:2px solid #fff;border-radius:1px;transform:rotate(45deg) scale(1) translate(-50%,-50%)}.lake-container[contenteditable=true] ul[type=checklist] li::before{cursor:pointer}.lake-container[contenteditable=true] ul[type=checklist] li::after{cursor:pointer}
|
|
15
15
|
.lake-container blockquote{margin:0;margin-bottom:8px;padding:8px 12px;color:var(--lake-blockquote-text-color);border-left:var(--lake-blockquote-border)}.lake-container blockquote[type]{margin:16px 0;padding:16px 20px;color:var(--lake-text-color);border:1px solid transparent;border-radius:8px}.lake-container blockquote[type=info]{background-color:#8e96aa24}.lake-container blockquote[type=tip]{background-color:#646cff24}.lake-container blockquote[type=warning]{background-color:#eab30824}.lake-container blockquote[type=danger]{background-color:#f43f5e24}
|
|
16
|
-
.lake-toolbar{box-sizing:border-box;font-family:var(--lake-font-family);font-size:14px;font-weight:400;line-height:normal;padding:4px;display:flex;flex-wrap:wrap;align-items:center}.lake-toolbar *,.lake-toolbar ::after,.lake-toolbar ::before{box-sizing:border-box}.lake-toolbar .lake-toolbar-divider{width:1px;height:20px;margin:0 4px;border-left:1px solid var(--lake-border-color);user-select:none}.lake-toolbar .lake-upload{line-height:0}.lake-toolbar .lake-upload input[type=file]{display:none}
|
|
16
|
+
.lake-toolbar{box-sizing:border-box;font-family:var(--lake-font-family);font-size:14px;font-weight:400;line-height:normal;padding:4px;display:flex;flex-wrap:wrap;align-items:center}.lake-toolbar *,.lake-toolbar ::after,.lake-toolbar ::before{box-sizing:border-box}.lake-toolbar .lake-toolbar-divider{width:1px;height:20px;margin:0 4px;border-left:1px solid var(--lake-border-color);user-select:none}.lake-toolbar .lake-toolbar-line-break{flex-basis:100%;height:0;user-select:none}.lake-toolbar .lake-upload{line-height:0}.lake-toolbar .lake-upload input[type=file]{display:none}
|
|
17
17
|
.lake-floating-toolbar{position:absolute;top:0;left:0;z-index:var(--lake-popup-z-index);border:1px solid var(--lake-popup-border-color);border-radius:5px;background-color:var(--lake-popup-background-color);box-shadow:var(--lake-button-shadow);padding:4px;display:flex;align-items:center}.lake-floating-toolbar .lake-toolbar-divider{width:1px;height:20px;margin:0 4px;border-left:1px solid var(--lake-border-color);user-select:none}
|
|
18
18
|
.lake-iframe{position:relative;font-size:14px;font-weight:400;line-height:0;border:0}.lake-iframe .lake-iframe-form{padding:24px 16px;line-height:normal;color:var(--lake-text-color);border:1px solid var(--lake-box-border-color);background-color:var(--lake-box-background-color);border-radius:4px}.lake-iframe .lake-description{margin-bottom:16px;color:var(--lake-secondary-text-color)}.lake-iframe input[type=text]{font-family:var(--lake-font-family);font-size:14px;color:var(--lake-text-color);border-radius:5px;border:1px solid var(--lake-input-border-color);background-color:var(--lake-input-background-color);padding:4px 10px;width:100%}.lake-iframe input[type=text]:hover{border:1px solid var(--lake-input-border-hover-color)}.lake-iframe input[type=text]:focus-visible{outline:var(--lake-input-outline);outline-offset:-2px}lake-box[type=inline] .lake-iframe .lake-iframe-form{min-width:380px;max-width:480px}lake-box[type=inline] .lake-iframe .lake-input-label{margin-bottom:8px}lake-box[type=inline] .lake-iframe .lake-input-field input[type=text]{margin-bottom:16px}lake-box[type=inline] .lake-iframe .lake-input-field button{width:100%}lake-box[type=block] .lake-iframe .lake-input-label{display:none}lake-box[type=block] .lake-iframe .lake-input-field{display:flex}lake-box[type=block] .lake-iframe .lake-input-field input[type=text]{margin-right:8px}.lake-iframe-placeholder{position:absolute;top:0;left:0;display:flex;align-items:center;justify-content:center;border:1px solid transparent;background-color:var(--lake-box-placeholder-background-color);border-radius:4px}.lake-iframe-placeholder svg{width:50%;max-width:64px;height:50%;max-height:64px;fill:var(--lake-box-placeholder-text-color)}.lake-iframe-placeholder span{font-size:24px;color:var(--lake-box-placeholder-text-color)}.lake-iframe iframe{border-radius:5px}
|
|
19
19
|
.lake-container table{display:table;border-collapse:collapse;border:0;margin:20px 0;overflow:visible}.lake-container table tr,.lake-container table tr:nth-child(n){border:0;background-color:transparent}.lake-container table td{font-size:var(--lake-font-size);padding:8px 16px;min-width:33px;border:1px solid var(--lake-border-color)}.lake-container table td p{margin-bottom:0}.lake-container table td.lake-td-focused{outline:var(--lake-input-outline)}
|