@kubex/zinc 1.1.16 → 1.1.18
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/dist/custom-elements.json +3 -3
- package/dist/vscode.html-custom-data.json +1 -0
- package/dist/web-types.json +3 -3
- package/dist/zn.d.ts +1 -1
- package/dist/zn.min.css +1 -1
- package/dist/zn.min.js +32 -28
- package/package.json +1 -1
- package/scss/shared/_table.scss +0 -1
- package/src/components/button/button.component.ts +2 -1
- package/src/components/button/button.scss +16 -0
- package/src/components/data-table/data-table.component.ts +10 -6
- package/src/components/data-table/data-table.scss +3 -15
- package/src/components/status-indicator/status-indicator.scss +11 -5
- package/src/form-control.scss +2 -2
package/package.json
CHANGED
package/scss/shared/_table.scss
CHANGED
|
@@ -60,7 +60,7 @@ export default class ZnButton extends ZincElement implements ZincFormControl {
|
|
|
60
60
|
@queryAll('.loading-countdown') countdownContainer: HTMLElement[];
|
|
61
61
|
|
|
62
62
|
@property({}) color: 'default' | 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning' |
|
|
63
|
-
'transparent' | 'star' | (string & Record<never, never>) = 'default';
|
|
63
|
+
'transparent' | 'star' | 'white' | (string & Record<never, never>) = 'default';
|
|
64
64
|
@property({attribute: 'hover-color'}) hoverColor: string;
|
|
65
65
|
@property({type: Boolean}) text = false;
|
|
66
66
|
@property({type: Boolean}) outline = false;
|
|
@@ -388,6 +388,7 @@ export default class ZnButton extends ZincElement implements ZincFormControl {
|
|
|
388
388
|
'button--warning': this.color === 'warning',
|
|
389
389
|
'button--transparent': this.color === 'transparent',
|
|
390
390
|
'button--star': this.color === 'star',
|
|
391
|
+
'button--white': this.color === 'white',
|
|
391
392
|
'button--outline': this.outline,
|
|
392
393
|
'button--text': (this.text && !this.outline),
|
|
393
394
|
'button--icon-button': !!this.iconButton,
|
|
@@ -244,6 +244,22 @@
|
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
246
|
|
|
247
|
+
/**
|
|
248
|
+
* White: white panel background with a neutral border, matching the
|
|
249
|
+
* icon-button look but for normal (auto-width, text) buttons.
|
|
250
|
+
*
|
|
251
|
+
* Doubled-up selector so it out-cascades the standard/secondary combos.
|
|
252
|
+
*/
|
|
253
|
+
.button.button--white {
|
|
254
|
+
background: rgb(var(--zn-panel));
|
|
255
|
+
border-color: var(--zn-button-border-color, rgb(var(--zn-border-color)));
|
|
256
|
+
color: rgb(var(--zn-text));
|
|
257
|
+
|
|
258
|
+
&:hover:not([disabled]), &:active:not([disabled]) {
|
|
259
|
+
background: rgba(var(--zn-color-tab), 0.5);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
247
263
|
/**
|
|
248
264
|
* Icon buttons
|
|
249
265
|
*
|
|
@@ -722,11 +722,13 @@ export default class ZnDataTable extends ZincElement {
|
|
|
722
722
|
|
|
723
723
|
return html`
|
|
724
724
|
<div class="table__footer__pagination-buttons">
|
|
725
|
-
<zn-button
|
|
725
|
+
<zn-button color="white"
|
|
726
|
+
@click="${this.page !== 1 ? this.goToFirstPage : undefined}"
|
|
726
727
|
?disabled="${this.page === 1}"
|
|
727
728
|
icon="arrow_left@lu">First
|
|
728
729
|
</zn-button>
|
|
729
|
-
<zn-button
|
|
730
|
+
<zn-button color="white"
|
|
731
|
+
@click="${this.page !== 1 ? this.goToPreviousPage : undefined}"
|
|
730
732
|
?disabled="${this.page === 1}">Back
|
|
731
733
|
</zn-button>
|
|
732
734
|
${this.getPageRange().map((p) => p === 'ellipsis'
|
|
@@ -737,10 +739,12 @@ export default class ZnDataTable extends ZincElement {
|
|
|
737
739
|
class="${p === this.page ? 'table__footer__pagination-page--active' : ''}">${p}
|
|
738
740
|
</zn-button>`
|
|
739
741
|
)}
|
|
740
|
-
<zn-button
|
|
742
|
+
<zn-button color="white"
|
|
743
|
+
@click="${this.page !== this.totalPages ? this.goToNextPage : undefined}"
|
|
741
744
|
?disabled="${this.page === this.totalPages}">Next
|
|
742
745
|
</zn-button>
|
|
743
|
-
<zn-button
|
|
746
|
+
<zn-button color="white"
|
|
747
|
+
@click="${this.page !== this.totalPages ? this.goToLastPage : undefined}"
|
|
744
748
|
?disabled="${this.page === this.totalPages}"
|
|
745
749
|
icon="arrow_right@lu"
|
|
746
750
|
icon-position="right">Last
|
|
@@ -1339,9 +1343,9 @@ export default class ZnDataTable extends ZincElement {
|
|
|
1339
1343
|
<td class="table__cell table__cell--actions">
|
|
1340
1344
|
<zn-dropdown placement="bottom-end">
|
|
1341
1345
|
<zn-button slot="trigger"
|
|
1342
|
-
icon-button
|
|
1343
|
-
plain
|
|
1346
|
+
icon-button="small"
|
|
1344
1347
|
icon="ellipsis@lu"
|
|
1348
|
+
plain
|
|
1345
1349
|
aria-label="Row actions">
|
|
1346
1350
|
</zn-button>
|
|
1347
1351
|
<zn-menu>
|
|
@@ -80,7 +80,6 @@ table {
|
|
|
80
80
|
|
|
81
81
|
th {
|
|
82
82
|
@include wc.text-style(button-label);
|
|
83
|
-
border-top: 1px solid rgb(var(--zn-border-color));
|
|
84
83
|
border-bottom: 1px solid rgb(var(--zn-border-color));
|
|
85
84
|
}
|
|
86
85
|
}
|
|
@@ -285,23 +284,12 @@ table {
|
|
|
285
284
|
flex-direction: row;
|
|
286
285
|
align-items: center;
|
|
287
286
|
gap: var(--zn-spacing-x-small);
|
|
288
|
-
|
|
289
|
-
button {
|
|
290
|
-
border: 1px solid rgb(var(--zn-border-color));
|
|
291
|
-
border-radius: 5px;
|
|
292
|
-
padding: var(--zn-spacing-x-small);
|
|
293
|
-
|
|
294
|
-
&[disabled] {
|
|
295
|
-
cursor: not-allowed;
|
|
296
|
-
opacity: 0.5;
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
287
|
}
|
|
300
288
|
|
|
301
289
|
&__pagination-page--active::part(base) {
|
|
302
|
-
background-color:
|
|
303
|
-
border-color:
|
|
304
|
-
color: rgb(var(--zn-text
|
|
290
|
+
background-color: var(--zn-color-neutral-300);
|
|
291
|
+
border-color: var(--zn-color-neutral-300);
|
|
292
|
+
color: rgb(var(--zn-text));
|
|
305
293
|
}
|
|
306
294
|
|
|
307
295
|
&__pagination-ellipsis {
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
@use "../../wc";
|
|
2
2
|
|
|
3
3
|
:host {
|
|
4
|
-
--indicator-
|
|
4
|
+
--zn-indicator-info: 100, 117, 242;
|
|
5
|
+
--zn-indicator-warning: 255, 136, 0;
|
|
6
|
+
--zn-indicator-error: 237, 84, 109;
|
|
7
|
+
--zn-indicator-success: 43, 192, 145;
|
|
8
|
+
--zn-indicator-disabled: 220, 220, 220;
|
|
9
|
+
|
|
10
|
+
--indicator-color: var(--zn-indicator-disabled);
|
|
5
11
|
white-space: nowrap;
|
|
6
12
|
display: inline-block;
|
|
7
13
|
}
|
|
@@ -15,18 +21,18 @@
|
|
|
15
21
|
border-radius: 50%;
|
|
16
22
|
|
|
17
23
|
&--info {
|
|
18
|
-
--indicator-color: var(--zn-
|
|
24
|
+
--indicator-color: var(--zn-indicator-info);
|
|
19
25
|
}
|
|
20
26
|
|
|
21
27
|
&--error {
|
|
22
|
-
--indicator-color: var(--zn-
|
|
28
|
+
--indicator-color: var(--zn-indicator-error);
|
|
23
29
|
}
|
|
24
30
|
|
|
25
31
|
&--warning {
|
|
26
|
-
--indicator-color: var(--zn-
|
|
32
|
+
--indicator-color: var(--zn-indicator-warning);
|
|
27
33
|
}
|
|
28
34
|
|
|
29
35
|
&--success {
|
|
30
|
-
--indicator-color: var(--zn-
|
|
36
|
+
--indicator-color: var(--zn-indicator-success);
|
|
31
37
|
}
|
|
32
38
|
}
|
package/src/form-control.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.form-control-input {
|
|
2
|
-
margin: var(--zn-spacing-2x-small) 3px 3px;
|
|
2
|
+
margin: var(--zn-spacing-2x-small) 3px 3px 0;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.form-control-input--flush {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
color: var(--zn-input-label-color);
|
|
21
21
|
font-weight: var(--zn-input-label-font-weight);
|
|
22
22
|
line-height: var(--zn-input-label-line-height);
|
|
23
|
-
margin-bottom: var(--zn-spacing-
|
|
23
|
+
margin-bottom: var(--zn-spacing-x-small);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.form-control--has-label.form-control--medium .form-control__label {
|