@zeyos/zx 5.7.0 → 5.7.1
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/CHANGELOG.md +34 -0
- package/dist/types/components/checklist/checklist.d.ts +29 -0
- package/dist/types/components/dialog/dialog.d.ts +2 -2
- package/dist/types/components/modal/modal.d.ts +34 -8
- package/dist/types/components/number-field/number-field.d.ts +24 -1
- package/dist/types/components/sheet/sheet.d.ts +2 -2
- package/dist/types/core/dom.d.ts +14 -0
- package/dist/zx-zeyos.esm.js +131 -32
- package/dist/zx-zeyos.esm.min.js +4 -4
- package/dist/zx.css +22 -9
- package/dist/zx.esm.js +175 -43
- package/dist/zx.esm.min.js +24 -24
- package/dist/zx.global.js +175 -43
- package/dist/zx.global.min.js +24 -24
- package/dist/zx.layered.css +22 -9
- package/dist/zx.layered.min.css +1 -1
- package/dist/zx.min.css +1 -1
- package/docs/api.json +47 -5
- package/docs/llms.md +28 -9
- package/package.json +1 -1
- package/src/components/button/button.css +24 -11
- package/src/components/checklist/checklist.css +9 -1
- package/src/components/checklist/checklist.js +59 -3
- package/src/components/checklist/field-adapter.js +2 -11
- package/src/components/dialog/dialog.js +3 -4
- package/src/components/modal/modal.js +62 -8
- package/src/components/number-field/number-field.js +69 -16
- package/src/components/sheet/sheet.js +12 -5
- package/src/core/dom.js +45 -2
- package/src/core/icons.js +13 -2
- package/src/core/position.js +3 -2
package/dist/zx.layered.css
CHANGED
|
@@ -1435,18 +1435,22 @@
|
|
|
1435
1435
|
color: var(--zx-color-text);
|
|
1436
1436
|
}
|
|
1437
1437
|
.zx-btn[aria-pressed=true] {
|
|
1438
|
-
border-color: var(--zx-color-
|
|
1439
|
-
background: var(--zx-color-
|
|
1438
|
+
border-color: var(--zx-color-text-subtle);
|
|
1439
|
+
background: color-mix(in srgb, var(--zx-color-text) 14%, transparent);
|
|
1440
1440
|
color: var(--zx-color-text);
|
|
1441
|
-
|
|
1442
|
-
.zx-btn[data-kind=ghost][aria-pressed=true] {
|
|
1443
|
-
border-color: transparent;
|
|
1441
|
+
box-shadow: none;
|
|
1444
1442
|
}
|
|
1445
1443
|
.zx-btn[aria-pressed=true] > .zx-icon {
|
|
1446
1444
|
color: var(--zx-color-text);
|
|
1447
1445
|
}
|
|
1448
|
-
.zx-btn[aria-pressed=true]:hover:not(:disabled)
|
|
1449
|
-
|
|
1446
|
+
.zx-btn[aria-pressed=true]:hover:not(:disabled),
|
|
1447
|
+
.zx-btn[aria-pressed=true]:active:not(:disabled),
|
|
1448
|
+
.zx-btn[data-kind=ghost][aria-pressed=true][aria-expanded=true]:not(:disabled) {
|
|
1449
|
+
border-color: var(--zx-color-text-subtle);
|
|
1450
|
+
background: color-mix(in srgb, var(--zx-color-text) 14%, transparent);
|
|
1451
|
+
}
|
|
1452
|
+
.zx-btn[aria-pressed=true]:focus-visible {
|
|
1453
|
+
box-shadow: var(--zx-focus-ring);
|
|
1450
1454
|
}
|
|
1451
1455
|
.zx-btn[data-size=sm] {
|
|
1452
1456
|
min-block-size: calc(var(--zx-control-height) - var(--zx-space-1));
|
|
@@ -1485,9 +1489,12 @@
|
|
|
1485
1489
|
border-start-end-radius: 0;
|
|
1486
1490
|
border-end-end-radius: 0;
|
|
1487
1491
|
}
|
|
1488
|
-
.zx-btn-group > .zx-btn
|
|
1492
|
+
.zx-btn-group > .zx-btn[aria-pressed=true] {
|
|
1489
1493
|
z-index: 1;
|
|
1490
1494
|
}
|
|
1495
|
+
.zx-btn-group > .zx-btn:focus-visible {
|
|
1496
|
+
z-index: 2;
|
|
1497
|
+
}
|
|
1491
1498
|
@media (prefers-reduced-transparency: reduce) {
|
|
1492
1499
|
.zx-btn {
|
|
1493
1500
|
background: var(--zx-color-bg-control);
|
|
@@ -8058,7 +8065,7 @@
|
|
|
8058
8065
|
padding: var(--zx-space-1) var(--zx-space-2);
|
|
8059
8066
|
line-height: 1.35;
|
|
8060
8067
|
}
|
|
8061
|
-
.zx-checklist__item:hover {
|
|
8068
|
+
.zx-checklist:not([aria-disabled=true]) .zx-checklist__item:hover {
|
|
8062
8069
|
background: var(--zx-color-bg-hover);
|
|
8063
8070
|
}
|
|
8064
8071
|
.zx-checklist__item:has(input:checked) {
|
|
@@ -8080,6 +8087,12 @@
|
|
|
8080
8087
|
.zx-checklist[data-state=loading] .zx-checklist__list {
|
|
8081
8088
|
color: var(--zx-color-text-muted);
|
|
8082
8089
|
}
|
|
8090
|
+
.zx-checklist[aria-disabled=true] {
|
|
8091
|
+
opacity: var(--zx-control-disabled-opacity);
|
|
8092
|
+
}
|
|
8093
|
+
.zx-checklist[aria-disabled=true] .zx-checklist__item {
|
|
8094
|
+
cursor: default;
|
|
8095
|
+
}
|
|
8083
8096
|
}
|
|
8084
8097
|
|
|
8085
8098
|
/* src/components/tag-picker/tag-picker.css */
|