@cere/cere-design-system 0.0.28 → 0.0.29
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/index.d.mts +13 -3
- package/dist/index.d.ts +13 -3
- package/dist/index.js +21 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +28 -19
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1681,11 +1681,13 @@ declare const AppBar: React__default.FC<AppBarProps>;
|
|
|
1681
1681
|
interface WorkflowTopBarProps extends Omit<BoxProps$1, 'title'> {
|
|
1682
1682
|
/** Heading shown at the left side of the bar. */
|
|
1683
1683
|
title?: string;
|
|
1684
|
-
/**
|
|
1684
|
+
/** Job identifier displayed in the Job ID field. */
|
|
1685
1685
|
executionId: string;
|
|
1686
|
-
/**
|
|
1686
|
+
/** Label shown above the job ID input. Defaults to "Job ID". */
|
|
1687
|
+
executionIdLabel?: string;
|
|
1688
|
+
/** Called when the job ID value changes. */
|
|
1687
1689
|
onExecutionIdChange?: (value: string) => void;
|
|
1688
|
-
/** Called when the
|
|
1690
|
+
/** Called when the job ID clear action is pressed. */
|
|
1689
1691
|
onClearExecutionId?: () => void;
|
|
1690
1692
|
/** Submit button label. */
|
|
1691
1693
|
submitLabel?: string;
|
|
@@ -1730,6 +1732,14 @@ interface WorkflowSideInspectorProps extends PaperProps$1 {
|
|
|
1730
1732
|
timestamp?: string;
|
|
1731
1733
|
/** Duration value shown in metadata section. */
|
|
1732
1734
|
duration?: string;
|
|
1735
|
+
/** Whether to show the Input field in the details section. Defaults to true. */
|
|
1736
|
+
showInput?: boolean;
|
|
1737
|
+
/** Whether to show the Output field in the details section. Defaults to true. */
|
|
1738
|
+
showOutput?: boolean;
|
|
1739
|
+
/** Whether to show the Timestamp field in the metadata section. Defaults to true. */
|
|
1740
|
+
showTimestamp?: boolean;
|
|
1741
|
+
/** Whether to show the Duration field in the metadata section. Defaults to true. */
|
|
1742
|
+
showDuration?: boolean;
|
|
1733
1743
|
/** Bottom CTA label. Set to `undefined` or `null` to hide the button. */
|
|
1734
1744
|
actionLabel?: string | null;
|
|
1735
1745
|
/** Called when close button is pressed. */
|
package/dist/index.d.ts
CHANGED
|
@@ -1681,11 +1681,13 @@ declare const AppBar: React__default.FC<AppBarProps>;
|
|
|
1681
1681
|
interface WorkflowTopBarProps extends Omit<BoxProps$1, 'title'> {
|
|
1682
1682
|
/** Heading shown at the left side of the bar. */
|
|
1683
1683
|
title?: string;
|
|
1684
|
-
/**
|
|
1684
|
+
/** Job identifier displayed in the Job ID field. */
|
|
1685
1685
|
executionId: string;
|
|
1686
|
-
/**
|
|
1686
|
+
/** Label shown above the job ID input. Defaults to "Job ID". */
|
|
1687
|
+
executionIdLabel?: string;
|
|
1688
|
+
/** Called when the job ID value changes. */
|
|
1687
1689
|
onExecutionIdChange?: (value: string) => void;
|
|
1688
|
-
/** Called when the
|
|
1690
|
+
/** Called when the job ID clear action is pressed. */
|
|
1689
1691
|
onClearExecutionId?: () => void;
|
|
1690
1692
|
/** Submit button label. */
|
|
1691
1693
|
submitLabel?: string;
|
|
@@ -1730,6 +1732,14 @@ interface WorkflowSideInspectorProps extends PaperProps$1 {
|
|
|
1730
1732
|
timestamp?: string;
|
|
1731
1733
|
/** Duration value shown in metadata section. */
|
|
1732
1734
|
duration?: string;
|
|
1735
|
+
/** Whether to show the Input field in the details section. Defaults to true. */
|
|
1736
|
+
showInput?: boolean;
|
|
1737
|
+
/** Whether to show the Output field in the details section. Defaults to true. */
|
|
1738
|
+
showOutput?: boolean;
|
|
1739
|
+
/** Whether to show the Timestamp field in the metadata section. Defaults to true. */
|
|
1740
|
+
showTimestamp?: boolean;
|
|
1741
|
+
/** Whether to show the Duration field in the metadata section. Defaults to true. */
|
|
1742
|
+
showDuration?: boolean;
|
|
1733
1743
|
/** Bottom CTA label. Set to `undefined` or `null` to hide the button. */
|
|
1734
1744
|
actionLabel?: string | null;
|
|
1735
1745
|
/** Called when close button is pressed. */
|
package/dist/index.js
CHANGED
|
@@ -6651,6 +6651,7 @@ var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
|
6651
6651
|
var WorkflowTopBar = ({
|
|
6652
6652
|
title = "Agent visualization flow chart",
|
|
6653
6653
|
executionId,
|
|
6654
|
+
executionIdLabel = "Job ID",
|
|
6654
6655
|
onExecutionIdChange,
|
|
6655
6656
|
onClearExecutionId,
|
|
6656
6657
|
submitLabel = "Submit",
|
|
@@ -6738,7 +6739,7 @@ var WorkflowTopBar = ({
|
|
|
6738
6739
|
fontSize: 12,
|
|
6739
6740
|
display: "block"
|
|
6740
6741
|
},
|
|
6741
|
-
children:
|
|
6742
|
+
children: executionIdLabel
|
|
6742
6743
|
}
|
|
6743
6744
|
),
|
|
6744
6745
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
@@ -6746,7 +6747,7 @@ var WorkflowTopBar = ({
|
|
|
6746
6747
|
{
|
|
6747
6748
|
value: executionId,
|
|
6748
6749
|
onChange: (event) => onExecutionIdChange?.(event.target.value),
|
|
6749
|
-
inputProps: { "aria-label":
|
|
6750
|
+
inputProps: { "aria-label": executionIdLabel },
|
|
6750
6751
|
sx: {
|
|
6751
6752
|
width: "100%",
|
|
6752
6753
|
mt: 0.25,
|
|
@@ -6764,7 +6765,7 @@ var WorkflowTopBar = ({
|
|
|
6764
6765
|
import_material39.IconButton,
|
|
6765
6766
|
{
|
|
6766
6767
|
size: "small",
|
|
6767
|
-
"aria-label":
|
|
6768
|
+
"aria-label": `Clear ${executionIdLabel.toLowerCase()}`,
|
|
6768
6769
|
onClick: onClearExecutionId,
|
|
6769
6770
|
sx: { color: "#4A4458", ml: 1 },
|
|
6770
6771
|
children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_Cancel.default, { fontSize: "small" })
|
|
@@ -6847,6 +6848,10 @@ var WorkflowSideInspector = ({
|
|
|
6847
6848
|
cubbyId = "ID:S8787",
|
|
6848
6849
|
timestamp = "2026-02-11 14:32:10",
|
|
6849
6850
|
duration = "120ms",
|
|
6851
|
+
showInput = true,
|
|
6852
|
+
showOutput = true,
|
|
6853
|
+
showTimestamp = true,
|
|
6854
|
+
showDuration = true,
|
|
6850
6855
|
actionLabel,
|
|
6851
6856
|
onClose,
|
|
6852
6857
|
onCopyCubbyId,
|
|
@@ -6938,11 +6943,13 @@ var WorkflowSideInspector = ({
|
|
|
6938
6943
|
)
|
|
6939
6944
|
] }),
|
|
6940
6945
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_material40.Divider, { sx: { borderColor: DIVIDER_COLOR } }),
|
|
6941
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
6942
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.
|
|
6943
|
-
|
|
6946
|
+
(showInput || showOutput) && /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx_runtime59.Fragment, { children: [
|
|
6947
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_material40.Box, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: [
|
|
6948
|
+
showInput && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(InfoBlock, { label: "Input", value: inputValue }),
|
|
6949
|
+
showOutput && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(InfoBlock, { label: "Output", value: outputValue })
|
|
6950
|
+
] }),
|
|
6951
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_material40.Divider, { sx: { borderColor: DIVIDER_COLOR } })
|
|
6944
6952
|
] }),
|
|
6945
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_material40.Divider, { sx: { borderColor: DIVIDER_COLOR } }),
|
|
6946
6953
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_material40.Box, { sx: { display: "flex", flexDirection: "column", gap: 1 }, children: [
|
|
6947
6954
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_material40.Typography, { variant: "body2", sx: { color: MUTED_TEXT_COLOR }, children: "Cubby ID" }),
|
|
6948
6955
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
@@ -6958,11 +6965,13 @@ var WorkflowSideInspector = ({
|
|
|
6958
6965
|
)
|
|
6959
6966
|
] }),
|
|
6960
6967
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_material40.Divider, { sx: { borderColor: DIVIDER_COLOR } }),
|
|
6961
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
6962
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.
|
|
6963
|
-
|
|
6964
|
-
|
|
6965
|
-
|
|
6968
|
+
(showTimestamp || showDuration) && /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx_runtime59.Fragment, { children: [
|
|
6969
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_material40.Box, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: [
|
|
6970
|
+
showTimestamp && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(InfoBlock, { label: "Timestamp", value: timestamp }),
|
|
6971
|
+
showDuration && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(InfoBlock, { label: "Duration", value: duration })
|
|
6972
|
+
] }),
|
|
6973
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_material40.Divider, { sx: { borderColor: DIVIDER_COLOR } })
|
|
6974
|
+
] })
|
|
6966
6975
|
] }),
|
|
6967
6976
|
actionLabel && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Button, { variant: "primary", fullWidth: true, onClick: onAction, children: actionLabel })
|
|
6968
6977
|
]
|