@mithrl/design-system 0.4.2 → 0.4.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.
- package/dist/components/process-steps/ProcessSteps.d.ts +46 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +2101 -1663
- package/dist/patterns/generated-answer/GeneratedAnswer.d.ts +72 -0
- package/dist/patterns/new-project-workspace/NewProjectWorkspaceEmptyState.d.ts +34 -0
- package/dist/styles.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { type HTMLAttributes } from "react";
|
|
2
|
+
|
|
3
|
+
export type ProcessStepState = "pending" | "active" | "completed" | "failed";
|
|
4
|
+
export type ProcessStepsPlacement = "top" | "bottom";
|
|
5
|
+
export type ProcessStepItem = {
|
|
6
|
+
/** Stable consumer-owned identity. */
|
|
7
|
+
id: string;
|
|
8
|
+
label: string;
|
|
9
|
+
/** Optional concise status. Defaults to the state label. */
|
|
10
|
+
status?: string;
|
|
11
|
+
/** @default "pending" */
|
|
12
|
+
state?: ProcessStepState;
|
|
13
|
+
};
|
|
14
|
+
export type ProcessStepsLabels = {
|
|
15
|
+
step: string;
|
|
16
|
+
pending: string;
|
|
17
|
+
active: string;
|
|
18
|
+
completed: string;
|
|
19
|
+
failed: string;
|
|
20
|
+
expand: string;
|
|
21
|
+
collapse: string;
|
|
22
|
+
};
|
|
23
|
+
export type ProcessStepsProps = Omit<HTMLAttributes<HTMLDivElement>, "children" | "onChange"> & {
|
|
24
|
+
steps: readonly ProcessStepItem[];
|
|
25
|
+
/** Accessible name for the expanded step list. */
|
|
26
|
+
label?: string;
|
|
27
|
+
labels?: Partial<ProcessStepsLabels>;
|
|
28
|
+
placement?: ProcessStepsPlacement;
|
|
29
|
+
open?: boolean;
|
|
30
|
+
defaultOpen?: boolean;
|
|
31
|
+
onOpenChange?: (open: boolean) => void;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Compact progress disclosure for a fixed, sequential process. The summary
|
|
35
|
+
* stays visible while the non-interactive detail list opens above or below it.
|
|
36
|
+
*/
|
|
37
|
+
export declare const ProcessSteps: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "children" | "onChange"> & {
|
|
38
|
+
steps: readonly ProcessStepItem[];
|
|
39
|
+
/** Accessible name for the expanded step list. */
|
|
40
|
+
label?: string;
|
|
41
|
+
labels?: Partial<ProcessStepsLabels>;
|
|
42
|
+
placement?: ProcessStepsPlacement;
|
|
43
|
+
open?: boolean;
|
|
44
|
+
defaultOpen?: boolean;
|
|
45
|
+
onOpenChange?: (open: boolean) => void;
|
|
46
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -93,6 +93,8 @@ export { ApprovalPlanReview, ApprovedPlanDisclosure, } from "./patterns/approval
|
|
|
93
93
|
export type { ApprovalPlanReviewProps, ApprovedPlanDisclosureProps, } from "./patterns/approval-plan-review/ApprovalPlanReview";
|
|
94
94
|
export { NewProjectDialog } from "./patterns/new-project-dialog/NewProjectDialog";
|
|
95
95
|
export type { NewProjectDialogInitialValue, NewProjectDialogProps, NewProjectDraft, NewProjectResource, } from "./patterns/new-project-dialog/NewProjectDialog";
|
|
96
|
+
export { NewProjectWorkspaceEmptyState } from "./patterns/new-project-workspace/NewProjectWorkspaceEmptyState";
|
|
97
|
+
export type { NewProjectSuggestedQuestion, NewProjectWorkspaceEmptyStateProps, } from "./patterns/new-project-workspace/NewProjectWorkspaceEmptyState";
|
|
96
98
|
export { FileDropzone } from "./components/file-dropzone/FileDropzone";
|
|
97
99
|
export type { FileDropzoneDensity, FileDropzoneHandle, FileDropzoneProps, FileDropzoneRejection, FileDropzoneRejectionReason, FileDropzoneSelection, FileDropzoneSelectionSource, FileDropzoneState, } from "./components/file-dropzone/FileDropzone";
|
|
98
100
|
export { DialogBackdrop, DialogBody, DialogClose, DialogCloseButton, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPopup, DialogPortal, DialogRoot, DialogTitle, DialogTrigger, DialogViewport, dialogPopupVariants, } from "./components/dialog/Dialog";
|
|
@@ -143,5 +145,9 @@ export { SourceChip, SourceStack, StreamingText, } from "./components/streaming-
|
|
|
143
145
|
export type { FollowUpSuggestion, SourceChipProps, SourceChipTone, SourceStackProps, StreamingTextProps, } from "./components/streaming-text/StreamingText";
|
|
144
146
|
export { TaskRow, TaskRows } from "./components/task-rows/TaskRows";
|
|
145
147
|
export type { TaskRowItem, TaskRowProps, TaskRowsProps, TaskRowsView, TaskState, TaskStep, } from "./components/task-rows/TaskRows";
|
|
148
|
+
export { ProcessSteps } from "./components/process-steps/ProcessSteps";
|
|
149
|
+
export type { ProcessStepItem, ProcessStepState, ProcessStepsLabels, ProcessStepsPlacement, ProcessStepsProps, } from "./components/process-steps/ProcessSteps";
|
|
146
150
|
export { NotificationCenter, NotificationItem, NotificationStatusIcon, NotificationToast, NotificationToastProvider, NotificationToastViewport, NotificationTrigger, NotificationsDrawer, useNotificationToast, } from "./patterns/notifications/Notifications";
|
|
147
151
|
export type { NotificationCenterProps, NotificationFilter, NotificationItemPreviewState, NotificationItemProps, NotificationRecord, NotificationStatusIconProps, NotificationToastData, NotificationToastOptions, NotificationToastProps, NotificationToastProviderProps, NotificationToastViewportProps, NotificationTone, NotificationTriggerProps, NotificationsDrawerProps, } from "./patterns/notifications/Notifications";
|
|
152
|
+
export { GeneratedAnswer } from "./patterns/generated-answer/GeneratedAnswer";
|
|
153
|
+
export type { GeneratedAnswerFollowUp, GeneratedAnswerFollowUpsState, GeneratedAnswerProps, GeneratedAnswerState, } from "./patterns/generated-answer/GeneratedAnswer";
|