@yimingliao/cms 0.0.151 → 0.0.153
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/export/client/components/index.js +15 -8
- package/dist/export/client/components/resources/index.js +17 -0
- package/dist/export/client/shadcn/index.js +3 -1
- package/dist/src/client/interfaces/components/resources/admin/admin-card.js +81 -0
- package/dist/src/client/interfaces/components/resources/admin/admin-list.js +126 -0
- package/dist/src/client/interfaces/components/resources/admin/admin-refresh-tokens/active-sessions-badge.js +55 -0
- package/dist/src/client/interfaces/components/resources/admin/admin-refresh-tokens/active-spot.js +19 -0
- package/dist/src/client/interfaces/components/resources/admin/admin-refresh-tokens/admin-refresh-token-card.js +73 -0
- package/dist/src/client/interfaces/components/resources/admin/admin-refresh-tokens/related-admin-refresh-tokens.js +20 -0
- package/dist/src/client/interfaces/components/resources/admin/admin-relations-section.js +79 -0
- package/dist/src/client/interfaces/components/resources/category/category-card.js +80 -0
- package/dist/src/client/interfaces/components/resources/category/category-list.js +154 -0
- package/dist/src/client/interfaces/components/resources/category/category-relations-section.js +76 -0
- package/dist/src/client/interfaces/components/resources/file/file-card.js +1 -0
- package/dist/src/client/interfaces/components/resources/file/file-list.js +1 -0
- package/dist/src/client/interfaces/components/resources/file/file-relations-section.js +112 -0
- package/dist/src/client/interfaces/components/resources/file/is-locked-buttons.js +1 -0
- package/dist/src/client/interfaces/components/resources/file/type-buttons.js +1 -0
- package/dist/src/client/interfaces/components/resources/post/control-fields-buttons.js +111 -0
- package/dist/src/client/interfaces/components/resources/post/post-card.js +112 -0
- package/dist/src/client/interfaces/components/resources/post/post-list.js +162 -0
- package/dist/src/client/interfaces/components/resources/post/post-relations-section.js +76 -0
- package/dist/src/client/interfaces/components/resources/post/post-status-bar-icons.js +24 -0
- package/dist/src/client/interfaces/components/resources/post/post-type-gate.js +13 -0
- package/dist/src/client/interfaces/components/shadcn/item.js +181 -0
- package/dist/src/client/interfaces/components/shadcn/table.js +111 -0
- package/dist/src/client/interfaces/components/ui/blocks/list-cards-container/list-cards-container.js +1 -0
- package/dist/src/client/interfaces/components/ui/blocks/list-cards-container/page-size-selector.js +1 -0
- package/dist/src/client/interfaces/components/ui/blocks/list-cards-container/pagination.js +1 -0
- package/dist/src/client/interfaces/components/ui/blocks/page-header/page-header.js +1 -0
- package/dist/src/client/interfaces/components/ui/blocks/page-header/presets/batch-create.js +1 -0
- package/dist/src/client/interfaces/components/ui/blocks/page-header/presets/create.js +1 -0
- package/dist/src/client/interfaces/components/ui/blocks/page-header/presets/edit.js +1 -0
- package/dist/src/client/interfaces/components/ui/buttons/button.js +1 -0
- package/dist/src/client/interfaces/components/ui/cards/action-buttons-card.js +1 -0
- package/dist/src/client/interfaces/components/ui/cards/resource-card/card-status-bar.js +1 -0
- package/dist/src/client/interfaces/components/ui/cards/resource-card/card-text-content.js +1 -0
- package/dist/src/client/interfaces/components/ui/cards/resource-card/resource-card.js +1 -0
- package/dist/src/client/interfaces/components/ui/display/array-list.js +1 -0
- package/dist/src/client/interfaces/components/ui/display/badge.js +1 -0
- package/dist/src/client/interfaces/components/ui/display/object-array-list.js +1 -0
- package/dist/src/client/interfaces/components/ui/features/accordion/accordion-container.js +1 -0
- package/dist/src/client/interfaces/components/ui/features/expandable-list/expand-bar.js +1 -0
- package/dist/src/client/interfaces/components/ui/features/file/file-info/file-info.js +1 -0
- package/dist/src/client/interfaces/components/ui/features/file/file-info/file-name.js +1 -0
- package/dist/src/client/interfaces/components/ui/features/file/file-picker/file-picker-container.js +1 -0
- package/dist/src/client/interfaces/components/ui/features/file/file-picker/file-picker-placeholder.js +1 -0
- package/dist/src/client/interfaces/components/ui/features/file/file-preview/file-preview.js +1 -0
- package/dist/src/client/interfaces/components/ui/features/pick-modal/pick-modal-body.js +1 -0
- package/dist/src/client/interfaces/components/ui/features/pick-modal/pick-modal-trigger.js +1 -0
- package/dist/src/client/interfaces/components/ui/features/pick-modal/pick-modal.js +1 -0
- package/dist/src/client/interfaces/components/ui/form/control-fields/control-fields.js +1 -0
- package/dist/src/client/interfaces/components/ui/form/field-body.js +1 -0
- package/dist/src/client/interfaces/components/ui/form/field.js +1 -0
- package/dist/src/client/interfaces/components/ui/i18n/display/i18n-array-display.js +1 -0
- package/dist/src/client/interfaces/components/ui/i18n/display/i18n-display.js +1 -0
- package/dist/src/client/interfaces/components/ui/i18n/display/i18n-object-array-display.js +1 -0
- package/dist/src/client/interfaces/components/ui/i18n/i18n-tabs-wrapper.js +1 -0
- package/dist/src/client/interfaces/components/ui/i18n/inputs/i18n-array-input.js +1 -0
- package/dist/src/client/interfaces/components/ui/i18n/inputs/i18n-date-input.js +1 -0
- package/dist/src/client/interfaces/components/ui/i18n/inputs/i18n-editor.js +1 -0
- package/dist/src/client/interfaces/components/ui/i18n/inputs/i18n-input.js +1 -0
- package/dist/src/client/interfaces/components/ui/i18n/inputs/i18n-json-input.js +1 -0
- package/dist/src/client/interfaces/components/ui/i18n/inputs/i18n-number-input.js +1 -0
- package/dist/src/client/interfaces/components/ui/i18n/inputs/i18n-object-array-input.js +1 -0
- package/dist/src/client/interfaces/components/ui/i18n/inputs/i18n-textarea.js +1 -0
- package/dist/src/client/interfaces/components/ui/inputs/array-input.js +1 -0
- package/dist/src/client/interfaces/components/ui/inputs/checkbox.js +1 -0
- package/dist/src/client/interfaces/components/ui/inputs/editor/editor.js +1 -0
- package/dist/src/client/interfaces/components/ui/inputs/input.js +1 -0
- package/dist/src/client/interfaces/components/ui/inputs/password-input.js +1 -0
- package/dist/src/client/interfaces/components/ui/inputs/search-input.js +1 -0
- package/dist/src/client/interfaces/components/ui/inputs/select.js +1 -0
- package/dist/src/client/interfaces/components/ui/inputs/textarea.js +1 -0
- package/dist/src/client/interfaces/components/ui/layouts/auth-skeleton.js +1 -0
- package/dist/src/client/interfaces/components/ui/layouts/dashboard-skeleton.js +1 -0
- package/dist/src/client/interfaces/components/ui/layouts/navbar/i18n-selector.js +1 -0
- package/dist/src/client/interfaces/components/ui/layouts/navbar/nav-user.js +1 -0
- package/dist/src/client/interfaces/components/ui/layouts/navbar/navbar.js +2 -1
- package/dist/src/client/interfaces/components/ui/layouts/navbar/sign-out-button.js +1 -0
- package/dist/src/client/interfaces/components/ui/layouts/navbar/theme-selector.js +1 -0
- package/dist/src/client/interfaces/components/ui/layouts/sidebar/nav-main.js +1 -0
- package/dist/src/client/interfaces/pages/auth/change-password/page.js +1 -0
- package/dist/src/client/interfaces/pages/auth/email-unverified/page.js +1 -0
- package/dist/src/client/interfaces/pages/auth/forgot-password/page.js +1 -0
- package/dist/src/client/interfaces/pages/auth/layout.js +1 -0
- package/dist/src/client/interfaces/pages/auth/reset-password/page.js +1 -0
- package/dist/src/client/interfaces/pages/auth/sign-in/page.js +1 -0
- package/dist/src/client/interfaces/pages/auth/verify-email/page.js +1 -0
- package/dist/src/client/interfaces/pages/dashboard/layout.js +1 -0
- package/dist/types/export/client/components/index.d.ts +1 -1
- package/dist/types/export/client/components/index.d.ts.map +1 -1
- package/dist/types/export/client/components/resources/index.d.ts +2 -0
- package/dist/types/export/client/components/resources/index.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/admin/admin-card.d.ts +12 -0
- package/dist/types/src/client/interfaces/components/resources/admin/admin-card.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/admin/admin-list.d.ts +19 -0
- package/dist/types/src/client/interfaces/components/resources/admin/admin-list.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/admin/admin-refresh-tokens/active-sessions-badge.d.ts +9 -0
- package/dist/types/src/client/interfaces/components/resources/admin/admin-refresh-tokens/active-sessions-badge.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/admin/admin-refresh-tokens/active-spot.d.ts +4 -0
- package/dist/types/src/client/interfaces/components/resources/admin/admin-refresh-tokens/active-spot.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/admin/admin-refresh-tokens/admin-refresh-token-card.d.ts +10 -0
- package/dist/types/src/client/interfaces/components/resources/admin/admin-refresh-tokens/admin-refresh-token-card.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/admin/admin-refresh-tokens/related-admin-refresh-tokens.d.ts +6 -0
- package/dist/types/src/client/interfaces/components/resources/admin/admin-refresh-tokens/related-admin-refresh-tokens.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/admin/admin-relations-section.d.ts +9 -0
- package/dist/types/src/client/interfaces/components/resources/admin/admin-relations-section.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/admin/index.d.ts +6 -0
- package/dist/types/src/client/interfaces/components/resources/admin/index.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/category/category-card.d.ts +11 -0
- package/dist/types/src/client/interfaces/components/resources/category/category-card.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/category/category-list.d.ts +20 -0
- package/dist/types/src/client/interfaces/components/resources/category/category-list.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/category/category-relations-section.d.ts +9 -0
- package/dist/types/src/client/interfaces/components/resources/category/category-relations-section.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/category/index.d.ts +4 -0
- package/dist/types/src/client/interfaces/components/resources/category/index.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/file/file-relations-section.d.ts +12 -0
- package/dist/types/src/client/interfaces/components/resources/file/file-relations-section.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/file/index.d.ts +1 -0
- package/dist/types/src/client/interfaces/components/resources/file/index.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/components/resources/index.d.ts +4 -1
- package/dist/types/src/client/interfaces/components/resources/index.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/components/resources/post/control-fields-buttons.d.ts +16 -0
- package/dist/types/src/client/interfaces/components/resources/post/control-fields-buttons.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/post/index.d.ts +6 -0
- package/dist/types/src/client/interfaces/components/resources/post/index.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/post/post-card.d.ts +14 -0
- package/dist/types/src/client/interfaces/components/resources/post/post-card.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/post/post-list.d.ts +25 -0
- package/dist/types/src/client/interfaces/components/resources/post/post-list.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/post/post-relations-section.d.ts +9 -0
- package/dist/types/src/client/interfaces/components/resources/post/post-relations-section.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/post/post-status-bar-icons.d.ts +8 -0
- package/dist/types/src/client/interfaces/components/resources/post/post-status-bar-icons.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/post/post-type-gate.d.ts +10 -0
- package/dist/types/src/client/interfaces/components/resources/post/post-type-gate.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/shadcn/index.d.ts +3 -1
- package/dist/types/src/client/interfaces/components/shadcn/index.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/components/shadcn/item.d.ts +24 -0
- package/dist/types/src/client/interfaces/components/shadcn/item.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/shadcn/table.d.ts +11 -0
- package/dist/types/src/client/interfaces/components/shadcn/table.d.ts.map +1 -0
- package/package.json +5 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-refresh-token-card.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/client/interfaces/components/resources/admin/admin-refresh-tokens/admin-refresh-token-card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAc,MAAM,0BAA0B,CAAC;AAM9E,UAAU,0BAA0B;IAClC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAClD;AAED,wBAAgB,qBAAqB,CAAC,EACpC,iBAAiB,EACjB,SAAS,EACT,YAAY,EACZ,aAAa,GACd,EAAE,0BAA0B,2CAkD5B"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export declare function RelatedAdminRefreshTokens({ isActive, children, }: {
|
|
3
|
+
isActive: boolean;
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=related-admin-refresh-tokens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"related-admin-refresh-tokens.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/client/interfaces/components/resources/admin/admin-refresh-tokens/related-admin-refresh-tokens.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,wBAAgB,yBAAyB,CAAC,EACxC,QAAQ,EACR,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,2CAeA"}
|
package/dist/types/src/client/interfaces/components/resources/admin/admin-relations-section.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AdminFull } from "../../../../../domain/resources/admin/full";
|
|
2
|
+
import type { createPostList } from "../post/post-list";
|
|
3
|
+
export declare function createAdminRelationsSection({ PostList, }: {
|
|
4
|
+
PostList: ReturnType<typeof createPostList>;
|
|
5
|
+
}): ({ admin, usableFields, }: {
|
|
6
|
+
admin?: AdminFull;
|
|
7
|
+
usableFields?: string[];
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=admin-relations-section.d.ts.map
|
package/dist/types/src/client/interfaces/components/resources/admin/admin-relations-section.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-relations-section.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/admin/admin-relations-section.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAMxD,wBAAgB,2BAA2B,CAAC,EAC1C,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;CAC7C,IACuC,0BASnC;IACD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB,6CA4BF"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { AdminCard } from "./admin-card";
|
|
2
|
+
export { createAdminList } from "./admin-list";
|
|
3
|
+
export { createAdminRelationsSection } from "./admin-relations-section";
|
|
4
|
+
export { ActiveSessionsBadge } from "./admin-refresh-tokens/active-sessions-badge";
|
|
5
|
+
export { AdminRefreshTokenCard } from "./admin-refresh-tokens/admin-refresh-token-card";
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/admin/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAC;AAExE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AACnF,OAAO,EAAE,qBAAqB,EAAE,MAAM,iDAAiD,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { PostListCard } from "../../../../../domain";
|
|
2
|
+
import type { ComponentProps } from "react";
|
|
3
|
+
interface CategoryCardProps {
|
|
4
|
+
category: PostListCard;
|
|
5
|
+
className?: string;
|
|
6
|
+
openNewTab?: boolean;
|
|
7
|
+
anchorProps?: ComponentProps<"a"> | undefined;
|
|
8
|
+
}
|
|
9
|
+
export declare function CategoryCard({ category, openNewTab, anchorProps, className, }: CategoryCardProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=category-card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"category-card.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/category/category-card.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAS5C,UAAU,iBAAiB;IACzB,QAAQ,EAAE,YAAY,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,cAAc,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC;CAC/C;AAED,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EAER,UAAkB,EAClB,WAAW,EAEX,SAAc,GACf,EAAE,iBAAiB,2CA6CnB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { createPostFindListCardsAction } from "../../../../../server";
|
|
2
|
+
import type { createUseQuery } from "../../../../infrastructure";
|
|
3
|
+
import type { Dispatch, SetStateAction } from "react";
|
|
4
|
+
import { type MultiItems, type PostListCard, type SingleItem } from "../../../../../domain";
|
|
5
|
+
import { type ListItemsState } from "../../../../../shared";
|
|
6
|
+
interface CategoryListProps {
|
|
7
|
+
usableFields: string[];
|
|
8
|
+
topicId?: string;
|
|
9
|
+
postIds?: string[];
|
|
10
|
+
openNewTab?: boolean;
|
|
11
|
+
pickedItems?: MultiItems;
|
|
12
|
+
setItemStates?: Dispatch<SetStateAction<ListItemsState<PostListCard>>>;
|
|
13
|
+
handleClick?: (item: SingleItem) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare function createCategoryList({ useQuery, postFindListCardsAction, }: {
|
|
16
|
+
useQuery: ReturnType<typeof createUseQuery>;
|
|
17
|
+
postFindListCardsAction: ReturnType<typeof createPostFindListCardsAction>;
|
|
18
|
+
}): ({ usableFields, setItemStates, topicId, postIds, openNewTab, pickedItems, handleClick, }: CategoryListProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=category-list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"category-list.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/category/category-list.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAGtD,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,UAAU,EAChB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,uBAAuB,CAAC;AAS/B,UAAU,iBAAiB;IACzB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,aAAa,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;IACvE,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;CAC1C;AAED,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,uBAAuB,GACxB,EAAE;IACD,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;IAC5C,uBAAuB,EAAE,UAAU,CAAC,OAAO,6BAA6B,CAAC,CAAC;CAC3E,IAC8B,0FAW1B,iBAAiB,6CA0GrB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { PostFull } from "../../../../../domain/resources/post/full";
|
|
2
|
+
import type { createPostList } from "../post";
|
|
3
|
+
export declare function createCategoryRelationsSection({ PostList, }: {
|
|
4
|
+
PostList: ReturnType<typeof createPostList>;
|
|
5
|
+
}): ({ category, usableFields, }: {
|
|
6
|
+
category?: PostFull;
|
|
7
|
+
usableFields?: string[];
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=category-relations-section.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"category-relations-section.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/category/category-relations-section.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAK9C,wBAAgB,8BAA8B,CAAC,EAC7C,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;CAC7C,IAC0C,6BAStC;IACD,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB,6CA0BF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/category/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC"}
|
package/dist/types/src/client/interfaces/components/resources/file/file-relations-section.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { FileFull } from "../../../../../domain/resources/file/full";
|
|
2
|
+
import type { createAdminList } from "../admin/admin-list";
|
|
3
|
+
import type { createPostList } from "../post/post-list";
|
|
4
|
+
export declare function createFileRelationsSection({ adminEnabled, AdminList, PostList, }: {
|
|
5
|
+
adminEnabled: boolean;
|
|
6
|
+
AdminList: ReturnType<typeof createAdminList>;
|
|
7
|
+
PostList: ReturnType<typeof createPostList>;
|
|
8
|
+
}): ({ file, usableFields, }: {
|
|
9
|
+
file: FileFull | null;
|
|
10
|
+
usableFields?: string[];
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=file-relations-section.d.ts.map
|
package/dist/types/src/client/interfaces/components/resources/file/file-relations-section.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-relations-section.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/file/file-relations-section.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAgBxD,wBAAgB,0BAA0B,CAAC,EACzC,YAAY,EACZ,SAAS,EACT,QAAQ,GACT,EAAE;IACD,YAAY,EAAE,OAAO,CAAC;IACtB,SAAS,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;IAC9C,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;CAC7C,IACsC,yBASlC;IACD,IAAI,EAAE,QAAQ,GAAG,IAAI,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB,6CAgDF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/file/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/file/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { AdminCard, createAdminList, createAdminRelationsSection, ActiveSessionsBadge, AdminRefreshTokenCard, } from "./admin";
|
|
2
|
+
export { createFileCard, createFileList, createFileRelationsSection, } from "./file";
|
|
3
|
+
export { createPostCard, createPostList, createPostRelationsSection, PostTypeGate, } from "./post";
|
|
4
|
+
export { CategoryCard, createCategoryList, createCategoryRelationsSection, } from "./category";
|
|
2
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/client/interfaces/components/resources/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/client/interfaces/components/resources/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,eAAe,EACf,2BAA2B,EAC3B,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,cAAc,EACd,cAAc,EACd,0BAA0B,GAC3B,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,cAAc,EACd,cAAc,EACd,0BAA0B,EAC1B,YAAY,GACb,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,8BAA8B,GAC/B,MAAM,YAAY,CAAC"}
|
package/dist/types/src/client/interfaces/components/resources/post/control-fields-buttons.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Dispatch, SetStateAction } from "react";
|
|
2
|
+
export type ControlFieldToggles = {
|
|
3
|
+
isActive: boolean;
|
|
4
|
+
isIndexActive: boolean;
|
|
5
|
+
isSlugActive: boolean;
|
|
6
|
+
isFeatured?: boolean;
|
|
7
|
+
isShownOnHome?: boolean;
|
|
8
|
+
};
|
|
9
|
+
interface ControlFieldsButtonsProps {
|
|
10
|
+
usableFields?: (keyof ControlFieldToggles)[];
|
|
11
|
+
controlFields: ControlFieldToggles;
|
|
12
|
+
setControlFields: Dispatch<SetStateAction<ControlFieldToggles>>;
|
|
13
|
+
}
|
|
14
|
+
export declare function ControlFieldsButtons({ usableFields, controlFields, setControlFields, }: ControlFieldsButtonsProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=control-fields-buttons.d.ts.map
|
package/dist/types/src/client/interfaces/components/resources/post/control-fields-buttons.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control-fields-buttons.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/post/control-fields-buttons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAKtD,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,OAAO,CAAC;IACvB,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,UAAU,yBAAyB;IACjC,YAAY,CAAC,EAAE,CAAC,MAAM,mBAAmB,CAAC,EAAE,CAAC;IAC7C,aAAa,EAAE,mBAAmB,CAAC;IACnC,gBAAgB,EAAE,QAAQ,CAAC,cAAc,CAAC,mBAAmB,CAAC,CAAC,CAAC;CACjE;AAED,wBAAgB,oBAAoB,CAAC,EACnC,YAAiB,EACjB,aAAa,EACb,gBAAgB,GACjB,EAAE,yBAAyB,2CA6F3B"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { createPostCard } from "./post-card";
|
|
2
|
+
export { createPostList } from "./post-list";
|
|
3
|
+
export { createPostRelationsSection } from "./post-relations-section";
|
|
4
|
+
export { PostStatusBarIcons } from "./post-status-bar-icons";
|
|
5
|
+
export { PostTypeGate } from "./post-type-gate";
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/post/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAEtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { PostListCard } from "../../../../../domain";
|
|
2
|
+
import type { createSmartImage } from "../../ui";
|
|
3
|
+
import type { ComponentProps } from "react";
|
|
4
|
+
interface PostCardProps {
|
|
5
|
+
post: PostListCard;
|
|
6
|
+
className?: string;
|
|
7
|
+
openNewTab?: boolean;
|
|
8
|
+
anchorProps?: ComponentProps<"a"> | undefined;
|
|
9
|
+
}
|
|
10
|
+
export declare function createPostCard({ SmartImage, }: {
|
|
11
|
+
SmartImage: ReturnType<typeof createSmartImage>;
|
|
12
|
+
}): ({ post, openNewTab, anchorProps, className, }: PostCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=post-card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-card.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/post/post-card.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAQ5C,UAAU,aAAa;IACrB,IAAI,EAAE,YAAY,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,cAAc,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC;CAC/C;AAED,wBAAgB,cAAc,CAAC,EAC7B,UAAU,GACX,EAAE;IACD,UAAU,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;CACjD,IAC0B,+CAOtB,aAAa,6CAoEjB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { createPostCard } from "./post-card";
|
|
2
|
+
import type { createPostFindListCardsAction } from "../../../../../server";
|
|
3
|
+
import type { createUseQuery } from "../../../../infrastructure";
|
|
4
|
+
import type { PostType } from "@prisma/client";
|
|
5
|
+
import type { Dispatch, SetStateAction } from "react";
|
|
6
|
+
import { type MultiItems, type PostListCard, type SingleItem } from "../../../../../domain";
|
|
7
|
+
import { type ListItemsState } from "../../../../../shared";
|
|
8
|
+
interface PostListProps {
|
|
9
|
+
usableFields: string[];
|
|
10
|
+
type: PostType | null;
|
|
11
|
+
setItemStates?: Dispatch<SetStateAction<ListItemsState<PostListCard>>>;
|
|
12
|
+
topicId?: string;
|
|
13
|
+
postIds?: string[];
|
|
14
|
+
openNewTab?: boolean;
|
|
15
|
+
pickedItems?: MultiItems;
|
|
16
|
+
handleClick?: (item: SingleItem) => void;
|
|
17
|
+
excludeId?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare function createPostList({ useQuery, postFindListCardsAction, PostCard, }: {
|
|
20
|
+
useQuery: ReturnType<typeof createUseQuery>;
|
|
21
|
+
postFindListCardsAction: ReturnType<typeof createPostFindListCardsAction>;
|
|
22
|
+
PostCard: ReturnType<typeof createPostCard>;
|
|
23
|
+
}): ({ usableFields, type, setItemStates, topicId, postIds, openNewTab, pickedItems, handleClick, excludeId, }: PostListProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=post-list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-list.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/post/post-list.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAGtD,OAAO,EACL,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,UAAU,EAChB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAIL,KAAK,cAAc,EACpB,MAAM,uBAAuB,CAAC;AAQ/B,UAAU,aAAa;IACrB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,IAAI,EAAE,QAAQ,GAAG,IAAI,CAAC;IACtB,aAAa,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;IACvE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,uBAAuB,EACvB,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;IAC5C,uBAAuB,EAAE,UAAU,CAAC,OAAO,6BAA6B,CAAC,CAAC;IAC1E,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;CAC7C,IAC0B,2GActB,aAAa,6CAiHjB"}
|
package/dist/types/src/client/interfaces/components/resources/post/post-relations-section.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { createPostList } from "./post-list";
|
|
2
|
+
import type { PostFull } from "../../../../../domain/resources/post/full";
|
|
3
|
+
export declare function createPostRelationsSection({ PostList, }: {
|
|
4
|
+
PostList: ReturnType<typeof createPostList>;
|
|
5
|
+
}): ({ post, usableFields, }: {
|
|
6
|
+
post?: PostFull;
|
|
7
|
+
usableFields?: string[];
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=post-relations-section.d.ts.map
|
package/dist/types/src/client/interfaces/components/resources/post/post-relations-section.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-relations-section.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/post/post-relations-section.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAK1E,wBAAgB,0BAA0B,CAAC,EACzC,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;CAC7C,IACsC,yBASlC;IACD,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB,6CA0BF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare function PostStatusBarIcons({ isActive, index, isSlugActive, isFeatured, isShownOnHome, }: {
|
|
2
|
+
isActive: boolean;
|
|
3
|
+
index?: number | null;
|
|
4
|
+
isSlugActive: boolean;
|
|
5
|
+
isFeatured?: boolean;
|
|
6
|
+
isShownOnHome?: boolean;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=post-status-bar-icons.d.ts.map
|
package/dist/types/src/client/interfaces/components/resources/post/post-status-bar-icons.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-status-bar-icons.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/post/post-status-bar-icons.tsx"],"names":[],"mappings":"AAEA,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,KAAK,EACL,YAAY,EACZ,UAAU,EACV,aAAa,GACd,EAAE;IACD,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,2CAuBA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PostType } from "../../../../../domain";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
interface PostTypeGateProps {
|
|
4
|
+
type?: PostType;
|
|
5
|
+
include?: PostType[];
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare function PostTypeGate({ type, include, children, }: PostTypeGateProps): import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=post-type-gate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-type-gate.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/post/post-type-gate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,UAAU,iBAAiB;IACzB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,OAAO,CAAC,EAAE,QAAQ,EAAE,CAAC;IACrB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,YAAY,CAAC,EAC3B,IAAqB,EACrB,OAAO,EACP,QAAQ,GACT,EAAE,iBAAiB,kDAInB"}
|
|
@@ -5,8 +5,9 @@ export * from "./card";
|
|
|
5
5
|
export * from "./collapsible";
|
|
6
6
|
export * from "./dialog";
|
|
7
7
|
export * from "./dropdown-menu";
|
|
8
|
-
export * from "./input";
|
|
9
8
|
export * from "./input-group";
|
|
9
|
+
export * from "./input";
|
|
10
|
+
export * from "./item";
|
|
10
11
|
export * from "./label";
|
|
11
12
|
export * from "./pagination";
|
|
12
13
|
export * from "./select";
|
|
@@ -16,6 +17,7 @@ export * from "./sidebar";
|
|
|
16
17
|
export * from "./skeleton";
|
|
17
18
|
export * from "./sonner";
|
|
18
19
|
export * from "./spinner";
|
|
20
|
+
export * from "./table";
|
|
19
21
|
export * from "./tabs";
|
|
20
22
|
export * from "./textarea";
|
|
21
23
|
export * from "./tooltip";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/client/interfaces/components/shadcn/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/client/interfaces/components/shadcn/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { Separator } from "./separator";
|
|
4
|
+
declare function ItemGroup({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function ItemSeparator({ className, ...props }: React.ComponentProps<typeof Separator>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare const itemVariants: (props?: ({
|
|
7
|
+
variant?: "default" | "outline" | "muted" | null | undefined;
|
|
8
|
+
size?: "sm" | "default" | null | undefined;
|
|
9
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
10
|
+
declare function Item({ className, variant, size, asChild, ...props }: React.ComponentProps<"div"> & VariantProps<typeof itemVariants> & {
|
|
11
|
+
asChild?: boolean;
|
|
12
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare const itemMediaVariants: (props?: ({
|
|
14
|
+
variant?: "default" | "image" | "icon" | null | undefined;
|
|
15
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
16
|
+
declare function ItemMedia({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof itemMediaVariants>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare function ItemContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare function ItemTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare function ItemDescription({ className, ...props }: React.ComponentProps<"p">): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
declare function ItemActions({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
declare function ItemHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
declare function ItemFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export { Item, ItemMedia, ItemContent, ItemActions, ItemGroup, ItemSeparator, ItemTitle, ItemDescription, ItemHeader, ItemFooter, };
|
|
24
|
+
//# sourceMappingURL=item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item.d.ts","sourceRoot":"","sources":["../../../../../../../src/client/interfaces/components/shadcn/item.tsx"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAStE;AAED,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,2CASxC;AAED,QAAA,MAAM,YAAY;;;8EAmBjB,CAAC;AAEF,iBAAS,IAAI,CAAC,EACZ,SAAS,EACT,OAAmB,EACnB,IAAgB,EAChB,OAAe,EACf,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAC5B,YAAY,CAAC,OAAO,YAAY,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,2CAW1D;AAED,QAAA,MAAM,iBAAiB;;8EAetB,CAAC;AAEF,iBAAS,SAAS,CAAC,EACjB,SAAS,EACT,OAAmB,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,OAAO,iBAAiB,CAAC,2CAStE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAWxE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAWtE;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,2CAY1E;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQxE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAWvE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAWvE;AAED,OAAO,EACL,IAAI,EACJ,SAAS,EACT,WAAW,EACX,WAAW,EACX,SAAS,EACT,aAAa,EACb,SAAS,EACT,eAAe,EACf,UAAU,EACV,UAAU,GACX,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare function Table({ className, ...props }: React.ComponentProps<"table">): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function TableHeader({ className, ...props }: React.ComponentProps<"thead">): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function TableBody({ className, ...props }: React.ComponentProps<"tbody">): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function TableFooter({ className, ...props }: React.ComponentProps<"tfoot">): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function TableRow({ className, ...props }: React.ComponentProps<"tr">): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function TableHead({ className, ...props }: React.ComponentProps<"th">): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function TableCell({ className, ...props }: React.ComponentProps<"td">): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function TableCaption({ className, ...props }: React.ComponentProps<"caption">): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, };
|
|
11
|
+
//# sourceMappingURL=table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../../../../../src/client/interfaces/components/shadcn/table.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,iBAAS,KAAK,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAapE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAQ1E;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAQxE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAW1E;AAED,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAWpE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAWrE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAWrE;AAED,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,2CAQjC;AAED,OAAO,EACL,KAAK,EACL,WAAW,EACX,SAAS,EACT,WAAW,EACX,SAAS,EACT,QAAQ,EACR,SAAS,EACT,YAAY,GACb,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yimingliao/cms",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.153",
|
|
4
4
|
"author": "Yiming Liao",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -20,6 +20,10 @@
|
|
|
20
20
|
"types": "./dist/types/export/client/components/index.d.ts",
|
|
21
21
|
"import": "./dist/export/client/components/index.js"
|
|
22
22
|
},
|
|
23
|
+
"./client/components/resources": {
|
|
24
|
+
"types": "./dist/types/export/client/components/resources/index.d.ts",
|
|
25
|
+
"import": "./dist/export/client/components/resources/index.js"
|
|
26
|
+
},
|
|
23
27
|
"./client/components/editor": {
|
|
24
28
|
"types": "./dist/types/export/client/components/editor/index.d.ts",
|
|
25
29
|
"import": "./dist/export/client/components/editor/index.js"
|