@q1travel/design-system 0.31.1 → 0.31.2
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/contracts/design.dark.md +2 -2
- package/contracts/design.md +2 -2
- package/contracts/implementation-map.md +5 -0
- package/contracts/interface-guidelines.md +1 -1
- package/contracts/table-migration.md +23 -2
- package/dist-pkg/design-system.d.ts +27 -8
- package/dist-pkg/design-system.js +2068 -1960
- package/dist-pkg/style.css +60 -25
- package/package.json +1 -1
package/dist-pkg/style.css
CHANGED
|
@@ -2133,6 +2133,16 @@
|
|
|
2133
2133
|
.table th.table__cell--select,
|
|
2134
2134
|
.table td.table__cell--select {
|
|
2135
2135
|
width: var(--q1-space-10);
|
|
2136
|
+
text-align: center;
|
|
2137
|
+
}
|
|
2138
|
+
|
|
2139
|
+
.table__cell--select > .control-option--bare {
|
|
2140
|
+
display: grid;
|
|
2141
|
+
margin: calc(-1 * var(--q1-space-1)) calc(-1 * var(--q1-space-2));
|
|
2142
|
+
}
|
|
2143
|
+
|
|
2144
|
+
.table__cell--select .control-option__visual {
|
|
2145
|
+
transform: none;
|
|
2136
2146
|
}
|
|
2137
2147
|
|
|
2138
2148
|
.table th.table__cell--align-center,
|
|
@@ -2163,7 +2173,7 @@
|
|
|
2163
2173
|
background: var(--table-cell-bg);
|
|
2164
2174
|
}
|
|
2165
2175
|
|
|
2166
|
-
.table tbody tr:has(.
|
|
2176
|
+
.table tbody tr:has(.table__cell--select input:checked) {
|
|
2167
2177
|
--table-cell-bg: var(--q1-table-row-bg-selected, var(--q1-color-bg-selected));
|
|
2168
2178
|
}
|
|
2169
2179
|
|
|
@@ -2231,27 +2241,11 @@
|
|
|
2231
2241
|
color: var(--q1-color-text-primary);
|
|
2232
2242
|
}
|
|
2233
2243
|
|
|
2234
|
-
.table__sort:focus-visible
|
|
2235
|
-
.table input[type='checkbox']:focus-visible {
|
|
2244
|
+
.table__sort:focus-visible {
|
|
2236
2245
|
outline: none;
|
|
2237
2246
|
box-shadow: var(--q1-shadow-focus);
|
|
2238
2247
|
}
|
|
2239
2248
|
|
|
2240
|
-
.table__checkbox-control {
|
|
2241
|
-
display: inline-flex;
|
|
2242
|
-
align-items: center;
|
|
2243
|
-
justify-content: center;
|
|
2244
|
-
min-width: var(--q1-space-6);
|
|
2245
|
-
min-height: var(--q1-space-6);
|
|
2246
|
-
margin: calc(-1 * var(--q1-space-1)) calc(-1 * var(--q1-space-2));
|
|
2247
|
-
border-radius: var(--q1-radius-1);
|
|
2248
|
-
cursor: pointer;
|
|
2249
|
-
}
|
|
2250
|
-
|
|
2251
|
-
.table__checkbox-control:has(input:disabled) {
|
|
2252
|
-
cursor: not-allowed;
|
|
2253
|
-
}
|
|
2254
|
-
|
|
2255
2249
|
/* 焦点环画在单元格上:单元格自带不透明底色,行上的阴影或 outline 会被单元格底色、
|
|
2256
2250
|
以及消费方的 sticky 列盖住。每格画上下两边,首末格补外侧一边,拼成整行的一圈。 */
|
|
2257
2251
|
.table tbody tr[tabindex='0']:focus-visible {
|
|
@@ -2293,7 +2287,7 @@
|
|
|
2293
2287
|
--table-cell-bg: var(--q1-table-row-bg-hover, var(--q1-color-bg-subtle));
|
|
2294
2288
|
}
|
|
2295
2289
|
|
|
2296
|
-
.table tbody tr.table__row--interactive:hover:has(.
|
|
2290
|
+
.table tbody tr.table__row--interactive:hover:has(.table__cell--select input:checked) {
|
|
2297
2291
|
--table-cell-bg: var(--q1-table-row-bg-selected-hover, var(--q1-color-bg-selected));
|
|
2298
2292
|
}
|
|
2299
2293
|
}
|
|
@@ -2304,7 +2298,7 @@
|
|
|
2304
2298
|
--table-cell-bg: color-mix(in srgb, var(--q1-table-row-bg-hover, var(--q1-color-bg-subtle)), var(--q1-color-text-primary) 8%);
|
|
2305
2299
|
}
|
|
2306
2300
|
|
|
2307
|
-
.table tbody tr.table__row--interactive:active:has(.
|
|
2301
|
+
.table tbody tr.table__row--interactive:active:has(.table__cell--select input:checked) {
|
|
2308
2302
|
--table-cell-bg: color-mix(
|
|
2309
2303
|
in srgb,
|
|
2310
2304
|
var(--q1-table-row-bg-selected-hover, var(--q1-color-bg-selected)),
|
|
@@ -2326,10 +2320,10 @@
|
|
|
2326
2320
|
}
|
|
2327
2321
|
|
|
2328
2322
|
@media (pointer: coarse), (any-pointer: coarse) {
|
|
2329
|
-
.
|
|
2323
|
+
.table__cell--select .control-option--bare,
|
|
2330
2324
|
.table__sort {
|
|
2331
|
-
min-width:
|
|
2332
|
-
min-height:
|
|
2325
|
+
min-width: var(--q1-touch-target-min);
|
|
2326
|
+
min-height: var(--q1-touch-target-min);
|
|
2333
2327
|
}
|
|
2334
2328
|
}
|
|
2335
2329
|
|
|
@@ -2803,6 +2797,22 @@
|
|
|
2803
2797
|
}
|
|
2804
2798
|
}
|
|
2805
2799
|
|
|
2800
|
+
.banner:not(.banner--announcement) .banner__button-action:not(:focus-visible) {
|
|
2801
|
+
box-shadow: none;
|
|
2802
|
+
}
|
|
2803
|
+
|
|
2804
|
+
.banner:not(.banner--announcement) .banner__button-action:not(:disabled, [aria-disabled='true']) {
|
|
2805
|
+
border: calc(var(--q1-space-1) / 4) solid var(--q1-color-border);
|
|
2806
|
+
background: var(--q1-color-bg-panel);
|
|
2807
|
+
}
|
|
2808
|
+
|
|
2809
|
+
@media (hover: hover) and (pointer: fine) {
|
|
2810
|
+
.banner:not(.banner--announcement) .banner__button-action:hover:not(:disabled, [aria-disabled='true']) {
|
|
2811
|
+
background: var(--q1-color-bg-subtle);
|
|
2812
|
+
border-color: var(--q1-color-border-strong);
|
|
2813
|
+
}
|
|
2814
|
+
}
|
|
2815
|
+
|
|
2806
2816
|
/* 页顶公告形态:透明底无边框、内容居中、16px 文案;
|
|
2807
2817
|
与页内卡条(tone 变体)分工,两种定位见页面使用原则。 */
|
|
2808
2818
|
.banner--announcement {
|
|
@@ -2980,18 +2990,21 @@
|
|
|
2980
2990
|
|
|
2981
2991
|
.banner--with-icon .banner__content,
|
|
2982
2992
|
.banner--with-icon > .banner__action,
|
|
2993
|
+
.banner--with-icon > .banner__button-action,
|
|
2983
2994
|
.banner--with-icon > .banner__close,
|
|
2984
2995
|
.banner--with-icon > .banner__actions {
|
|
2985
2996
|
grid-column: 2;
|
|
2986
2997
|
}
|
|
2987
2998
|
|
|
2988
2999
|
.banner:not(.banner--with-icon) > .banner__action,
|
|
3000
|
+
.banner:not(.banner--with-icon) > .banner__button-action,
|
|
2989
3001
|
.banner:not(.banner--with-icon) > .banner__close,
|
|
2990
3002
|
.banner:not(.banner--with-icon) > .banner__actions {
|
|
2991
3003
|
grid-column: 1;
|
|
2992
3004
|
}
|
|
2993
3005
|
|
|
2994
3006
|
.banner > .banner__action,
|
|
3007
|
+
.banner > .banner__button-action,
|
|
2995
3008
|
.banner > .banner__close,
|
|
2996
3009
|
.banner > .banner__actions {
|
|
2997
3010
|
justify-self: start;
|
|
@@ -3026,6 +3039,7 @@
|
|
|
3026
3039
|
|
|
3027
3040
|
@media (max-width: 48rem), (pointer: coarse), (any-pointer: coarse) {
|
|
3028
3041
|
.banner__action,
|
|
3042
|
+
.banner__button-action,
|
|
3029
3043
|
.banner__cta,
|
|
3030
3044
|
.banner__close {
|
|
3031
3045
|
min-height: calc(var(--q1-space-10) + var(--q1-space-1));
|
|
@@ -4231,10 +4245,14 @@ a[href]:has(> .book):focus-visible {
|
|
|
4231
4245
|
}
|
|
4232
4246
|
|
|
4233
4247
|
.tabs-control--line .tabs-control__tab:disabled {
|
|
4234
|
-
color: var(--q1-color-text-
|
|
4248
|
+
color: var(--q1-color-text-muted);
|
|
4235
4249
|
border-bottom-color: transparent;
|
|
4236
4250
|
}
|
|
4237
4251
|
|
|
4252
|
+
.tabs-control--line .tabs-control__tab:disabled[aria-selected='true'] {
|
|
4253
|
+
border-bottom-color: currentColor;
|
|
4254
|
+
}
|
|
4255
|
+
|
|
4238
4256
|
/* 面板承载任意内容:文字样式继承所在页面,自身不加内边距;与标签栏的间距由 .tabs-root 的 gap 提供,左缘与标签栏对齐。 */
|
|
4239
4257
|
.tabs-control__panel {
|
|
4240
4258
|
border-radius: var(--q1-radius-3);
|
|
@@ -10307,6 +10325,18 @@ a.q1-navigation__item[aria-disabled='true'] {
|
|
|
10307
10325
|
color: var(--q1-color-text-primary);
|
|
10308
10326
|
}
|
|
10309
10327
|
|
|
10328
|
+
.q1-navigation--horizontal .q1-navigation__item--disabled {
|
|
10329
|
+
color: var(--q1-color-text-muted);
|
|
10330
|
+
}
|
|
10331
|
+
|
|
10332
|
+
.q1-navigation .q1-navigation__item--disabled :is(.q1-navigation__item-description, .q1-navigation__item-badge, .q1-navigation__item-badge *) {
|
|
10333
|
+
color: inherit;
|
|
10334
|
+
}
|
|
10335
|
+
|
|
10336
|
+
.q1-navigation .q1-navigation__item--disabled .q1-navigation__item-badge .badge {
|
|
10337
|
+
background: var(--q1-color-bg-subtle);
|
|
10338
|
+
}
|
|
10339
|
+
|
|
10310
10340
|
@media (hover: hover) and (pointer: fine) {
|
|
10311
10341
|
.q1-navigation__item:hover:not(.q1-navigation__item--active):not(:active):not([aria-disabled='true']):not(:disabled),
|
|
10312
10342
|
.q1-navigation__group-trigger:hover:not(:active) {
|
|
@@ -11738,8 +11768,13 @@ a.q1-navigation__item[aria-disabled='true'] {
|
|
|
11738
11768
|
color: var(--q1-color-text-primary);
|
|
11739
11769
|
}
|
|
11740
11770
|
|
|
11741
|
-
.q1-navigation--line .q1-navigation__item--disabled {
|
|
11771
|
+
.q1-navigation--horizontal.q1-navigation--line .q1-navigation__item--disabled {
|
|
11742
11772
|
color: var(--q1-color-text-muted);
|
|
11773
|
+
border-bottom-color: currentColor;
|
|
11774
|
+
}
|
|
11775
|
+
|
|
11776
|
+
.q1-navigation--line .q1-navigation__item--disabled:not([aria-current]) {
|
|
11777
|
+
border-bottom-color: transparent;
|
|
11743
11778
|
}
|
|
11744
11779
|
|
|
11745
11780
|
@media (hover: hover) and (pointer: fine) {
|