@q1travel/design-system 0.30.13 → 0.30.15
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/README.md +1 -1
- package/contracts/app-base.css +0 -7
- package/contracts/button-api-compatibility.md +10 -0
- package/contracts/design.dark.md +2 -2
- package/contracts/design.md +2 -2
- package/dist-pkg/design-system.d.ts +4 -2
- package/dist-pkg/design-system.js +3379 -3375
- package/dist-pkg/style.css +24 -1
- package/package.json +1 -1
package/dist-pkg/style.css
CHANGED
|
@@ -2036,6 +2036,20 @@
|
|
|
2036
2036
|
}
|
|
2037
2037
|
}
|
|
2038
2038
|
|
|
2039
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
2040
|
+
[data-icon-button-attention='true'] > .button__icon-slot > .button__icon-content > :first-child {
|
|
2041
|
+
transform-origin: 50% 15%;
|
|
2042
|
+
animation: q1-icon-button-attention var(--q1-duration-slow) var(--q1-ease-in-out) 1;
|
|
2043
|
+
}
|
|
2044
|
+
|
|
2045
|
+
@keyframes q1-icon-button-attention {
|
|
2046
|
+
0%, 100% { transform: rotate(0deg); }
|
|
2047
|
+
25% { transform: rotate(-8deg); }
|
|
2048
|
+
50% { transform: rotate(6deg); }
|
|
2049
|
+
75% { transform: rotate(-3deg); }
|
|
2050
|
+
}
|
|
2051
|
+
}
|
|
2052
|
+
|
|
2039
2053
|
/* ButtonLink 独占交互:锚点禁用视觉、触屏点击区与指针触发的忙态指示器交接。 */
|
|
2040
2054
|
|
|
2041
2055
|
.button-link[aria-disabled='true']:not(.button--loading):not(.button--busy) {
|
|
@@ -8399,7 +8413,7 @@ a.q1-card:focus-visible {
|
|
|
8399
8413
|
visibility: hidden;
|
|
8400
8414
|
}
|
|
8401
8415
|
/* 变体:default 是浅灰底 + border-strong 外框,分割线与外框同为 border-strong,在浅灰底上保持清晰;
|
|
8402
|
-
secondary 是面板底 + 与 Button
|
|
8416
|
+
secondary 是面板底 + 与 Button 次要档一致的外框(亮色 border、暗色 border-control);分割线始终与外框同色同粗。 */
|
|
8403
8417
|
.split-button--default .split-button__primary,
|
|
8404
8418
|
.split-button--default .split-button__toggle {
|
|
8405
8419
|
background: var(--q1-color-bg-subtle);
|
|
@@ -8409,6 +8423,10 @@ a.q1-card:focus-visible {
|
|
|
8409
8423
|
border-color: var(--q1-color-border);
|
|
8410
8424
|
background: var(--q1-color-bg-panel);
|
|
8411
8425
|
}
|
|
8426
|
+
:where(:root[data-theme='dark'], [data-q1-theme='dark']) .split-button--secondary .split-button__primary:not(:where([data-q1-theme='light'], [data-q1-theme='light'] *)),
|
|
8427
|
+
:where(:root[data-theme='dark'], [data-q1-theme='dark']) .split-button--secondary .split-button__toggle:not(:where([data-q1-theme='light'], [data-q1-theme='light'] *)) {
|
|
8428
|
+
border-color: var(--q1-color-border-control);
|
|
8429
|
+
}
|
|
8412
8430
|
@media (hover: hover) and (pointer: fine) {
|
|
8413
8431
|
.split-button--default .split-button__primary:hover:not(:disabled, [aria-disabled='true']),
|
|
8414
8432
|
.split-button--default .split-button__toggle:hover:not(:disabled, [aria-disabled='true']) {
|
|
@@ -8418,6 +8436,10 @@ a.q1-card:focus-visible {
|
|
|
8418
8436
|
.split-button--secondary .split-button__toggle:hover:not(:disabled, [aria-disabled='true']) {
|
|
8419
8437
|
background: var(--q1-color-bg-hover);
|
|
8420
8438
|
}
|
|
8439
|
+
:where(:root[data-theme='dark'], [data-q1-theme='dark']) .split-button--secondary .split-button__primary:hover:not(:disabled, [aria-disabled='true']):not(:where([data-q1-theme='light'], [data-q1-theme='light'] *)),
|
|
8440
|
+
:where(:root[data-theme='dark'], [data-q1-theme='dark']) .split-button--secondary .split-button__toggle:hover:not(:disabled, [aria-disabled='true']):not(:where([data-q1-theme='light'], [data-q1-theme='light'] *)) {
|
|
8441
|
+
border-color: var(--q1-color-gray-800);
|
|
8442
|
+
}
|
|
8421
8443
|
}
|
|
8422
8444
|
.split-button__primary:disabled,
|
|
8423
8445
|
.split-button__toggle:disabled {
|
|
@@ -14794,6 +14816,7 @@ a.q1-navigation__item[aria-disabled='true'] {
|
|
|
14794
14816
|
background: var(--q1-color-bg-subtle);
|
|
14795
14817
|
color: var(--q1-color-text-secondary);
|
|
14796
14818
|
}
|
|
14819
|
+
.image[data-frame='none'] { border: 0; border-radius: 0; }
|
|
14797
14820
|
.image[data-size='sm'] { inline-size: var(--q1-space-8); block-size: var(--q1-space-8); }
|
|
14798
14821
|
.image[data-size='md'] { inline-size: var(--q1-control-height-default); block-size: var(--q1-control-height-default); }
|
|
14799
14822
|
.image[data-size='lg'] { inline-size: calc(var(--q1-space-6) * 2); block-size: calc(var(--q1-space-6) * 2); }
|