@q1travel/design-system 0.30.4 → 0.30.5

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.
@@ -6466,9 +6466,11 @@ a.q1-card:focus-visible {
6466
6466
  padding-right: 72px;
6467
6467
  }
6468
6468
 
6469
- /* Esc 键帽是唯一清除入口:隐藏 WebKit 原生 search ✕,避免双清除(普通 type=search 的 Input 不隐藏)。 */
6469
+ /* SearchInput 可按 Esc 清除;SearchDialog 可按 Esc 关闭或全选删除清空,不另加清除控件。 */
6470
6470
  .search-input__field::-webkit-search-cancel-button,
6471
- .search-input__field::-webkit-search-decoration {
6471
+ .search-dialog__input::-webkit-search-cancel-button,
6472
+ .search-input__field::-webkit-search-decoration,
6473
+ .search-dialog__input::-webkit-search-decoration {
6472
6474
  -webkit-appearance: none;
6473
6475
  appearance: none;
6474
6476
  }
@@ -11452,6 +11454,18 @@ a.q1-navigation__item[aria-disabled='true'] {
11452
11454
  }
11453
11455
  }
11454
11456
 
11457
+ @media (forced-colors: active) {
11458
+ .progress__track {
11459
+ border: calc(var(--q1-space-1) / 4) solid CanvasText;
11460
+ background: Canvas;
11461
+ }
11462
+
11463
+ .progress__fill {
11464
+ forced-color-adjust: none;
11465
+ background: Highlight;
11466
+ }
11467
+ }
11468
+
11455
11469
  /* Optional SearchDialog content slots. */
11456
11470
  .search-dialog__section + .search-dialog__section {
11457
11471
  margin-top: var(--q1-space-2);
@@ -14578,6 +14592,71 @@ a.q1-navigation__item[aria-disabled='true'] {
14578
14592
  .status-page--region .skeleton-illustration__bar::after { animation: none; }
14579
14593
  }
14580
14594
 
14595
+ .aspect-ratio {
14596
+ position: relative;
14597
+ inline-size: 100%;
14598
+ min-inline-size: 0;
14599
+ }
14600
+ .aspect-ratio > * {
14601
+ position: absolute;
14602
+ inset: 0;
14603
+ inline-size: 100%;
14604
+ block-size: 100%;
14605
+ }
14606
+
14607
+ .image {
14608
+ position: relative;
14609
+ display: grid;
14610
+ place-items: center;
14611
+ box-sizing: border-box;
14612
+ inline-size: 100%;
14613
+ min-inline-size: 0;
14614
+ overflow: hidden;
14615
+ border: calc(var(--q1-space-1) / 4) solid var(--q1-color-border);
14616
+ border-radius: var(--q1-radius-2);
14617
+ background: var(--q1-color-bg-subtle);
14618
+ color: var(--q1-color-text-secondary);
14619
+ }
14620
+ .image[data-size='sm'] { inline-size: var(--q1-space-8); block-size: var(--q1-space-8); }
14621
+ .image[data-size='md'] { inline-size: var(--q1-control-height-default); block-size: var(--q1-control-height-default); }
14622
+ .image[data-size='lg'] { inline-size: calc(var(--q1-space-6) * 2); block-size: calc(var(--q1-space-6) * 2); }
14623
+ .image__img {
14624
+ display: block;
14625
+ inline-size: 100%;
14626
+ block-size: auto;
14627
+ min-inline-size: 0;
14628
+ min-block-size: 0;
14629
+ object-fit: contain;
14630
+ object-position: center;
14631
+ }
14632
+ .image[data-fit='cover'] > .image__img { object-fit: cover; }
14633
+ .image[data-size] > .image__img,
14634
+ .aspect-ratio > .image > .image__img { block-size: 100%; }
14635
+ .image[data-state='loading'] > .image__img,
14636
+ .image[data-state='error'] > .image__img { visibility: hidden; }
14637
+ .image[data-state='loading']:not([data-size]),
14638
+ .image[data-state='empty']:not([data-size]),
14639
+ .image[data-state='error']:not([data-size]) { min-block-size: var(--q1-control-height-default); }
14640
+ .image__skeleton {
14641
+ position: absolute;
14642
+ inset: 0;
14643
+ inline-size: 100%;
14644
+ block-size: 100%;
14645
+ border-radius: inherit;
14646
+ }
14647
+ .image__fallback {
14648
+ grid-area: 1 / 1;
14649
+ max-inline-size: 100%;
14650
+ font-size: var(--q1-font-size-label-12);
14651
+ line-height: var(--q1-line-height-label-12);
14652
+ text-align: center;
14653
+ overflow-wrap: anywhere;
14654
+ }
14655
+ .image[data-state='error'] > .image__img { grid-area: 1 / 1; }
14656
+ @media (forced-colors: active) {
14657
+ .image { border-color: CanvasText; color: CanvasText; }
14658
+ }
14659
+
14581
14660
  .hover-card-trigger { display: inline-flex; }
14582
14661
  .hover-card {
14583
14662
  max-width: min(calc(100vw - var(--q1-space-6)), calc(var(--q1-space-8) * 9));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@q1travel/design-system",
3
- "version": "0.30.4",
3
+ "version": "0.30.5",
4
4
  "description": "React components, design tokens, and interface contracts for q1travel products.",
5
5
  "keywords": [
6
6
  "react",