litos-ui 0.7.0 → 0.9.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/lib/{animation-QfX4RtqD.js → animation-DttknHkX.js} +2 -2
- package/lib/base.d.ts +1 -3
- package/lib/base.js +26 -58
- package/lib/button/index.js +58 -62
- package/lib/color_picker/index.js +18 -20
- package/lib/form/form_events.js +15 -17
- package/lib/form/form_inner.js +43 -47
- package/lib/form/form_item.d.ts +1 -1
- package/lib/form/form_item.js +49 -53
- package/lib/form/index.d.ts +1 -1
- package/lib/form/index.js +58 -61
- package/lib/icon/arrow_down.js +4 -7
- package/lib/icon/arrow_left.js +4 -7
- package/lib/icon/arrow_right.js +4 -7
- package/lib/icon/arrow_up.js +4 -7
- package/lib/icon/base.js +21 -24
- package/lib/icon/caret_bottom.js +4 -7
- package/lib/icon/caret_top.js +4 -7
- package/lib/icon/font_icon.js +13 -17
- package/lib/icon/info.js +4 -7
- package/lib/icon/loading.js +4 -7
- package/lib/icon/mask_close.js +4 -7
- package/lib/icon/moon.js +4 -7
- package/lib/icon/reduction.js +4 -7
- package/lib/icon/refresh_left.js +4 -7
- package/lib/icon/refresh_right.js +4 -7
- package/lib/icon/search.js +4 -7
- package/lib/icon/sort.js +4 -7
- package/lib/icon/success.js +4 -7
- package/lib/icon/sun.js +4 -7
- package/lib/icon/theme_default.js +4 -7
- package/lib/icon/warn.js +4 -7
- package/lib/{index-B_9rPBWp.js → index-391POYEJ.js} +1 -1
- package/lib/index.d.ts +2 -10
- package/lib/index.js +62 -70
- package/lib/input/index.d.ts +1 -1
- package/lib/input/index.js +66 -70
- package/lib/list/index.d.ts +1 -1
- package/lib/list/index.js +26 -30
- package/lib/litos-ui.css +1 -1
- package/lib/litos-ui.min.js +1 -1
- package/lib/message/index.js +35 -33
- package/lib/polygon/index.d.ts +1 -1
- package/lib/polygon/index.js +14 -17
- package/lib/popconfirm/index.js +11 -17
- package/lib/popover/index.js +115 -120
- package/lib/radio/index.d.ts +2 -2
- package/lib/radio/index.js +65 -68
- package/lib/select_ori/index.d.ts +1 -1
- package/lib/select_ori/index.js +25 -29
- package/lib/switch/index.js +39 -48
- package/lib/tabbar/index.js +115 -123
- package/lib/theme/index.js +71 -74
- package/lib/theme/theme_color.js +17 -27
- package/lib/utils/event.js +16 -18
- package/lib/utils/index.js +48 -51
- package/lib/utils/transition.js +24 -34
- package/package.json +4 -1
- package/lib/browser.d.ts +0 -17
- package/lib/button/regist.d.ts +0 -2
- package/lib/button/regist.js +0 -7
- package/lib/form/types.js +0 -1
- package/lib/index-116dRdDj.js +0 -4
- package/lib/index-BUyxD_nH.js +0 -4
- package/lib/index-BeOxuMd4.js +0 -4
- package/lib/index-Bl8lRTJd.js +0 -4
- package/lib/index-BxlGVrX3.js +0 -4
- package/lib/index-C2D4YsFw.js +0 -4
- package/lib/index-C98Kx857.js +0 -4
- package/lib/index-CCcVpk6U.js +0 -4
- package/lib/index-CMz7GCCH.js +0 -4
- package/lib/index-D-Ikkdx0.js +0 -4
- package/lib/index-DJ70Xyma.js +0 -4
- package/lib/index-DKvzJmsR.js +0 -4
- package/lib/index-oNjb_IVt.js +0 -4
- package/lib/popconfirm/regist.d.ts +0 -2
- package/lib/popconfirm/regist.js +0 -7
- package/lib/popover/regist.d.ts +0 -2
- package/lib/popover/regist.js +0 -7
- package/lib/tabbar/regist.d.ts +0 -2
- package/lib/tabbar/regist.js +0 -7
package/lib/utils/index.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { isBlank as
|
|
2
|
-
import { iterate as
|
|
3
|
-
let E = -1,
|
|
1
|
+
import { isBlank as N } from "ph-utils";
|
|
2
|
+
import { iterate as $, transition as m, $ as p } from "ph-utils/dom";
|
|
3
|
+
let E = -1, y = {
|
|
4
4
|
/** 注册应用的前缀 */
|
|
5
5
|
prefix: "l"
|
|
6
6
|
};
|
|
7
|
-
function
|
|
8
|
-
|
|
7
|
+
function H(t) {
|
|
8
|
+
y = { ...y, ...t };
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function _(t, r) {
|
|
11
11
|
const e = Array.isArray(t) ? t : [t];
|
|
12
12
|
for (const i of e) {
|
|
13
|
-
const n = r || `${
|
|
13
|
+
const n = r || `${y.prefix}-${i.baseName}`;
|
|
14
14
|
customElements.get(n) || customElements.define(n, i);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
function
|
|
18
|
-
return `${
|
|
17
|
+
function k() {
|
|
18
|
+
return `${y.prefix}-${++E}`;
|
|
19
19
|
}
|
|
20
20
|
function W(t, r, e) {
|
|
21
21
|
if (t == null) return r;
|
|
@@ -28,30 +28,27 @@ function W(t, r, e) {
|
|
|
28
28
|
return t;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function V(t) {
|
|
32
32
|
const r = t.attributes;
|
|
33
33
|
for (const e of r) {
|
|
34
34
|
const { name: i, value: n } = e;
|
|
35
|
-
if (i.startsWith("data-") || i.startsWith("aria-") || i.startsWith("_") || i.startsWith("$"))
|
|
35
|
+
if (i.startsWith("data-") || i.startsWith("aria-") || i.startsWith("_") || i.startsWith("$") || ["id", "class", "style"].includes(i))
|
|
36
36
|
continue;
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
const s = W(n, t[f], i);
|
|
40
|
-
t[f] = s, i === "value" && (t._resetValue = s);
|
|
41
|
-
}
|
|
37
|
+
const s = i.split("-").map((d, a) => a === 0 ? d : d[0].toUpperCase() + d.slice(1)).join(""), f = W(n, t[s], i), u = Object.getOwnPropertyNames(t), h = t._ignoreInitAttrs || [];
|
|
38
|
+
i === "value" ? (t[s] = f, t._resetValue = f) : u.includes(s) && !h.includes(s) && (t[s] = f);
|
|
42
39
|
}
|
|
43
40
|
}
|
|
44
|
-
function
|
|
41
|
+
function I(t, r) {
|
|
45
42
|
let e = " ";
|
|
46
|
-
return r === !0 ? e = ` ${t}` : typeof r == "string" &&
|
|
43
|
+
return r === !0 ? e = ` ${t}` : typeof r == "string" && !N(r) && (e = ` ${t}="${r}"`), e;
|
|
47
44
|
}
|
|
48
45
|
function B(t) {
|
|
49
|
-
return t.map((e) =>
|
|
46
|
+
return t.map((e) => I(e[0], e[1])).join("");
|
|
50
47
|
}
|
|
51
48
|
function F(t, r) {
|
|
52
49
|
for (const e of r) {
|
|
53
50
|
const i = e[1], n = e[0];
|
|
54
|
-
i === !0 ? t.setAttribute(n, "") : typeof i == "string" &&
|
|
51
|
+
i === !0 ? t.setAttribute(n, "") : typeof i == "string" && !N(i) && t.setAttribute(n, i);
|
|
55
52
|
}
|
|
56
53
|
}
|
|
57
54
|
function M() {
|
|
@@ -59,30 +56,30 @@ function M() {
|
|
|
59
56
|
const r = {
|
|
60
57
|
attributes: !0,
|
|
61
58
|
attributeFilter: ["l-transition-emit"]
|
|
62
|
-
}, e = (
|
|
63
|
-
for (let
|
|
64
|
-
if (
|
|
65
|
-
const u =
|
|
66
|
-
|
|
67
|
-
|
|
59
|
+
}, e = (s) => {
|
|
60
|
+
for (let f of s)
|
|
61
|
+
if (f.type === "attributes" && f.attributeName) {
|
|
62
|
+
const u = f.target, h = u.getAttribute(f.attributeName) || "show", d = u.getAttribute("l-transition") || "l", a = u.getAttribute("l-transition-method") || "hide";
|
|
63
|
+
h === "show" ? (u.style.removeProperty("display"), m(u, d, "enter")) : m(u, d, "leave", () => {
|
|
64
|
+
a === "remove" ? u.remove() : u.style.display = "none";
|
|
68
65
|
});
|
|
69
66
|
}
|
|
70
67
|
};
|
|
71
|
-
function i(
|
|
72
|
-
|
|
73
|
-
const u =
|
|
74
|
-
u && (
|
|
68
|
+
function i(s) {
|
|
69
|
+
s && s.length > 0 && (t == null && (t = new MutationObserver(e)), $(s, (f) => {
|
|
70
|
+
const u = f.getAttribute("l-transition");
|
|
71
|
+
u && (m(f, u, "enter"), t.observe(f, r));
|
|
75
72
|
}));
|
|
76
73
|
}
|
|
77
|
-
function n(
|
|
78
|
-
|
|
74
|
+
function n(s) {
|
|
75
|
+
s == null && (s = p("[l-transition]"), i(s));
|
|
79
76
|
}
|
|
80
77
|
function o() {
|
|
81
78
|
t && (t.disconnect(), t = void 0);
|
|
82
79
|
}
|
|
83
80
|
return { destroy: o, add: i, init: n };
|
|
84
81
|
}
|
|
85
|
-
function
|
|
82
|
+
function w(t, r, e, i, n = 10) {
|
|
86
83
|
let o = 0;
|
|
87
84
|
return e === "top" ? o = r.height + n : e === "bottom" ? o = -(t.height + n) : (e === "left" || e === "right") && (i === "" ? o = r.height / 2 - t.height / 2 : i === "end" && (o = r.height - t.height)), o;
|
|
88
85
|
}
|
|
@@ -90,53 +87,53 @@ function x(t, r, e, i, n = 10) {
|
|
|
90
87
|
let o = 0;
|
|
91
88
|
return e === "left" ? o = r.width + n : e === "right" ? o = -(t.width + n) : (e === "top" || e === "bottom") && (i === "" ? o = r.width / 2 - t.width / 2 : i === "end" && (o = r.width - t.width)), o;
|
|
92
89
|
}
|
|
93
|
-
function U(t, r, e, i, n, o,
|
|
94
|
-
const
|
|
95
|
-
let
|
|
96
|
-
|
|
90
|
+
function U(t, r, e, i, n, o, s, f, u = 10, h = "absolute") {
|
|
91
|
+
const d = window.innerHeight + o - 10, a = window.innerWidth + n - 10;
|
|
92
|
+
let b = t.top + o - f;
|
|
93
|
+
b + r.height > d && (e === "left" || e === "right" ? i = "end" : e = "top", f = w(
|
|
97
94
|
t,
|
|
98
95
|
r,
|
|
99
96
|
e,
|
|
100
97
|
i,
|
|
101
98
|
u
|
|
102
|
-
),
|
|
103
|
-
let
|
|
104
|
-
return
|
|
99
|
+
), b = t.top + o - f), b < o && (e === "left" || e === "right" ? i = "start" : e = "bottom");
|
|
100
|
+
let c = t.left + n - s;
|
|
101
|
+
return c + r.width > a && (e === "top" || e === "bottom" ? i = "end" : e = "left", s = x(
|
|
105
102
|
t,
|
|
106
103
|
r,
|
|
107
104
|
e,
|
|
108
105
|
i,
|
|
109
106
|
u
|
|
110
|
-
),
|
|
107
|
+
), c = t.left + n - s), c < n && (e === "top" || e === "bottom" ? i = "start" : e = "right"), h === "fixed" && (f = w(
|
|
111
108
|
t,
|
|
112
109
|
r,
|
|
113
110
|
e,
|
|
114
111
|
i,
|
|
115
112
|
u
|
|
116
|
-
),
|
|
113
|
+
), s = x(
|
|
117
114
|
t,
|
|
118
115
|
r,
|
|
119
116
|
e,
|
|
120
117
|
i,
|
|
121
118
|
u
|
|
122
|
-
),
|
|
123
|
-
x:
|
|
124
|
-
y:
|
|
119
|
+
), c = t.left + n - s, b = t.top + o - f), {
|
|
120
|
+
x: c,
|
|
121
|
+
y: b,
|
|
125
122
|
mainAlign: e,
|
|
126
123
|
crossAlign: i
|
|
127
124
|
};
|
|
128
125
|
}
|
|
129
126
|
export {
|
|
130
|
-
|
|
127
|
+
H as config,
|
|
131
128
|
M as createTransition,
|
|
132
129
|
x as getPopoverOffsetX,
|
|
133
|
-
|
|
130
|
+
w as getPopoverOffsetY,
|
|
134
131
|
U as impactDetect,
|
|
135
|
-
|
|
132
|
+
V as initAttr,
|
|
136
133
|
W as parseAttrValue,
|
|
137
|
-
|
|
134
|
+
_ as regist,
|
|
138
135
|
F as setAttrs,
|
|
139
|
-
|
|
136
|
+
I as tagAttr,
|
|
140
137
|
B as tagAttrs,
|
|
141
|
-
|
|
138
|
+
k as useId
|
|
142
139
|
};
|
package/lib/utils/transition.js
CHANGED
|
@@ -1,63 +1,53 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var o = (s, e, t) => p(s, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { initAttr as m } from "./index.js";
|
|
5
|
-
import d from "../base.js";
|
|
1
|
+
import { initAttr as h } from "./index.js";
|
|
2
|
+
import a from "../base.js";
|
|
6
3
|
import "../message/index.js";
|
|
7
|
-
import { transition as
|
|
4
|
+
import { transition as i } from "ph-utils/dom";
|
|
8
5
|
import "ph-utils";
|
|
9
6
|
import "ph-utils/validator";
|
|
10
|
-
import "
|
|
11
|
-
import "../list/index.js";
|
|
7
|
+
import "ph-utils/color";
|
|
12
8
|
import "ph-utils/theme";
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
class u extends d {
|
|
19
|
-
constructor() {
|
|
20
|
-
super();
|
|
21
|
-
/** 应用过滤动画的属性值, 例如: opacity: 0; transform: xx; */
|
|
22
|
-
o(this, "sheetRec");
|
|
23
|
-
o(this, "duration", "0.3s");
|
|
24
|
-
m(this), this.sheetRec = this._parseSheets(this.getAttr("sheets", "opacity: 0"));
|
|
25
|
-
}
|
|
9
|
+
class C extends a {
|
|
10
|
+
static baseName = "transition";
|
|
11
|
+
/** 应用过滤动画的属性值, 例如: opacity: 0; transform: xx; */
|
|
12
|
+
sheetRec;
|
|
13
|
+
duration = "0.3s";
|
|
26
14
|
static get observedAttributes() {
|
|
27
15
|
return ["sheets"];
|
|
28
16
|
}
|
|
17
|
+
constructor() {
|
|
18
|
+
super(), h(this), this.sheetRec = this._parseSheets(this.getAttr("sheets", "opacity: 0"));
|
|
19
|
+
}
|
|
29
20
|
connectedCallback() {
|
|
30
21
|
super.connectedCallback(), this.show();
|
|
31
22
|
}
|
|
32
23
|
render() {
|
|
33
24
|
this.shadow.innerHTML = "<slot></slot>";
|
|
34
25
|
}
|
|
35
|
-
attributeChangedCallback(t,
|
|
36
|
-
t === "sheets" && (this.sheetRec = this._parseSheets(
|
|
26
|
+
attributeChangedCallback(t, e, s) {
|
|
27
|
+
t === "sheets" && (this.sheetRec = this._parseSheets(s));
|
|
37
28
|
}
|
|
38
29
|
show() {
|
|
39
30
|
const t = this._getSlotFirstChild();
|
|
40
|
-
t &&
|
|
31
|
+
t && i(t, this.sheetRec, "enter");
|
|
41
32
|
}
|
|
42
33
|
hide(t) {
|
|
43
|
-
const
|
|
44
|
-
|
|
34
|
+
const e = this._getSlotFirstChild();
|
|
35
|
+
e && i(e, this.sheetRec, "leave", t);
|
|
45
36
|
}
|
|
46
37
|
_parseSheets(t) {
|
|
47
|
-
const
|
|
48
|
-
return
|
|
49
|
-
if (
|
|
50
|
-
const [
|
|
51
|
-
|
|
38
|
+
const e = t.split(";"), s = [];
|
|
39
|
+
return e.forEach((r) => {
|
|
40
|
+
if (r) {
|
|
41
|
+
const [o, n] = r.split(":");
|
|
42
|
+
s.push([o.trim(), n.trim(), this.duration]);
|
|
52
43
|
}
|
|
53
|
-
}),
|
|
44
|
+
}), s;
|
|
54
45
|
}
|
|
55
46
|
_getSlotFirstChild() {
|
|
56
47
|
const t = this.shadow.querySelector("slot");
|
|
57
48
|
return t != null && t.assignedNodes().length > 0 ? t.assignedNodes()[0] : null;
|
|
58
49
|
}
|
|
59
50
|
}
|
|
60
|
-
o(u, "baseName", "transition");
|
|
61
51
|
export {
|
|
62
|
-
|
|
52
|
+
C as Transition
|
|
63
53
|
};
|
package/package.json
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "litos-ui",
|
|
3
3
|
"description": "基于 Web Component 的 UI 组件库",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.9.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
|
+
"dev": "vite dev",
|
|
8
|
+
"build": "vite build",
|
|
7
9
|
"docs:dev": "vitepress dev docs",
|
|
8
10
|
"docs:build": "vitepress build docs",
|
|
9
11
|
"docs:preview": "vitepress preview docs",
|
|
@@ -27,6 +29,7 @@
|
|
|
27
29
|
"typescript": "^5.7.2",
|
|
28
30
|
"typescript-eslint": "^8.19.0",
|
|
29
31
|
"vite": "^6.0.6",
|
|
32
|
+
"vite-plugin-dts": "^4.5.0",
|
|
30
33
|
"vitepress": "^1.5.0"
|
|
31
34
|
},
|
|
32
35
|
"files": [
|
package/lib/browser.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import "../../styles/reset.css";
|
|
2
|
-
import "../../styles/message.css";
|
|
3
|
-
import "./styles/animation.css";
|
|
4
|
-
import "./button/index.less";
|
|
5
|
-
import "./icon/index.less";
|
|
6
|
-
import "./input/index.less";
|
|
7
|
-
import "./form/index.less";
|
|
8
|
-
import "./radio/index.less";
|
|
9
|
-
import "./list/index.less";
|
|
10
|
-
import "./polygon/index.less";
|
|
11
|
-
import "./select_ori/index.less";
|
|
12
|
-
import "./switch/index.less";
|
|
13
|
-
import "./color_picker/index.less";
|
|
14
|
-
import "./tabbar/index.less";
|
|
15
|
-
import "./theme/index.less";
|
|
16
|
-
import "./popover/index.less";
|
|
17
|
-
import "./popconfirm/index.less";
|
package/lib/button/regist.d.ts
DELETED
package/lib/button/regist.js
DELETED
package/lib/form/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/lib/index-116dRdDj.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const t = ":host{display:inline-flex}:host{--l-switch-height: 22px;--l-switch-width: 40px;display:inline-flex;box-sizing:border-box;width:var(--l-switch-width);height:var(--l-switch-height);align-items:center;justify-content:flex-start;background-color:#dcdfe6;border-radius:calc(var(--l-switch-height) / 2);padding:2px;position:relative;cursor:pointer;transition:all .3s ease-in-out;vertical-align:middle;border:1px solid #c2c2c2}:host(:hover),:host(.l-switch--checked):hover{border-color:var(--l-primary-color, #722ed1)}:host(.l-switch--checked){background-color:var(--l-primary-color, #722ed1);border-color:var(--l-primary-color, #722ed1)}.l-switch-action{position:absolute;width:calc(var(--l-switch-height) - 6px);top:2px;left:2px;bottom:2px;background-color:#fff;border-radius:50%;transition:all .3s ease-in-out;display:flex;justify-content:center;align-items:center;padding:2px;font-size:12px;box-sizing:border-box}.l-switch-text{color:#fff;padding-left:calc(var(--l-switch-width) - 20px);transition:padding-left .3s ease-in-out}:host(.l-switch--checked) .l-switch-action{left:calc(var(--l-switch-width) - var(--l-switch-height) + 3px)}:host(.l-switch--checked) .l-switch-text{padding-left:5px}";
|
|
2
|
-
export {
|
|
3
|
-
t as default
|
|
4
|
-
};
|
package/lib/index-BUyxD_nH.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const o = ':host{width:max-content;position:relative}.l-popover--content{--l-popover-border-color: #e4e4e4;--l-popover-color: #666666;--l-popover-box-shadow: 0 4px 8px rgba(0, 0, 0, .12);--l-popover-background: #ffffff;--l-popover-arrow-size: 8px;--l-popover-offset: 10px;position:absolute;width:max-content;box-shadow:var(--l-popover-box-shadow);background:var(--l-popover-background);border:1px solid var(--l-popover-border-color);border-radius:4px;padding:10px;z-index:30;color:var(--l-popover-color);box-sizing:border-box}.l-popover-tooltip{--l-popover-color: #fff;--l-popover-box-shadow: 4px 4px 8px rgba(0, 0, 0, .3);--l-popover-background: #383838;--l-popover-arrow-size: 6px;border-radius:5px;padding:8px;font-size:12px;line-height:1}.l-popover--arrow{position:absolute;width:var(--l-popover-arrow-size, 8px);height:var(--l-popover-arrow-size, 8px);z-index:-1}.l-popover--arrow:before{content:"";position:absolute;width:var(--l-popover-arrow-size, 8px);height:var(--l-popover-arrow-size, 8px);transform:rotate3d(0,0,1,45deg);background-color:var(--l-popover-background);border-width:1px;border-style:solid}.l-popover-top,.l-popover-top-start,.l-popover-top-end{bottom:calc(100% + var(--l-popover-offset, 10px))}.l-popover-bottom,.l-popover-bottom-start,.l-popover-bottom-end{top:calc(100% + var(--l-popover-offset, 10px))}.l-popover-top-start,.l-popover-bottom-start{left:0}.l-popover-top-end,.l-popover-bottom-end{right:0}.l-popover-bottom,.l-popover-top{left:50%;transform:translate3d(-50%,0,0)}.l-popover-left-start,.l-popover-left,.l-popover-left-end{right:calc(100% + var(--l-popover-offset, 10px))}.l-popover-left-start,.l-popover-right-start{top:0}.l-popover-left-end,.l-popover-right-end{bottom:0}.l-popover-left,.l-popover-right{top:50%;transform:translate3d(0,-50%,0)}.l-popover-right-start,.l-popover-right,.l-popover-right-end{left:calc(100% + var(--l-popover-offset, 10px))}.l-popover-top .l-popover--arrow,.l-popover-bottom .l-popover--arrow{left:50%;margin-left:-4px}.l-popover-top .l-popover--arrow:before,.l-popover-top-start .l-popover--arrow:before,.l-popover-top-end .l-popover--arrow:before{border-color:transparent var(--l-popover-border-color) var(--l-popover-border-color) transparent}.l-popover-bottom .l-popover--arrow:before,.l-popover-bottom-start .l-popover--arrow:before,.l-popover-bottom-end .l-popover--arrow:before{border-color:var(--l-popover-border-color) transparent transparent var(--l-popover-border-color)}.l-popover-top .l-popover--arrow,.l-popover-top-start .l-popover--arrow,.l-popover-top-end .l-popover--arrow{bottom:calc((var(--l-popover-arrow-size, 8px) / -2) + 1px)}.l-popover-top-start .l-popover--arrow,.l-popover-bottom-start .l-popover--arrow{left:10px}.l-popover-top-end .l-popover--arrow,.l-popover-bottom-end .l-popover--arrow{right:10px}.l-popover-bottom .l-popover--arrow,.l-popover-bottom-start .l-popover--arrow,.l-popover-bottom-end .l-popover--arrow{top:calc((var(--l-popover-arrow-size, 8px) / -2) - 1px)}.l-popover-left .l-popover--arrow,.l-popover-left-start .l-popover--arrow,.l-popover-left-end .l-popover--arrow{margin-top:-4px;right:-4px}.l-popover-left-start .l-popover--arrow:before,.l-popover-left .l-popover--arrow:before,.l-popover-left-end .l-popover--arrow:before{border-color:var(--l-popover-border-color) var(--l-popover-border-color) transparent transparent}.l-popover-right .l-popover--arrow,.l-popover-right-start .l-popover--arrow,.l-popover-right-end .l-popover--arrow{margin-top:-4px;left:-4px}.l-popover-right-start .l-popover--arrow:before,.l-popover-right .l-popover--arrow:before,.l-popover-right-end .l-popover--arrow:before{border-color:transparent transparent var(--l-popover-border-color) var(--l-popover-border-color)}.l-popover-left .l-popover--arrow,.l-popover-right .l-popover--arrow{top:50%}.l-popover-left-start .l-popover--arrow,.l-popover-right-start .l-popover--arrow{top:10px}.l-popover-left-end .l-popover--arrow,.l-popover-right-end .l-popover--arrow{bottom:10px}';
|
|
2
|
-
export {
|
|
3
|
-
o as default
|
|
4
|
-
};
|
package/lib/index-BeOxuMd4.js
DELETED
package/lib/index-Bl8lRTJd.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const r = ":host{display:inline-flex}:host{--l-btn-text-color: #ffffff;--l-btn-hover-text-color: var(--l-btn-text-color);--l-btn-active-text-color: var(--l-btn-text-color);--l-btn-border-color: var(--l-primary-color, #722ed1);--l-btn-background: var(--l-btn-border-color);--l-btn-hover-border-color: var(--l-primary-color-light1, #9254de);--l-btn-hover-background: var(--l-btn-hover-border-color);--l-btn-active-border-color: var(--l-primary-color-dark1, #531dab);--l-btn-active-background: var(--l-btn-active-border-color);--l-btn-disabled-color: #c9c9c9;--l-btn-disabled-background: #fbfbfb;--l-btn-disabled-border-color: #e6e6e6;display:inline-block}.l-btn{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;outline:none;box-sizing:border-box;vertical-align:middle;padding:0 15px;line-height:1;height:var(--l-form-edit-height, 32px);border-radius:3px;font-size:14px;color:var(--l-btn-text-color);background:var(--l-btn-background);border:1px solid var(--l-btn-border-color);position:relative;gap:5px;transition:border-color .3s,background-color .3s,color .3s}.l-btn:hover{border-color:var(--l-btn-hover-border-color, var(--l-btn-hover-background));color:var(--l-btn-hover-text-color);background:var(--l-btn-hover-background)}.l-btn:active{border-color:var(--l-btn-active-border-color, var(--l-btn-active-background));color:var(--l-btn-active-text-color);background:var(--l-btn-active-background)}.l-btn-normal{--l-btn-text-color: auto;--l-btn-background: transparent;--l-btn-border-color: #d9d9d9;--l-btn-hover-text-color: var(--l-primary-color-light1, #9254de);--l-btn-active-text-color: var(--l-primary-color-dark1, #531dab);--l-btn-hover-background: #fff;--l-btn-active-background: #fff;--l-btn-hover-border-color: var(--l-btn-hover-text-color);--l-btn-active-border-color: var(--l-btn-active-text-color)}.l-btn-primary{--l-btn-background: var(--l-primary-color, #722ed1);--l-btn-hover-background: var(--l-primary-color-light1, #9254de);--l-btn-active-background: var(--l-primary-color-dark1, #531dab)}.l-btn:not(.l-btn-loading):disabled{border-color:var(--l-btn-disabled-border-color);background:var(--l-btn-disabled-background);color:var(--l-btn-disabled-color);cursor:not-allowed;opacity:1}.l-btn-text{--l-btn-background: transparent;--l-btn-border-color: transparent;--l-btn-hover-border-color: transparent;--l-btn-active-border-color: transparent;--l-btn-disabled-background: transparent;--l-btn-disabled-border-color: transparent;--l-btn-hover-background: transparent;--l-btn-active-background: transparent;height:auto;padding:5px}.l-btn-primary.l-btn-text{--l-btn-text-color: var(--l-primary-color, #722ed1);--l-btn-hover-text-color: var(--l-primary-color-light1, #9254de);--l-btn-active-text-color: var(--l-primary-color-dark1, #531dab)}.l-btn-ghost{--l-btn-text-color: var(--l-btn-border-color);--l-btn-background: transparent;--l-btn-hover-background: transparent;--l-btn-active-background: transparent;--l-btn-hover-text-color: var(--l-btn-hover-border-color);--l-btn-active-text-color: var(--l-btn-active-border-color)}.l-btn-round{border-radius:calc(var(--l-form-edit-height, 32px) / 2)}.l-btn-circle{border-radius:50%;width:var(--l-form-edit-height, 32px);padding:0}.l-btn-block{width:100%}.l-btn:not(.l-btn-text)+.l-btn{margin-left:10px}html.dark .l-btn:disabled{--l-btn-disabled-background: rgba(255, 255, 255, .08);--l-btn-disabled-color: rgba(255, 255, 255, .3);--l-btn-disabled-border-color: rgba(255, 255, 255, .3)}";
|
|
2
|
-
export {
|
|
3
|
-
r as default
|
|
4
|
-
};
|
package/lib/index-BxlGVrX3.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const l = ':host{display:inline-flex}.l-form{display:grid;grid-template-columns:var(--l-form-label-width, auto) 1fr;row-gap:20px}.l-form-item{display:var(--l-form-item-display, contents);font-size:14px;grid-template-columns:1fr}.l-form-item__label{text-align:var(--l-form-label-align, right);display:inline-block;width:var(--l-form-label-width, auto);height:var(--l-form-edit-height, 32px);line-height:var(--l-form-edit-height, 32px);color:#606266;padding:0 10px 0 0}.l-form-item__label:empty{display:var(--l-form-label-empty-display, inline-block)}.l-form-item.is-required .l-form-item__label:before{content:"*";margin-right:4px;color:var(--l-warn-color, #f56c6c);vertical-align:middle}.l-form-item__content{flex:1;position:relative;display:flex;align-items:center}.l-form-item__error{font-size:12px;line-height:1;position:absolute;top:100%;left:0;color:var(--nt-error-color, #ed3f13);padding-top:3px}.l-form--left .l-form-item__label{text-align:left}.l-form--top{grid-template-columns:1fr}.l-form--top .l-form-item{display:grid;grid-template-columns:1fr}.l-form--top .l-form-item__label{text-align:left}.l-form--top .l-form-item__label:empty{display:none}.l-form-inline{display:flex;gap:20px;flex-flow:row wrap}.l-form.l-form-inline{--l-form-item-display: flex}.l-form.l-form--left,.l-form-item.l-form-item--left{--l-form-label-align: left}.l-form.l-form--top,.l-form-item.l-form-item--top{--l-form-item-display: grid;--l-form-label-align: left;--l-form-label-empty-display: none;grid-template-columns:1fr}';
|
|
2
|
-
export {
|
|
3
|
-
l as default
|
|
4
|
-
};
|
package/lib/index-C2D4YsFw.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const p = ".l-popover-popconfirm{min-width:200px}.l-popconfirm-container{display:flex;align-items:center}.l-popconfirm-icon-wrapper{margin-right:10px;display:inline-flex;color:var(--nt-warn-color, #f90)}.l-popconfirm-footer{display:flex;align-items:center;justify-content:flex-end;margin-top:7px;gap:5px}.l-popconfirm-footer l-button::part(default){height:24px;padding:0 6px;font-size:13px}";
|
|
2
|
-
export {
|
|
3
|
-
p as default
|
|
4
|
-
};
|
package/lib/index-C98Kx857.js
DELETED
package/lib/index-CCcVpk6U.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const r = ':host{display:flex;align-items:center}.l-radio{--l-radio-size: 16px;--l-radio-label-color: #333;--l-radio-disabled-color: #e6e6e6;--l-radio-disabled-label-color: var(--l-disabled-color, #c0c4cc);--l-radio-checked-color: var(--l-primary-color, #722ed1);--l-radio-item-margin: 10px;display:inline-flex;align-items:center;position:relative;cursor:pointer}.l-radio__label{transition:color .3s ease-in-out;margin-left:5px}.l-radio__input{position:absolute;z-index:-1;width:0;height:0;opacity:0}.l-radio__inner{display:flex;justify-content:center;align-items:center;width:var(--l-radio-size);height:var(--l-radio-size);border:1px solid #dcddd9;border-radius:50%;box-sizing:border-box;transition:border-color .3s ease-in-out}.l-radio__inner:before{content:"";display:block;width:60%;height:60%;background-color:transparent;border-radius:50%;transition:background-color .3s ease-in-out}.l-radio.is-checked .l-radio__inner{border-color:var(--l-primary-color, #722ed1)}.l-radio.is-checked .l-radio__inner:before{background-color:var(--l-primary-color, #722ed1)}.l-radio.is-checked .l-radio__label{color:var(--l-primary-color, #722ed1)}.l-radio--disabled{cursor:not-allowed}.l-radio--disabledd .l-radio__inner{border-color:var(--l-radio-disabled-color)}.l-radio--disabled .l-radio__label{color:var(--l-radio-disabled-label-color)}.l-radio:not(:first-child){margin-left:var(--l-radio-item-margin)}.l-radio--button .l-radio__label{display:inline-flex;height:var(--l-form-edit-height, 32px);justify-content:center;align-items:center;padding:0 15px;border:1px solid #c0c4cc;border-left-width:0;margin-left:0}.l-radio--button:not(:first-of-type){margin-left:0}.l-radio--button:first-of-type .l-radio__label{border-left-width:1px;border-top-left-radius:3px;border-bottom-left-radius:3px}.l-radio--button:last-of-type .l-radio__label{border-top-right-radius:3px;border-bottom-right-radius:3px}.is-checked.l-radio--button .l-radio__label{background-color:var(--l-radio-checked-color);color:#fff;border-color:var(--l-radio-checked-color)}';
|
|
2
|
-
export {
|
|
3
|
-
r as default
|
|
4
|
-
};
|
package/lib/index-CMz7GCCH.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const l = ".l-polygon{--l-polygen-size: 10px;--l-polygen-width: var(--l-polygen-size);--l-polygen-height: var(--l-polygen-size);--l-polygen-background: #666;display:inline-block;width:var(--l-polygen-width);height:var(--l-polygen-height);background:var(--l-polygen-background);transition:background .3s ease-in-out}.l-polygon-triangle-top{clip-path:polygon(calc(var(--l-polygen-width) / 2) 0,var(--l-polygen-width) var(--l-polygen-height),0 var(--l-polygen-height))}.l-polygon-triangle-top-left{clip-path:polygon(0 0,var(--l-polygen-width) 0,0 var(--l-polygen-height))}.l-polygon-triangle-top-right{clip-path:polygon(0 0,var(--l-polygen-width) 0,var(--l-polygen-width) var(--l-polygen-height))}.l-polygon-triangle-right{clip-path:polygon(0 0,var(--l-polygen-width) calc(var(--l-polygen-height) / 2),0 var(--l-polygen-height))}.l-polygon-triangle-left{clip-path:polygon(var(--l-polygen-width) 0,var(--l-polygen-width) var(--l-polygen-height),0 calc(var(--l-polygen-height) / 2))}.l-polygon-triangle-bottom{clip-path:polygon(0 0,var(--l-polygen-width) 0,calc(var(--l-polygen-width) / 2) var(--l-polygen-height))}.l-polygon-triangle-bottom-left{clip-path:polygon(0 0,0 var(--l-polygen-height),var(--l-polygen-width) var(--l-polygen-height))}.l-polygon-triangle-bottom-right{clip-path:polygon(var(--l-polygen-width) 0,var(--l-polygen-width) var(--l-polygen-height),0 var(--l-polygen-height))}";
|
|
2
|
-
export {
|
|
3
|
-
l as default
|
|
4
|
-
};
|
package/lib/index-D-Ikkdx0.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const t = ":host{display:block;overflow:auto;-webkit-overflow-scrolling:touch;height:100%;position:relative}.l-list-loadmore{padding:10px;display:flex;align-items:center;justify-content:center;color:#999}.l-list-icon{font-size:24px;margin-right:10px;transform:rotate3d(0,0,1,80deg)}";
|
|
2
|
-
export {
|
|
3
|
-
t as default
|
|
4
|
-
};
|
package/lib/index-DJ70Xyma.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const t = ":host{display:inline-flex}.l-theme-btn::part(default){--l-btn-background: transparent;--l-btn-hover-background: transparent;--l-btn-text-color: #9ca3af;--l-btn-hover-text-color: #666666;width:var(--l-form-edit-height, 32px);padding:0;font-size:18px}.l-theme-switch.l-switch--checked{background-color:#65757129;border-color:#3c3f44}.l-theme-switch.l-switch--checked::part(action){background-color:#000;color:#fff}html.dark .l-theme-btn{--l-btn-hover-text-color: #ffffff}";
|
|
2
|
-
export {
|
|
3
|
-
t as default
|
|
4
|
-
};
|
package/lib/index-DKvzJmsR.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const a = ":host{--l-tabbar-hover-color: var(--l-primary-color-light1, #9254de);--l-tabbar-active-color: var(--l-primary-color, #722ed1);--l-tabbar-item-gap: 0;--l-tabbar-height: 38px;position:relative;overflow:hidden;height:var(--l-tabbar-height);background-color:#fff;display:block}.l-tabbar-wrapper{display:flex;flex-wrap:nowrap;height:100%;align-items:stretch;gap:var(--l-tabbar-item-gap)}.l-tabbar-item{color:#666;transition:all .3s ease-in-out;cursor:pointer;display:inline-flex;justify-content:center;align-items:center}.l-tabbar-item:hover{color:var(--l-tabbar-hover-color)}.l-tabbar-item.active{color:var(--l-tabbar-active-color)}.l-tabbar-item-icon{font-size:18px;margin-bottom:5px;display:flex;justify-content:center;align-items:center}.l-tabbar-item-icon.only{font-size:24px;margin-bottom:0}:host(.l-tabbar--nav){--l-tabbar-height: 50px;width:100%}:host(.l-tabbar--nav) .l-tabbar-item{flex-grow:1;display:inline-flex;flex-direction:column;justify-content:center;align-items:center;font-size:12px;line-height:1}:host(.l-tabbar--bar){--l-tabbar-bar-vertical-padding: 10px;--l-tabbar-item-gap: 30px;--l-tabbar-line-color: var(--l-primary-color, #722ed1);overflow:auto;white-space:nowrap}.l-tabbar--bar-line{position:absolute;width:32px;left:0;bottom:0;border-radius:1px;height:2px;background-color:var(--l-tabbar-line-color);transition:all .3s ease-in-out}:host(.l-tabbar--card){--l-tabbar-card-border-color: #f5f7fa;--l-tabbar-line-color: #fff;--l-tabbar-item-gap: 0;--l-tabbar-card-border-radius: 5px}.l-tabbar-card-border{position:absolute;left:0;right:0;bottom:0;height:1px;background-color:var(--l-tabbar-card-border-color)}:host(.l-tabbar--card) .l-tabbar-item{padding:0 15px;background:#f5f7fa;border:1px solid #f0f0f0}:host(.l-tabbar--card) .l-tabbar-item:first-child{border-top-left-radius:var(--l-tabbar-card-border-radius)}:host(.l-tabbar--card) .l-tabbar-item:last-child{border-top-right-radius:var(--l-tabbar-card-border-radius)}:host(.l-tabbar-gap) .l-tabbar-item{border-top-left-radius:var(--l-tabbar-card-border-radius);border-top-right-radius:var(--l-tabbar-card-border-radius)}:host(.l-tabbar--card) .l-tabbar-item.active{background:#fff}";
|
|
2
|
-
export {
|
|
3
|
-
a as default
|
|
4
|
-
};
|
package/lib/index-oNjb_IVt.js
DELETED
package/lib/popconfirm/regist.js
DELETED
package/lib/popover/regist.d.ts
DELETED
package/lib/popover/regist.js
DELETED
package/lib/tabbar/regist.d.ts
DELETED