@danxbot/ui 15.15.1 → 15.16.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.
@@ -0,0 +1,18 @@
1
+ export interface LineDiffProps {
2
+ /** The baseline/default text this compares `after` against. */
3
+ before: string;
4
+ /** The current text being compared against `before`. */
5
+ after: string;
6
+ /** The accessible name for the diff region. */
7
+ label: string;
8
+ className?: string;
9
+ }
10
+ /**
11
+ * Renders a line-based diff of `after` against `before`: lines common to both
12
+ * are shown once, plain; a line only in `before` is shown once, styled as a
13
+ * removal; a line only in `after` is shown once, styled as an addition. A
14
+ * line edited in place shows as its old form removed immediately followed by
15
+ * its new form added. Identical `before`/`after` renders every line
16
+ * unchanged, with no added/removed markers at all.
17
+ */
18
+ export declare function LineDiff({ before, after, label, className }: LineDiffProps): import("react").JSX.Element;
@@ -71,6 +71,7 @@ export { Stat, StatRow, Sparkline, type StatProps, type StatRowProps, type Spark
71
71
  export { DataTable, TableEmptyState, CellStack, type DataTableProps, type TableDensity, } from "./components/Table";
72
72
  export { CodeEditor, CodeEditorToolbar, CodeEditorCaption, CodeEditorCopyButton, CodeEditorWrapToggle, CodeEditorViewSwitch, type CodeEditorProps, type CodeEditorToolbarProps, type CodeEditorView, } from "./components/CodeEditor";
73
73
  export { Markdown, CodeBlock, type MarkdownProps, type CodeBlockProps } from "./components/Markdown";
74
+ export { LineDiff, type LineDiffProps } from "./components/LineDiff";
74
75
  export { MarkdownEditor, type MarkdownEditorProps, type MarkdownEditorHandle, } from "./components/MarkdownEditor";
75
76
  export { ReadMore, type ReadMoreProps } from "./components/ReadMore";
76
77
  export { MarkdownSurface, type SurfaceOptions, type Splice } from "./lib/markdown/surface";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danxbot/ui",
3
- "version": "15.15.1",
3
+ "version": "15.16.0",
4
4
  "type": "module",
5
5
  "description": "Danxbot — a domain-agnostic React design system with motion as a first-class primitive.",
6
6
  "license": "MIT",