@jaetask/toolkit 0.2.0 → 0.3.2
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/CHANGELOG.md +36 -0
- package/LICENSE +2 -0
- package/README.md +44 -85
- package/dist/app/review/InlineMarkdown.d.ts +20 -0
- package/dist/app/review/InlineMarkdown.d.ts.map +1 -0
- package/dist/app/review/InlineMarkdown.js +68 -0
- package/dist/app/review/InlineMarkdown.js.map +1 -0
- package/dist/app/review/index.d.ts +2 -0
- package/dist/app/review/index.d.ts.map +1 -0
- package/dist/app/review/index.js +3 -0
- package/dist/app/review/index.js.map +1 -0
- package/dist/collab-ui/AgentPresenceChip.d.ts +8 -0
- package/dist/collab-ui/AgentPresenceChip.d.ts.map +1 -0
- package/dist/collab-ui/AgentPresenceChip.js +42 -0
- package/dist/collab-ui/AgentPresenceChip.js.map +1 -0
- package/dist/collab-ui/LiveCursorOverlay.d.ts +17 -0
- package/dist/collab-ui/LiveCursorOverlay.d.ts.map +1 -0
- package/dist/collab-ui/LiveCursorOverlay.js +108 -0
- package/dist/collab-ui/LiveCursorOverlay.js.map +1 -0
- package/dist/collab-ui/PresenceBar.d.ts +17 -0
- package/dist/collab-ui/PresenceBar.d.ts.map +1 -0
- package/dist/collab-ui/PresenceBar.js +173 -0
- package/dist/collab-ui/PresenceBar.js.map +1 -0
- package/dist/collab-ui/RecentEditHighlights.d.ts +12 -0
- package/dist/collab-ui/RecentEditHighlights.d.ts.map +1 -0
- package/dist/collab-ui/RecentEditHighlights.js +128 -0
- package/dist/collab-ui/RecentEditHighlights.js.map +1 -0
- package/dist/collab-ui/RemoteSelectionRings.d.ts +15 -0
- package/dist/collab-ui/RemoteSelectionRings.d.ts.map +1 -0
- package/dist/collab-ui/RemoteSelectionRings.js +108 -0
- package/dist/collab-ui/RemoteSelectionRings.js.map +1 -0
- package/dist/collab-ui/agent-identity.d.ts +9 -0
- package/dist/collab-ui/agent-identity.d.ts.map +1 -0
- package/dist/collab-ui/agent-identity.js +8 -0
- package/dist/collab-ui/agent-identity.js.map +1 -0
- package/dist/collab-ui/index.d.ts +9 -0
- package/dist/collab-ui/index.d.ts.map +1 -0
- package/dist/collab-ui/index.js +9 -0
- package/dist/collab-ui/index.js.map +1 -0
- package/dist/collab-ui/lead-client.d.ts +3 -0
- package/dist/collab-ui/lead-client.d.ts.map +1 -0
- package/dist/collab-ui/lead-client.js +32 -0
- package/dist/collab-ui/lead-client.js.map +1 -0
- package/dist/collab-ui/types.d.ts +48 -0
- package/dist/collab-ui/types.d.ts.map +1 -0
- package/dist/collab-ui/types.js +52 -0
- package/dist/collab-ui/types.js.map +1 -0
- package/dist/design-system/components.d.ts +58 -0
- package/dist/design-system/components.d.ts.map +1 -0
- package/dist/design-system/components.js +79 -0
- package/dist/design-system/components.js.map +1 -0
- package/dist/design-system/context.d.ts +11 -0
- package/dist/design-system/context.d.ts.map +1 -0
- package/dist/design-system/context.js +17 -0
- package/dist/design-system/context.js.map +1 -0
- package/dist/design-system/default-adapter.d.ts +3 -0
- package/dist/design-system/default-adapter.d.ts.map +1 -0
- package/dist/design-system/default-adapter.js +229 -0
- package/dist/design-system/default-adapter.js.map +1 -0
- package/dist/design-system/definition.d.ts +9 -0
- package/dist/design-system/definition.d.ts.map +1 -0
- package/dist/design-system/definition.js +4 -0
- package/dist/design-system/definition.js.map +1 -0
- package/dist/design-system/error-boundary.d.ts +18 -0
- package/dist/design-system/error-boundary.d.ts.map +1 -0
- package/dist/design-system/error-boundary.js +16 -0
- package/dist/design-system/error-boundary.js.map +1 -0
- package/dist/design-system/index.d.ts +8 -0
- package/dist/design-system/index.d.ts.map +1 -0
- package/dist/design-system/index.js +8 -0
- package/dist/design-system/index.js.map +1 -0
- package/dist/design-system/theme.d.ts +29 -0
- package/dist/design-system/theme.d.ts.map +1 -0
- package/dist/design-system/theme.js +95 -0
- package/dist/design-system/theme.js.map +1 -0
- package/dist/design-system/types.d.ts +288 -0
- package/dist/design-system/types.d.ts.map +1 -0
- package/dist/design-system/types.js +2 -0
- package/dist/design-system/types.js.map +1 -0
- package/dist/editor/BubbleToolbar.d.ts +18 -0
- package/dist/editor/BubbleToolbar.d.ts.map +1 -0
- package/dist/editor/BubbleToolbar.js +160 -0
- package/dist/editor/BubbleToolbar.js.map +1 -0
- package/dist/editor/CodeBlockNode.d.ts +25 -0
- package/dist/editor/CodeBlockNode.d.ts.map +1 -0
- package/dist/editor/CodeBlockNode.js +112 -0
- package/dist/editor/CodeBlockNode.js.map +1 -0
- package/dist/editor/DragHandle.d.ts +40 -0
- package/dist/editor/DragHandle.d.ts.map +1 -0
- package/dist/editor/DragHandle.js +983 -0
- package/dist/editor/DragHandle.js.map +1 -0
- package/dist/editor/ImageExtension.d.ts +15 -0
- package/dist/editor/ImageExtension.d.ts.map +1 -0
- package/dist/editor/ImageExtension.js +182 -0
- package/dist/editor/ImageExtension.js.map +1 -0
- package/dist/editor/RegistryBlockContext.d.ts +72 -0
- package/dist/editor/RegistryBlockContext.d.ts.map +1 -0
- package/dist/editor/RegistryBlockContext.js +10 -0
- package/dist/editor/RegistryBlockContext.js.map +1 -0
- package/dist/editor/RegistryBlockNode.d.ts +36 -0
- package/dist/editor/RegistryBlockNode.d.ts.map +1 -0
- package/dist/editor/RegistryBlockNode.js +343 -0
- package/dist/editor/RegistryBlockNode.js.map +1 -0
- package/dist/editor/RichMarkdownEditor.d.ts +18 -0
- package/dist/editor/RichMarkdownEditor.d.ts.map +1 -0
- package/dist/editor/RichMarkdownEditor.js +11 -0
- package/dist/editor/RichMarkdownEditor.js.map +1 -0
- package/dist/editor/RunId.d.ts +4 -0
- package/dist/editor/RunId.d.ts.map +1 -0
- package/dist/editor/RunId.js +33 -0
- package/dist/editor/RunId.js.map +1 -0
- package/dist/editor/SharedRichEditor.d.ts +57 -0
- package/dist/editor/SharedRichEditor.d.ts.map +1 -0
- package/dist/editor/SharedRichEditor.js +155 -0
- package/dist/editor/SharedRichEditor.js.map +1 -0
- package/dist/editor/SlashCommandMenu.d.ts +25 -0
- package/dist/editor/SlashCommandMenu.d.ts.map +1 -0
- package/dist/editor/SlashCommandMenu.js +254 -0
- package/dist/editor/SlashCommandMenu.js.map +1 -0
- package/dist/editor/TaskListPaste.d.ts +4 -0
- package/dist/editor/TaskListPaste.d.ts.map +1 -0
- package/dist/editor/TaskListPaste.js +131 -0
- package/dist/editor/TaskListPaste.js.map +1 -0
- package/dist/editor/extensions.d.ts +42 -0
- package/dist/editor/extensions.d.ts.map +1 -0
- package/dist/editor/extensions.js +173 -0
- package/dist/editor/extensions.js.map +1 -0
- package/dist/editor/gfmDoc.d.ts +4 -0
- package/dist/editor/gfmDoc.d.ts.map +1 -0
- package/dist/editor/gfmDoc.js +37 -0
- package/dist/editor/gfmDoc.js.map +1 -0
- package/dist/editor/index.d.ts +17 -0
- package/dist/editor/index.d.ts.map +1 -0
- package/dist/editor/index.js +16 -0
- package/dist/editor/index.js.map +1 -0
- package/dist/editor/registrySlashCommands.d.ts +20 -0
- package/dist/editor/registrySlashCommands.d.ts.map +1 -0
- package/dist/editor/registrySlashCommands.js +40 -0
- package/dist/editor/registrySlashCommands.js.map +1 -0
- package/dist/editor/surgical-apply.d.ts +46 -0
- package/dist/editor/surgical-apply.d.ts.map +1 -0
- package/dist/editor/surgical-apply.js +286 -0
- package/dist/editor/surgical-apply.js.map +1 -0
- package/dist/editor/useCollabReconcile.d.ts +94 -0
- package/dist/editor/useCollabReconcile.d.ts.map +1 -0
- package/dist/editor/useCollabReconcile.js +879 -0
- package/dist/editor/useCollabReconcile.js.map +1 -0
- package/dist/editor.css +628 -0
- package/dist/guard.d.ts +2 -0
- package/dist/guard.d.ts.map +1 -0
- package/dist/guard.js +33 -6
- package/dist/guard.js.map +1 -1
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +3 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/use-mobile.d.ts +2 -0
- package/dist/hooks/use-mobile.d.ts.map +1 -0
- package/dist/hooks/use-mobile.js +16 -0
- package/dist/hooks/use-mobile.js.map +1 -0
- package/dist/hooks/use-toast.d.ts +45 -0
- package/dist/hooks/use-toast.d.ts.map +1 -0
- package/dist/hooks/use-toast.js +125 -0
- package/dist/hooks/use-toast.js.map +1 -0
- package/dist/icons/ResourceIcon.d.ts +14 -0
- package/dist/icons/ResourceIcon.d.ts.map +1 -0
- package/dist/icons/ResourceIcon.js +43 -0
- package/dist/icons/ResourceIcon.js.map +1 -0
- package/dist/icons/ResourceIconPicker.d.ts +57 -0
- package/dist/icons/ResourceIconPicker.d.ts.map +1 -0
- package/dist/icons/ResourceIconPicker.js +388 -0
- package/dist/icons/ResourceIconPicker.js.map +1 -0
- package/dist/icons/catalog.d.ts +17 -0
- package/dist/icons/catalog.d.ts.map +1 -0
- package/dist/icons/catalog.js +114 -0
- package/dist/icons/catalog.js.map +1 -0
- package/dist/icons/emoji-catalog.d.ts +12 -0
- package/dist/icons/emoji-catalog.d.ts.map +1 -0
- package/dist/icons/emoji-catalog.js +58 -0
- package/dist/icons/emoji-catalog.js.map +1 -0
- package/dist/icons/icon-colors.d.ts +3 -0
- package/dist/icons/icon-colors.d.ts.map +1 -0
- package/dist/icons/icon-colors.js +12 -0
- package/dist/icons/icon-colors.js.map +1 -0
- package/dist/icons/index.d.ts +5 -0
- package/dist/icons/index.d.ts.map +1 -0
- package/dist/icons/index.js +5 -0
- package/dist/icons/index.js.map +1 -0
- package/dist/icons/recents.d.ts +6 -0
- package/dist/icons/recents.d.ts.map +1 -0
- package/dist/icons/recents.js +23 -0
- package/dist/icons/recents.js.map +1 -0
- package/dist/icons/server.d.ts +7 -0
- package/dist/icons/server.d.ts.map +1 -0
- package/dist/icons/server.js +25 -0
- package/dist/icons/server.js.map +1 -0
- package/dist/icons/tabler-catalog-data.d.ts +31 -0
- package/dist/icons/tabler-catalog-data.d.ts.map +1 -0
- package/dist/icons/tabler-catalog-data.js +30121 -0
- package/dist/icons/tabler-catalog-data.js.map +1 -0
- package/dist/icons/tabler-chunk-loaders.d.ts +30 -0
- package/dist/icons/tabler-chunk-loaders.d.ts.map +1 -0
- package/dist/icons/tabler-chunk-loaders.js +29 -0
- package/dist/icons/tabler-chunk-loaders.js.map +1 -0
- package/dist/icons/tabler-chunks/a.d.ts +450 -0
- package/dist/icons/tabler-chunks/a.d.ts.map +1 -0
- package/dist/icons/tabler-chunks/a.js +450 -0
- package/dist/icons/tabler-chunks/a.js.map +1 -0
- package/dist/icons/tabler-chunks/b.d.ts +849 -0
- package/dist/icons/tabler-chunks/b.d.ts.map +1 -0
- package/dist/icons/tabler-chunks/b.js +849 -0
- package/dist/icons/tabler-chunks/b.js.map +1 -0
- package/dist/icons/tabler-chunks/c.d.ts +922 -0
- package/dist/icons/tabler-chunks/c.d.ts.map +1 -0
- package/dist/icons/tabler-chunks/c.js +922 -0
- package/dist/icons/tabler-chunks/c.js.map +1 -0
- package/dist/icons/tabler-chunks/d.d.ts +380 -0
- package/dist/icons/tabler-chunks/d.d.ts.map +1 -0
- package/dist/icons/tabler-chunks/d.js +380 -0
- package/dist/icons/tabler-chunks/d.js.map +1 -0
- package/dist/icons/tabler-chunks/e.d.ts +112 -0
- package/dist/icons/tabler-chunks/e.d.ts.map +1 -0
- package/dist/icons/tabler-chunks/e.js +112 -0
- package/dist/icons/tabler-chunks/e.js.map +1 -0
- package/dist/icons/tabler-chunks/f.d.ts +341 -0
- package/dist/icons/tabler-chunks/f.d.ts.map +1 -0
- package/dist/icons/tabler-chunks/f.js +341 -0
- package/dist/icons/tabler-chunks/f.js.map +1 -0
- package/dist/icons/tabler-chunks/g.d.ts +101 -0
- package/dist/icons/tabler-chunks/g.d.ts.map +1 -0
- package/dist/icons/tabler-chunks/g.js +101 -0
- package/dist/icons/tabler-chunks/g.js.map +1 -0
- package/dist/icons/tabler-chunks/h.d.ts +276 -0
- package/dist/icons/tabler-chunks/h.d.ts.map +1 -0
- package/dist/icons/tabler-chunks/h.js +276 -0
- package/dist/icons/tabler-chunks/h.js.map +1 -0
- package/dist/icons/tabler-chunks/i.d.ts +79 -0
- package/dist/icons/tabler-chunks/i.d.ts.map +1 -0
- package/dist/icons/tabler-chunks/i.js +79 -0
- package/dist/icons/tabler-chunks/i.js.map +1 -0
- package/dist/icons/tabler-chunks/j.d.ts +17 -0
- package/dist/icons/tabler-chunks/j.d.ts.map +1 -0
- package/dist/icons/tabler-chunks/j.js +17 -0
- package/dist/icons/tabler-chunks/j.js.map +1 -0
- package/dist/icons/tabler-chunks/k.d.ts +25 -0
- package/dist/icons/tabler-chunks/k.d.ts.map +1 -0
- package/dist/icons/tabler-chunks/k.js +25 -0
- package/dist/icons/tabler-chunks/k.js.map +1 -0
- package/dist/icons/tabler-chunks/l.d.ts +298 -0
- package/dist/icons/tabler-chunks/l.d.ts.map +1 -0
- package/dist/icons/tabler-chunks/l.js +298 -0
- package/dist/icons/tabler-chunks/l.js.map +1 -0
- package/dist/icons/tabler-chunks/m.d.ts +413 -0
- package/dist/icons/tabler-chunks/m.d.ts.map +1 -0
- package/dist/icons/tabler-chunks/m.js +413 -0
- package/dist/icons/tabler-chunks/m.js.map +1 -0
- package/dist/icons/tabler-chunks/n.d.ts +174 -0
- package/dist/icons/tabler-chunks/n.d.ts.map +1 -0
- package/dist/icons/tabler-chunks/n.js +174 -0
- package/dist/icons/tabler-chunks/n.js.map +1 -0
- package/dist/icons/tabler-chunks/o.d.ts +31 -0
- package/dist/icons/tabler-chunks/o.d.ts.map +1 -0
- package/dist/icons/tabler-chunks/o.js +31 -0
- package/dist/icons/tabler-chunks/o.js.map +1 -0
- package/dist/icons/tabler-chunks/p.d.ts +374 -0
- package/dist/icons/tabler-chunks/p.d.ts.map +1 -0
- package/dist/icons/tabler-chunks/p.js +374 -0
- package/dist/icons/tabler-chunks/p.js.map +1 -0
- package/dist/icons/tabler-chunks/q.d.ts +14 -0
- package/dist/icons/tabler-chunks/q.d.ts.map +1 -0
- package/dist/icons/tabler-chunks/q.js +14 -0
- package/dist/icons/tabler-chunks/q.js.map +1 -0
- package/dist/icons/tabler-chunks/r.d.ts +183 -0
- package/dist/icons/tabler-chunks/r.d.ts.map +1 -0
- package/dist/icons/tabler-chunks/r.js +183 -0
- package/dist/icons/tabler-chunks/r.js.map +1 -0
- package/dist/icons/tabler-chunks/s.d.ts +656 -0
- package/dist/icons/tabler-chunks/s.d.ts.map +1 -0
- package/dist/icons/tabler-chunks/s.js +656 -0
- package/dist/icons/tabler-chunks/s.js.map +1 -0
- package/dist/icons/tabler-chunks/t.d.ts +242 -0
- package/dist/icons/tabler-chunks/t.d.ts.map +1 -0
- package/dist/icons/tabler-chunks/t.js +242 -0
- package/dist/icons/tabler-chunks/t.js.map +1 -0
- package/dist/icons/tabler-chunks/u.d.ts +62 -0
- package/dist/icons/tabler-chunks/u.d.ts.map +1 -0
- package/dist/icons/tabler-chunks/u.js +62 -0
- package/dist/icons/tabler-chunks/u.js.map +1 -0
- package/dist/icons/tabler-chunks/v.d.ts +60 -0
- package/dist/icons/tabler-chunks/v.d.ts.map +1 -0
- package/dist/icons/tabler-chunks/v.js +60 -0
- package/dist/icons/tabler-chunks/v.js.map +1 -0
- package/dist/icons/tabler-chunks/w.d.ts +115 -0
- package/dist/icons/tabler-chunks/w.d.ts.map +1 -0
- package/dist/icons/tabler-chunks/w.js +115 -0
- package/dist/icons/tabler-chunks/w.js.map +1 -0
- package/dist/icons/tabler-chunks/x.d.ts +18 -0
- package/dist/icons/tabler-chunks/x.d.ts.map +1 -0
- package/dist/icons/tabler-chunks/x.js +18 -0
- package/dist/icons/tabler-chunks/x.js.map +1 -0
- package/dist/icons/tabler-chunks/y.d.ts +7 -0
- package/dist/icons/tabler-chunks/y.d.ts.map +1 -0
- package/dist/icons/tabler-chunks/y.js +3 -0
- package/dist/icons/tabler-chunks/y.js.map +1 -0
- package/dist/icons/tabler-chunks/z.d.ts +51 -0
- package/dist/icons/tabler-chunks/z.d.ts.map +1 -0
- package/dist/icons/tabler-chunks/z.js +51 -0
- package/dist/icons/tabler-chunks/z.js.map +1 -0
- package/dist/icons/tabler-groups.d.ts +30 -0
- package/dist/icons/tabler-groups.d.ts.map +1 -0
- package/dist/icons/tabler-groups.js +65 -0
- package/dist/icons/tabler-groups.js.map +1 -0
- package/dist/icons/types.d.ts +25 -0
- package/dist/icons/types.d.ts.map +1 -0
- package/dist/icons/types.js +2 -0
- package/dist/icons/types.js.map +1 -0
- package/dist/index.d.ts +6 -6
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/provider.d.ts +15 -0
- package/dist/provider.d.ts.map +1 -0
- package/dist/provider.js +62 -0
- package/dist/provider.js.map +1 -0
- package/dist/styles.css +333 -1103
- package/dist/suite/controls.d.ts +8 -0
- package/dist/suite/controls.d.ts.map +1 -0
- package/dist/suite/controls.js +12 -0
- package/dist/suite/controls.js.map +1 -0
- package/dist/suite/due-picker.d.ts +24 -0
- package/dist/suite/due-picker.d.ts.map +1 -0
- package/dist/suite/due-picker.js +100 -0
- package/dist/suite/due-picker.js.map +1 -0
- package/dist/suite/due.d.ts +6 -0
- package/dist/suite/due.d.ts.map +1 -0
- package/dist/suite/due.js +58 -0
- package/dist/suite/due.js.map +1 -0
- package/dist/suite/emoji.d.ts +34 -0
- package/dist/suite/emoji.d.ts.map +1 -0
- package/dist/suite/emoji.js +643 -0
- package/dist/suite/emoji.js.map +1 -0
- package/dist/suite/files.d.ts +29 -0
- package/dist/suite/files.d.ts.map +1 -0
- package/dist/suite/files.js +46 -0
- package/dist/suite/files.js.map +1 -0
- package/dist/suite/forms.d.ts +32 -0
- package/dist/suite/forms.d.ts.map +1 -0
- package/dist/suite/forms.js +29 -0
- package/dist/suite/forms.js.map +1 -0
- package/dist/suite/index.d.ts +16 -0
- package/dist/suite/index.d.ts.map +1 -0
- package/dist/suite/index.js +18 -0
- package/dist/suite/index.js.map +1 -0
- package/dist/{link.d.ts → suite/link.d.ts} +2 -1
- package/dist/suite/link.d.ts.map +1 -0
- package/dist/{link.js → suite/link.js} +1 -1
- package/dist/suite/link.js.map +1 -0
- package/dist/suite/links.d.ts +25 -0
- package/dist/suite/links.d.ts.map +1 -0
- package/dist/suite/links.js +69 -0
- package/dist/suite/links.js.map +1 -0
- package/dist/suite/markdown.d.ts +6 -0
- package/dist/suite/markdown.d.ts.map +1 -0
- package/dist/suite/markdown.js +64 -0
- package/dist/suite/markdown.js.map +1 -0
- package/dist/{page.d.ts → suite/page.d.ts} +8 -31
- package/dist/suite/page.d.ts.map +1 -0
- package/dist/{page.js → suite/page.js} +13 -29
- package/dist/suite/page.js.map +1 -0
- package/dist/{parts.d.ts → suite/parts.d.ts} +2 -18
- package/dist/suite/parts.d.ts.map +1 -0
- package/dist/{parts.js → suite/parts.js} +5 -15
- package/dist/suite/parts.js.map +1 -0
- package/dist/suite/pickers.d.ts +40 -0
- package/dist/suite/pickers.d.ts.map +1 -0
- package/dist/suite/pickers.js +87 -0
- package/dist/suite/pickers.js.map +1 -0
- package/dist/suite/project-appearance.d.ts +7 -0
- package/dist/suite/project-appearance.d.ts.map +1 -0
- package/dist/suite/project-appearance.js +45 -0
- package/dist/suite/project-appearance.js.map +1 -0
- package/dist/suite/project-icon.d.ts +26 -0
- package/dist/suite/project-icon.d.ts.map +1 -0
- package/dist/suite/project-icon.js +58 -0
- package/dist/suite/project-icon.js.map +1 -0
- package/dist/{shell.d.ts → suite/shell.d.ts} +14 -10
- package/dist/suite/shell.d.ts.map +1 -0
- package/dist/{shell.js → suite/shell.js} +23 -10
- package/dist/suite/shell.js.map +1 -0
- package/dist/suite/suite.css +1146 -0
- package/dist/suite/views.d.ts +30 -0
- package/dist/suite/views.d.ts.map +1 -0
- package/dist/suite/views.js +20 -0
- package/dist/suite/views.js.map +1 -0
- package/dist/theme/resource-icons.css +23 -0
- package/dist/theme/suite-theme.css +97 -0
- package/dist/ui/accordion.d.ts +8 -0
- package/dist/ui/accordion.d.ts.map +1 -0
- package/dist/ui/accordion.js +14 -0
- package/dist/ui/accordion.js.map +1 -0
- package/dist/ui/alert-dialog.d.ts +24 -0
- package/dist/ui/alert-dialog.d.ts.map +1 -0
- package/dist/ui/alert-dialog.js +31 -0
- package/dist/ui/alert-dialog.js.map +1 -0
- package/dist/ui/alert.d.ts +9 -0
- package/dist/ui/alert.d.ts.map +1 -0
- package/dist/ui/alert.js +23 -0
- package/dist/ui/alert.js.map +1 -0
- package/dist/ui/aspect-ratio.d.ts +4 -0
- package/dist/ui/aspect-ratio.d.ts.map +1 -0
- package/dist/ui/aspect-ratio.js +4 -0
- package/dist/ui/aspect-ratio.js.map +1 -0
- package/dist/ui/avatar.d.ts +7 -0
- package/dist/ui/avatar.d.ts.map +1 -0
- package/dist/ui/avatar.js +12 -0
- package/dist/ui/avatar.js.map +1 -0
- package/dist/ui/badge.d.ts +10 -0
- package/dist/ui/badge.d.ts.map +1 -0
- package/dist/ui/badge.js +21 -0
- package/dist/ui/badge.js.map +1 -0
- package/dist/ui/breadcrumb.d.ts +20 -0
- package/dist/ui/breadcrumb.d.ts.map +1 -0
- package/dist/ui/breadcrumb.js +24 -0
- package/dist/ui/breadcrumb.js.map +1 -0
- package/dist/ui/button-group.d.ts +15 -0
- package/dist/ui/button-group.d.ts.map +1 -0
- package/dist/ui/button-group.js +30 -0
- package/dist/ui/button-group.js.map +1 -0
- package/dist/ui/button.d.ts +17 -0
- package/dist/ui/button.d.ts.map +1 -0
- package/dist/ui/button.js +89 -0
- package/dist/ui/button.js.map +1 -0
- package/dist/ui/calendar.d.ts +9 -0
- package/dist/ui/calendar.d.ts.map +1 -0
- package/dist/ui/calendar.js +74 -0
- package/dist/ui/calendar.js.map +1 -0
- package/dist/ui/card.d.ts +9 -0
- package/dist/ui/card.d.ts.map +1 -0
- package/dist/ui/card.js +17 -0
- package/dist/ui/card.js.map +1 -0
- package/dist/ui/carousel.d.ts +19 -0
- package/dist/ui/carousel.d.ts.map +1 -0
- package/dist/ui/carousel.js +99 -0
- package/dist/ui/carousel.js.map +1 -0
- package/dist/ui/chart.d.ts +80 -0
- package/dist/ui/chart.d.ts.map +1 -0
- package/dist/ui/chart.js +129 -0
- package/dist/ui/chart.js.map +1 -0
- package/dist/ui/checkbox.d.ts +5 -0
- package/dist/ui/checkbox.d.ts.map +1 -0
- package/dist/ui/checkbox.js +9 -0
- package/dist/ui/checkbox.js.map +1 -0
- package/dist/ui/collapsible.d.ts +6 -0
- package/dist/ui/collapsible.d.ts.map +1 -0
- package/dist/ui/collapsible.js +6 -0
- package/dist/ui/collapsible.js.map +1 -0
- package/dist/ui/command.d.ts +90 -0
- package/dist/ui/command.d.ts.map +1 -0
- package/dist/ui/command.js +35 -0
- package/dist/ui/command.js.map +1 -0
- package/dist/ui/context-menu.d.ts +28 -0
- package/dist/ui/context-menu.d.ts.map +1 -0
- package/dist/ui/context-menu.js +34 -0
- package/dist/ui/context-menu.js.map +1 -0
- package/dist/ui/cube-loader.d.ts +8 -0
- package/dist/ui/cube-loader.d.ts.map +1 -0
- package/dist/ui/cube-loader.js +45 -0
- package/dist/ui/cube-loader.js.map +1 -0
- package/dist/ui/date-picker.d.ts +9 -0
- package/dist/ui/date-picker.d.ts.map +1 -0
- package/dist/ui/date-picker.js +20 -0
- package/dist/ui/date-picker.js.map +1 -0
- package/dist/ui/dialog.d.ts +32 -0
- package/dist/ui/dialog.d.ts.map +1 -0
- package/dist/ui/dialog.js +26 -0
- package/dist/ui/dialog.js.map +1 -0
- package/dist/ui/drawer.d.ts +35 -0
- package/dist/ui/drawer.d.ts.map +1 -0
- package/dist/ui/drawer.js +25 -0
- package/dist/ui/drawer.js.map +1 -0
- package/dist/ui/dropdown-menu.d.ts +34 -0
- package/dist/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/ui/dropdown-menu.js +42 -0
- package/dist/ui/dropdown-menu.js.map +1 -0
- package/dist/ui/empty.d.ts +13 -0
- package/dist/ui/empty.d.ts.map +1 -0
- package/dist/ui/empty.js +34 -0
- package/dist/ui/empty.js.map +1 -0
- package/dist/ui/filter-trigger.d.ts +9 -0
- package/dist/ui/filter-trigger.d.ts.map +1 -0
- package/dist/ui/filter-trigger.js +6 -0
- package/dist/ui/filter-trigger.js.map +1 -0
- package/dist/ui/form.d.ts +26 -0
- package/dist/ui/form.d.ts.map +1 -0
- package/dist/ui/form.js +63 -0
- package/dist/ui/form.js.map +1 -0
- package/dist/ui/hover-card.d.ts +7 -0
- package/dist/ui/hover-card.d.ts.map +1 -0
- package/dist/ui/hover-card.js +10 -0
- package/dist/ui/hover-card.js.map +1 -0
- package/dist/ui/index.d.ts +60 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +60 -0
- package/dist/ui/index.js.map +1 -0
- package/dist/ui/input-group.d.ts +21 -0
- package/dist/ui/input-group.d.ts.map +1 -0
- package/dist/ui/input-group.js +59 -0
- package/dist/ui/input-group.js.map +1 -0
- package/dist/ui/input-otp.d.ts +37 -0
- package/dist/ui/input-otp.d.ts.map +1 -0
- package/dist/ui/input-otp.js +19 -0
- package/dist/ui/input-otp.js.map +1 -0
- package/dist/ui/input.d.ts +7 -0
- package/dist/ui/input.d.ts.map +1 -0
- package/dist/ui/input.js +9 -0
- package/dist/ui/input.js.map +1 -0
- package/dist/ui/item.d.ts +24 -0
- package/dist/ui/item.d.ts.map +1 -0
- package/dist/ui/item.js +67 -0
- package/dist/ui/item.js.map +1 -0
- package/dist/ui/kbd.d.ts +5 -0
- package/dist/ui/kbd.d.ts.map +1 -0
- package/dist/ui/kbd.js +10 -0
- package/dist/ui/kbd.js.map +1 -0
- package/dist/ui/label.d.ts +6 -0
- package/dist/ui/label.d.ts.map +1 -0
- package/dist/ui/label.js +10 -0
- package/dist/ui/label.js.map +1 -0
- package/dist/ui/logo.d.ts +7 -0
- package/dist/ui/logo.d.ts.map +1 -0
- package/dist/ui/logo.js +9 -0
- package/dist/ui/logo.js.map +1 -0
- package/dist/ui/menubar.d.ts +29 -0
- package/dist/ui/menubar.d.ts.map +1 -0
- package/dist/ui/menubar.js +36 -0
- package/dist/ui/menubar.js.map +1 -0
- package/dist/ui/navigation-menu.d.ts +13 -0
- package/dist/ui/navigation-menu.d.ts.map +1 -0
- package/dist/ui/navigation-menu.js +25 -0
- package/dist/ui/navigation-menu.js.map +1 -0
- package/dist/ui/pagination.d.ts +29 -0
- package/dist/ui/pagination.d.ts.map +1 -0
- package/dist/ui/pagination.js +24 -0
- package/dist/ui/pagination.js.map +1 -0
- package/dist/ui/pointer-lock.d.ts +2 -0
- package/dist/ui/pointer-lock.d.ts.map +1 -0
- package/dist/ui/pointer-lock.js +11 -0
- package/dist/ui/pointer-lock.js.map +1 -0
- package/dist/ui/popover.d.ts +11 -0
- package/dist/ui/popover.d.ts.map +1 -0
- package/dist/ui/popover.js +16 -0
- package/dist/ui/popover.js.map +1 -0
- package/dist/ui/progress.d.ts +5 -0
- package/dist/ui/progress.d.ts.map +1 -0
- package/dist/ui/progress.js +16 -0
- package/dist/ui/progress.js.map +1 -0
- package/dist/ui/radio-group.d.ts +6 -0
- package/dist/ui/radio-group.d.ts.map +1 -0
- package/dist/ui/radio-group.js +15 -0
- package/dist/ui/radio-group.js.map +1 -0
- package/dist/ui/resizable.d.ts +10 -0
- package/dist/ui/resizable.d.ts.map +1 -0
- package/dist/ui/resizable.js +9 -0
- package/dist/ui/resizable.js.map +1 -0
- package/dist/ui/scroll-area.d.ts +6 -0
- package/dist/ui/scroll-area.d.ts.map +1 -0
- package/dist/ui/scroll-area.js +12 -0
- package/dist/ui/scroll-area.js.map +1 -0
- package/dist/ui/select.d.ts +18 -0
- package/dist/ui/select.d.ts.map +1 -0
- package/dist/ui/select.js +27 -0
- package/dist/ui/select.js.map +1 -0
- package/dist/ui/separator.d.ts +5 -0
- package/dist/ui/separator.d.ts.map +1 -0
- package/dist/ui/separator.js +8 -0
- package/dist/ui/separator.js.map +1 -0
- package/dist/ui/sheet.d.ts +29 -0
- package/dist/ui/sheet.d.ts.map +1 -0
- package/dist/ui/sheet.js +37 -0
- package/dist/ui/sheet.js.map +1 -0
- package/dist/ui/sidebar.d.ts +73 -0
- package/dist/ui/sidebar.d.ts.map +1 -0
- package/dist/ui/sidebar.js +216 -0
- package/dist/ui/sidebar.js.map +1 -0
- package/dist/ui/skeleton.d.ts +3 -0
- package/dist/ui/skeleton.d.ts.map +1 -0
- package/dist/ui/skeleton.js +7 -0
- package/dist/ui/skeleton.js.map +1 -0
- package/dist/ui/slider.d.ts +5 -0
- package/dist/ui/slider.d.ts.map +1 -0
- package/dist/ui/slider.js +16 -0
- package/dist/ui/slider.js.map +1 -0
- package/dist/ui/sonner.d.ts +5 -0
- package/dist/ui/sonner.d.ts.map +1 -0
- package/dist/ui/sonner.js +25 -0
- package/dist/ui/sonner.js.map +1 -0
- package/dist/ui/spinner.d.ts +3 -0
- package/dist/ui/spinner.d.ts.map +1 -0
- package/dist/ui/spinner.js +6 -0
- package/dist/ui/spinner.js.map +1 -0
- package/dist/ui/switch.d.ts +7 -0
- package/dist/ui/switch.d.ts.map +1 -0
- package/dist/ui/switch.js +8 -0
- package/dist/ui/switch.js.map +1 -0
- package/dist/ui/table.d.ts +11 -0
- package/dist/ui/table.d.ts.map +1 -0
- package/dist/ui/table.js +21 -0
- package/dist/ui/table.js.map +1 -0
- package/dist/ui/tabs.d.ts +8 -0
- package/dist/ui/tabs.d.ts.map +1 -0
- package/dist/ui/tabs.js +13 -0
- package/dist/ui/tabs.js.map +1 -0
- package/dist/ui/textarea.d.ts +6 -0
- package/dist/ui/textarea.d.ts.map +1 -0
- package/dist/ui/textarea.js +9 -0
- package/dist/ui/textarea.js.map +1 -0
- package/dist/ui/toast.d.ts +16 -0
- package/dist/ui/toast.d.ts.map +1 -0
- package/dist/ui/toast.js +34 -0
- package/dist/ui/toast.js.map +1 -0
- package/dist/ui/toaster.d.ts +2 -0
- package/dist/ui/toaster.d.ts.map +1 -0
- package/dist/ui/toaster.js +10 -0
- package/dist/ui/toaster.js.map +1 -0
- package/dist/ui/toggle-group.d.ts +13 -0
- package/dist/ui/toggle-group.d.ts.map +1 -0
- package/dist/ui/toggle-group.js +21 -0
- package/dist/ui/toggle-group.js.map +1 -0
- package/dist/ui/toggle.d.ts +13 -0
- package/dist/ui/toggle.d.ts.map +1 -0
- package/dist/ui/toggle.js +26 -0
- package/dist/ui/toggle.js.map +1 -0
- package/dist/ui/tooltip.d.ts +11 -0
- package/dist/ui/tooltip.d.ts.map +1 -0
- package/dist/ui/tooltip.js +18 -0
- package/dist/ui/tooltip.js.map +1 -0
- package/dist/ui/use-toast.d.ts +3 -0
- package/dist/ui/use-toast.d.ts.map +1 -0
- package/dist/ui/use-toast.js +3 -0
- package/dist/ui/use-toast.js.map +1 -0
- package/dist/utils.d.ts +4 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +7 -0
- package/dist/utils.js.map +1 -0
- package/package.json +183 -13
- package/skills/ux-flow/SKILL.md +6 -3
- package/dist/fonts/OFL.txt +0 -93
- package/dist/fonts/inter-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/inter-latin-wght-normal.woff2 +0 -0
- package/dist/forms.d.ts +0 -70
- package/dist/forms.js +0 -56
- package/dist/forms.js.map +0 -1
- package/dist/link.js.map +0 -1
- package/dist/page.js.map +0 -1
- package/dist/parts.js.map +0 -1
- package/dist/shell.js.map +0 -1
- package/dist/ui.d.ts +0 -26
- package/dist/ui.js +0 -37
- package/dist/ui.js.map +0 -1
|
@@ -0,0 +1,643 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
// The emoji picker panel and comment reactions from the agent-native Content app
|
|
3
|
+
// (app/components/editor/EmojiPicker.tsx and CommentReactions.tsx, MIT, Copyright (c) 2026
|
|
4
|
+
// Builder.io, Inc.). Same names and props; the app's translations are English strings here, and the
|
|
5
|
+
// popover is the toolkit's ported Popover.
|
|
6
|
+
import { IconMoodSmile } from "@tabler/icons-react";
|
|
7
|
+
import { forwardRef, useEffect, useMemo, useRef, useState } from "react";
|
|
8
|
+
import { Popover, PopoverContent, PopoverTrigger } from "../ui/popover.js";
|
|
9
|
+
import { cn } from "../utils.js";
|
|
10
|
+
export const EMOJI_CATEGORIES = [
|
|
11
|
+
{
|
|
12
|
+
name: "Smileys",
|
|
13
|
+
emojis: [
|
|
14
|
+
"😀",
|
|
15
|
+
"😃",
|
|
16
|
+
"😄",
|
|
17
|
+
"😁",
|
|
18
|
+
"😆",
|
|
19
|
+
"😅",
|
|
20
|
+
"🤣",
|
|
21
|
+
"😂",
|
|
22
|
+
"🙂",
|
|
23
|
+
"😊",
|
|
24
|
+
"😇",
|
|
25
|
+
"🥰",
|
|
26
|
+
"😍",
|
|
27
|
+
"🤩",
|
|
28
|
+
"😘",
|
|
29
|
+
"😋",
|
|
30
|
+
"😛",
|
|
31
|
+
"🤔",
|
|
32
|
+
"🤗",
|
|
33
|
+
"🤫",
|
|
34
|
+
"😎",
|
|
35
|
+
"🥳",
|
|
36
|
+
"😤",
|
|
37
|
+
"😱",
|
|
38
|
+
"🥺",
|
|
39
|
+
"😈",
|
|
40
|
+
"💀",
|
|
41
|
+
"👻",
|
|
42
|
+
"👽",
|
|
43
|
+
"🤖",
|
|
44
|
+
"💩",
|
|
45
|
+
"🎃",
|
|
46
|
+
],
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: "People",
|
|
50
|
+
emojis: [
|
|
51
|
+
"👋",
|
|
52
|
+
"🤚",
|
|
53
|
+
"✋",
|
|
54
|
+
"🖖",
|
|
55
|
+
"🫱",
|
|
56
|
+
"🫲",
|
|
57
|
+
"👌",
|
|
58
|
+
"🤌",
|
|
59
|
+
"✌️",
|
|
60
|
+
"🤞",
|
|
61
|
+
"🫰",
|
|
62
|
+
"🤙",
|
|
63
|
+
"👈",
|
|
64
|
+
"👉",
|
|
65
|
+
"👆",
|
|
66
|
+
"👇",
|
|
67
|
+
"☝️",
|
|
68
|
+
"👍",
|
|
69
|
+
"👎",
|
|
70
|
+
"✊",
|
|
71
|
+
"👊",
|
|
72
|
+
"🤛",
|
|
73
|
+
"🤜",
|
|
74
|
+
"👏",
|
|
75
|
+
"🙌",
|
|
76
|
+
"🫶",
|
|
77
|
+
"👐",
|
|
78
|
+
"🤝",
|
|
79
|
+
"🙏",
|
|
80
|
+
"💪",
|
|
81
|
+
"🧠",
|
|
82
|
+
"👀",
|
|
83
|
+
],
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
name: "Nature",
|
|
87
|
+
emojis: [
|
|
88
|
+
"🐶",
|
|
89
|
+
"🐱",
|
|
90
|
+
"🐭",
|
|
91
|
+
"🐹",
|
|
92
|
+
"🐰",
|
|
93
|
+
"🦊",
|
|
94
|
+
"🐻",
|
|
95
|
+
"🐼",
|
|
96
|
+
"🐨",
|
|
97
|
+
"🐯",
|
|
98
|
+
"🦁",
|
|
99
|
+
"🐸",
|
|
100
|
+
"🐵",
|
|
101
|
+
"🐔",
|
|
102
|
+
"🐧",
|
|
103
|
+
"🐦",
|
|
104
|
+
"🦄",
|
|
105
|
+
"🐝",
|
|
106
|
+
"🦋",
|
|
107
|
+
"🐌",
|
|
108
|
+
"🌸",
|
|
109
|
+
"🌺",
|
|
110
|
+
"🌻",
|
|
111
|
+
"🌹",
|
|
112
|
+
"🌿",
|
|
113
|
+
"🍀",
|
|
114
|
+
"🌴",
|
|
115
|
+
"🌲",
|
|
116
|
+
"🌊",
|
|
117
|
+
"🔥",
|
|
118
|
+
"⭐",
|
|
119
|
+
"🌈",
|
|
120
|
+
],
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
name: "Food",
|
|
124
|
+
emojis: [
|
|
125
|
+
"🍎",
|
|
126
|
+
"🍊",
|
|
127
|
+
"🍋",
|
|
128
|
+
"🍌",
|
|
129
|
+
"🍉",
|
|
130
|
+
"🍇",
|
|
131
|
+
"🍓",
|
|
132
|
+
"🫐",
|
|
133
|
+
"🍒",
|
|
134
|
+
"🥝",
|
|
135
|
+
"🍑",
|
|
136
|
+
"🥭",
|
|
137
|
+
"🍔",
|
|
138
|
+
"🍕",
|
|
139
|
+
"🌮",
|
|
140
|
+
"🍣",
|
|
141
|
+
"🍩",
|
|
142
|
+
"🍪",
|
|
143
|
+
"🎂",
|
|
144
|
+
"🍰",
|
|
145
|
+
"☕",
|
|
146
|
+
"🍵",
|
|
147
|
+
"🧃",
|
|
148
|
+
"🍷",
|
|
149
|
+
"🍺",
|
|
150
|
+
"🥤",
|
|
151
|
+
"🧊",
|
|
152
|
+
"🍫",
|
|
153
|
+
"🍿",
|
|
154
|
+
"🥐",
|
|
155
|
+
"🥗",
|
|
156
|
+
"🍜",
|
|
157
|
+
],
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
name: "Activities",
|
|
161
|
+
emojis: [
|
|
162
|
+
"⚽",
|
|
163
|
+
"🏀",
|
|
164
|
+
"🏈",
|
|
165
|
+
"⚾",
|
|
166
|
+
"🎾",
|
|
167
|
+
"🏐",
|
|
168
|
+
"🎱",
|
|
169
|
+
"🏓",
|
|
170
|
+
"🎯",
|
|
171
|
+
"🎮",
|
|
172
|
+
"🕹️",
|
|
173
|
+
"🎲",
|
|
174
|
+
"🧩",
|
|
175
|
+
"🎭",
|
|
176
|
+
"🎨",
|
|
177
|
+
"🎬",
|
|
178
|
+
"🎤",
|
|
179
|
+
"🎧",
|
|
180
|
+
"🎵",
|
|
181
|
+
"🎹",
|
|
182
|
+
"🎸",
|
|
183
|
+
"🥁",
|
|
184
|
+
"🏆",
|
|
185
|
+
"🥇",
|
|
186
|
+
"🏅",
|
|
187
|
+
"🎖️",
|
|
188
|
+
"🏋️",
|
|
189
|
+
"🚴",
|
|
190
|
+
"🧘",
|
|
191
|
+
"🎪",
|
|
192
|
+
"🎡",
|
|
193
|
+
"🎢",
|
|
194
|
+
],
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
name: "Travel",
|
|
198
|
+
emojis: [
|
|
199
|
+
"🚗",
|
|
200
|
+
"🚕",
|
|
201
|
+
"🚌",
|
|
202
|
+
"🚎",
|
|
203
|
+
"🏎️",
|
|
204
|
+
"🚓",
|
|
205
|
+
"🚑",
|
|
206
|
+
"🚒",
|
|
207
|
+
"✈️",
|
|
208
|
+
"🚀",
|
|
209
|
+
"🛸",
|
|
210
|
+
"🚁",
|
|
211
|
+
"⛵",
|
|
212
|
+
"🚢",
|
|
213
|
+
"🏠",
|
|
214
|
+
"🏢",
|
|
215
|
+
"🏗️",
|
|
216
|
+
"🏰",
|
|
217
|
+
"🗽",
|
|
218
|
+
"🗼",
|
|
219
|
+
"⛩️",
|
|
220
|
+
"🕌",
|
|
221
|
+
"🌍",
|
|
222
|
+
"🌎",
|
|
223
|
+
"🌏",
|
|
224
|
+
"🗺️",
|
|
225
|
+
"🏔️",
|
|
226
|
+
"🏝️",
|
|
227
|
+
"🏖️",
|
|
228
|
+
"🌅",
|
|
229
|
+
"🌄",
|
|
230
|
+
"🌉",
|
|
231
|
+
],
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
name: "Objects",
|
|
235
|
+
emojis: [
|
|
236
|
+
"💡",
|
|
237
|
+
"🔦",
|
|
238
|
+
"🕯️",
|
|
239
|
+
"📱",
|
|
240
|
+
"💻",
|
|
241
|
+
"⌨️",
|
|
242
|
+
"🖥️",
|
|
243
|
+
"🖨️",
|
|
244
|
+
"📷",
|
|
245
|
+
"🎥",
|
|
246
|
+
"📺",
|
|
247
|
+
"📻",
|
|
248
|
+
"⏰",
|
|
249
|
+
"🔔",
|
|
250
|
+
"📣",
|
|
251
|
+
"📢",
|
|
252
|
+
"💎",
|
|
253
|
+
"🔑",
|
|
254
|
+
"🗝️",
|
|
255
|
+
"🔒",
|
|
256
|
+
"🔓",
|
|
257
|
+
"📦",
|
|
258
|
+
"📫",
|
|
259
|
+
"✏️",
|
|
260
|
+
"📝",
|
|
261
|
+
"📚",
|
|
262
|
+
"📖",
|
|
263
|
+
"🔗",
|
|
264
|
+
"📎",
|
|
265
|
+
"✂️",
|
|
266
|
+
"🗑️",
|
|
267
|
+
"🧰",
|
|
268
|
+
],
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
name: "Symbols",
|
|
272
|
+
emojis: [
|
|
273
|
+
"❤️",
|
|
274
|
+
"🧡",
|
|
275
|
+
"💛",
|
|
276
|
+
"💚",
|
|
277
|
+
"💙",
|
|
278
|
+
"💜",
|
|
279
|
+
"🖤",
|
|
280
|
+
"🤍",
|
|
281
|
+
"💔",
|
|
282
|
+
"❣️",
|
|
283
|
+
"💕",
|
|
284
|
+
"💞",
|
|
285
|
+
"💓",
|
|
286
|
+
"💗",
|
|
287
|
+
"💖",
|
|
288
|
+
"💘",
|
|
289
|
+
"💝",
|
|
290
|
+
"✅",
|
|
291
|
+
"❌",
|
|
292
|
+
"⭕",
|
|
293
|
+
"❗",
|
|
294
|
+
"❓",
|
|
295
|
+
"💯",
|
|
296
|
+
"🔴",
|
|
297
|
+
"🟠",
|
|
298
|
+
"🟡",
|
|
299
|
+
"🟢",
|
|
300
|
+
"🔵",
|
|
301
|
+
"🟣",
|
|
302
|
+
"⚫",
|
|
303
|
+
"⚪",
|
|
304
|
+
"🏁",
|
|
305
|
+
],
|
|
306
|
+
},
|
|
307
|
+
];
|
|
308
|
+
const EMOJI_SEARCH_ALIASES = {
|
|
309
|
+
"😀": ["grinning", "grin", "smile", "happy"],
|
|
310
|
+
"😃": ["smiley", "smile", "happy"],
|
|
311
|
+
"😄": ["smile", "laugh", "happy"],
|
|
312
|
+
"😁": ["beaming", "grin", "smile"],
|
|
313
|
+
"😆": ["laugh", "squinting", "happy"],
|
|
314
|
+
"😅": ["sweat smile", "relief", "nervous"],
|
|
315
|
+
"🤣": ["rolling on the floor laughing", "rofl", "lol"],
|
|
316
|
+
"😂": ["joy", "tears", "laugh", "lol"],
|
|
317
|
+
"🙂": ["slightly smiling", "smile"],
|
|
318
|
+
"😊": ["blush", "smile", "happy"],
|
|
319
|
+
"😇": ["angel", "innocent", "halo"],
|
|
320
|
+
"🥰": ["hearts", "love", "adore"],
|
|
321
|
+
"😍": ["heart eyes", "love"],
|
|
322
|
+
"🤩": ["star eyes", "excited"],
|
|
323
|
+
"😘": ["kiss", "love"],
|
|
324
|
+
"😋": ["yum", "delicious", "tasty"],
|
|
325
|
+
"😛": ["tongue", "silly"],
|
|
326
|
+
"🤔": ["thinking", "think", "hmm"],
|
|
327
|
+
"🤗": ["hug", "hugs"],
|
|
328
|
+
"🤫": ["shush", "quiet", "secret"],
|
|
329
|
+
"😎": ["sunglasses", "cool"],
|
|
330
|
+
"🥳": ["party", "celebrate", "birthday"],
|
|
331
|
+
"😤": ["triumph", "frustrated"],
|
|
332
|
+
"😱": ["scream", "shocked", "scared"],
|
|
333
|
+
"🥺": ["pleading", "puppy eyes"],
|
|
334
|
+
"😈": ["devil", "mischief"],
|
|
335
|
+
"💀": ["skull", "dead"],
|
|
336
|
+
"👻": ["ghost"],
|
|
337
|
+
"👽": ["alien"],
|
|
338
|
+
"🤖": ["robot", "bot"],
|
|
339
|
+
"💩": ["poop", "pile of poo"],
|
|
340
|
+
"🎃": ["pumpkin", "jack o lantern", "halloween"],
|
|
341
|
+
"👋": ["wave", "hello", "hi"],
|
|
342
|
+
"🤚": ["raised back hand", "hand"],
|
|
343
|
+
"✋": ["raised hand", "high five", "stop"],
|
|
344
|
+
"🖖": ["vulcan", "spock"],
|
|
345
|
+
"🫱": ["rightwards hand", "right hand"],
|
|
346
|
+
"🫲": ["leftwards hand", "left hand"],
|
|
347
|
+
"👌": ["ok", "okay", "perfect"],
|
|
348
|
+
"🤌": ["pinched fingers", "chef kiss"],
|
|
349
|
+
"✌️": ["victory", "peace"],
|
|
350
|
+
"🤞": ["crossed fingers", "luck"],
|
|
351
|
+
"🫰": ["finger heart", "love"],
|
|
352
|
+
"🤙": ["call me", "shaka"],
|
|
353
|
+
"👈": ["point left", "back"],
|
|
354
|
+
"👉": ["point right", "next"],
|
|
355
|
+
"👆": ["point up", "up"],
|
|
356
|
+
"👇": ["point down", "down"],
|
|
357
|
+
"☝️": ["index up", "one"],
|
|
358
|
+
"👍": ["thumbs up", "thumb up", "thumbsup", "+1", "like", "yes", "approve"],
|
|
359
|
+
"👎": ["thumbs down", "thumb down", "thumbsdown", "-1", "dislike", "no"],
|
|
360
|
+
"✊": ["raised fist", "fist", "solidarity"],
|
|
361
|
+
"👊": ["fist bump", "punch"],
|
|
362
|
+
"🤛": ["left fist", "fist bump"],
|
|
363
|
+
"🤜": ["right fist", "fist bump"],
|
|
364
|
+
"👏": ["clap", "applause", "bravo"],
|
|
365
|
+
"🙌": ["raised hands", "celebrate", "praise"],
|
|
366
|
+
"🫶": ["heart hands", "love"],
|
|
367
|
+
"👐": ["open hands"],
|
|
368
|
+
"🤝": ["handshake", "deal", "agreement"],
|
|
369
|
+
"🙏": ["pray", "please", "thanks", "thank you"],
|
|
370
|
+
"💪": ["muscle", "strong", "flex"],
|
|
371
|
+
"🧠": ["brain", "smart"],
|
|
372
|
+
"👀": ["eyes", "look", "watch"],
|
|
373
|
+
"🐶": ["dog", "puppy"],
|
|
374
|
+
"🐱": ["cat", "kitten"],
|
|
375
|
+
"🐭": ["mouse"],
|
|
376
|
+
"🐹": ["hamster"],
|
|
377
|
+
"🐰": ["rabbit", "bunny"],
|
|
378
|
+
"🦊": ["fox"],
|
|
379
|
+
"🐻": ["bear"],
|
|
380
|
+
"🐼": ["panda"],
|
|
381
|
+
"🐨": ["koala"],
|
|
382
|
+
"🐯": ["tiger"],
|
|
383
|
+
"🦁": ["lion"],
|
|
384
|
+
"🐸": ["frog"],
|
|
385
|
+
"🐵": ["monkey"],
|
|
386
|
+
"🐔": ["chicken", "hen"],
|
|
387
|
+
"🐧": ["penguin"],
|
|
388
|
+
"🐦": ["bird"],
|
|
389
|
+
"🦄": ["unicorn"],
|
|
390
|
+
"🐝": ["bee", "honeybee"],
|
|
391
|
+
"🦋": ["butterfly"],
|
|
392
|
+
"🐌": ["snail"],
|
|
393
|
+
"🌸": ["cherry blossom", "flower", "spring"],
|
|
394
|
+
"🌺": ["hibiscus", "flower"],
|
|
395
|
+
"🌻": ["sunflower", "flower"],
|
|
396
|
+
"🌹": ["rose", "flower"],
|
|
397
|
+
"🌿": ["herb", "leaf", "plant"],
|
|
398
|
+
"🍀": ["clover", "luck"],
|
|
399
|
+
"🌴": ["palm tree", "tree", "tropical"],
|
|
400
|
+
"🌲": ["evergreen", "tree"],
|
|
401
|
+
"🌊": ["wave", "ocean", "water"],
|
|
402
|
+
"🔥": ["fire", "flame", "hot"],
|
|
403
|
+
"⭐": ["star", "favorite"],
|
|
404
|
+
"🌈": ["rainbow"],
|
|
405
|
+
"🍎": ["apple", "fruit"],
|
|
406
|
+
"🍊": ["orange", "fruit"],
|
|
407
|
+
"🍋": ["lemon", "fruit"],
|
|
408
|
+
"🍌": ["banana", "fruit"],
|
|
409
|
+
"🍉": ["watermelon", "fruit"],
|
|
410
|
+
"🍇": ["grapes", "fruit"],
|
|
411
|
+
"🍓": ["strawberry", "fruit"],
|
|
412
|
+
"🫐": ["blueberries", "blueberry", "fruit"],
|
|
413
|
+
"🍒": ["cherries", "cherry", "fruit"],
|
|
414
|
+
"🥝": ["kiwi", "fruit"],
|
|
415
|
+
"🍑": ["peach", "fruit"],
|
|
416
|
+
"🥭": ["mango", "fruit"],
|
|
417
|
+
"🍔": ["burger", "hamburger"],
|
|
418
|
+
"🍕": ["pizza"],
|
|
419
|
+
"🌮": ["taco"],
|
|
420
|
+
"🍣": ["sushi"],
|
|
421
|
+
"🍩": ["donut", "doughnut"],
|
|
422
|
+
"🍪": ["cookie"],
|
|
423
|
+
"🎂": ["cake", "birthday"],
|
|
424
|
+
"🍰": ["shortcake", "cake", "dessert"],
|
|
425
|
+
"☕": ["coffee", "tea", "hot drink"],
|
|
426
|
+
"🍵": ["tea", "green tea"],
|
|
427
|
+
"🧃": ["juice", "box"],
|
|
428
|
+
"🍷": ["wine"],
|
|
429
|
+
"🍺": ["beer"],
|
|
430
|
+
"🥤": ["cup", "soda", "drink"],
|
|
431
|
+
"🧊": ["ice", "cold"],
|
|
432
|
+
"🍫": ["chocolate"],
|
|
433
|
+
"🍿": ["popcorn"],
|
|
434
|
+
"🥐": ["croissant", "bread"],
|
|
435
|
+
"🥗": ["salad"],
|
|
436
|
+
"🍜": ["ramen", "noodles"],
|
|
437
|
+
"⚽": ["soccer", "football", "ball"],
|
|
438
|
+
"🏀": ["basketball", "ball"],
|
|
439
|
+
"🏈": ["american football", "football"],
|
|
440
|
+
"⚾": ["baseball"],
|
|
441
|
+
"🎾": ["tennis"],
|
|
442
|
+
"🏐": ["volleyball"],
|
|
443
|
+
"🎱": ["pool", "8 ball", "billiards"],
|
|
444
|
+
"🏓": ["ping pong", "table tennis"],
|
|
445
|
+
"🎯": ["target", "dart", "bullseye"],
|
|
446
|
+
"🎮": ["video game", "controller", "gaming"],
|
|
447
|
+
"🕹️": ["joystick", "arcade", "game"],
|
|
448
|
+
"🎲": ["dice", "die", "random"],
|
|
449
|
+
"🧩": ["puzzle", "jigsaw"],
|
|
450
|
+
"🎭": ["theater", "mask", "drama"],
|
|
451
|
+
"🎨": ["art", "palette", "paint"],
|
|
452
|
+
"🎬": ["movie", "film", "clapper"],
|
|
453
|
+
"🎤": ["microphone", "mic", "sing"],
|
|
454
|
+
"🎧": ["headphones", "music", "audio"],
|
|
455
|
+
"🎵": ["music", "note"],
|
|
456
|
+
"🎹": ["piano", "keyboard", "music"],
|
|
457
|
+
"🎸": ["guitar", "music"],
|
|
458
|
+
"🥁": ["drum", "music"],
|
|
459
|
+
"🏆": ["trophy", "winner"],
|
|
460
|
+
"🥇": ["gold medal", "first place"],
|
|
461
|
+
"🏅": ["medal"],
|
|
462
|
+
"🎖️": ["military medal", "award"],
|
|
463
|
+
"🏋️": ["weightlifting", "lifting", "gym"],
|
|
464
|
+
"🚴": ["biking", "cycling", "bike"],
|
|
465
|
+
"🧘": ["yoga", "meditation"],
|
|
466
|
+
"🎪": ["circus", "tent"],
|
|
467
|
+
"🎡": ["ferris wheel"],
|
|
468
|
+
"🎢": ["roller coaster"],
|
|
469
|
+
"🚗": ["car", "auto"],
|
|
470
|
+
"🚕": ["taxi", "cab"],
|
|
471
|
+
"🚌": ["bus"],
|
|
472
|
+
"🚎": ["trolleybus"],
|
|
473
|
+
"🏎️": ["race car", "racing"],
|
|
474
|
+
"🚓": ["police car"],
|
|
475
|
+
"🚑": ["ambulance"],
|
|
476
|
+
"🚒": ["fire truck"],
|
|
477
|
+
"✈️": ["airplane", "plane", "flight"],
|
|
478
|
+
"🚀": ["rocket", "launch", "ship"],
|
|
479
|
+
"🛸": ["ufo", "flying saucer"],
|
|
480
|
+
"🚁": ["helicopter"],
|
|
481
|
+
"⛵": ["sailboat", "boat"],
|
|
482
|
+
"🚢": ["ship", "boat"],
|
|
483
|
+
"🏠": ["house", "home"],
|
|
484
|
+
"🏢": ["office", "building"],
|
|
485
|
+
"🏗️": ["construction", "crane"],
|
|
486
|
+
"🏰": ["castle"],
|
|
487
|
+
"🗽": ["statue of liberty", "liberty"],
|
|
488
|
+
"🗼": ["tower", "tokyo tower"],
|
|
489
|
+
"⛩️": ["shrine", "torii"],
|
|
490
|
+
"🕌": ["mosque"],
|
|
491
|
+
"🌍": ["earth", "globe", "world", "europe africa"],
|
|
492
|
+
"🌎": ["earth", "globe", "world", "americas"],
|
|
493
|
+
"🌏": ["earth", "globe", "world", "asia australia"],
|
|
494
|
+
"🗺️": ["map", "world map"],
|
|
495
|
+
"🏔️": ["mountain", "snow"],
|
|
496
|
+
"🏝️": ["island", "beach"],
|
|
497
|
+
"🏖️": ["beach", "umbrella"],
|
|
498
|
+
"🌅": ["sunrise"],
|
|
499
|
+
"🌄": ["sunrise over mountains", "mountains"],
|
|
500
|
+
"🌉": ["bridge", "night"],
|
|
501
|
+
"💡": ["light bulb", "lightbulb", "idea", "hint"],
|
|
502
|
+
"🔦": ["flashlight", "torch"],
|
|
503
|
+
"🕯️": ["candle"],
|
|
504
|
+
"📱": ["phone", "mobile", "iphone"],
|
|
505
|
+
"💻": ["laptop", "computer"],
|
|
506
|
+
"⌨️": ["keyboard"],
|
|
507
|
+
"🖥️": ["desktop", "monitor", "computer"],
|
|
508
|
+
"🖨️": ["printer"],
|
|
509
|
+
"📷": ["camera", "photo"],
|
|
510
|
+
"🎥": ["video camera", "movie"],
|
|
511
|
+
"📺": ["tv", "television"],
|
|
512
|
+
"📻": ["radio"],
|
|
513
|
+
"⏰": ["alarm clock", "clock", "time"],
|
|
514
|
+
"🔔": ["bell", "notification"],
|
|
515
|
+
"📣": ["megaphone", "announcement"],
|
|
516
|
+
"📢": ["loudspeaker", "announcement"],
|
|
517
|
+
"💎": ["diamond", "gem"],
|
|
518
|
+
"🔑": ["key"],
|
|
519
|
+
"🗝️": ["old key"],
|
|
520
|
+
"🔒": ["lock", "locked"],
|
|
521
|
+
"🔓": ["unlock", "unlocked"],
|
|
522
|
+
"📦": ["package", "box"],
|
|
523
|
+
"📫": ["mailbox", "mail"],
|
|
524
|
+
"✏️": ["pencil", "edit"],
|
|
525
|
+
"📝": ["memo", "note", "write"],
|
|
526
|
+
"📚": ["books", "library"],
|
|
527
|
+
"📖": ["book", "read"],
|
|
528
|
+
"🔗": ["link", "chain"],
|
|
529
|
+
"📎": ["paperclip", "attachment"],
|
|
530
|
+
"✂️": ["scissors", "cut"],
|
|
531
|
+
"🗑️": ["trash", "delete", "bin"],
|
|
532
|
+
"🧰": ["toolbox", "tools"],
|
|
533
|
+
"❤️": ["red heart", "heart", "love"],
|
|
534
|
+
"🧡": ["orange heart", "heart", "love"],
|
|
535
|
+
"💛": ["yellow heart", "heart", "love"],
|
|
536
|
+
"💚": ["green heart", "heart", "love"],
|
|
537
|
+
"💙": ["blue heart", "heart", "love"],
|
|
538
|
+
"💜": ["purple heart", "heart", "love"],
|
|
539
|
+
"🖤": ["black heart", "heart", "love"],
|
|
540
|
+
"🤍": ["white heart", "heart", "love"],
|
|
541
|
+
"💔": ["broken heart", "heartbreak"],
|
|
542
|
+
"❣️": ["heart exclamation"],
|
|
543
|
+
"💕": ["two hearts", "love"],
|
|
544
|
+
"💞": ["revolving hearts", "love"],
|
|
545
|
+
"💓": ["beating heart", "love"],
|
|
546
|
+
"💗": ["growing heart", "love"],
|
|
547
|
+
"💖": ["sparkling heart", "love"],
|
|
548
|
+
"💘": ["cupid", "heart", "love"],
|
|
549
|
+
"💝": ["gift heart", "heart"],
|
|
550
|
+
"✅": ["check", "checkmark", "done", "yes"],
|
|
551
|
+
"❌": ["x", "cross", "no", "cancel"],
|
|
552
|
+
"⭕": ["circle", "o"],
|
|
553
|
+
"❗": ["exclamation", "important"],
|
|
554
|
+
"❓": ["question", "help"],
|
|
555
|
+
"💯": ["hundred", "100", "perfect"],
|
|
556
|
+
"🔴": ["red circle"],
|
|
557
|
+
"🟠": ["orange circle"],
|
|
558
|
+
"🟡": ["yellow circle"],
|
|
559
|
+
"🟢": ["green circle"],
|
|
560
|
+
"🔵": ["blue circle"],
|
|
561
|
+
"🟣": ["purple circle"],
|
|
562
|
+
"⚫": ["black circle"],
|
|
563
|
+
"⚪": ["white circle"],
|
|
564
|
+
"🏁": ["checkered flag", "finish"],
|
|
565
|
+
};
|
|
566
|
+
const ALL_EMOJI_ENTRIES = EMOJI_CATEGORIES.flatMap((cat) => cat.emojis.map((emoji) => ({
|
|
567
|
+
emoji,
|
|
568
|
+
category: cat.name,
|
|
569
|
+
searchText: buildEmojiSearchText(emoji, cat.name),
|
|
570
|
+
})));
|
|
571
|
+
function normalizeEmojiSearchText(value) {
|
|
572
|
+
return value
|
|
573
|
+
.toLowerCase()
|
|
574
|
+
.normalize("NFKD")
|
|
575
|
+
.replace(/\ufe0f/g, "")
|
|
576
|
+
.replace(/[_-]+/g, " ")
|
|
577
|
+
.replace(/\s+/g, " ")
|
|
578
|
+
.trim();
|
|
579
|
+
}
|
|
580
|
+
function buildEmojiSearchText(emoji, category) {
|
|
581
|
+
const normalized = normalizeEmojiSearchText([emoji, category, ...(EMOJI_SEARCH_ALIASES[emoji] ?? [])].join(" "));
|
|
582
|
+
return `${normalized} ${normalized.replace(/\s+/g, "")}`;
|
|
583
|
+
}
|
|
584
|
+
export function filterEmojiCategories(search) {
|
|
585
|
+
const normalizedQuery = normalizeEmojiSearchText(search);
|
|
586
|
+
if (!normalizedQuery)
|
|
587
|
+
return EMOJI_CATEGORIES;
|
|
588
|
+
const compactQuery = normalizedQuery.replace(/\s+/g, "");
|
|
589
|
+
const queryParts = normalizedQuery.split(" ");
|
|
590
|
+
const matchingEmojis = ALL_EMOJI_ENTRIES.filter((entry) => {
|
|
591
|
+
return (entry.searchText.includes(normalizedQuery) ||
|
|
592
|
+
entry.searchText.includes(compactQuery) ||
|
|
593
|
+
queryParts.every((part) => entry.searchText.includes(part)));
|
|
594
|
+
});
|
|
595
|
+
if (matchingEmojis.length === 0)
|
|
596
|
+
return [];
|
|
597
|
+
const grouped = new Map();
|
|
598
|
+
for (const entry of matchingEmojis) {
|
|
599
|
+
if (!grouped.has(entry.category))
|
|
600
|
+
grouped.set(entry.category, []);
|
|
601
|
+
grouped.get(entry.category).push(entry.emoji);
|
|
602
|
+
}
|
|
603
|
+
return Array.from(grouped, ([name, emojis]) => ({ name, emojis }));
|
|
604
|
+
}
|
|
605
|
+
export function EmojiPickerPanel({ onSelect, autoFocus = true, }) {
|
|
606
|
+
const [search, setSearch] = useState("");
|
|
607
|
+
const searchRef = useRef(null);
|
|
608
|
+
useEffect(() => {
|
|
609
|
+
if (!autoFocus)
|
|
610
|
+
return;
|
|
611
|
+
setSearch("");
|
|
612
|
+
requestAnimationFrame(() => searchRef.current?.focus());
|
|
613
|
+
}, [autoFocus]);
|
|
614
|
+
const filteredCategories = useMemo(() => filterEmojiCategories(search), [search]);
|
|
615
|
+
return (_jsxs(_Fragment, { children: [_jsx("div", { className: "p-2 border-b", children: _jsx("input", { ref: searchRef, type: "text", value: search, onChange: (e) => setSearch(e.target.value), placeholder: "Search emoji...", className: "w-full px-2.5 py-1.5 text-sm bg-accent/50 rounded-md outline-none placeholder:text-muted-foreground/50" }) }), _jsx("div", { className: "max-h-64 overflow-auto p-2", children: filteredCategories.length === 0 ? (_jsx("div", { className: "text-sm text-muted-foreground text-center py-4", children: "No emojis found" })) : (filteredCategories.map((category) => (_jsxs("div", { className: "mb-2 last:mb-0", children: [_jsx("div", { className: "text-[11px] font-medium text-muted-foreground/60 uppercase tracking-wider px-0.5 mb-1", children: category.name }), _jsx("div", { className: "grid grid-cols-7 gap-0 sm:grid-cols-8", children: category.emojis.map((emoji) => (_jsx("button", { type: "button", onClick: () => onSelect(emoji), className: "w-9 h-9 flex items-center justify-center text-lg rounded hover:bg-accent cursor-pointer", children: emoji }, emoji))) })] }, category.name)))) })] }));
|
|
616
|
+
}
|
|
617
|
+
/** Round, quiet icon button used for every comment header action. */
|
|
618
|
+
export const CommentIconButton = forwardRef(function CommentIconButton({ className, type = "button", ...props }, ref) {
|
|
619
|
+
return (_jsx("button", { ref: ref, type: type, className: cn("inline-flex size-7 shrink-0 items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-accent hover:text-foreground disabled:pointer-events-none disabled:opacity-40", className), ...props }));
|
|
620
|
+
});
|
|
621
|
+
/** One-tap reactions shown first; the full picker sits beneath them. */
|
|
622
|
+
export const QUICK_REACTIONS = ["👍", "❤️", "🎉", "👀"];
|
|
623
|
+
/**
|
|
624
|
+
* Reaction chips under a comment or suggestion. The same chips back both
|
|
625
|
+
* kinds of thread so a reaction reads and toggles the same way everywhere.
|
|
626
|
+
*/
|
|
627
|
+
export function CommentReactionChips({ reactions, canReact, onToggle, }) {
|
|
628
|
+
if (!reactions.length)
|
|
629
|
+
return null;
|
|
630
|
+
return (_jsx("div", { className: "flex flex-wrap gap-1", "data-comment-reactions": true, onClick: (event) => event.stopPropagation(), children: reactions.map((entry) => (_jsxs("button", { type: "button", "aria-pressed": entry.reactedByMe, "aria-label": `${entry.reaction}: ${entry.count}`, disabled: !canReact, onClick: () => onToggle(entry.reaction, !entry.reactedByMe), className: cn("inline-flex h-6 items-center gap-1 rounded-md border px-1.5 text-xs text-muted-foreground transition-colors disabled:cursor-default", entry.reactedByMe
|
|
631
|
+
? "border-foreground/20 bg-accent text-foreground"
|
|
632
|
+
: "border-transparent bg-muted hover:bg-accent"), children: [_jsx("span", { "aria-hidden": true, children: entry.reaction }), entry.count > 1 ? (_jsx("span", { className: "tabular-nums", children: entry.count })) : null] }, entry.reaction))) }));
|
|
633
|
+
}
|
|
634
|
+
/** The 🙂 button: quick reactions first, then the searchable picker. */
|
|
635
|
+
export function AddReactionButton({ onSelect, className, }) {
|
|
636
|
+
const [open, setOpen] = useState(false);
|
|
637
|
+
const choose = (reaction) => {
|
|
638
|
+
setOpen(false);
|
|
639
|
+
onSelect(reaction);
|
|
640
|
+
};
|
|
641
|
+
return (_jsxs(Popover, { open: open, onOpenChange: setOpen, children: [_jsx(PopoverTrigger, { asChild: true, children: _jsx(CommentIconButton, { "aria-label": "Add reaction", className: className, "data-comment-add-reaction": true, onClick: (event) => event.stopPropagation(), children: _jsx(IconMoodSmile, { size: 18 }) }) }), _jsxs(PopoverContent, { align: "end", className: "w-80 p-0", onClick: (event) => event.stopPropagation(), children: [_jsx("div", { className: "flex gap-1 border-b border-border p-2", children: QUICK_REACTIONS.map((reaction) => (_jsx("button", { type: "button", "aria-label": reaction, onClick: () => choose(reaction), className: "flex size-9 items-center justify-center rounded-md text-lg hover:bg-accent", children: reaction }, reaction))) }), _jsx(EmojiPickerPanel, { autoFocus: open, onSelect: choose })] })] }));
|
|
642
|
+
}
|
|
643
|
+
//# sourceMappingURL=emoji.js.map
|