@24city/web-console 0.3.8 → 0.3.10
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/CHANGELOG.md +47 -0
- package/GUIDELINES.md +11 -6
- package/dist/chunks/waterfall-D4dghcC4.js +753 -0
- package/dist/index.js +1 -1
- package/dist/list/content-square.d.ts +5 -3
- package/dist/list/cover-tabs.d.ts +11 -3
- package/dist/list/index.js +1 -1
- package/dist/styles.css +220 -153
- package/package.json +1 -1
- package/dist/chunks/waterfall-DOeGU8Zs.js +0 -752
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-
|
|
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-D4dghcC4.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;
|
|
@@ -6,7 +6,14 @@ export interface CoverTabOption<T extends string> {
|
|
|
6
6
|
/** 这一类里排在前面的内容的封面地址,只用前三张;没有、还没取到或读不出来的位置显示灰色占位。 */
|
|
7
7
|
covers?: readonly string[];
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* 这一类的一句话说明(如“商品推广的投放素材,含爆量、潜力精选”):显示在名称下面,次级文字色、小一号字,最多两行;
|
|
10
|
+
* 两行还放不下才省略,鼠标停在上面(title)能看全文,读屏名称也带上它。没有就不占这一行;有的项带说明、有的不带时,
|
|
11
|
+
* 各项的名称仍在同一条线上。手机上每项按内容宽度排,说明最宽 144px。
|
|
12
|
+
*/
|
|
13
|
+
description?: string;
|
|
14
|
+
/**
|
|
15
|
+
* 这一类当前没有内容时的提示(如“该行业无数据”):封面和名称变灰,名称下显示这句提示(代替 description,
|
|
16
|
+
* 不同时显示两句),读屏名称也带上它。
|
|
10
17
|
* 仍可点:点击照常触发 onChange,由页面决定是否切换、给什么提示。
|
|
11
18
|
*/
|
|
12
19
|
unavailable?: string;
|
|
@@ -19,8 +26,9 @@ interface CoverTabsProps<T extends string> {
|
|
|
19
26
|
onChange: (value: T) => void;
|
|
20
27
|
}
|
|
21
28
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
29
|
+
* 图文入口:每一项是这一类里排在前面的三张封面(扇形叠放)加名称,名称下可带一行说明(description);
|
|
30
|
+
* 当前项名称加粗、下方压一条 3px 主色条。用在内容广场的导航位(ContentSquare 的 nav),代替带说明的卡片式单选(ChoiceCards)
|
|
31
|
+
* 切换榜单、分类。
|
|
24
32
|
* 读屏是一组页签:左右方向键(Home / End)在各项之间移动,回车或空格切换;宽屏等分一行,放不下时(手机)横向滑动,
|
|
25
33
|
* 切换后当前项滚进可见区。
|
|
26
34
|
*/
|
package/dist/list/index.js
CHANGED
|
@@ -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-
|
|
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-D4dghcC4.js";
|
|
2
2
|
export {
|
|
3
3
|
s as COVER_TAB_COVERS,
|
|
4
4
|
r as ChoiceCards,
|