@nebutra/ui 2.0.0 → 3.0.0

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 (43) hide show
  1. package/dist/{canonical-Bf4czR2u.d.ts → canonical-DEhT4VfS.d.ts} +71 -120
  2. package/dist/card-DunB1gKE.d.ts +105 -0
  3. package/dist/components/index.d.ts +33 -4
  4. package/dist/components/index.js +225 -89
  5. package/dist/components/index.js.map +1 -1
  6. package/dist/editorial/index.d.ts +2 -2
  7. package/dist/editorial/index.js +75 -1
  8. package/dist/editorial/index.js.map +1 -1
  9. package/dist/empty-state-bmfHCOuN.d.ts +86 -0
  10. package/dist/hooks/index.d.ts +18 -1
  11. package/dist/hooks/index.js +120 -5
  12. package/dist/hooks/index.js.map +1 -1
  13. package/dist/index.d.ts +1 -1
  14. package/dist/layout/index.d.ts +17 -58
  15. package/dist/layout/index.js +366 -126
  16. package/dist/layout/index.js.map +1 -1
  17. package/dist/layouts/index.d.ts +1 -1
  18. package/dist/layouts/index.js +89 -15
  19. package/dist/layouts/index.js.map +1 -1
  20. package/dist/patterns/index.d.ts +38 -44
  21. package/dist/patterns/index.js +470 -278
  22. package/dist/patterns/index.js.map +1 -1
  23. package/dist/primitives/canonical.d.ts +3 -1
  24. package/dist/primitives/canonical.js +495 -231
  25. package/dist/primitives/canonical.js.map +1 -1
  26. package/dist/primitives/index.d.ts +90 -62
  27. package/dist/primitives/index.js +1129 -1185
  28. package/dist/primitives/index.js.map +1 -1
  29. package/dist/tailwind.preset.d.ts +32 -32
  30. package/dist/tailwind.preset.js +24 -20
  31. package/dist/tailwind.preset.js.map +1 -1
  32. package/dist/theme/index.d.ts +1 -110
  33. package/dist/typography/fonts.css +8 -16
  34. package/dist/typography/index.d.ts +29 -45
  35. package/dist/typography/index.js +26 -14
  36. package/dist/typography/index.js.map +1 -1
  37. package/dist/utils/index.d.ts +18 -12
  38. package/dist/utils/index.js +94 -18
  39. package/dist/utils/index.js.map +1 -1
  40. package/package.json +6 -10
  41. package/src/typography/fonts.css +8 -16
  42. package/dist/styles/brand-override.css +0 -61
  43. package/src/styles/brand-override.css +0 -61
@@ -22,10 +22,27 @@ type PromptAttachmentPreviewsProps = {
22
22
  };
23
23
  declare function PromptAttachmentPreviews({ files, filePreviews, isRecording, onPreview, onRemove, }: PromptAttachmentPreviewsProps): react_jsx_runtime.JSX.Element | null;
24
24
 
25
+ /** Every visible and accessible string the prompt box renders. */
26
+ interface PromptInputBoxLabels {
27
+ upload: string;
28
+ search: string;
29
+ think: string;
30
+ canvas: string;
31
+ searchPlaceholder: string;
32
+ thinkPlaceholder: string;
33
+ canvasPlaceholder: string;
34
+ stopGeneration: string;
35
+ stopRecording: string;
36
+ sendMessage: string;
37
+ voiceMessage: string;
38
+ }
39
+ declare const DEFAULT_PROMPT_INPUT_BOX_LABELS: PromptInputBoxLabels;
25
40
  interface PromptInputBoxProps {
26
41
  onSend?: (message: string, files?: File[]) => void;
27
42
  isLoading?: boolean;
28
43
  placeholder?: string;
44
+ /** Override any string the box renders — pass translations here. */
45
+ labels?: Partial<PromptInputBoxLabels>;
29
46
  className?: string;
30
47
  ref?: React__default.Ref<HTMLDivElement>;
31
48
  }
@@ -66,8 +83,10 @@ interface ChangelogWidgetProps {
66
83
  entries: ChangelogEntry[];
67
84
  changelogUrl?: string;
68
85
  className?: string;
86
+ /** Label for the changelog trigger button (a shared component cannot pick the product's language) */
87
+ triggerLabel?: string;
69
88
  }
70
- declare function ChangelogWidget({ entries, changelogUrl, className, }: ChangelogWidgetProps): react_jsx_runtime.JSX.Element;
89
+ declare function ChangelogWidget({ entries, changelogUrl, className, triggerLabel, }: ChangelogWidgetProps): react_jsx_runtime.JSX.Element;
71
90
 
72
91
  /**
73
92
  * Pure mapping layer between a neutral `@nebutra/graph-model` graph and the
@@ -200,6 +219,8 @@ interface OnboardingChecklistProps {
200
219
  videoThumbnailUrl: string;
201
220
  /** Embed URL for the video (YouTube, Vimeo, etc.) */
202
221
  videoUrl: string;
222
+ /** Accessible name of the video play button. Pass a translated string. */
223
+ playVideoLabel?: string;
203
224
  /** Additional CSS classes */
204
225
  className?: string;
205
226
  }
@@ -230,7 +251,7 @@ interface OnboardingChecklistProps {
230
251
  * />
231
252
  * ```
232
253
  */
233
- declare function OnboardingChecklist({ title, description, items, videoThumbnailUrl, videoUrl, className, }: OnboardingChecklistProps): react_jsx_runtime.JSX.Element;
254
+ declare function OnboardingChecklist({ title, description, items, videoThumbnailUrl, videoUrl, playVideoLabel, className, }: OnboardingChecklistProps): react_jsx_runtime.JSX.Element;
234
255
 
235
256
  interface ChatSender {
236
257
  /** Display name */
@@ -277,9 +298,17 @@ interface TeamChatProps {
277
298
  onReactionClick?: (messageId: string, emoji: string) => void;
278
299
  /** Callback when more options clicked */
279
300
  onMoreOptions?: () => void;
301
+ /** Accessible names for the icon buttons. Pass translated strings. */
302
+ labels?: Partial<TeamChatLabels>;
280
303
  /** Additional CSS classes */
281
304
  className?: string;
282
305
  }
306
+ interface TeamChatLabels {
307
+ moreOptions: string;
308
+ addEmoji: string;
309
+ sendMessage: string;
310
+ }
311
+ declare const DEFAULT_TEAM_CHAT_LABELS: TeamChatLabels;
283
312
  /**
284
313
  * TeamChat - Team messaging interface with participant sidebar
285
314
  *
@@ -305,6 +334,6 @@ interface TeamChatProps {
305
334
  * />
306
335
  * ```
307
336
  */
308
- declare function TeamChat({ chatName, tagline, messages, inputPlaceholder, onSendMessage, onReactionClick, onMoreOptions, className, }: TeamChatProps): react_jsx_runtime.JSX.Element;
337
+ declare function TeamChat({ chatName, tagline, messages, inputPlaceholder, onSendMessage, onReactionClick, onMoreOptions, labels: labelOverrides, className, }: TeamChatProps): react_jsx_runtime.JSX.Element;
309
338
 
310
- export { type AddEdgeResult, AsciiText, type ChangelogEntry, ChangelogWidget, type ChangelogWidgetProps, type ChatMessage, type ChatReaction, type ChatSender, type ChecklistItem, type EdgeIdentity, type FlowConnection, type FlowEdge, type FlowNode, GRAPH_NODE_FLOW_TYPE, ImageViewDialog, type ImageViewDialogProps, MAX_VISUALIZER_BARS, type MakeEdge, NodeGraphCanvas, type NodeGraphCanvasProps, type NodeView, OnboardingChecklist, type OnboardingChecklistProps, PromptAttachmentPreviews, type PromptAttachmentPreviewsProps, PromptInputBox, type PromptInputBoxProps, TeamChat, type TeamChatProps, VISUALIZER_BAR_STYLES, VoiceRecorder, type VoiceRecorderProps, applyNodePositions, formatRecordingTime, getFilePreviewKey, graphToFlow, isImageFile, preventDragDefaults, removeFlowEdge, removeNode, tryAddEdge };
339
+ export { type AddEdgeResult, AsciiText, type ChangelogEntry, ChangelogWidget, type ChangelogWidgetProps, type ChatMessage, type ChatReaction, type ChatSender, type ChecklistItem, DEFAULT_PROMPT_INPUT_BOX_LABELS, DEFAULT_TEAM_CHAT_LABELS, type EdgeIdentity, type FlowConnection, type FlowEdge, type FlowNode, GRAPH_NODE_FLOW_TYPE, ImageViewDialog, type ImageViewDialogProps, MAX_VISUALIZER_BARS, type MakeEdge, NodeGraphCanvas, type NodeGraphCanvasProps, type NodeView, OnboardingChecklist, type OnboardingChecklistProps, PromptAttachmentPreviews, type PromptAttachmentPreviewsProps, PromptInputBox, type PromptInputBoxLabels, type PromptInputBoxProps, TeamChat, type TeamChatLabels, type TeamChatProps, VISUALIZER_BAR_STYLES, VoiceRecorder, type VoiceRecorderProps, applyNodePositions, formatRecordingTime, getFilePreviewKey, graphToFlow, isImageFile, preventDragDefaults, removeFlowEdge, removeNode, tryAddEdge };