litos-ui 0.15.7 → 0.16.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/button/index.d.ts +4 -0
- package/lib/button/index.js +24 -16
- package/lib/check/check.js +6 -7
- package/lib/check/checkbox.js +1 -1
- package/lib/check/index.d.ts +2 -1
- package/lib/check/index.js +25 -12
- package/lib/check/radio.js +10 -6
- package/lib/check-C7YSuH60.js +4 -0
- package/lib/color_picker/index.js +1 -1
- package/lib/description_panel/index.js +4 -9
- package/lib/dialog/dialog_container.js +4 -6
- package/lib/form/form_inner.d.ts +3 -0
- package/lib/form/form_inner.js +28 -23
- package/lib/image/image_preview.js +3 -3
- package/lib/index-DvcllHRh.js +4 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +163 -164
- package/lib/input/index.d.ts +2 -1
- package/lib/input/index.js +37 -26
- package/lib/mask/index.js +1 -6
- package/lib/message/index.d.ts +11 -12
- package/lib/message/index.js +39 -40
- package/lib/modal/index.js +1 -1
- package/lib/select/index.js +1 -6
- package/lib/select_ori/index.js +1 -1
- package/lib/space/index.d.ts +8 -0
- package/lib/space/index.js +35 -0
- package/lib/tabbar/index.d.ts +3 -1
- package/lib/tabbar/index.js +13 -7
- package/lib/table/index.d.ts +27 -10
- package/lib/table/index.js +165 -96
- package/lib/table/types.d.ts +9 -1
- package/lib/tag/index.js +4 -1
- package/lib/utils/index.d.ts +0 -25
- package/lib/utils/index.js +40 -87
- package/lib/utils/popover.js +24 -17
- package/package.json +41 -40
- package/styles/container.css +1 -0
- package/styles/dark.css +13 -0
- package/styles/reset.css +3 -5
- package/styles/vars.css +10 -12
- package/lib/check-A86JxUfd.js +0 -4
- package/lib/index-D4II9KsF.js +0 -4
- package/lib/menu/base.js +0 -1
package/lib/utils/index.d.ts
CHANGED
|
@@ -28,34 +28,9 @@ export declare function initAttr(el: HTMLElement): void;
|
|
|
28
28
|
export declare function tagAttr(attr: string, value: string | undefined | boolean): string;
|
|
29
29
|
export declare function tagAttrs(attr: [string, string | undefined | boolean][]): string;
|
|
30
30
|
export declare function setAttrs(el: HTMLElement, attrs: [string, string | undefined | boolean][]): void;
|
|
31
|
-
/**
|
|
32
|
-
* 获取悬浮窗 y 偏移
|
|
33
|
-
* @param targetRect
|
|
34
|
-
* @param popoverRect
|
|
35
|
-
* @param mainAlign
|
|
36
|
-
* @param crossAlign
|
|
37
|
-
* @returns
|
|
38
|
-
*/
|
|
39
|
-
export declare function getPopoverOffsetY(targetRect: DOMRect, popoverRect: DomRectPos, mainAlign: string, crossAlign: string, offset?: number): number;
|
|
40
|
-
type DomRectPos = {
|
|
41
|
-
x: number;
|
|
42
|
-
y: number;
|
|
43
|
-
width: number;
|
|
44
|
-
height: number;
|
|
45
|
-
left: number;
|
|
46
|
-
top: number;
|
|
47
|
-
};
|
|
48
|
-
export declare function getPopoverOffsetX(targetRect: DOMRect, popoverRect: DomRectPos, mainAlign: string, crossAlign: string, offset?: number): number;
|
|
49
|
-
export declare function impactDetect(targetRect: DOMRect, popoverRect: DomRectPos, mainAlign: string, crossAlign: string, scrollLeft: number, scrollTop: number, leftDiff: number, topDiff: number, offset?: number, position?: string): {
|
|
50
|
-
x: number;
|
|
51
|
-
y: number;
|
|
52
|
-
mainAlign: string;
|
|
53
|
-
crossAlign: string;
|
|
54
|
-
};
|
|
55
31
|
/**
|
|
56
32
|
* 短横线命名(kebab-case) 转换为 驼峰命名(camelCase
|
|
57
33
|
* @param attr 待转换的属性名
|
|
58
34
|
* @returns
|
|
59
35
|
*/
|
|
60
36
|
export declare function kebabToCamel(attr: string): string;
|
|
61
|
-
export {};
|
package/lib/utils/index.js
CHANGED
|
@@ -1,107 +1,60 @@
|
|
|
1
|
-
import { isBlank as
|
|
2
|
-
let
|
|
3
|
-
function
|
|
4
|
-
const
|
|
5
|
-
for (const
|
|
6
|
-
const
|
|
7
|
-
customElements.get(
|
|
1
|
+
import { isBlank as u } from "ph-utils";
|
|
2
|
+
let m = -1;
|
|
3
|
+
function b(t, e) {
|
|
4
|
+
const s = Array.isArray(t) ? t : [t];
|
|
5
|
+
for (const n of s) {
|
|
6
|
+
const r = e || `l-${n.baseName}`;
|
|
7
|
+
customElements.get(r) || customElements.define(r, n);
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
return `l-${++
|
|
10
|
+
function y() {
|
|
11
|
+
return `l-${++m}`;
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
if (t == null) return
|
|
15
|
-
switch (typeof
|
|
13
|
+
function l(t, e, s) {
|
|
14
|
+
if (t == null) return e;
|
|
15
|
+
switch (typeof e) {
|
|
16
16
|
case "boolean":
|
|
17
|
-
return ["", "true", "1", "on",
|
|
17
|
+
return ["", "true", "1", "on", s].includes(t);
|
|
18
18
|
case "number":
|
|
19
19
|
return Number(t);
|
|
20
20
|
default:
|
|
21
21
|
return t;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
function
|
|
25
|
-
const
|
|
26
|
-
for (const
|
|
27
|
-
const { name:
|
|
28
|
-
if (
|
|
24
|
+
function $(t) {
|
|
25
|
+
const e = t.attributes;
|
|
26
|
+
for (const s of e) {
|
|
27
|
+
const { name: n, value: r } = s;
|
|
28
|
+
if (n.startsWith("data-") || n.startsWith("aria-") || n.startsWith("_") || n.startsWith("$") || ["id", "class", "style"].includes(n))
|
|
29
29
|
continue;
|
|
30
|
-
const
|
|
31
|
-
(t._ignoreInitAttrs || []).includes(
|
|
30
|
+
const i = n.split("-").map((c, f) => f === 0 ? c : c[0].toUpperCase() + c.slice(1)).join(""), o = l(r, t[i], n), a = Object.getOwnPropertyNames(t);
|
|
31
|
+
(t._ignoreInitAttrs || []).includes(i) || (n === "value" ? (t[i] = o, t._resetValue = o) : (a.includes(i) || a.includes(`_${i}`)) && (t[i] = o));
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
let
|
|
36
|
-
return
|
|
34
|
+
function p(t, e) {
|
|
35
|
+
let s = "";
|
|
36
|
+
return e === !0 ? s = ` ${t}` : typeof e == "string" && !u(e) && (s = ` ${t}="${e}"`), s;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
const
|
|
40
|
-
return
|
|
38
|
+
function h(t) {
|
|
39
|
+
const e = t.map((s) => p(s[0], s[1]));
|
|
40
|
+
return e.length > 0 ? ` ${e.join("")}` : "";
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
for (const
|
|
44
|
-
const
|
|
45
|
-
|
|
42
|
+
function I(t, e) {
|
|
43
|
+
for (const s of e) {
|
|
44
|
+
const n = s[1], r = s[0];
|
|
45
|
+
n === !0 ? t.setAttribute(r, "") : typeof n == "string" && !u(n) && t.setAttribute(r, n);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
|
|
50
|
-
return e === "top" ? n = r.height + i : e === "bottom" ? n = -(t.height + i) : (e === "left" || e === "right") && (s === "" ? n = r.height / 2 - t.height / 2 : s === "end" && (n = r.height - t.height)), n;
|
|
51
|
-
}
|
|
52
|
-
function a(t, r, e, s, i = 10) {
|
|
53
|
-
let n = 0;
|
|
54
|
-
return e === "left" ? n = r.width + i : e === "right" ? n = -(t.width + i) : (e === "top" || e === "bottom") && (s === "" ? n = r.width / 2 - t.width / 2 : s === "end" && (n = r.width - t.width)), n;
|
|
55
|
-
}
|
|
56
|
-
function P(t, r, e, s, i, n, u, h, f = 10, y = "absolute") {
|
|
57
|
-
const o = window.innerHeight + n - 10, w = window.innerWidth + i - 10;
|
|
58
|
-
let d = t.top + n - h;
|
|
59
|
-
d + r.height > o && (e === "left" || e === "right" ? s = "end" : e = "top", h = c(
|
|
60
|
-
t,
|
|
61
|
-
r,
|
|
62
|
-
e,
|
|
63
|
-
s,
|
|
64
|
-
f
|
|
65
|
-
), d = t.top + n - h), d < n && (e === "left" || e === "right" ? s = "start" : e = "bottom");
|
|
66
|
-
let b = t.left + i - u;
|
|
67
|
-
return b + r.width > w && (e === "top" || e === "bottom" ? s = "end" : e = "left", u = a(
|
|
68
|
-
t,
|
|
69
|
-
r,
|
|
70
|
-
e,
|
|
71
|
-
s,
|
|
72
|
-
f
|
|
73
|
-
), b = t.left + i - u), b < i && (e === "top" || e === "bottom" ? s = "start" : e = "right"), y === "fixed" && (h = c(
|
|
74
|
-
t,
|
|
75
|
-
r,
|
|
76
|
-
e,
|
|
77
|
-
s,
|
|
78
|
-
f
|
|
79
|
-
), u = a(
|
|
80
|
-
t,
|
|
81
|
-
r,
|
|
82
|
-
e,
|
|
83
|
-
s,
|
|
84
|
-
f
|
|
85
|
-
), b = t.left + i - u, d = t.top + n - h), {
|
|
86
|
-
x: b,
|
|
87
|
-
y: d,
|
|
88
|
-
mainAlign: e,
|
|
89
|
-
crossAlign: s
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
function p(t) {
|
|
93
|
-
return t.replace(/-(\w)/g, (r, e) => e.toUpperCase());
|
|
48
|
+
function N(t) {
|
|
49
|
+
return t.replace(/-(\w)/g, (e, s) => s.toUpperCase());
|
|
94
50
|
}
|
|
95
51
|
export {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
E as tagAttr,
|
|
105
|
-
k as tagAttrs,
|
|
106
|
-
_ as useId
|
|
52
|
+
$ as initAttr,
|
|
53
|
+
N as kebabToCamel,
|
|
54
|
+
l as parseAttrValue,
|
|
55
|
+
b as regist,
|
|
56
|
+
I as setAttrs,
|
|
57
|
+
p as tagAttr,
|
|
58
|
+
h as tagAttrs,
|
|
59
|
+
y as useId
|
|
107
60
|
};
|
package/lib/utils/popover.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $one as T, $ as y, iterate as $, on as d, off as a, shouldEventNext as
|
|
1
|
+
import { $one as T, $ as y, iterate as $, on as d, off as a, shouldEventNext as P, $$ as w } from "ph-utils/dom";
|
|
2
2
|
function E(s, t, e, o, n = 10, r = "x") {
|
|
3
3
|
const i = r === "x" ? "width" : "height";
|
|
4
4
|
let p = ["left", "right", "top", "bottom"];
|
|
@@ -50,13 +50,13 @@ function O(s, t, e, o, n = 10) {
|
|
|
50
50
|
n,
|
|
51
51
|
"x"
|
|
52
52
|
), m = s.left + i - u, f = s.top + p - c;
|
|
53
|
-
const
|
|
53
|
+
const g = `${e}${o === "" ? "" : "-" + o}`;
|
|
54
54
|
return {
|
|
55
55
|
x: m,
|
|
56
56
|
y: f,
|
|
57
57
|
mainAlign: e,
|
|
58
58
|
crossAlign: o,
|
|
59
|
-
placement:
|
|
59
|
+
placement: g
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
62
|
function M(s, t, e, o) {
|
|
@@ -202,9 +202,9 @@ class z {
|
|
|
202
202
|
this._clearHideTimer(), this.$reference != e && this.show(e);
|
|
203
203
|
};
|
|
204
204
|
_onMouseLeave = () => {
|
|
205
|
-
this._clearHideTimer(), this._hideTimer = setTimeout(() => {
|
|
205
|
+
this._clearHideTimer(), this.options.trigger === "hover" && (this._hideTimer = setTimeout(() => {
|
|
206
206
|
this.hide();
|
|
207
|
-
}, 50);
|
|
207
|
+
}, 50));
|
|
208
208
|
};
|
|
209
209
|
_onRefTap = (t) => {
|
|
210
210
|
this._destroyUpdater();
|
|
@@ -224,17 +224,24 @@ class z {
|
|
|
224
224
|
show(t) {
|
|
225
225
|
const e = t.dataset;
|
|
226
226
|
let o = e.disabled;
|
|
227
|
-
if (o == null && (o = this.options.disabled), !o
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
offset
|
|
236
|
-
|
|
237
|
-
|
|
227
|
+
if (o == null && (o = this.options.disabled), !o) {
|
|
228
|
+
if (this.$reference) {
|
|
229
|
+
if (this.$reference === t)
|
|
230
|
+
return;
|
|
231
|
+
this.hide();
|
|
232
|
+
}
|
|
233
|
+
if (this.$reference = t, this.popoverElement || (this._renderPopover(), this._bindPopoverEvents()), this.popoverElement) {
|
|
234
|
+
this.options.updateContent && this.options.updateContent(this.popoverElement, e), this._destroyUpdater();
|
|
235
|
+
const n = e.placement || this.options.placement || "top", r = Number(e.offset || this.options.offset || 10), i = e.popoverWidth || this.options.popoverWidth;
|
|
236
|
+
this.popoverElement.style.display = "block";
|
|
237
|
+
let p;
|
|
238
|
+
i && (i !== "trigger" ? p = Number(i) : p = i), this.updater = L(this.$reference, this.popoverElement, {
|
|
239
|
+
placement: n,
|
|
240
|
+
popoverWidth: p,
|
|
241
|
+
offset: r,
|
|
242
|
+
arrowSize: this.options.arrowSize
|
|
243
|
+
}), this.options.onOpenChange && this.options.onOpenChange(!0);
|
|
244
|
+
}
|
|
238
245
|
}
|
|
239
246
|
}
|
|
240
247
|
isShow() {
|
|
@@ -261,7 +268,7 @@ class z {
|
|
|
261
268
|
return;
|
|
262
269
|
}
|
|
263
270
|
if (this.popoverElement && (this.popoverElement.contains(e) || this.popoverElement == e)) {
|
|
264
|
-
const [o, n, r] =
|
|
271
|
+
const [o, n, r] = P(
|
|
265
272
|
t,
|
|
266
273
|
"data-action",
|
|
267
274
|
this.popoverElement
|
package/package.json
CHANGED
|
@@ -1,62 +1,41 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "litos-ui",
|
|
3
|
+
"version": "0.16.0",
|
|
3
4
|
"description": "基于 Web Component 的 UI 组件库",
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"vite-plugin-dts": "^4.5.4",
|
|
19
|
-
"vitepress": "^1.6.4"
|
|
5
|
+
"keywords": [
|
|
6
|
+
"component library",
|
|
7
|
+
"litos-ui",
|
|
8
|
+
"ui framework",
|
|
9
|
+
"web component"
|
|
10
|
+
],
|
|
11
|
+
"homepage": "https://dvshu.github.io/litos-ui/",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/DvShu/litos-ui/issues"
|
|
14
|
+
},
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/DvShu/litos-ui.git"
|
|
20
19
|
},
|
|
21
20
|
"files": [
|
|
22
21
|
"lib",
|
|
23
22
|
"styles"
|
|
24
23
|
],
|
|
24
|
+
"type": "module",
|
|
25
25
|
"main": "./lib/index.js",
|
|
26
26
|
"module": "./lib/index.js",
|
|
27
27
|
"types": "./lib/index.d.ts",
|
|
28
|
-
"jsdelivr": "./lib/litos-ui.min.js",
|
|
29
28
|
"unpkg": "./lib/litos-ui.min.js",
|
|
29
|
+
"jsdelivr": "./lib/litos-ui.min.js",
|
|
30
30
|
"exports": {
|
|
31
31
|
"./styles/*": "./styles/*",
|
|
32
32
|
"./lib/*": "./lib/*",
|
|
33
33
|
".": {
|
|
34
|
-
"import": "./lib/index.js",
|
|
35
34
|
"types": "./lib/index.d.ts",
|
|
35
|
+
"import": "./lib/index.js",
|
|
36
36
|
"require": "./lib/index.js"
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
|
-
"repository": {
|
|
40
|
-
"type": "git",
|
|
41
|
-
"url": "git+https://github.com/DvShu/litos-ui.git"
|
|
42
|
-
},
|
|
43
|
-
"keywords": [
|
|
44
|
-
"litos-ui",
|
|
45
|
-
"web component",
|
|
46
|
-
"ui framework",
|
|
47
|
-
"component library"
|
|
48
|
-
],
|
|
49
|
-
"homepage": "https://dvshu.github.io/litos-ui/",
|
|
50
|
-
"bugs": {
|
|
51
|
-
"url": "https://github.com/DvShu/litos-ui/issues"
|
|
52
|
-
},
|
|
53
|
-
"license": "MIT",
|
|
54
|
-
"dependencies": {
|
|
55
|
-
"iconify-icon": "^3.0.0",
|
|
56
|
-
"ph-utils": "^0.16.2",
|
|
57
|
-
"qrcode-generator-es": "^1.1.4",
|
|
58
|
-
"shiki": "^3.12.0"
|
|
59
|
-
},
|
|
60
39
|
"scripts": {
|
|
61
40
|
"dev": "vite dev",
|
|
62
41
|
"build": "vite build",
|
|
@@ -67,5 +46,27 @@
|
|
|
67
46
|
"create": "node scripts/index.js create",
|
|
68
47
|
"dts:build": "tsc -p tsconfig.build.json && node scripts/dts.js",
|
|
69
48
|
"lib:build": "pnpm build && pnpm dts:build"
|
|
49
|
+
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"iconify-icon": "^3.0.2",
|
|
52
|
+
"ph-utils": "^0.16.5",
|
|
53
|
+
"qrcode-generator-es": "^2.1.2",
|
|
54
|
+
"shiki": "^3.21.0"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@eslint/js": "^9.39.2",
|
|
58
|
+
"@eslint/markdown": "^7.5.1",
|
|
59
|
+
"@types/node": "^25.0.8",
|
|
60
|
+
"eslint": "^9.39.2",
|
|
61
|
+
"globals": "^17.0.0",
|
|
62
|
+
"less": "^4.5.1",
|
|
63
|
+
"lightningcss": "^1.30.2",
|
|
64
|
+
"oxfmt": "^0.24.0",
|
|
65
|
+
"oxlint": "^1.39.0",
|
|
66
|
+
"typescript": "^5.9.3",
|
|
67
|
+
"typescript-eslint": "^8.53.0",
|
|
68
|
+
"vite": "^7.3.1",
|
|
69
|
+
"vite-plugin-dts": "^4.5.4",
|
|
70
|
+
"vitepress": "^1.6.4"
|
|
70
71
|
}
|
|
71
|
-
}
|
|
72
|
+
}
|
package/styles/container.css
CHANGED
package/styles/dark.css
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
:root.dark {
|
|
2
|
+
--l-disabled-color: #6c6c6c;
|
|
3
|
+
/* 表格配置 */
|
|
4
|
+
--l-table-border-color: #444444;
|
|
5
|
+
--l-table-th-bg: #2d2d2d;
|
|
6
|
+
--l-table-th-color: #e0e0e0;
|
|
7
|
+
--l-table-td-bg: #1e1e1e;
|
|
8
|
+
--l-table-td-color: #e0e0e0;
|
|
9
|
+
--l-table-row-hover-bg: #333333;
|
|
10
|
+
--l-table-empty-color: #888888;
|
|
11
|
+
--l-table-stripe-bg: #252525;
|
|
12
|
+
--l-table-sort-inactive-color: #777777;
|
|
13
|
+
}
|
package/styles/reset.css
CHANGED
package/styles/vars.css
CHANGED
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
--l-form-control-height: 32px;
|
|
4
4
|
/** 禁用状态颜色 */
|
|
5
5
|
--l-disabled-color: #e6e6e6;
|
|
6
|
-
/* 主题(primary)颜色 */
|
|
7
|
-
--l-primary-color: #
|
|
8
|
-
--l-primary-color-light1: #
|
|
9
|
-
--l-primary-color-light2: #
|
|
10
|
-
--l-primary-color-light3: #
|
|
11
|
-
--l-primary-color-light4: #
|
|
12
|
-
--l-primary-color-light5: #
|
|
13
|
-
--l-primary-color-dark1: #
|
|
14
|
-
--l-primary-color-dark2: #
|
|
6
|
+
/* 主题(primary)颜色 - 明亮蓝系列 */
|
|
7
|
+
--l-primary-color: #007bff; /* 主色调:明亮蓝 */
|
|
8
|
+
--l-primary-color-light1: #3399ff; /* 浅 1 */
|
|
9
|
+
--l-primary-color-light2: #66b3ff; /* 浅 2 */
|
|
10
|
+
--l-primary-color-light3: #99ccff; /* 浅 3 */
|
|
11
|
+
--l-primary-color-light4: #cce6ff; /* 浅 4 */
|
|
12
|
+
--l-primary-color-light5: #e6f2ff; /* 浅 5 (极浅) */
|
|
13
|
+
--l-primary-color-dark1: #0066cc; /* 深 1 */
|
|
14
|
+
--l-primary-color-dark2: #004c99; /* 深 2 */
|
|
15
15
|
/* 表示错误(error)的颜色 */
|
|
16
16
|
--l-error-color: #f5222d;
|
|
17
17
|
--l-error-color-light3: #ffa39e;
|
|
@@ -33,6 +33,4 @@
|
|
|
33
33
|
--l-border-color: #dedede;
|
|
34
34
|
--l-border-radius: 3px;
|
|
35
35
|
}
|
|
36
|
-
|
|
37
|
-
--l-disabled-color: #262727;
|
|
38
|
-
}
|
|
36
|
+
|
package/lib/check-A86JxUfd.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const r = ":host{--l-check-size: 16px;display:inline-flex;align-items:center;position:relative;cursor:pointer;width:auto;transition:color .3s,border-color .3s,background-color .3s}:host(:not(:first-child)){margin-left:15px}.l-check__input{margin:0;position:absolute;z-index:-1;width:0;height:0;opacity:0}.l-check__inner{width:var(--l-check-size);height:var(--l-check-size);display:flex;justify-content:center;align-items:center;border-radius:3px;border:1px solid #dcddd9;box-sizing:border-box;transition:border-color .3s ease-in-out;position:relative;margin-right:5px}.l-check__label{transition:color .3s;cursor:inherit;line-height:1}:host(.is-checked){color:var(--l-primary-color, #722ed1)}:host(.is-checked) .l-check__inner{border-color:var(--l-primary-color, #722ed1)}:host(.is-disabled){cursor:not-allowed}:host(.is-disabled) .l-check__label{color:var(--l-disabled-color, #e6e6e6)}:host([button]){height:var(--l-form-control-height, 32px);justify-content:center;padding:0 15px;border:1px solid #c0c4cc;border-left-width:0;margin-left:0;border-radius:inherit}:host([button]:first-child){border-left-width:1px;border-top-left-radius:3px;border-bottom-left-radius:3px}:host([button]:last-child){border-top-right-radius:3px;border-bottom-right-radius:3px}:host([button].is-checked){background-color:var(--l-primary-color, #722ed1);color:#fff;border-color:var(--l-primary-color, #722ed1);border-right-color:#fff}:host([button].is-checked:last-child){border-right-color:var(--l-primary-color, #722ed1)}";
|
|
2
|
-
export {
|
|
3
|
-
r as c
|
|
4
|
-
};
|
package/lib/index-D4II9KsF.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const r = ":host{--l-input-border-color: var(--l-border-color, #dedede);display:inline-flex;width:var(--l-input-width, 170px);height:var(--l-form-control-height, 32px);align-items:center;padding:0 7px;border:1px solid var(--l-input-border-color, #dedede);transition:border-color .3s;border-radius:var(--l-border-radius, 3px);vertical-align:middle;box-sizing:border-box}:host(:focus){--l-input-border-color: var(--l-primary-color, #722ed1)}:host(.is-disabled){background-color:var(--l-disabled-color, #f5f7fa)}:host(.is-error){--l-input-border-color: #ed3f13}.l-input__prefix,.l-input__suffix{color:#a8abb2;font-size:14px;display:inline-flex;flex-shrink:0}.l-input__prefix{margin-right:5px}.l-input__suffix{margin-left:5px}.l-clearable{cursor:pointer}.l-clearable:hover{color:#999}.l-input__inner{outline:none;border:none;box-sizing:border-box;width:100%;max-width:100%;height:100%;flex-grow:1;text-align:inherit;font-size:inherit}.l-input__inner:disabled{background-color:transparent}";
|
|
2
|
-
export {
|
|
3
|
-
r as i
|
|
4
|
-
};
|
package/lib/menu/base.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|