@24city/web-console 0.3.8 → 0.3.9

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/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import { S as $a } from "./chunks/status-text-CKFIzlND.js";
7
7
  import { F as ee, a as se, b as oe, c as re, d as te } from "./chunks/form-layout-BDOTSKaB.js";
8
8
  import { ConsoleSemiProvider as ie, MODAL_BUTTON_PROPS as ue, modalButtonProps as le } from "./semi.js";
9
9
  import { B as Se, C as pe, f as de, a as me, i as Ce } from "./chunks/console-layout-B4OlW1IZ.js";
10
- import { C as Pe, a as Ae, b as ge, c as Le, d as Fe, e as Te, F as Ee, f as Re, g as he, h as be, i as xe, j as Be, k as ye, l as Oe, m as Ne, n as _e, L as Me, M as ke, S as Ie, o as Ue, p as ve, q as De, r as we, T as qe, W as We, s as Ke, w as Ge } from "./chunks/waterfall-DOeGU8Zs.js";
10
+ import { C as Pe, a as Ae, b as ge, c as Le, d as Fe, e as Te, F as Ee, f as Re, g as he, h as be, i as xe, j as Be, k as ye, l as Oe, m as Ne, n as _e, L as Me, M as ke, S as Ie, o as Ue, p as ve, q as De, r as we, T as qe, W as We, s as Ke, w as Ge } from "./chunks/waterfall-Cyw5kl43.js";
11
11
  import { C as He } from "./chunks/color-mode-switch-BinpVuZ0.js";
12
12
  import { E as ze, R as Ye, U as je } from "./chunks/unsupported-browser-Dwq1mNRy.js";
13
13
  import { F as Ze, a as Je, b as $e, G as as, N as es, S as ss, c as os, T as rs, f as ts } from "./chunks/text-link-WWzQqJ14.js";
@@ -10,7 +10,7 @@ interface SquareSearchProps<T extends string> {
10
10
  onChange: (value: string) => void;
11
11
  onSearch: (value: string) => void;
12
12
  inputRef?: Ref<HTMLInputElement>;
13
- /** 聚焦搜索框的快捷键(如 `/`):写进 aria-keyshortcuts;深色描边的大框里空输入时还在框内显示按键标。 */
13
+ /** 聚焦搜索框的快捷键(如 `/`):写进 aria-keyshortcuts;大框(传了 modes 或 buttonText)里空输入时还在框内显示按键标。 */
14
14
  keyShortcut?: string;
15
15
  /** 输入框为空时,在检索按钮前列出的快捷词(如最近搜索),点选即检索。 */
16
16
  guide?: {
@@ -35,7 +35,8 @@ interface SquareSearchProps<T extends string> {
35
35
  }
36
36
  /**
37
37
  * 内容广场的大搜索框:60px 白底,检索按钮在框内右侧;空输入时可列出快捷词。
38
- * 传了 modes 或 buttonText 是深色描边的大框(放在一块白画布里也看得清):上沿贴着匹配方式页签,右侧是带字的主按钮。
38
+ * 传了 modes 或 buttonText 是大框,右侧是带字的主按钮;描边是细的中性色(悬停深一档,聚焦换主色加浅色光圈),
39
+ * 放在一块白画布里也看得清。传了 modes 时上沿贴着匹配方式页签,框换成和选中页签同色的深色描边,连成一体。
39
40
  */
40
41
  export declare const SquareSearch: <T extends string = string>({ ariaLabel, placeholder, value, onChange, onSearch, inputRef, keyShortcut, guide, prefix, modes, buttonText, }: SquareSearchProps<T>) => import("react").JSX.Element;
41
42
  interface ContentSquareProps {
@@ -47,7 +48,8 @@ interface ContentSquareProps {
47
48
  title?: ReactNode;
48
49
  /**
49
50
  * 搜索上方的导航位(放 CoverTabs 这类分类入口)。传了它,导航、搜索条、分类和筛选面板合成同一块白画布,
50
- * 页面不再显示大标题;搜索框随之换成深色描边,筛选面板去掉自己的投影和圆角,接在画布里。不传时保持原来的版式。
51
+ * 页面不再显示大标题;搜索框随之换成细的中性色描边(带匹配方式页签时是深色描边),筛选面板去掉自己的投影和圆角,
52
+ * 接在画布里。不传时保持原来的版式。
51
53
  */
52
54
  nav?: ReactNode;
53
55
  search: ReactNode;
@@ -1,4 +1,4 @@
1
- import { C as s, a as r, b as t, c as l, d as o, e as i, F as S, f as n, g as C, h as F, i as T, j as c, k as u, l as b, m as d, n as p, L, M as q, S as A, o as O, p as R, q as f, r as g, T as h, W as w, s as B, w as _ } from "../chunks/waterfall-DOeGU8Zs.js";
1
+ import { C as s, a as r, b as t, c as l, d as o, e as i, F as S, f as n, g as C, h as F, i as T, j as c, k as u, l as b, m as d, n as p, L, M as q, S as A, o as O, p as R, q as f, r as g, T as h, W as w, s as B, w as _ } from "../chunks/waterfall-Cyw5kl43.js";
2
2
  export {
3
3
  s as COVER_TAB_COVERS,
4
4
  r as ChoiceCards,
package/dist/styles.css CHANGED
@@ -3549,10 +3549,11 @@
3549
3549
  * 内容广场版式(参照小红书聚光「创意 → 内容广场」):居中大标题 + 800px 搜索框,滚动时标题淡出、
3550
3550
  * 搜索框吸顶并展开到整行;分类卡片下方是平铺筛选面板和吸顶排序条,之后是结果。
3551
3551
  * 传了 nav 是“一块画布”:分类入口、搜索条、分类、筛选面板同为白底,上下相接成一块,没有大标题。
3552
- * --hero-progress(0 → 1)与 data-stuck、data-modes 由组件脚本写入。颜色只引用 Semi 设计变量。
3552
+ * --hero-progress(0 → 1)与根节点的 data-stuck、data-modes 由组件脚本写入;大搜索框外壳(.stage)的 data-modes 由 SquareSearch 按有没有 modes 写出。
3553
+ * 颜色只引用 Semi 设计变量。
3553
3554
  */
3554
3555
 
3555
- ._square_1aeey_8 {
3556
+ ._square_p43r8_9 {
3556
3557
  --hero-progress: 0;
3557
3558
  --square-search-height: 60px;
3558
3559
  --square-search-padding: 20px;
@@ -3566,12 +3567,12 @@
3566
3567
  flex-direction: column;
3567
3568
  }
3568
3569
 
3569
- ._square_1aeey_8[data-modes='true'] {
3570
+ ._square_p43r8_9[data-modes='true'] {
3570
3571
  --square-modes-offset: var(--square-modes-height);
3571
3572
  }
3572
3573
 
3573
3574
  /* 有 nav 时不显示大标题,h1 只给读屏。 */
3574
- ._hiddenTitle_1aeey_27.semi-typography {
3575
+ ._hiddenTitle_p43r8_28.semi-typography {
3575
3576
  position: absolute;
3576
3577
  width: 1px;
3577
3578
  height: 1px;
@@ -3583,7 +3584,7 @@
3583
3584
  white-space: nowrap;
3584
3585
  }
3585
3586
 
3586
- ._heroTitle_1aeey_39.semi-typography {
3587
+ ._heroTitle_p43r8_40.semi-typography {
3587
3588
  margin: 56px 0 4px;
3588
3589
  color: var(--semi-color-text-0);
3589
3590
  font-size: var(--app-font-size-h1);
@@ -3595,7 +3596,7 @@
3595
3596
  transform-origin: center bottom;
3596
3597
  }
3597
3598
 
3598
- ._heroAccent_1aeey_51 {
3599
+ ._heroAccent_p43r8_52 {
3599
3600
  color: rgb(var(--app-brand-6));
3600
3601
  }
3601
3602
 
@@ -3603,7 +3604,7 @@
3603
3604
  * 搜索条吸在顶栏下方,自带页面底色,遮住滚上来的内容。带匹配方式页签时吸顶位置上移一个页签的高度:
3604
3605
  * 页签藏到顶栏后面(并淡出),吸顶条的高度和没有页签时一样,排序条照旧紧贴在它下面。
3605
3606
  */
3606
- ._searchBar_1aeey_59 {
3607
+ ._searchBar_p43r8_60 {
3607
3608
  position: sticky;
3608
3609
  z-index: var(--app-z-sticky);
3609
3610
  top: calc(var(--app-header-height) - var(--square-modes-offset));
@@ -3613,17 +3614,17 @@
3613
3614
  }
3614
3615
 
3615
3616
  /* 没有分类卡片时,搜索条与筛选条之间不必留出分类的位置。 */
3616
- ._square_1aeey_8[data-categories='false'] ._searchBar_1aeey_59 {
3617
+ ._square_p43r8_9[data-categories='false'] ._searchBar_p43r8_60 {
3617
3618
  margin-bottom: 4px;
3618
3619
  }
3619
3620
 
3620
- ._searchBox_1aeey_73 {
3621
+ ._searchBox_p43r8_74 {
3621
3622
  width: calc(800px + (100% - 800px) * var(--hero-progress));
3622
3623
  max-width: 100%;
3623
3624
  margin: 0 auto;
3624
3625
  }
3625
3626
 
3626
- ._searchInput_1aeey_79.semi-input-wrapper {
3627
+ ._searchInput_p43r8_80.semi-input-wrapper {
3627
3628
  height: var(--square-search-height, 60px);
3628
3629
  padding: 0 14px 0 16px;
3629
3630
  border: 1px solid transparent;
@@ -3632,34 +3633,34 @@
3632
3633
  box-shadow: var(--app-shadow-card);
3633
3634
  }
3634
3635
 
3635
- ._searchInput_1aeey_79.semi-input-wrapper:hover {
3636
+ ._searchInput_p43r8_80.semi-input-wrapper:hover {
3636
3637
  border-color: transparent;
3637
3638
  background-color: var(--semi-color-bg-1);
3638
3639
  }
3639
3640
 
3640
- ._searchInput_1aeey_79.semi-input-wrapper.semi-input-wrapper-focus {
3641
+ ._searchInput_p43r8_80.semi-input-wrapper.semi-input-wrapper-focus {
3641
3642
  border-color: rgb(var(--app-brand-6));
3642
3643
  box-shadow: var(--app-shadow-card), 0 0 0 3px var(--semi-color-primary-light-default);
3643
3644
  }
3644
3645
 
3645
- ._searchInput_1aeey_79 .semi-input {
3646
+ ._searchInput_p43r8_80 .semi-input {
3646
3647
  font-size: var(--app-font-size-h6);
3647
3648
  }
3648
3649
 
3649
- ._searchInput_1aeey_79 .semi-input::placeholder {
3650
+ ._searchInput_p43r8_80 .semi-input::placeholder {
3650
3651
  color: var(--semi-color-text-2);
3651
3652
  }
3652
3653
 
3653
- ._searchInput_1aeey_79 .semi-input-suffix {
3654
+ ._searchInput_p43r8_80 .semi-input-suffix {
3654
3655
  gap: 8px;
3655
3656
  }
3656
3657
 
3657
3658
  /* 框内最左侧的匹配方式:文字触发器,右侧一条竖线隔开输入区。 */
3658
- ._searchInput_1aeey_79 .semi-input-prefix {
3659
+ ._searchInput_p43r8_80 .semi-input-prefix {
3659
3660
  padding-right: 0;
3660
3661
  }
3661
3662
 
3662
- ._searchPrefix_1aeey_115 {
3663
+ ._searchPrefix_p43r8_116 {
3663
3664
  display: inline-flex;
3664
3665
  align-items: center;
3665
3666
  margin-left: -8px;
@@ -3668,15 +3669,24 @@
3668
3669
  border-right: 1px solid var(--app-border-2);
3669
3670
  }
3670
3671
 
3671
- ._searchButton_1aeey_124.semi-button {
3672
+ ._searchButton_p43r8_125.semi-button {
3672
3673
  width: 32px;
3673
3674
  height: 32px;
3674
3675
  border-radius: var(--app-radius-chip);
3675
3676
  box-shadow: none;
3676
3677
  }
3677
3678
 
3679
+ /*
3680
+ * Semi 给输入框里的所有图标统一设了浅灰(.semi-input-wrapper .semi-icon),后缀里主按钮的图标也被它盖住:
3681
+ * 带字的按钮是白字配灰图标,只有图标的“检索”按钮是灰图标压在主色上。两个按钮的图标改为跟随按钮自己的文字颜色。
3682
+ */
3683
+ ._searchButton_p43r8_125.semi-button .semi-icon,
3684
+ ._searchTextButton_p43r8_137.semi-button .semi-icon {
3685
+ color: inherit;
3686
+ }
3687
+
3678
3688
  /* 快捷词:灰底胶囊,空输入时排在检索按钮前。 */
3679
- ._guide_1aeey_132 {
3689
+ ._guide_p43r8_142 {
3680
3690
  display: inline-flex;
3681
3691
  overflow: hidden;
3682
3692
  max-width: 420px;
@@ -3684,13 +3694,13 @@
3684
3694
  gap: 8px;
3685
3695
  }
3686
3696
 
3687
- ._guideLabel_1aeey_140.semi-typography {
3697
+ ._guideLabel_p43r8_150.semi-typography {
3688
3698
  flex-shrink: 0;
3689
3699
  color: var(--semi-color-text-2);
3690
3700
  font-size: var(--app-font-size-compact);
3691
3701
  }
3692
3702
 
3693
- ._guideTag_1aeey_146.semi-button {
3703
+ ._guideTag_p43r8_156.semi-button {
3694
3704
  overflow: hidden;
3695
3705
  max-width: 96px;
3696
3706
  height: 24px;
@@ -3705,33 +3715,33 @@
3705
3715
  text-overflow: ellipsis;
3706
3716
  }
3707
3717
 
3708
- ._guideTag_1aeey_146.semi-button:hover {
3718
+ ._guideTag_p43r8_156.semi-button:hover {
3709
3719
  background-color: var(--semi-color-fill-2);
3710
3720
  color: var(--semi-color-text-0);
3711
3721
  }
3712
3722
 
3713
- ._guideClear_1aeey_166.semi-button {
3723
+ ._guideClear_p43r8_176.semi-button {
3714
3724
  flex-shrink: 0;
3715
3725
  color: var(--semi-color-text-2);
3716
3726
  }
3717
3727
 
3718
- /* ---------- 深色描边的大框(SquareSearch 传了 modes 或 buttonText) ---------- */
3728
+ /* ---------- 大框(SquareSearch 传了 modes 或 buttonText;放在一块画布里的搜索框也用同一套描边) ---------- */
3719
3729
 
3720
- ._stage_1aeey_173 {
3730
+ ._stage_p43r8_5 {
3721
3731
  display: flex;
3722
3732
  min-width: 0;
3723
3733
  flex-direction: column;
3724
3734
  }
3725
3735
 
3726
- /* 匹配方式页签:贴在框的上沿,选中项深色底,和深色描边连成一体(参照蝉妈妈“按综合搜 / 按口播文案搜”)。 */
3727
- ._modeTabs_1aeey_180 {
3736
+ /* 匹配方式页签:贴在框的上沿,选中项深色底,和框的深色描边连成一体(参照蝉妈妈“按综合搜 / 按口播文案搜”)。 */
3737
+ ._modeTabs_p43r8_190 {
3728
3738
  display: flex;
3729
3739
  height: var(--square-modes-height, 32px);
3730
3740
  align-items: flex-end;
3731
3741
  gap: 2px;
3732
3742
  }
3733
3743
 
3734
- ._modeTab_1aeey_180.semi-button {
3744
+ ._modeTab_p43r8_190.semi-button {
3735
3745
  height: 100%;
3736
3746
  padding: 0 18px;
3737
3747
  border-radius: var(--semi-border-radius-small) var(--semi-border-radius-small) 0 0;
@@ -3741,69 +3751,95 @@
3741
3751
  font-weight: 500;
3742
3752
  }
3743
3753
 
3744
- ._modeTab_1aeey_180.semi-button:not(.semi-button-disabled):hover,
3745
- ._modeTab_1aeey_180.semi-button:not(.semi-button-disabled):active {
3754
+ ._modeTab_p43r8_190.semi-button:not(.semi-button-disabled):hover,
3755
+ ._modeTab_p43r8_190.semi-button:not(.semi-button-disabled):active {
3746
3756
  background-color: transparent;
3747
3757
  color: var(--semi-color-text-0);
3748
3758
  }
3749
3759
 
3750
- ._modeTab_1aeey_180[data-active='true'].semi-button,
3751
- ._modeTab_1aeey_180[data-active='true'].semi-button:not(.semi-button-disabled):hover,
3752
- ._modeTab_1aeey_180[data-active='true'].semi-button:not(.semi-button-disabled):active {
3760
+ ._modeTab_p43r8_190[data-active='true'].semi-button,
3761
+ ._modeTab_p43r8_190[data-active='true'].semi-button:not(.semi-button-disabled):hover,
3762
+ ._modeTab_p43r8_190[data-active='true'].semi-button:not(.semi-button-disabled):active {
3753
3763
  background-color: var(--app-strong-bg);
3754
3764
  color: var(--app-strong-text);
3755
3765
  }
3756
3766
 
3757
3767
  /* 搜索条贴住顶栏后页签收起(大部分已在顶栏后面,露出的一截淡出,也不再响应点击)。 */
3758
- ._square_1aeey_8[data-stuck='true'] ._modeTabs_1aeey_180 {
3768
+ ._square_p43r8_9[data-stuck='true'] ._modeTabs_p43r8_190 {
3759
3769
  opacity: 0;
3760
3770
  pointer-events: none;
3761
3771
  visibility: hidden;
3762
3772
  }
3763
3773
 
3764
3774
  @media (prefers-reduced-motion: no-preference) {
3765
- ._modeTabs_1aeey_180 {
3775
+ ._modeTabs_p43r8_190 {
3766
3776
  transition:
3767
3777
  opacity var(--app-duration) var(--app-ease),
3768
3778
  visibility var(--app-duration) var(--app-ease);
3769
3779
  }
3770
3780
  }
3771
3781
 
3772
- ._stage_1aeey_173 ._searchInput_1aeey_79.semi-input-wrapper,
3773
- ._stage_1aeey_173 ._searchInput_1aeey_79.semi-input-wrapper:hover,
3774
- ._square_1aeey_8[data-nav='true'] ._searchInput_1aeey_79.semi-input-wrapper,
3775
- ._square_1aeey_8[data-nav='true'] ._searchInput_1aeey_79.semi-input-wrapper:hover {
3782
+ /*
3783
+ * 大框的描边是细的中性色:静止是控件描边一档,悬停深一档,聚焦换主色并加一圈浅主色光(与普通搜索框的聚焦一致);
3784
+ * 柔和的投影保留。白底的画布里是白框压白底,靠这条描边和投影看出框。
3785
+ * 描边只有 1px,内边距各少 1px,框内文字和按钮的位置和 2px 描边时一样。
3786
+ */
3787
+ ._stage_p43r8_5 ._searchInput_p43r8_80.semi-input-wrapper,
3788
+ ._stage_p43r8_5 ._searchInput_p43r8_80.semi-input-wrapper:hover,
3789
+ ._square_p43r8_9[data-nav='true'] ._searchInput_p43r8_80.semi-input-wrapper,
3790
+ ._square_p43r8_9[data-nav='true'] ._searchInput_p43r8_80.semi-input-wrapper:hover {
3776
3791
  box-sizing: border-box;
3777
- padding: 0 8px 0 18px;
3778
- border: 2px solid var(--app-strong-bg);
3792
+ padding: 0 9px 0 19px;
3793
+ border: 1px solid var(--app-border-2);
3779
3794
  background-color: var(--semi-color-bg-1);
3780
3795
  box-shadow: 0 10px 28px rgba(var(--app-shadow-color), 0.08);
3781
3796
  }
3782
3797
 
3783
- /* 选中的是第一个页签时,框的左上角接住页签,不留圆角;页签收起后恢复。 */
3784
- ._stage_1aeey_173[data-first-mode='true'] ._searchInput_1aeey_79.semi-input-wrapper {
3785
- border-top-left-radius: 0;
3798
+ ._stage_p43r8_5 ._searchInput_p43r8_80.semi-input-wrapper:hover,
3799
+ ._square_p43r8_9[data-nav='true'] ._searchInput_p43r8_80.semi-input-wrapper:hover {
3800
+ border-color: var(--app-border-3);
3786
3801
  }
3787
3802
 
3788
- ._square_1aeey_8[data-stuck='true'] ._stage_1aeey_173[data-first-mode='true'] ._searchInput_1aeey_79.semi-input-wrapper {
3789
- border-top-left-radius: var(--app-radius-card);
3803
+ ._stage_p43r8_5 ._searchInput_p43r8_80.semi-input-wrapper.semi-input-wrapper-focus,
3804
+ ._square_p43r8_9[data-nav='true'] ._searchInput_p43r8_80.semi-input-wrapper.semi-input-wrapper-focus {
3805
+ border-color: rgb(var(--app-brand-6));
3806
+ box-shadow:
3807
+ 0 10px 28px rgba(var(--app-shadow-color), 0.08),
3808
+ 0 0 0 3px var(--semi-color-primary-light-default);
3809
+ }
3810
+
3811
+ /*
3812
+ * 带匹配方式页签的框(传了 modes):2px 深色描边,和深色底的选中页签连成一体。
3813
+ * 聚焦时描边不变(深色页签和框连在一起),外面加一圈浅主色光。
3814
+ */
3815
+ ._stage_p43r8_5[data-modes='true'] ._searchInput_p43r8_80.semi-input-wrapper,
3816
+ ._stage_p43r8_5[data-modes='true'] ._searchInput_p43r8_80.semi-input-wrapper:hover {
3817
+ padding: 0 8px 0 18px;
3818
+ border: 2px solid var(--app-strong-bg);
3790
3819
  }
3791
3820
 
3792
- /* 聚焦时描边不变(深色页签和框连在一起),外面加一圈浅主色光。 */
3793
- ._stage_1aeey_173 ._searchInput_1aeey_79.semi-input-wrapper.semi-input-wrapper-focus,
3794
- ._square_1aeey_8[data-nav='true'] ._searchInput_1aeey_79.semi-input-wrapper.semi-input-wrapper-focus {
3821
+ ._stage_p43r8_5[data-modes='true'] ._searchInput_p43r8_80.semi-input-wrapper.semi-input-wrapper-focus {
3795
3822
  border-color: var(--app-strong-bg);
3796
3823
  box-shadow:
3797
3824
  0 10px 28px rgba(var(--app-shadow-color), 0.08),
3798
3825
  0 0 0 4px var(--semi-color-primary-light-default);
3799
3826
  }
3800
3827
 
3801
- ._stage_1aeey_173 ._searchInput_1aeey_79 .semi-input-suffix {
3828
+ /* 选中的是第一个页签时,框的左上角接住页签,不留圆角;页签收起后恢复。 */
3829
+ ._stage_p43r8_5[data-first-mode='true'] ._searchInput_p43r8_80.semi-input-wrapper {
3830
+ border-top-left-radius: 0;
3831
+ }
3832
+
3833
+ ._square_p43r8_9[data-stuck='true'] ._stage_p43r8_5[data-first-mode='true'] ._searchInput_p43r8_80.semi-input-wrapper {
3834
+ border-top-left-radius: var(--app-radius-card);
3835
+ }
3836
+
3837
+ ._stage_p43r8_5 ._searchInput_p43r8_80 .semi-input-suffix {
3802
3838
  gap: 10px;
3803
3839
  }
3804
3840
 
3805
3841
  /* 框内的快捷键标(代替占位里的“按 / 聚焦”),只在空输入时出现。 */
3806
- ._keycap_1aeey_259 {
3842
+ ._keycap_p43r8_295 {
3807
3843
  display: inline-flex;
3808
3844
  width: 22px;
3809
3845
  height: 22px;
@@ -3818,7 +3854,7 @@
3818
3854
  line-height: 1;
3819
3855
  }
3820
3856
 
3821
- ._searchTextButton_1aeey_274.semi-button {
3857
+ ._searchTextButton_p43r8_137.semi-button {
3822
3858
  height: 44px;
3823
3859
  flex-shrink: 0;
3824
3860
  padding: 0 22px;
@@ -3826,19 +3862,19 @@
3826
3862
  font-size: var(--app-font-size-h6);
3827
3863
  }
3828
3864
 
3829
- ._categories_1aeey_282 {
3865
+ ._categories_p43r8_318 {
3830
3866
  margin-bottom: 0;
3831
3867
  }
3832
3868
 
3833
3869
  /* 平铺筛选面板:分类卡片下方,随页面滚走。 */
3834
- ._panel_1aeey_287 {
3870
+ ._panel_p43r8_323 {
3835
3871
  margin-top: 16px;
3836
3872
  }
3837
3873
 
3838
3874
  /* ---------- 一块画布(传了 nav) ---------- */
3839
3875
 
3840
3876
  /* 导航位是画布的顶:上圆角,顶上一层很淡的主色光(首屏的品牌氛围)。 */
3841
- ._nav_1aeey_294 {
3877
+ ._nav_p43r8_330 {
3842
3878
  margin-top: 24px;
3843
3879
  padding: 4px 12px 0;
3844
3880
  border-radius: var(--app-radius-card) var(--app-radius-card) 0 0;
@@ -3847,20 +3883,20 @@
3847
3883
  var(--semi-color-bg-1);
3848
3884
  }
3849
3885
 
3850
- /* 搜索条在画布里是白底(吸顶后是一条白条),框靠深色描边看出来。 */
3851
- ._square_1aeey_8[data-nav='true'] ._searchBar_1aeey_59 {
3886
+ /* 搜索条在画布里是白底(吸顶后是一条白条),框靠描边和投影看出来。 */
3887
+ ._square_p43r8_9[data-nav='true'] ._searchBar_p43r8_60 {
3852
3888
  margin-bottom: 0;
3853
3889
  padding: var(--square-search-padding) 24px;
3854
3890
  background: var(--semi-color-bg-1);
3855
3891
  }
3856
3892
 
3857
- ._square_1aeey_8[data-nav='true'] ._categories_1aeey_282 {
3893
+ ._square_p43r8_9[data-nav='true'] ._categories_p43r8_318 {
3858
3894
  padding: 0 24px 16px;
3859
3895
  background: var(--semi-color-bg-1);
3860
3896
  }
3861
3897
 
3862
3898
  /* 筛选面板接在画布里:细线隔开,去掉自己的投影和圆角,左右与画布对齐。 */
3863
- ._square_1aeey_8[data-nav='true'] ._panel_1aeey_287 {
3899
+ ._square_p43r8_9[data-nav='true'] ._panel_p43r8_323 {
3864
3900
  --filter-panel-padding: 12px 24px 16px;
3865
3901
  --filter-panel-radius: 0 0 var(--app-radius-card) var(--app-radius-card);
3866
3902
  --filter-panel-shadow: none;
@@ -3875,18 +3911,18 @@
3875
3911
  * 画布的最后一块收圆角:没有筛选面板时是分类,分类也没有时是搜索条。搜索条吸顶后是一条通栏白条,不留圆角,
3876
3912
  * 免得滚上来的内容从圆角的缺口里露出来。
3877
3913
  */
3878
- ._square_1aeey_8[data-nav='true'][data-filters='false'] ._categories_1aeey_282,
3879
- ._square_1aeey_8[data-nav='true'][data-filters='false'][data-categories='false']:not([data-stuck='true']) ._searchBar_1aeey_59 {
3914
+ ._square_p43r8_9[data-nav='true'][data-filters='false'] ._categories_p43r8_318,
3915
+ ._square_p43r8_9[data-nav='true'][data-filters='false'][data-categories='false']:not([data-stuck='true']) ._searchBar_p43r8_60 {
3880
3916
  border-radius: 0 0 var(--app-radius-card) var(--app-radius-card);
3881
3917
  }
3882
3918
 
3883
3919
  /* 画布与排序条之间留一点空,排序条不贴着画布的下沿。 */
3884
- ._square_1aeey_8[data-nav='true'] ._filters_1aeey_337 {
3920
+ ._square_p43r8_9[data-nav='true'] ._filters_p43r8_373 {
3885
3921
  margin-top: 8px;
3886
3922
  }
3887
3923
 
3888
3924
  /* 排序条紧贴吸顶搜索条下沿,同样带页面底色。 */
3889
- ._filters_1aeey_337 {
3925
+ ._filters_p43r8_373 {
3890
3926
  position: sticky;
3891
3927
  z-index: calc(var(--app-z-sticky) - 1);
3892
3928
  top: calc(var(--app-header-height) + var(--square-search-height) + var(--square-search-padding) * 2);
@@ -3901,14 +3937,14 @@
3901
3937
  background: var(--app-page-gradient) fixed;
3902
3938
  }
3903
3939
 
3904
- ._toolbarStart_1aeey_357 {
3940
+ ._toolbarStart_p43r8_393 {
3905
3941
  display: flex;
3906
3942
  min-width: 0;
3907
3943
  flex: 1 1 auto;
3908
3944
  align-items: center;
3909
3945
  }
3910
3946
 
3911
- ._filtersGroup_1aeey_364 {
3947
+ ._filtersGroup_p43r8_400 {
3912
3948
  display: flex;
3913
3949
  min-width: 0;
3914
3950
  flex-shrink: 0;
@@ -3916,7 +3952,7 @@
3916
3952
  gap: 4px;
3917
3953
  }
3918
3954
 
3919
- ._results_1aeey_372 {
3955
+ ._results_p43r8_408 {
3920
3956
  position: relative;
3921
3957
  z-index: 0;
3922
3958
  display: flex;
@@ -3925,7 +3961,7 @@
3925
3961
  gap: 12px;
3926
3962
  }
3927
3963
 
3928
- ._footer_1aeey_381 {
3964
+ ._footer_p43r8_417 {
3929
3965
  display: flex;
3930
3966
  min-height: 32px;
3931
3967
  align-items: center;
@@ -3944,7 +3980,7 @@
3944
3980
  initial-value: 0px;
3945
3981
  }
3946
3982
 
3947
- @keyframes _square-toolbar-fade_1aeey_1 {
3983
+ @keyframes _square-toolbar-fade_p43r8_1 {
3948
3984
  0%,
3949
3985
  90% {
3950
3986
  --square-toolbar-fade: 32px;
@@ -3957,7 +3993,7 @@
3957
3993
 
3958
3994
  /* 手机:标题缩小,搜索条压低高度,快捷词和按键标收起;排序条分两行,左侧一行横向滑动。 */
3959
3995
  @media (max-width: 576px) {
3960
- ._square_1aeey_8 {
3996
+ ._square_p43r8_9 {
3961
3997
  --square-search-height: 48px;
3962
3998
  --square-search-padding: 12px;
3963
3999
  --square-filters-height: 44px;
@@ -3965,70 +4001,75 @@
3965
4001
  }
3966
4002
 
3967
4003
  /* 画布里的框带页签和带字按钮,比原来高一点。 */
3968
- ._square_1aeey_8[data-nav='true'] {
4004
+ ._square_p43r8_9[data-nav='true'] {
3969
4005
  --square-search-height: 52px;
3970
4006
  }
3971
4007
 
3972
- ._heroTitle_1aeey_39.semi-typography {
4008
+ ._heroTitle_p43r8_40.semi-typography {
3973
4009
  margin: 12px 0 0;
3974
4010
  font-size: var(--app-font-size-h3);
3975
4011
  line-height: 32px;
3976
4012
  }
3977
4013
 
3978
- ._searchBar_1aeey_59 {
4014
+ ._searchBar_p43r8_60 {
3979
4015
  margin-bottom: 4px;
3980
4016
  }
3981
4017
 
3982
- ._searchInput_1aeey_79.semi-input-wrapper {
4018
+ ._searchInput_p43r8_80.semi-input-wrapper {
3983
4019
  padding: 0 8px 0 12px;
3984
4020
  }
3985
4021
 
3986
- ._searchInput_1aeey_79 .semi-input {
4022
+ ._searchInput_p43r8_80 .semi-input {
3987
4023
  font-size: var(--app-font-size-lead);
3988
4024
  }
3989
4025
 
3990
- ._guide_1aeey_132,
3991
- ._keycap_1aeey_259 {
4026
+ ._guide_p43r8_142,
4027
+ ._keycap_p43r8_295 {
3992
4028
  display: none;
3993
4029
  }
3994
4030
 
3995
- ._panel_1aeey_287 {
4031
+ ._panel_p43r8_323 {
3996
4032
  margin-top: 12px;
3997
4033
  }
3998
4034
 
3999
- ._modeTab_1aeey_180.semi-button {
4035
+ ._modeTab_p43r8_190.semi-button {
4000
4036
  padding: 0 14px;
4001
4037
  font-size: var(--app-font-size-caption);
4002
4038
  }
4003
4039
 
4004
- ._stage_1aeey_173 ._searchInput_1aeey_79.semi-input-wrapper,
4005
- ._stage_1aeey_173 ._searchInput_1aeey_79.semi-input-wrapper:hover,
4006
- ._square_1aeey_8[data-nav='true'] ._searchInput_1aeey_79.semi-input-wrapper,
4007
- ._square_1aeey_8[data-nav='true'] ._searchInput_1aeey_79.semi-input-wrapper:hover {
4040
+ ._stage_p43r8_5 ._searchInput_p43r8_80.semi-input-wrapper,
4041
+ ._stage_p43r8_5 ._searchInput_p43r8_80.semi-input-wrapper:hover,
4042
+ ._square_p43r8_9[data-nav='true'] ._searchInput_p43r8_80.semi-input-wrapper,
4043
+ ._square_p43r8_9[data-nav='true'] ._searchInput_p43r8_80.semi-input-wrapper:hover {
4044
+ padding: 0 7px 0 13px;
4045
+ }
4046
+
4047
+ ._stage_p43r8_5[data-modes='true'] ._searchInput_p43r8_80.semi-input-wrapper,
4048
+ ._stage_p43r8_5[data-modes='true'] ._searchInput_p43r8_80.semi-input-wrapper:hover {
4008
4049
  padding: 0 6px 0 12px;
4009
4050
  }
4010
4051
 
4011
- ._searchTextButton_1aeey_274.semi-button {
4052
+ ._searchTextButton_p43r8_137.semi-button {
4012
4053
  height: 40px;
4013
4054
  padding: 0 14px;
4014
4055
  font-size: var(--app-font-size-body);
4015
4056
  }
4016
4057
 
4017
- ._nav_1aeey_294 {
4058
+ ._nav_p43r8_330 {
4018
4059
  margin-top: 12px;
4019
4060
  padding: 0 4px;
4020
4061
  }
4021
4062
 
4022
- ._square_1aeey_8[data-nav='true'] ._searchBar_1aeey_59 {
4063
+ ._square_p43r8_9[data-nav='true'] ._searchBar_p43r8_60 {
4023
4064
  margin-bottom: 0;
4024
4065
  padding: var(--square-search-padding);
4025
4066
  }
4026
4067
 
4027
- ._square_1aeey_8[data-nav='true'] ._categories_1aeey_282 {
4068
+ ._square_p43r8_9[data-nav='true'] ._categories_p43r8_318 {
4028
4069
  padding: 0 12px 12px;
4029
4070
  }
4030
4071
 
4031
- ._square_1aeey_8[data-nav='true'] ._panel_1aeey_287 {
4072
+ ._square_p43r8_9[data-nav='true'] ._panel_p43r8_323 {
4032
4073
  --filter-panel-padding: 6px 4px 8px;
4033
4074
 
4034
4075
  margin-top: 0;
@@ -4038,7 +4079,7 @@
4038
4079
  * 排序条分两行:左侧(排序、胶囊、下拉)占满第一行,右侧(收藏、视图切换)另起一行靠右。
4039
4080
  * 两侧挤在一行时左侧会被压到几乎没有宽度,排序项缩到右侧控件底下,既看不到也点不到。
4040
4081
  */
4041
- ._filters_1aeey_337 {
4082
+ ._filters_p43r8_373 {
4042
4083
  height: auto;
4043
4084
  min-height: var(--square-filters-height);
4044
4085
  flex-wrap: wrap;
@@ -4047,7 +4088,7 @@
4047
4088
  }
4048
4089
 
4049
4090
  /* 左侧每一项按自身宽度排(网格列宽取内容宽,不受各项 min-width: 0 影响),放不下时这一行横向滑动。 */
4050
- ._toolbarStart_1aeey_357 {
4091
+ ._toolbarStart_p43r8_393 {
4051
4092
  display: grid;
4052
4093
  flex: 1 0 100%;
4053
4094
  grid-auto-columns: max-content;
@@ -4058,19 +4099,19 @@
4058
4099
  mask-image: linear-gradient(to left, transparent, black var(--square-toolbar-fade));
4059
4100
  }
4060
4101
 
4061
- ._toolbarStart_1aeey_357::-webkit-scrollbar {
4102
+ ._toolbarStart_p43r8_393::-webkit-scrollbar {
4062
4103
  display: none;
4063
4104
  }
4064
4105
 
4065
4106
  @supports (animation-timeline: scroll()) {
4066
- ._toolbarStart_1aeey_357 {
4067
- animation: _square-toolbar-fade_1aeey_1 linear both;
4107
+ ._toolbarStart_p43r8_393 {
4108
+ animation: _square-toolbar-fade_p43r8_1 linear both;
4068
4109
  animation-timeline: scroll(self inline);
4069
4110
  }
4070
4111
  }
4071
4112
 
4072
4113
  /* 右侧放不下一行时在组内换行,仍靠右;页面没给右侧内容时不占第二行。 */
4073
- ._filtersGroup_1aeey_364 {
4114
+ ._filtersGroup_p43r8_400 {
4074
4115
  max-width: 100%;
4075
4116
  flex: 0 1 auto;
4076
4117
  flex-wrap: wrap;
@@ -4079,7 +4120,7 @@
4079
4120
  row-gap: 4px;
4080
4121
  }
4081
4122
 
4082
- ._filtersGroup_1aeey_364:empty {
4123
+ ._filtersGroup_p43r8_400:empty {
4083
4124
  display: none;
4084
4125
  }
4085
4126
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@24city/web-console",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "description": "24.city 产品用户端的界面底座:Semi Design 主题与设计变量、控制台外壳、账号与会员界面、列表与数据组件、界面规范与守卫",
5
5
  "license": "MIT",
6
6
  "type": "module",