@kupola/kupola 1.9.7 → 1.9.9
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/css/kupola.css +14 -14
- package/css/scaffold.css +41 -0
- package/dist/core-D0uN-4lt.cjs +1 -0
- package/dist/core-oOQWnSRW.js +4959 -0
- package/dist/core.cjs.js +1 -1
- package/dist/core.esm.js +106 -1
- package/dist/css/dashboard.css +368 -0
- package/dist/css/kupola.css +14 -13
- package/dist/css/scaffold.css +43 -9
- package/dist/css/theme-dark.css +340 -214
- package/dist/kupola.cjs.js +1 -1
- package/dist/kupola.css +55 -14
- package/dist/kupola.esm.js +9965 -1
- package/dist/kupola.min.css +1 -1
- package/dist/plugins/vite-plugin-kupola.js +1 -1
- package/dist/plugins/webpack-plugin-kupola.js +1 -1
- package/dist/theme-preload.js +7 -28
- package/dist/theme-standalone.js +6 -0
- package/js/theme-standalone.js +6 -0
- package/js/theme.js +6 -0
- package/package.json +1 -1
- package/scripts/build-css.cjs +2 -1
package/dist/kupola.css
CHANGED
|
@@ -406,7 +406,7 @@
|
|
|
406
406
|
--bg-layout-2: var(--bg-overlay-l1);
|
|
407
407
|
--border-1: var(--border-neutral-l1);
|
|
408
408
|
}
|
|
409
|
-
|
|
409
|
+
|
|
410
410
|
/* ===== Dark Theme (Default) ===== */
|
|
411
411
|
|
|
412
412
|
:root {
|
|
@@ -747,7 +747,7 @@
|
|
|
747
747
|
.ds-input--prefix {
|
|
748
748
|
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239599A6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'></circle><line x1='21' y1='21' x2='16.65' y2='16.65'></line></svg>") !important;
|
|
749
749
|
}
|
|
750
|
-
}
|
|
750
|
+
}
|
|
751
751
|
/* ===== Light Theme ===== */
|
|
752
752
|
|
|
753
753
|
[data-theme="light"] {
|
|
@@ -1045,7 +1045,7 @@
|
|
|
1045
1045
|
.ds-input--prefix {
|
|
1046
1046
|
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666B75' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'></circle><line x1='21' y1='21' x2='16.65' y2='16.65'></line></svg>") !important;
|
|
1047
1047
|
}
|
|
1048
|
-
}
|
|
1048
|
+
}
|
|
1049
1049
|
/* ===== Brand Color Themes ===== */
|
|
1050
1050
|
/* 仅替换品牌绿色系,其他颜色保持不变 */
|
|
1051
1051
|
|
|
@@ -1345,7 +1345,7 @@
|
|
|
1345
1345
|
--bg-brand: #106898;
|
|
1346
1346
|
--bg-brand-hover: #0E5C87;
|
|
1347
1347
|
--bg-brand-popup: rgba(16, 104, 152, 0.15);
|
|
1348
|
-
}
|
|
1348
|
+
}
|
|
1349
1349
|
/*
|
|
1350
1350
|
* scaffold.css - Layout, reset, typography utilities, shared atoms
|
|
1351
1351
|
* Provides the page chrome consumed by preview/component-*.html and
|
|
@@ -1353,6 +1353,47 @@
|
|
|
1353
1353
|
*/
|
|
1354
1354
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
1355
1355
|
|
|
1356
|
+
/* ===== Theme Loading ===== */
|
|
1357
|
+
body:not(.theme-initialized) > :not(.ds-theme-loader) {
|
|
1358
|
+
opacity: 0 !important;
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
.ds-theme-loader {
|
|
1362
|
+
position: fixed;
|
|
1363
|
+
inset: 0;
|
|
1364
|
+
display: flex;
|
|
1365
|
+
flex-direction: column;
|
|
1366
|
+
align-items: center;
|
|
1367
|
+
justify-content: center;
|
|
1368
|
+
background: var(--bg-base-default);
|
|
1369
|
+
z-index: 9999;
|
|
1370
|
+
transition: opacity 0.3s ease;
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
body.theme-initialized .ds-theme-loader {
|
|
1374
|
+
opacity: 0;
|
|
1375
|
+
pointer-events: none;
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
.ds-theme-loader__spinner {
|
|
1379
|
+
width: 32px;
|
|
1380
|
+
height: 32px;
|
|
1381
|
+
border: 2px solid var(--border-neutral-l2);
|
|
1382
|
+
border-top-color: var(--bg-brand);
|
|
1383
|
+
border-radius: 50%;
|
|
1384
|
+
animation: ds-spin 0.8s linear infinite;
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
.ds-theme-loader__text {
|
|
1388
|
+
margin-top: 16px;
|
|
1389
|
+
color: var(--text-secondary);
|
|
1390
|
+
font-size: 14px;
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
@keyframes ds-spin {
|
|
1394
|
+
to { transform: rotate(360deg); }
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1356
1397
|
html, body {
|
|
1357
1398
|
background: var(--bg-base-default);
|
|
1358
1399
|
color: var(--text-default);
|
|
@@ -1490,7 +1531,7 @@ code, kbd, samp, pre {
|
|
|
1490
1531
|
font-variant-numeric: tabular-nums;
|
|
1491
1532
|
font-feature-settings: "tnum" 1, "lnum" 1;
|
|
1492
1533
|
}
|
|
1493
|
-
|
|
1534
|
+
|
|
1494
1535
|
/* ===== Dashboard Layout ===== */
|
|
1495
1536
|
|
|
1496
1537
|
html.ds-dashboard-page,
|
|
@@ -1858,7 +1899,7 @@ body.ds-dashboard-page {
|
|
|
1858
1899
|
.ds-dashboard__footer {
|
|
1859
1900
|
padding-bottom: calc(env(safe-area-inset-bottom) + 4px);
|
|
1860
1901
|
}
|
|
1861
|
-
}
|
|
1902
|
+
}
|
|
1862
1903
|
/* ═══════════════════════════════════════════════════════════════
|
|
1863
1904
|
components.css — Design System Component Definitions
|
|
1864
1905
|
Auto-extracted from preview/component-*.html
|
|
@@ -3435,7 +3476,7 @@ body.ds-dashboard-page {
|
|
|
3435
3476
|
font-size: var(--body-xs-font-size);
|
|
3436
3477
|
color: var(--text-tertiary);
|
|
3437
3478
|
}
|
|
3438
|
-
|
|
3479
|
+
|
|
3439
3480
|
/* Activity Rail */
|
|
3440
3481
|
.ds-activityrail {
|
|
3441
3482
|
display: flex;
|
|
@@ -7836,7 +7877,7 @@ body.ds-dashboard-page {
|
|
|
7836
7877
|
|
|
7837
7878
|
.ds-tree--compact .ds-tree__item {
|
|
7838
7879
|
padding: var(--spacer-2) var(--spacer-8);
|
|
7839
|
-
}
|
|
7880
|
+
}
|
|
7840
7881
|
/* ===== Component States ===== */
|
|
7841
7882
|
|
|
7842
7883
|
/* Loading State */
|
|
@@ -8152,7 +8193,7 @@ body.ds-dashboard-page {
|
|
|
8152
8193
|
100% {
|
|
8153
8194
|
box-shadow: 0 0 0 0 rgba(50, 240, 140, 0);
|
|
8154
8195
|
}
|
|
8155
|
-
}
|
|
8196
|
+
}
|
|
8156
8197
|
/* ===== Utility Classes ===== */
|
|
8157
8198
|
|
|
8158
8199
|
/* Spacing */
|
|
@@ -8486,7 +8527,7 @@ body.ds-dashboard-page {
|
|
|
8486
8527
|
.ds-z-tooltip { z-index: var(--z-index-tooltip, 2100); }
|
|
8487
8528
|
.ds-z-message { z-index: var(--z-index-message, 3000); }
|
|
8488
8529
|
.ds-z-notification { z-index: var(--z-index-notification, 3100); }
|
|
8489
|
-
.ds-z-loading { z-index: var(--z-index-loading, 5000); }
|
|
8530
|
+
.ds-z-loading { z-index: var(--z-index-loading, 5000); }
|
|
8490
8531
|
/* Responsive Design */
|
|
8491
8532
|
/* Breakpoints: Phone < 768px, Pad 768px - 1024px, PC > 1024px */
|
|
8492
8533
|
|
|
@@ -9183,7 +9224,7 @@ body.ds-dashboard-page {
|
|
|
9183
9224
|
.ds-btn--sm {
|
|
9184
9225
|
padding: 2px 6px;
|
|
9185
9226
|
}
|
|
9186
|
-
}
|
|
9227
|
+
}
|
|
9187
9228
|
/* Accessibility (a11y) */
|
|
9188
9229
|
|
|
9189
9230
|
/* Focus styles */
|
|
@@ -9302,7 +9343,7 @@ body.ds-dashboard-page {
|
|
|
9302
9343
|
content: '';
|
|
9303
9344
|
display: table;
|
|
9304
9345
|
clear: both;
|
|
9305
|
-
}
|
|
9346
|
+
}
|
|
9306
9347
|
/* Animations and Transitions */
|
|
9307
9348
|
|
|
9308
9349
|
/* Button hover and active */
|
|
@@ -9526,7 +9567,7 @@ body.ds-dashboard-page {
|
|
|
9526
9567
|
.focus-ring:focus-visible {
|
|
9527
9568
|
outline: 2px solid var(--bg-brand);
|
|
9528
9569
|
outline-offset: 2px;
|
|
9529
|
-
}
|
|
9570
|
+
}
|
|
9530
9571
|
/* ================================================================
|
|
9531
9572
|
KupolaTable Styles
|
|
9532
9573
|
================================================================ */
|
|
@@ -9601,4 +9642,4 @@ body.ds-dashboard-page {
|
|
|
9601
9642
|
.kupola-table-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
|
|
9602
9643
|
.kupola-table-page-ellipsis { padding: 0 4px; color: var(--text-tertiary); }
|
|
9603
9644
|
.kupola-table-page-size { padding: 4px 8px; border: 1px solid var(--border-neutral-l2); border-radius: 4px; font-size: 13px; }
|
|
9604
|
-
.kupola-table-page-info { color: var(--text-tertiary); font-size: 13px; }
|
|
9645
|
+
.kupola-table-page-info { color: var(--text-tertiary); font-size: 13px; }
|