@kupola/kupola 1.4.5 → 1.4.7
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/components-ext.css +8 -8
- package/css/components.css +1 -0
- package/css/table.css +35 -34
- package/css/theme-dark.css +12 -12
- package/css/theme-light.css +2 -2
- package/dist/css/components-ext.css +8 -8
- package/dist/css/components.css +1 -0
- package/dist/css/table.css +35 -34
- package/dist/css/theme-dark.css +12 -12
- package/dist/css/theme-light.css +16 -16
- package/dist/kupola.cjs.js +1 -1
- package/dist/kupola.cjs.js.map +1 -1
- package/dist/kupola.css +58 -56
- package/dist/kupola.esm.js +8 -5
- package/dist/kupola.esm.js.map +1 -1
- package/dist/kupola.min.css +1 -1
- package/dist/kupola.umd.js +1 -1
- package/dist/kupola.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/kupola.css
CHANGED
|
@@ -464,7 +464,7 @@
|
|
|
464
464
|
--text-secondary-hover: #374151;
|
|
465
465
|
--text-secondary-active: #374151;
|
|
466
466
|
--text-tertiary: #5B6370;
|
|
467
|
-
--text-disabled: #
|
|
467
|
+
--text-disabled: #525A68;
|
|
468
468
|
--text-onbrand: #FFFFFF;
|
|
469
469
|
--text-onaccent: #FFFFFF;
|
|
470
470
|
|
|
@@ -475,7 +475,7 @@
|
|
|
475
475
|
--icon-secondary-hover: #374151;
|
|
476
476
|
--icon-secondary-active: #374151;
|
|
477
477
|
--icon-tertiary: #5B6370;
|
|
478
|
-
--icon-disabled: #
|
|
478
|
+
--icon-disabled: #525A68;
|
|
479
479
|
--icon-onbrand: #FFFFFF;
|
|
480
480
|
--icon-onaccent: #FFFFFF;
|
|
481
481
|
|
|
@@ -753,25 +753,25 @@
|
|
|
753
753
|
--bg-invert-active: #E5E5E5;
|
|
754
754
|
--bg-invert-disabled: rgba(255, 255, 255, 0.2);
|
|
755
755
|
|
|
756
|
-
--text-default: #
|
|
756
|
+
--text-default: #E5E7EB;
|
|
757
757
|
--text-default-hover: #FFFFFF;
|
|
758
758
|
--text-default-active: #FFFFFF;
|
|
759
|
-
--text-secondary: #
|
|
760
|
-
--text-secondary-hover: #
|
|
761
|
-
--text-secondary-active: #
|
|
762
|
-
--text-tertiary: #
|
|
763
|
-
--text-disabled: #
|
|
759
|
+
--text-secondary: #B8BDCA;
|
|
760
|
+
--text-secondary-hover: #E5E7EB;
|
|
761
|
+
--text-secondary-active: #E5E7EB;
|
|
762
|
+
--text-tertiary: #9CA3AF;
|
|
763
|
+
--text-disabled: #8B93A1;
|
|
764
764
|
--text-onbrand: #FFFFFF;
|
|
765
765
|
--text-onaccent: #FFFFFF;
|
|
766
766
|
|
|
767
|
-
--icon-default: #
|
|
767
|
+
--icon-default: #E5E7EB;
|
|
768
768
|
--icon-default-hover: #FFFFFF;
|
|
769
769
|
--icon-default-active: #FFFFFF;
|
|
770
|
-
--icon-secondary: #
|
|
771
|
-
--icon-secondary-hover: #
|
|
772
|
-
--icon-secondary-active: #
|
|
773
|
-
--icon-tertiary: #
|
|
774
|
-
--icon-disabled: #
|
|
770
|
+
--icon-secondary: #B8BDCA;
|
|
771
|
+
--icon-secondary-hover: #E5E7EB;
|
|
772
|
+
--icon-secondary-active: #E5E7EB;
|
|
773
|
+
--icon-tertiary: #9CA3AF;
|
|
774
|
+
--icon-disabled: #8B93A1;
|
|
775
775
|
--icon-onbrand: #FFFFFF;
|
|
776
776
|
--icon-onaccent: #FFFFFF;
|
|
777
777
|
|
|
@@ -2500,6 +2500,7 @@ code, kbd, samp, pre {
|
|
|
2500
2500
|
.ds-table__pagination { display: flex; align-items: center; gap: var(--spacer-8); }
|
|
2501
2501
|
|
|
2502
2502
|
/* Table variants (IMP-001) */
|
|
2503
|
+
.ds-table tbody tr { background: var(--bg-base-default); }
|
|
2503
2504
|
.ds-table--striped tbody tr:nth-child(even) { background: var(--bg-base-secondary); }
|
|
2504
2505
|
.ds-table--hover tbody tr:hover { background: var(--bg-overlay-l1); cursor: default; }
|
|
2505
2506
|
.ds-table--compact th,
|
|
@@ -3506,15 +3507,15 @@ code, kbd, samp, pre {
|
|
|
3506
3507
|
}
|
|
3507
3508
|
|
|
3508
3509
|
.ds-titlebar__traffic-btn--close {
|
|
3509
|
-
background-color:
|
|
3510
|
+
background-color: var(--status-error-default);
|
|
3510
3511
|
}
|
|
3511
3512
|
|
|
3512
3513
|
.ds-titlebar__traffic-btn--minimize {
|
|
3513
|
-
background-color:
|
|
3514
|
+
background-color: var(--status-warning-default);
|
|
3514
3515
|
}
|
|
3515
3516
|
|
|
3516
3517
|
.ds-titlebar__traffic-btn--maximize {
|
|
3517
|
-
background-color:
|
|
3518
|
+
background-color: var(--status-success-default);
|
|
3518
3519
|
}
|
|
3519
3520
|
|
|
3520
3521
|
.ds-titlebar__project {
|
|
@@ -5266,7 +5267,7 @@ code, kbd, samp, pre {
|
|
|
5266
5267
|
width: 6px;
|
|
5267
5268
|
height: 6px;
|
|
5268
5269
|
border-radius: 50%;
|
|
5269
|
-
background-color:
|
|
5270
|
+
background-color: var(--status-info-default);
|
|
5270
5271
|
}
|
|
5271
5272
|
|
|
5272
5273
|
.ds-calendar__day.is-selected {
|
|
@@ -6976,15 +6977,15 @@ code, kbd, samp, pre {
|
|
|
6976
6977
|
}
|
|
6977
6978
|
|
|
6978
6979
|
.ds-heatmap__cell--level-0 {
|
|
6979
|
-
background-color:
|
|
6980
|
+
background-color: var(--bg-overlay-l1);
|
|
6980
6981
|
}
|
|
6981
6982
|
|
|
6982
6983
|
.ds-heatmap__cell--level-1 {
|
|
6983
|
-
background-color:
|
|
6984
|
+
background-color: var(--status-success-surface-l2);
|
|
6984
6985
|
}
|
|
6985
6986
|
|
|
6986
6987
|
.ds-heatmap__cell--level-2 {
|
|
6987
|
-
background-color:
|
|
6988
|
+
background-color: var(--status-success-surface-l3);
|
|
6988
6989
|
}
|
|
6989
6990
|
|
|
6990
6991
|
.ds-heatmap__cell--level-3 {
|
|
@@ -6996,7 +6997,7 @@ code, kbd, samp, pre {
|
|
|
6996
6997
|
}
|
|
6997
6998
|
|
|
6998
6999
|
.ds-heatmap__cell--level-5 {
|
|
6999
|
-
background-color:
|
|
7000
|
+
background-color: var(--status-success-default);
|
|
7000
7001
|
}
|
|
7001
7002
|
|
|
7002
7003
|
.ds-heatmap__labels {
|
|
@@ -9068,58 +9069,59 @@ code, kbd, samp, pre {
|
|
|
9068
9069
|
.kupola-table-wrapper { width: 100%; }
|
|
9069
9070
|
.kupola-table-container { overflow-x: auto; }
|
|
9070
9071
|
.kupola-table { width: 100%; border-collapse: collapse; font-size: 14px; }
|
|
9071
|
-
.kupola-table th, .kupola-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid
|
|
9072
|
-
.kupola-table th { background:
|
|
9073
|
-
.kupola-table
|
|
9074
|
-
.kupola-table-
|
|
9075
|
-
.kupola-table-
|
|
9076
|
-
.kupola-table-bordered
|
|
9072
|
+
.kupola-table th, .kupola-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border-neutral-l1); }
|
|
9073
|
+
.kupola-table th { background: var(--bg-base-secondary); font-weight: 600; color: var(--text-default); white-space: nowrap; }
|
|
9074
|
+
.kupola-table tbody tr { background: var(--bg-base-default); }
|
|
9075
|
+
.kupola-table-striped tbody tr:nth-child(even) { background: var(--bg-base-secondary); }
|
|
9076
|
+
.kupola-table-hover tbody tr:hover { background: var(--status-primary-surface-l2); }
|
|
9077
|
+
.kupola-table-bordered { border: 1px solid var(--border-neutral-l1); }
|
|
9078
|
+
.kupola-table-bordered th, .kupola-table-bordered td { border: 1px solid var(--border-neutral-l1); }
|
|
9077
9079
|
.kupola-table-compact th, .kupola-table-compact td { padding: 8px 12px; }
|
|
9078
9080
|
.kupola-table-sortable { cursor: pointer; user-select: none; position: relative; }
|
|
9079
|
-
.kupola-table-sortable:hover { background:
|
|
9081
|
+
.kupola-table-sortable:hover { background: var(--bg-base-tertiary); }
|
|
9080
9082
|
.kupola-table-sort-icon { font-size: 12px; opacity: 0.5; margin-left: 4px; }
|
|
9081
9083
|
.kupola-table-sort-asc .kupola-table-sort-icon,
|
|
9082
|
-
.kupola-table-sort-desc .kupola-table-sort-icon { opacity: 1; color:
|
|
9083
|
-
.kupola-table-empty, .kupola-table-loading { text-align: center; padding: 40px 16px !important; color:
|
|
9084
|
+
.kupola-table-sort-desc .kupola-table-sort-icon { opacity: 1; color: var(--status-primary-default); }
|
|
9085
|
+
.kupola-table-empty, .kupola-table-loading { text-align: center; padding: 40px 16px !important; color: var(--text-tertiary); }
|
|
9084
9086
|
.kupola-table-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
|
|
9085
9087
|
.kupola-table-toolbar-right { display: flex; align-items: center; gap: 8px; }
|
|
9086
|
-
.kupola-table-filter-input { padding: 6px 12px; border: 1px solid
|
|
9087
|
-
.kupola-table-filter-input:focus { outline: none; border-color:
|
|
9088
|
-
.kupola-table-info { color:
|
|
9089
|
-
.kupola-table-selection-info { color:
|
|
9088
|
+
.kupola-table-filter-input { padding: 6px 12px; border: 1px solid var(--border-neutral-l2); border-radius: 4px; font-size: 14px; width: 240px; }
|
|
9089
|
+
.kupola-table-filter-input:focus { outline: none; border-color: var(--status-primary-default); box-shadow: 0 0 0 2px var(--status-primary-surface-l2); }
|
|
9090
|
+
.kupola-table-info { color: var(--text-tertiary); font-size: 13px; }
|
|
9091
|
+
.kupola-table-selection-info { color: var(--status-primary-default); font-size: 13px; font-weight: 500; }
|
|
9090
9092
|
.kupola-table-col-selection { width: 40px; text-align: center; }
|
|
9091
9093
|
.kupola-table-col-expand { width: 40px; text-align: center; }
|
|
9092
|
-
.kupola-table-expand-btn { background: none; border: none; cursor: pointer; font-size: 12px; padding: 2px 6px; color:
|
|
9093
|
-
.kupola-table-expand-btn:hover { color:
|
|
9094
|
-
.kupola-table-expand-row td { background:
|
|
9095
|
-
.kupola-table-row-selected { background:
|
|
9096
|
-
.kupola-table-row-selected:hover { background:
|
|
9094
|
+
.kupola-table-expand-btn { background: none; border: none; cursor: pointer; font-size: 12px; padding: 2px 6px; color: var(--text-secondary); }
|
|
9095
|
+
.kupola-table-expand-btn:hover { color: var(--status-primary-default); }
|
|
9096
|
+
.kupola-table-expand-row td { background: var(--bg-base-secondary); padding: 16px; }
|
|
9097
|
+
.kupola-table-row-selected { background: var(--status-primary-surface-l1) !important; }
|
|
9098
|
+
.kupola-table-row-selected:hover { background: var(--status-primary-surface-l2) !important; }
|
|
9097
9099
|
|
|
9098
9100
|
/* Resize */
|
|
9099
9101
|
.kupola-table-resize-handle { position: absolute; right: 0; top: 0; bottom: 0; width: 6px; cursor: col-resize; background: transparent; }
|
|
9100
|
-
.kupola-table-resize-handle:hover { background:
|
|
9102
|
+
.kupola-table-resize-handle:hover { background: var(--status-primary-default); opacity: 0.3; }
|
|
9101
9103
|
|
|
9102
9104
|
/* Drag */
|
|
9103
9105
|
.kupola-table-draggable { transition: opacity 0.2s; }
|
|
9104
9106
|
.kupola-table-dragging { opacity: 0.4; }
|
|
9105
|
-
.kupola-table-drag-over { border-top: 2px solid
|
|
9107
|
+
.kupola-table-drag-over { border-top: 2px solid var(--status-primary-default) !important; }
|
|
9106
9108
|
|
|
9107
9109
|
/* Edit */
|
|
9108
9110
|
.kupola-table-editable-cell { cursor: text; }
|
|
9109
|
-
.kupola-table-editable-cell:hover { background:
|
|
9111
|
+
.kupola-table-editable-cell:hover { background: var(--status-primary-surface-l1); }
|
|
9110
9112
|
.kupola-table-edit-cell { display: flex; gap: 4px; align-items: center; }
|
|
9111
9113
|
.kupola-table-edit-input { flex: 1; padding: 2px 6px; font-size: 13px; }
|
|
9112
9114
|
.kupola-table-edit-actions { display: flex; gap: 2px; }
|
|
9113
|
-
.kupola-table-edit-save, .kupola-table-edit-cancel { background: none; border: 1px solid
|
|
9114
|
-
.kupola-table-edit-save { color:
|
|
9115
|
-
.kupola-table-edit-cancel { color:
|
|
9116
|
-
.kupola-table-edit-save:hover { background:
|
|
9117
|
-
.kupola-table-edit-cancel:hover { background:
|
|
9115
|
+
.kupola-table-edit-save, .kupola-table-edit-cancel { background: none; border: 1px solid var(--border-neutral-l2); border-radius: 3px; cursor: pointer; padding: 2px 6px; font-size: 12px; }
|
|
9116
|
+
.kupola-table-edit-save { color: var(--status-success-default); border-color: var(--status-success-default); }
|
|
9117
|
+
.kupola-table-edit-cancel { color: var(--status-error-default); border-color: var(--status-error-default); }
|
|
9118
|
+
.kupola-table-edit-save:hover { background: var(--status-success-surface-l1); }
|
|
9119
|
+
.kupola-table-edit-cancel:hover { background: var(--status-error-surface-l1); }
|
|
9118
9120
|
|
|
9119
9121
|
/* Tree */
|
|
9120
9122
|
.kupola-table-tree-indent { display: inline-block; }
|
|
9121
|
-
.kupola-table-tree-toggle { background: none; border: none; cursor: pointer; font-size: 10px; padding: 0 4px; color:
|
|
9122
|
-
.kupola-table-tree-toggle:hover { color:
|
|
9123
|
+
.kupola-table-tree-toggle { background: none; border: none; cursor: pointer; font-size: 10px; padding: 0 4px; color: var(--text-secondary); }
|
|
9124
|
+
.kupola-table-tree-toggle:hover { color: var(--status-primary-default); }
|
|
9123
9125
|
.kupola-table-tree-toggle-placeholder { display: inline-block; width: 18px; }
|
|
9124
9126
|
|
|
9125
9127
|
/* Virtual */
|
|
@@ -9128,10 +9130,10 @@ code, kbd, samp, pre {
|
|
|
9128
9130
|
/* Pagination */
|
|
9129
9131
|
.kupola-table-pagination { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 16px; padding: 8px 0; }
|
|
9130
9132
|
.kupola-table-pages { display: flex; gap: 4px; align-items: center; }
|
|
9131
|
-
.kupola-table-page-btn { min-width: 32px; height: 32px; border: 1px solid
|
|
9132
|
-
.kupola-table-page-btn:hover:not(:disabled):not(.active) { border-color:
|
|
9133
|
-
.kupola-table-page-btn.active { background:
|
|
9133
|
+
.kupola-table-page-btn { min-width: 32px; height: 32px; border: 1px solid var(--border-neutral-l2); border-radius: 4px; background: var(--bg-base-default); cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; }
|
|
9134
|
+
.kupola-table-page-btn:hover:not(:disabled):not(.active) { border-color: var(--status-primary-default); color: var(--status-primary-default); }
|
|
9135
|
+
.kupola-table-page-btn.active { background: var(--status-primary-default); color: var(--text-onbrand); border-color: var(--status-primary-default); }
|
|
9134
9136
|
.kupola-table-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
|
|
9135
|
-
.kupola-table-page-ellipsis { padding: 0 4px; color:
|
|
9136
|
-
.kupola-table-page-size { padding: 4px 8px; border: 1px solid
|
|
9137
|
-
.kupola-table-page-info { color:
|
|
9137
|
+
.kupola-table-page-ellipsis { padding: 0 4px; color: var(--text-tertiary); }
|
|
9138
|
+
.kupola-table-page-size { padding: 4px 8px; border: 1px solid var(--border-neutral-l2); border-radius: 4px; font-size: 13px; }
|
|
9139
|
+
.kupola-table-page-info { color: var(--text-tertiary); font-size: 13px; }
|
package/dist/kupola.esm.js
CHANGED
|
@@ -1935,11 +1935,14 @@ function Qn() {
|
|
|
1935
1935
|
const t = U();
|
|
1936
1936
|
it(t);
|
|
1937
1937
|
const e = document.querySelector("[data-theme-toggle]");
|
|
1938
|
-
|
|
1939
|
-
o.
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1938
|
+
if (e) {
|
|
1939
|
+
const o = e.onclick;
|
|
1940
|
+
e.onclick = function(l) {
|
|
1941
|
+
l.preventDefault();
|
|
1942
|
+
const h = Y() === "dark" ? "light" : "dark";
|
|
1943
|
+
st(h), typeof o == "function" && o.call(this, l);
|
|
1944
|
+
};
|
|
1945
|
+
}
|
|
1943
1946
|
let s = document.getElementById("brand-picker");
|
|
1944
1947
|
s || (s = document.createElement("div"), s.id = "brand-picker", s.style.position = "fixed", s.style.top = "64px", s.style.right = "16px", s.style.zIndex = "9998", s.style.display = "none", s.style.padding = "12px", s.style.width = "200px", s.style.gridTemplateColumns = "repeat(3, 1fr)", s.style.gap = "6px", s.style.backgroundColor = "var(--bg-base-secondary)", s.style.border = "1px solid var(--border-neutral-l1)", s.style.borderRadius = "8px", s.style.boxShadow = "0 4px 20px rgba(0, 0, 0, 0.2)", s.style.overflow = "hidden", W.forEach((o) => {
|
|
1945
1948
|
const l = document.createElement("button");
|