@funhub/platform 0.1.34 → 0.1.36
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/assets/icons/search/avatar.mjs +2 -0
- package/dist/assets/icons/search/video.mjs +2 -0
- package/dist/assets/images/frame.mjs +2 -0
- package/dist/biz.d.mts +14 -14
- package/dist/biz.mjs +1 -1
- package/dist/components/biz/basics/logo/variants/basic-logo/runtime/client.mjs +1 -1
- package/dist/components/biz/business/banner-carousel/material.d.mts +1 -1
- package/dist/components/biz/business/banner-carousel/schema.d.mts +1 -1
- package/dist/components/biz/business/banner-carousel/schema.mjs +1 -1
- package/dist/components/biz/business/channel-list/client.mjs +1 -1
- package/dist/components/biz/business/detail/materials/registry.d.mts +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-recommend/material.d.mts +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-recommend/schema.d.mts +1 -1
- package/dist/components/biz/business/header-search/header-avatar-icon/client.d.mts +1 -1
- package/dist/components/biz/business/header-search/header-avatar-icon/client.mjs +1 -1
- package/dist/components/biz/business/header-search/header-avatar-logo-search/client.d.mts +2 -2
- package/dist/components/biz/business/header-search/header-avatar-logo-search/client.mjs +1 -1
- package/dist/components/biz/business/header-search/header-avatar-logo-search/material.d.mts +6 -1
- package/dist/components/biz/business/header-search/header-avatar-logo-search/material.mjs +1 -1
- package/dist/components/biz/business/header-search/header-avatar-logo-search/schema.d.mts +8 -3
- package/dist/components/biz/business/header-search/header-avatar-logo-search/schema.mjs +1 -1
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/client.d.mts +2 -2
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/client.mjs +1 -1
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/material.d.mts +6 -1
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/material.mjs +1 -1
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/schema.d.mts +5 -2
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/schema.mjs +1 -1
- package/dist/components/biz/business/header-search/header-logo-search/client.d.mts +4 -2
- package/dist/components/biz/business/header-search/header-logo-search/client.mjs +1 -1
- package/dist/components/biz/business/header-search/header-logo-search/material.d.mts +6 -1
- package/dist/components/biz/business/header-search/header-logo-search/material.mjs +1 -1
- package/dist/components/biz/business/header-search/header-logo-search/schema.d.mts +8 -3
- package/dist/components/biz/business/header-search/header-logo-search/schema.mjs +1 -1
- package/dist/components/biz/business/header-search/header-search/client.d.mts +1 -1
- package/dist/components/biz/business/header-search/header-search/client.mjs +1 -1
- package/dist/components/biz/business/header-search/shared/avatar.mjs +2 -0
- package/dist/components/biz/business/header-search/shared/logo.mjs +2 -0
- package/dist/components/biz/business/header-search/shared/search.mjs +2 -0
- package/dist/components/biz/business/index.d.mts +13 -13
- package/dist/components/biz/business/index.mjs +1 -1
- package/dist/components/biz/business/large-feature-grid/default.mjs +1 -1
- package/dist/components/biz/business/marquee/client.d.mts +7 -9
- package/dist/components/biz/business/marquee/client.mjs +1 -1
- package/dist/components/biz/business/marquee/index.d.mts +2 -2
- package/dist/components/biz/business/marquee/material.d.mts +15 -6
- package/dist/components/biz/business/marquee/schema.d.mts +23 -28
- package/dist/components/biz/business/marquee/schema.mjs +1 -1
- package/dist/components/biz/business/marquee/server.d.mts +1 -1
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/runtime/client.mjs +1 -1
- package/dist/components/biz/business/profile/index.d.mts +1 -1
- package/dist/components/biz/business/profile/profile-header/client.mjs +1 -1
- package/dist/components/biz/business/profile/profile-header/index.d.mts +1 -1
- package/dist/components/biz/business/profile/profile-header/material.d.mts +4 -6
- package/dist/components/biz/business/profile/profile-header/material.mjs +1 -1
- package/dist/components/biz/business/profile/profile-header/schema.d.mts +4 -8
- package/dist/components/biz/business/profile/profile-header/schema.mjs +1 -1
- package/dist/components/biz/business/search-history/client.d.mts +10 -12
- package/dist/components/biz/business/search-history/client.mjs +1 -1
- package/dist/components/biz/business/search-history/index.d.mts +2 -2
- package/dist/components/biz/business/search-history/material.d.mts +1 -1
- package/dist/components/biz/business/search-history/schema.d.mts +7 -15
- package/dist/components/biz/business/search-history/schema.mjs +1 -1
- package/dist/components/biz/business/search-history/server.d.mts +6 -2
- package/dist/components/biz/business/search-input/client.d.mts +11 -9
- package/dist/components/biz/business/search-input/client.mjs +1 -1
- package/dist/components/biz/business/search-input/index.d.mts +2 -2
- package/dist/components/biz/business/search-input/schema.d.mts +6 -10
- package/dist/components/biz/business/search-input/schema.mjs +1 -1
- package/dist/components/biz/business/search-input/server.d.mts +1 -1
- package/dist/components/biz/business/tab-bar/client.d.mts +6 -5
- package/dist/components/biz/business/tab-bar/client.mjs +1 -1
- package/dist/components/biz/business/tab-bar/index.d.mts +2 -2
- package/dist/components/biz/business/tab-bar/schema.d.mts +10 -18
- package/dist/components/biz/business/tab-bar/schema.mjs +1 -1
- package/dist/components/biz/business/tab-bar/server.d.mts +1 -1
- package/dist/components/biz/business/text-recommend/client.d.mts +10 -14
- package/dist/components/biz/business/text-recommend/client.mjs +1 -1
- package/dist/components/biz/business/text-recommend/index.d.mts +2 -2
- package/dist/components/biz/business/text-recommend/material.d.mts +4 -1
- package/dist/components/biz/business/text-recommend/schema.d.mts +9 -12
- package/dist/components/biz/business/text-recommend/schema.mjs +1 -1
- package/dist/components/biz/business/text-recommend/server.d.mts +1 -1
- package/dist/components/biz/business/text-recommend/server.mjs +1 -1
- package/dist/components/biz/business/video-horizontal-list/client.d.mts +5 -2
- package/dist/components/biz/business/video-horizontal-list/client.mjs +1 -1
- package/dist/components/biz/business/video-horizontal-list/index.d.mts +2 -2
- package/dist/components/biz/business/video-horizontal-list/material.d.mts +19 -8
- package/dist/components/biz/business/video-horizontal-list/schema.d.mts +20 -24
- package/dist/components/biz/business/video-horizontal-list/schema.mjs +1 -1
- package/dist/components/biz/business/video-horizontal-list/server.d.mts +1 -1
- package/dist/components/common/delete-confirm-dialog/delete-confirm-dialog.mjs +1 -1
- package/dist/components/common/popup-video/index.mjs +1 -1
- package/dist/components/pages/feed-series/feed-series-client.mjs +1 -1
- package/dist/components/pages/home/client.mjs +1 -1
- package/dist/components/pages/post-detail/post-detail-client.mjs +1 -1
- package/dist/components/pages/publish/page-client.mjs +1 -1
- package/dist/components/pages/search/hot-recommend.mjs +1 -1
- package/dist/components/pages/search/page-client.mjs +1 -1
- package/dist/components/pages/search/search-result/search-all.mjs +1 -1
- package/dist/components/pages/user-follow/page.mjs +1 -1
- package/dist/components/pages/video-detail/page.mjs +1 -1
- package/dist/components/pages/video-detail/video-detail-client.mjs +1 -1
- package/dist/components/ui/badge.d.mts +1 -1
- package/dist/components/ui/button.d.mts +2 -2
- package/dist/components/ui/image.d.mts +4 -4
- package/dist/constants/event-key.mjs +1 -1
- package/dist/hooks/use-search-history.mjs +1 -1
- package/dist/i18n/locales/en.mjs +1 -1
- package/dist/i18n/locales/zh-CN.mjs +1 -1
- package/dist/materials.d.mts +2 -2
- package/dist/materials.mjs +1 -1
- package/dist/utils/schema/index.d.mts +1 -1
- package/dist/utils/schema/inspector.d.mts +31 -1
- package/dist/utils/schema/schema.d.mts +31 -2
- package/dist/utils/schema/schema.mjs +1 -1
- package/dist/utils.d.mts +2 -2
- package/dist/utils.mjs +1 -1
- package/package.json +5 -3
- package/theme.css +106 -0
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
|
|
2
|
-
import { SchemaHasDefaultValue } from "../../../../../utils/schema/schema.mjs";
|
|
3
2
|
import { DefineMaterialOption } from "../../../../../utils/schema/material.mjs";
|
|
4
|
-
import "../../../../../utils/schema/index.mjs";
|
|
5
3
|
import { UserProfileHeaderClient } from "./client.mjs";
|
|
6
4
|
import { UserProfileHeader } from "./server.mjs";
|
|
5
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
7
6
|
import * as zod from "zod";
|
|
8
7
|
import * as zod_v4_core0 from "zod/v4/core";
|
|
9
8
|
|
|
10
9
|
//#region components/biz/business/profile/profile-header/material.d.ts
|
|
11
|
-
declare const profileHeaderMaterial: DefineMaterialOption<typeof UserProfileHeader, typeof UserProfileHeaderClient, zod.ZodObject<{
|
|
12
|
-
|
|
13
|
-
}, zod_v4_core0.$strip>, "profile-header">;
|
|
10
|
+
declare const profileHeaderMaterial: DefineMaterialOption<typeof UserProfileHeader, typeof UserProfileHeaderClient, zod.ZodObject<{}, zod_v4_core0.$strip>, "profile-header">;
|
|
11
|
+
declare const profileHeaderMaterialWithDisabledBackground: DefineMaterialOption<(props: React.ComponentProps<typeof UserProfileHeader>) => react_jsx_runtime0.JSX.Element, (props: React.ComponentProps<typeof UserProfileHeader>) => react_jsx_runtime0.JSX.Element, zod.ZodObject<{}, zod_v4_core0.$strip>, "profile-header-with-disabled-background">;
|
|
14
12
|
//#endregion
|
|
15
|
-
export { profileHeaderMaterial };
|
|
13
|
+
export { profileHeaderMaterial, profileHeaderMaterialWithDisabledBackground };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{defineMaterial as e}from"../../../../../utils/schema/material.mjs";import{UserProfileHeaderClient as t}from"./client.mjs";import{profileHeaderInspectorPropsSchema as n}from"./schema.mjs";import{UserProfileHeader as r}from"./server.mjs";const
|
|
2
|
+
import{defineMaterial as e}from"../../../../../utils/schema/material.mjs";import{UserProfileHeaderClient as t}from"./client.mjs";import{profileHeaderInspectorPropsSchema as n}from"./schema.mjs";import{UserProfileHeader as r}from"./server.mjs";import{jsx as i}from"react/jsx-runtime";const a=e({type:`profile-header`,category:`TOP`,name:`用户信息模块(有背景图)`,icon:`/icon/profile-header.png`,serverComponent:r,clientComponent:t,propsSchema:n}),o=e({type:`profile-header-with-disabled-background`,category:`TOP`,name:`用户信息模块(无背景图)`,icon:`/icon/profile-header-disabled-background.png`,serverComponent:e=>i(r,{...e,enableCustomBackground:!1}),clientComponent:e=>i(t,{...e,enableCustomBackground:!1}),propsSchema:n});export{a as profileHeaderMaterial,o as profileHeaderMaterialWithDisabledBackground};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { InferSchemaProps
|
|
2
|
+
import { InferSchemaProps } from "../../../../../utils/schema/schema.mjs";
|
|
3
3
|
import "../../../../../utils/schema/index.mjs";
|
|
4
4
|
import * as zod from "zod";
|
|
5
5
|
import * as zod_v4_core0 from "zod/v4/core";
|
|
@@ -8,12 +8,8 @@ import * as zod_v4_core0 from "zod/v4/core";
|
|
|
8
8
|
/**
|
|
9
9
|
* 用户资料头部物料 inspector 配置。
|
|
10
10
|
*/
|
|
11
|
-
declare const profileHeaderInspectorPropsSchema: zod.ZodObject<{
|
|
12
|
-
|
|
13
|
-
}, zod_v4_core0.$strip>;
|
|
14
|
-
declare const profileHeaderInspectorDefaultProps: {
|
|
15
|
-
enableCustomBackground: boolean;
|
|
16
|
-
};
|
|
11
|
+
declare const profileHeaderInspectorPropsSchema: zod.ZodObject<{}, zod_v4_core0.$strip>;
|
|
12
|
+
declare const profileHeaderInspectorDefaultProps: {};
|
|
17
13
|
type ProfileHeaderInspectorProps = InferSchemaProps<typeof profileHeaderInspectorPropsSchema>;
|
|
18
14
|
interface UserProfileHeaderAuthConfig {
|
|
19
15
|
headers?: Record<string, string>;
|
|
@@ -31,7 +27,7 @@ interface UserProfileHeaderClientProps {
|
|
|
31
27
|
cookieToken?: string;
|
|
32
28
|
/** 服务端透传的当前用户 ID。 */
|
|
33
29
|
cookieUserId?: string;
|
|
34
|
-
/**
|
|
30
|
+
/** 是否为编辑器预览模式。 */
|
|
35
31
|
isEditorPreview?: boolean;
|
|
36
32
|
/** 头部容器附加类名。 */
|
|
37
33
|
className?: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{defineComponentPropsSchema as e,
|
|
2
|
+
import{defineComponentPropsSchema as e,getSchemaDefaultProps as t}from"../../../../../utils/schema/schema.mjs";const n=e({}),r=t(n);export{r as profileHeaderInspectorDefaultProps,n as profileHeaderInspectorPropsSchema};
|
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import { InferSchemaProps } from "../../../../utils/schema/schema.mjs";
|
|
3
|
+
import "../../../../utils/schema/index.mjs";
|
|
4
|
+
import { searchHistoryInspectorPropsSchema } from "./schema.mjs";
|
|
3
5
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
6
|
|
|
5
7
|
//#region components/biz/business/search-history/client.d.ts
|
|
6
|
-
|
|
8
|
+
type SearchHistoryProps = InferSchemaProps<typeof searchHistoryInspectorPropsSchema>;
|
|
9
|
+
interface ClientProps extends SearchHistoryProps {
|
|
7
10
|
clearText?: string;
|
|
8
11
|
confirmDescription?: string;
|
|
12
|
+
storageKey?: string;
|
|
13
|
+
onHistoryClick?: (keyword: string) => void;
|
|
9
14
|
}
|
|
10
15
|
/**
|
|
11
|
-
* 搜索历史物料组件 - 客户端交互部分
|
|
16
|
+
* 搜索历史物料组件 (search-history) - 客户端交互部分
|
|
12
17
|
*/
|
|
13
|
-
declare function SearchHistoryClient(
|
|
14
|
-
rows,
|
|
15
|
-
title,
|
|
16
|
-
clearText,
|
|
17
|
-
confirmDescription,
|
|
18
|
-
storageKey,
|
|
19
|
-
onHistoryClick
|
|
20
|
-
}: SearchHistoryClientProps): react_jsx_runtime0.JSX.Element | null;
|
|
18
|
+
declare function SearchHistoryClient(props: ClientProps): react_jsx_runtime0.JSX.Element | null;
|
|
21
19
|
//#endregion
|
|
22
|
-
export { SearchHistoryClient };
|
|
20
|
+
export { SearchHistoryClient, SearchHistoryProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{
|
|
2
|
+
"use client";import{Button as e}from"../../../ui/button.mjs";import t from"../../../../utils/event-bus.mjs";import{Box as n}from"../../../ui/box.mjs";import{Text as r}from"../../../ui/text.mjs";import{eventKey as i}from"../../../../constants/event-key.mjs";import{DeleteConfirmDialog as a}from"../../../common/delete-confirm-dialog/delete-confirm-dialog.mjs";import{useCallback as o,useEffect as s,useMemo as c,useState as l}from"react";import{jsx as u,jsxs as d}from"react/jsx-runtime";import{usePathname as f,useRouter as p,useSearchParams as m}from"next/navigation";function h(h){let{title:g,rows:_=1,clearText:v=`清理`,confirmDescription:y=`确认删除全部搜索历史吗?`,storageKey:b=`guest`,onHistoryClick:x}=h,[S,C]=l([]),[w,T]=l(!1),E=p(),D=f(),O=m(),k=`search_history_${b}`,A=o(()=>{let e=localStorage.getItem(k);if(e)try{C(JSON.parse(e))}catch(e){console.error(`Failed to parse search history`,e)}else C([])},[k]);s(()=>{A()},[A]),s(()=>(t.on(i.SEARCH_HISTORY_UPDATE,A),()=>{t.off(i.SEARCH_HISTORY_UPDATE,A)}),[A]);let j=()=>{C([]),localStorage.removeItem(k),T(!1),t.emit(i.SEARCH_HISTORY_UPDATE)},M=c(()=>{let e=_*10;return S.slice(0,e)},[S,_]);if(S.length===0)return null;let N=e=>{if(x)x(e);else{let t=new URLSearchParams(O.toString());t.set(`q`,e);let n=D.includes(`/search`)?D:`/search`;E.push(`${n}?${t.toString()}`)}};return d(n,{className:`px-4 py-2`,children:[d(n,{className:`flex justify-between items-center mb-2`,children:[u(r,{className:`text-[16px] font-bold text-text1`,children:g}),u(e,{variant:`ghost`,size:`sm`,className:`text-text3 text-[12px] p-0 h-auto`,onClick:()=>T(!0),children:v})]}),u(n,{className:`flex flex-wrap gap-2 overflow-hidden`,style:{maxHeight:`${_*40}px`},children:M.map((e,t)=>u(n,{className:`px-3 py-1 bg-bg2 rounded-full cursor-pointer`,onClick:()=>N(e),children:u(r,{className:`text-[14px] text-text2 truncate max-w-[150px]`,children:e})},t))}),u(a,{open:w,onOpenChange:T,onConfirm:()=>{j()},title:``,description:y})]})}export{h as SearchHistoryClient};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
3
|
-
import { SearchHistoryClient } from "./client.mjs";
|
|
2
|
+
import { searchHistoryInspectorPropsSchema } from "./schema.mjs";
|
|
3
|
+
import { SearchHistoryClient, SearchHistoryProps } from "./client.mjs";
|
|
4
4
|
import { SearchHistoryServer } from "./server.mjs";
|
|
5
5
|
import { searchHistoryMaterial } from "./material.mjs";
|
|
@@ -10,7 +10,7 @@ import * as zod_v4_core0 from "zod/v4/core";
|
|
|
10
10
|
//#region components/biz/business/search-history/material.d.ts
|
|
11
11
|
declare const searchHistoryMaterial: DefineMaterialOption<typeof SearchHistoryServer, typeof SearchHistoryClient, zod.ZodObject<{
|
|
12
12
|
title: zod.ZodString & SchemaHasDefaultValue;
|
|
13
|
-
rows: zod.
|
|
13
|
+
rows: zod.ZodNumber & SchemaHasDefaultValue;
|
|
14
14
|
}, zod_v4_core0.$strip>, "search-history">;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { searchHistoryMaterial };
|
|
@@ -1,24 +1,16 @@
|
|
|
1
1
|
|
|
2
2
|
import { SchemaHasDefaultValue } from "../../../../utils/schema/schema.mjs";
|
|
3
3
|
import "../../../../utils.mjs";
|
|
4
|
-
import
|
|
4
|
+
import * as zod from "zod";
|
|
5
|
+
import * as zod_v4_core0 from "zod/v4/core";
|
|
5
6
|
|
|
6
7
|
//#region components/biz/business/search-history/schema.d.ts
|
|
7
8
|
/**
|
|
8
9
|
* 搜索历史物料属性定义
|
|
9
10
|
*/
|
|
10
|
-
declare const searchHistoryInspectorPropsSchema:
|
|
11
|
-
title:
|
|
12
|
-
rows:
|
|
13
|
-
},
|
|
14
|
-
declare const searchHistoryInspectorDefaultProps: {
|
|
15
|
-
title: string;
|
|
16
|
-
rows: "2" | "1" | "3";
|
|
17
|
-
};
|
|
18
|
-
type SearchHistoryInspectorProps = z$1.infer<typeof searchHistoryInspectorPropsSchema>;
|
|
19
|
-
type SearchHistoryProps = SearchHistoryInspectorProps & {
|
|
20
|
-
storageKey?: string;
|
|
21
|
-
onHistoryClick?: (keyword: string) => void;
|
|
22
|
-
};
|
|
11
|
+
declare const searchHistoryInspectorPropsSchema: zod.ZodObject<{
|
|
12
|
+
title: zod.ZodString & SchemaHasDefaultValue;
|
|
13
|
+
rows: zod.ZodNumber & SchemaHasDefaultValue;
|
|
14
|
+
}, zod_v4_core0.$strip>;
|
|
23
15
|
//#endregion
|
|
24
|
-
export {
|
|
16
|
+
export { searchHistoryInspectorPropsSchema };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{defineComponentPropsSchema as e,
|
|
2
|
+
import{defineComponentPropsSchema as e,defineNumberPropSchema as t,defineTextPropSchema as n}from"../../../../utils/schema/schema.mjs";const r=e({title:n({label:`标题名称`,defaultValue:`搜索历史`,description:`支持输入,中/英/数/符,6个字符`}),rows:t({label:`展示行数`,defaultValue:1})});export{r as searchHistoryInspectorPropsSchema};
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
|
|
2
|
-
import { SearchHistoryProps } from "./
|
|
2
|
+
import { SearchHistoryProps } from "./client.mjs";
|
|
3
3
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region components/biz/business/search-history/server.d.ts
|
|
6
|
+
interface ServerProps extends SearchHistoryProps {
|
|
7
|
+
storageKey?: string;
|
|
8
|
+
onHistoryClick?: (keyword: string) => void;
|
|
9
|
+
}
|
|
6
10
|
/**
|
|
7
11
|
* 搜索历史物料组件 (search-history) - 服务端部分
|
|
8
12
|
*/
|
|
9
|
-
declare function SearchHistoryServer(props:
|
|
13
|
+
declare function SearchHistoryServer(props: ServerProps): Promise<react_jsx_runtime0.JSX.Element>;
|
|
10
14
|
//#endregion
|
|
11
15
|
export { SearchHistoryServer };
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
|
|
2
|
+
import { InferSchemaProps } from "../../../../utils/schema/schema.mjs";
|
|
3
|
+
import "../../../../utils/schema/index.mjs";
|
|
4
|
+
import { searchInputInspectorPropsSchema } from "./schema.mjs";
|
|
2
5
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
6
|
|
|
4
7
|
//#region components/biz/business/search-input/client.d.ts
|
|
5
|
-
|
|
6
|
-
|
|
8
|
+
type SearchInputProps = InferSchemaProps<typeof searchInputInspectorPropsSchema>;
|
|
9
|
+
interface ClientProps extends SearchInputProps {
|
|
7
10
|
defaultPlaceholder?: string;
|
|
8
11
|
searchLabel?: string;
|
|
12
|
+
storageKey?: string;
|
|
13
|
+
onSearch?: (keyword: string) => void;
|
|
9
14
|
}
|
|
10
15
|
/**
|
|
11
|
-
* 搜索输入框物料组件 - 客户端交互部分
|
|
16
|
+
* 搜索输入框物料组件 (SearchInput) - 客户端交互部分
|
|
17
|
+
* 适配 Figma 设计稿布局:包含返回按钮、带边框的输入框、外部搜索按钮
|
|
12
18
|
*/
|
|
13
|
-
declare function SearchInputClient(
|
|
14
|
-
placeholder,
|
|
15
|
-
defaultPlaceholder,
|
|
16
|
-
searchLabel
|
|
17
|
-
}: SearchInputClientProps): react_jsx_runtime0.JSX.Element;
|
|
19
|
+
declare function SearchInputClient(props: ClientProps): react_jsx_runtime0.JSX.Element;
|
|
18
20
|
//#endregion
|
|
19
|
-
export { SearchInputClient };
|
|
21
|
+
export { SearchInputClient, SearchInputProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import
|
|
2
|
+
"use client";import e from"../../../../utils/event-bus.mjs";import{Box as t}from"../../../ui/box.mjs";import{Input as n}from"../../../ui/input.mjs";import{Text as r}from"../../../ui/text.mjs";import{eventKey as i}from"../../../../constants/event-key.mjs";import a from"../../../../assets/icons/left_arrow.mjs";import o from"../../../../assets/icons/search.mjs";import s from"../../../../assets/icons/clear.mjs";import{useCallback as c,useEffect as l,useState as u}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";import{usePathname as p,useRouter as m,useSearchParams as h}from"next/navigation";function g(g){let{placeholder:_,defaultPlaceholder:v=`请输入搜索关键词`,searchLabel:y=`搜索`,storageKey:b=`guest`,onSearch:x}=g,[S,C]=u(``),w=m(),T=p(),E=h(),D=`search_history_${b}`,O=c(t=>{if(t.trim()){try{let n=localStorage.getItem(D),r=n?JSON.parse(n):[];r=[t,...r.filter(e=>e!==t)],localStorage.setItem(D,JSON.stringify(r.slice(0,20))),e.emit(i.SEARCH_HISTORY_UPDATE)}catch(e){console.error(`Failed to save search history`,e)}if(x)x(t);else{let e=new URLSearchParams(E.toString());e.set(`q`,t);let n=T.includes(`/search`)?T:`/search`;w.push(`${n}?${e.toString()}`)}}},[D,x,T,w,E]);l(()=>{let e=E.get(`q`);e&&e!==S&&(C(e),O(e))},[E,O,S]),l(()=>{if(S===``){if(E.has(`q`)){let e=new URLSearchParams(E.toString());e.delete(`q`);let t=T.includes(`/search`)?T:`/search`;w.push(`${t}${e.toString()?`?${e.toString()}`:``}`)}e.emit(i.SEARCH_HISTORY_UPDATE)}},[S,T,w,E]);let k=()=>{O(S)};return f(t,{className:`px-3 py-2 bg-bg1 flex items-center gap-3 w-full`,children:[d(t,{className:`shrink-0 cursor-pointer active:opacity-70`,onClick:()=>{w.back()},children:d(a,{className:`w-4 h-4 text-text1`})}),f(t,{className:`flex-1 flex items-center gap-1 bg-bg2 border border-theme5 rounded-[20px] px-2 py-1.5 overflow-hidden`,children:[d(t,{className:`p-1 shrink-0`,children:d(o,{className:`w-[14px] h-[14px] text-text3`})}),d(n,{className:`flex-1 border-none bg-transparent p-0 h-auto text-[14px] leading-[22px] focus-visible:ring-0 text-text1 placeholder:text-text3`,placeholder:_||v,value:S,onChange:e=>C(e.target.value),onKeyDown:e=>e.key===`Enter`&&k()}),S&&d(s,{className:`w-[15px] h-[15px] text-text3 shrink-0 cursor-pointer active:opacity-70`,onClick:()=>{C(``)}})]}),d(t,{className:`shrink-0 cursor-pointer active:opacity-70`,onClick:k,children:d(r,{className:`text-[16px] text-text1 leading-[24px] font-normal`,children:y})})]})}export{g as SearchInputClient};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { searchInputInspectorPropsSchema } from "./schema.mjs";
|
|
3
|
+
import { SearchInputClient, SearchInputProps } from "./client.mjs";
|
|
4
4
|
import { SearchInputServer } from "./server.mjs";
|
|
5
5
|
import { searchInputMaterial } from "./material.mjs";
|
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
|
|
2
2
|
import { SchemaHasDefaultValue } from "../../../../utils/schema/schema.mjs";
|
|
3
3
|
import "../../../../utils.mjs";
|
|
4
|
-
import
|
|
4
|
+
import * as zod from "zod";
|
|
5
|
+
import * as zod_v4_core0 from "zod/v4/core";
|
|
5
6
|
|
|
6
7
|
//#region components/biz/business/search-input/schema.d.ts
|
|
7
8
|
/**
|
|
8
9
|
* 搜索输入框物料属性定义
|
|
9
10
|
*/
|
|
10
|
-
declare const searchInputInspectorPropsSchema:
|
|
11
|
-
placeholder:
|
|
12
|
-
},
|
|
13
|
-
declare const searchInputInspectorDefaultProps: {
|
|
14
|
-
placeholder: string;
|
|
15
|
-
};
|
|
16
|
-
type SearchInputInspectorProps = z$1.infer<typeof searchInputInspectorPropsSchema>;
|
|
17
|
-
type SearchInputProps = SearchInputInspectorProps;
|
|
11
|
+
declare const searchInputInspectorPropsSchema: zod.ZodObject<{
|
|
12
|
+
placeholder: zod.ZodString & SchemaHasDefaultValue;
|
|
13
|
+
}, zod_v4_core0.$strip>;
|
|
18
14
|
//#endregion
|
|
19
|
-
export {
|
|
15
|
+
export { searchInputInspectorPropsSchema };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{defineComponentPropsSchema as e,defineTextPropSchema as t
|
|
2
|
+
import{defineComponentPropsSchema as e,defineTextPropSchema as t}from"../../../../utils/schema/schema.mjs";const n=e({placeholder:t({label:`占位文本`,defaultValue:`搜索关键词`})});export{n as searchInputInspectorPropsSchema};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import { InferSchemaProps } from "../../../../utils/schema/schema.mjs";
|
|
3
|
+
import "../../../../utils/schema/index.mjs";
|
|
4
|
+
import { tabBarInspectorPropsSchema } from "./schema.mjs";
|
|
3
5
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
6
|
|
|
5
7
|
//#region components/biz/business/tab-bar/client.d.ts
|
|
8
|
+
type TabBarProps = InferSchemaProps<typeof tabBarInspectorPropsSchema>;
|
|
6
9
|
/**
|
|
7
10
|
* TabBar 物料组件 - 客户端交互部分
|
|
8
11
|
*/
|
|
9
|
-
declare function TabBarClient(
|
|
10
|
-
items
|
|
11
|
-
}: TabBarProps): react_jsx_runtime0.JSX.Element | null;
|
|
12
|
+
declare function TabBarClient(props: TabBarProps): react_jsx_runtime0.JSX.Element | null;
|
|
12
13
|
//#endregion
|
|
13
|
-
export { TabBarClient };
|
|
14
|
+
export { TabBarClient, TabBarProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{Box as e}from"../../../ui/box.mjs";import{Text as t}from"../../../ui/text.mjs";import n
|
|
2
|
+
"use client";import{Box as e}from"../../../ui/box.mjs";import{Text as t}from"../../../ui/text.mjs";import{useMemo as n}from"react";import{HomeIcon as r,UserIcon as i,UsersIcon as a}from"lucide-react";import{jsx as o,jsxs as s}from"react/jsx-runtime";import{usePathname as c,useRouter as l}from"next/navigation";const u=[];function d(d){let{items:f=u}=d,p=l(),m=c(),h=n(()=>f.findIndex(e=>e.path===m)||0,[f,m]),g=(e,t)=>{let n=`w-6 h-6 ${t?`text-brand`:`text-text3`}`;switch(e){case`home`:return o(r,{className:n});case`follow`:return o(a,{className:n});case`mine`:return o(i,{className:n});default:return o(r,{className:n})}};return!f||f.length===0?null:o(e,{className:`fixed bottom-0 left-0 right-0 bg-bg1 border-t border-line safe-area-bottom z-50`,children:o(e,{className:`flex h-[50px] items-center justify-around`,children:f.map((n,r)=>{let i=h===r;return s(e,{className:`flex flex-col items-center justify-center flex-1 cursor-pointer`,onClick:()=>p.push(n.path),children:[g(n.iconType,i),o(t,{className:`text-[10px] mt-0.5 ${i?`text-brand font-medium`:`text-text3`}`,children:n.label})]},r)})})})}export{d as TabBarClient};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
3
|
-
import { TabBarClient } from "./client.mjs";
|
|
2
|
+
import { tabBarInspectorPropsSchema } from "./schema.mjs";
|
|
3
|
+
import { TabBarClient, TabBarProps } from "./client.mjs";
|
|
4
4
|
import { TabBarServer } from "./server.mjs";
|
|
5
5
|
import { tabBarMaterial } from "./material.mjs";
|
|
@@ -1,27 +1,19 @@
|
|
|
1
1
|
|
|
2
2
|
import { SchemaHasDefaultValue } from "../../../../utils/schema/schema.mjs";
|
|
3
3
|
import "../../../../utils.mjs";
|
|
4
|
-
import
|
|
4
|
+
import * as zod from "zod";
|
|
5
|
+
import * as zod_v4_core0 from "zod/v4/core";
|
|
5
6
|
|
|
6
7
|
//#region components/biz/business/tab-bar/schema.d.ts
|
|
7
8
|
/**
|
|
8
9
|
* TabBar 物料属性定义
|
|
9
10
|
*/
|
|
10
|
-
declare const tabBarInspectorPropsSchema:
|
|
11
|
-
items:
|
|
12
|
-
label:
|
|
13
|
-
path:
|
|
14
|
-
iconType:
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
declare const tabBarInspectorDefaultProps: {
|
|
18
|
-
items: {
|
|
19
|
-
label: string;
|
|
20
|
-
path: string;
|
|
21
|
-
iconType: string;
|
|
22
|
-
}[];
|
|
23
|
-
};
|
|
24
|
-
type TabBarInspectorProps = z$1.infer<typeof tabBarInspectorPropsSchema>;
|
|
25
|
-
type TabBarProps = TabBarInspectorProps;
|
|
11
|
+
declare const tabBarInspectorPropsSchema: zod.ZodObject<{
|
|
12
|
+
items: zod.ZodArray<zod.ZodObject<{
|
|
13
|
+
label: zod.ZodString & SchemaHasDefaultValue;
|
|
14
|
+
path: zod.ZodString & SchemaHasDefaultValue;
|
|
15
|
+
iconType: zod.ZodString & SchemaHasDefaultValue;
|
|
16
|
+
}, zod_v4_core0.$strip>> & SchemaHasDefaultValue;
|
|
17
|
+
}, zod_v4_core0.$strip>;
|
|
26
18
|
//#endregion
|
|
27
|
-
export {
|
|
19
|
+
export { tabBarInspectorPropsSchema };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{defineArrayItemPropSchema as e,defineComponentPropsSchema as t,defineTextPropSchema as n
|
|
2
|
+
import{defineArrayItemPropSchema as e,defineComponentPropsSchema as t,defineTextPropSchema as n}from"../../../../utils/schema/schema.mjs";const r=t({items:e(t({label:n({label:`名称`,defaultValue:`首页`}),path:n({label:`跳转路径`,defaultValue:`/`}),iconType:n({label:`图标类型`,defaultValue:`home`})}),{label:`导航项`,defaultValue:[{label:`首页`,path:`/`,iconType:`home`},{label:`关注`,path:`/user/follow`,iconType:`follow`},{label:`我的`,path:`/user/mine`,iconType:`mine`}]})});export{r as tabBarInspectorPropsSchema};
|
|
@@ -1,22 +1,18 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import { InferSchemaProps } from "../../../../utils/schema/schema.mjs";
|
|
3
|
+
import "../../../../utils/schema/index.mjs";
|
|
4
|
+
import { textRecommendInspectorPropsSchema } from "./schema.mjs";
|
|
3
5
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
6
|
|
|
5
7
|
//#region components/biz/business/text-recommend/client.d.ts
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
initialList?: ContentRecommendInfo[];
|
|
10
|
-
defaultTitle?: string;
|
|
8
|
+
type TextRecommendProps = InferSchemaProps<typeof textRecommendInspectorPropsSchema>;
|
|
9
|
+
interface ClientProps extends TextRecommendProps {
|
|
10
|
+
onItemClick?: (keyword: string) => void;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
|
-
* 文字推荐物料组件 - 客户端交互部分
|
|
13
|
+
* 文字推荐物料组件 (推荐搜索) - 客户端交互部分
|
|
14
|
+
* 适配 Figma 设计稿布局:一行展示2个,包含“换一批”功能
|
|
14
15
|
*/
|
|
15
|
-
declare function TextRecommendClient(
|
|
16
|
-
title,
|
|
17
|
-
count,
|
|
18
|
-
initialList,
|
|
19
|
-
defaultTitle
|
|
20
|
-
}: TextRecommendClientProps): react_jsx_runtime0.JSX.Element;
|
|
16
|
+
declare function TextRecommendClient(props: ClientProps): react_jsx_runtime0.JSX.Element | null;
|
|
21
17
|
//#endregion
|
|
22
|
-
export { TextRecommendClient };
|
|
18
|
+
export { TextRecommendClient, TextRecommendProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{
|
|
2
|
+
"use client";import{Box as e}from"../../../ui/box.mjs";import{Text as t}from"../../../ui/text.mjs";import n from"../../../../assets/icons/refresh.mjs";import{useMemo as r,useState as i}from"react";import{jsx as a,jsxs as o}from"react/jsx-runtime";import{usePathname as s,useRouter as c,useSearchParams as l}from"next/navigation";const u=[];function d(d){let{title:f,displayCount:p=6,items:m=u,onItemClick:h}=d,g=c(),_=s(),v=l(),[y,b]=i(0),x=Math.ceil(m.length/p),S=r(()=>{if(m.length<=p)return m;let e=y%x*p;return m.slice(e,e+p)},[m,p,y,x]);if(m.length===0)return null;let C=e=>{e.stopPropagation(),b(e=>e+1)},w=e=>{if(h)h(e);else{let t=new URLSearchParams(v.toString());t.set(`q`,e);let n=_.includes(`/search`)?_:`/search`;g.push(`${n}?${t.toString()}`)}};return o(e,{className:`bg-bg1 p-3 flex flex-col gap-3 w-full`,children:[o(e,{className:`flex items-center justify-between w-full`,children:[a(t,{className:`text-[18px] font-bold text-text1 leading-[26px]`,children:f||`推荐搜索`}),m.length>p&&o(e,{className:`flex items-center gap-1 cursor-pointer active:opacity-70 transition-opacity`,onClick:C,children:[a(t,{className:`text-[14px] text-text3 leading-[22px]`,children:`换一批`}),a(n,{className:`w-3 h-3 text-text3`})]})]}),a(e,{className:`grid grid-cols-2 gap-x-1 gap-y-1 w-full`,children:S.map((n,r)=>a(e,{className:`flex items-center h-[32px] cursor-pointer active:opacity-70 transition-opacity overflow-hidden`,onClick:()=>w(n.label),children:a(t,{className:`text-[14px] text-text1 leading-[22px] truncate w-full`,children:n.label})},`${y}-${r}`))})]})}export{d as TextRecommendClient};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { textRecommendInspectorPropsSchema } from "./schema.mjs";
|
|
3
|
+
import { TextRecommendClient, TextRecommendProps } from "./client.mjs";
|
|
4
4
|
import { TextRecommendServer } from "./server.mjs";
|
|
5
5
|
import { textRecommendMaterial } from "./material.mjs";
|
|
@@ -10,7 +10,10 @@ import * as zod_v4_core0 from "zod/v4/core";
|
|
|
10
10
|
//#region components/biz/business/text-recommend/material.d.ts
|
|
11
11
|
declare const textRecommendMaterial: DefineMaterialOption<typeof TextRecommendServer, typeof TextRecommendClient, zod.ZodObject<{
|
|
12
12
|
title: zod.ZodString & SchemaHasDefaultValue;
|
|
13
|
-
|
|
13
|
+
displayCount: zod.ZodNumber & SchemaHasDefaultValue;
|
|
14
|
+
items: zod.ZodArray<zod.ZodObject<{
|
|
15
|
+
label: zod.ZodString & SchemaHasDefaultValue;
|
|
16
|
+
}, zod_v4_core0.$strip>> & SchemaHasDefaultValue;
|
|
14
17
|
}, zod_v4_core0.$strip>, "text-recommend">;
|
|
15
18
|
//#endregion
|
|
16
19
|
export { textRecommendMaterial };
|
|
@@ -1,21 +1,18 @@
|
|
|
1
1
|
|
|
2
2
|
import { SchemaHasDefaultValue } from "../../../../utils/schema/schema.mjs";
|
|
3
3
|
import "../../../../utils.mjs";
|
|
4
|
-
import z
|
|
4
|
+
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region components/biz/business/text-recommend/schema.d.ts
|
|
7
7
|
/**
|
|
8
8
|
* 文字推荐物料属性定义
|
|
9
9
|
*/
|
|
10
|
-
declare const textRecommendInspectorPropsSchema: z
|
|
11
|
-
title: z
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
};
|
|
18
|
-
type TextRecommendInspectorProps = z$1.infer<typeof textRecommendInspectorPropsSchema>;
|
|
19
|
-
type TextRecommendProps = TextRecommendInspectorProps;
|
|
10
|
+
declare const textRecommendInspectorPropsSchema: z.ZodObject<{
|
|
11
|
+
title: z.ZodString & SchemaHasDefaultValue;
|
|
12
|
+
displayCount: z.ZodNumber & SchemaHasDefaultValue;
|
|
13
|
+
items: z.ZodArray<z.ZodObject<{
|
|
14
|
+
label: z.ZodString & SchemaHasDefaultValue;
|
|
15
|
+
}, z.core.$strip>> & SchemaHasDefaultValue;
|
|
16
|
+
}, z.core.$strip>;
|
|
20
17
|
//#endregion
|
|
21
|
-
export {
|
|
18
|
+
export { textRecommendInspectorPropsSchema };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{
|
|
2
|
+
import{defineArrayItemPropSchema as e,defineComponentPropsSchema as t,defineNumberPropSchema as n,defineTextPropSchema as r}from"../../../../utils/schema/schema.mjs";import{z as i}from"zod";const a=t({title:r({label:`标题名称`,defaultValue:`推荐搜索`,description:`支持输入,中/英/数/符,6个字符`}),displayCount:n({label:`展示数`,defaultValue:2}),items:e(i.object({label:r({label:`热词`,defaultValue:`爱回家中文`})}),{label:`推荐位模块`,defaultValue:[{label:`爱回家中文`},{label:`爱回家中文`}]})});export{a as textRecommendInspectorPropsSchema};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{
|
|
2
|
+
import{TextRecommendClient as e}from"./client.mjs";import{jsx as t}from"react/jsx-runtime";async function n(n){return t(e,{...n})}export{n as TextRecommendServer};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import { InferSchemaProps } from "../../../../utils/schema/schema.mjs";
|
|
3
|
+
import "../../../../utils/schema/index.mjs";
|
|
4
|
+
import { videoHorizontalListInspectorPropsSchema } from "./schema.mjs";
|
|
3
5
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
6
|
|
|
5
7
|
//#region components/biz/business/video-horizontal-list/client.d.ts
|
|
8
|
+
type VideoHorizontalListProps = InferSchemaProps<typeof videoHorizontalListInspectorPropsSchema>;
|
|
6
9
|
interface ClientProps extends VideoHorizontalListProps {
|
|
7
10
|
allEpisodesText?: string;
|
|
8
11
|
updatedToText?: string;
|
|
@@ -13,4 +16,4 @@ interface ClientProps extends VideoHorizontalListProps {
|
|
|
13
16
|
*/
|
|
14
17
|
declare function VideoHorizontalListClient(props: ClientProps): react_jsx_runtime0.JSX.Element | null;
|
|
15
18
|
//#endregion
|
|
16
|
-
export { VideoHorizontalListClient };
|
|
19
|
+
export { VideoHorizontalListClient, VideoHorizontalListProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{jsx as
|
|
2
|
+
"use client";import e from"../../../../assets/images/frame.mjs";import{jsx as t,jsxs as n}from"react/jsx-runtime";import r from"next/image";const i=[];function a(a){let{title:o,items:s=i,commonPlayCount:c,commonEpisodes:l}=a;return!s||s.length===0?null:n(`div`,{className:`bg-bg1 px-3 py-3`,children:[o&&t(`div`,{className:`mb-3 flex items-center justify-between`,children:t(`h2`,{className:`text-[18px] font-bold text-text1 leading-[26px]`,children:o})}),t(`div`,{className:`flex overflow-x-auto pb-2 scrollbar-hide space-x-2`,children:s.map((i,a)=>{let o=i.showPlayCount??c?.enabled,s=i.playCountDelta||c?.delta,u=i.showEpisodes??l;return n(`div`,{className:`flex-shrink-0 w-[116.67px]`,children:[n(`div`,{className:`relative aspect-[116.67/155.56] rounded-lg overflow-hidden bg-bg2`,children:[t(r,{src:i.cover||e,alt:i.title,fill:!0,sizes:`116.67px`,className:`object-cover text-[10px] text-text3`}),i.badge&&t(`div`,{className:`absolute top-0 right-0 text-white text-[12px] px-[6px] py-0 rounded-bl-[8px] rounded-tr-[8px] font-normal leading-[20px]`,style:{backgroundImage:`linear-gradient(120deg, #FD4C5E 1.59%, #F05D19 99.08%)`},children:i.badge}),n(`div`,{className:`absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/80 to-transparent pb-1 pt-3 px-1 flex justify-between items-center`,children:[o&&s&&n(`span`,{className:`text-white text-[10px] flex items-center leading-none`,children:[t(`span`,{className:`mr-0.5 opacity-80`,children:`▶`}),s]}),u&&i.contentDescription&&t(`span`,{className:`text-white text-[12px] leading-[20px]`,children:i.contentDescription})]})]}),t(`div`,{className:`mt-2 py-2`,children:t(`h3`,{className:`text-[16px] text-text1 truncate font-bold leading-[24px]`,children:i.title})})]},a)})})]})}export{a as VideoHorizontalListClient};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
3
|
-
import { VideoHorizontalListClient } from "./client.mjs";
|
|
2
|
+
import { videoHorizontalListInspectorPropsSchema } from "./schema.mjs";
|
|
3
|
+
import { VideoHorizontalListClient, VideoHorizontalListProps } from "./client.mjs";
|
|
4
4
|
import { VideoHorizontalListServer } from "./server.mjs";
|
|
5
5
|
import { videoHorizontalListMaterial } from "./material.mjs";
|