@declarion/react 0.2.0 → 0.2.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/dist-lib/DraggableChildrenTable-BFkRqNSe.js +261 -0
- package/dist-lib/DraggableChildrenTable-BFkRqNSe.js.map +1 -0
- package/dist-lib/{Grid-C69-4exi.js → Grid-pE2-dvug.js} +2 -2
- package/dist-lib/{Grid-C69-4exi.js.map → Grid-pE2-dvug.js.map} +1 -1
- package/dist-lib/api/client.d.ts +7 -0
- package/dist-lib/components/detail-layout/ChildrenBlock.d.ts +2 -1
- package/dist-lib/components/detail-layout/DetailAuditStrip.d.ts +13 -0
- package/dist-lib/components/detail-layout/DetailHighlights.d.ts +15 -0
- package/dist-lib/components/detail-layout/ErrorSummary.d.ts +11 -0
- package/dist-lib/components/detail-layout/FieldRow.d.ts +22 -0
- package/dist-lib/components/detail-layout/LayoutRenderer.d.ts +2 -0
- package/dist-lib/components/detail-layout/LayoutTabs.d.ts +1 -3
- package/dist-lib/components/detail-layout/blockMeta.d.ts +4 -0
- package/dist-lib/components/detail-layout/index.d.ts +4 -0
- package/dist-lib/components/fields/JsonField.d.ts +1 -0
- package/dist-lib/components/fields/cells/factories/emptyCell.d.ts +2 -0
- package/dist-lib/components/primitives/SectionCard.d.ts +6 -1
- package/dist-lib/components/primitives/dataTableStyles.d.ts +4 -0
- package/dist-lib/components/primitives/index.d.ts +1 -1
- package/dist-lib/components/shared/AuditMetaStrip.d.ts +11 -0
- package/dist-lib/components/shared/HighlightsStrip.d.ts +10 -0
- package/dist-lib/components/shared/RecordHeader.d.ts +15 -0
- package/dist-lib/components/shared/StatusStepper.d.ts +13 -0
- package/dist-lib/components/shared/toast/DeclarionToast.d.ts +31 -0
- package/dist-lib/{useUserLocale-GBIXbEE6.js → dataTableStyles-B40JEa-3.js} +1778 -1678
- package/dist-lib/dataTableStyles-B40JEa-3.js.map +1 -0
- package/dist-lib/declarion-react.css +1 -1
- package/dist-lib/index.js +6183 -5176
- package/dist-lib/index.js.map +1 -1
- package/dist-lib/lib/toast.d.ts +49 -16
- package/dist-lib/stores/appearance.d.ts +3 -0
- package/dist-lib/types/schema.d.ts +13 -0
- package/dist-lib/{value-DFpIiSZ-.js → value-qao1rdkR.js} +149 -120
- package/dist-lib/value-qao1rdkR.js.map +1 -0
- package/package.json +1 -1
- package/dist-lib/DraggableChildrenTable-IfspXSFA.js +0 -281
- package/dist-lib/DraggableChildrenTable-IfspXSFA.js.map +0 -1
- package/dist-lib/useUserLocale-GBIXbEE6.js.map +0 -1
- package/dist-lib/value-DFpIiSZ-.js.map +0 -1
- /package/dist-lib/components/fields/cells/factories/{markdownToPlainText.d.ts → markdownPreview.d.ts} +0 -0
|
@@ -19,7 +19,7 @@ export type { HoverCardProps, HoverCardAlign } from "./HoverCard";
|
|
|
19
19
|
export { Chip } from "./Chip";
|
|
20
20
|
export type { ChipProps } from "./Chip";
|
|
21
21
|
export { SectionCard } from "./SectionCard";
|
|
22
|
-
export type { SectionCardProps, SectionBadge } from "./SectionCard";
|
|
22
|
+
export type { SectionCardProps, SectionBadge, SectionEmphasis } from "./SectionCard";
|
|
23
23
|
export { RecordIdBadge } from "./RecordIdBadge";
|
|
24
24
|
export type { RecordIdBadgeProps } from "./RecordIdBadge";
|
|
25
25
|
export { RowField } from "./RowField";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export interface AuditStripLine {
|
|
3
|
+
label: ReactNode;
|
|
4
|
+
by?: ReactNode;
|
|
5
|
+
at?: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
interface AuditMetaStripProps {
|
|
8
|
+
lines: AuditStripLine[];
|
|
9
|
+
}
|
|
10
|
+
export declare function AuditMetaStrip({ lines }: AuditMetaStripProps): import("react/jsx-runtime").JSX.Element | null;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export interface HighlightItem {
|
|
3
|
+
label: string;
|
|
4
|
+
value: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
interface HighlightsStripProps {
|
|
7
|
+
items: HighlightItem[];
|
|
8
|
+
}
|
|
9
|
+
export declare function HighlightsStrip({ items }: HighlightsStripProps): import("react/jsx-runtime").JSX.Element | null;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
interface RecordHeaderProps {
|
|
3
|
+
icon?: ReactNode;
|
|
4
|
+
avatarName?: string;
|
|
5
|
+
title: string;
|
|
6
|
+
recordId?: string;
|
|
7
|
+
highlights?: ReactNode;
|
|
8
|
+
mode: "display" | "edit" | "create";
|
|
9
|
+
dirty?: boolean;
|
|
10
|
+
showBack?: boolean;
|
|
11
|
+
onBack?: () => void;
|
|
12
|
+
right?: ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export declare function RecordHeader({ icon, avatarName, title, recordId, highlights, mode, dirty, showBack, onBack, right, }: RecordHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface StatusStage {
|
|
2
|
+
code: string;
|
|
3
|
+
label: string;
|
|
4
|
+
}
|
|
5
|
+
interface StatusStepperProps {
|
|
6
|
+
stages: StatusStage[];
|
|
7
|
+
current: string | undefined;
|
|
8
|
+
selectable?: Set<string>;
|
|
9
|
+
onSelect?: (code: string) => void;
|
|
10
|
+
compact?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function StatusStepper({ stages, current, selectable, onSelect, compact, }: StatusStepperProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/** The five toast variants. `loading` transforms in place via `toast.update`. */
|
|
2
|
+
export type ToastType = "success" | "error" | "warning" | "info" | "loading";
|
|
3
|
+
/** A single trailing action button rendered in the toast's action row. */
|
|
4
|
+
export interface ToastAction {
|
|
5
|
+
label: string;
|
|
6
|
+
onClick: () => void;
|
|
7
|
+
}
|
|
8
|
+
/** Everything needed to render one toast. Built by the `lib/toast` facade. */
|
|
9
|
+
export interface ToastModel {
|
|
10
|
+
id: string | number;
|
|
11
|
+
type: ToastType;
|
|
12
|
+
title: string;
|
|
13
|
+
/** Optional body line - selectable so users can quote it in a ticket. */
|
|
14
|
+
message?: string;
|
|
15
|
+
/** Auto-dismiss after this many ms. 0 = sticky (never auto-dismisses). */
|
|
16
|
+
duration: number;
|
|
17
|
+
sticky: boolean;
|
|
18
|
+
action?: ToastAction;
|
|
19
|
+
/** Correlation id, shown top-right in mono, selectable, included in Copy. */
|
|
20
|
+
requestId?: string;
|
|
21
|
+
/** Expandable detail block (stack trace, server payload) - selectable. */
|
|
22
|
+
details?: string;
|
|
23
|
+
/** Repeat-rollup count. >1 renders a ×N badge instead of a new toast. */
|
|
24
|
+
count?: number;
|
|
25
|
+
/** Re-stamped on every `toast.update` so the dismiss timer re-arms. */
|
|
26
|
+
createdAt: number;
|
|
27
|
+
}
|
|
28
|
+
export declare function DeclarionToast({ model, onClose }: {
|
|
29
|
+
model: ToastModel;
|
|
30
|
+
onClose: () => void;
|
|
31
|
+
}): import("react/jsx-runtime").JSX.Element;
|