@mithrl/design-system 0.4.0 → 0.4.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/components/approval-card/ApprovalCard.d.ts +68 -65
- package/dist/components/approval-plan-card/ApprovalPlanCard.d.ts +28 -0
- package/dist/components/approval-plan-card/approvalPlanTypes.d.ts +35 -0
- package/dist/components/command-search/CommandSearch.d.ts +64 -0
- package/dist/components/composer/Composer.d.ts +8 -1
- package/dist/components/composer/ComposerUpload.d.ts +65 -0
- package/dist/components/dot-field/DotField.d.ts +102 -0
- package/dist/components/dropdown-menu/DropdownMenu.d.ts +4 -0
- package/dist/components/explorer/Explorer.d.ts +3 -2
- package/dist/components/file-dropzone/FileDropzone.d.ts +17 -0
- package/dist/components/flowchart/Flowchart.d.ts +110 -0
- package/dist/components/flowchart/graphLayout.d.ts +35 -0
- package/dist/components/pixel-loader/PixelLoader.d.ts +94 -0
- package/dist/components/status-orb/StatusOrb.d.ts +2 -2
- package/dist/components/text-reveal/TextReveal.d.ts +62 -0
- package/dist/components/upload-queue/UploadQueue.d.ts +4 -0
- package/dist/index.d.ts +21 -7
- package/dist/index.js +4718 -3095
- package/dist/internal/ResourceTypeIcon.d.ts +17 -0
- package/dist/patterns/approval-plan-review/ApprovalPlanReview.d.ts +55 -0
- package/dist/patterns/approval-plan-review/approvalPlanExample.d.ts +2 -0
- package/dist/styles.css +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
export type UploadResourceType = "data" | "structured-data" | "document" | "code" | "notebook" | "image" | "scientific-data" | "archive" | "generic";
|
|
3
|
+
export type ScientificOutputResourceType = "dataset" | "report" | "figure" | "plot" | "code" | "generic";
|
|
4
|
+
type ResourceTypeIconProps = {
|
|
5
|
+
type: UploadResourceType;
|
|
6
|
+
tone: "upload";
|
|
7
|
+
className?: string;
|
|
8
|
+
} | {
|
|
9
|
+
type: ScientificOutputResourceType;
|
|
10
|
+
tone: "output";
|
|
11
|
+
className?: string;
|
|
12
|
+
};
|
|
13
|
+
/** Matches the file-type taxonomy used by Explorer; consumers may override it. */
|
|
14
|
+
export declare function resolveUploadResourceType(name: string): UploadResourceType;
|
|
15
|
+
/** Shared Explorer resource marker used wherever a resource type is previewed. */
|
|
16
|
+
export declare function ResourceTypeIcon(props: ResourceTypeIconProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { type HTMLAttributes } from "react";
|
|
2
|
+
import { type ApprovalPlan } from "../../components/approval-plan-card/approvalPlanTypes";
|
|
3
|
+
|
|
4
|
+
export type ApprovalPlanReviewProps = Omit<HTMLAttributes<HTMLElement>, "children" | "title" | "onChange" | "onSubmit"> & {
|
|
5
|
+
plan: ApprovalPlan;
|
|
6
|
+
requestingChanges?: boolean;
|
|
7
|
+
requestValue: string;
|
|
8
|
+
onRequestValueChange: (value: string) => void;
|
|
9
|
+
onRequestChangesOpen: () => void;
|
|
10
|
+
onRequestChangesCancel: () => void;
|
|
11
|
+
onRequestChangesSubmit: (value: string) => void;
|
|
12
|
+
onApprove: () => void;
|
|
13
|
+
onBack: () => void;
|
|
14
|
+
approving?: boolean;
|
|
15
|
+
submittingRequest?: boolean;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
backLabel?: string;
|
|
18
|
+
requestChangesLabel?: string;
|
|
19
|
+
approveLabel?: string;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Full reading surface for a generated execution plan. Workflow state,
|
|
23
|
+
* navigation, persistence, and accepted transitions remain product-owned.
|
|
24
|
+
*/
|
|
25
|
+
export declare const ApprovalPlanReview: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLElement>, "children" | "onChange" | "onSubmit" | "title"> & {
|
|
26
|
+
plan: ApprovalPlan;
|
|
27
|
+
requestingChanges?: boolean;
|
|
28
|
+
requestValue: string;
|
|
29
|
+
onRequestValueChange: (value: string) => void;
|
|
30
|
+
onRequestChangesOpen: () => void;
|
|
31
|
+
onRequestChangesCancel: () => void;
|
|
32
|
+
onRequestChangesSubmit: (value: string) => void;
|
|
33
|
+
onApprove: () => void;
|
|
34
|
+
onBack: () => void;
|
|
35
|
+
approving?: boolean;
|
|
36
|
+
submittingRequest?: boolean;
|
|
37
|
+
disabled?: boolean;
|
|
38
|
+
backLabel?: string;
|
|
39
|
+
requestChangesLabel?: string;
|
|
40
|
+
approveLabel?: string;
|
|
41
|
+
} & import("react").RefAttributes<HTMLElement>>;
|
|
42
|
+
export type ApprovedPlanDisclosureProps = Omit<HTMLAttributes<HTMLElement>, "children" | "title" | "onChange"> & {
|
|
43
|
+
plan: ApprovalPlan;
|
|
44
|
+
open?: boolean;
|
|
45
|
+
defaultOpen?: boolean;
|
|
46
|
+
onOpenChange?: (open: boolean) => void;
|
|
47
|
+
};
|
|
48
|
+
/** Compact post-approval record. It is deliberately an inline row, not a Card. */
|
|
49
|
+
export declare const ApprovedPlanDisclosure: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLElement>, "children" | "onChange" | "title"> & {
|
|
50
|
+
plan: ApprovalPlan;
|
|
51
|
+
open?: boolean;
|
|
52
|
+
defaultOpen?: boolean;
|
|
53
|
+
onOpenChange?: (open: boolean) => void;
|
|
54
|
+
} & import("react").RefAttributes<HTMLElement>>;
|
|
55
|
+
export type { ApprovalPlan };
|