myoperator-ui 0.0.228 → 0.0.229
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.js +6 -18
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7968,7 +7968,7 @@ export interface PageHeaderProps
|
|
|
7968
7968
|
actions?: React.ReactNode;
|
|
7969
7969
|
/** Show bottom border (default: true) */
|
|
7970
7970
|
showBorder?: boolean;
|
|
7971
|
-
/** Layout mode: 'horizontal' (
|
|
7971
|
+
/** Layout mode: 'horizontal' (row on sm+, stacked on narrow), 'vertical' (stacked), 'responsive' (same as horizontal, default) */
|
|
7972
7972
|
layout?: "horizontal" | "vertical" | "responsive";
|
|
7973
7973
|
/** Max actions to show on mobile before overflow (default: 2) */
|
|
7974
7974
|
mobileOverflowLimit?: number;
|
|
@@ -8048,13 +8048,13 @@ const PageHeader = React.forwardRef(
|
|
|
8048
8048
|
|
|
8049
8049
|
// Layout classes based on prop
|
|
8050
8050
|
const layoutClasses = {
|
|
8051
|
-
horizontal: "flex-row items-center",
|
|
8051
|
+
horizontal: "flex-col sm:flex-row sm:items-center",
|
|
8052
8052
|
vertical: "flex-col",
|
|
8053
8053
|
responsive: "flex-col sm:flex-row sm:items-center",
|
|
8054
8054
|
};
|
|
8055
8055
|
|
|
8056
8056
|
const heightClasses = {
|
|
8057
|
-
horizontal: "h-[76px]",
|
|
8057
|
+
horizontal: "min-h-[76px] py-4 lg:py-0 lg:h-[76px]",
|
|
8058
8058
|
vertical: "min-h-[76px] py-4",
|
|
8059
8059
|
responsive: "min-h-[76px] py-4 lg:py-0 lg:h-[76px]",
|
|
8060
8060
|
};
|
|
@@ -8117,27 +8117,14 @@ const PageHeader = React.forwardRef(
|
|
|
8117
8117
|
);
|
|
8118
8118
|
};
|
|
8119
8119
|
|
|
8120
|
-
// For horizontal layout, always show all actions inline
|
|
8121
|
-
const renderHorizontalActions = () => (
|
|
8122
|
-
<div className="flex items-center gap-2 ml-4">
|
|
8123
|
-
{actionsArray.map((action, index) => (
|
|
8124
|
-
<React.Fragment key={index}>{action}</React.Fragment>
|
|
8125
|
-
))}
|
|
8126
|
-
</div>
|
|
8127
|
-
);
|
|
8128
|
-
|
|
8129
8120
|
const renderActions = () => {
|
|
8130
8121
|
if (!actions) return null;
|
|
8131
8122
|
|
|
8132
|
-
if (layout === "horizontal") {
|
|
8133
|
-
return renderHorizontalActions();
|
|
8134
|
-
}
|
|
8135
|
-
|
|
8136
8123
|
if (layout === "vertical") {
|
|
8137
8124
|
return renderExpandableActions("mt-3");
|
|
8138
8125
|
}
|
|
8139
8126
|
|
|
8140
|
-
//
|
|
8127
|
+
// horizontal + responsive: stack actions below title on small screens
|
|
8141
8128
|
return (
|
|
8142
8129
|
<>
|
|
8143
8130
|
{renderDesktopActions()}
|
|
@@ -8174,7 +8161,7 @@ const PageHeader = React.forwardRef(
|
|
|
8174
8161
|
|
|
8175
8162
|
{/* Content Section: Title + Description */}
|
|
8176
8163
|
<div className="flex-1 min-w-0">
|
|
8177
|
-
<div className="flex
|
|
8164
|
+
<div className="flex h-auto items-center gap-2 sm:min-h-10">
|
|
8178
8165
|
<h1 className="m-0 text-lg font-semibold leading-none text-semantic-text-primary truncate">
|
|
8179
8166
|
{title}
|
|
8180
8167
|
</h1>
|
|
@@ -20458,6 +20445,7 @@ const BotIdentityCard = React.forwardRef(
|
|
|
20458
20445
|
|
|
20459
20446
|
<Field
|
|
20460
20447
|
label="Primary Role"
|
|
20448
|
+
helperText="Defines what the bot does. Choose from the list or type a custom role."
|
|
20461
20449
|
characterCount={{
|
|
20462
20450
|
current: (data.primaryRole ?? "").length,
|
|
20463
20451
|
max: PRIMARY_ROLE_MAX_LENGTH,
|