myoperator-ui 0.0.227 → 0.0.228

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.
Files changed (2) hide show
  1. package/dist/index.js +11 -14
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -8161,7 +8161,12 @@ const PageHeader = React.forwardRef(
8161
8161
  {...props}
8162
8162
  >
8163
8163
  {/* Top Row: Icon/Back + Title + Description */}
8164
- <div className="flex items-start sm:items-center flex-1 min-w-0">
8164
+ <div
8165
+ className={cn(
8166
+ "flex flex-1 min-w-0",
8167
+ description ? "items-start sm:items-center" : "items-center"
8168
+ )}
8169
+ >
8165
8170
  {/* Left Section: Icon or Back Button */}
8166
8171
  {leftElement && (
8167
8172
  <div className="flex-shrink-0 mr-4">{leftElement}</div>
@@ -8169,8 +8174,8 @@ const PageHeader = React.forwardRef(
8169
8174
 
8170
8175
  {/* Content Section: Title + Description */}
8171
8176
  <div className="flex-1 min-w-0">
8172
- <div className="flex items-center gap-2">
8173
- <h1 className="m-0 text-lg font-semibold text-semantic-text-primary truncate">
8177
+ <div className="flex min-h-10 items-center gap-2">
8178
+ <h1 className="m-0 text-lg font-semibold leading-none text-semantic-text-primary truncate">
8174
8179
  {title}
8175
8180
  </h1>
8176
8181
  {badge && (
@@ -14633,7 +14638,8 @@ export const CreateBotModal = React.forwardRef(
14633
14638
  ref={ref}
14634
14639
  size="sm"
14635
14640
  className={cn(
14636
- "mx-3 max-h-[90vh] overflow-y-auto w-[calc(100%-1.5rem)] sm:mx-auto sm:w-full",
14641
+ // Do not use horizontal margin here \u2014 it breaks left-1/2 + -translate-x-1/2 centering on DialogContent.
14642
+ "max-h-[90vh] overflow-y-auto w-[min(100%,calc(100vw-1.5rem))]",
14637
14643
  className
14638
14644
  )}
14639
14645
  >
@@ -15568,14 +15574,6 @@ function useFakeProgress() {
15568
15574
  return { start, cancel, cancelAll };
15569
15575
  }
15570
15576
 
15571
- function getTimeRemaining(progress: number) {
15572
- const steps = Math.ceil((100 - progress) / 15);
15573
- const secs = steps * 3;
15574
- return secs > 60
15575
- ? \`\${Math.ceil(secs / 60)} minutes remaining\`
15576
- : \`\${secs} seconds remaining\`;
15577
- }
15578
-
15579
15577
  const FileUploadModal = React.forwardRef(
15580
15578
  (
15581
15579
  {
@@ -15821,8 +15819,7 @@ const FileUploadModal = React.forwardRef(
15821
15819
  </p>
15822
15820
  {item.status === "uploading" && (
15823
15821
  <p className="m-0 text-xs text-semantic-text-muted tracking-[0.048px]">
15824
- {item.progress}%&nbsp;&bull;&nbsp;
15825
- {getTimeRemaining(item.progress)}
15822
+ {item.progress}%
15826
15823
  </p>
15827
15824
  )}
15828
15825
  {item.status === "error" && (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "myoperator-ui",
3
- "version": "0.0.227",
3
+ "version": "0.0.228",
4
4
  "description": "CLI for adding myOperator UI components to your project",
5
5
  "type": "module",
6
6
  "exports": "./dist/index.js",