@yimingliao/cms 0.0.150 → 0.0.152

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.
Files changed (147) hide show
  1. package/dist/export/client/components/index.js +18 -8
  2. package/dist/export/client/components/resources/index.js +17 -0
  3. package/dist/export/client/shadcn/index.js +3 -1
  4. package/dist/src/client/interfaces/components/resources/admin/admin-card.js +81 -0
  5. package/dist/src/client/interfaces/components/resources/admin/admin-list.js +126 -0
  6. package/dist/src/client/interfaces/components/resources/admin/admin-refresh-tokens/active-sessions-badge.js +55 -0
  7. package/dist/src/client/interfaces/components/resources/admin/admin-refresh-tokens/active-spot.js +19 -0
  8. package/dist/src/client/interfaces/components/resources/admin/admin-refresh-tokens/admin-refresh-token-card.js +73 -0
  9. package/dist/src/client/interfaces/components/resources/admin/admin-refresh-tokens/related-admin-refresh-tokens.js +20 -0
  10. package/dist/src/client/interfaces/components/resources/admin/admin-relations-section.js +79 -0
  11. package/dist/src/client/interfaces/components/resources/category/category-card.js +80 -0
  12. package/dist/src/client/interfaces/components/resources/category/category-list.js +154 -0
  13. package/dist/src/client/interfaces/components/resources/category/category-relations-section.js +76 -0
  14. package/dist/src/client/interfaces/components/resources/file/file-card.js +1 -0
  15. package/dist/src/client/interfaces/components/resources/file/file-list.js +1 -0
  16. package/dist/src/client/interfaces/components/resources/file/file-relations-section.js +112 -0
  17. package/dist/src/client/interfaces/components/resources/file/is-locked-buttons.js +1 -0
  18. package/dist/src/client/interfaces/components/resources/file/type-buttons.js +1 -0
  19. package/dist/src/client/interfaces/components/resources/post/control-fields-buttons.js +111 -0
  20. package/dist/src/client/interfaces/components/resources/post/post-card.js +112 -0
  21. package/dist/src/client/interfaces/components/resources/post/post-list.js +162 -0
  22. package/dist/src/client/interfaces/components/resources/post/post-relations-section.js +76 -0
  23. package/dist/src/client/interfaces/components/resources/post/post-status-bar-icons.js +24 -0
  24. package/dist/src/client/interfaces/components/resources/post/post-type-gate.js +13 -0
  25. package/dist/src/client/interfaces/components/shadcn/item.js +181 -0
  26. package/dist/src/client/interfaces/components/shadcn/table.js +111 -0
  27. package/dist/src/client/interfaces/components/ui/blocks/list-cards-container/list-cards-container.js +1 -0
  28. package/dist/src/client/interfaces/components/ui/blocks/list-cards-container/page-size-selector.js +1 -0
  29. package/dist/src/client/interfaces/components/ui/blocks/list-cards-container/pagination.js +1 -0
  30. package/dist/src/client/interfaces/components/ui/blocks/page-header/page-header.js +1 -0
  31. package/dist/src/client/interfaces/components/ui/blocks/page-header/presets/batch-create.js +1 -0
  32. package/dist/src/client/interfaces/components/ui/blocks/page-header/presets/create.js +1 -0
  33. package/dist/src/client/interfaces/components/ui/blocks/page-header/presets/edit.js +1 -0
  34. package/dist/src/client/interfaces/components/ui/buttons/button.js +1 -0
  35. package/dist/src/client/interfaces/components/ui/cards/action-buttons-card.js +1 -0
  36. package/dist/src/client/interfaces/components/ui/cards/resource-card/card-status-bar.js +1 -0
  37. package/dist/src/client/interfaces/components/ui/cards/resource-card/card-text-content.js +1 -0
  38. package/dist/src/client/interfaces/components/ui/cards/resource-card/resource-card.js +1 -0
  39. package/dist/src/client/interfaces/components/ui/display/array-list.js +1 -0
  40. package/dist/src/client/interfaces/components/ui/display/badge.js +1 -0
  41. package/dist/src/client/interfaces/components/ui/display/object-array-list.js +1 -0
  42. package/dist/src/client/interfaces/components/ui/features/accordion/accordion-container.js +1 -0
  43. package/dist/src/client/interfaces/components/ui/features/expandable-list/expand-bar.js +1 -0
  44. package/dist/src/client/interfaces/components/ui/features/file/file-info/file-info.js +1 -0
  45. package/dist/src/client/interfaces/components/ui/features/file/file-info/file-name.js +1 -0
  46. package/dist/src/client/interfaces/components/ui/features/file/file-picker/file-picker-container.js +1 -0
  47. package/dist/src/client/interfaces/components/ui/features/file/file-picker/file-picker-placeholder.js +1 -0
  48. package/dist/src/client/interfaces/components/ui/features/file/file-preview/file-preview.js +1 -0
  49. package/dist/src/client/interfaces/components/ui/features/pick-modal/pick-modal-body.js +1 -0
  50. package/dist/src/client/interfaces/components/ui/features/pick-modal/pick-modal-trigger.js +1 -0
  51. package/dist/src/client/interfaces/components/ui/features/pick-modal/pick-modal.js +1 -0
  52. package/dist/src/client/interfaces/components/ui/form/control-fields/control-fields.js +1 -0
  53. package/dist/src/client/interfaces/components/ui/form/field-body.js +1 -0
  54. package/dist/src/client/interfaces/components/ui/form/field.js +1 -0
  55. package/dist/src/client/interfaces/components/ui/i18n/display/i18n-array-display.js +1 -0
  56. package/dist/src/client/interfaces/components/ui/i18n/display/i18n-display.js +1 -0
  57. package/dist/src/client/interfaces/components/ui/i18n/display/i18n-object-array-display.js +1 -0
  58. package/dist/src/client/interfaces/components/ui/i18n/i18n-tabs-wrapper.js +53 -0
  59. package/dist/src/client/interfaces/components/ui/i18n/inputs/i18n-array-input.js +1 -0
  60. package/dist/src/client/interfaces/components/ui/i18n/inputs/i18n-date-input.js +1 -0
  61. package/dist/src/client/interfaces/components/ui/i18n/inputs/i18n-editor.js +1 -0
  62. package/dist/src/client/interfaces/components/ui/i18n/inputs/i18n-input.js +1 -0
  63. package/dist/src/client/interfaces/components/ui/i18n/inputs/i18n-json-input.js +1 -0
  64. package/dist/src/client/interfaces/components/ui/i18n/inputs/i18n-number-input.js +1 -0
  65. package/dist/src/client/interfaces/components/ui/i18n/inputs/i18n-object-array-input.js +1 -0
  66. package/dist/src/client/interfaces/components/ui/i18n/inputs/i18n-textarea.js +1 -0
  67. package/dist/src/client/interfaces/components/ui/inputs/array-input.js +1 -0
  68. package/dist/src/client/interfaces/components/ui/inputs/checkbox.js +1 -0
  69. package/dist/src/client/interfaces/components/ui/inputs/editor/editor.js +1 -0
  70. package/dist/src/client/interfaces/components/ui/inputs/input.js +1 -0
  71. package/dist/src/client/interfaces/components/ui/inputs/password-input.js +1 -0
  72. package/dist/src/client/interfaces/components/ui/inputs/search-input.js +1 -0
  73. package/dist/src/client/interfaces/components/ui/inputs/select.js +1 -0
  74. package/dist/src/client/interfaces/components/ui/inputs/textarea.js +1 -0
  75. package/dist/src/client/interfaces/components/ui/layouts/auth-skeleton.js +1 -0
  76. package/dist/src/client/interfaces/components/ui/layouts/dashboard-skeleton.js +1 -0
  77. package/dist/src/client/interfaces/components/ui/layouts/navbar/i18n-selector.js +1 -0
  78. package/dist/src/client/interfaces/components/ui/layouts/navbar/nav-user.js +1 -0
  79. package/dist/src/client/interfaces/components/ui/layouts/navbar/navbar.js +2 -1
  80. package/dist/src/client/interfaces/components/ui/layouts/navbar/sign-out-button.js +1 -0
  81. package/dist/src/client/interfaces/components/ui/layouts/navbar/theme-selector.js +1 -0
  82. package/dist/src/client/interfaces/components/ui/layouts/sidebar/nav-main.js +1 -0
  83. package/dist/src/client/interfaces/pages/auth/change-password/page.js +1 -0
  84. package/dist/src/client/interfaces/pages/auth/email-unverified/page.js +1 -0
  85. package/dist/src/client/interfaces/pages/auth/forgot-password/page.js +1 -0
  86. package/dist/src/client/interfaces/pages/auth/layout.js +1 -0
  87. package/dist/src/client/interfaces/pages/auth/reset-password/page.js +1 -0
  88. package/dist/src/client/interfaces/pages/auth/sign-in/page.js +1 -0
  89. package/dist/src/client/interfaces/pages/auth/verify-email/page.js +1 -0
  90. package/dist/src/client/interfaces/pages/dashboard/layout.js +1 -0
  91. package/dist/types/export/client/components/index.d.ts +1 -1
  92. package/dist/types/export/client/components/index.d.ts.map +1 -1
  93. package/dist/types/export/client/components/resources/index.d.ts +2 -0
  94. package/dist/types/export/client/components/resources/index.d.ts.map +1 -0
  95. package/dist/types/src/client/interfaces/components/resources/admin/admin-card.d.ts +12 -0
  96. package/dist/types/src/client/interfaces/components/resources/admin/admin-card.d.ts.map +1 -0
  97. package/dist/types/src/client/interfaces/components/resources/admin/admin-list.d.ts +19 -0
  98. package/dist/types/src/client/interfaces/components/resources/admin/admin-list.d.ts.map +1 -0
  99. package/dist/types/src/client/interfaces/components/resources/admin/admin-refresh-tokens/active-sessions-badge.d.ts +9 -0
  100. package/dist/types/src/client/interfaces/components/resources/admin/admin-refresh-tokens/active-sessions-badge.d.ts.map +1 -0
  101. package/dist/types/src/client/interfaces/components/resources/admin/admin-refresh-tokens/active-spot.d.ts +4 -0
  102. package/dist/types/src/client/interfaces/components/resources/admin/admin-refresh-tokens/active-spot.d.ts.map +1 -0
  103. package/dist/types/src/client/interfaces/components/resources/admin/admin-refresh-tokens/admin-refresh-token-card.d.ts +10 -0
  104. package/dist/types/src/client/interfaces/components/resources/admin/admin-refresh-tokens/admin-refresh-token-card.d.ts.map +1 -0
  105. package/dist/types/src/client/interfaces/components/resources/admin/admin-refresh-tokens/related-admin-refresh-tokens.d.ts +6 -0
  106. package/dist/types/src/client/interfaces/components/resources/admin/admin-refresh-tokens/related-admin-refresh-tokens.d.ts.map +1 -0
  107. package/dist/types/src/client/interfaces/components/resources/admin/admin-relations-section.d.ts +9 -0
  108. package/dist/types/src/client/interfaces/components/resources/admin/admin-relations-section.d.ts.map +1 -0
  109. package/dist/types/src/client/interfaces/components/resources/admin/index.d.ts +6 -0
  110. package/dist/types/src/client/interfaces/components/resources/admin/index.d.ts.map +1 -0
  111. package/dist/types/src/client/interfaces/components/resources/category/category-card.d.ts +11 -0
  112. package/dist/types/src/client/interfaces/components/resources/category/category-card.d.ts.map +1 -0
  113. package/dist/types/src/client/interfaces/components/resources/category/category-list.d.ts +20 -0
  114. package/dist/types/src/client/interfaces/components/resources/category/category-list.d.ts.map +1 -0
  115. package/dist/types/src/client/interfaces/components/resources/category/category-relations-section.d.ts +9 -0
  116. package/dist/types/src/client/interfaces/components/resources/category/category-relations-section.d.ts.map +1 -0
  117. package/dist/types/src/client/interfaces/components/resources/category/index.d.ts +4 -0
  118. package/dist/types/src/client/interfaces/components/resources/category/index.d.ts.map +1 -0
  119. package/dist/types/src/client/interfaces/components/resources/file/file-relations-section.d.ts +12 -0
  120. package/dist/types/src/client/interfaces/components/resources/file/file-relations-section.d.ts.map +1 -0
  121. package/dist/types/src/client/interfaces/components/resources/file/index.d.ts +1 -0
  122. package/dist/types/src/client/interfaces/components/resources/file/index.d.ts.map +1 -1
  123. package/dist/types/src/client/interfaces/components/resources/index.d.ts +4 -1
  124. package/dist/types/src/client/interfaces/components/resources/index.d.ts.map +1 -1
  125. package/dist/types/src/client/interfaces/components/resources/post/control-fields-buttons.d.ts +16 -0
  126. package/dist/types/src/client/interfaces/components/resources/post/control-fields-buttons.d.ts.map +1 -0
  127. package/dist/types/src/client/interfaces/components/resources/post/index.d.ts +6 -0
  128. package/dist/types/src/client/interfaces/components/resources/post/index.d.ts.map +1 -0
  129. package/dist/types/src/client/interfaces/components/resources/post/post-card.d.ts +14 -0
  130. package/dist/types/src/client/interfaces/components/resources/post/post-card.d.ts.map +1 -0
  131. package/dist/types/src/client/interfaces/components/resources/post/post-list.d.ts +25 -0
  132. package/dist/types/src/client/interfaces/components/resources/post/post-list.d.ts.map +1 -0
  133. package/dist/types/src/client/interfaces/components/resources/post/post-relations-section.d.ts +9 -0
  134. package/dist/types/src/client/interfaces/components/resources/post/post-relations-section.d.ts.map +1 -0
  135. package/dist/types/src/client/interfaces/components/resources/post/post-status-bar-icons.d.ts +8 -0
  136. package/dist/types/src/client/interfaces/components/resources/post/post-status-bar-icons.d.ts.map +1 -0
  137. package/dist/types/src/client/interfaces/components/resources/post/post-type-gate.d.ts +10 -0
  138. package/dist/types/src/client/interfaces/components/resources/post/post-type-gate.d.ts.map +1 -0
  139. package/dist/types/src/client/interfaces/components/shadcn/index.d.ts +3 -1
  140. package/dist/types/src/client/interfaces/components/shadcn/index.d.ts.map +1 -1
  141. package/dist/types/src/client/interfaces/components/shadcn/item.d.ts +24 -0
  142. package/dist/types/src/client/interfaces/components/shadcn/item.d.ts.map +1 -0
  143. package/dist/types/src/client/interfaces/components/shadcn/table.d.ts +11 -0
  144. package/dist/types/src/client/interfaces/components/shadcn/table.d.ts.map +1 -0
  145. package/dist/types/src/client/interfaces/components/ui/i18n/index.d.ts +1 -0
  146. package/dist/types/src/client/interfaces/components/ui/i18n/index.d.ts.map +1 -1
  147. package/package.json +5 -1
@@ -0,0 +1,9 @@
1
+ import type { AdminRefreshToken } from "../../../../../../domain";
2
+ type ActiveSessionsBadgeProps = {
3
+ adminId?: string;
4
+ adminRefreshTokens: AdminRefreshToken[];
5
+ isLoading?: boolean;
6
+ };
7
+ export declare function ActiveSessionsBadge({ adminId, adminRefreshTokens, isLoading, }: ActiveSessionsBadgeProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
9
+ //# sourceMappingURL=active-sessions-badge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"active-sessions-badge.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/client/interfaces/components/resources/admin/admin-refresh-tokens/active-sessions-badge.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAclE,KAAK,wBAAwB,GAAG;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;IACxC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,EAClC,OAAY,EACZ,kBAAkB,EAClB,SAAiB,GAClB,EAAE,wBAAwB,2CAwB1B"}
@@ -0,0 +1,4 @@
1
+ export declare function ActiveSpot({ isActive }: {
2
+ isActive: boolean;
3
+ }): import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=active-spot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"active-spot.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/client/interfaces/components/resources/admin/admin-refresh-tokens/active-spot.tsx"],"names":[],"mappings":"AAEA,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,OAAO,CAAA;CAAE,2CAS7D"}
@@ -0,0 +1,10 @@
1
+ import type { AdminRefreshToken } from "../../../../../../domain";
2
+ interface AdminRefreshTokenCardProps {
3
+ adminRefreshToken?: AdminRefreshToken;
4
+ isCurrent?: boolean;
5
+ isDestroying?: boolean;
6
+ handleDestroy?: (token: string) => Promise<void>;
7
+ }
8
+ export declare function AdminRefreshTokenCard({ adminRefreshToken, isCurrent, isDestroying, handleDestroy, }: AdminRefreshTokenCardProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
10
+ //# sourceMappingURL=admin-refresh-token-card.d.ts.map
@@ -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"}
@@ -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
@@ -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,4 @@
1
+ export { CategoryCard } from "./category-card";
2
+ export { createCategoryList } from "./category-list";
3
+ export { createCategoryRelationsSection } from "./category-relations-section";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -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"}
@@ -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
@@ -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,3 +1,4 @@
1
1
  export { createFileCard } from "./file-card";
2
2
  export { createFileList } from "./file-list";
3
+ export { createFileRelationsSection } from "./file-relations-section";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -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 { createFileCard, createFileList } from "./file";
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,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC"}
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"}
@@ -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
@@ -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"}
@@ -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
@@ -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
@@ -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,eAAe,CAAC;AAC9B,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,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,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"}
@@ -1,3 +1,4 @@
1
+ export { createI18nTabsWrapper } from "./i18n-tabs-wrapper";
1
2
  export { createI18nDisplay, createI18nArrayDisplay, createI18nObjectArrayDisplay, } from "./display";
2
3
  export { createI18nArrayInput, createI18nDateInput, createI18nEditor, createI18nInput, createI18nJsonInput, createI18nNumberInput, createI18nObjectArrayInput, createI18nTextarea, } from "./inputs";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/ui/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACtB,4BAA4B,GAC7B,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EACnB,qBAAqB,EACrB,0BAA0B,EAC1B,kBAAkB,GACnB,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/ui/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACtB,4BAA4B,GAC7B,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EACnB,qBAAqB,EACrB,0BAA0B,EAC1B,kBAAkB,GACnB,MAAM,UAAU,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yimingliao/cms",
3
- "version": "0.0.150",
3
+ "version": "0.0.152",
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"