@q1travel/design-system 0.30.0 → 0.30.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.
@@ -132,6 +132,7 @@
132
132
  --q1-color-bg-overlay: var(--q1-color-background-100);
133
133
  --q1-color-bg-hover: color-mix(in srgb, var(--q1-color-text-primary) 4%, transparent);
134
134
  --q1-color-bg-selected: var(--q1-color-primary-100);
135
+ --q1-color-bg-selected-neutral: var(--q1-color-gray-300);
135
136
  /* 表格行底色:单元格自带不透明底色,行状态只换取值,固定列与普通列同色、永不透出下层。
136
137
  半透明的 bg-hover 不能直接用于固定列——叠在已有底色的行上会双层加深。以下取值为预混结果:
137
138
  hover = bg-hover(text-primary 4%)叠在 bg-canvas 上;selected = bg-selected(本身不透明);
@@ -329,8 +330,10 @@
329
330
  /* 浮层发丝边与两层淡阴影;Drawer / Sheet 共用 modal,Toast 共用 popover。 */
330
331
  --q1-shadow-popover:
331
332
  0 0 0 1px var(--q1-color-gray-alpha-200),
333
+ 0 1px 1px color-mix(in srgb, var(--q1-color-shadow) 2%, transparent),
332
334
  0 4px 8px -4px color-mix(in srgb, var(--q1-color-shadow) 4%, transparent),
333
- 0 16px 24px -8px color-mix(in srgb, var(--q1-color-shadow) 6%, transparent);
335
+ 0 16px 24px -8px color-mix(in srgb, var(--q1-color-shadow) 6%, transparent),
336
+ 0 0 0 1px var(--q1-color-background-200);
334
337
  --q1-shadow-modal:
335
338
  0 0 0 1px var(--q1-color-gray-alpha-200),
336
339
  0 8px 24px -12px color-mix(in srgb, var(--q1-color-shadow) 12%, transparent),
@@ -477,6 +480,7 @@
477
480
  --q1-color-bg-overlay: var(--q1-color-gray-300);
478
481
  --q1-color-bg-hover: color-mix(in srgb, var(--q1-color-text-primary) 6%, transparent);
479
482
  --q1-color-bg-selected: #1f1e38;
483
+ --q1-color-bg-selected-neutral: var(--q1-color-gray-300);
480
484
  /* 暗色预混:hover = text-primary 6% 叠在 bg-canvas 上;selected-hover 取半强度 3%。 */
481
485
  --q1-table-row-bg-hover: #1f1f1f;
482
486
  --q1-table-row-bg-selected-hover: #25243d;
@@ -647,20 +651,25 @@
647
651
  /* 选中态:表达「这一项是当前项」,与 variant 正交——任何 variant 都可以处于选中态,
648
652
  所以它只改底色与描边,不动 color,让各 variant 的前景语义(danger 红、warning 琥珀)留存。
649
653
 
650
- 用 bg-subtle 加实边而不是换成 primary 底:选中态出现在按钮组里,一组按钮中有一个
654
+ 用中性选中底色加实边而不是换成 primary 底:选中态出现在按钮组里,一组按钮中有一个
651
655
  变成主色会把「当前项」误读成「推荐操作」,两者在同一行里必须区分得开。
652
656
 
653
657
  选中优先于 hover:指针停在已选中项上时不再抬色,否则「已选中」和「悬停未选中」会撞成同一个外观。 */
654
658
  .button--selected:not(:disabled):not([aria-disabled='true']) {
655
659
  border-color: var(--q1-color-text-secondary);
660
+ background: var(--q1-color-bg-selected-neutral);
661
+ font-weight: var(--q1-font-weight-semibold);
662
+ }
663
+
664
+ .button--warning.button--selected:not(:disabled):not([aria-disabled='true']),
665
+ .button--danger.button--selected:not(:disabled):not([aria-disabled='true']) {
656
666
  background: var(--q1-color-bg-subtle);
657
- font-weight: var(--q1-font-weight-medium);
658
667
  }
659
668
 
660
669
  /* ghost 选中:ghost 静止无边框,选中时只浮出底色,补边框会让它在按钮组里比同伴高一层。 */
661
670
  .button--ghost.button--selected:not(:disabled):not([aria-disabled='true']) {
662
671
  border-color: transparent;
663
- background: var(--q1-color-bg-subtle);
672
+ background: var(--q1-color-bg-selected-neutral);
664
673
  }
665
674
 
666
675
  /* primary 已是最强调层级,再叠选中底色只会更糊;它的选中态用按下档的深色表达。 */
@@ -669,11 +678,27 @@
669
678
  background: var(--q1-color-action-primary-press);
670
679
  }
671
680
 
672
- .button:disabled {
681
+ .button:disabled:not(.button--busy) {
673
682
  cursor: not-allowed;
674
683
  opacity: 0.48;
675
684
  }
676
685
 
686
+ /* 忙态(busy)与加载态(loading)同为「进行中」,外观一致:是「已提交、正在处理」而非「不可用」,也不能还像可点:统一换成灰阶底色与边框,
687
+ 不降整体 opacity,文字与转圈改用更深一档的次要文字色以保证对比度;
688
+ 与禁用的区别靠满强度、转圈与更深前景。原生 disabled 只负责阻止重复提交。 */
689
+ .button.button--busy,
690
+ .button.button--loading {
691
+ border-color: var(--q1-color-border);
692
+ background: var(--q1-color-bg-subtle);
693
+ color: var(--q1-color-text-secondary);
694
+ }
695
+
696
+ .button--ghost.button--busy,
697
+ .button--ghost.button--loading {
698
+ border-color: transparent;
699
+ background: transparent;
700
+ }
701
+
677
702
  .button--loading,
678
703
  .button.button--busy {
679
704
  cursor: progress;
@@ -770,12 +795,17 @@
770
795
 
771
796
  .button--icon.button--selected:not(:disabled):not([aria-disabled='true']):hover {
772
797
  border-color: var(--q1-color-text-secondary);
798
+ background: var(--q1-color-bg-selected-neutral);
799
+ }
800
+
801
+ .button--warning.button--icon.button--selected:not(:disabled):not([aria-disabled='true']):hover,
802
+ .button--danger.button--icon.button--selected:not(:disabled):not([aria-disabled='true']):hover {
773
803
  background: var(--q1-color-bg-subtle);
774
804
  }
775
805
 
776
806
  .button--ghost.button--icon.button--selected:not(:disabled):not([aria-disabled='true']):hover {
777
807
  border-color: transparent;
778
- background: var(--q1-color-bg-subtle);
808
+ background: var(--q1-color-bg-selected-neutral);
779
809
  }
780
810
 
781
811
  .button--primary.button--icon.button--selected:not(:disabled):not([aria-disabled='true']):hover {
@@ -2064,6 +2094,7 @@
2064
2094
  }
2065
2095
 
2066
2096
  .table thead th {
2097
+ background: var(--q1-table-header-bg, transparent);
2067
2098
  border-bottom: calc(var(--q1-space-1) / 4) solid var(--q1-color-border);
2068
2099
  color: var(--q1-color-text-primary);
2069
2100
  font-weight: var(--q1-font-weight-medium);
@@ -2117,7 +2148,7 @@
2117
2148
  position: sticky;
2118
2149
  top: 0;
2119
2150
  z-index: 1;
2120
- background: var(--q1-table-row-bg, var(--q1-color-bg-canvas));
2151
+ background: var(--q1-table-header-bg, var(--q1-table-row-bg, var(--q1-color-bg-canvas)));
2121
2152
  }
2122
2153
 
2123
2154
  .table__sort {
@@ -2924,6 +2955,20 @@
2924
2955
  top: 0;
2925
2956
  right: 0;
2926
2957
  }
2958
+
2959
+ /* 关闭钮贴着卡条右上角,全宽时外扩焦点环会被视口边缘裁切;改为内嵌环,四边都落在钮自身框内。 */
2960
+ .banner:not(.banner--announcement, .banner--progress) .banner__close:focus-visible {
2961
+ box-shadow: none;
2962
+ }
2963
+
2964
+ .banner:not(.banner--announcement, .banner--progress) .banner__close:focus-visible::after {
2965
+ content: '';
2966
+ position: absolute;
2967
+ inset: var(--q1-space-1);
2968
+ border-radius: var(--q1-radius-2);
2969
+ box-shadow: inset 0 0 0 calc(var(--q1-space-1) / 2) var(--q1-color-focus);
2970
+ pointer-events: none;
2971
+ }
2927
2972
  }
2928
2973
 
2929
2974
  @media (max-width: 48rem), (pointer: coarse), (any-pointer: coarse) {
@@ -4596,7 +4641,7 @@ a[href]:has(> .book):focus-visible {
4596
4641
  .spinner--info { color: var(--q1-color-status-info); }
4597
4642
  .spinner--inherit { color: inherit; }
4598
4643
 
4599
- /* 辐条角度与动画延迟由组件按辐条数内联计算(辐条数随尺寸增减)。 */
4644
+ /* 辐条角度、动画延迟与静态时的渐隐透明度由组件按辐条数内联计算(辐条数随尺寸增减);减少动效时只保留静态渐隐。 */
4600
4645
  .spinner__bar {
4601
4646
  position: absolute;
4602
4647
  top: 0;
@@ -4605,7 +4650,6 @@ a[href]:has(> .book):focus-visible {
4605
4650
  height: calc(var(--spinner-size) * 0.26);
4606
4651
  border-radius: calc(var(--spinner-size) * 0.04);
4607
4652
  background: currentColor;
4608
- opacity: 0.3;
4609
4653
  transform-origin: 50% calc(var(--spinner-size) * 0.5);
4610
4654
  }
4611
4655
 
@@ -4643,7 +4687,6 @@ a[href]:has(> .book):focus-visible {
4643
4687
  display: inline-block;
4644
4688
  border-radius: 50%;
4645
4689
  background: currentColor;
4646
- opacity: 0.6;
4647
4690
  }
4648
4691
 
4649
4692
  @media (prefers-reduced-motion: no-preference) {
@@ -5348,7 +5391,9 @@ a[href]:has(> .book):focus-visible {
5348
5391
 
5349
5392
  .empty-state__actions {
5350
5393
  display: flex;
5394
+ flex-wrap: wrap;
5351
5395
  align-items: center;
5396
+ justify-content: center;
5352
5397
  gap: var(--q1-space-3);
5353
5398
  margin-top: var(--q1-space-3);
5354
5399
  }
@@ -6031,7 +6076,6 @@ a.context-card__trigger {
6031
6076
  border: 1px solid var(--q1-color-border);
6032
6077
  border-radius: var(--q1-radius-3);
6033
6078
  background: var(--q1-color-bg-panel);
6034
- max-width: 400px;
6035
6079
  }
6036
6080
 
6037
6081
  .q1-card__text {
@@ -6112,8 +6156,6 @@ a.context-card__trigger {
6112
6156
  特异性用 .q1-card.q1-card--row(0,2,0) 压过可点卡片的 a.q1-card(0,1,1),否则 <a> 卡片的 display:block 会把 flex 打回竖排。 */
6113
6157
  .q1-card.q1-card--row:not([hidden]) {
6114
6158
  display: flex;
6115
- /* 横排指标块并列需要空间,解除默认 400px 限宽,充满容器(对齐横排充满 demo 框)。 */
6116
- max-width: none;
6117
6159
  }
6118
6160
 
6119
6161
  .q1-card--row .q1-card__section {
@@ -9007,6 +9049,24 @@ a.q1-card:focus-visible {
9007
9049
  line-height: var(--q1-line-height-heading-20-strong);
9008
9050
  color: var(--q1-color-text-primary);
9009
9051
  }
9052
+ /* 带描述:标题与导语同列,导语与标题相隔 space-2,与正文相隔 space-5。 */
9053
+ .modal__header--described {
9054
+ padding-bottom: var(--q1-space-5);
9055
+ }
9056
+ .modal__heading {
9057
+ min-width: 0;
9058
+ }
9059
+ .modal__description {
9060
+ margin-top: var(--q1-space-2);
9061
+ font-size: var(--q1-font-size-label-14);
9062
+ font-weight: var(--q1-font-weight-regular);
9063
+ line-height: var(--q1-line-height-label-14);
9064
+ color: var(--q1-color-text-secondary);
9065
+ }
9066
+ .modal__dialog:focus,
9067
+ .modal__dialog:focus-visible {
9068
+ outline: none;
9069
+ }
9010
9070
  .modal__close {
9011
9071
  flex: none;
9012
9072
  display: grid;
@@ -9462,8 +9522,15 @@ a.q1-card:focus-visible {
9462
9522
  align-items: center;
9463
9523
  justify-content: space-between;
9464
9524
  gap: var(--q1-space-3);
9525
+ box-sizing: content-box;
9526
+ min-height: var(--q1-space-7);
9465
9527
  padding: var(--q1-space-6) var(--q1-space-6) var(--q1-space-4);
9466
9528
  }
9529
+ @media (pointer: coarse), (any-pointer: coarse) {
9530
+ .sheet__header {
9531
+ min-height: var(--q1-touch-target-min);
9532
+ }
9533
+ }
9467
9534
  .sheet__title {
9468
9535
  margin: 0;
9469
9536
  font-size: 16px;
@@ -9474,8 +9541,8 @@ a.q1-card:focus-visible {
9474
9541
  flex: none;
9475
9542
  display: grid;
9476
9543
  place-items: center;
9477
- width: 28px;
9478
- height: 28px;
9544
+ width: var(--q1-space-7);
9545
+ height: var(--q1-space-7);
9479
9546
  border: 0;
9480
9547
  border-radius: var(--q1-radius-2);
9481
9548
  background: transparent;
@@ -9494,6 +9561,10 @@ a.q1-card:focus-visible {
9494
9561
  height: 44px;
9495
9562
  }
9496
9563
  }
9564
+ .sheet__panel:focus,
9565
+ .sheet__panel:focus-visible {
9566
+ outline: none;
9567
+ }
9497
9568
  .sheet__close:focus-visible {
9498
9569
  outline: none;
9499
9570
  box-shadow: var(--q1-shadow-focus);
@@ -11268,6 +11339,87 @@ a.q1-navigation__item[aria-disabled='true'] {
11268
11339
  display: none;
11269
11340
  }
11270
11341
 
11342
+ /* 未知总量以往返移动表示持续等待;减弱动态时保留居中填充段,不伪装完成比例。 */
11343
+ .progress--indeterminate .progress__fill {
11344
+ width: 40%;
11345
+ transform: translateX(75%);
11346
+ animation: progress-indeterminate calc(var(--q1-duration-slow) * 4) var(--q1-ease-in-out) infinite alternate;
11347
+ }
11348
+
11349
+ @keyframes progress-indeterminate {
11350
+ from { transform: translateX(0); }
11351
+ to { transform: translateX(150%); }
11352
+ }
11353
+
11354
+ @media (prefers-reduced-motion: reduce) {
11355
+ .progress--indeterminate .progress__fill {
11356
+ animation: none;
11357
+ transform: translateX(75%);
11358
+ }
11359
+ }
11360
+
11361
+ /* Optional SearchDialog content slots. */
11362
+ .search-dialog__section + .search-dialog__section {
11363
+ margin-top: var(--q1-space-2);
11364
+ padding-top: var(--q1-space-2);
11365
+ border-top: calc(var(--q1-space-1) / 4) solid var(--q1-color-border);
11366
+ }
11367
+ .search-dialog__option--slots {
11368
+ flex-direction: row;
11369
+ align-items: center;
11370
+ justify-content: flex-start;
11371
+ column-gap: var(--q1-space-2);
11372
+ }
11373
+ .search-dialog__option-copy {
11374
+ display: flex;
11375
+ flex: 1;
11376
+ min-width: 0;
11377
+ flex-direction: column;
11378
+ overflow-wrap: anywhere;
11379
+ }
11380
+ .search-dialog__option-icon,
11381
+ .search-dialog__option-suffix,
11382
+ .search-dialog__option-keybind {
11383
+ position: relative;
11384
+ z-index: 1;
11385
+ flex-shrink: 0;
11386
+ }
11387
+ .search-dialog__option-icon {
11388
+ display: inline-flex;
11389
+ color: var(--q1-color-text-secondary);
11390
+ }
11391
+ .search-dialog__option-icon > svg {
11392
+ width: var(--q1-space-4);
11393
+ height: var(--q1-space-4);
11394
+ }
11395
+ .search-dialog__option-suffix {
11396
+ max-width: 30%;
11397
+ overflow-wrap: anywhere;
11398
+ }
11399
+ .search-dialog__option-suffix,
11400
+ .search-dialog__section-status,
11401
+ .search-dialog__footer {
11402
+ color: var(--q1-color-text-secondary);
11403
+ font-size: var(--q1-font-size-label-13);
11404
+ line-height: var(--q1-line-height-label-13);
11405
+ }
11406
+ .search-dialog__section-status {
11407
+ display: flex;
11408
+ flex-wrap: wrap;
11409
+ align-items: center;
11410
+ gap: var(--q1-space-2);
11411
+ padding: var(--q1-space-2) var(--q1-space-3);
11412
+ }
11413
+ .search-dialog__footer {
11414
+ display: flex;
11415
+ flex-shrink: 0;
11416
+ flex-wrap: wrap;
11417
+ align-items: center;
11418
+ gap: var(--q1-space-2);
11419
+ padding: var(--q1-space-3);
11420
+ border-top: calc(var(--q1-space-1) / 4) solid var(--q1-color-border);
11421
+ }
11422
+
11271
11423
  .q1-navigation--line {
11272
11424
  --q1-navigation-row-min-height: calc(var(--q1-space-10) + var(--q1-space-1));
11273
11425
 
@@ -11347,7 +11499,7 @@ a.q1-navigation__item[aria-disabled='true'] {
11347
11499
  .q1-navigation--horizontal.q1-navigation--line .q1-navigation__item {
11348
11500
  min-block-size: var(--q1-touch-target-min);
11349
11501
  min-inline-size: var(--q1-touch-target-min);
11350
- justify-content: center;
11502
+ justify-content: flex-start;
11351
11503
  }
11352
11504
 
11353
11505
  .q1-navigation--line .q1-navigation__item:is(.q1-navigation__item--active, [aria-current='page']) {
@@ -12004,6 +12156,50 @@ a.q1-navigation__item[aria-disabled='true'] {
12004
12156
  background: var(--q1-color-gray-500);
12005
12157
  }
12006
12158
 
12159
+ /* RadioGroup 无边框单选组:fieldset 只承担分组语义,无边框、无背景、无内边距;组名复用 .label 的字号与颜色。 */
12160
+ .radio-group {
12161
+ min-width: 0;
12162
+ margin: 0;
12163
+ padding: 0;
12164
+ border: 0;
12165
+ background: none;
12166
+ }
12167
+
12168
+ .radio-group + .radio-group {
12169
+ margin-top: var(--q1-space-6);
12170
+ }
12171
+
12172
+ .radio-group__legend {
12173
+ padding: 0;
12174
+ margin-bottom: var(--q1-space-2);
12175
+ }
12176
+
12177
+ .radio-group__description {
12178
+ margin: 0 0 var(--q1-space-2);
12179
+ color: var(--q1-color-text-secondary);
12180
+ font-size: var(--q1-font-size-label-13);
12181
+ line-height: var(--q1-line-height-label-13);
12182
+ }
12183
+
12184
+ /* 选项纵向排列,行距取 16px;每项收缩到内容宽度,避免整行空白区也能点中选项。 */
12185
+ .radio-group__options {
12186
+ display: flex;
12187
+ flex-direction: column;
12188
+ align-items: flex-start;
12189
+ gap: var(--q1-space-4);
12190
+ }
12191
+
12192
+ .radio-group__error:not(:empty) {
12193
+ margin-top: var(--q1-space-2);
12194
+ }
12195
+
12196
+ /* 粗指针下每项自带 --q1-touch-target-min 的最小高度,项与项首尾相接即满足命中区,不再叠加行距。 */
12197
+ @media (pointer: coarse) {
12198
+ .radio-group__options {
12199
+ gap: 0;
12200
+ }
12201
+ }
12202
+
12007
12203
  .combobox__option {
12008
12204
  position: relative;
12009
12205
  isolation: isolate;
@@ -12054,10 +12250,11 @@ a.q1-navigation__item[aria-disabled='true'] {
12054
12250
  .multi-combobox__remove:focus-visible { outline: none; box-shadow: var(--q1-shadow-focus); }
12055
12251
  .multi-combobox__placeholder { color: var(--q1-color-text-muted); }
12056
12252
  .multi-combobox__arrow { flex: none; pointer-events: none; color: var(--q1-color-text-secondary); }
12057
- .multi-combobox__popup { box-sizing: border-box; max-width: calc(100vw - var(--q1-space-6)); }
12058
- .multi-combobox__panel { display: grid; gap: var(--q1-space-2); min-width: 0; }
12253
+ .multi-combobox__popup { box-sizing: border-box; display: flex; flex-direction: column; max-width: calc(100vw - var(--q1-space-6)); }
12254
+ .multi-combobox__panel { display: flex; flex-direction: column; flex: 1 1 auto; gap: var(--q1-space-2); min-width: 0; min-height: 0; }
12255
+ .multi-combobox__panel > :not(.multi-combobox__list) { flex: none; }
12059
12256
  .multi-combobox__search { min-width: 0; width: 100%; }
12060
- .multi-combobox__list { list-style: none; margin: 0; padding: 0; max-height: min(calc(var(--q1-space-10) * 6), 40vh); overflow-y: auto; overscroll-behavior: contain; }
12257
+ .multi-combobox__list { list-style: none; margin: 0; padding: 0; flex: 1 1 auto; min-height: 0; max-height: min(calc(var(--q1-space-10) * 6), 40vh); overflow-y: auto; overscroll-behavior: contain; }
12061
12258
  .multi-combobox__option { box-sizing: border-box; min-height: var(--q1-control-height-default); justify-content: space-between; }
12062
12259
  .multi-combobox__option[data-active] { background: var(--q1-color-bg-hover); }
12063
12260
  .multi-combobox__option[aria-disabled] { color: var(--q1-color-text-muted); cursor: default; }
@@ -13874,7 +14071,6 @@ a.q1-navigation__item[aria-disabled='true'] {
13874
14071
  line-height: var(--q1-line-height-copy-14);
13875
14072
  }
13876
14073
  .filter-option-panel__search { min-width: 0; }
13877
- .filter-option-panel__search:focus-visible { outline: none; box-shadow: var(--q1-shadow-focus); }
13878
14074
  .filter-option-panel__list {
13879
14075
  list-style: none;
13880
14076
  margin: 0;
@@ -13901,7 +14097,11 @@ a.q1-navigation__item[aria-disabled='true'] {
13901
14097
  .filter-option-panel__description { color: var(--q1-color-text-secondary); font-size: var(--q1-font-size-label-13); }
13902
14098
  .filter-option-panel__option svg { flex-shrink: 0; }
13903
14099
  .filter-option-panel__status { display: grid; justify-items: start; gap: var(--q1-space-3); padding: var(--q1-space-3); color: var(--q1-color-text-secondary); overflow-wrap: anywhere; }
13904
- @media (pointer: coarse), (any-pointer: coarse) { .filter-option-panel__option { min-height: var(--q1-touch-target-min); } }
14100
+ @media (pointer: coarse), (any-pointer: coarse) {
14101
+ .filter-option-panel__option { min-height: var(--q1-touch-target-min); }
14102
+ .filter-option-panel__list { max-height: round(down, min(calc(var(--q1-space-10) * 6), 40vh), var(--q1-touch-target-min)); }
14103
+ .filter-option-panel__search.form-control { min-height: var(--q1-touch-target-min); font-size: var(--q1-font-size-copy-16); line-height: var(--q1-line-height-copy-16); }
14104
+ }
13905
14105
 
13906
14106
  .toggle-group {
13907
14107
  display: inline-flex;
@@ -14471,6 +14671,58 @@ a.q1-navigation__item[aria-disabled='true'] {
14471
14671
  margin-top: calc((var(--field-error-line-height) - var(--q1-space-4)) / 2);
14472
14672
  }
14473
14673
 
14674
+ /* 搜索行由外框统一承载边缘与焦点,输入节点只负责编辑。 */
14675
+ .search-input,
14676
+ .input-control:has(.multi-combobox__search, .filter-option-panel__search) {
14677
+ border: 0;
14678
+ border-radius: var(--q1-radius-2);
14679
+ background: var(--q1-input-bg, var(--q1-color-bg-sunken));
14680
+ box-shadow: 0 0 0 calc(var(--q1-space-1) / 4) var(--q1-input-border, var(--q1-color-border-control));
14681
+ }
14682
+
14683
+ .search-input:has(.form-control--xs) { border-radius: var(--q1-radius-1); }
14684
+ .search-input:has(.form-control--lg) { border-radius: var(--q1-radius-3); }
14685
+
14686
+ .search-input:hover:not(:focus-within):not(:has(:disabled, [aria-invalid='true'])),
14687
+ .input-control:has(.multi-combobox__search, .filter-option-panel__search):hover:not(:focus-within) {
14688
+ box-shadow: 0 0 0 calc(var(--q1-space-1) / 4) var(--q1-color-gray-800);
14689
+ }
14690
+
14691
+ .search-input:has(.search-input__field:focus),
14692
+ .input-control:has(.form-control.multi-combobox__search:focus, .form-control.filter-option-panel__search:focus) {
14693
+ border: 0;
14694
+ box-shadow: 0 0 0 calc(var(--q1-space-1) / 4) var(--q1-input-border-focus, var(--q1-color-focus)),
14695
+ var(--q1-input-focus-ring, var(--q1-shadow-focus-input));
14696
+ }
14697
+
14698
+ .search-input .search-input__field,
14699
+ .input-control .multi-combobox__search,
14700
+ .input-control .filter-option-panel__search {
14701
+ border: 0;
14702
+ border-radius: inherit;
14703
+ background: transparent;
14704
+ box-shadow: none;
14705
+ outline: none;
14706
+ }
14707
+
14708
+ .search-input:has(:disabled) { background: var(--q1-color-gray-100); }
14709
+ .search-input:has([aria-invalid='true']),
14710
+ .form-field--error .search-input { box-shadow: var(--q1-shadow-focus-input-danger); }
14711
+ .search-input .search-input__field[aria-invalid='true'],
14712
+ .form-field--error .search-input .search-input__field { box-shadow: none; }
14713
+
14714
+ @media (forced-colors: active) {
14715
+ .search-input,
14716
+ .input-control:has(.multi-combobox__search, .filter-option-panel__search) {
14717
+ outline: calc(var(--q1-space-1) / 4) solid CanvasText;
14718
+ }
14719
+ .search-input:focus-within,
14720
+ .input-control:has(.form-control.multi-combobox__search:focus, .form-control.filter-option-panel__search:focus) {
14721
+ border: 0;
14722
+ outline: calc(var(--q1-space-1) / 2) solid Highlight;
14723
+ }
14724
+ }
14725
+
14474
14726
  /* 浅色白纱保留底层可读性;暗色沿用各浮层既有压暗强度。 */
14475
14727
  .modal__backdrop,
14476
14728
  .drawer__backdrop,
@@ -124,6 +124,7 @@
124
124
  --q1-color-bg-overlay: var(--q1-color-background-100);
125
125
  --q1-color-bg-hover: color-mix(in srgb, var(--q1-color-text-primary) 4%, transparent);
126
126
  --q1-color-bg-selected: var(--q1-color-primary-100);
127
+ --q1-color-bg-selected-neutral: var(--q1-color-gray-300);
127
128
  --q1-table-row-bg: var(--q1-color-bg-canvas);
128
129
  --q1-table-row-bg-hover: #f6f6f6;
129
130
  --q1-table-row-bg-selected: var(--q1-color-bg-selected);
@@ -303,8 +304,10 @@
303
304
  --q1-shadow-focus-input-danger: 0 0 0 1px color-mix(in srgb, var(--q1-color-status-danger) 34%, transparent), 0 0 0 4px color-mix(in srgb, var(--q1-color-status-danger) 16%, transparent);
304
305
  --q1-shadow-focus-danger: var(--q1-shadow-focus-input-danger);
305
306
  --q1-shadow-popover: 0 0 0 1px var(--q1-color-gray-alpha-200),
307
+ 0 1px 1px color-mix(in srgb, var(--q1-color-shadow) 2%, transparent),
306
308
  0 4px 8px -4px color-mix(in srgb, var(--q1-color-shadow) 4%, transparent),
307
- 0 16px 24px -8px color-mix(in srgb, var(--q1-color-shadow) 6%, transparent);
309
+ 0 16px 24px -8px color-mix(in srgb, var(--q1-color-shadow) 6%, transparent),
310
+ 0 0 0 1px var(--q1-color-background-200);
308
311
  --q1-shadow-modal: 0 0 0 1px var(--q1-color-gray-alpha-200),
309
312
  0 8px 24px -12px color-mix(in srgb, var(--q1-color-shadow) 12%, transparent),
310
313
  0 32px 72px -12px color-mix(in srgb, var(--q1-color-shadow) 6%, transparent);
@@ -446,6 +449,7 @@
446
449
  --q1-color-bg-overlay: var(--q1-color-gray-300);
447
450
  --q1-color-bg-hover: color-mix(in srgb, var(--q1-color-text-primary) 6%, transparent);
448
451
  --q1-color-bg-selected: #1f1e38;
452
+ --q1-color-bg-selected-neutral: var(--q1-color-gray-300);
449
453
  --q1-table-row-bg: var(--q1-color-bg-canvas);
450
454
  --q1-table-row-bg-hover: #1f1f1f;
451
455
  --q1-table-row-bg-selected: var(--q1-color-bg-selected);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@q1travel/design-system",
3
- "version": "0.30.0",
3
+ "version": "0.30.1",
4
4
  "description": "React components, design tokens, and interface contracts for q1travel products.",
5
5
  "keywords": [
6
6
  "react",
@@ -53,11 +53,11 @@
53
53
  "preview": "vite preview --host 127.0.0.1",
54
54
  "check:shell": "npm run sync:contracts && node scripts/check-shell.mjs && node scripts/check-token-package.mjs && npm run check:release-provenance",
55
55
  "check:browser:strictmode": "node scripts/check-browser.mjs --strictmode-ref",
56
- "check:browser": "node --test scripts/devtools-connection.test.mjs && npm run check:browser:strictmode && node scripts/check-browser.mjs --note && node scripts/check-browser.mjs && node scripts/check-clearable-input-browser.mjs && node scripts/check-calendar-browser.mjs && node scripts/check-banner-browser.mjs && node scripts/check-button-link-browser.mjs && node scripts/check-button-browser.mjs && node scripts/check-trailing-icon-padding-browser.mjs && node scripts/check-overlay-theme-browser.mjs && node scripts/check-browser-component-browser.mjs",
57
- "check:package-api": "node scripts/check-package-api.mjs && node --test scripts/check-multi-combobox-contract.test.mjs && node --test scripts/check-q1-design-lint.test.mjs scripts/check-q1-design-bin-entry.test.mjs && node --test scripts/check-json-view-contract.test.mjs && node --test scripts/check-verification-code-input.test.mjs && node --test scripts/check-bare-field-error.test.mjs scripts/check-label-hidden-contract.test.mjs scripts/check-required-indicator-contract.test.mjs scripts/check-spinner-inherit-contract.test.mjs && node --test scripts/check-controls-contract.test.mjs && node --test scripts/check-pagination-contract.test.mjs && node --test scripts/check-table-core.test.mjs scripts/check-table-interaction.test.mjs scripts/check-table-layout.test.mjs && node --test scripts/check-contrast-contract.test.mjs && node --test scripts/check-optical-alignment-contract.test.mjs && node --test scripts/check-overlay-coordination.test.mjs scripts/check-sheet-contract.test.mjs && node --test scripts/check-choicebox-contract.test.mjs && node --test scripts/check-clearable-input-contract.test.mjs && node --test scripts/check-card-contract.test.mjs && node --test scripts/check-book-contract.test.mjs && node --test scripts/check-breadcrumbs-contract.test.mjs && node --test scripts/check-description-contract.test.mjs && node --test scripts/check-error-message-contract.test.mjs && node --test scripts/check-show-more-contract.test.mjs && node --test scripts/check-load-more-button-contract.test.mjs && node --test scripts/check-banner-contract.test.mjs && node --test scripts/check-project-banner-contract.test.mjs && node --test scripts/check-note-contract.test.mjs && node --test scripts/check-feedback-contract.test.mjs && node --test scripts/check-page-feedback-contract.test.mjs && node --test scripts/check-drawer-gesture.test.mjs && node --test scripts/check-checkbox-circle-contract.test.mjs && node --test scripts/check-chat-contract.test.mjs && node --test scripts/check-calendar-single-contract.test.mjs && node --test scripts/check-hover-card-contract.test.mjs && node --test scripts/check-bare-field-error.test.mjs && node --test scripts/check-controls-contract.test.mjs scripts/check-control-size-contract.test.mjs && node --test scripts/check-composer-dots-menu-contract.test.mjs && node --test scripts/check-filter-option-panel-contract.test.mjs && npm run check:release-diff",
56
+ "check:browser": "node --test scripts/devtools-connection.test.mjs scripts/vite-server-lifecycle.test.mjs scripts/chromium-launch.test.mjs scripts/chromium-recovery.test.mjs scripts/chromium-ownership.test.mjs scripts/cdp-recovery.test.mjs && npm run check:browser:strictmode && node scripts/check-browser.mjs --note && node scripts/check-browser.mjs && node scripts/check-clearable-input-browser.mjs && node scripts/check-calendar-browser.mjs && node scripts/check-banner-browser.mjs && node scripts/check-button-link-browser.mjs && node scripts/check-button-browser.mjs && node scripts/check-trailing-icon-padding-browser.mjs && node scripts/check-overlay-theme-browser.mjs && node scripts/check-browser-component-browser.mjs",
57
+ "check:package-api": "node scripts/check-package-api.mjs && node --test scripts/check-multi-combobox-contract.test.mjs && node --test scripts/check-q1-design-lint.test.mjs scripts/check-q1-design-bin-entry.test.mjs && node --test scripts/check-json-view-contract.test.mjs && node --test scripts/check-verification-code-input.test.mjs && node --test scripts/check-bare-field-error.test.mjs scripts/check-label-hidden-contract.test.mjs scripts/check-required-indicator-contract.test.mjs scripts/check-spinner-inherit-contract.test.mjs && node --test scripts/check-controls-contract.test.mjs && node --test scripts/check-pagination-contract.test.mjs && node --test scripts/check-table-core.test.mjs scripts/check-table-interaction.test.mjs scripts/check-table-layout.test.mjs && node --test scripts/check-contrast-contract.test.mjs && node --test scripts/check-optical-alignment-contract.test.mjs && node --test scripts/check-overlay-coordination.test.mjs scripts/check-sheet-contract.test.mjs && node --test scripts/check-choicebox-contract.test.mjs && node --test scripts/check-radio-group-contract.test.mjs && node --test scripts/check-clearable-input-contract.test.mjs && node --test scripts/check-card-contract.test.mjs && node --test scripts/check-book-contract.test.mjs && node --test scripts/check-breadcrumbs-contract.test.mjs && node --test scripts/check-description-contract.test.mjs && node --test scripts/check-error-message-contract.test.mjs && node --test scripts/check-show-more-contract.test.mjs && node --test scripts/check-load-more-button-contract.test.mjs && node --test scripts/check-banner-contract.test.mjs && node --test scripts/check-project-banner-contract.test.mjs && node --test scripts/check-note-contract.test.mjs && node --test scripts/check-feedback-contract.test.mjs && node --test scripts/check-page-feedback-contract.test.mjs && node --test scripts/check-drawer-gesture.test.mjs && node --test scripts/check-checkbox-circle-contract.test.mjs && node --test scripts/check-chat-contract.test.mjs && node --test scripts/check-calendar-single-contract.test.mjs && node --test scripts/check-hover-card-contract.test.mjs && node --test scripts/check-bare-field-error.test.mjs && node --test scripts/check-controls-contract.test.mjs scripts/check-control-size-contract.test.mjs && node --test scripts/check-composer-dots-menu-contract.test.mjs && node --test scripts/check-filter-option-panel-contract.test.mjs && npm run check:release-diff",
58
58
  "check:release-diff": "node --test scripts/check-release-artifact-diff.test.mjs && node scripts/check-release-artifact-diff.mjs",
59
59
  "check:release-provenance": "node --test scripts/check-release-provenance.test.mjs && node scripts/check-release-provenance.mjs",
60
- "check:release-sync": "node --test scripts/release-sync.test.mjs",
60
+ "check:release-sync": "node --test scripts/release-sync.test.mjs scripts/release-preview-version.test.mjs",
61
61
  "release:verify": "node scripts/release-sync.mjs --verify-only",
62
62
  "release:sync": "node scripts/release-sync.mjs",
63
63
  "check": "npm run check:release-sync && npm run build && npm run check:shell && npm run check:browser && npm run build:pkg",