@funhub/platform 0.1.107 → 0.1.108
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/components/pages/video-list/video-list-skeleton.d.mts +17 -0
- package/dist/components/pages/video-list/video-list-skeleton.mjs +2 -0
- package/dist/components/ui/badge.d.mts +1 -1
- package/dist/components/ui/button.d.mts +1 -1
- package/dist/pages.d.mts +2 -1
- package/dist/pages.mjs +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region components/pages/video-list/video-list-skeleton.d.ts
|
|
5
|
+
interface VideoListSkeletonProps {
|
|
6
|
+
/** 卡片占位数量,默认 8 个。 */
|
|
7
|
+
count?: number;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* 视频列表页骨架屏。
|
|
11
|
+
* 结构与 VideoListClient 保持一致:固定顶部 + tab + 双列卡片。
|
|
12
|
+
*/
|
|
13
|
+
declare function VideoListSkeleton({
|
|
14
|
+
count
|
|
15
|
+
}: VideoListSkeletonProps): react_jsx_runtime0.JSX.Element;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { VideoListSkeleton };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
"use client";import{Box as e}from"../../ui/box.mjs";import{Skeleton as t}from"../../ui/skeleton.mjs";import{jsx as n,jsxs as r}from"react/jsx-runtime";function i({count:i=8}){return r(e,{as:`main`,className:`min-h-[100dvh] bg-bg1`,children:[r(e,{className:`fixed top-0 left-0 right-0 z-20 bg-bg1`,children:[r(e,{as:`header`,className:`flex items-center gap-2 px-4 py-3`,children:[n(t,{className:`w-[16px] h-[16px] rounded-sm`,"aria-label":`back-icon-skeleton`}),n(e,{className:`flex-1 min-w-0 flex justify-center pr-[16px]`,children:n(t,{className:`h-[18px] w-[140px]`,"aria-label":`video-list-title-skeleton`})})]}),r(e,{as:`nav`,className:`px-4 pb-2 flex gap-2`,children:[n(t,{className:`h-[30px] w-[62px] rounded-[50px]`,"aria-label":`hot-tab-skeleton`}),n(t,{className:`h-[30px] w-[62px] rounded-[50px]`,"aria-label":`latest-tab-skeleton`})]})]}),n(e,{className:`grid grid-cols-2 gap-3 p-4 pt-[88px]`,children:Array.from({length:i}).map((i,a)=>r(e,{className:`overflow-hidden rounded-[8px] shadow-sm`,children:[n(t,{className:`w-full aspect-video h-[240px] rounded-[8px]`,"aria-label":`video-cover-skeleton`}),n(e,{className:`py-[8px]`,children:n(t,{className:`h-[20px] w-[80%]`,"aria-label":`video-title-skeleton`})})]},`video-list-skeleton-${a}`))})]})}export{i as VideoListSkeleton};
|
|
@@ -6,7 +6,7 @@ import * as class_variance_authority_types0 from "class-variance-authority/types
|
|
|
6
6
|
//#region components/ui/badge.d.ts
|
|
7
7
|
/** badgeVariants 工具定义。 */
|
|
8
8
|
declare const badgeVariants: (props?: ({
|
|
9
|
-
variant?: "
|
|
9
|
+
variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
|
|
10
10
|
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
11
11
|
/** Badge 组件。 */
|
|
12
12
|
declare function Badge({
|
|
@@ -7,7 +7,7 @@ import * as class_variance_authority_types0 from "class-variance-authority/types
|
|
|
7
7
|
//#region components/ui/button.d.ts
|
|
8
8
|
/** buttonVariants 工具定义。 */
|
|
9
9
|
declare const buttonVariants: (props?: ({
|
|
10
|
-
variant?: "
|
|
10
|
+
variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
|
|
11
11
|
size?: "default" | "icon" | "xs" | "sm" | "lg" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
12
12
|
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
13
13
|
/** Button 组件属性。 */
|
package/dist/pages.d.mts
CHANGED
|
@@ -25,4 +25,5 @@ import { VideoDetailMaterialConfig } from "./components/pages/video-detail/video
|
|
|
25
25
|
import { VideoDetailPage } from "./components/pages/video-detail/page.mjs";
|
|
26
26
|
import "./components/pages/video-detail/index.mjs";
|
|
27
27
|
import { VideoListPage } from "./components/pages/video-list/index.mjs";
|
|
28
|
-
|
|
28
|
+
import { VideoListSkeleton } from "./components/pages/video-list/video-list-skeleton.mjs";
|
|
29
|
+
export { AuthGuard, CollectionAddPage, CollectionCreatePage, CollectionDetailPage, EditPage, FansPage, FeedSeriesPage, FeedbackPage, FollowedPage, FullscreenFeedPage, HomePage, PostDetailPage, PublishPage, SearchPage, SearchResultPageClient as SearchResultPage, SettingsPage, UserFollowPage, UserProfilePage, type VideoDetailMaterialConfig, VideoDetailPage, VideoListPage, VideoListSkeleton };
|
package/dist/pages.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{FansPage as e}from"./components/pages/(follow)/fans/index.mjs";import{FollowedPage as t}from"./components/pages/(follow)/followed/index.mjs";import{CollectionAddPage as n}from"./components/pages/collection-add/index.mjs";import{CollectionCreatePage as r}from"./components/pages/collection-create/index.mjs";import{CollectionDetailPage as i}from"./components/pages/collection-detail/index.mjs";import{EditPage as a}from"./components/pages/edit/index.mjs";import o from"./components/pages/feed-series/page.mjs";import{FeedbackPage as s}from"./components/pages/feedback/index.mjs";import{FullscreenFeedPage as c}from"./components/pages/fullscreen-feed/index.mjs";import{HomePage as l}from"./components/pages/home/index.mjs";import{AuthGuard as u}from"./components/pages/login/auth-guard.mjs";import d from"./components/pages/post-detail/page.mjs";import{UserProfilePage as f}from"./components/pages/profile/index.mjs";import p from"./components/pages/publish/page.mjs";import{SearchPage as m}from"./components/pages/search/index.mjs";import h from"./components/pages/search-result/page-client.mjs";import{SettingsPage as g}from"./components/pages/settings/index.mjs";import{UserFollowPage as _}from"./components/pages/user-follow/index.mjs";import v from"./components/pages/video-detail/page.mjs";import{VideoListPage as y}from"./components/pages/video-list/index.mjs";export{u as AuthGuard,n as CollectionAddPage,r as CollectionCreatePage,i as CollectionDetailPage,a as EditPage,e as FansPage,o as FeedSeriesPage,s as FeedbackPage,t as FollowedPage,c as FullscreenFeedPage,l as HomePage,d as PostDetailPage,p as PublishPage,m as SearchPage,h as SearchResultPage,g as SettingsPage,_ as UserFollowPage,f as UserProfilePage,v as VideoDetailPage,y as VideoListPage};
|
|
2
|
+
import{FansPage as e}from"./components/pages/(follow)/fans/index.mjs";import{FollowedPage as t}from"./components/pages/(follow)/followed/index.mjs";import{CollectionAddPage as n}from"./components/pages/collection-add/index.mjs";import{CollectionCreatePage as r}from"./components/pages/collection-create/index.mjs";import{CollectionDetailPage as i}from"./components/pages/collection-detail/index.mjs";import{EditPage as a}from"./components/pages/edit/index.mjs";import o from"./components/pages/feed-series/page.mjs";import{FeedbackPage as s}from"./components/pages/feedback/index.mjs";import{FullscreenFeedPage as c}from"./components/pages/fullscreen-feed/index.mjs";import{HomePage as l}from"./components/pages/home/index.mjs";import{AuthGuard as u}from"./components/pages/login/auth-guard.mjs";import d from"./components/pages/post-detail/page.mjs";import{UserProfilePage as f}from"./components/pages/profile/index.mjs";import p from"./components/pages/publish/page.mjs";import{SearchPage as m}from"./components/pages/search/index.mjs";import h from"./components/pages/search-result/page-client.mjs";import{SettingsPage as g}from"./components/pages/settings/index.mjs";import{UserFollowPage as _}from"./components/pages/user-follow/index.mjs";import v from"./components/pages/video-detail/page.mjs";import{VideoListPage as y}from"./components/pages/video-list/index.mjs";import{VideoListSkeleton as b}from"./components/pages/video-list/video-list-skeleton.mjs";export{u as AuthGuard,n as CollectionAddPage,r as CollectionCreatePage,i as CollectionDetailPage,a as EditPage,e as FansPage,o as FeedSeriesPage,s as FeedbackPage,t as FollowedPage,c as FullscreenFeedPage,l as HomePage,d as PostDetailPage,p as PublishPage,m as SearchPage,h as SearchResultPage,g as SettingsPage,_ as UserFollowPage,f as UserProfilePage,v as VideoDetailPage,y as VideoListPage,b as VideoListSkeleton};
|