myoperator-mcp 0.2.391 → 0.2.392
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 +2 -23
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3651,16 +3651,12 @@ export interface DateTimePickerProps
|
|
|
3651
3651
|
defaultOpen?: boolean;
|
|
3652
3652
|
onOpenChange?: (open: boolean) => void;
|
|
3653
3653
|
portalContainer?: HTMLElement | null;
|
|
3654
|
-
/** Shows a footer with
|
|
3654
|
+
/** Shows a footer with Cancel and OK actions */
|
|
3655
3655
|
showActions?: boolean;
|
|
3656
3656
|
/** Label for the OK action */
|
|
3657
3657
|
okLabel?: string;
|
|
3658
3658
|
/** Label for the Cancel action */
|
|
3659
3659
|
cancelLabel?: string;
|
|
3660
|
-
/** Label for the extra (left-aligned) action. Defaults to "Clear" */
|
|
3661
|
-
extraActionLabel?: string;
|
|
3662
|
-
/** Overrides the extra action. Defaults to clearing the value */
|
|
3663
|
-
onExtraAction?: () => void;
|
|
3664
3660
|
/** Called when OK is pressed, with the confirmed value */
|
|
3665
3661
|
onOk?: (value: DateTimePickerValue) => void;
|
|
3666
3662
|
/** Called when Cancel is pressed, after the value is restored */
|
|
@@ -4976,8 +4972,6 @@ const DateTimePicker = React.forwardRef<HTMLDivElement, DateTimePickerProps>(
|
|
|
4976
4972
|
showActions = false,
|
|
4977
4973
|
okLabel = "OK",
|
|
4978
4974
|
cancelLabel = "Cancel",
|
|
4979
|
-
extraActionLabel = "Clear",
|
|
4980
|
-
onExtraAction,
|
|
4981
4975
|
onOk,
|
|
4982
4976
|
onCancel,
|
|
4983
4977
|
id,
|
|
@@ -5224,14 +5218,6 @@ const DateTimePicker = React.forwardRef<HTMLDivElement, DateTimePickerProps>(
|
|
|
5224
5218
|
onOk?.(currentValue);
|
|
5225
5219
|
};
|
|
5226
5220
|
|
|
5227
|
-
const handleExtraAction = (event: React.MouseEvent<HTMLElement>) => {
|
|
5228
|
-
if (onExtraAction) {
|
|
5229
|
-
onExtraAction();
|
|
5230
|
-
return;
|
|
5231
|
-
}
|
|
5232
|
-
clearValue(event);
|
|
5233
|
-
};
|
|
5234
|
-
|
|
5235
5221
|
const clearValue = (event: React.MouseEvent<HTMLElement>) => {
|
|
5236
5222
|
event.stopPropagation();
|
|
5237
5223
|
if (readOnly) return;
|
|
@@ -5712,14 +5698,7 @@ const DateTimePicker = React.forwardRef<HTMLDivElement, DateTimePickerProps>(
|
|
|
5712
5698
|
)}
|
|
5713
5699
|
|
|
5714
5700
|
{showActions && (
|
|
5715
|
-
<div className="flex items-center justify-
|
|
5716
|
-
<button
|
|
5717
|
-
type="button"
|
|
5718
|
-
className="rounded px-2 py-1.5 text-sm font-semibold text-[var(--semantic-text-muted,#717680)] transition-colors hover:bg-[var(--semantic-bg-ui,#F5F5F5)] hover:text-[var(--semantic-text-primary,#181D27)]"
|
|
5719
|
-
onClick={handleExtraAction}
|
|
5720
|
-
>
|
|
5721
|
-
{extraActionLabel}
|
|
5722
|
-
</button>
|
|
5701
|
+
<div className="flex items-center justify-end gap-2 border-t border-solid border-[var(--semantic-border-layout,#E9EAEB)] px-3 py-2">
|
|
5723
5702
|
<div className="flex items-center gap-2">
|
|
5724
5703
|
<button
|
|
5725
5704
|
type="button"
|
package/package.json
CHANGED