@funhub/platform 0.1.62 → 0.1.64
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/_virtual/_rolldown/runtime.mjs +1 -18
- package/dist/assets/icons/clear.mjs +1 -17
- package/dist/assets/icons/close-icon.mjs +1 -18
- package/dist/assets/icons/close.mjs +1 -14
- package/dist/assets/icons/common/collect_nor.mjs +1 -21
- package/dist/assets/icons/common/collect_sel.mjs +1 -21
- package/dist/assets/icons/common/follow_sel.mjs +1 -17
- package/dist/assets/icons/common/follow_user.mjs +1 -17
- package/dist/assets/icons/common/full_screen.mjs +1 -17
- package/dist/assets/icons/common/god_comment.mjs +1 -17
- package/dist/assets/icons/common/heart-like.mjs +1 -31
- package/dist/assets/icons/common/heart-unlike.mjs +1 -18
- package/dist/assets/icons/common/qq.mjs +1 -32
- package/dist/assets/icons/common/right_arrow.mjs +1 -14
- package/dist/assets/icons/common/share.mjs +1 -17
- package/dist/assets/icons/common/solid-arrow.mjs +1 -17
- package/dist/assets/icons/common/video_play.mjs +1 -18
- package/dist/assets/icons/common/wechat-friends.mjs +1 -40
- package/dist/assets/icons/common/wechat.mjs +1 -39
- package/dist/assets/icons/detail/check-ok.mjs +1 -17
- package/dist/assets/icons/detail/collect_nor.mjs +1 -21
- package/dist/assets/icons/detail/collect_sel.mjs +1 -21
- package/dist/assets/icons/detail/comment.mjs +1 -19
- package/dist/assets/icons/detail/commet_at.mjs +1 -53
- package/dist/assets/icons/detail/give_like.mjs +1 -20
- package/dist/assets/icons/detail/give_like_sel.mjs +1 -27
- package/dist/assets/icons/detail/min-collection.mjs +1 -38
- package/dist/assets/icons/detail/publish_pic.mjs +1 -27
- package/dist/assets/icons/detail/publish_video.mjs +1 -30
- package/dist/assets/icons/detail/share.mjs +1 -17
- package/dist/assets/icons/detail/un_like.mjs +1 -20
- package/dist/assets/icons/detail/un_like_sel.mjs +1 -27
- package/dist/assets/icons/detail/video_flag.mjs +1 -17
- package/dist/assets/icons/detail/video_play.mjs +1 -18
- package/dist/assets/icons/dislike.mjs +1 -20
- package/dist/assets/icons/dislike_sel.mjs +1 -27
- package/dist/assets/icons/empty/img-empty-adduser.mjs +1 -463
- package/dist/assets/icons/empty/img-empty-nodata.mjs +1 -194
- package/dist/assets/icons/eye-icon.mjs +1 -21
- package/dist/assets/icons/eye-off-icon.mjs +1 -21
- package/dist/assets/icons/filter_dark.mjs +1 -17
- package/dist/assets/icons/follow_nor.mjs +1 -44
- package/dist/assets/icons/follow_sel.mjs +1 -31
- package/dist/assets/icons/left-arrow-icon.mjs +1 -18
- package/dist/assets/icons/left_arrow.mjs +1 -14
- package/dist/assets/icons/like.mjs +1 -20
- package/dist/assets/icons/like_sel.mjs +1 -27
- package/dist/assets/icons/publish/publish_add.mjs +1 -17
- package/dist/assets/icons/publish/publish_at.mjs +1 -53
- package/dist/assets/icons/publish/publish_collection.mjs +1 -28
- package/dist/assets/icons/publish/publish_pic.mjs +1 -27
- package/dist/assets/icons/publish/publish_video.mjs +1 -30
- package/dist/assets/icons/refresh.mjs +1 -18
- package/dist/assets/icons/right_arrow.mjs +1 -14
- package/dist/assets/icons/search/avatar.mjs +1 -36
- package/dist/assets/icons/search/filter.mjs +1 -17
- package/dist/assets/icons/search/video.mjs +1 -27
- package/dist/assets/icons/search.mjs +1 -23
- package/dist/assets/icons/share/share-link.mjs +1 -39
- package/dist/assets/icons/tabs/follow.mjs +1 -20
- package/dist/assets/icons/tabs/follow_active.mjs +1 -17
- package/dist/assets/icons/tabs/home.mjs +1 -17
- package/dist/assets/icons/tabs/home_active.mjs +1 -17
- package/dist/assets/icons/tabs/mine.mjs +1 -26
- package/dist/assets/icons/tabs/mine_active.mjs +1 -17
- package/dist/assets/icons/view.mjs +1 -17
- package/dist/assets/images/add.mjs +1 -5
- package/dist/assets/images/default_avatar.mjs +1 -5
- package/dist/assets/images/default_collection_cover.mjs +1 -5
- package/dist/assets/images/empty/img_empty_adduser.mjs +1 -463
- package/dist/assets/images/empty/img_empty_message.mjs +1 -408
- package/dist/assets/images/empty/img_empty_network.mjs +1 -168
- package/dist/assets/images/empty/img_empty_nodata.mjs +1 -194
- package/dist/assets/images/empty/img_empty_picture.mjs +1 -59
- package/dist/assets/images/empty/img_empty_search.mjs +1 -250
- package/dist/assets/images/frame.mjs +1 -5
- package/dist/assets/images/less.mjs +1 -5
- package/dist/assets/images/logo.mjs +1 -5
- package/dist/assets/images/marquee.mjs +1 -5
- package/dist/assets/images/subscript.mjs +1 -5
- package/dist/assets/images/user/default_avatar.mjs +1 -5
- package/dist/biz.mjs +1 -145
- package/dist/common.mjs +1 -44
- package/dist/components/biz/basics/card-item/defaults/default-props.mjs +1 -10
- package/dist/components/biz/basics/card-item/runtime/client.mjs +1 -83
- package/dist/components/biz/basics/card-item/runtime/corners.mjs +1 -33
- package/dist/components/biz/basics/card-item/schema/component.mjs +1 -14
- package/dist/components/biz/basics/card-item/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/card-item/schema/event.schema.mjs +1 -8
- package/dist/components/biz/basics/card-item/schema/index.mjs +1 -17
- package/dist/components/biz/basics/card-item/schema/props.schema.mjs +1 -18
- package/dist/components/biz/basics/card-item/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/card-layout/defaults/default-props.mjs +1 -13
- package/dist/components/biz/basics/card-layout/runtime/client.mjs +1 -38
- package/dist/components/biz/basics/card-layout/schema/component.mjs +1 -14
- package/dist/components/biz/basics/card-layout/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/card-layout/schema/event.schema.mjs +1 -5
- package/dist/components/biz/basics/card-layout/schema/index.mjs +1 -17
- package/dist/components/biz/basics/card-layout/schema/props.schema.mjs +1 -28
- package/dist/components/biz/basics/card-layout/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/fullscreen-feed/basic-fullscreen.mjs +1 -268
- package/dist/components/biz/basics/fullscreen-feed/defaults/default-props.mjs +1 -11
- package/dist/components/biz/basics/fullscreen-feed/index.mjs +1 -12
- package/dist/components/biz/basics/fullscreen-feed/runtime/adapters.mjs +1 -97
- package/dist/components/biz/basics/fullscreen-feed/runtime/bottom-info.mjs +1 -125
- package/dist/components/biz/basics/fullscreen-feed/runtime/client.mjs +1 -391
- package/dist/components/biz/basics/fullscreen-feed/runtime/comment-modal.mjs +1 -107
- package/dist/components/biz/basics/fullscreen-feed/runtime/interaction-sync.mjs +1 -134
- package/dist/components/biz/basics/fullscreen-feed/runtime/post-slide.mjs +1 -232
- package/dist/components/biz/basics/fullscreen-feed/runtime/styles.module.mjs +152 -25
- package/dist/components/biz/basics/fullscreen-feed/runtime/use-mixed-feed-controller.mjs +1 -193
- package/dist/components/biz/basics/fullscreen-feed/runtime/use-series-feed-controller.mjs +1 -212
- package/dist/components/biz/basics/fullscreen-feed/runtime/user-action.mjs +1 -273
- package/dist/components/biz/basics/fullscreen-feed/runtime/video-slide.mjs +1 -373
- package/dist/components/biz/basics/fullscreen-feed/schema/component.mjs +1 -14
- package/dist/components/biz/basics/fullscreen-feed/schema/data.schema.mjs +1 -11
- package/dist/components/biz/basics/fullscreen-feed/schema/event.schema.mjs +1 -13
- package/dist/components/biz/basics/fullscreen-feed/schema/index.mjs +1 -17
- package/dist/components/biz/basics/fullscreen-feed/schema/props.schema.mjs +1 -20
- package/dist/components/biz/basics/fullscreen-feed/schema/style.schema.mjs +1 -5
- package/dist/components/biz/basics/logo/variants/basic-logo/defaults/default-props.mjs +1 -19
- package/dist/components/biz/basics/logo/variants/basic-logo/index.mjs +1 -9
- package/dist/components/biz/basics/logo/variants/basic-logo/runtime/client.mjs +1 -169
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/component.mjs +1 -14
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/data.schema.mjs +1 -9
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/event.schema.mjs +1 -23
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/index.mjs +1 -17
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/props.schema.mjs +1 -78
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/search/shared/components/search-box.mjs +1 -55
- package/dist/components/biz/basics/search/shared/config/default-data.mjs +1 -15
- package/dist/components/biz/basics/search/shared/config/schema.mjs +1 -50
- package/dist/components/biz/basics/search/variants/basic-search/defaults/default-props.mjs +1 -10
- package/dist/components/biz/basics/search/variants/basic-search/index.mjs +1 -12
- package/dist/components/biz/basics/search/variants/basic-search/runtime/client.mjs +1 -31
- package/dist/components/biz/basics/search/variants/basic-search/schema/component.mjs +1 -14
- package/dist/components/biz/basics/search/variants/basic-search/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/search/variants/basic-search/schema/event.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/basic-search/schema/index.mjs +1 -17
- package/dist/components/biz/basics/search/variants/basic-search/schema/props.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/basic-search/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/filter-search/defaults/default-props.mjs +1 -14
- package/dist/components/biz/basics/search/variants/filter-search/index.mjs +1 -12
- package/dist/components/biz/basics/search/variants/filter-search/runtime/client.mjs +1 -63
- package/dist/components/biz/basics/search/variants/filter-search/schema/component.mjs +1 -14
- package/dist/components/biz/basics/search/variants/filter-search/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/search/variants/filter-search/schema/event.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/filter-search/schema/index.mjs +1 -17
- package/dist/components/biz/basics/search/variants/filter-search/schema/props.schema.mjs +1 -22
- package/dist/components/biz/basics/search/variants/filter-search/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/simple-search/defaults/default-props.mjs +1 -10
- package/dist/components/biz/basics/search/variants/simple-search/index.mjs +1 -9
- package/dist/components/biz/basics/search/variants/simple-search/runtime/client.mjs +1 -37
- package/dist/components/biz/basics/search/variants/simple-search/schema/component.mjs +1 -14
- package/dist/components/biz/basics/search/variants/simple-search/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/search/variants/simple-search/schema/event.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/simple-search/schema/index.mjs +1 -17
- package/dist/components/biz/basics/search/variants/simple-search/schema/props.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/simple-search/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/tag-search/defaults/default-props.mjs +1 -18
- package/dist/components/biz/basics/search/variants/tag-search/index.mjs +1 -9
- package/dist/components/biz/basics/search/variants/tag-search/runtime/client.mjs +1 -67
- package/dist/components/biz/basics/search/variants/tag-search/schema/component.mjs +1 -14
- package/dist/components/biz/basics/search/variants/tag-search/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/search/variants/tag-search/schema/event.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/tag-search/schema/index.mjs +1 -17
- package/dist/components/biz/basics/search/variants/tag-search/schema/props.schema.mjs +1 -37
- package/dist/components/biz/basics/search/variants/tag-search/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/banner/variants/basic-banner/defaults/default-props.mjs +1 -15
- package/dist/components/biz/business/banner/variants/basic-banner/index.mjs +1 -12
- package/dist/components/biz/business/banner/variants/basic-banner/inspector-schema.mjs +1 -64
- package/dist/components/biz/business/banner/variants/basic-banner/material.mjs +1 -21
- package/dist/components/biz/business/banner/variants/basic-banner/runtime/client.mjs +1 -126
- package/dist/components/biz/business/banner/variants/basic-banner/schema/component.mjs +1 -14
- package/dist/components/biz/business/banner/variants/basic-banner/schema/data.schema.mjs +1 -53
- package/dist/components/biz/business/banner/variants/basic-banner/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/banner/variants/basic-banner/schema/index.mjs +1 -17
- package/dist/components/biz/business/banner/variants/basic-banner/schema/props.schema.mjs +1 -40
- package/dist/components/biz/business/banner/variants/basic-banner/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/banner/variants/basic-banner/server.mjs +1 -25
- package/dist/components/biz/business/banner-carousel/client.mjs +1 -121
- package/dist/components/biz/business/banner-carousel/default-props.mjs +1 -15
- package/dist/components/biz/business/banner-carousel/material.mjs +1 -21
- package/dist/components/biz/business/banner-carousel/schema.mjs +1 -85
- package/dist/components/biz/business/banner-carousel/server.mjs +1 -22
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/defaults/default-props.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/index.mjs +1 -9
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/runtime/client.mjs +1 -41
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/component.mjs +1 -14
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/data.schema.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/index.mjs +1 -17
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/props.schema.mjs +1 -12
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/defaults/default-props.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/index.mjs +1 -9
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/runtime/client.mjs +1 -107
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/component.mjs +1 -14
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/data.schema.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/index.mjs +1 -17
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/props.schema.mjs +1 -12
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/defaults/default-props.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/index.mjs +1 -9
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/runtime/client.mjs +1 -41
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/component.mjs +1 -14
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/data.schema.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/index.mjs +1 -17
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/props.schema.mjs +1 -12
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/defaults/default-props.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/index.mjs +1 -9
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/runtime/client.mjs +1 -41
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/component.mjs +1 -14
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/data.schema.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/index.mjs +1 -17
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/props.schema.mjs +1 -12
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/defaults/default-props.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/index.mjs +1 -9
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/runtime/client.mjs +1 -107
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/component.mjs +1 -14
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/data.schema.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/index.mjs +1 -17
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/props.schema.mjs +1 -12
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/channel-list/channel-filter-dialog.mjs +1 -180
- package/dist/components/biz/business/channel-list/client.mjs +1 -111
- package/dist/components/biz/business/channel-list/default-props.mjs +1 -12
- package/dist/components/biz/business/channel-list/material.mjs +1 -21
- package/dist/components/biz/business/channel-list/schema.mjs +1 -39
- package/dist/components/biz/business/comment/comment-input.mjs +5 -772
- package/dist/components/biz/business/comment/comment-item.mjs +1 -190
- package/dist/components/biz/business/comment/comment-list.mjs +1 -722
- package/dist/components/biz/business/comment/comment-media.mjs +1 -57
- package/dist/components/biz/business/comment/comment-rich-text.mjs +1 -69
- package/dist/components/biz/business/comment/reply-detail.mjs +1 -978
- package/dist/components/biz/business/comment/time-display.mjs +1 -20
- package/dist/components/biz/business/comment/use-keyboard-handler.mjs +1 -142
- package/dist/components/biz/business/contact/contact-item.mjs +1 -45
- package/dist/components/biz/business/contact/contact-list.mjs +1 -212
- package/dist/components/biz/business/contact/contact-search.mjs +1 -128
- package/dist/components/biz/business/detail/shared/detail-follow-action.mjs +1 -105
- package/dist/components/biz/business/detail/shared/detail-info-tags.mjs +1 -24
- package/dist/components/biz/business/detail/shared/detail-info-title.mjs +1 -82
- package/dist/components/biz/business/detail/shared/detail-introduction.mjs +1 -64
- package/dist/components/biz/business/detail/shared/detail-operate.mjs +1 -330
- package/dist/components/biz/business/detail/shared/detail-structured-data.mjs +1 -63
- package/dist/components/biz/business/detail/shared/editor-preview.mjs +1 -67
- package/dist/components/biz/business/detail/shared/metadata-utils.mjs +1 -21
- package/dist/components/biz/business/detail/shared/post-recommend-list.mjs +1 -184
- package/dist/components/biz/business/detail/shared/registry.mjs +1 -55
- package/dist/components/biz/business/detail/shared/runtime-context-provider.mjs +1 -25
- package/dist/components/biz/business/detail/shared/seo-config.mjs +1 -28
- package/dist/components/biz/business/detail/shared/video-hero.mjs +1 -393
- package/dist/components/biz/business/detail/video-detail-actions/client.d.mts +1 -1
- package/dist/components/biz/business/detail/video-detail-actions/client.mjs +1 -28
- package/dist/components/biz/business/detail/video-detail-actions/material.mjs +1 -18
- package/dist/components/biz/business/detail/video-detail-actions/schema.mjs +1 -11
- package/dist/components/biz/business/detail/video-detail-actions/server.mjs +1 -17
- package/dist/components/biz/business/detail/video-detail-info/client.d.mts +1 -1
- package/dist/components/biz/business/detail/video-detail-info/client.mjs +1 -40
- package/dist/components/biz/business/detail/video-detail-info/material.mjs +1 -18
- package/dist/components/biz/business/detail/video-detail-info/schema.mjs +1 -20
- package/dist/components/biz/business/detail/video-detail-info/server.mjs +1 -17
- package/dist/components/biz/business/detail/video-detail-info-title/client.mjs +1 -27
- package/dist/components/biz/business/detail/video-detail-info-title/material.mjs +1 -18
- package/dist/components/biz/business/detail/video-detail-info-title/schema.mjs +1 -11
- package/dist/components/biz/business/detail/video-detail-info-title/server.mjs +1 -17
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/client.mjs +1 -49
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/material.mjs +1 -18
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/schema.mjs +1 -20
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/server.mjs +1 -17
- package/dist/components/biz/business/detail/video-detail-player/client.d.mts +2 -1
- package/dist/components/biz/business/detail/video-detail-player/client.mjs +1 -36
- package/dist/components/biz/business/detail/video-detail-player/material.mjs +1 -18
- package/dist/components/biz/business/detail/video-detail-player/schema.d.mts +4 -1
- package/dist/components/biz/business/detail/video-detail-player/schema.mjs +1 -11
- package/dist/components/biz/business/detail/video-detail-player/server.mjs +1 -17
- package/dist/components/biz/business/detail/video-detail-recommend/client.mjs +1 -269
- package/dist/components/biz/business/detail/video-detail-recommend/material.mjs +1 -18
- package/dist/components/biz/business/detail/video-detail-recommend/schema.mjs +1 -58
- package/dist/components/biz/business/detail/video-detail-recommend/server.mjs +1 -17
- package/dist/components/biz/business/detail/video-detail-recommend/utils.mjs +1 -51
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/defaults/default-props.mjs +1 -12
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/index.mjs +1 -9
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/runtime/client.mjs +1 -66
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/component.mjs +1 -14
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/data.schema.mjs +1 -43
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/index.mjs +1 -17
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/props.schema.mjs +1 -32
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/floating-ball/client.mjs +1 -31
- package/dist/components/biz/business/floating-ball/material.mjs +1 -18
- package/dist/components/biz/business/floating-ball/schema.mjs +1 -22
- package/dist/components/biz/business/floating-ball/server.mjs +1 -17
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/defaults/default-props.mjs +1 -11
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/index.mjs +1 -9
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/runtime/client.mjs +1 -71
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/component.mjs +1 -14
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/data.schema.mjs +1 -11
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/index.mjs +1 -17
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/defaults/default-props.mjs +1 -11
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/index.mjs +1 -9
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/runtime/client.mjs +1 -64
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/component.mjs +1 -14
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/data.schema.mjs +1 -11
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/index.mjs +1 -17
- package/dist/components/biz/business/fullscreen-feed/variants/shared/runtime-compat.mjs +1 -522
- package/dist/components/biz/business/header-search/header-avatar-icon/client.mjs +1 -29
- package/dist/components/biz/business/header-search/header-avatar-icon/material.mjs +1 -18
- package/dist/components/biz/business/header-search/header-avatar-icon/schema.mjs +1 -11
- package/dist/components/biz/business/header-search/header-avatar-icon/server.mjs +1 -17
- package/dist/components/biz/business/header-search/header-avatar-logo-search/client.mjs +1 -36
- package/dist/components/biz/business/header-search/header-avatar-logo-search/material.mjs +1 -18
- package/dist/components/biz/business/header-search/header-avatar-logo-search/schema.mjs +1 -24
- package/dist/components/biz/business/header-search/header-avatar-logo-search/server.mjs +1 -17
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/client.mjs +1 -45
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/material.mjs +1 -18
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/schema.mjs +1 -22
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/server.mjs +1 -17
- package/dist/components/biz/business/header-search/header-logo-search/client.mjs +1 -33
- package/dist/components/biz/business/header-search/header-logo-search/material.mjs +1 -18
- package/dist/components/biz/business/header-search/header-logo-search/schema.mjs +1 -24
- package/dist/components/biz/business/header-search/header-logo-search/server.mjs +1 -17
- package/dist/components/biz/business/header-search/header-search/client.mjs +1 -20
- package/dist/components/biz/business/header-search/header-search/material.mjs +1 -18
- package/dist/components/biz/business/header-search/header-search/schema.mjs +1 -11
- package/dist/components/biz/business/header-search/header-search/server.mjs +1 -17
- package/dist/components/biz/business/header-search/shared/avatar.mjs +1 -44
- package/dist/components/biz/business/header-search/shared/logo.mjs +1 -28
- package/dist/components/biz/business/header-search/shared/search.mjs +1 -28
- package/dist/components/biz/business/home-recommend/home-recommend-grid/client.mjs +1 -48
- package/dist/components/biz/business/home-recommend/home-recommend-grid/index.mjs +1 -14
- package/dist/components/biz/business/home-recommend/home-recommend-grid/inspector-schema.d.mts +2 -0
- package/dist/components/biz/business/home-recommend/home-recommend-grid/inspector-schema.mjs +1 -181
- package/dist/components/biz/business/home-recommend/home-recommend-grid/material.d.mts +1 -0
- package/dist/components/biz/business/home-recommend/home-recommend-grid/material.mjs +1 -18
- package/dist/components/biz/business/home-recommend/home-recommend-grid/schema.mjs +1 -24
- package/dist/components/biz/business/home-recommend/home-recommend-grid/server.mjs +1 -41
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/client.mjs +1 -44
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/index.mjs +1 -14
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.d.mts +2 -0
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.mjs +1 -157
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/material.d.mts +1 -0
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/material.mjs +1 -18
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/schema.mjs +1 -24
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/server.mjs +1 -37
- package/dist/components/biz/business/home-recommend/shared/home-recommend-base.mjs +1 -459
- package/dist/components/biz/business/home-recommend/shared/home-recommend-default-config.mjs +1 -24
- package/dist/components/biz/business/home-recommend/shared/home-recommend-preview.mjs +1 -125
- package/dist/components/biz/business/home-recommend/shared/home-recommend-server-data.mjs +1 -231
- package/dist/components/biz/business/home-recommend/shared/home-recommend-video-detail.mjs +1 -38
- package/dist/components/biz/business/image-text-recommend/client.d.mts +2 -0
- package/dist/components/biz/business/image-text-recommend/client.mjs +1 -379
- package/dist/components/biz/business/image-text-recommend/material.mjs +1 -21
- package/dist/components/biz/business/image-text-recommend/schema.mjs +1 -117
- package/dist/components/biz/business/image-text-recommend/server.mjs +1 -65
- package/dist/components/biz/business/large-feature-grid/card-item.mjs +1 -84
- package/dist/components/biz/business/large-feature-grid/client.mjs +1 -88
- package/dist/components/biz/business/large-feature-grid/material.mjs +1 -21
- package/dist/components/biz/business/large-feature-grid/schema.mjs +1 -81
- package/dist/components/biz/business/large-feature-grid/server.mjs +1 -16
- package/dist/components/biz/business/marquee/client.mjs +1 -212
- package/dist/components/biz/business/marquee/marquee.module.mjs +25 -13
- package/dist/components/biz/business/marquee/material.mjs +1 -21
- package/dist/components/biz/business/marquee/schema.mjs +1 -91
- package/dist/components/biz/business/marquee/server.mjs +1 -17
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/defaults/default-props.mjs +1 -21
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/index.mjs +1 -9
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/runtime/channel-filter-dialog.mjs +1 -180
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/runtime/client.mjs +1 -148
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/component.mjs +1 -14
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/event.schema.mjs +1 -27
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/index.mjs +1 -17
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/props.schema.mjs +1 -92
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/post-card/variants/basic-post-card/defaults/default-props.mjs +1 -8
- package/dist/components/biz/business/post-card/variants/basic-post-card/index.mjs +1 -9
- package/dist/components/biz/business/post-card/variants/basic-post-card/runtime/client.mjs +1 -120
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/component.mjs +1 -14
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/data.schema.mjs +1 -8
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/index.mjs +1 -17
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/props.schema.mjs +1 -5
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/profile/profile-header/client.mjs +1 -289
- package/dist/components/biz/business/profile/profile-header/material.mjs +1 -60
- package/dist/components/biz/business/profile/profile-header/schema.mjs +1 -11
- package/dist/components/biz/business/profile/profile-header/server.mjs +1 -111
- package/dist/components/biz/business/profile/profile-header/user-profile-avatar.mjs +1 -235
- package/dist/components/biz/business/profile/profile-header/user-profile-cover-background.mjs +1 -135
- package/dist/components/biz/business/profile/profile-main/client.mjs +1 -137
- package/dist/components/biz/business/profile/profile-main/material.mjs +1 -18
- package/dist/components/biz/business/profile/profile-main/schema.mjs +1 -11
- package/dist/components/biz/business/profile/profile-main/server.mjs +1 -161
- package/dist/components/biz/business/profile/profile-main/shell.mjs +1 -211
- package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs +1 -489
- package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/server.mjs +1 -213
- package/dist/components/biz/business/profile/profile-main/tabs/history-tab/client.mjs +1 -251
- package/dist/components/biz/business/profile/profile-main/tabs/history-tab/server.mjs +1 -47
- package/dist/components/biz/business/profile/profile-main/tabs/like-tab/client.mjs +1 -251
- package/dist/components/biz/business/profile/profile-main/tabs/like-tab/server.mjs +1 -45
- package/dist/components/biz/business/profile/profile-main/tabs/publish-tab/client.mjs +1 -149
- package/dist/components/biz/business/profile/profile-main/tabs/publish-tab/server.mjs +1 -43
- package/dist/components/biz/business/profile/profile-main/utils.mjs +1 -248
- package/dist/components/biz/business/profile/profile-main/variants.mjs +1 -40
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/defaults/default-props.mjs +1 -15
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/index.mjs +1 -9
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/runtime/client.mjs +1 -168
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/runtime/recommended-users-skeleton.mjs +1 -119
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/component.mjs +1 -14
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/event.schema.mjs +1 -17
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/index.mjs +1 -17
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/props.schema.mjs +1 -54
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/defaults/default-props.mjs +1 -15
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/index.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/runtime/client.mjs +1 -52
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/component.mjs +1 -14
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/index.mjs +1 -17
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/props.schema.mjs +1 -117
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/defaults/default-props.mjs +1 -22
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/index.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/runtime/client.mjs +1 -53
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/component.mjs +1 -14
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/index.mjs +1 -17
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/props.schema.mjs +1 -117
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/defaults/default-props.mjs +1 -15
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/index.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/runtime/client.mjs +1 -52
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/component.mjs +1 -14
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/event.schema.mjs +1 -25
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/index.mjs +1 -17
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/props.schema.mjs +1 -128
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/defaults/default-props.mjs +1 -15
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/index.mjs +1 -12
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/runtime/client.mjs +1 -58
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/component.mjs +1 -14
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/event.schema.mjs +1 -38
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/index.mjs +1 -17
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/props.schema.mjs +1 -144
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/search-history/client.mjs +1 -121
- package/dist/components/biz/business/search-history/material.mjs +1 -18
- package/dist/components/biz/business/search-history/schema.mjs +1 -20
- package/dist/components/biz/business/search-history/server.mjs +1 -22
- package/dist/components/biz/business/search-input/client.mjs +1 -139
- package/dist/components/biz/business/search-input/material.mjs +1 -18
- package/dist/components/biz/business/search-input/schema.mjs +1 -11
- package/dist/components/biz/business/search-input/server.mjs +1 -21
- package/dist/components/biz/business/shortcut-grid/client.mjs +1 -64
- package/dist/components/biz/business/shortcut-grid/material.mjs +1 -18
- package/dist/components/biz/business/shortcut-grid/schema.mjs +1 -70
- package/dist/components/biz/business/shortcut-grid/server.mjs +1 -17
- package/dist/components/biz/business/tab-bar/client.mjs +1 -78
- package/dist/components/biz/business/tab-bar/material.d.mts +0 -1
- package/dist/components/biz/business/tab-bar/material.mjs +1 -21
- package/dist/components/biz/business/tab-bar/schema.d.mts +0 -1
- package/dist/components/biz/business/tab-bar/schema.mjs +1 -69
- package/dist/components/biz/business/tab-bar/server.mjs +1 -18
- package/dist/components/biz/business/text-recommend/client.d.mts +1 -1
- package/dist/components/biz/business/text-recommend/client.mjs +1 -80
- package/dist/components/biz/business/text-recommend/material.mjs +1 -18
- package/dist/components/biz/business/text-recommend/schema.mjs +1 -28
- package/dist/components/biz/business/text-recommend/server.mjs +1 -18
- package/dist/components/biz/example/button/client.mjs +1 -43
- package/dist/components/biz/example/button/material.mjs +1 -18
- package/dist/components/biz/example/button/schema.mjs +1 -47
- package/dist/components/biz/example/button/server.mjs +1 -32
- package/dist/components/biz/example/button/variants.mjs +1 -22
- package/dist/components/biz/renderer/renderer.mjs +1 -73
- package/dist/components/biz/utils/constants/card-spec.mjs +1 -48
- package/dist/components/biz/utils/helpers/get-channel-list.mjs +1 -14
- package/dist/components/biz/utils/helpers/url.mjs +1 -16
- package/dist/components/biz/utils/schema/data.mjs +1 -22
- package/dist/components/biz/utils/styles/helpers.mjs +1 -84
- package/dist/components/biz/utils/styles/schema.mjs +1 -306
- package/dist/components/biz/utils/transformers/card-grid.mjs +1 -71
- package/dist/components/biz/utils/transformers/data.mjs +1 -171
- package/dist/components/common/at-element/index.mjs +1 -47
- package/dist/components/common/background-preview-modal/background-preview-modal.mjs +1 -73
- package/dist/components/common/blocked-dialog/blocked-dialog.mjs +1 -54
- package/dist/components/common/cards/mini-three-card.mjs +1 -55
- package/dist/components/common/cards/style.module.mjs +24 -12
- package/dist/components/common/collection-popup/collection-create-modal.mjs +1 -130
- package/dist/components/common/collection-popup/index.mjs +1 -292
- package/dist/components/common/debug-locale-switcher/index.mjs +1 -59
- package/dist/components/common/delete-confirm-dialog/delete-confirm-dialog.mjs +1 -66
- package/dist/components/common/empty/index.mjs +1 -51
- package/dist/components/common/follow-button/index.mjs +1 -133
- package/dist/components/common/follow-button/unfollow-confirm-dialog.mjs +1 -35
- package/dist/components/common/funhub-provider/funhub-provider.mjs +1 -85
- package/dist/components/common/header-nav/client.mjs +1 -51
- package/dist/components/common/icons/add.mjs +1 -21
- package/dist/components/common/icons/comment.mjs +1 -30
- package/dist/components/common/icons/delete.mjs +1 -32
- package/dist/components/common/icons/left-arrow.mjs +1 -15
- package/dist/components/common/icons/more.mjs +1 -30
- package/dist/components/common/icons/right-arrow.mjs +1 -19
- package/dist/components/common/icons/setting.mjs +1 -45
- package/dist/components/common/icons/share.mjs +1 -20
- package/dist/components/common/icons/video.mjs +1 -22
- package/dist/components/common/image-crop/image-crop.mjs +1 -182
- package/dist/components/common/image-crop/show-image-crop.mjs +1 -102
- package/dist/components/common/image-crop-modal/image-crop-modal.mjs +2 -128
- package/dist/components/common/info-card/card-header.mjs +1 -70
- package/dist/components/common/info-card/card-text.mjs +1 -49
- package/dist/components/common/interaction-animations.module.mjs +84 -14
- package/dist/components/common/intl-provider/intl-provider.mjs +1 -21
- package/dist/components/common/keep-scroll-position/index.mjs +1 -39
- package/dist/components/common/list/collection-list/collection-list-item.mjs +1 -93
- package/dist/components/common/list/collection-list/collection-list.mjs +1 -21
- package/dist/components/common/list/post-list/post-list-item.mjs +1 -54
- package/dist/components/common/list/post-list/post-list.mjs +1 -143
- package/dist/components/common/list/user-activity-list/user-activity-list-actions.mjs +1 -269
- package/dist/components/common/list/user-activity-list/user-activity-list-item.mjs +1 -468
- package/dist/components/common/list/user-activity-list/user-activity-list.mjs +1 -139
- package/dist/components/common/list/video-list/video-list-item.mjs +1 -104
- package/dist/components/common/list/video-list/video-list.mjs +1 -152
- package/dist/components/common/locale-sync/locale-sync.mjs +1 -62
- package/dist/components/common/login-dialog/login-dialog.mjs +1 -29
- package/dist/components/common/media-preview/index.mjs +1 -162
- package/dist/components/common/media-preview/video-play.mjs +1 -237
- package/dist/components/common/page-loading/index.mjs +1 -20
- package/dist/components/common/page-skeleton/page-skeleton.mjs +1 -7
- package/dist/components/common/photo-grid/common-photo-grid.mjs +1 -321
- package/dist/components/common/photo-grid/index.mjs +1 -226
- package/dist/components/common/photo-preview/common-photo-preview.mjs +1 -97
- package/dist/components/common/photo-preview/decrypt-loading.mjs +2 -66
- package/dist/components/common/photo-preview/index.mjs +1 -64
- package/dist/components/common/photo-preview/style.mjs +19 -7
- package/dist/components/common/picker/gender-picker/gender-picker.mjs +1 -66
- package/dist/components/common/picker/picker-drawer/picker-drawer.mjs +1 -78
- package/dist/components/common/popup-video/index.mjs +1 -76
- package/dist/components/common/popup-video/popup-video.module.mjs +16 -7
- package/dist/components/common/series-episodes/index.mjs +1 -429
- package/dist/components/common/share-popup/share-content.mjs +1 -152
- package/dist/components/common/share-popup/share-drawer.mjs +1 -100
- package/dist/components/common/share-popup/share-popup.mjs +1 -300
- package/dist/components/common/skeleton/post-list-item-skeleton.mjs +1 -99
- package/dist/components/common/skeleton/user-activity-list-item-skeleton.mjs +1 -146
- package/dist/components/common/skeleton/video-list-item-skeleton.mjs +1 -110
- package/dist/components/common/tab-bar/index.mjs +1 -125
- package/dist/components/common/theme-sync/index.mjs +1 -22
- package/dist/components/common/top-nav-bar/client.mjs +1 -63
- package/dist/components/common/top-nav-bar/fullscreen.mjs +1 -27
- package/dist/components/common/top-nav-bar/index.mjs +1 -29
- package/dist/components/common/top-nav-bar/normal.mjs +1 -20
- package/dist/components/common/video-player/create-video.mjs +2 -27
- package/dist/components/common/video-player/index.mjs +5 -701
- package/dist/components/common/video-player/playing-videos.mjs +1 -73
- package/dist/components/common/video-player/process-m3u8-cache.mjs +1 -282
- package/dist/components/common/video-player/style.module.mjs +259 -7
- package/dist/components/common/wait-loading.mjs +1 -119
- package/dist/components/pages/(follow)/_components/follow-button/index.mjs +1 -80
- package/dist/components/pages/(follow)/_components/header-nav/index.mjs +1 -13
- package/dist/components/pages/(follow)/_components/interaction-tabs/index.mjs +1 -43
- package/dist/components/pages/(follow)/_components/user-list/index.mjs +1 -139
- package/dist/components/pages/(follow)/_components/user-list/user-list-item.mjs +1 -46
- package/dist/components/pages/(follow)/fans/index.mjs +1 -10
- package/dist/components/pages/(follow)/fans/page.mjs +1 -95
- package/dist/components/pages/(follow)/followed/index.mjs +1 -10
- package/dist/components/pages/(follow)/followed/page.mjs +1 -95
- package/dist/components/pages/collection-add/index.mjs +1 -10
- package/dist/components/pages/collection-add/page.mjs +1 -161
- package/dist/components/pages/collection-create/form.mjs +1 -163
- package/dist/components/pages/collection-create/index.mjs +1 -10
- package/dist/components/pages/collection-create/page.mjs +1 -28
- package/dist/components/pages/collection-detail/_components/collection-detail-card.mjs +1 -183
- package/dist/components/pages/collection-detail/detail.mjs +1 -518
- package/dist/components/pages/collection-detail/index.mjs +1 -10
- package/dist/components/pages/collection-detail/page.mjs +1 -18
- package/dist/components/pages/edit/index.mjs +1 -10
- package/dist/components/pages/edit/page.mjs +1 -576
- package/dist/components/pages/feed-series/feed-series-client.mjs +1 -382
- package/dist/components/pages/feed-series/page.mjs +1 -97
- package/dist/components/pages/feedback/_components/feedback-form.mjs +1 -263
- package/dist/components/pages/feedback/index.mjs +1 -10
- package/dist/components/pages/feedback/page.mjs +1 -10
- package/dist/components/pages/fullscreen-feed/index.mjs +1 -10
- package/dist/components/pages/fullscreen-feed/page.mjs +1 -104
- package/dist/components/pages/home/channel-matcher.mjs +1 -30
- package/dist/components/pages/home/client.mjs +1 -169
- package/dist/components/pages/home/index.mjs +1 -56
- package/dist/components/pages/login/agreement-dialog.mjs +1 -104
- package/dist/components/pages/login/auth-guard.mjs +1 -36
- package/dist/components/pages/login/forgot.mjs +1 -130
- package/dist/components/pages/login/index.mjs +1 -107
- package/dist/components/pages/login/login-client.mjs +1 -214
- package/dist/components/pages/login/password.mjs +1 -186
- package/dist/components/pages/login/register.mjs +1 -189
- package/dist/components/pages/login/reset-password.mjs +1 -193
- package/dist/components/pages/login/verify.mjs +3 -212
- package/dist/components/pages/post-detail/page.mjs +1 -28
- package/dist/components/pages/post-detail/post-detail-client.mjs +1 -516
- package/dist/components/pages/profile/index.mjs +1 -10
- package/dist/components/pages/profile/page.mjs +1 -28
- package/dist/components/pages/publish/components/collection-card.mjs +1 -49
- package/dist/components/pages/publish/components/collection-popup.mjs +1 -81
- package/dist/components/pages/publish/components/collection.mjs +1 -97
- package/dist/components/pages/publish/components/cover-item.mjs +1 -46
- package/dist/components/pages/publish/components/editor.mjs +1 -208
- package/dist/components/pages/publish/components/header.mjs +1 -31
- package/dist/components/pages/publish/components/material-grid.mjs +1 -52
- package/dist/components/pages/publish/components/material-item.mjs +1 -68
- package/dist/components/pages/publish/components/toolbar.mjs +1 -39
- package/dist/components/pages/publish/components/upload-progress.mjs +1 -53
- package/dist/components/pages/publish/components/video-item.mjs +1 -36
- package/dist/components/pages/publish/constants.mjs +1 -8
- package/dist/components/pages/publish/hooks/use-file-upload.mjs +1 -162
- package/dist/components/pages/publish/page-client.mjs +1 -345
- package/dist/components/pages/publish/page.mjs +1 -11
- package/dist/components/pages/publish/utils/file-upload.mjs +1 -155
- package/dist/components/pages/publish/utils/publish-utils.mjs +1 -11
- package/dist/components/pages/search/hot-recommend.mjs +1 -185
- package/dist/components/pages/search/hot-search.mjs +1 -70
- package/dist/components/pages/search/index.mjs +1 -17
- package/dist/components/pages/search/page-client.mjs +1 -159
- package/dist/components/pages/search/search-result/index.mjs +1 -22
- package/dist/components/pages/search/search-result/search-all.mjs +1 -223
- package/dist/components/pages/search/search-result/search-user.mjs +1 -203
- package/dist/components/pages/search/search-result/search-video-info.mjs +1 -301
- package/dist/components/pages/search/search-utils.mjs +1 -48
- package/dist/components/pages/search/style.module.mjs +113 -13
- package/dist/components/pages/search/top-header.mjs +1 -89
- package/dist/components/pages/search-result/page-client.mjs +1 -110
- package/dist/components/pages/search-result/search-all.mjs +1 -79
- package/dist/components/pages/search-result/search-tab.mjs +1 -89
- package/dist/components/pages/search-result/search-user.mjs +1 -258
- package/dist/components/pages/search-result/search-video.mjs +1 -226
- package/dist/components/pages/settings/_components/reset-password-drawer.mjs +1 -256
- package/dist/components/pages/settings/_components/settings.mjs +1 -183
- package/dist/components/pages/settings/index.mjs +1 -10
- package/dist/components/pages/settings/page.mjs +1 -13
- package/dist/components/pages/user-follow/_components/follow-no-login.mjs +1 -34
- package/dist/components/pages/user-follow/_components/follow-top-header.mjs +1 -25
- package/dist/components/pages/user-follow/_components/post-tab.mjs +1 -96
- package/dist/components/pages/user-follow/index.mjs +1 -10
- package/dist/components/pages/user-follow/page.mjs +1 -106
- package/dist/components/pages/user-follow/skeleton.mjs +1 -62
- package/dist/components/pages/video-detail/page.mjs +1 -47
- package/dist/components/pages/video-detail/video-detail-client.mjs +1 -338
- package/dist/components/pages/video-list/index.mjs +1 -58
- package/dist/components/pages/video-list/types.mjs +1 -16
- package/dist/components/pages/video-list/video-list-client.mjs +1 -111
- package/dist/components/pages/video-list/video-list-item.mjs +1 -35
- package/dist/components/ui/accordion.mjs +1 -62
- package/dist/components/ui/alert-dialog.mjs +1 -114
- package/dist/components/ui/alert.mjs +1 -50
- package/dist/components/ui/aspect-ratio.mjs +1 -17
- package/dist/components/ui/avatar.mjs +1 -97
- package/dist/components/ui/badge.d.mts +1 -1
- package/dist/components/ui/badge.mjs +1 -38
- package/dist/components/ui/box.mjs +1 -17
- package/dist/components/ui/breadcrumb.mjs +1 -84
- package/dist/components/ui/button-group.mjs +1 -49
- package/dist/components/ui/button.d.mts +1 -1
- package/dist/components/ui/button.mjs +1 -50
- package/dist/components/ui/card.mjs +1 -65
- package/dist/components/ui/carousel.mjs +1 -142
- package/dist/components/ui/checkbox.mjs +1 -25
- package/dist/components/ui/collapsible.mjs +1 -31
- package/dist/components/ui/combobox.mjs +1 -185
- package/dist/components/ui/context-menu.mjs +1 -150
- package/dist/components/ui/dialog.mjs +1 -109
- package/dist/components/ui/drawer.mjs +1 -91
- package/dist/components/ui/dropdown-menu.mjs +1 -154
- package/dist/components/ui/empty-icons.mjs +7 -96
- package/dist/components/ui/empty.mjs +1 -95
- package/dist/components/ui/field.mjs +1 -131
- package/dist/components/ui/hover-card.mjs +1 -43
- package/dist/components/ui/image.mjs +1 -202
- package/dist/components/ui/infinite-scroll.mjs +1 -134
- package/dist/components/ui/input-group.mjs +1 -90
- package/dist/components/ui/input.mjs +1 -19
- package/dist/components/ui/item.mjs +1 -137
- package/dist/components/ui/kbd.mjs +1 -24
- package/dist/components/ui/label.mjs +1 -18
- package/dist/components/ui/legacy/badge.mjs +1 -80
- package/dist/components/ui/legacy/button.mjs +1 -55
- package/dist/components/ui/legacy/input.mjs +1 -22
- package/dist/components/ui/legacy/popover.mjs +1 -69
- package/dist/components/ui/link.mjs +1 -29
- package/dist/components/ui/list.mjs +5 -221
- package/dist/components/ui/loading.mjs +1 -44
- package/dist/components/ui/mask.mjs +1 -17
- package/dist/components/ui/menubar.mjs +1 -154
- package/dist/components/ui/native-select.mjs +1 -43
- package/dist/components/ui/pagination.mjs +1 -90
- package/dist/components/ui/popover.mjs +1 -73
- package/dist/components/ui/popup.mjs +1 -44
- package/dist/components/ui/progress.mjs +1 -53
- package/dist/components/ui/radio-group.mjs +1 -34
- package/dist/components/ui/rate.mjs +1 -69
- package/dist/components/ui/scroll-area.mjs +1 -43
- package/dist/components/ui/select.mjs +1 -113
- package/dist/components/ui/separator.mjs +1 -20
- package/dist/components/ui/sheet.mjs +1 -109
- package/dist/components/ui/skeleton.mjs +1 -16
- package/dist/components/ui/slider.mjs +1 -46
- package/dist/components/ui/sonner.mjs +1 -34
- package/dist/components/ui/spinner.mjs +1 -18
- package/dist/components/ui/switch.mjs +1 -65
- package/dist/components/ui/table.mjs +1 -78
- package/dist/components/ui/tabs.mjs +1 -54
- package/dist/components/ui/text.mjs +1 -20
- package/dist/components/ui/textarea.mjs +1 -16
- package/dist/components/ui/time.mjs +1 -91
- package/dist/components/ui/toggle-group.mjs +1 -59
- package/dist/components/ui/toggle.mjs +1 -41
- package/dist/components/ui/tooltip.mjs +1 -49
- package/dist/components/ui/wheel-picker.mjs +1 -28
- package/dist/constants/event-key.mjs +1 -18
- package/dist/constants/query-key.mjs +1 -32
- package/dist/constants/revalidate.mjs +1 -9
- package/dist/constants/site.mjs +1 -11
- package/dist/constants/url-prefix.mjs +1 -8
- package/dist/hooks/image-text-recommend.mjs +1 -71
- package/dist/hooks/query/hydration-boundary.mjs +1 -34
- package/dist/hooks/query/use-query.mjs +1 -114
- package/dist/hooks/use-auth.mjs +1 -198
- package/dist/hooks/use-browse-report.mjs +1 -466
- package/dist/hooks/use-card-decoration.mjs +1 -92
- package/dist/hooks/use-content-operate.mjs +1 -514
- package/dist/hooks/use-follow.mjs +1 -69
- package/dist/hooks/use-fullscreen-gestures.mjs +1 -144
- package/dist/hooks/use-interaction-animation.mjs +1 -26
- package/dist/hooks/use-keyboard-open.mjs +1 -56
- package/dist/hooks/use-like-dislike.mjs +1 -40
- package/dist/hooks/use-search-history.mjs +1 -40
- package/dist/hooks/use-sticky.mjs +1 -38
- package/dist/hooks.mjs +1 -14
- package/dist/i18n/locales/en.mjs +3 -813
- package/dist/i18n/locales/zh-CN.mjs +3 -813
- package/dist/i18n/messages.mjs +1 -20
- package/dist/i18n/translator.mjs +1 -38
- package/dist/i18n.mjs +1 -165
- package/dist/materials.mjs +1 -63
- package/dist/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs +1 -17
- package/dist/pages.mjs +1 -22
- package/dist/seo/build-metadata.mjs +1 -163
- package/dist/seo/config/index.mjs +1 -22
- package/dist/seo/config/page.mjs +6 -301
- package/dist/seo/config/site.mjs +1 -25
- package/dist/seo/constants.mjs +1 -31
- package/dist/seo/helpers.mjs +1 -120
- package/dist/seo/resource-hints.mjs +1 -60
- package/dist/seo/robots.mjs +1 -36
- package/dist/seo/sitemap.mjs +1 -44
- package/dist/seo/structured-data/article.mjs +1 -51
- package/dist/seo/structured-data/common.mjs +1 -60
- package/dist/seo/structured-data/video.mjs +1 -41
- package/dist/seo/viewport.mjs +1 -31
- package/dist/seo.mjs +1 -15
- package/dist/service/generated/client.mjs +1 -1138
- package/dist/service/generated/tanstack.mjs +1 -1049
- package/dist/service.mjs +1 -4
- package/dist/store/create-store.mjs +1 -25
- package/dist/store/modules/app-config-store.mjs +1 -28
- package/dist/store/modules/blocked-modal-store.mjs +1 -30
- package/dist/store/modules/follow-ids-store.mjs +1 -12
- package/dist/store/modules/login-modal-store.mjs +1 -135
- package/dist/store/modules/media-preview-store.mjs +1 -54
- package/dist/store/modules/publish-store.mjs +1 -31
- package/dist/store/modules/use-demo-store.mjs +1 -17
- package/dist/store/modules/user-store.mjs +1 -113
- package/dist/store.mjs +1 -10
- package/dist/types/safe-at-user.mjs +1 -15
- package/dist/types/safe-comment.mjs +1 -30
- package/dist/types/safe-grid.mjs +1 -36
- package/dist/types/safe-replay.mjs +1 -43
- package/dist/types/share.mjs +1 -16
- package/dist/ui.mjs +1 -57
- package/dist/utils/api-collect.mjs +1 -14
- package/dist/utils/channel-storage.mjs +1 -57
- package/dist/utils/cn.mjs +1 -15
- package/dist/utils/common.mjs +1 -296
- package/dist/utils/db.mjs +1 -80
- package/dist/utils/decrypt-image-client.mjs +1 -198
- package/dist/utils/decrypt.worker.mjs +2 -20
- package/dist/utils/event-bus.mjs +1 -33
- package/dist/utils/follow-service.mjs +1 -87
- package/dist/utils/get-res-url.mjs +1 -94
- package/dist/utils/helper.mjs +1 -41
- package/dist/utils/http.mjs +1 -194
- package/dist/utils/image-compression.mjs +1 -59
- package/dist/utils/image-crop.mjs +1 -110
- package/dist/utils/loaders.mjs +1 -51
- package/dist/utils/media.mjs +1 -128
- package/dist/utils/password-validator.mjs +1 -86
- package/dist/utils/s3-uploader.mjs +1 -40
- package/dist/utils/schema/material.mjs +1 -24
- package/dist/utils/schema/schema.mjs +1 -200
- package/dist/utils/schema/utils.mjs +1 -33
- package/dist/utils/share-manager.mjs +1 -156
- package/dist/utils/tools.mjs +1 -105
- package/dist/utils/uint8.mjs +1 -46
- package/dist/utils/upload-file.mjs +1 -429
- package/dist/utils.mjs +1 -21
- package/package.json +1 -1
|
@@ -1,110 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { cn } from "../../utils/cn.mjs";
|
|
5
|
-
import { Button } from "./button.mjs";
|
|
6
|
-
import "react";
|
|
7
|
-
import { XIcon } from "lucide-react";
|
|
8
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
-
import { Dialog } from "@base-ui/react/dialog";
|
|
10
|
-
|
|
11
|
-
//#region components/ui/dialog.tsx
|
|
12
|
-
/** UI 组件模块。 */
|
|
13
|
-
/** Dialog 组件。 */
|
|
14
|
-
function Dialog$1({ ...props }) {
|
|
15
|
-
return /* @__PURE__ */ jsx(Dialog.Root, {
|
|
16
|
-
"data-slot": "dialog",
|
|
17
|
-
...props
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
/** DialogTrigger 组件。 */
|
|
21
|
-
function DialogTrigger({ ...props }) {
|
|
22
|
-
return /* @__PURE__ */ jsx(Dialog.Trigger, {
|
|
23
|
-
"data-slot": "dialog-trigger",
|
|
24
|
-
...props
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
/** DialogPortal 组件。 */
|
|
28
|
-
function DialogPortal({ ...props }) {
|
|
29
|
-
return /* @__PURE__ */ jsx(Dialog.Portal, {
|
|
30
|
-
"data-slot": "dialog-portal",
|
|
31
|
-
...props
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
/** DialogClose 组件。 */
|
|
35
|
-
function DialogClose({ ...props }) {
|
|
36
|
-
return /* @__PURE__ */ jsx(Dialog.Close, {
|
|
37
|
-
"data-slot": "dialog-close",
|
|
38
|
-
...props
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
/** DialogOverlay 组件。 */
|
|
42
|
-
function DialogOverlay({ className, ...props }) {
|
|
43
|
-
return /* @__PURE__ */ jsx(Dialog.Backdrop, {
|
|
44
|
-
"data-slot": "dialog-overlay",
|
|
45
|
-
className: cn("data-[open]:animate-in data-[closed]:animate-out data-[closed]:fade-out-0 data-[open]:fade-in-0 bg-black/10 duration-100 backdrop-blur fixed inset-0 isolate z-[1001]", className),
|
|
46
|
-
...props
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
/** DialogContent 组件。 */
|
|
50
|
-
function DialogContent({ className, children, showCloseButton = true, ...props }) {
|
|
51
|
-
return /* @__PURE__ */ jsxs(DialogPortal, { children: [/* @__PURE__ */ jsx(DialogOverlay, {}), /* @__PURE__ */ jsx("div", {
|
|
52
|
-
className: "fixed inset-0 z-[1001] flex items-center justify-center",
|
|
53
|
-
children: /* @__PURE__ */ jsxs(Dialog.Popup, {
|
|
54
|
-
"data-slot": "dialog-content",
|
|
55
|
-
className: cn("bg-background data-[open]:animate-in data-[closed]:animate-out data-[closed]:fade-out-0 data-[open]:fade-in-0 data-[closed]:zoom-out-95 data-[open]:zoom-in-95 origin-center ring-foreground/10 grid w-full max-w-sm gap-4 rounded-xl p-4 text-sm duration-100 outline-none", className),
|
|
56
|
-
...props,
|
|
57
|
-
children: [children, showCloseButton && /* @__PURE__ */ jsx(Dialog.Close, {
|
|
58
|
-
"data-slot": "dialog-close",
|
|
59
|
-
render: /* @__PURE__ */ jsxs(Button, {
|
|
60
|
-
variant: "ghost",
|
|
61
|
-
className: "absolute top-2 right-2 focus-within:outline-none focus-within:border-none focus-within:ring-0 ",
|
|
62
|
-
size: "icon-sm",
|
|
63
|
-
children: [/* @__PURE__ */ jsx(XIcon, {}), /* @__PURE__ */ jsx("span", {
|
|
64
|
-
className: "sr-only",
|
|
65
|
-
children: "Close"
|
|
66
|
-
})]
|
|
67
|
-
})
|
|
68
|
-
})]
|
|
69
|
-
})
|
|
70
|
-
})] });
|
|
71
|
-
}
|
|
72
|
-
/** DialogHeader 组件。 */
|
|
73
|
-
function DialogHeader({ className, ...props }) {
|
|
74
|
-
return /* @__PURE__ */ jsx("div", {
|
|
75
|
-
"data-slot": "dialog-header",
|
|
76
|
-
className: cn("gap-2 flex flex-col", className),
|
|
77
|
-
...props
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
/** DialogFooter 组件。 */
|
|
81
|
-
function DialogFooter({ className, showCloseButton = false, children, ...props }) {
|
|
82
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
83
|
-
"data-slot": "dialog-footer",
|
|
84
|
-
className: cn("bg-muted/50 -mx-4 -mb-4 rounded-b-xl border-t p-4 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
85
|
-
...props,
|
|
86
|
-
children: [children, showCloseButton && /* @__PURE__ */ jsx(Dialog.Close, { render: /* @__PURE__ */ jsx(Button, {
|
|
87
|
-
variant: "outline",
|
|
88
|
-
children: "Close"
|
|
89
|
-
}) })]
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
/** DialogTitle 组件。 */
|
|
93
|
-
function DialogTitle({ className, ...props }) {
|
|
94
|
-
return /* @__PURE__ */ jsx(Dialog.Title, {
|
|
95
|
-
"data-slot": "dialog-title",
|
|
96
|
-
className: cn("text-sm leading-none font-medium", className),
|
|
97
|
-
...props
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
/** DialogDescription 组件。 */
|
|
101
|
-
function DialogDescription({ className, ...props }) {
|
|
102
|
-
return /* @__PURE__ */ jsx(Dialog.Description, {
|
|
103
|
-
"data-slot": "dialog-description",
|
|
104
|
-
className: cn("text-muted-foreground [&>a]:hover:text-foreground text-sm [&>a]:underline [&>a]:underline-offset-3", className),
|
|
105
|
-
...props
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
//#endregion
|
|
110
|
-
export { Dialog$1 as Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
|
|
2
|
+
"use client";import{cn as e}from"../../utils/cn.mjs";import{Button as t}from"./button.mjs";import"react";import{XIcon as n}from"lucide-react";import{jsx as r,jsxs as i}from"react/jsx-runtime";import{Dialog as a}from"@base-ui/react/dialog";function o({...e}){return r(a.Root,{"data-slot":`dialog`,...e})}function s({...e}){return r(a.Trigger,{"data-slot":`dialog-trigger`,...e})}function c({...e}){return r(a.Portal,{"data-slot":`dialog-portal`,...e})}function l({...e}){return r(a.Close,{"data-slot":`dialog-close`,...e})}function u({className:t,...n}){return r(a.Backdrop,{"data-slot":`dialog-overlay`,className:e(`data-[open]:animate-in data-[closed]:animate-out data-[closed]:fade-out-0 data-[open]:fade-in-0 bg-black/10 duration-100 backdrop-blur fixed inset-0 isolate z-[1001]`,t),...n})}function d({className:o,children:s,showCloseButton:l=!0,...d}){return i(c,{children:[r(u,{}),r(`div`,{className:`fixed inset-0 z-[1001] flex items-center justify-center`,children:i(a.Popup,{"data-slot":`dialog-content`,className:e(`bg-background data-[open]:animate-in data-[closed]:animate-out data-[closed]:fade-out-0 data-[open]:fade-in-0 data-[closed]:zoom-out-95 data-[open]:zoom-in-95 origin-center ring-foreground/10 grid w-full max-w-sm gap-4 rounded-xl p-4 text-sm duration-100 outline-none`,o),...d,children:[s,l&&r(a.Close,{"data-slot":`dialog-close`,render:i(t,{variant:`ghost`,className:`absolute top-2 right-2 focus-within:outline-none focus-within:border-none focus-within:ring-0 `,size:`icon-sm`,children:[r(n,{}),r(`span`,{className:`sr-only`,children:`Close`})]})})]})})]})}function f({className:t,...n}){return r(`div`,{"data-slot":`dialog-header`,className:e(`gap-2 flex flex-col`,t),...n})}function p({className:n,showCloseButton:o=!1,children:s,...c}){return i(`div`,{"data-slot":`dialog-footer`,className:e(`bg-muted/50 -mx-4 -mb-4 rounded-b-xl border-t p-4 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,n),...c,children:[s,o&&r(a.Close,{render:r(t,{variant:`outline`,children:`Close`})})]})}function m({className:t,...n}){return r(a.Title,{"data-slot":`dialog-title`,className:e(`text-sm leading-none font-medium`,t),...n})}function h({className:t,...n}){return r(a.Description,{"data-slot":`dialog-description`,className:e(`text-muted-foreground [&>a]:hover:text-foreground text-sm [&>a]:underline [&>a]:underline-offset-3`,t),...n})}export{o as Dialog,l as DialogClose,d as DialogContent,h as DialogDescription,p as DialogFooter,f as DialogHeader,u as DialogOverlay,c as DialogPortal,m as DialogTitle,s as DialogTrigger};
|
|
@@ -1,92 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { cn } from "../../utils/cn.mjs";
|
|
5
|
-
import "react";
|
|
6
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
import { Drawer } from "vaul";
|
|
8
|
-
|
|
9
|
-
//#region components/ui/drawer.tsx
|
|
10
|
-
/** Drawer 组件。 */
|
|
11
|
-
function Drawer$1({ ...props }) {
|
|
12
|
-
return /* @__PURE__ */ jsx(Drawer.Root, {
|
|
13
|
-
"data-slot": "drawer",
|
|
14
|
-
...props
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
/** DrawerTrigger 组件。 */
|
|
18
|
-
function DrawerTrigger({ ...props }) {
|
|
19
|
-
return /* @__PURE__ */ jsx(Drawer.Trigger, {
|
|
20
|
-
"data-slot": "drawer-trigger",
|
|
21
|
-
...props
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
/** DrawerPortal 组件。 */
|
|
25
|
-
function DrawerPortal({ ...props }) {
|
|
26
|
-
return /* @__PURE__ */ jsx(Drawer.Portal, {
|
|
27
|
-
"data-slot": "drawer-portal",
|
|
28
|
-
...props
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
/** DrawerClose 组件。 */
|
|
32
|
-
function DrawerClose({ ...props }) {
|
|
33
|
-
return /* @__PURE__ */ jsx(Drawer.Close, {
|
|
34
|
-
"data-slot": "drawer-close",
|
|
35
|
-
...props
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
/** DrawerOverlay 组件。 */
|
|
39
|
-
function DrawerOverlay({ className, ...props }) {
|
|
40
|
-
return /* @__PURE__ */ jsx(Drawer.Overlay, {
|
|
41
|
-
"data-slot": "drawer-overlay",
|
|
42
|
-
className: cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 bg-black/10 backdrop-blur fixed inset-0 z-50", className),
|
|
43
|
-
...props
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
/** DrawerContent 组件。 */
|
|
47
|
-
function DrawerContent({ className, children, ...props }) {
|
|
48
|
-
return /* @__PURE__ */ jsxs(DrawerPortal, {
|
|
49
|
-
"data-slot": "drawer-portal",
|
|
50
|
-
children: [/* @__PURE__ */ jsx(DrawerOverlay, {}), /* @__PURE__ */ jsx(Drawer.Content, {
|
|
51
|
-
"data-slot": "drawer-content",
|
|
52
|
-
className: cn("bg-bg1 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:duration-300 data-[state=closed]:duration-200 data-[vaul-drawer-direction=bottom]:slide-in-from-bottom data-[vaul-drawer-direction=bottom]:slide-out-to-bottom data-[vaul-drawer-direction=top]:slide-in-from-top data-[vaul-drawer-direction=top]:slide-out-to-top data-[vaul-drawer-direction=left]:slide-in-from-left data-[vaul-drawer-direction=left]:slide-out-to-left data-[vaul-drawer-direction=right]:slide-in-from-right data-[vaul-drawer-direction=right]:slide-out-to-right flex h-auto flex-col text-sm data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-xl data-[vaul-drawer-direction=bottom]:border-t border-text1/10 data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:rounded-r-xl data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:rounded-l-xl data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-xl data-[vaul-drawer-direction=top]:border-b data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm group/drawer-content fixed z-50", className),
|
|
53
|
-
...props,
|
|
54
|
-
children
|
|
55
|
-
})]
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
/** DrawerHeader 组件。 */
|
|
59
|
-
function DrawerHeader({ className, ...props }) {
|
|
60
|
-
return /* @__PURE__ */ jsx("div", {
|
|
61
|
-
"data-slot": "drawer-header",
|
|
62
|
-
className: cn("gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-0.5 md:text-left flex flex-col", className),
|
|
63
|
-
...props
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
/** DrawerFooter 组件。 */
|
|
67
|
-
function DrawerFooter({ className, ...props }) {
|
|
68
|
-
return /* @__PURE__ */ jsx("div", {
|
|
69
|
-
"data-slot": "drawer-footer",
|
|
70
|
-
className: cn("gap-2 p-4 mt-auto flex flex-col", className),
|
|
71
|
-
...props
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
/** DrawerTitle 组件。 */
|
|
75
|
-
function DrawerTitle({ className, ...props }) {
|
|
76
|
-
return /* @__PURE__ */ jsx(Drawer.Title, {
|
|
77
|
-
"data-slot": "drawer-title",
|
|
78
|
-
className: cn("text-foreground text-base font-medium", className),
|
|
79
|
-
...props
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
/** DrawerDescription 组件。 */
|
|
83
|
-
function DrawerDescription({ className, ...props }) {
|
|
84
|
-
return /* @__PURE__ */ jsx(Drawer.Description, {
|
|
85
|
-
"data-slot": "drawer-description",
|
|
86
|
-
className: cn("text-muted-foreground text-sm", className),
|
|
87
|
-
...props
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
//#endregion
|
|
92
|
-
export { Drawer$1 as Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
|
|
2
|
+
"use client";import{cn as e}from"../../utils/cn.mjs";import"react";import{jsx as t,jsxs as n}from"react/jsx-runtime";import{Drawer as r}from"vaul";function i({...e}){return t(r.Root,{"data-slot":`drawer`,...e})}function a({...e}){return t(r.Trigger,{"data-slot":`drawer-trigger`,...e})}function o({...e}){return t(r.Portal,{"data-slot":`drawer-portal`,...e})}function s({...e}){return t(r.Close,{"data-slot":`drawer-close`,...e})}function c({className:n,...i}){return t(r.Overlay,{"data-slot":`drawer-overlay`,className:e(`data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 bg-black/10 backdrop-blur fixed inset-0 z-50`,n),...i})}function l({className:i,children:a,...s}){return n(o,{"data-slot":`drawer-portal`,children:[t(c,{}),t(r.Content,{"data-slot":`drawer-content`,className:e(`bg-bg1 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:duration-300 data-[state=closed]:duration-200 data-[vaul-drawer-direction=bottom]:slide-in-from-bottom data-[vaul-drawer-direction=bottom]:slide-out-to-bottom data-[vaul-drawer-direction=top]:slide-in-from-top data-[vaul-drawer-direction=top]:slide-out-to-top data-[vaul-drawer-direction=left]:slide-in-from-left data-[vaul-drawer-direction=left]:slide-out-to-left data-[vaul-drawer-direction=right]:slide-in-from-right data-[vaul-drawer-direction=right]:slide-out-to-right flex h-auto flex-col text-sm data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-xl data-[vaul-drawer-direction=bottom]:border-t border-text1/10 data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:rounded-r-xl data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:rounded-l-xl data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-xl data-[vaul-drawer-direction=top]:border-b data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm group/drawer-content fixed z-50`,i),...s,children:a})]})}function u({className:n,...r}){return t(`div`,{"data-slot":`drawer-header`,className:e(`gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-0.5 md:text-left flex flex-col`,n),...r})}function d({className:n,...r}){return t(`div`,{"data-slot":`drawer-footer`,className:e(`gap-2 p-4 mt-auto flex flex-col`,n),...r})}function f({className:n,...i}){return t(r.Title,{"data-slot":`drawer-title`,className:e(`text-foreground text-base font-medium`,n),...i})}function p({className:n,...i}){return t(r.Description,{"data-slot":`drawer-description`,className:e(`text-muted-foreground text-sm`,n),...i})}export{i as Drawer,s as DrawerClose,l as DrawerContent,p as DrawerDescription,d as DrawerFooter,u as DrawerHeader,c as DrawerOverlay,o as DrawerPortal,f as DrawerTitle,a as DrawerTrigger};
|
|
@@ -1,155 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { cn } from "../../utils/cn.mjs";
|
|
5
|
-
import "react";
|
|
6
|
-
import { CheckIcon, ChevronRightIcon } from "lucide-react";
|
|
7
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
import { Menu } from "@base-ui/react/menu";
|
|
9
|
-
|
|
10
|
-
//#region components/ui/dropdown-menu.tsx
|
|
11
|
-
/** UI 组件模块。 */
|
|
12
|
-
/** DropdownMenu 组件。 */
|
|
13
|
-
function DropdownMenu({ ...props }) {
|
|
14
|
-
return /* @__PURE__ */ jsx(Menu.Root, {
|
|
15
|
-
"data-slot": "dropdown-menu",
|
|
16
|
-
...props
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
/** DropdownMenuPortal 组件。 */
|
|
20
|
-
function DropdownMenuPortal({ ...props }) {
|
|
21
|
-
return /* @__PURE__ */ jsx(Menu.Portal, {
|
|
22
|
-
"data-slot": "dropdown-menu-portal",
|
|
23
|
-
...props
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
/** DropdownMenuTrigger 组件。 */
|
|
27
|
-
function DropdownMenuTrigger({ ...props }) {
|
|
28
|
-
return /* @__PURE__ */ jsx(Menu.Trigger, {
|
|
29
|
-
"data-slot": "dropdown-menu-trigger",
|
|
30
|
-
...props
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
/** DropdownMenuContent 组件。 */
|
|
34
|
-
function DropdownMenuContent({ align = "start", alignOffset = 0, side = "bottom", sideOffset = 4, className, ...props }) {
|
|
35
|
-
return /* @__PURE__ */ jsx(Menu.Portal, { children: /* @__PURE__ */ jsx(Menu.Positioner, {
|
|
36
|
-
className: "isolate z-50 outline-none",
|
|
37
|
-
align,
|
|
38
|
-
alignOffset,
|
|
39
|
-
side,
|
|
40
|
-
sideOffset,
|
|
41
|
-
children: /* @__PURE__ */ jsx(Menu.Popup, {
|
|
42
|
-
"data-slot": "dropdown-menu-content",
|
|
43
|
-
className: cn("data-[open]:animate-in data-[closed]:animate-out data-[closed]:fade-out-0 data-[open]:fade-in-0 data-[closed]:zoom-out-95 data-[open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-lg p-1 shadow-md ring-1 duration-100 z-50 max-h-[var(--available-height)] w-[var(--anchor-width)] origin-[var(--transform-origin)] overflow-x-hidden overflow-y-auto outline-none data-[closed]:overflow-hidden", className),
|
|
44
|
-
...props
|
|
45
|
-
})
|
|
46
|
-
}) });
|
|
47
|
-
}
|
|
48
|
-
/** DropdownMenuGroup 组件。 */
|
|
49
|
-
function DropdownMenuGroup({ ...props }) {
|
|
50
|
-
return /* @__PURE__ */ jsx(Menu.Group, {
|
|
51
|
-
"data-slot": "dropdown-menu-group",
|
|
52
|
-
...props
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
/** DropdownMenuLabel 组件。 */
|
|
56
|
-
function DropdownMenuLabel({ className, inset, ...props }) {
|
|
57
|
-
return /* @__PURE__ */ jsx(Menu.GroupLabel, {
|
|
58
|
-
"data-slot": "dropdown-menu-label",
|
|
59
|
-
"data-inset": inset,
|
|
60
|
-
className: cn("text-muted-foreground px-1.5 py-1 text-xs font-medium data-[inset]:pl-8", className),
|
|
61
|
-
...props
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
/** DropdownMenuItem 组件。 */
|
|
65
|
-
function DropdownMenuItem({ className, inset, variant = "default", ...props }) {
|
|
66
|
-
return /* @__PURE__ */ jsx(Menu.Item, {
|
|
67
|
-
"data-slot": "dropdown-menu-item",
|
|
68
|
-
"data-inset": inset,
|
|
69
|
-
"data-variant": variant,
|
|
70
|
-
className: cn("focus:bg-accent focus:text-accent-foreground focus:[&_*]:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:[&>svg]:text-destructive data-[variant=destructive]:focus:[&_*]:text-destructive gap-1.5 rounded-md px-1.5 py-1 text-sm [&_svg:not([class*='w-']):not([class*='h-'])]:w-4 [&_svg:not([class*='w-']):not([class*='h-'])]:h-4 group/dropdown-menu-item relative flex cursor-default items-center outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0", className),
|
|
71
|
-
...props
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
/** DropdownMenuSub 组件。 */
|
|
75
|
-
function DropdownMenuSub({ ...props }) {
|
|
76
|
-
return /* @__PURE__ */ jsx(Menu.SubmenuRoot, {
|
|
77
|
-
"data-slot": "dropdown-menu-sub",
|
|
78
|
-
...props
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
/** DropdownMenuSubTrigger 组件。 */
|
|
82
|
-
function DropdownMenuSubTrigger({ className, inset, children, ...props }) {
|
|
83
|
-
return /* @__PURE__ */ jsxs(Menu.SubmenuTrigger, {
|
|
84
|
-
"data-slot": "dropdown-menu-sub-trigger",
|
|
85
|
-
"data-inset": inset,
|
|
86
|
-
className: cn("focus:bg-accent focus:text-accent-foreground data-[open]:bg-accent data-[open]:text-accent-foreground focus:[&_*]:text-accent-foreground gap-1.5 rounded-md px-1.5 py-1 text-sm [&_svg:not([class*='w-']):not([class*='h-'])]:w-4 [&_svg:not([class*='w-']):not([class*='h-'])]:h-4 flex cursor-default items-center outline-none select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0", className),
|
|
87
|
-
...props,
|
|
88
|
-
children: [children, /* @__PURE__ */ jsx(ChevronRightIcon, { className: "ml-auto" })]
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
/** DropdownMenuSubContent 组件。 */
|
|
92
|
-
function DropdownMenuSubContent({ align = "start", alignOffset = -3, side = "right", sideOffset = 0, className, ...props }) {
|
|
93
|
-
return /* @__PURE__ */ jsx(DropdownMenuContent, {
|
|
94
|
-
"data-slot": "dropdown-menu-sub-content",
|
|
95
|
-
className: cn("data-[open]:animate-in data-[closed]:animate-out data-[closed]:fade-out-0 data-[open]:fade-in-0 data-[closed]:zoom-out-95 data-[open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-[96px] rounded-md p-1 shadow-lg ring-1 duration-100 w-auto", className),
|
|
96
|
-
align,
|
|
97
|
-
alignOffset,
|
|
98
|
-
side,
|
|
99
|
-
sideOffset,
|
|
100
|
-
...props
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
/** DropdownMenuCheckboxItem 组件。 */
|
|
104
|
-
function DropdownMenuCheckboxItem({ className, children, checked, ...props }) {
|
|
105
|
-
return /* @__PURE__ */ jsxs(Menu.CheckboxItem, {
|
|
106
|
-
"data-slot": "dropdown-menu-checkbox-item",
|
|
107
|
-
className: cn("focus:bg-accent focus:text-accent-foreground focus:[&_*]:text-accent-foreground gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm [&_svg:not([class*='w-']):not([class*='h-'])]:w-4 [&_svg:not([class*='w-']):not([class*='h-'])]:h-4 relative flex cursor-default items-center outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", className),
|
|
108
|
-
checked,
|
|
109
|
-
...props,
|
|
110
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
111
|
-
className: "pointer-events-none absolute right-2 flex items-center justify-center pointer-events-none",
|
|
112
|
-
"data-slot": "dropdown-menu-checkbox-item-indicator",
|
|
113
|
-
children: /* @__PURE__ */ jsx(Menu.CheckboxItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, {}) })
|
|
114
|
-
}), children]
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
/** DropdownMenuRadioGroup 组件。 */
|
|
118
|
-
function DropdownMenuRadioGroup({ ...props }) {
|
|
119
|
-
return /* @__PURE__ */ jsx(Menu.RadioGroup, {
|
|
120
|
-
"data-slot": "dropdown-menu-radio-group",
|
|
121
|
-
...props
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
/** DropdownMenuRadioItem 组件。 */
|
|
125
|
-
function DropdownMenuRadioItem({ className, children, ...props }) {
|
|
126
|
-
return /* @__PURE__ */ jsxs(Menu.RadioItem, {
|
|
127
|
-
"data-slot": "dropdown-menu-radio-item",
|
|
128
|
-
className: cn("focus:bg-accent focus:text-accent-foreground focus:[&_*]:text-accent-foreground gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm [&_svg:not([class*='w-']):not([class*='h-'])]:w-4 [&_svg:not([class*='w-']):not([class*='h-'])]:h-4 relative flex cursor-default items-center outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", className),
|
|
129
|
-
...props,
|
|
130
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
131
|
-
className: "pointer-events-none absolute right-2 flex items-center justify-center pointer-events-none",
|
|
132
|
-
"data-slot": "dropdown-menu-radio-item-indicator",
|
|
133
|
-
children: /* @__PURE__ */ jsx(Menu.RadioItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, {}) })
|
|
134
|
-
}), children]
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
/** DropdownMenuSeparator 组件。 */
|
|
138
|
-
function DropdownMenuSeparator({ className, ...props }) {
|
|
139
|
-
return /* @__PURE__ */ jsx(Menu.Separator, {
|
|
140
|
-
"data-slot": "dropdown-menu-separator",
|
|
141
|
-
className: cn("bg-border -mx-1 my-1 h-px", className),
|
|
142
|
-
...props
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
/** DropdownMenuShortcut 组件。 */
|
|
146
|
-
function DropdownMenuShortcut({ className, ...props }) {
|
|
147
|
-
return /* @__PURE__ */ jsx("span", {
|
|
148
|
-
"data-slot": "dropdown-menu-shortcut",
|
|
149
|
-
className: cn("text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground ml-auto text-xs tracking-widest", className),
|
|
150
|
-
...props
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
//#endregion
|
|
155
|
-
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
|
|
2
|
+
"use client";import{cn as e}from"../../utils/cn.mjs";import"react";import{CheckIcon as t,ChevronRightIcon as n}from"lucide-react";import{jsx as r,jsxs as i}from"react/jsx-runtime";import{Menu as a}from"@base-ui/react/menu";function o({...e}){return r(a.Root,{"data-slot":`dropdown-menu`,...e})}function s({...e}){return r(a.Portal,{"data-slot":`dropdown-menu-portal`,...e})}function c({...e}){return r(a.Trigger,{"data-slot":`dropdown-menu-trigger`,...e})}function l({align:t=`start`,alignOffset:n=0,side:i=`bottom`,sideOffset:o=4,className:s,...c}){return r(a.Portal,{children:r(a.Positioner,{className:`isolate z-50 outline-none`,align:t,alignOffset:n,side:i,sideOffset:o,children:r(a.Popup,{"data-slot":`dropdown-menu-content`,className:e(`data-[open]:animate-in data-[closed]:animate-out data-[closed]:fade-out-0 data-[open]:fade-in-0 data-[closed]:zoom-out-95 data-[open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-lg p-1 shadow-md ring-1 duration-100 z-50 max-h-[var(--available-height)] w-[var(--anchor-width)] origin-[var(--transform-origin)] overflow-x-hidden overflow-y-auto outline-none data-[closed]:overflow-hidden`,s),...c})})})}function u({...e}){return r(a.Group,{"data-slot":`dropdown-menu-group`,...e})}function d({className:t,inset:n,...i}){return r(a.GroupLabel,{"data-slot":`dropdown-menu-label`,"data-inset":n,className:e(`text-muted-foreground px-1.5 py-1 text-xs font-medium data-[inset]:pl-8`,t),...i})}function f({className:t,inset:n,variant:i=`default`,...o}){return r(a.Item,{"data-slot":`dropdown-menu-item`,"data-inset":n,"data-variant":i,className:e(`focus:bg-accent focus:text-accent-foreground focus:[&_*]:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:[&>svg]:text-destructive data-[variant=destructive]:focus:[&_*]:text-destructive gap-1.5 rounded-md px-1.5 py-1 text-sm [&_svg:not([class*='w-']):not([class*='h-'])]:w-4 [&_svg:not([class*='w-']):not([class*='h-'])]:h-4 group/dropdown-menu-item relative flex cursor-default items-center outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0`,t),...o})}function p({...e}){return r(a.SubmenuRoot,{"data-slot":`dropdown-menu-sub`,...e})}function m({className:t,inset:o,children:s,...c}){return i(a.SubmenuTrigger,{"data-slot":`dropdown-menu-sub-trigger`,"data-inset":o,className:e(`focus:bg-accent focus:text-accent-foreground data-[open]:bg-accent data-[open]:text-accent-foreground focus:[&_*]:text-accent-foreground gap-1.5 rounded-md px-1.5 py-1 text-sm [&_svg:not([class*='w-']):not([class*='h-'])]:w-4 [&_svg:not([class*='w-']):not([class*='h-'])]:h-4 flex cursor-default items-center outline-none select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0`,t),...c,children:[s,r(n,{className:`ml-auto`})]})}function h({align:t=`start`,alignOffset:n=-3,side:i=`right`,sideOffset:a=0,className:o,...s}){return r(l,{"data-slot":`dropdown-menu-sub-content`,className:e(`data-[open]:animate-in data-[closed]:animate-out data-[closed]:fade-out-0 data-[open]:fade-in-0 data-[closed]:zoom-out-95 data-[open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-[96px] rounded-md p-1 shadow-lg ring-1 duration-100 w-auto`,o),align:t,alignOffset:n,side:i,sideOffset:a,...s})}function g({className:n,children:o,checked:s,...c}){return i(a.CheckboxItem,{"data-slot":`dropdown-menu-checkbox-item`,className:e(`focus:bg-accent focus:text-accent-foreground focus:[&_*]:text-accent-foreground gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm [&_svg:not([class*='w-']):not([class*='h-'])]:w-4 [&_svg:not([class*='w-']):not([class*='h-'])]:h-4 relative flex cursor-default items-center outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0`,n),checked:s,...c,children:[r(`span`,{className:`pointer-events-none absolute right-2 flex items-center justify-center pointer-events-none`,"data-slot":`dropdown-menu-checkbox-item-indicator`,children:r(a.CheckboxItemIndicator,{children:r(t,{})})}),o]})}function _({...e}){return r(a.RadioGroup,{"data-slot":`dropdown-menu-radio-group`,...e})}function v({className:n,children:o,...s}){return i(a.RadioItem,{"data-slot":`dropdown-menu-radio-item`,className:e(`focus:bg-accent focus:text-accent-foreground focus:[&_*]:text-accent-foreground gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm [&_svg:not([class*='w-']):not([class*='h-'])]:w-4 [&_svg:not([class*='w-']):not([class*='h-'])]:h-4 relative flex cursor-default items-center outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0`,n),...s,children:[r(`span`,{className:`pointer-events-none absolute right-2 flex items-center justify-center pointer-events-none`,"data-slot":`dropdown-menu-radio-item-indicator`,children:r(a.RadioItemIndicator,{children:r(t,{})})}),o]})}function y({className:t,...n}){return r(a.Separator,{"data-slot":`dropdown-menu-separator`,className:e(`bg-border -mx-1 my-1 h-px`,t),...n})}function b({className:t,...n}){return r(`span`,{"data-slot":`dropdown-menu-shortcut`,className:e(`text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground ml-auto text-xs tracking-widest`,t),...n})}export{o as DropdownMenu,g as DropdownMenuCheckboxItem,l as DropdownMenuContent,u as DropdownMenuGroup,f as DropdownMenuItem,d as DropdownMenuLabel,s as DropdownMenuPortal,_ as DropdownMenuRadioGroup,v as DropdownMenuRadioItem,y as DropdownMenuSeparator,b as DropdownMenuShortcut,p as DropdownMenuSub,h as DropdownMenuSubContent,m as DropdownMenuSubTrigger,c as DropdownMenuTrigger};
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
//#region components/ui/empty-icons.tsx
|
|
5
|
-
/** addUserInner 工具定义。 */
|
|
6
|
-
const addUserInner = `
|
|
2
|
+
import{jsx as e}from"react/jsx-runtime";function t({...t}){return e(`svg`,{width:145,height:145,viewBox:`0 0 145 145`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...t,dangerouslySetInnerHTML:{__html:`
|
|
7
3
|
<g opacity="0.8" clip-path="url(#clip0_642_13314)">
|
|
8
4
|
<path d="M126.529 26.0807C125.842 27.6022 126.535 29.4018 128.057 30.0892C129.578 30.7765 131.369 30.1048 132.056 28.5832C132.743 27.0617 132.078 25.2527 130.559 24.5622C129.041 23.8718 127.219 24.5622 126.529 26.0807Z" fill="#D6DCE8"/>
|
|
9
5
|
<path d="M122.064 20.1353C121.627 21.1039 122.067 22.2474 123.036 22.6879C124.005 23.1284 125.145 22.6973 125.582 21.7287C126.02 20.7602 125.598 19.6073 124.629 19.1699C123.661 18.7325 122.502 19.1699 122.064 20.1353Z" fill="#D6DCE8"/>
|
|
@@ -179,9 +175,7 @@ const addUserInner = `
|
|
|
179
175
|
<rect width="145" height="145" fill="white"/>
|
|
180
176
|
</clipPath>
|
|
181
177
|
</defs>
|
|
182
|
-
|
|
183
|
-
/** messageInner 工具定义。 */
|
|
184
|
-
const messageInner = `
|
|
178
|
+
`}})}function n({...t}){return e(`svg`,{width:145,height:145,viewBox:`0 0 145 145`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...t,dangerouslySetInnerHTML:{__html:`
|
|
185
179
|
<g opacity="0.8" clip-path="url(#clip0_642_13406)">
|
|
186
180
|
<path d="M135.237 8.92578C134.454 10.6532 135.244 12.6973 136.971 13.481C138.699 14.2648 140.733 13.4967 141.517 11.7693C142.301 10.0419 141.542 7.98526 139.818 7.20149C138.093 6.41773 136.021 7.19836 135.241 8.92578H135.237Z" fill="#D6DCE8"/>
|
|
187
181
|
<path d="M130.162 2.16964C129.663 3.27005 130.165 4.5711 131.265 5.06958C132.366 5.56806 133.66 5.07899 134.159 3.98171C134.657 2.8813 134.175 1.57398 133.077 1.0755C131.977 0.577028 130.66 1.0755 130.165 2.17278L130.162 2.16964Z" fill="#D6DCE8"/>
|
|
@@ -336,9 +330,7 @@ const messageInner = `
|
|
|
336
330
|
<rect width="145" height="145" fill="white"/>
|
|
337
331
|
</clipPath>
|
|
338
332
|
</defs>
|
|
339
|
-
|
|
340
|
-
/** networkInner 工具定义。 */
|
|
341
|
-
const networkInner = `
|
|
333
|
+
`}})}function r({...t}){return e(`svg`,{width:145,height:143,viewBox:`0 0 145 143`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...t,dangerouslySetInnerHTML:{__html:`
|
|
342
334
|
<g opacity="0.8">
|
|
343
335
|
<path d="M8.76593 15.0506C10.5338 15.8296 12.6268 15.0434 13.4271 13.324C14.2273 11.6045 13.4435 9.57878 11.6761 8.79983C9.90865 8.02089 7.80247 8.77337 7.00178 10.4928C6.2011 12.2123 6.99849 14.2717 8.76593 15.0506Z" fill="#D6DCE8"/>
|
|
344
336
|
<path d="M1.8511 20.1036C2.9761 20.5995 4.30838 20.0992 4.81772 19.0047C5.32706 17.9103 4.82843 16.621 3.70302 16.1251C2.57802 15.6296 1.2375 16.1082 0.728158 17.2027C0.218817 18.2971 0.726097 19.6081 1.8511 20.1036Z" fill="#D6DCE8"/>
|
|
@@ -401,9 +393,7 @@ const networkInner = `
|
|
|
401
393
|
<stop offset="1" stop-color="#AAB2C5"/>
|
|
402
394
|
</linearGradient>
|
|
403
395
|
</defs>
|
|
404
|
-
|
|
405
|
-
/** noDataInner 工具定义。 */
|
|
406
|
-
const noDataInner = `
|
|
396
|
+
`}})}function i({...t}){return e(`svg`,{width:145,height:149,viewBox:`0 0 145 149`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...t,dangerouslySetInnerHTML:{__html:`
|
|
407
397
|
<g opacity="0.8">
|
|
408
398
|
<g clip-path="url(#clip0_636_11133)">
|
|
409
399
|
<path d="M10.5931 139.704C11.4272 137.871 10.5864 135.701 8.74806 134.869C6.9097 134.037 4.74438 134.852 3.91028 136.686C3.07618 138.52 3.88359 140.703 5.71861 141.535C7.55696 142.367 9.75899 141.538 10.5898 139.704H10.5931Z" fill="#D6DCE8"/>
|
|
@@ -478,9 +468,7 @@ const noDataInner = `
|
|
|
478
468
|
<rect width="145" height="149" fill="white"/>
|
|
479
469
|
</clipPath>
|
|
480
470
|
</defs>
|
|
481
|
-
|
|
482
|
-
/** pictureInner 工具定义。 */
|
|
483
|
-
const pictureInner = `
|
|
471
|
+
`}})}function a({...t}){return e(`svg`,{width:145,height:145,viewBox:`0 0 75 60`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...t,dangerouslySetInnerHTML:{__html:`
|
|
484
472
|
<g opacity="0.8">
|
|
485
473
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M14 0C9.58172 0 6 3.58172 6 8L6 44.1321C6 48.5503 9.58172 52.1321 14 52.1321H36.9047C36.9047 52.1321 42.2148 39.2501 42.2148 39.2501C42.2148 39.2501 34.2514 18.6533 34.2514 18.6533L40.7153 0H14Z" fill="url(#paint0_linear_642_13462)"/>
|
|
486
474
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M53.2951 2.99995L42.2148 17.7298L44.7827 39.8523L36.9047 52.1321L51.4602 57.2524C55.7298 58.7543 60.3941 56.4182 61.7484 52.0995L72.5375 17.6951C73.843 13.5322 71.5723 9.09101 67.4334 7.71166L53.2951 2.99995Z" fill="url(#paint1_linear_642_13462)"/>
|
|
@@ -498,9 +486,7 @@ const pictureInner = `
|
|
|
498
486
|
<stop offset="1" stop-color="#D6DCE8"/>
|
|
499
487
|
</linearGradient>
|
|
500
488
|
</defs>
|
|
501
|
-
|
|
502
|
-
/** searchInner 工具定义。 */
|
|
503
|
-
const searchInner = `
|
|
489
|
+
`}})}function o({...t}){return e(`svg`,{width:145,height:143,viewBox:`0 0 145 143`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...t,dangerouslySetInnerHTML:{__html:`
|
|
504
490
|
<g opacity="0.8" clip-path="url(#clip0_636_11075)">
|
|
505
491
|
<path d="M122.301 137.281C118.079 141.475 111.264 141.477 107.039 137.281L83.4702 113.71C82.534 112.786 82.534 111.279 83.4702 110.356L95.3518 98.485C96.2759 97.5493 97.7842 97.5493 98.7083 98.485L122.301 122.032C126.542 126.319 126.496 133.039 122.301 137.281V137.281Z" fill="url(#paint0_linear_636_11075)"/>
|
|
506
492
|
<path d="M144.302 92.0408C146.781 99.8515 142.453 108.194 134.635 110.671C126.809 113.151 118.459 108.826 115.979 101.016C113.497 93.1972 117.826 84.8547 125.651 82.3749C133.469 79.8976 141.819 84.2222 144.302 92.0408Z" fill="url(#paint1_linear_636_11075)"/>
|
|
@@ -595,79 +581,4 @@ const searchInner = `
|
|
|
595
581
|
<rect width="145" height="143" fill="white"/>
|
|
596
582
|
</clipPath>
|
|
597
583
|
</defs>
|
|
598
|
-
|
|
599
|
-
/** EmptyAddUserIcon 组件。 */
|
|
600
|
-
function EmptyAddUserIcon({ ...props }) {
|
|
601
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
602
|
-
width: 145,
|
|
603
|
-
height: 145,
|
|
604
|
-
viewBox: "0 0 145 145",
|
|
605
|
-
fill: "none",
|
|
606
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
607
|
-
...props,
|
|
608
|
-
dangerouslySetInnerHTML: { __html: addUserInner }
|
|
609
|
-
});
|
|
610
|
-
}
|
|
611
|
-
/** EmptyMessageIcon 组件。 */
|
|
612
|
-
function EmptyMessageIcon({ ...props }) {
|
|
613
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
614
|
-
width: 145,
|
|
615
|
-
height: 145,
|
|
616
|
-
viewBox: "0 0 145 145",
|
|
617
|
-
fill: "none",
|
|
618
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
619
|
-
...props,
|
|
620
|
-
dangerouslySetInnerHTML: { __html: messageInner }
|
|
621
|
-
});
|
|
622
|
-
}
|
|
623
|
-
/** EmptyNetworkIcon 组件。 */
|
|
624
|
-
function EmptyNetworkIcon({ ...props }) {
|
|
625
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
626
|
-
width: 145,
|
|
627
|
-
height: 143,
|
|
628
|
-
viewBox: "0 0 145 143",
|
|
629
|
-
fill: "none",
|
|
630
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
631
|
-
...props,
|
|
632
|
-
dangerouslySetInnerHTML: { __html: networkInner }
|
|
633
|
-
});
|
|
634
|
-
}
|
|
635
|
-
/** EmptyNoDataIcon 组件。 */
|
|
636
|
-
function EmptyNoDataIcon({ ...props }) {
|
|
637
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
638
|
-
width: 145,
|
|
639
|
-
height: 149,
|
|
640
|
-
viewBox: "0 0 145 149",
|
|
641
|
-
fill: "none",
|
|
642
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
643
|
-
...props,
|
|
644
|
-
dangerouslySetInnerHTML: { __html: noDataInner }
|
|
645
|
-
});
|
|
646
|
-
}
|
|
647
|
-
/** EmptyPictureIcon 组件。 */
|
|
648
|
-
function EmptyPictureIcon({ ...props }) {
|
|
649
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
650
|
-
width: 145,
|
|
651
|
-
height: 145,
|
|
652
|
-
viewBox: "0 0 75 60",
|
|
653
|
-
fill: "none",
|
|
654
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
655
|
-
...props,
|
|
656
|
-
dangerouslySetInnerHTML: { __html: pictureInner }
|
|
657
|
-
});
|
|
658
|
-
}
|
|
659
|
-
/** EmptySearchIcon 组件。 */
|
|
660
|
-
function EmptySearchIcon({ ...props }) {
|
|
661
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
662
|
-
width: 145,
|
|
663
|
-
height: 143,
|
|
664
|
-
viewBox: "0 0 145 143",
|
|
665
|
-
fill: "none",
|
|
666
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
667
|
-
...props,
|
|
668
|
-
dangerouslySetInnerHTML: { __html: searchInner }
|
|
669
|
-
});
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
//#endregion
|
|
673
|
-
export { EmptyAddUserIcon, EmptyMessageIcon, EmptyNetworkIcon, EmptyNoDataIcon, EmptyPictureIcon, EmptySearchIcon };
|
|
584
|
+
`}})}export{t as EmptyAddUserIcon,n as EmptyMessageIcon,r as EmptyNetworkIcon,i as EmptyNoDataIcon,a as EmptyPictureIcon,o as EmptySearchIcon};
|
|
@@ -1,96 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import
|
|
3
|
-
import { EmptyAddUserIcon, EmptyMessageIcon, EmptyNetworkIcon, EmptyNoDataIcon, EmptyPictureIcon, EmptySearchIcon } from "./empty-icons.mjs";
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
import { cva } from "class-variance-authority";
|
|
6
|
-
|
|
7
|
-
//#region components/ui/empty.tsx
|
|
8
|
-
/** Empty 组件。 */
|
|
9
|
-
function Empty({ className, ...props }) {
|
|
10
|
-
return /* @__PURE__ */ jsx("div", {
|
|
11
|
-
"data-slot": "empty",
|
|
12
|
-
className: cn("gap-4 rounded-lg border-dashed p-6 flex w-full min-w-0 flex-1 flex-col items-center justify-center text-center text-balance", className),
|
|
13
|
-
...props
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
/** EmptyHeader 组件。 */
|
|
17
|
-
function EmptyHeader({ className, ...props }) {
|
|
18
|
-
return /* @__PURE__ */ jsx("div", {
|
|
19
|
-
"data-slot": "empty-header",
|
|
20
|
-
className: cn("gap-2 flex max-w-sm flex-col items-center", className),
|
|
21
|
-
...props
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
const emptyIconMap = {
|
|
25
|
-
"adduser": EmptyAddUserIcon,
|
|
26
|
-
"message": EmptyMessageIcon,
|
|
27
|
-
"network": EmptyNetworkIcon,
|
|
28
|
-
"nodata": EmptyNoDataIcon,
|
|
29
|
-
"picture": EmptyPictureIcon,
|
|
30
|
-
"search": EmptySearchIcon,
|
|
31
|
-
"no-content": EmptyNoDataIcon
|
|
32
|
-
};
|
|
33
|
-
/** emptyMediaVariants 工具定义。 */
|
|
34
|
-
const emptyMediaVariants = cva("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0", {
|
|
35
|
-
variants: { variant: {
|
|
36
|
-
default: "bg-transparent",
|
|
37
|
-
icon: "bg-muted text-foreground flex w-8 h-8 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='w-']):not([class*='h-'])]:w-4 [&_svg:not([class*='w-']):not([class*='h-'])]:h-4"
|
|
38
|
-
} },
|
|
39
|
-
defaultVariants: { variant: "default" }
|
|
40
|
-
});
|
|
41
|
-
/** EmptyMedia 组件。 */
|
|
42
|
-
function EmptyMedia({ className, variant = "default", ...props }) {
|
|
43
|
-
return /* @__PURE__ */ jsx("div", {
|
|
44
|
-
"data-slot": "empty-icon",
|
|
45
|
-
"data-variant": variant,
|
|
46
|
-
className: cn(emptyMediaVariants({
|
|
47
|
-
variant,
|
|
48
|
-
className
|
|
49
|
-
})),
|
|
50
|
-
...props
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
/** EmptyTitle 组件。 */
|
|
54
|
-
function EmptyTitle({ className, ...props }) {
|
|
55
|
-
return /* @__PURE__ */ jsx("div", {
|
|
56
|
-
"data-slot": "empty-title",
|
|
57
|
-
className: cn("text-sm font-medium tracking-tight", className),
|
|
58
|
-
...props
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
/** EmptyDescription 组件。 */
|
|
62
|
-
function EmptyDescription({ className, ...props }) {
|
|
63
|
-
return /* @__PURE__ */ jsx("div", {
|
|
64
|
-
"data-slot": "empty-description",
|
|
65
|
-
className: cn("text-sm/relaxed text-muted-foreground [&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4", className),
|
|
66
|
-
...props
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
/** EmptyContent 组件。 */
|
|
70
|
-
function EmptyContent({ className, ...props }) {
|
|
71
|
-
return /* @__PURE__ */ jsx("div", {
|
|
72
|
-
"data-slot": "empty-content",
|
|
73
|
-
className: cn("gap-2.5 text-sm flex w-full max-w-sm min-w-0 flex-col items-center text-balance", className),
|
|
74
|
-
...props
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
/** EmptyState 组件。 */
|
|
78
|
-
function EmptyState({ className, type, text = "暂无内容", extraContent, ...props }) {
|
|
79
|
-
const Icon = type ? emptyIconMap[type] : null;
|
|
80
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
81
|
-
"data-slot": "empty-state",
|
|
82
|
-
className: cn("flex flex-col items-center justify-center flex-1 pt-25", className),
|
|
83
|
-
...props,
|
|
84
|
-
children: [
|
|
85
|
-
Icon && /* @__PURE__ */ jsx(Icon, { className: "w-36.25 h-36.25" }),
|
|
86
|
-
/* @__PURE__ */ jsx("div", {
|
|
87
|
-
className: "text-[14px] text-[#999] mt-3",
|
|
88
|
-
children: text
|
|
89
|
-
}),
|
|
90
|
-
extraContent
|
|
91
|
-
]
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
//#endregion
|
|
96
|
-
export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, EmptyTitle };
|
|
2
|
+
import{cn as e}from"../../utils/cn.mjs";import{EmptyAddUserIcon as t,EmptyMessageIcon as n,EmptyNetworkIcon as r,EmptyNoDataIcon as i,EmptyPictureIcon as a,EmptySearchIcon as o}from"./empty-icons.mjs";import{jsx as s,jsxs as c}from"react/jsx-runtime";import{cva as l}from"class-variance-authority";function u({className:t,...n}){return s(`div`,{"data-slot":`empty`,className:e(`gap-4 rounded-lg border-dashed p-6 flex w-full min-w-0 flex-1 flex-col items-center justify-center text-center text-balance`,t),...n})}function d({className:t,...n}){return s(`div`,{"data-slot":`empty-header`,className:e(`gap-2 flex max-w-sm flex-col items-center`,t),...n})}const f={adduser:t,message:n,network:r,nodata:i,picture:a,search:o,"no-content":i},p=l(`mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0`,{variants:{variant:{default:`bg-transparent`,icon:`bg-muted text-foreground flex w-8 h-8 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='w-']):not([class*='h-'])]:w-4 [&_svg:not([class*='w-']):not([class*='h-'])]:h-4`}},defaultVariants:{variant:`default`}});function m({className:t,variant:n=`default`,...r}){return s(`div`,{"data-slot":`empty-icon`,"data-variant":n,className:e(p({variant:n,className:t})),...r})}function h({className:t,...n}){return s(`div`,{"data-slot":`empty-title`,className:e(`text-sm font-medium tracking-tight`,t),...n})}function g({className:t,...n}){return s(`div`,{"data-slot":`empty-description`,className:e(`text-sm/relaxed text-muted-foreground [&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4`,t),...n})}function _({className:t,...n}){return s(`div`,{"data-slot":`empty-content`,className:e(`gap-2.5 text-sm flex w-full max-w-sm min-w-0 flex-col items-center text-balance`,t),...n})}function v({className:t,type:n,text:r=`暂无内容`,extraContent:i,...a}){let o=n?f[n]:null;return c(`div`,{"data-slot":`empty-state`,className:e(`flex flex-col items-center justify-center flex-1 pt-25`,t),...a,children:[o&&s(o,{className:`w-36.25 h-36.25`}),s(`div`,{className:`text-[14px] text-[#999] mt-3`,children:r}),i]})}export{u as Empty,_ as EmptyContent,g as EmptyDescription,d as EmptyHeader,m as EmptyMedia,v as EmptyState,h as EmptyTitle};
|