litos-ui 0.7.0 → 0.8.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.
Files changed (57) hide show
  1. package/lib/{animation-QfX4RtqD.js → animation-DttknHkX.js} +2 -2
  2. package/lib/base.d.ts +1 -3
  3. package/lib/base.js +12 -40
  4. package/lib/button/index.js +49 -49
  5. package/lib/color_picker/index.js +6 -4
  6. package/lib/form/form_item.d.ts +1 -1
  7. package/lib/form/form_item.js +26 -25
  8. package/lib/form/index.d.ts +1 -1
  9. package/lib/form/index.js +42 -41
  10. package/lib/icon/base.js +19 -18
  11. package/lib/{index-B_9rPBWp.js → index-391POYEJ.js} +1 -1
  12. package/lib/index.d.ts +2 -10
  13. package/lib/index.js +62 -70
  14. package/lib/input/index.d.ts +1 -1
  15. package/lib/input/index.js +16 -15
  16. package/lib/list/index.d.ts +1 -1
  17. package/lib/list/index.js +13 -13
  18. package/lib/litos-ui.css +1 -1
  19. package/lib/litos-ui.min.js +1 -1
  20. package/lib/message/index.js +35 -33
  21. package/lib/polygon/index.d.ts +1 -1
  22. package/lib/polygon/index.js +17 -16
  23. package/lib/popconfirm/index.js +11 -14
  24. package/lib/popover/index.js +98 -97
  25. package/lib/radio/index.d.ts +2 -2
  26. package/lib/radio/index.js +69 -68
  27. package/lib/select_ori/index.d.ts +1 -1
  28. package/lib/select_ori/index.js +8 -8
  29. package/lib/switch/index.js +42 -41
  30. package/lib/tabbar/index.js +93 -92
  31. package/lib/theme/index.js +39 -39
  32. package/lib/utils/index.js +48 -51
  33. package/lib/utils/transition.js +9 -15
  34. package/package.json +4 -1
  35. package/lib/browser.d.ts +0 -17
  36. package/lib/button/regist.d.ts +0 -2
  37. package/lib/button/regist.js +0 -7
  38. package/lib/form/types.js +0 -1
  39. package/lib/index-116dRdDj.js +0 -4
  40. package/lib/index-BUyxD_nH.js +0 -4
  41. package/lib/index-BeOxuMd4.js +0 -4
  42. package/lib/index-Bl8lRTJd.js +0 -4
  43. package/lib/index-BxlGVrX3.js +0 -4
  44. package/lib/index-C2D4YsFw.js +0 -4
  45. package/lib/index-C98Kx857.js +0 -4
  46. package/lib/index-CCcVpk6U.js +0 -4
  47. package/lib/index-CMz7GCCH.js +0 -4
  48. package/lib/index-D-Ikkdx0.js +0 -4
  49. package/lib/index-DJ70Xyma.js +0 -4
  50. package/lib/index-DKvzJmsR.js +0 -4
  51. package/lib/index-oNjb_IVt.js +0 -4
  52. package/lib/popconfirm/regist.d.ts +0 -2
  53. package/lib/popconfirm/regist.js +0 -7
  54. package/lib/popover/regist.d.ts +0 -2
  55. package/lib/popover/regist.js +0 -7
  56. package/lib/tabbar/regist.d.ts +0 -2
  57. package/lib/tabbar/regist.js +0 -7
@@ -1,21 +1,21 @@
1
- import { isBlank as $ } from "ph-utils";
2
- import { iterate as N, transition as c, $ as p } from "ph-utils/dom";
3
- let E = -1, b = {
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 P(t) {
8
- b = { ...b, ...t };
7
+ function H(t) {
8
+ y = { ...y, ...t };
9
9
  }
10
- function k(t, r) {
10
+ function _(t, r) {
11
11
  const e = Array.isArray(t) ? t : [t];
12
12
  for (const i of e) {
13
- const n = r || `${b.prefix}-${i.baseName}`;
13
+ const n = r || `${y.prefix}-${i.baseName}`;
14
14
  customElements.get(n) || customElements.define(n, i);
15
15
  }
16
16
  }
17
- function V() {
18
- return `${b.prefix}-${++E}`;
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 _(t) {
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 f = i.split("-").map((s, u) => u === 0 ? s : s[0].toUpperCase() + s.slice(1)).join("");
38
- if (Object.hasOwn(t, f)) {
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 O(t, r) {
41
+ function I(t, r) {
45
42
  let e = " ";
46
- return r === !0 ? e = ` ${t}` : typeof r == "string" && !$(r) && (e = ` ${t}="${r}"`), e;
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) => O(e[0], e[1])).join("");
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" && !$(i) && t.setAttribute(n, i);
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 = (f) => {
63
- for (let s of f)
64
- if (s.type === "attributes" && s.attributeName) {
65
- const u = s.target, y = u.getAttribute(s.attributeName) || "show", a = u.getAttribute("l-transition") || "l", w = u.getAttribute("l-transition-method") || "hide";
66
- y === "show" ? (u.style.removeProperty("display"), c(u, a, "enter")) : c(u, a, "leave", () => {
67
- w === "remove" ? u.remove() : u.style.display = "none";
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(f) {
72
- f && f.length > 0 && (t == null && (t = new MutationObserver(e)), N(f, (s) => {
73
- const u = s.getAttribute("l-transition");
74
- u && (c(s, u, "enter"), t.observe(s, r));
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(f) {
78
- f == null && (f = p("[l-transition]"), i(f));
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 m(t, r, e, i, n = 10) {
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, f, s, u = 10, y = "absolute") {
94
- const a = window.innerHeight + o - 10, w = window.innerWidth + n - 10;
95
- let h = t.top + o - s;
96
- h + r.height > a && (e === "left" || e === "right" ? i = "end" : e = "top", s = m(
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
- ), h = t.top + o - s), h < o && (e === "left" || e === "right" ? i = "start" : e = "bottom");
103
- let d = t.left + n - f;
104
- return d + r.width > w && (e === "top" || e === "bottom" ? i = "end" : e = "left", f = x(
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
- ), d = t.left + n - f), d < n && (e === "top" || e === "bottom" ? i = "start" : e = "right"), y === "fixed" && (s = m(
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
- ), f = x(
113
+ ), s = x(
117
114
  t,
118
115
  r,
119
116
  e,
120
117
  i,
121
118
  u
122
- ), d = t.left + n - f, h = t.top + o - s), {
123
- x: d,
124
- y: h,
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
- P as config,
127
+ H as config,
131
128
  M as createTransition,
132
129
  x as getPopoverOffsetX,
133
- m as getPopoverOffsetY,
130
+ w as getPopoverOffsetY,
134
131
  U as impactDetect,
135
- _ as initAttr,
132
+ V as initAttr,
136
133
  W as parseAttrValue,
137
- k as regist,
134
+ _ as regist,
138
135
  F as setAttrs,
139
- O as tagAttr,
136
+ I as tagAttr,
140
137
  B as tagAttrs,
141
- V as useId
138
+ k as useId
142
139
  };
@@ -1,27 +1,21 @@
1
1
  var c = Object.defineProperty;
2
- var p = (s, e, t) => e in s ? c(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
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";
2
+ var d = (s, e, t) => e in s ? c(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
3
+ var o = (s, e, t) => d(s, typeof e != "symbol" ? e + "" : e, t);
4
+ import { initAttr as p } from "./index.js";
5
+ import u from "../base.js";
6
6
  import "../message/index.js";
7
7
  import { transition as n } from "ph-utils/dom";
8
8
  import "ph-utils";
9
9
  import "ph-utils/validator";
10
- import "../button/index.js";
11
- import "../list/index.js";
10
+ import "ph-utils/color";
12
11
  import "ph-utils/theme";
13
- import "../button/regist.js";
14
- import "../tabbar/regist.js";
15
- import "../popover/regist.js";
16
- import "../popconfirm/index.js";
17
- import "../popconfirm/regist.js";
18
- class u extends d {
12
+ class m extends u {
19
13
  constructor() {
20
14
  super();
21
15
  /** 应用过滤动画的属性值, 例如: opacity: 0; transform: xx; */
22
16
  o(this, "sheetRec");
23
17
  o(this, "duration", "0.3s");
24
- m(this), this.sheetRec = this._parseSheets(this.getAttr("sheets", "opacity: 0"));
18
+ p(this), this.sheetRec = this._parseSheets(this.getAttr("sheets", "opacity: 0"));
25
19
  }
26
20
  static get observedAttributes() {
27
21
  return ["sheets"];
@@ -57,7 +51,7 @@ class u extends d {
57
51
  return t != null && t.assignedNodes().length > 0 ? t.assignedNodes()[0] : null;
58
52
  }
59
53
  }
60
- o(u, "baseName", "transition");
54
+ o(m, "baseName", "transition");
61
55
  export {
62
- u as Transition
56
+ m as Transition
63
57
  };
package/package.json CHANGED
@@ -1,9 +1,11 @@
1
1
  {
2
2
  "name": "litos-ui",
3
3
  "description": "基于 Web Component 的 UI 组件库",
4
- "version": "0.7.0",
4
+ "version": "0.8.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";
@@ -1,2 +0,0 @@
1
- declare const _default: {};
2
- export default _default;
@@ -1,7 +0,0 @@
1
- import { regist as t } from "../utils/index.js";
2
- import r from "./index.js";
3
- t(r);
4
- const e = {};
5
- export {
6
- e as default
7
- };
package/lib/form/types.js DELETED
@@ -1 +0,0 @@
1
-
@@ -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
- };
@@ -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
- };
@@ -1,4 +0,0 @@
1
- const t = ":host{--l-input-width: 60px}";
2
- export {
3
- t as default
4
- };
@@ -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
- };
@@ -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
- };
@@ -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
- };
@@ -1,4 +0,0 @@
1
- const e = ":host{display:inline-flex}";
2
- export {
3
- e as default
4
- };
@@ -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
- };
@@ -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
- };
@@ -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
- };
@@ -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
- };
@@ -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
- };
@@ -1,4 +0,0 @@
1
- const i = ":host{display:inline-flex}.l-icon{width:1em;height:1em;fill:currentColor;vertical-align:middle;display:inline-block}";
2
- export {
3
- i as default
4
- };
@@ -1,2 +0,0 @@
1
- declare const _default: {};
2
- export default _default;
@@ -1,7 +0,0 @@
1
- import { regist as r } from "../utils/index.js";
2
- import o from "./index.js";
3
- r(o);
4
- const s = {};
5
- export {
6
- s as default
7
- };
@@ -1,2 +0,0 @@
1
- declare const _default: {};
2
- export default _default;
@@ -1,7 +0,0 @@
1
- import { regist as r } from "../utils/index.js";
2
- import o from "./index.js";
3
- r(o);
4
- const s = {};
5
- export {
6
- s as default
7
- };
@@ -1,2 +0,0 @@
1
- declare const _default: {};
2
- export default _default;
@@ -1,7 +0,0 @@
1
- import { regist as r } from "../utils/index.js";
2
- import t from "./index.js";
3
- r(t);
4
- const a = {};
5
- export {
6
- a as default
7
- };