aot-ui 0.2.34 → 0.2.35
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-lib/aot-ui.css +1 -1
- package/dist-lib/aot-ui.js +10346 -7415
- package/dist-lib/index.d.ts +7 -0
- package/dist-lib/modules/comment-react/constants.d.ts +1 -1
- package/dist-lib/modules/community-tiles/components/CommunityIcons.d.ts +3 -0
- package/dist-lib/modules/community-tiles/components/CommunityTiles.d.ts +2 -0
- package/dist-lib/modules/community-tiles/constants.d.ts +3 -0
- package/dist-lib/modules/community-tiles/index.d.ts +3 -0
- package/dist-lib/modules/community-tiles/types.d.ts +16 -0
- package/dist-lib/modules/config-provider/index.d.ts +1 -1
- package/dist-lib/modules/config-provider/themes/index.d.ts +1 -0
- package/dist-lib/modules/config-provider/themes/themeTransition.d.ts +5 -0
- package/dist-lib/modules/edu-tiles/components/EduIcons.d.ts +15 -0
- package/dist-lib/modules/edu-tiles/components/EduTiles.d.ts +2 -0
- package/dist-lib/modules/edu-tiles/constants.d.ts +2 -0
- package/dist-lib/modules/edu-tiles/index.d.ts +3 -0
- package/dist-lib/modules/edu-tiles/types.d.ts +19 -0
- package/dist-lib/modules/feature-tiles/components/FeatureTile.d.ts +8 -0
- package/dist-lib/modules/feature-tiles/components/FeatureTiles.d.ts +2 -0
- package/dist-lib/modules/feature-tiles/components/TileIcons.d.ts +11 -0
- package/dist-lib/modules/feature-tiles/constants.d.ts +3 -0
- package/dist-lib/modules/feature-tiles/index.d.ts +3 -0
- package/dist-lib/modules/feature-tiles/types.d.ts +31 -0
- package/dist-lib/modules/feed-new-tip/constants.d.ts +3 -3
- package/dist-lib/modules/game-tiles/components/GameIcons.d.ts +17 -0
- package/dist-lib/modules/game-tiles/components/GameTiles.d.ts +2 -0
- package/dist-lib/modules/game-tiles/constants.d.ts +3 -0
- package/dist-lib/modules/game-tiles/index.d.ts +3 -0
- package/dist-lib/modules/game-tiles/types.d.ts +32 -0
- package/dist-lib/modules/life-tiles/components/LifeIcons.d.ts +11 -0
- package/dist-lib/modules/life-tiles/components/LifeTiles.d.ts +2 -0
- package/dist-lib/modules/life-tiles/constants.d.ts +3 -0
- package/dist-lib/modules/life-tiles/index.d.ts +3 -0
- package/dist-lib/modules/life-tiles/types.d.ts +22 -0
- package/dist-lib/modules/mention-suggest/constants.d.ts +4 -4
- package/dist-lib/modules/modal/motion.d.ts +6 -3
- package/dist-lib/modules/ops-tiles/components/OpsIcons.d.ts +11 -0
- package/dist-lib/modules/ops-tiles/components/OpsTiles.d.ts +2 -0
- package/dist-lib/modules/ops-tiles/constants.d.ts +3 -0
- package/dist-lib/modules/ops-tiles/index.d.ts +3 -0
- package/dist-lib/modules/ops-tiles/types.d.ts +23 -0
- package/dist-lib/modules/theme-switcher/AppearanceContext.d.ts +15 -0
- package/dist-lib/modules/theme-switcher/appearanceStorage.d.ts +6 -0
- package/dist-lib/modules/theme-switcher/index.d.ts +2 -0
- package/dist-lib/modules/thread-expand/components/MentionComposer.d.ts +2 -1
- package/dist-lib/modules/thread-expand/constants.d.ts +3 -1
- package/dist-lib/modules/thread-expand/types.d.ts +2 -0
- package/dist-lib/modules/trend-tiles/components/TrendIcons.d.ts +4 -0
- package/dist-lib/modules/trend-tiles/components/TrendTiles.d.ts +2 -0
- package/dist-lib/modules/trend-tiles/constants.d.ts +7 -0
- package/dist-lib/modules/trend-tiles/index.d.ts +3 -0
- package/dist-lib/modules/trend-tiles/types.d.ts +21 -0
- package/package.json +1 -1
package/dist-lib/index.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ export * from './modules/color-picker';
|
|
|
35
35
|
export * from './modules/color-strip';
|
|
36
36
|
export * from './modules/command-palette';
|
|
37
37
|
export * from './modules/comment-react';
|
|
38
|
+
export * from './modules/community-tiles';
|
|
38
39
|
export * from './modules/config-provider';
|
|
39
40
|
export * from './modules/corner-badge';
|
|
40
41
|
export * from './modules/corner-morph';
|
|
@@ -48,12 +49,14 @@ export * from './modules/download';
|
|
|
48
49
|
export * from './modules/drag-to-reorder';
|
|
49
50
|
export * from './modules/drawer';
|
|
50
51
|
export * from './modules/dropdown';
|
|
52
|
+
export * from './modules/edu-tiles';
|
|
51
53
|
export * from './modules/email-validate';
|
|
52
54
|
export * from './modules/empty';
|
|
53
55
|
export * from './modules/empty-todo';
|
|
54
56
|
export * from './modules/expand-text';
|
|
55
57
|
export * from './modules/fan-fab';
|
|
56
58
|
export * from './modules/faq-accordion';
|
|
59
|
+
export * from './modules/feature-tiles';
|
|
57
60
|
export * from './modules/feed-new-tip';
|
|
58
61
|
export * from './modules/feed-skeleton';
|
|
59
62
|
export * from './modules/flip-card';
|
|
@@ -65,6 +68,7 @@ export * from './modules/focus-segments';
|
|
|
65
68
|
export * from './modules/form';
|
|
66
69
|
export * from './modules/format-input';
|
|
67
70
|
export * from './modules/fox-progress';
|
|
71
|
+
export * from './modules/game-tiles';
|
|
68
72
|
export * from './modules/hold-to-confirm';
|
|
69
73
|
export * from './modules/icon';
|
|
70
74
|
export * from './modules/icon-dock';
|
|
@@ -80,6 +84,7 @@ export * from './modules/jelly-toggle';
|
|
|
80
84
|
export * from './modules/karaoke-scroll';
|
|
81
85
|
export * from './modules/layout';
|
|
82
86
|
export * from './modules/layout-reflow';
|
|
87
|
+
export * from './modules/life-tiles';
|
|
83
88
|
export * from './modules/like-burst';
|
|
84
89
|
export * from './modules/like-odometer';
|
|
85
90
|
export * from './modules/link';
|
|
@@ -99,6 +104,7 @@ export * from './modules/notif-stack';
|
|
|
99
104
|
export * from './modules/notification';
|
|
100
105
|
export * from './modules/notify-permit';
|
|
101
106
|
export * from './modules/offline-banner';
|
|
107
|
+
export * from './modules/ops-tiles';
|
|
102
108
|
export * from './modules/otp-code';
|
|
103
109
|
export * from './modules/page-header';
|
|
104
110
|
export * from './modules/pagination';
|
|
@@ -173,6 +179,7 @@ export * from './modules/travel-home';
|
|
|
173
179
|
export * from './modules/tree';
|
|
174
180
|
export * from './modules/tree-select';
|
|
175
181
|
export * from './modules/tree-v2';
|
|
182
|
+
export * from './modules/trend-tiles';
|
|
176
183
|
export * from './modules/typography';
|
|
177
184
|
export * from './modules/undo-delete';
|
|
178
185
|
export * from './modules/upload';
|
|
@@ -31,7 +31,7 @@ export declare const CR_SEED: readonly [{
|
|
|
31
31
|
}, {
|
|
32
32
|
readonly id: "cr-4";
|
|
33
33
|
readonly name: "小满";
|
|
34
|
-
readonly color: "#f472b6";
|
|
34
|
+
readonly color: "var(--aot-color-danger, #f472b6)";
|
|
35
35
|
readonly text: "能不能再加一个自定义表情入口?先这样也好。";
|
|
36
36
|
readonly time: "32 分钟前";
|
|
37
37
|
}];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type CommunityTileItem = {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
hot?: boolean;
|
|
8
|
+
actionLabel?: string;
|
|
9
|
+
onClick?: () => void;
|
|
10
|
+
};
|
|
11
|
+
export type CommunityTilesProps = {
|
|
12
|
+
className?: string;
|
|
13
|
+
hero?: CommunityTileItem;
|
|
14
|
+
sideItems?: CommunityTileItem[];
|
|
15
|
+
onItemClick?: (item: CommunityTileItem) => void;
|
|
16
|
+
};
|
|
@@ -2,6 +2,6 @@ export { ConfigProvider, useComponentSize, useConfig, useEmptyValues, } from './
|
|
|
2
2
|
export { zhCN } from './locale/zhCN';
|
|
3
3
|
export { enUS } from './locale/enUS';
|
|
4
4
|
export { THEME_PRIMARY, THEME_PRIMARY_BORDER, THEME_PRIMARY_FALLBACK, THEME_PRIMARY_HOVER, THEME_PRIMARY_SOFT, THEME_PRIMARY_SOFT_2, readCssVar, readStatusColors, readThemePrimary, themedPalette, } from './themeColor';
|
|
5
|
-
export { AOT_THEMES, AOT_THEME_NAMES, applyThemePreset, clearThemePreset, defaultTheme, getThemePreset, getThemeTokens, koharuTheme, resolveColorScheme, } from './themes';
|
|
5
|
+
export { AOT_THEMES, AOT_THEME_NAMES, applyThemePreset, clearThemePreset, defaultTheme, getThemePreset, getThemeTokens, koharuTheme, resolveColorScheme, runThemeTransition, } from './themes';
|
|
6
6
|
export type { ApplyThemePresetOptions, AotColorScheme, AotThemeName, AotThemePreset, AotThemeTokens, } from './themes';
|
|
7
7
|
export type { ConfigButton, ConfigCard, ConfigContextValue, ConfigDialog, ConfigEmptyValue, ConfigLink, ConfigLocale, ConfigMessage, ConfigProviderProps, ConfigSize, ConfigTable, } from './types';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { AOT_THEMES, AOT_THEME_NAMES, applyThemePreset, clearThemePreset, getThemePreset, getThemeTokens, resolveColorScheme, } from './applyTheme';
|
|
2
2
|
export type { ApplyThemePresetOptions } from './applyTheme';
|
|
3
|
+
export { runThemeTransition } from './themeTransition';
|
|
3
4
|
export { defaultTheme } from './default';
|
|
4
5
|
export { koharuTheme } from './koharu';
|
|
5
6
|
export type { AotColorScheme, AotThemeName, AotThemePreset, AotThemeTokens, } from './types';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EduTileItem } from '../types';
|
|
2
|
+
/** 圆润极简面型、无描边、清透渐变 */
|
|
3
|
+
export declare function PracticeIcon({ ink }: {
|
|
4
|
+
ink: string;
|
|
5
|
+
}): import('react').JSX.Element;
|
|
6
|
+
export declare function EarnIcon({ ink }: {
|
|
7
|
+
ink: string;
|
|
8
|
+
}): import('react').JSX.Element;
|
|
9
|
+
export declare function CourseIcon({ ink }: {
|
|
10
|
+
ink: string;
|
|
11
|
+
}): import('react').JSX.Element;
|
|
12
|
+
export declare function CodeIcon({ ink }: {
|
|
13
|
+
ink: string;
|
|
14
|
+
}): import('react').JSX.Element;
|
|
15
|
+
export declare function resolveEduIcon(kind: EduTileItem["kind"], ink: string): import('react').JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type EduTileItem = {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
kind?: "practice" | "earn" | "course" | "code";
|
|
7
|
+
icon?: ReactNode;
|
|
8
|
+
tone?: {
|
|
9
|
+
from: string;
|
|
10
|
+
to: string;
|
|
11
|
+
ink: string;
|
|
12
|
+
};
|
|
13
|
+
onClick?: () => void;
|
|
14
|
+
};
|
|
15
|
+
export type EduTilesProps = {
|
|
16
|
+
className?: string;
|
|
17
|
+
items?: EduTileItem[];
|
|
18
|
+
onItemClick?: (item: EduTileItem) => void;
|
|
19
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FeatureTileItem } from '../types';
|
|
2
|
+
type FeatureTileProps = {
|
|
3
|
+
item: FeatureTileItem;
|
|
4
|
+
actionLabel: string;
|
|
5
|
+
onActivate: (item: FeatureTileItem) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare function FeatureTile({ item, actionLabel, onActivate, }: FeatureTileProps): import('react').JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { FeatureTileItem, FeatureTileTone } from '../types';
|
|
3
|
+
type IconProps = {
|
|
4
|
+
tone: FeatureTileTone;
|
|
5
|
+
};
|
|
6
|
+
export declare function MicIcon({ tone }: IconProps): import('react').JSX.Element;
|
|
7
|
+
export declare function PlanetIcon({ tone }: IconProps): import('react').JSX.Element;
|
|
8
|
+
export declare function DocIcon({ tone }: IconProps): import('react').JSX.Element;
|
|
9
|
+
export declare function CameraIcon({ tone }: IconProps): import('react').JSX.Element;
|
|
10
|
+
export declare function resolveTileIcon(kind: FeatureTileItem["kind"], tone: FeatureTileTone): ReactNode;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type FeatureTileTone = {
|
|
3
|
+
/** 对角渐变起点(极浅) */
|
|
4
|
+
from: string;
|
|
5
|
+
/** 对角渐变终点(邻近浅色) */
|
|
6
|
+
to: string;
|
|
7
|
+
/** 图标主色 */
|
|
8
|
+
ink: string;
|
|
9
|
+
/** 图标邻近浅色 / 侧面厚度 */
|
|
10
|
+
soft: string;
|
|
11
|
+
};
|
|
12
|
+
export type FeatureTileItem = {
|
|
13
|
+
id: string;
|
|
14
|
+
/** 建议四字标题 */
|
|
15
|
+
title: string;
|
|
16
|
+
description: string;
|
|
17
|
+
/** 内置图标键;自定义时用 icon */
|
|
18
|
+
kind?: "mic" | "planet" | "doc" | "camera";
|
|
19
|
+
icon?: ReactNode;
|
|
20
|
+
tone?: FeatureTileTone;
|
|
21
|
+
href?: string;
|
|
22
|
+
onClick?: () => void;
|
|
23
|
+
};
|
|
24
|
+
export type FeatureTilesProps = {
|
|
25
|
+
className?: string;
|
|
26
|
+
items?: FeatureTileItem[];
|
|
27
|
+
/** GO 胶囊文案 */
|
|
28
|
+
actionLabel?: string;
|
|
29
|
+
columns?: 2;
|
|
30
|
+
onItemClick?: (item: FeatureTileItem) => void;
|
|
31
|
+
};
|
|
@@ -25,13 +25,13 @@ export declare const FN_SEED: readonly [{
|
|
|
25
25
|
}, {
|
|
26
26
|
readonly id: "fn-o4";
|
|
27
27
|
readonly name: "小满";
|
|
28
|
-
readonly color: "#f472b6";
|
|
28
|
+
readonly color: "var(--aot-color-danger, #f472b6)";
|
|
29
29
|
readonly text: "明天站会改成 10:15,别迟到。";
|
|
30
30
|
readonly time: "昨天";
|
|
31
31
|
}, {
|
|
32
32
|
readonly id: "fn-o5";
|
|
33
33
|
readonly name: "Kiki";
|
|
34
|
-
readonly color: "#a78bfa";
|
|
34
|
+
readonly color: "var(--aot-config-primary, #a78bfa)";
|
|
35
35
|
readonly text: "空状态插画定稿,已合进主分支。";
|
|
36
36
|
readonly time: "昨天";
|
|
37
37
|
}, {
|
|
@@ -68,7 +68,7 @@ export declare const FN_INCOMING: readonly [{
|
|
|
68
68
|
}, {
|
|
69
69
|
readonly id: "fn-n3";
|
|
70
70
|
readonly name: "小满";
|
|
71
|
-
readonly color: "#f472b6";
|
|
71
|
+
readonly color: "var(--aot-color-danger, #f472b6)";
|
|
72
72
|
readonly text: "新动效录了屏,丢到共享盘了。";
|
|
73
73
|
readonly time: "刚刚";
|
|
74
74
|
}];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { GameTileItem } from '../types';
|
|
2
|
+
/** 3D 充气塑料袋膨胀风 + 顶部大眼睛 */
|
|
3
|
+
export declare function HeadphoneBag({ ink }: {
|
|
4
|
+
ink: string;
|
|
5
|
+
}): import('react').JSX.Element;
|
|
6
|
+
export declare function SpyBag({ ink }: {
|
|
7
|
+
ink: string;
|
|
8
|
+
}): import('react').JSX.Element;
|
|
9
|
+
export declare function WerewolfBag({ ink }: {
|
|
10
|
+
ink: string;
|
|
11
|
+
}): import('react').JSX.Element;
|
|
12
|
+
export declare function TurtleBag({ ink }: {
|
|
13
|
+
ink: string;
|
|
14
|
+
}): import('react').JSX.Element;
|
|
15
|
+
export declare function TrophyIcon(): import('react').JSX.Element;
|
|
16
|
+
export declare function RocketIcon(): import('react').JSX.Element;
|
|
17
|
+
export declare function resolveGameIcon(kind: GameTileItem["kind"], ink: string): import('react').JSX.Element;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type GameBanner = {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
kind?: "trophy" | "rocket";
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
avatars?: string[];
|
|
8
|
+
tone?: {
|
|
9
|
+
from: string;
|
|
10
|
+
to: string;
|
|
11
|
+
};
|
|
12
|
+
onClick?: () => void;
|
|
13
|
+
};
|
|
14
|
+
export type GameTileItem = {
|
|
15
|
+
id: string;
|
|
16
|
+
title: string;
|
|
17
|
+
kind?: "music" | "spy" | "werewolf" | "turtle";
|
|
18
|
+
icon?: ReactNode;
|
|
19
|
+
tone?: {
|
|
20
|
+
from: string;
|
|
21
|
+
to: string;
|
|
22
|
+
ink: string;
|
|
23
|
+
};
|
|
24
|
+
onClick?: () => void;
|
|
25
|
+
};
|
|
26
|
+
export type GameTilesProps = {
|
|
27
|
+
className?: string;
|
|
28
|
+
banners?: GameBanner[];
|
|
29
|
+
items?: GameTileItem[];
|
|
30
|
+
onBannerClick?: (item: GameBanner) => void;
|
|
31
|
+
onItemClick?: (item: GameTileItem) => void;
|
|
32
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LifeTileItem, LifeTileTone } from '../types';
|
|
2
|
+
type Props = {
|
|
3
|
+
tone: LifeTileTone;
|
|
4
|
+
};
|
|
5
|
+
/** 3D 软胶质感:饱满、高光、糖果色 */
|
|
6
|
+
export declare function BurgerIcon({ tone }: Props): import('react').JSX.Element;
|
|
7
|
+
export declare function CartIcon({ tone }: Props): import('react').JSX.Element;
|
|
8
|
+
export declare function PlaneIcon({ tone }: Props): import('react').JSX.Element;
|
|
9
|
+
export declare function MedkitIcon({ tone }: Props): import('react').JSX.Element;
|
|
10
|
+
export declare function resolveLifeIcon(kind: LifeTileItem["kind"], tone: LifeTileTone): import('react').JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type LifeTileTone = {
|
|
3
|
+
from: string;
|
|
4
|
+
to: string;
|
|
5
|
+
ink: string;
|
|
6
|
+
soft: string;
|
|
7
|
+
};
|
|
8
|
+
export type LifeTileItem = {
|
|
9
|
+
id: string;
|
|
10
|
+
title: string;
|
|
11
|
+
description: string;
|
|
12
|
+
kind?: "food" | "cart" | "flight" | "medical";
|
|
13
|
+
icon?: ReactNode;
|
|
14
|
+
tone?: LifeTileTone;
|
|
15
|
+
avatars?: string[];
|
|
16
|
+
onClick?: () => void;
|
|
17
|
+
};
|
|
18
|
+
export type LifeTilesProps = {
|
|
19
|
+
className?: string;
|
|
20
|
+
items?: LifeTileItem[];
|
|
21
|
+
onItemClick?: (item: LifeTileItem) => void;
|
|
22
|
+
};
|
|
@@ -23,24 +23,24 @@ export declare const MS_FRIENDS: readonly [{
|
|
|
23
23
|
readonly id: "ms-4";
|
|
24
24
|
readonly name: "小满";
|
|
25
25
|
readonly handle: "man";
|
|
26
|
-
readonly color: "#f472b6";
|
|
26
|
+
readonly color: "var(--aot-color-danger, #f472b6)";
|
|
27
27
|
readonly note: "运营 · 关注你了";
|
|
28
28
|
}, {
|
|
29
29
|
readonly id: "ms-5";
|
|
30
30
|
readonly name: "Kiki";
|
|
31
31
|
readonly handle: "kiki";
|
|
32
|
-
readonly color: "#a78bfa";
|
|
32
|
+
readonly color: "var(--aot-config-primary, #a78bfa)";
|
|
33
33
|
readonly note: "插画 · 常出没评论区";
|
|
34
34
|
}, {
|
|
35
35
|
readonly id: "ms-6";
|
|
36
36
|
readonly name: "阿北";
|
|
37
37
|
readonly handle: "bei";
|
|
38
|
-
readonly color: "#fb7185";
|
|
38
|
+
readonly color: "var(--aot-color-danger-hover, #fb7185)";
|
|
39
39
|
readonly note: "后端 · 可 @ 联调";
|
|
40
40
|
}, {
|
|
41
41
|
readonly id: "ms-7";
|
|
42
42
|
readonly name: "米粒";
|
|
43
43
|
readonly handle: "mili";
|
|
44
|
-
readonly color: "#2dd4bf";
|
|
44
|
+
readonly color: "var(--aot-color-success, #2dd4bf)";
|
|
45
45
|
readonly note: "测试 · 爱抓边界";
|
|
46
46
|
}];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
/** Leave keyframes: visible → sunk + faded (退场). Enter plays these reversed (上浮).
|
|
1
|
+
/** Leave keyframes: visible → sunk + faded (退场). Enter plays these reversed (上浮).
|
|
2
|
+
* Transform 含 --aot-modal-dx/dy,避免 fill:forwards 锁死位移导致无法拖拽。 */
|
|
2
3
|
export declare const LEAVE_KEYFRAMES: {
|
|
3
4
|
readonly mask: readonly [{
|
|
4
5
|
readonly opacity: 1;
|
|
@@ -7,15 +8,17 @@ export declare const LEAVE_KEYFRAMES: {
|
|
|
7
8
|
}];
|
|
8
9
|
readonly panel: readonly [{
|
|
9
10
|
readonly opacity: 1;
|
|
10
|
-
readonly transform: "translate3d(
|
|
11
|
+
readonly transform: "translate3d(var(--aot-modal-dx, 0px), var(--aot-modal-dy, 0px), 0) scale(1)";
|
|
11
12
|
}, {
|
|
12
13
|
readonly opacity: 0;
|
|
13
|
-
readonly transform: "translate3d(
|
|
14
|
+
readonly transform: "translate3d(var(--aot-modal-dx, 0px), calc(var(--aot-modal-dy, 0px) + 14px), 0) scale(0.96)";
|
|
14
15
|
}];
|
|
15
16
|
};
|
|
16
17
|
export declare function cancelAnims(...els: (Element | null)[]): void;
|
|
17
18
|
/** Paint the leave-end pose (enter start). */
|
|
18
19
|
export declare function snapHidden(mask: HTMLElement, panel: HTMLElement): void;
|
|
20
|
+
/** Commit enter end pose (drop WAAPI fill). Transform keeps --aot-modal-dx/dy so drag works. */
|
|
21
|
+
export declare function commitEntered(mask: HTMLElement, panel: HTMLElement): void;
|
|
19
22
|
export declare function clearInline(mask: HTMLElement, panel: HTMLElement): void;
|
|
20
23
|
/** Enter = leave reversed (上浮淡入). */
|
|
21
24
|
export declare function playEnter(mask: HTMLElement, panel: HTMLElement): Animation[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { OpsTileItem } from '../types';
|
|
2
|
+
type Tone = {
|
|
3
|
+
ink: string;
|
|
4
|
+
soft: string;
|
|
5
|
+
};
|
|
6
|
+
/** 半透明果冻:糖果渐变 + 强高光 */
|
|
7
|
+
export declare function CheckinJelly({ ink, soft }: Tone): import('react').JSX.Element;
|
|
8
|
+
export declare function CameraJelly({ ink, soft }: Tone): import('react').JSX.Element;
|
|
9
|
+
export declare function GamepadJelly({ ink, soft }: Tone): import('react').JSX.Element;
|
|
10
|
+
export declare function resolveOpsIcon(kind: OpsTileItem["kind"], tone: Tone): import('react').JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type OpsTileItem = {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
kind?: "checkin" | "share" | "gamepad";
|
|
7
|
+
icon?: ReactNode;
|
|
8
|
+
avatars?: string[];
|
|
9
|
+
meta?: string;
|
|
10
|
+
tone?: {
|
|
11
|
+
from: string;
|
|
12
|
+
to: string;
|
|
13
|
+
ink: string;
|
|
14
|
+
soft: string;
|
|
15
|
+
};
|
|
16
|
+
onClick?: () => void;
|
|
17
|
+
};
|
|
18
|
+
export type OpsTilesProps = {
|
|
19
|
+
className?: string;
|
|
20
|
+
hero?: OpsTileItem;
|
|
21
|
+
sideItems?: OpsTileItem[];
|
|
22
|
+
onItemClick?: (item: OpsTileItem) => void;
|
|
23
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ThemeSwitcherValue } from './types';
|
|
3
|
+
type AppearanceContextValue = {
|
|
4
|
+
appearance: ThemeSwitcherValue;
|
|
5
|
+
setAppearance: (next: ThemeSwitcherValue) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare function AppearanceProvider({ children }: {
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
}): import('react').JSX.Element;
|
|
10
|
+
/**
|
|
11
|
+
* Shared appearance (theme + scheme) for titlebar + playgrounds.
|
|
12
|
+
* Falls back to defaults when no AppearanceProvider is mounted.
|
|
13
|
+
*/
|
|
14
|
+
export declare function useAppearance(): AppearanceContextValue;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ThemeSwitcherValue } from './types';
|
|
2
|
+
export declare const DEFAULT_APPEARANCE: ThemeSwitcherValue;
|
|
3
|
+
/** Read persisted gallery / host appearance; falls back to defaults. */
|
|
4
|
+
export declare function loadAppearance(): ThemeSwitcherValue;
|
|
5
|
+
/** Persist appearance for the next session. */
|
|
6
|
+
export declare function saveAppearance(value: ThemeSwitcherValue): void;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
+
export { AppearanceProvider, useAppearance } from './AppearanceContext';
|
|
2
|
+
export { DEFAULT_APPEARANCE, loadAppearance, saveAppearance, } from './appearanceStorage';
|
|
1
3
|
export { ThemeSwitcher } from './components/ThemeSwitcher';
|
|
2
4
|
export type { ThemeSwitcherProps, ThemeSwitcherValue } from './types';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { MentionFriend } from '../../mention-suggest';
|
|
2
2
|
type MentionComposerProps = {
|
|
3
|
+
className?: string;
|
|
3
4
|
placeholder?: string;
|
|
4
5
|
friends?: MentionFriend[];
|
|
5
6
|
onCancel: () => void;
|
|
6
7
|
onSubmit: (plain: string) => void;
|
|
7
8
|
};
|
|
8
|
-
export declare function MentionComposer({ placeholder, friends: friendsProp, onCancel, onSubmit, }: MentionComposerProps): import('react').JSX.Element;
|
|
9
|
+
export declare function MentionComposer({ className, placeholder, friends: friendsProp, onCancel, onSubmit, }: MentionComposerProps): import('react').JSX.Element;
|
|
9
10
|
export {};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export declare const TE_STAGGER_MS = 70;
|
|
2
2
|
export declare const TE_ITEM_MS = 320;
|
|
3
3
|
export declare const TE_ARROW_MS = 220;
|
|
4
|
-
export declare const TE_LEAVE_MS =
|
|
4
|
+
export declare const TE_LEAVE_MS = 420;
|
|
5
|
+
export declare const TE_ENTER_MS = 360;
|
|
6
|
+
export declare const TE_COMPOSER_MS = 300;
|
|
5
7
|
export declare const TE_SELF: {
|
|
6
8
|
readonly name: "我";
|
|
7
9
|
readonly color: "var(--aot-config-primary)";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type TrendTileSideItem = {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
onClick?: () => void;
|
|
8
|
+
};
|
|
9
|
+
export type TrendTilesProps = {
|
|
10
|
+
className?: string;
|
|
11
|
+
/** 左侧主卡标题 */
|
|
12
|
+
heroTitle?: string;
|
|
13
|
+
/** 左侧主卡副文案 */
|
|
14
|
+
heroDescription?: string;
|
|
15
|
+
/** 主卡按钮文案 */
|
|
16
|
+
actionLabel?: string;
|
|
17
|
+
heroIcon?: ReactNode;
|
|
18
|
+
sideItems?: TrendTileSideItem[];
|
|
19
|
+
onHeroClick?: () => void;
|
|
20
|
+
onSideClick?: (item: TrendTileSideItem) => void;
|
|
21
|
+
};
|