@allbluecn/web-app 0.9.2 → 0.9.3

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 (223) hide show
  1. package/package.json +32 -34
  2. package/src/__tests__/components/reference-inline.test.tsx +1 -1
  3. package/src/components/agents/agents-page.tsx +1 -1
  4. package/src/components/animated-icons/layout-panel-top.tsx +1 -1
  5. package/src/components/auth/auth-layout.tsx +1 -1
  6. package/src/components/knowledge/dialog/knowledge-form-dialog.tsx +1 -1
  7. package/src/components/knowledge/editor/doc-header.tsx +1 -1
  8. package/src/components/knowledge-public/sharers-avatar-group.tsx +1 -1
  9. package/src/components/layout/sidebar-03/__tests__/nav-workspace.test.tsx +1 -1
  10. package/src/components/layout/sidebar-03/app-sidebar.tsx +1 -1
  11. package/src/components/layout/sidebar-03/nav-workspace.tsx +1 -1
  12. package/src/components/layout/sidebar-03/user-menu.tsx +1 -1
  13. package/src/components/magicui/animated-theme-toggler.tsx +1 -1
  14. package/src/components/magicui/grid-pattern.tsx +1 -1
  15. package/src/components/project/create-project-dialog.tsx +1 -1
  16. package/src/components/project/invite-member-dialog.tsx +1 -1
  17. package/src/components/project/project-activity-list.tsx +1 -1
  18. package/src/components/project/project-member-manager.tsx +1 -1
  19. package/src/components/settings/personal-team/account/avatar/notion-avatar.tsx +2 -2
  20. package/src/components/settings/personal-team/team/team-member-list.tsx +1 -1
  21. package/src/components/shadcn-space/blocks/hero-01/header.tsx +1 -1
  22. package/src/components/{ui-shared → shared-kit/auth}/auth-layout.tsx +1 -1
  23. package/src/components/{ui-shared → shared-kit/decorative}/grid-pattern.tsx +1 -1
  24. package/src/components/{ui-shared → shared-kit/dialogs}/name-confirm-dialog.tsx +6 -5
  25. package/src/components/{shared → shared-kit/icons}/__tests__/lucide-curated-icons.test.ts +2 -2
  26. package/src/components/{shared → shared-kit/icons}/__tests__/lucide-icon-data.test.ts +1 -1
  27. package/src/components/{shared → shared-kit/icons}/__tests__/lucide-icon-picker.test.tsx +5 -5
  28. package/src/components/{ui-shared → shared-kit}/index.ts +9 -6
  29. package/src/components/{ui-shared → shared-kit/layout}/layout-panel-top.tsx +1 -1
  30. package/src/components/{ui-shared → shared-kit/navigation}/nav-float-button.tsx +2 -2
  31. package/src/components/{ui-shared → shared-kit/theme}/animated-theme-toggler.tsx +1 -1
  32. package/src/components/story/columns.tsx +1 -1
  33. package/src/components/story/create-story-dialog.tsx +2 -2
  34. package/src/components/story/detail/__tests__/activity-timeline.test.tsx +1 -1
  35. package/src/components/story/detail/activity-timeline.tsx +2 -2
  36. package/src/components/story/detail/comment-item.tsx +1 -1
  37. package/src/components/story/detail/story-detail-body.tsx +2 -2
  38. package/src/components/story/detail/story-detail-toolbar/associated-attachments-panel.tsx +1 -1
  39. package/src/components/story/display/group-resolver.tsx +2 -2
  40. package/src/components/story/filters/applied-filters.tsx +1 -1
  41. package/src/components/story/inline-editors/assignee-editor.tsx +1 -1
  42. package/src/components/story/inline-editors/story-select-dialog.tsx +1 -1
  43. package/src/components/story/relations/story-ref-row.tsx +2 -2
  44. package/src/components/story/story-panel-header.tsx +1 -1
  45. package/src/components/story/story-toolbar.tsx +1 -1
  46. package/src/components/story/transfer-story-popover.tsx +1 -1
  47. package/src/components/story/views/create-view-dialog.tsx +1 -1
  48. package/src/components/story/views/kanban-card.tsx +1 -1
  49. package/src/components/story/views/story-list/index.tsx +1 -1
  50. package/src/components/story/views/story-list/inline-story-creator.tsx +1 -1
  51. package/src/components/tiptap/mindmap/mind-map.tsx +2 -2
  52. package/src/components/tiptap/mindmap/mindmap-fullscreen-dialog.tsx +1 -1
  53. package/src/components/tiptap/node/annotation-node/annotation-node-view.tsx +1 -1
  54. package/src/components/tiptap/node/doc-card-extension.tsx +2 -2
  55. package/src/components/tiptap/notion-like/notion-like-editor-header.tsx +2 -2
  56. package/src/components/tiptap/ui/doc-reference-interaction/doc-reference-interaction.tsx +2 -2
  57. package/src/components/tiptap/ui/mention-dropdown-menu/mention-dropdown-menu.tsx +2 -2
  58. package/src/components/tiptap/ui/reference-dropdown-menu/reference-dropdown-menu.tsx +1 -1
  59. package/src/components/tiptap/ui/slash-dropdown-menu/slash-dropdown-menu.tsx +1 -1
  60. package/src/components/ui/alert-dialog.tsx +216 -1
  61. package/src/components/ui/badge.tsx +66 -1
  62. package/src/components/ui/button.tsx +84 -1
  63. package/src/components/ui/card.tsx +120 -1
  64. package/src/components/ui/checkbox.tsx +50 -1
  65. package/src/components/ui/context-menu.tsx +280 -1
  66. package/src/components/ui/dialog.tsx +183 -1
  67. package/src/components/ui/dropdown-menu.tsx +286 -1
  68. package/src/components/ui/empty.tsx +121 -1
  69. package/src/components/ui/input.tsx +36 -1
  70. package/src/components/ui/label.tsx +39 -1
  71. package/src/components/ui/popover.tsx +106 -1
  72. package/src/components/ui/resizable.tsx +67 -1
  73. package/src/components/ui/select.tsx +207 -1
  74. package/src/components/ui/sidebar.tsx +708 -1
  75. package/src/components/ui/skeleton.tsx +30 -1
  76. package/src/components/ui/sonner.tsx +37 -1
  77. package/src/components/ui/switch.tsx +48 -1
  78. package/src/components/ui/textarea.tsx +35 -1
  79. package/src/components/ui/tooltip.tsx +72 -1
  80. package/src/components/workspace/create-workspace-dialog.tsx +1 -1
  81. package/src/lib/auth/auth-client.ts +1 -1
  82. package/src/lib/changelog/sdk-versions.ts +16 -2
  83. package/src/lib/utils.ts +6 -1
  84. package/src/plugins/core/inspiration/pages/inspiration-page.tsx +1 -1
  85. package/src/plugins/core/inspiration/ui.tsx +1 -1
  86. package/src/plugins/core/prd/components/agent-input.tsx +3 -3
  87. package/src/plugins/core/prd/components/component-editor/collapsible-section.tsx +1 -1
  88. package/src/plugins/core/prd/components/component-editor/content-section.tsx +3 -3
  89. package/src/plugins/core/prd/components/component-editor/style-fields.tsx +3 -3
  90. package/src/plugins/core/prd/components/component-thumbnail.tsx +1 -1
  91. package/src/plugins/core/prd/components/dialog/create-prd-dialog.tsx +3 -3
  92. package/src/plugins/core/prd/components/dialog/prd-detail-client.tsx +4 -4
  93. package/src/plugins/core/prd/components/page-version-panel/components/create-version-dialog.tsx +2 -2
  94. package/src/plugins/core/prd/components/page-version-panel/components/delete-version-dialog.tsx +2 -2
  95. package/src/plugins/core/prd/components/page-version-panel/components/edit-version-dialog.tsx +2 -2
  96. package/src/plugins/core/prd/components/page-version-panel.tsx +9 -9
  97. package/src/plugins/core/prd/components/page-version-tree.tsx +5 -5
  98. package/src/plugins/core/prd/components/prd-agent-panel.tsx +3 -3
  99. package/src/plugins/core/prd/components/prd-comment-review-panel.tsx +7 -7
  100. package/src/plugins/core/prd/components/prd-component-editor-content.tsx +2 -2
  101. package/src/plugins/core/prd/components/prd-dashboard.tsx +8 -8
  102. package/src/plugins/core/prd/components/prd-doc-panel.tsx +2 -2
  103. package/src/plugins/core/prd/components/prd-editor-layout.tsx +4 -4
  104. package/src/plugins/core/prd/components/prd-filter-bar.tsx +1 -1
  105. package/src/plugins/core/prd/components/prd-left-sidebar.tsx +4 -4
  106. package/src/plugins/core/prd/components/prd-navigation.tsx +6 -6
  107. package/src/plugins/core/prd/components/prd-prototype-panel.tsx +2 -2
  108. package/src/plugins/core/prd/components/prd-right-sidebar.tsx +3 -3
  109. package/src/plugins/core/prd/components/prd-share-panel/components/single-version-share-card.tsx +7 -7
  110. package/src/plugins/core/prd/components/prd-share-panel.tsx +10 -10
  111. package/src/plugins/core/prd/components/prd-tree-page-tab.tsx +5 -5
  112. package/src/plugins/core/prd/components/prototype/PrototypeCanvas.tsx +2 -2
  113. package/src/plugins/core/prd/components/restore-version-dialog.tsx +2 -2
  114. package/src/plugins/core/prd/components/share/prd-share-client.tsx +1 -1
  115. package/src/plugins/core/prd/components/share/share-comment-panel.tsx +6 -6
  116. package/src/plugins/core/prd/components/share/share-comment-review-panel.tsx +2 -2
  117. package/src/plugins/core/prd/components/share/share-layout.tsx +1 -1
  118. package/src/plugins/core/prd/components/share/share-nav-bar.tsx +4 -4
  119. package/src/plugins/core/prd/components/share/share-password-gate.tsx +4 -4
  120. package/src/plugins/core/prd/components/share/share-prototype-view.tsx +1 -1
  121. package/src/plugins/core/prd/components/share/share-review-panel.tsx +5 -5
  122. package/src/plugins/core/prd/components/share/share-theme-toggle.tsx +1 -1
  123. package/src/plugins/core/prd/components/share/version-share-client.tsx +1 -1
  124. package/src/plugins/core/prd/pages/prd-detail-page.tsx +2 -2
  125. package/src/plugins/core/prd/pages/share-prd-page.tsx +1 -1
  126. package/src/plugins/core/prd/prd-nav.tsx +1 -1
  127. package/src/plugins/core/tags/nav-tag.tsx +7 -7
  128. package/src/plugins/core/tags/pages/tag-detail-page.tsx +1 -1
  129. package/src/plugins/core/tags/tag-badge.tsx +2 -2
  130. package/src/plugins/core/tags/tag-color-picker.tsx +1 -1
  131. package/src/plugins/core/tags/tag-manager.tsx +6 -6
  132. package/src/plugins/core/tags/tag-selector.tsx +3 -3
  133. package/src/providers/index.tsx +1 -1
  134. package/src/providers/timezone-provider.tsx +1 -1
  135. package/src/routes/_nav/acceptance-criteria/route.tsx +1 -1
  136. package/src/routes/_nav/apps/anyhub/$id/route.tsx +1 -1
  137. package/src/routes/_nav/apps/anyhub/route.tsx +1 -1
  138. package/src/routes/_nav/bugs/route.tsx +1 -1
  139. package/src/routes/_nav/dashboard/-components/avatar-group.tsx +1 -1
  140. package/src/routes/_nav/dashboard/route.lazy.tsx +1 -1
  141. package/src/routes/_nav/knowledge/$kbId/doc/$docId/route.lazy.tsx +1 -1
  142. package/src/routes/_nav/knowledge/index.lazy.tsx +1 -1
  143. package/src/routes/_nav/notion-like/route.tsx +1 -1
  144. package/src/routes/_nav/pricing-02/route.tsx +1 -1
  145. package/src/routes/_nav/projects/$projectId/$storyId/route.lazy.tsx +1 -1
  146. package/src/routes/_nav/projects/$projectId/index.lazy.tsx +3 -3
  147. package/src/routes/_nav/projects/$projectId/iterations/index.lazy.tsx +1 -1
  148. package/src/routes/_nav/projects/$projectId/settings/route.lazy.tsx +3 -3
  149. package/src/routes/_nav/route.lazy.tsx +1 -1
  150. package/src/routes/_nav/settings/general/route.lazy.tsx +1 -1
  151. package/src/routes/_nav/test-cases/route.tsx +1 -1
  152. package/src/routes/_nav/workspaces/$workspaceId/route.lazy.tsx +1 -1
  153. package/src/routes/_nav/workspaces/$workspaceId/settings/route.lazy.tsx +2 -2
  154. package/src/routes/_nav/workspaces/index.lazy.tsx +1 -1
  155. package/src/routes/invite/$token/route.lazy.tsx +1 -1
  156. package/src/server/__tests__/agent-client-graph.test.ts +1 -1
  157. package/src/components/shared/name-confirm-dialog.tsx +0 -1
  158. package/src/components/shared/nav-float-button.tsx +0 -1
  159. package/src/components/shared/placeholder-page.tsx +0 -1
  160. package/src/components/ui-shared/alert-dialog.tsx +0 -216
  161. package/src/components/ui-shared/avatar.tsx +0 -129
  162. package/src/components/ui-shared/badge.tsx +0 -66
  163. package/src/components/ui-shared/button.tsx +0 -84
  164. package/src/components/ui-shared/card.tsx +0 -120
  165. package/src/components/ui-shared/checkbox.tsx +0 -50
  166. package/src/components/ui-shared/context-menu.tsx +0 -280
  167. package/src/components/ui-shared/dialog.tsx +0 -183
  168. package/src/components/ui-shared/dropdown-menu.tsx +0 -286
  169. package/src/components/ui-shared/empty.tsx +0 -121
  170. package/src/components/ui-shared/input.tsx +0 -36
  171. package/src/components/ui-shared/item.tsx +0 -213
  172. package/src/components/ui-shared/kbd.tsx +0 -33
  173. package/src/components/ui-shared/label.tsx +0 -39
  174. package/src/components/ui-shared/popover.tsx +0 -106
  175. package/src/components/ui-shared/resizable.tsx +0 -67
  176. package/src/components/ui-shared/select.tsx +0 -207
  177. package/src/components/ui-shared/separator.tsx +0 -45
  178. package/src/components/ui-shared/sheet.tsx +0 -164
  179. package/src/components/ui-shared/sidebar.tsx +0 -708
  180. package/src/components/ui-shared/skeleton.tsx +0 -30
  181. package/src/components/ui-shared/sonner.tsx +0 -37
  182. package/src/components/ui-shared/switch.tsx +0 -48
  183. package/src/components/ui-shared/textarea.tsx +0 -35
  184. package/src/components/ui-shared/tooltip.tsx +0 -72
  185. package/src/components/ui-shared/utils.ts +0 -6
  186. package/src/lib/utils.d.ts +0 -1
  187. package/src/plugins/.gen-manifest.json +0 -13
  188. package/src/plugins/modules.gen.ts +0 -20
  189. package/src/plugins/plugins.gen.ts +0 -20
  190. package/src/plugins/ui.gen.ts +0 -8
  191. package/src/routes/_nav/inspiration/route.tsx +0 -8
  192. package/src/routes/_nav/prd/$id/route.tsx +0 -9
  193. package/src/routes/_nav/prd/index.tsx +0 -9
  194. package/src/routes/_nav/prd/route.tsx +0 -8
  195. package/src/routes/_nav/tags/$id/route.tsx +0 -8
  196. package/src/routes/_nav/tags/index.tsx +0 -8
  197. package/src/routes/_nav/tags/route.tsx +0 -8
  198. package/src/routes/_nav/tags/settings/route.tsx +0 -9
  199. package/src/routes/share/prd/$prdId/route.tsx +0 -10
  200. package/src/types/open-file-viewer.d.ts +0 -14
  201. /package/src/components/{ui-shared → shared-kit/ai}/ai-command-button.tsx +0 -0
  202. /package/src/components/{ui-shared → shared-kit/ai}/ai-stream-text.tsx +0 -0
  203. /package/src/components/{ui-shared → shared-kit/auth}/auth-client.ts +0 -0
  204. /package/src/components/{ui-shared → shared-kit/avatars}/notion-avatar.tsx +0 -0
  205. /package/src/components/{ui-shared → shared-kit/avatars}/user-avatar.tsx +0 -0
  206. /package/src/components/{shared → shared-kit/data-viz}/contribution-graph-tooltip.tsx +0 -0
  207. /package/src/components/{shared → shared-kit/dev}/component-preview.tsx +0 -0
  208. /package/src/components/{ui-shared → shared-kit/hooks}/use-mobile.ts +0 -0
  209. /package/src/components/{shared → shared-kit/i18n}/language-switcher.tsx +0 -0
  210. /package/src/components/{shared → shared-kit/i18n}/translator-text.tsx +0 -0
  211. /package/src/components/{shared → shared-kit/icons}/lucide-icon-picker/curated-icons.ts +0 -0
  212. /package/src/components/{shared → shared-kit/icons}/lucide-icon-picker/icon-data.ts +0 -0
  213. /package/src/components/{shared → shared-kit/icons}/lucide-icon-picker/index.tsx +0 -0
  214. /package/src/components/{shared → shared-kit/icons}/lucide-icon-picker/lucide-icon-by-name.tsx +0 -0
  215. /package/src/components/{shared → shared-kit/icons}/lucide-icon-picker/panel.tsx +0 -0
  216. /package/src/components/{shared → shared-kit/loading}/wave-physics-loader.tsx +0 -0
  217. /package/src/components/{ui-shared → shared-kit/pages}/placeholder-page.tsx +0 -0
  218. /package/src/components/{ui-shared → shared-kit/reference}/reference-inline.tsx +0 -0
  219. /package/src/components/{ui-shared → shared-kit/reference}/reference-search.tsx +0 -0
  220. /package/src/components/{shared → shared-kit/theme}/theme-toggle.tsx +0 -0
  221. /package/src/components/{shared → shared-kit/timezone}/timezone-bootstrap.tsx +0 -0
  222. /package/src/components/{ui-shared → shared-kit/timezone}/timezone-provider.tsx +0 -0
  223. /package/src/components/{shared → shared-kit/timezone}/timezone-select.tsx +0 -0
@@ -35,7 +35,7 @@ import type { SavedView } from "./views/view-types";
35
35
  import { DisplayDropdown } from "./display/display-dropdown";
36
36
  import type { DisplayOptions } from "./display/types";
37
37
  import { StoryFilterToggle, StoryFilterRow, AppliedFilters, type FilterCondition, type FilterKey } from "./filters";
38
- import { LucideIconByName } from "@/components/shared/lucide-icon-picker/lucide-icon-by-name";
38
+ import { LucideIconByName } from "@/components/shared-kit/icons/lucide-icon-picker/lucide-icon-by-name";
39
39
  import { CreateProjectDialog } from "@/components/project/create-project-dialog";
40
40
  import type { UserBrief } from "./types";
41
41
 
@@ -18,7 +18,7 @@
18
18
  import { useState } from "react";
19
19
  import { useTranslation } from "react-i18next";
20
20
  import { GitCompareArrows, GitPullRequest, Check } from "lucide-react";
21
- import { LucideIconByName } from "@/components/shared/lucide-icon-picker/lucide-icon-by-name";
21
+ import { LucideIconByName } from "@/components/shared-kit/icons/lucide-icon-picker/lucide-icon-by-name";
22
22
  import { Button } from "@/components/ui/button";
23
23
  import { Separator } from "@/components/ui/separator";
24
24
  import {
@@ -31,7 +31,7 @@ import {
31
31
  PopoverTrigger,
32
32
  } from "@/components/ui/popover";
33
33
  import { Button } from "@/components/ui/button";
34
- import { LucideIconByName } from "@/components/shared/lucide-icon-picker/lucide-icon-by-name";
34
+ import { LucideIconByName } from "@/components/shared-kit/icons/lucide-icon-picker/lucide-icon-by-name";
35
35
  import { cn } from "@/lib/utils";
36
36
  import { StoryFilterRow } from "../filters/filter-row";
37
37
  import { createDefaultCondition, type FilterCondition } from "../filters/filter-types";
@@ -19,7 +19,7 @@ import { memo } from "react";
19
19
  import { useTranslation } from "react-i18next";
20
20
  import { useSortable } from "@dnd-kit/react/sortable";
21
21
  import { GripVertical, CalendarCheck, CalendarPlus2 } from "lucide-react";
22
- import { UserAvatar } from "@/components/ui-shared";
22
+ import { UserAvatar } from "@/components/shared-kit";
23
23
  import { PRIORITY_LABEL } from "../constants";
24
24
  import { PriorityIcon } from "../priority-icon";
25
25
  import type { StoryListItem, UserBrief } from "../types";
@@ -38,7 +38,7 @@ import { computeMove, canMove } from "./move";
38
38
  import { computeGroupCheckState, toggleGroupSelection } from "./group-select";
39
39
  import { GROUP_FIELD, toGroupFieldPatch, type GroupField, type StoryPatch } from "../../display/group-fields";
40
40
  import type { GroupKey } from "../../display/types";
41
- import { WavePhysicsLoader } from "@/components/shared/wave-physics-loader";
41
+ import { WavePhysicsLoader } from "@/components/shared-kit/loading/wave-physics-loader";
42
42
 
43
43
  const HEADER_ROW_HEIGHT = 36;
44
44
  const STORY_ROW_HEIGHT = 44;
@@ -18,7 +18,7 @@
18
18
  import { memo, useEffect, useRef, useMemo } from "react";
19
19
  import { useTranslation } from "react-i18next";
20
20
  import { Loader2, CalendarCheck, CalendarPlus2, Check, X, Trees } from "lucide-react";
21
- import { LucideIconByName } from "@/components/shared/lucide-icon-picker/lucide-icon-by-name";
21
+ import { LucideIconByName } from "@/components/shared-kit/icons/lucide-icon-picker/lucide-icon-by-name";
22
22
  import type { UserBrief } from "../../types";
23
23
  import type { StoryState, StoryPriority } from "../../constants";
24
24
  import { PriorityEditor, StateEditor, AssigneeEditor, DateEditor, LabelsEditor } from "../../inline-editors";
@@ -31,8 +31,8 @@ import {
31
31
  import { Minus, Plus, Download, Loader2, Maximize, ScanSearch, X } from "lucide-react"
32
32
  import { GraphIcon, TreeStructureIcon } from "@phosphor-icons/react";
33
33
  import { snapdom } from "@zumer/snapdom"
34
- import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui-shared/tooltip"
35
- import { Separator } from "@/components/ui-shared/separator"
34
+ import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip"
35
+ import { Separator } from "@/components/ui/separator"
36
36
  import { cn } from "../lib/utils.ts"
37
37
  import {
38
38
  type MindElixirInstance,
@@ -15,7 +15,7 @@
15
15
  // You should have received a copy of the GNU Affero General Public License
16
16
  // along with this program. If not, see <https://www.gnu.org/licenses/>.
17
17
 
18
- import { Dialog, DialogContent, DialogTitle } from "@/components/ui-shared/dialog"
18
+ import { Dialog, DialogContent, DialogTitle } from "@/components/ui/dialog"
19
19
  import { useTranslation } from "react-i18next"
20
20
  import { MindMap, MindMapControls } from "./mind-map"
21
21
  import type { MindElixirData } from "mind-elixir"
@@ -30,7 +30,7 @@ import {
30
30
  MessageSquareQuote,
31
31
  Square as SquareIcon,
32
32
  } from "lucide-react";
33
- import { toast } from '@/components/ui-shared/sonner';
33
+ import { toast } from '@/components/ui/sonner';
34
34
  import "./annotation-node.scss";
35
35
  import { useTranslation } from 'react-i18next'
36
36
 
@@ -29,10 +29,10 @@ import {
29
29
  BookMarked,
30
30
  Bookmark,
31
31
  } from "lucide-react"
32
- import { NotionAvatar } from "@/components/ui-shared/notion-avatar"
32
+ import { NotionAvatar } from "@/components/shared-kit/avatars/notion-avatar"
33
33
 
34
34
  import { formatDate } from "../lib/datetime.ts"
35
- import { useTimezone } from "@/components/ui-shared/timezone-provider"
35
+ import { useTimezone } from "@/components/shared-kit/timezone/timezone-provider"
36
36
  import { useEditorServices, type DocumentPreviewData } from "../notion-like/index.ts"
37
37
 
38
38
  const TYPE_ICONS: Record<string, typeof FileText> = {
@@ -33,12 +33,12 @@ import { ButtonGroup } from "../ui-primitive/button-group/index.tsx"
33
33
  // --- Desktop integration ---
34
34
  import { isDesktop } from "@/lib/desktop-detect"
35
35
  import { insertLocalFile } from "../extensions/local-file/insert-local-file.ts"
36
- import { Button } from "@/components/ui-shared/button"
36
+ import { Button } from "@/components/ui/button"
37
37
  import {
38
38
  Tooltip,
39
39
  TooltipContent,
40
40
  TooltipTrigger,
41
- } from "@/components/ui-shared/tooltip"
41
+ } from "@/components/ui/tooltip"
42
42
 
43
43
  // --- Styles ---
44
44
  import "./notion-like-editor-header.scss"
@@ -23,10 +23,10 @@ import {
23
23
  Table,
24
24
  Grid3X3,
25
25
  } from "lucide-react"
26
- import { NotionAvatar } from "@/components/ui-shared/notion-avatar"
26
+ import { NotionAvatar } from "@/components/shared-kit/avatars/notion-avatar"
27
27
 
28
28
  import { formatDate } from "../../lib/datetime.ts"
29
- import { useTimezone } from "@/components/ui-shared/timezone-provider"
29
+ import { useTimezone } from "@/components/shared-kit/timezone/timezone-provider"
30
30
  import { useEditorServices, type DocumentPreviewData } from "../../notion-like/index.ts"
31
31
 
32
32
  interface DocRefMeta {
@@ -33,7 +33,7 @@ import { createFullWidthFindSuggestionMatch } from "../../ui-utils/suggestion-me
33
33
  import {
34
34
  Avatar,
35
35
  AvatarFallback,
36
- } from "@/components/ui-shared/avatar"
36
+ } from "@/components/ui/avatar"
37
37
  import {
38
38
  Item,
39
39
  ItemContent,
@@ -41,7 +41,7 @@ import {
41
41
  ItemGroup,
42
42
  ItemMedia,
43
43
  ItemTitle,
44
- } from "@/components/ui-shared/item"
44
+ } from "@/components/ui/item"
45
45
 
46
46
  interface TeamUser {
47
47
  id: string
@@ -34,7 +34,7 @@ import {
34
34
  ItemGroup,
35
35
  ItemMedia,
36
36
  ItemTitle,
37
- } from "@/components/ui-shared/item"
37
+ } from "@/components/ui/item"
38
38
 
39
39
  import { getClientI18n } from '@/i18n/client'
40
40
  import { useEditorServices } from "../../notion-like/index.ts"
@@ -45,7 +45,7 @@ import {
45
45
  CardGroupLabel,
46
46
  CardItemGroup,
47
47
  } from "../../ui-primitive/card/index.tsx"
48
- import { Kbd } from "@/components/ui-shared/kbd"
48
+ import { Kbd } from "@/components/ui/kbd"
49
49
 
50
50
  import "./slash-dropdown-menu.scss"
51
51
 
@@ -1 +1,216 @@
1
- export * from '@/components/ui-shared/alert-dialog'
1
+ // SPDX-License-Identifier: AGPL-3.0-or-later
2
+ // AllBlue - 理想之海
3
+ // Copyright (C) 2026 AllBlue Contributors
4
+ //
5
+ // This program is free software: you can redistribute it and/or modify
6
+ // it under the terms of the GNU Affero General Public License as published by
7
+ // the Free Software Foundation, either version 3 of the License, or
8
+ // (at your option) any later version.
9
+ //
10
+ // This program is distributed in the hope that it will be useful,
11
+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ // GNU Affero General Public License for more details.
14
+ //
15
+ // You should have received a copy of the GNU Affero General Public License
16
+ // along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+
18
+ "use client"
19
+
20
+ import * as React from "react"
21
+ import { AlertDialog as AlertDialogPrimitive } from "radix-ui"
22
+
23
+ import { cn } from "@/lib/utils"
24
+ import { Button } from "./button"
25
+
26
+ function AlertDialog({
27
+ ...props
28
+ }: React.ComponentProps<typeof AlertDialogPrimitive.Root>) {
29
+ return <AlertDialogPrimitive.Root data-slot="alert-dialog" {...props} />
30
+ }
31
+
32
+ function AlertDialogTrigger({
33
+ ...props
34
+ }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>) {
35
+ return (
36
+ <AlertDialogPrimitive.Trigger data-slot="alert-dialog-trigger" {...props} />
37
+ )
38
+ }
39
+
40
+ function AlertDialogPortal({
41
+ ...props
42
+ }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>) {
43
+ return (
44
+ <AlertDialogPrimitive.Portal data-slot="alert-dialog-portal" {...props} />
45
+ )
46
+ }
47
+
48
+ function AlertDialogOverlay({
49
+ className,
50
+ ...props
51
+ }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>) {
52
+ return (
53
+ <AlertDialogPrimitive.Overlay
54
+ data-slot="alert-dialog-overlay"
55
+ className={cn(
56
+ "fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",
57
+ className
58
+ )}
59
+ {...props}
60
+ />
61
+ )
62
+ }
63
+
64
+ function AlertDialogContent({
65
+ className,
66
+ size = "default",
67
+ ...props
68
+ }: React.ComponentProps<typeof AlertDialogPrimitive.Content> & {
69
+ size?: "default" | "sm"
70
+ }) {
71
+ return (
72
+ <AlertDialogPortal>
73
+ <AlertDialogOverlay />
74
+ <AlertDialogPrimitive.Content
75
+ data-slot="alert-dialog-content"
76
+ data-size={size}
77
+ className={cn(
78
+ "group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
79
+ className
80
+ )}
81
+ {...props}
82
+ />
83
+ </AlertDialogPortal>
84
+ )
85
+ }
86
+
87
+ function AlertDialogHeader({
88
+ className,
89
+ ...props
90
+ }: React.ComponentProps<"div">) {
91
+ return (
92
+ <div
93
+ data-slot="alert-dialog-header"
94
+ className={cn(
95
+ "grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",
96
+ className
97
+ )}
98
+ {...props}
99
+ />
100
+ )
101
+ }
102
+
103
+ function AlertDialogFooter({
104
+ className,
105
+ ...props
106
+ }: React.ComponentProps<"div">) {
107
+ return (
108
+ <div
109
+ data-slot="alert-dialog-footer"
110
+ className={cn(
111
+ "-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",
112
+ className
113
+ )}
114
+ {...props}
115
+ />
116
+ )
117
+ }
118
+
119
+ function AlertDialogMedia({
120
+ className,
121
+ ...props
122
+ }: React.ComponentProps<"div">) {
123
+ return (
124
+ <div
125
+ data-slot="alert-dialog-media"
126
+ className={cn(
127
+ "mb-2 inline-flex size-10 items-center justify-center rounded-md bg-muted sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-6",
128
+ className
129
+ )}
130
+ {...props}
131
+ />
132
+ )
133
+ }
134
+
135
+ function AlertDialogTitle({
136
+ className,
137
+ ...props
138
+ }: React.ComponentProps<typeof AlertDialogPrimitive.Title>) {
139
+ return (
140
+ <AlertDialogPrimitive.Title
141
+ data-slot="alert-dialog-title"
142
+ className={cn(
143
+ "text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",
144
+ className
145
+ )}
146
+ {...props}
147
+ />
148
+ )
149
+ }
150
+
151
+ function AlertDialogDescription({
152
+ className,
153
+ ...props
154
+ }: React.ComponentProps<typeof AlertDialogPrimitive.Description>) {
155
+ return (
156
+ <AlertDialogPrimitive.Description
157
+ data-slot="alert-dialog-description"
158
+ className={cn(
159
+ "text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",
160
+ className
161
+ )}
162
+ {...props}
163
+ />
164
+ )
165
+ }
166
+
167
+ function AlertDialogAction({
168
+ className,
169
+ variant = "default",
170
+ size = "default",
171
+ ...props
172
+ }: React.ComponentProps<typeof AlertDialogPrimitive.Action> &
173
+ Pick<React.ComponentProps<typeof Button>, "variant" | "size">) {
174
+ return (
175
+ <Button variant={variant} size={size} asChild>
176
+ <AlertDialogPrimitive.Action
177
+ data-slot="alert-dialog-action"
178
+ className={cn(className)}
179
+ {...props}
180
+ />
181
+ </Button>
182
+ )
183
+ }
184
+
185
+ function AlertDialogCancel({
186
+ className,
187
+ variant = "outline",
188
+ size = "default",
189
+ ...props
190
+ }: React.ComponentProps<typeof AlertDialogPrimitive.Cancel> &
191
+ Pick<React.ComponentProps<typeof Button>, "variant" | "size">) {
192
+ return (
193
+ <Button variant={variant} size={size} asChild>
194
+ <AlertDialogPrimitive.Cancel
195
+ data-slot="alert-dialog-cancel"
196
+ className={cn(className)}
197
+ {...props}
198
+ />
199
+ </Button>
200
+ )
201
+ }
202
+
203
+ export {
204
+ AlertDialog,
205
+ AlertDialogAction,
206
+ AlertDialogCancel,
207
+ AlertDialogContent,
208
+ AlertDialogDescription,
209
+ AlertDialogFooter,
210
+ AlertDialogHeader,
211
+ AlertDialogMedia,
212
+ AlertDialogOverlay,
213
+ AlertDialogPortal,
214
+ AlertDialogTitle,
215
+ AlertDialogTrigger,
216
+ }
@@ -1 +1,66 @@
1
- export * from '@/components/ui-shared/badge'
1
+ // SPDX-License-Identifier: AGPL-3.0-or-later
2
+ // AllBlue - 理想之海
3
+ // Copyright (C) 2026 AllBlue Contributors
4
+ //
5
+ // This program is free software: you can redistribute it and/or modify
6
+ // it under the terms of the GNU Affero General Public License as published by
7
+ // the Free Software Foundation, either version 3 of the License, or
8
+ // (at your option) any later version.
9
+ //
10
+ // This program is distributed in the hope that it will be useful,
11
+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ // GNU Affero General Public License for more details.
14
+ //
15
+ // You should have received a copy of the GNU Affero General Public License
16
+ // along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+
18
+ import * as React from "react"
19
+ import { cva, type VariantProps } from "class-variance-authority"
20
+ import { Slot } from "radix-ui"
21
+
22
+ import { cn } from "@/lib/utils"
23
+
24
+ const badgeVariants = cva(
25
+ "group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",
26
+ {
27
+ variants: {
28
+ variant: {
29
+ default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
30
+ secondary:
31
+ "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",
32
+ destructive:
33
+ "bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",
34
+ outline:
35
+ "border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",
36
+ ghost:
37
+ "hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",
38
+ link: "text-primary underline-offset-4 hover:underline",
39
+ },
40
+ },
41
+ defaultVariants: {
42
+ variant: "default",
43
+ },
44
+ }
45
+ )
46
+
47
+ function Badge({
48
+ className,
49
+ variant = "default",
50
+ asChild = false,
51
+ ...props
52
+ }: React.ComponentProps<"span"> &
53
+ VariantProps<typeof badgeVariants> & { asChild?: boolean }) {
54
+ const Comp = asChild ? Slot.Root : "span"
55
+
56
+ return (
57
+ <Comp
58
+ data-slot="badge"
59
+ data-variant={variant}
60
+ className={cn(badgeVariants({ variant }), className)}
61
+ {...props}
62
+ />
63
+ )
64
+ }
65
+
66
+ export { Badge, badgeVariants }
@@ -1 +1,84 @@
1
- export * from '@/components/ui-shared/button'
1
+ // SPDX-License-Identifier: AGPL-3.0-or-later
2
+ // AllBlue - 理想之海
3
+ // Copyright (C) 2026 AllBlue Contributors
4
+ //
5
+ // This program is free software: you can redistribute it and/or modify
6
+ // it under the terms of the GNU Affero General Public License as published by
7
+ // the Free Software Foundation, either version 3 of the License, or
8
+ // (at your option) any later version.
9
+ //
10
+ // This program is distributed in the hope that it will be useful,
11
+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ // GNU Affero General Public License for more details.
14
+ //
15
+ // You should have received a copy of the GNU Affero General Public License
16
+ // along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+
18
+ import * as React from "react"
19
+ import { cva, type VariantProps } from "class-variance-authority"
20
+ import { Slot } from "radix-ui"
21
+
22
+ import { cn } from "@/lib/utils"
23
+
24
+ const buttonVariants = cva(
25
+ "group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
26
+ {
27
+ variants: {
28
+ variant: {
29
+ default: "bg-primary text-primary-foreground hover:bg-primary/80",
30
+ outline:
31
+ "border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",
32
+ secondary:
33
+ "bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",
34
+ ghost:
35
+ "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
36
+ destructive:
37
+ "bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",
38
+ link: "text-primary underline-offset-4 hover:underline",
39
+ },
40
+ size: {
41
+ default:
42
+ "h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
43
+ xs: "h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",
44
+ sm: "h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",
45
+ lg: "h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
46
+ icon: "size-8",
47
+ "icon-xs":
48
+ "size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3",
49
+ "icon-sm":
50
+ "size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg",
51
+ "icon-lg": "size-9",
52
+ },
53
+ },
54
+ defaultVariants: {
55
+ variant: "default",
56
+ size: "default",
57
+ },
58
+ }
59
+ )
60
+
61
+ function Button({
62
+ className,
63
+ variant = "default",
64
+ size = "default",
65
+ asChild = false,
66
+ ...props
67
+ }: React.ComponentProps<"button"> &
68
+ VariantProps<typeof buttonVariants> & {
69
+ asChild?: boolean
70
+ }) {
71
+ const Comp = asChild ? Slot.Root : "button"
72
+
73
+ return (
74
+ <Comp
75
+ data-slot="button"
76
+ data-variant={variant}
77
+ data-size={size}
78
+ className={cn(buttonVariants({ variant, size, className }))}
79
+ {...props}
80
+ />
81
+ )
82
+ }
83
+
84
+ export { Button, buttonVariants }
@@ -1 +1,120 @@
1
- export * from '@/components/ui-shared/card'
1
+ // SPDX-License-Identifier: AGPL-3.0-or-later
2
+ // AllBlue - 理想之海
3
+ // Copyright (C) 2026 AllBlue Contributors
4
+ //
5
+ // This program is free software: you can redistribute it and/or modify
6
+ // it under the terms of the GNU Affero General Public License as published by
7
+ // the Free Software Foundation, either version 3 of the License, or
8
+ // (at your option) any later version.
9
+ //
10
+ // This program is distributed in the hope that it will be useful,
11
+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ // GNU Affero General Public License for more details.
14
+ //
15
+ // You should have received a copy of the GNU Affero General Public License
16
+ // along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+
18
+ import * as React from "react"
19
+
20
+ import { cn } from "@/lib/utils"
21
+
22
+ function Card({
23
+ className,
24
+ size = "default",
25
+ ...props
26
+ }: React.ComponentProps<"div"> & { size?: "default" | "sm" }) {
27
+ return (
28
+ <div
29
+ data-slot="card"
30
+ data-size={size}
31
+ className={cn(
32
+ "group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",
33
+ className
34
+ )}
35
+ {...props}
36
+ />
37
+ )
38
+ }
39
+
40
+ function CardHeader({ className, ...props }: React.ComponentProps<"div">) {
41
+ return (
42
+ <div
43
+ data-slot="card-header"
44
+ className={cn(
45
+ "group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)",
46
+ className
47
+ )}
48
+ {...props}
49
+ />
50
+ )
51
+ }
52
+
53
+ function CardTitle({ className, ...props }: React.ComponentProps<"div">) {
54
+ return (
55
+ <div
56
+ data-slot="card-title"
57
+ className={cn(
58
+ "font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",
59
+ className
60
+ )}
61
+ {...props}
62
+ />
63
+ )
64
+ }
65
+
66
+ function CardDescription({ className, ...props }: React.ComponentProps<"div">) {
67
+ return (
68
+ <div
69
+ data-slot="card-description"
70
+ className={cn("text-sm text-muted-foreground", className)}
71
+ {...props}
72
+ />
73
+ )
74
+ }
75
+
76
+ function CardAction({ className, ...props }: React.ComponentProps<"div">) {
77
+ return (
78
+ <div
79
+ data-slot="card-action"
80
+ className={cn(
81
+ "col-start-2 row-span-2 row-start-1 self-start justify-self-end",
82
+ className
83
+ )}
84
+ {...props}
85
+ />
86
+ )
87
+ }
88
+
89
+ function CardContent({ className, ...props }: React.ComponentProps<"div">) {
90
+ return (
91
+ <div
92
+ data-slot="card-content"
93
+ className={cn("px-(--card-spacing)", className)}
94
+ {...props}
95
+ />
96
+ )
97
+ }
98
+
99
+ function CardFooter({ className, ...props }: React.ComponentProps<"div">) {
100
+ return (
101
+ <div
102
+ data-slot="card-footer"
103
+ className={cn(
104
+ "flex items-center rounded-b-xl border-t bg-muted/50 p-(--card-spacing)",
105
+ className
106
+ )}
107
+ {...props}
108
+ />
109
+ )
110
+ }
111
+
112
+ export {
113
+ Card,
114
+ CardHeader,
115
+ CardFooter,
116
+ CardTitle,
117
+ CardAction,
118
+ CardDescription,
119
+ CardContent,
120
+ }