litos-ui 0.15.8 → 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/package.json CHANGED
@@ -1,71 +1,72 @@
1
- {
2
- "name": "litos-ui",
3
- "description": "基于 Web Component 的 UI 组件库",
4
- "version": "0.15.8",
5
- "type": "module",
6
- "scripts": {
7
- "dev": "vite dev",
8
- "build": "vite build",
9
- "docs:dev": "vitepress dev docs --force --host 0.0.0.0",
10
- "docs:build": "vitepress build docs",
11
- "docs:preview": "vitepress preview docs",
12
- "inspect:eslint": "eslint --inspect-config",
13
- "create": "node scripts/index.js create",
14
- "dts:build": "tsc -p tsconfig.build.json && node scripts/dts.js",
15
- "lib:build": "pnpm build && pnpm dts:build"
16
- },
17
- "devDependencies": {
18
- "@eslint/js": "^9.34.0",
19
- "@eslint/markdown": "^7.2.0",
20
- "@types/node": "^24.3.0",
21
- "eslint": "^9.34.0",
22
- "globals": "^16.3.0",
23
- "less": "^4.4.1",
24
- "lightningcss": "^1.30.1",
25
- "prettier": "^3.6.2",
26
- "typescript": "^5.9.2",
27
- "typescript-eslint": "^8.41.0",
28
- "vite": "^7.1.3",
29
- "vite-plugin-dts": "^4.5.4",
30
- "vitepress": "^1.6.4"
31
- },
32
- "files": [
33
- "lib",
34
- "styles"
35
- ],
36
- "main": "./lib/index.js",
37
- "module": "./lib/index.js",
38
- "types": "./lib/index.d.ts",
39
- "jsdelivr": "./lib/litos-ui.min.js",
40
- "unpkg": "./lib/litos-ui.min.js",
41
- "exports": {
42
- "./styles/*": "./styles/*",
43
- "./lib/*": "./lib/*",
44
- ".": {
45
- "import": "./lib/index.js",
46
- "types": "./lib/index.d.ts",
47
- "require": "./lib/index.js"
48
- }
49
- },
50
- "repository": {
51
- "type": "git",
52
- "url": "git+https://github.com/DvShu/litos-ui.git"
53
- },
54
- "keywords": [
55
- "litos-ui",
56
- "web component",
57
- "ui framework",
58
- "component library"
59
- ],
60
- "homepage": "https://dvshu.github.io/litos-ui/",
61
- "bugs": {
62
- "url": "https://github.com/DvShu/litos-ui/issues"
63
- },
64
- "license": "MIT",
65
- "dependencies": {
66
- "iconify-icon": "^3.0.0",
67
- "ph-utils": "^0.16.2",
68
- "qrcode-generator-es": "^1.1.4",
69
- "shiki": "^3.12.0"
70
- }
71
- }
1
+ {
2
+ "name": "litos-ui",
3
+ "version": "0.16.0",
4
+ "description": "基于 Web Component 的 UI 组件库",
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"
19
+ },
20
+ "files": [
21
+ "lib",
22
+ "styles"
23
+ ],
24
+ "type": "module",
25
+ "main": "./lib/index.js",
26
+ "module": "./lib/index.js",
27
+ "types": "./lib/index.d.ts",
28
+ "unpkg": "./lib/litos-ui.min.js",
29
+ "jsdelivr": "./lib/litos-ui.min.js",
30
+ "exports": {
31
+ "./styles/*": "./styles/*",
32
+ "./lib/*": "./lib/*",
33
+ ".": {
34
+ "types": "./lib/index.d.ts",
35
+ "import": "./lib/index.js",
36
+ "require": "./lib/index.js"
37
+ }
38
+ },
39
+ "scripts": {
40
+ "dev": "vite dev",
41
+ "build": "vite build",
42
+ "docs:dev": "vitepress dev docs --force --host 0.0.0.0",
43
+ "docs:build": "vitepress build docs",
44
+ "docs:preview": "vitepress preview docs",
45
+ "inspect:eslint": "eslint --inspect-config",
46
+ "create": "node scripts/index.js create",
47
+ "dts:build": "tsc -p tsconfig.build.json && node scripts/dts.js",
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"
71
+ }
72
+ }
@@ -32,6 +32,7 @@
32
32
  border-bottom: 1px solid #dedede;
33
33
  display: flex;
34
34
  align-items: center;
35
+ flex-shrink: 0;
35
36
  justify-content: space-between;
36
37
  height: var(--l-header-height);
37
38
  }
@@ -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
@@ -1,4 +1,7 @@
1
1
  /* 一般开发网页的时候,都是按照100%来开发 */
2
+ html {
3
+ font-size: 62.5%;
4
+ }
2
5
  html,
3
6
  body {
4
7
  height: 100%;
@@ -57,8 +60,3 @@ p {
57
60
  line-height: 1.4;
58
61
  color: #333;
59
62
  }
60
-
61
- /* 按钮之间间隔 */
62
- .l-btn-group l-button + l-button {
63
- margin-left: 10px;
64
- }
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: #722ed1;
8
- --l-primary-color-light1: #9254de;
9
- --l-primary-color-light2: #b37feb;
10
- --l-primary-color-light3: #d3adf7;
11
- --l-primary-color-light4: #efdbff;
12
- --l-primary-color-light5: #f9f0ff;
13
- --l-primary-color-dark1: #531dab;
14
- --l-primary-color-dark2: #391085;
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
- html.dark {
37
- --l-disabled-color: #262727;
38
- }
36
+
@@ -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
- };
@@ -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
- };