@opensumi/ide-components 3.4.6-next-1730442794.0 → 3.4.6-next-1730692409.0

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.css CHANGED
@@ -339,7 +339,7 @@
339
339
  }
340
340
  .kt-dialog-content .kt-dialog-content_area .kt-dialog-content_title {
341
341
  line-height: 22px;
342
- font-size: 14px;
342
+ font-size: 15px;
343
343
  margin: 0px 0px 8px 0px;
344
344
  }
345
345
  .kt-dialog-content .kt-dialog-icon {
@@ -932,7 +932,7 @@
932
932
  overflow: hidden;
933
933
  text-overflow: ellipsis;
934
934
  padding: 0 5px;
935
- box-sizing: border-box;
935
+ box-sizing: content-box;
936
936
  display: inline-block;
937
937
  }
938
938
  .kt-overlay.kt-modal {
@@ -1033,9 +1033,9 @@
1033
1033
  .kt-popover-placement-top .kt-popover-arrow,
1034
1034
  .kt-popover-placement-topLeft .kt-popover-arrow,
1035
1035
  .kt-popover-placement-topRight .kt-popover-arrow {
1036
- bottom: 4px;
1037
- margin-left: -5px;
1038
- border-width: 5px 5px 0;
1036
+ margin-left: -6px;
1037
+ margin-bottom: 1px;
1038
+ border-width: 6px 6px 0;
1039
1039
  border-top-color: var(--kt-popover-background);
1040
1040
  }
1041
1041
  .kt-popover-placement-top .kt-popover-arrow {
@@ -2904,7 +2904,7 @@
2904
2904
  }
2905
2905
  .kt-dialog-content .kt-dialog-content_area .kt-dialog-content_title {
2906
2906
  line-height: 22px;
2907
- font-size: 14px;
2907
+ font-size: 15px;
2908
2908
  margin: 0px 0px 8px 0px;
2909
2909
  }
2910
2910
  .kt-dialog-content .kt-dialog-icon {
@@ -3195,7 +3195,7 @@
3195
3195
  overflow: hidden;
3196
3196
  text-overflow: ellipsis;
3197
3197
  padding: 0 5px;
3198
- box-sizing: border-box;
3198
+ box-sizing: content-box;
3199
3199
  display: inline-block;
3200
3200
  }
3201
3201
 
@@ -3275,9 +3275,9 @@
3275
3275
  .kt-popover-placement-top .kt-popover-arrow,
3276
3276
  .kt-popover-placement-topLeft .kt-popover-arrow,
3277
3277
  .kt-popover-placement-topRight .kt-popover-arrow {
3278
- bottom: 4px;
3279
- margin-left: -5px;
3280
- border-width: 5px 5px 0;
3278
+ margin-left: -6px;
3279
+ margin-bottom: 1px;
3280
+ border-width: 6px 6px 0;
3281
3281
  border-top-color: var(--kt-popover-background);
3282
3282
  }
3283
3283
  .kt-popover-placement-top .kt-popover-arrow {
package/dist/index.js CHANGED
@@ -5286,7 +5286,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexpo
5286
5286
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
5287
5287
 
5288
5288
  "use strict";
5289
- eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.Dialog = exports.DialogContent = void 0;\nconst tslib_1 = __webpack_require__(/*! tslib */ \"../../node_modules/tslib/tslib.es6.mjs\");\nconst classnames_1 = tslib_1.__importDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nconst react_1 = tslib_1.__importDefault(__webpack_require__(/*! react */ \"../../node_modules/react/index.js\"));\nconst ide_core_common_1 = __webpack_require__(/*! @opensumi/ide-core-common */ \"../core-common/lib/index.js\");\nconst button_1 = __webpack_require__(/*! ../button */ \"./src/button/index.tsx\");\nconst common_1 = __webpack_require__(/*! ../common */ \"./src/common.ts\");\nconst icon_1 = __webpack_require__(/*! ../icon */ \"./src/icon/index.ts\");\nconst overlay_1 = __webpack_require__(/*! ../overlay */ \"./src/overlay/index.tsx\");\n__webpack_require__(/*! ./styles.less */ \"./src/dialog/styles.less\");\nconst DefaultButtons = ({ onCancel, onOk, cancelText, okText }) => (react_1.default.createElement(react_1.default.Fragment, null,\n react_1.default.createElement(button_1.Button, { onClick: onCancel, type: 'secondary' }, cancelText || (0, ide_core_common_1.localize)('ButtonCancel')),\n react_1.default.createElement(button_1.Button, { onClick: onOk }, okText || (0, ide_core_common_1.localize)('ButtonOK'))));\nconst DialogContent = ({ onClose, closable, messageType = common_1.MessageType.Info, icon, message, buttons, type = 'confirm', title, onOk, onCancel, okText, cancelText, }) => {\n const { getIcon: getContextIcon } = react_1.default.useContext(icon_1.IconContext);\n return (react_1.default.createElement(react_1.default.Fragment, null,\n react_1.default.createElement(\"div\", { className: 'kt-dialog-content' },\n icon && (react_1.default.createElement(\"div\", { style: { color: icon.color }, className: (0, classnames_1.default)('kt-dialog-icon', (0, icon_1.getIcon)(icon.className) || getContextIcon(icon.className)) })),\n react_1.default.createElement(\"div\", { className: 'kt-dialog-content_area' },\n type !== 'basic' && title && react_1.default.createElement(\"p\", { className: 'kt-dialog-content_title' }, title),\n react_1.default.createElement(\"span\", { className: 'kt-dialog-message' }, message)),\n closable && type !== 'basic' && (react_1.default.createElement(\"button\", { className: (0, classnames_1.default)('kt-dialog-closex', (0, icon_1.getIcon)('close')), onClick: onClose }))),\n messageType !== common_1.MessageType.Empty && type !== 'basic' && (react_1.default.createElement(\"div\", { className: 'kt-dialog-buttonWrap' }, type === 'confirm' ? (buttons || react_1.default.createElement(DefaultButtons, { onCancel: onCancel, onOk: onOk, okText: okText, cancelText: cancelText })) : (react_1.default.createElement(button_1.Button, { onClick: onClose }, \"OK\"))))));\n};\nexports.DialogContent = DialogContent;\nconst Dialog = (_a) => {\n var { visible, onClose, closable, afterClose, messageType, icon, message, buttons, type = 'confirm', title, onOk, onCancel, okText, cancelText, getContainer, keyboard } = _a, restProps = tslib_1.__rest(_a, [\"visible\", \"onClose\", \"closable\", \"afterClose\", \"messageType\", \"icon\", \"message\", \"buttons\", \"type\", \"title\", \"onOk\", \"onCancel\", \"okText\", \"cancelText\", \"getContainer\", \"keyboard\"]);\n return (react_1.default.createElement(overlay_1.Overlay, Object.assign({ visible: visible, onClose: onClose, title: type === 'basic' ? title : null, closable: type === 'basic', getContainer: getContainer, keyboard: keyboard, footer: type === 'basic'\n ? buttons || react_1.default.createElement(DefaultButtons, { onCancel: onCancel, onOk: onOk, okText: okText, cancelText: cancelText })\n : undefined, afterClose: afterClose }, restProps),\n react_1.default.createElement(exports.DialogContent, Object.assign({ message: message, buttons: buttons, visible: visible }, restProps))));\n};\nexports.Dialog = Dialog;\n\n\n//# sourceURL=webpack://@opensumi/ide-components/./src/dialog/index.tsx?");
5289
+ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.Dialog = exports.DialogContent = void 0;\nconst tslib_1 = __webpack_require__(/*! tslib */ \"../../node_modules/tslib/tslib.es6.mjs\");\nconst classnames_1 = tslib_1.__importDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nconst react_1 = tslib_1.__importDefault(__webpack_require__(/*! react */ \"../../node_modules/react/index.js\"));\nconst ide_core_common_1 = __webpack_require__(/*! @opensumi/ide-core-common */ \"../core-common/lib/index.js\");\nconst button_1 = __webpack_require__(/*! ../button */ \"./src/button/index.tsx\");\nconst common_1 = __webpack_require__(/*! ../common */ \"./src/common.ts\");\nconst icon_1 = __webpack_require__(/*! ../icon */ \"./src/icon/index.ts\");\nconst overlay_1 = __webpack_require__(/*! ../overlay */ \"./src/overlay/index.tsx\");\n__webpack_require__(/*! ./styles.less */ \"./src/dialog/styles.less\");\nconst DefaultButtons = ({ onCancel, onOk, cancelText, okText }) => (react_1.default.createElement(react_1.default.Fragment, null,\n react_1.default.createElement(button_1.Button, { onClick: onCancel, type: 'secondary' }, cancelText || (0, ide_core_common_1.localize)('ButtonCancel')),\n react_1.default.createElement(button_1.Button, { onClick: onOk }, okText || (0, ide_core_common_1.localize)('ButtonOK'))));\nconst DialogContent = ({ onClose, closable, type = 'confirm', messageType = common_1.MessageType.Info, icon, message, buttons, title, onOk, onCancel, okText, cancelText, }) => {\n const { getIcon: getContextIcon } = react_1.default.useContext(icon_1.IconContext);\n return (react_1.default.createElement(react_1.default.Fragment, null,\n react_1.default.createElement(\"div\", { className: 'kt-dialog-content' },\n icon && (react_1.default.createElement(\"div\", { style: { color: icon.color }, className: (0, classnames_1.default)('kt-dialog-icon', (0, icon_1.getIcon)(icon.className) || getContextIcon(icon.className)) })),\n react_1.default.createElement(\"div\", { className: 'kt-dialog-content_area' },\n react_1.default.createElement(\"p\", { className: 'kt-dialog-content_title' }, title),\n message && react_1.default.createElement(\"span\", { className: 'kt-dialog-message' }, message)),\n closable && type !== 'basic' && (react_1.default.createElement(\"button\", { className: (0, classnames_1.default)('kt-dialog-closex', (0, icon_1.getIcon)('close')), onClick: onClose }))),\n messageType !== common_1.MessageType.Empty && type !== 'basic' && (react_1.default.createElement(\"div\", { className: 'kt-dialog-buttonWrap' }, type === 'confirm' ? (buttons || react_1.default.createElement(DefaultButtons, { onCancel: onCancel, onOk: onOk, okText: okText, cancelText: cancelText })) : (react_1.default.createElement(button_1.Button, { onClick: onClose }, \"OK\"))))));\n};\nexports.DialogContent = DialogContent;\nconst Dialog = (_a) => {\n var { visible, onClose, closable, afterClose, messageType, icon, message, detail, buttons, type = 'confirm', title, onOk, onCancel, okText, cancelText, getContainer, keyboard } = _a, restProps = tslib_1.__rest(_a, [\"visible\", \"onClose\", \"closable\", \"afterClose\", \"messageType\", \"icon\", \"message\", \"detail\", \"buttons\", \"type\", \"title\", \"onOk\", \"onCancel\", \"okText\", \"cancelText\", \"getContainer\", \"keyboard\"]);\n return (react_1.default.createElement(overlay_1.Overlay, Object.assign({ visible: visible, onClose: onClose, title: type === 'basic' ? title : null, closable: type === 'basic', getContainer: getContainer, keyboard: keyboard, footer: type === 'basic'\n ? buttons || react_1.default.createElement(DefaultButtons, { onCancel: onCancel, onOk: onOk, okText: okText, cancelText: cancelText })\n : undefined, afterClose: afterClose }, restProps),\n react_1.default.createElement(exports.DialogContent, Object.assign({ title: message, message: detail, buttons: buttons, visible: visible, icon: icon }, restProps))));\n};\nexports.Dialog = Dialog;\n\n\n//# sourceURL=webpack://@opensumi/ide-components/./src/dialog/index.tsx?");
5290
5290
 
5291
5291
  /***/ }),
5292
5292
 
@@ -5594,7 +5594,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexpo
5594
5594
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
5595
5595
 
5596
5596
  "use strict";
5597
- eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.Popover = exports.PopoverPosition = exports.PopoverTriggerType = void 0;\nconst tslib_1 = __webpack_require__(/*! tslib */ \"../../node_modules/tslib/tslib.es6.mjs\");\nconst classnames_1 = tslib_1.__importDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nconst rc_tooltip_1 = tslib_1.__importDefault(__webpack_require__(/*! rc-tooltip */ \"../../node_modules/rc-tooltip/es/index.js\"));\nconst react_1 = tslib_1.__importStar(__webpack_require__(/*! react */ \"../../node_modules/react/index.js\"));\n__webpack_require__(/*! ./styles.less */ \"./src/popover/styles.less\");\nconst button_1 = __webpack_require__(/*! ../button */ \"./src/button/index.tsx\");\nvar PopoverTriggerType;\n(function (PopoverTriggerType) {\n PopoverTriggerType[\"hover\"] = \"hover\";\n PopoverTriggerType[\"click\"] = \"click\";\n PopoverTriggerType[\"focus\"] = \"focus\";\n})(PopoverTriggerType = exports.PopoverTriggerType || (exports.PopoverTriggerType = {}));\nvar PopoverPosition;\n(function (PopoverPosition) {\n PopoverPosition[\"top\"] = \"top\";\n PopoverPosition[\"bottom\"] = \"bottom\";\n PopoverPosition[\"left\"] = \"left\";\n PopoverPosition[\"right\"] = \"right\";\n PopoverPosition[\"topLeft\"] = \"topLeft\";\n PopoverPosition[\"topRight\"] = \"topRight\";\n PopoverPosition[\"bottomLeft\"] = \"bottomLeft\";\n PopoverPosition[\"bottomRight\"] = \"bottomRight\";\n PopoverPosition[\"leftTop\"] = \"leftTop\";\n PopoverPosition[\"leftBottom\"] = \"leftBottom\";\n PopoverPosition[\"rightTop\"] = \"rightTop\";\n PopoverPosition[\"rightBottom\"] = \"rightBottom\";\n})(PopoverPosition = exports.PopoverPosition || (exports.PopoverPosition = {}));\nconst Popover = (_a) => {\n var { children, trigger = PopoverTriggerType.hover, visible, content, position = PopoverPosition.top, showArrow = true, title, titleClassName, overlay, overlayClassName, overlayStyle, action, delay, zIndex = 1000, onClickAction, onVisibleChange } = _a, restProps = tslib_1.__rest(_a, [\"children\", \"trigger\", \"visible\", \"content\", \"position\", \"showArrow\", \"title\", \"titleClassName\", \"overlay\", \"overlayClassName\", \"overlayStyle\", \"action\", \"delay\", \"zIndex\", \"onClickAction\", \"onVisibleChange\"]);\n const handleActionClick = (0, react_1.useCallback)((event) => {\n if (onClickAction) {\n onClickAction(event);\n }\n }, [onClickAction]);\n const overlayContent = (0, react_1.useMemo)(() => {\n if (overlay) {\n return overlay;\n }\n else {\n if (!title && !content) {\n return null;\n }\n return (react_1.default.createElement(react_1.default.Fragment, null,\n title && (react_1.default.createElement(\"p\", { className: (0, classnames_1.default)('kt-popover-title', titleClassName) },\n title,\n action && (react_1.default.createElement(button_1.Button, { size: 'small', type: 'link', onClick: handleActionClick }, action)))),\n content || ''));\n }\n }, [overlay, content, action, handleActionClick]);\n if (!overlayContent) {\n return children;\n }\n return (react_1.default.createElement(rc_tooltip_1.default, Object.assign({}, restProps, { visible: visible, placement: position, mouseEnterDelay: delay ? delay / 1000 : undefined, trigger: trigger, showArrow: showArrow, onVisibleChange: onVisibleChange, overlayClassName: overlayClassName, prefixCls: 'kt-popover', overlayStyle: overlayStyle, overlay: overlayContent, zIndex: zIndex }),\n react_1.default.createElement(\"div\", { className: 'kt-popover-trigger' }, children)));\n};\nexports.Popover = Popover;\n\n\n//# sourceURL=webpack://@opensumi/ide-components/./src/popover/index.tsx?");
5597
+ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.Popover = exports.PopoverPosition = exports.PopoverTriggerType = void 0;\nconst tslib_1 = __webpack_require__(/*! tslib */ \"../../node_modules/tslib/tslib.es6.mjs\");\nconst classnames_1 = tslib_1.__importDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nconst rc_tooltip_1 = tslib_1.__importDefault(__webpack_require__(/*! rc-tooltip */ \"../../node_modules/rc-tooltip/es/index.js\"));\nconst react_1 = tslib_1.__importStar(__webpack_require__(/*! react */ \"../../node_modules/react/index.js\"));\n__webpack_require__(/*! ./styles.less */ \"./src/popover/styles.less\");\nconst button_1 = __webpack_require__(/*! ../button */ \"./src/button/index.tsx\");\nvar PopoverTriggerType;\n(function (PopoverTriggerType) {\n PopoverTriggerType[\"hover\"] = \"hover\";\n PopoverTriggerType[\"click\"] = \"click\";\n PopoverTriggerType[\"focus\"] = \"focus\";\n})(PopoverTriggerType = exports.PopoverTriggerType || (exports.PopoverTriggerType = {}));\nvar PopoverPosition;\n(function (PopoverPosition) {\n PopoverPosition[\"top\"] = \"top\";\n PopoverPosition[\"bottom\"] = \"bottom\";\n PopoverPosition[\"left\"] = \"left\";\n PopoverPosition[\"right\"] = \"right\";\n PopoverPosition[\"topLeft\"] = \"topLeft\";\n PopoverPosition[\"topRight\"] = \"topRight\";\n PopoverPosition[\"bottomLeft\"] = \"bottomLeft\";\n PopoverPosition[\"bottomRight\"] = \"bottomRight\";\n PopoverPosition[\"leftTop\"] = \"leftTop\";\n PopoverPosition[\"leftBottom\"] = \"leftBottom\";\n PopoverPosition[\"rightTop\"] = \"rightTop\";\n PopoverPosition[\"rightBottom\"] = \"rightBottom\";\n})(PopoverPosition = exports.PopoverPosition || (exports.PopoverPosition = {}));\nconst Popover = (_a) => {\n var { children, trigger = PopoverTriggerType.hover, visible, content, position = PopoverPosition.top, showArrow = true, title, titleClassName, overlay, overlayClassName, overlayStyle, action, delay, zIndex = 1000, onClickAction, onVisibleChange, getTooltipContainer } = _a, restProps = tslib_1.__rest(_a, [\"children\", \"trigger\", \"visible\", \"content\", \"position\", \"showArrow\", \"title\", \"titleClassName\", \"overlay\", \"overlayClassName\", \"overlayStyle\", \"action\", \"delay\", \"zIndex\", \"onClickAction\", \"onVisibleChange\", \"getTooltipContainer\"]);\n const handleActionClick = (0, react_1.useCallback)((event) => {\n if (onClickAction) {\n onClickAction(event);\n }\n }, [onClickAction]);\n const overlayContent = (0, react_1.useMemo)(() => {\n if (overlay) {\n return overlay;\n }\n else {\n if (!title && !content) {\n return null;\n }\n return (react_1.default.createElement(react_1.default.Fragment, null,\n title && (react_1.default.createElement(\"p\", { className: (0, classnames_1.default)('kt-popover-title', titleClassName) },\n title,\n action && (react_1.default.createElement(button_1.Button, { size: 'small', type: 'link', onClick: handleActionClick }, action)))),\n content || ''));\n }\n }, [overlay, content, action, handleActionClick]);\n if (!overlayContent) {\n return children;\n }\n return (react_1.default.createElement(rc_tooltip_1.default, Object.assign({}, restProps, { visible: visible, placement: position, mouseEnterDelay: delay ? delay / 1000 : undefined, trigger: trigger, showArrow: showArrow, onVisibleChange: onVisibleChange, overlayClassName: overlayClassName, prefixCls: 'kt-popover', overlayStyle: overlayStyle, getTooltipContainer: getTooltipContainer, overlay: overlayContent, zIndex: zIndex }),\n react_1.default.createElement(\"div\", { className: 'kt-popover-trigger' }, children)));\n};\nexports.Popover = Popover;\n\n\n//# sourceURL=webpack://@opensumi/ide-components/./src/popover/index.tsx?");
5598
5598
 
5599
5599
  /***/ }),
5600
5600
 
@@ -13,6 +13,7 @@ export interface IDialogProps extends IOverlayProps {
13
13
  type?: ModalType;
14
14
  icon?: IconDesc;
15
15
  message: string | React.ReactNode;
16
+ detail?: string;
16
17
  buttons?: JSX.Element[] | JSX.Element;
17
18
  closable?: boolean;
18
19
  onOk?: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dialog/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC,OAAO,EAAE,aAAa,EAAW,MAAM,YAAY,CAAC;AAEpD,OAAO,eAAe,CAAC;AAEvB,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;AAErD,MAAM,WAAW,QAAQ;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S,EAAE,MAAM,CAAC;CACnB;AAED,OAAO,MAAM,gBAAgB,GAAG,MAAM,WAAW,CAAC;AAElD,MAAM,WAAW,YAAa,SAAQ,aAAa;IACjD,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,OAAO,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,GAAG,CAAC,OAAO,CAAC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,IAAI,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,gBAAgB,GAAG,KAAK,GAAG,IAAI,CAAC;IACtE,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAWD,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CA4ChD,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAqCzC,CAAC"}
@@ -13,24 +13,24 @@ require("./styles.less");
13
13
  const DefaultButtons = ({ onCancel, onOk, cancelText, okText }) => (react_1.default.createElement(react_1.default.Fragment, null,
14
14
  react_1.default.createElement(button_1.Button, { onClick: onCancel, type: 'secondary' }, cancelText || (0, ide_core_common_1.localize)('ButtonCancel')),
15
15
  react_1.default.createElement(button_1.Button, { onClick: onOk }, okText || (0, ide_core_common_1.localize)('ButtonOK'))));
16
- const DialogContent = ({ onClose, closable, messageType = common_1.MessageType.Info, icon, message, buttons, type = 'confirm', title, onOk, onCancel, okText, cancelText, }) => {
16
+ const DialogContent = ({ onClose, closable, type = 'confirm', messageType = common_1.MessageType.Info, icon, message, buttons, title, onOk, onCancel, okText, cancelText, }) => {
17
17
  const { getIcon: getContextIcon } = react_1.default.useContext(icon_1.IconContext);
18
18
  return (react_1.default.createElement(react_1.default.Fragment, null,
19
19
  react_1.default.createElement("div", { className: 'kt-dialog-content' },
20
20
  icon && (react_1.default.createElement("div", { style: { color: icon.color }, className: (0, classnames_1.default)('kt-dialog-icon', (0, icon_1.getIcon)(icon.className) || getContextIcon(icon.className)) })),
21
21
  react_1.default.createElement("div", { className: 'kt-dialog-content_area' },
22
- type !== 'basic' && title && react_1.default.createElement("p", { className: 'kt-dialog-content_title' }, title),
23
- react_1.default.createElement("span", { className: 'kt-dialog-message' }, message)),
22
+ react_1.default.createElement("p", { className: 'kt-dialog-content_title' }, title),
23
+ message && react_1.default.createElement("span", { className: 'kt-dialog-message' }, message)),
24
24
  closable && type !== 'basic' && (react_1.default.createElement("button", { className: (0, classnames_1.default)('kt-dialog-closex', (0, icon_1.getIcon)('close')), onClick: onClose }))),
25
25
  messageType !== common_1.MessageType.Empty && type !== 'basic' && (react_1.default.createElement("div", { className: 'kt-dialog-buttonWrap' }, type === 'confirm' ? (buttons || react_1.default.createElement(DefaultButtons, { onCancel: onCancel, onOk: onOk, okText: okText, cancelText: cancelText })) : (react_1.default.createElement(button_1.Button, { onClick: onClose }, "OK"))))));
26
26
  };
27
27
  exports.DialogContent = DialogContent;
28
28
  const Dialog = (_a) => {
29
- var { visible, onClose, closable, afterClose, messageType, icon, message, buttons, type = 'confirm', title, onOk, onCancel, okText, cancelText, getContainer, keyboard } = _a, restProps = tslib_1.__rest(_a, ["visible", "onClose", "closable", "afterClose", "messageType", "icon", "message", "buttons", "type", "title", "onOk", "onCancel", "okText", "cancelText", "getContainer", "keyboard"]);
29
+ var { visible, onClose, closable, afterClose, messageType, icon, message, detail, buttons, type = 'confirm', title, onOk, onCancel, okText, cancelText, getContainer, keyboard } = _a, restProps = tslib_1.__rest(_a, ["visible", "onClose", "closable", "afterClose", "messageType", "icon", "message", "detail", "buttons", "type", "title", "onOk", "onCancel", "okText", "cancelText", "getContainer", "keyboard"]);
30
30
  return (react_1.default.createElement(overlay_1.Overlay, Object.assign({ visible: visible, onClose: onClose, title: type === 'basic' ? title : null, closable: type === 'basic', getContainer: getContainer, keyboard: keyboard, footer: type === 'basic'
31
31
  ? buttons || react_1.default.createElement(DefaultButtons, { onCancel: onCancel, onOk: onOk, okText: okText, cancelText: cancelText })
32
32
  : undefined, afterClose: afterClose }, restProps),
33
- react_1.default.createElement(exports.DialogContent, Object.assign({ message: message, buttons: buttons, visible: visible }, restProps))));
33
+ react_1.default.createElement(exports.DialogContent, Object.assign({ title: message, message: detail, buttons: buttons, visible: visible, icon: icon }, restProps))));
34
34
  };
35
35
  exports.Dialog = Dialog;
36
36
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dialog/index.tsx"],"names":[],"mappings":";;;;AAAA,oEAA6B;AAC7B,0DAA0B;AAE1B,+DAAqD;AAErD,sCAAmC;AACnC,sCAAwC;AACxC,kCAA+C;AAC/C,wCAAoD;AAEpD,yBAAuB;AA0BvB,MAAM,cAAc,GAAG,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CACjE;IACE,8BAAC,eAAM,IAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAC,WAAW,IACxC,UAAU,IAAI,IAAA,0BAAQ,EAAC,cAAc,CAAC,CAChC;IACT,8BAAC,eAAM,IAAC,OAAO,EAAE,IAAI,IAAG,MAAM,IAAI,IAAA,0BAAQ,EAAC,UAAU,CAAC,CAAU,CAC/D,CACJ,CAAC;AAEK,MAAM,aAAa,GAA2B,CAAC,EACpD,OAAO,EACP,QAAQ,EACR,WAAW,GAAG,oBAAW,CAAC,IAAI,EAC9B,IAAI,EACJ,OAAO,EACP,OAAO,E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U,EAAE,UAAU,IAClB,SAAS;QAEb,8BAAC,qBAAa,kBAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,IAAM,SAAS,EAAI,CACzG,CACX,CAAA;CAAA,CAAC;AArCW,QAAA,MAAM,UAqCjB"}
@@ -36,7 +36,7 @@
36
36
 
37
37
  .@{prefix}-dialog-content_title {
38
38
  line-height: 22px;
39
- font-size: 14px;
39
+ font-size: 15px;
40
40
  margin: 0px 0px 8px 0px;
41
41
  }
42
42
  }
@@ -252,7 +252,7 @@
252
252
  overflow: hidden;
253
253
  text-overflow: ellipsis;
254
254
  padding: 0 5px;
255
- box-sizing: border-box;
255
+ box-sizing: content-box;
256
256
  display: inline-block;
257
257
  }
258
258
  }
@@ -37,6 +37,7 @@ export interface IPopoverProps {
37
37
  zIndex?: number;
38
38
  onClickAction?: (args: any) => void;
39
39
  onVisibleChange?: (visible: boolean) => void;
40
+ getTooltipContainer?: (triggerNode: HTMLElement) => HTMLElement;
40
41
  [key: string]: any;
41
42
  }
42
43
  export declare const Popover: React.FC<IPopoverProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/popover/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,eAAe,CAAC;AAIvB,oBAAY,kBAAkB;IAC5B,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;CAChB;AAED,oBAAY,eAAe;IACzB,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,QAAQ,aAAa;IACrB,WAAW,gBAAgB;CAC5B;AAED,MAAM,WAA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verPosition || (exports.PopoverPosition = {}));
31
31
  const Popover = (_a) => {
32
- var { children, trigger = PopoverTriggerType.hover, visible, content, position = PopoverPosition.top, showArrow = true, title, titleClassName, overlay, overlayClassName, overlayStyle, action, delay, zIndex = 1000, onClickAction, onVisibleChange } = _a, restProps = tslib_1.__rest(_a, ["children", "trigger", "visible", "content", "position", "showArrow", "title", "titleClassName", "overlay", "overlayClassName", "overlayStyle", "action", "delay", "zIndex", "onClickAction", "onVisibleChange"]);
32
+ var { children, trigger = PopoverTriggerType.hover, visible, content, position = PopoverPosition.top, showArrow = true, title, titleClassName, overlay, overlayClassName, overlayStyle, action, delay, zIndex = 1000, onClickAction, onVisibleChange, getTooltipContainer } = _a, restProps = tslib_1.__rest(_a, ["children", "trigger", "visible", "content", "position", "showArrow", "title", "titleClassName", "overlay", "overlayClassName", "overlayStyle", "action", "delay", "zIndex", "onClickAction", "onVisibleChange", "getTooltipContainer"]);
33
33
  const handleActionClick = (0, react_1.useCallback)((event) => {
34
34
  if (onClickAction) {
35
35
  onClickAction(event);
@@ -53,7 +53,7 @@ const Popover = (_a) => {
53
53
  if (!overlayContent) {
54
54
  return children;
55
55
  }
56
- return (react_1.default.createElement(rc_tooltip_1.default, Object.assign({}, restProps, { visible: visible, placement: position, mouseEnterDelay: delay ? delay / 1000 : undefined, trigger: trigger, showArrow: showArrow, onVisibleChange: onVisibleChange, overlayClassName: overlayClassName, prefixCls: 'kt-popover', overlayStyle: overlayStyle, overlay: overlayContent, zIndex: zIndex }),
56
+ return (react_1.default.createElement(rc_tooltip_1.default, Object.assign({}, restProps, { visible: visible, placement: position, mouseEnterDelay: delay ? delay / 1000 : undefined, trigger: trigger, showArrow: showArrow, onVisibleChange: onVisibleChange, overlayClassName: overlayClassName, prefixCls: 'kt-popover', overlayStyle: overlayStyle, getTooltipContainer: getTooltipContainer, overlay: overlayContent, zIndex: zIndex }),
57
57
  react_1.default.createElement("div", { className: 'kt-popover-trigger' }, children)));
58
58
  };
59
59
  exports.Popover = Popover;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/popover/index.tsx"],"names":[],"mappings":";;;;AAAA,oEAA6B;AAC7B,oEAAiC;AACjC,uDAAoD;AAEpD,yBAAuB;AAEvB,sCAAmC;AAEnC,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,qCAAe,CAAA;IACf,qCAAe,CAAA;IACf,qCAAe,CAAA;AACjB,CAAC,EAJW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAI7B;AAED,IAAY,eAaX;AAbD,WAAY,eAAe;IACzB,8BAAW,CAAA;IACX,oCAAiB,CAAA;IACjB,gCAAa,CAAA;IACb,kCAAe,CAAA;IACf,sCAAmB,CAAA;IACnB,wCAAqB,CAAA;IACrB,4CAAyB,CAAA;IACzB,8CAA2B,CAAA;IAC3B,sCAAmB,CAAA;IACnB,4CAAyB,CAAA;IACzB,wCAAqB,CAAA;IACrB,8CAA2B,CAAA;AAC7B,CAAC,EAbW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAa1B;AAuBM,MAAM,OAAO,GAA4B,CAAC,EAkBhD,EAAE,EAAE;QAlB4C,EAC/C,QAAQ,EACR,OAAO,GAAG,kBAAkB,CAAC,KAAK,EAClC,OAAO,EACP,OAAO,EACP,QAAQ,GAAG,eAAe,CAAC,GAAG,EAC9B,SAAS,GAAG,IAAI,EAChB,KAAK,EACL,cAAc,EACd,OAAO,EACP,gBAAgB,EAChB,YAAY,EACZ,MAAM,EACN,KAAK,EACL,MAAM,GAAG,IAAI,EACb,aAAa,EACb,eAAe,OAEhB,EADI,SAAS,sBAjBmC,iNAkBhD,CADa;IAEZ,MAAM,iBAAiB,GAAG,IAAA,mBAAW,EACnC,CAAC,KAAuB,EAAE,EAAE;QAC1B,IAAI,aAAa,EAAE;YACjB,aAAa,CAAC,KAAK,CAAC,CAAC;SACtB;IACH,CAAC,EACD,CAAC,aAAa,CAAC,CAChB,CAAC;IAEF,MAAM,cAAc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,CAAC,OAAO,EAAE;gBACtB,OAAO,IAAI,CAAC;aACb;YACD,OAAO,CACL;gBACG,KAAK,IAAI,CACR,qCAAG,SAAS,EAAE,IAAA,oBAAG,EAAC,kBAAkB,EAAE,cAAc,CAAC;oBAClD,KAAK;oBACL,MAAM,IAAI,CACT,8BAAC,eAAM,IAAC,IAAI,EAAC,OAAO,EAAC,IAAI,EAAC,MAAM,EAAC,OAAO,EAAE,iBAAiB,IACxD,MAAM,CACA,CACV,CACC,CACL;gBACA,OAAO,IAAI,EAAE,CACb,CACJ,CAAC;SACH;IACH,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,iBAAiB,CAAC,CAAC,CAAC;IAElD,IAAI,CAAC,cAAc,EAAE;QACnB,OAAO,QAAQ,CAAC;KACjB;IAED,OAAO,CACL,8BAAC,oBAAO,oBACF,SAAS,IACb,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,QAAQ,EACnB,eAAe,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,SAAS,EACjD,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,SAAS,EACpB,eAAe,EAAE,eAAe,EAChC,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,EAAC,YAAY,EACtB,YAAY,EAAE,YAAY,EAC1B,mBAAmB,EAAE,mBAAmB,EACxC,OAAO,EAAE,cAAc,EACvB,MAAM,EAAE,MAAM;QAEd,uCAAK,SAAS,EAAC,oBAAoB,IAAE,QAAQ,CAAO,CAC5C,CACX,CAAC;AACJ,CAAC,CAAC;AA7EW,QAAA,OAAO,WA6ElB"}
@@ -79,9 +79,9 @@
79
79
  .@{prefix}-popover-placement-top .@{prefix}-popover-arrow,
80
80
  .@{prefix}-popover-placement-topLeft .@{prefix}-popover-arrow,
81
81
  .@{prefix}-popover-placement-topRight .@{prefix}-popover-arrow {
82
- bottom: 4px;
83
- margin-left: -5px;
84
- border-width: 5px 5px 0;
82
+ margin-left: -6px;
83
+ margin-bottom: 1px;
84
+ border-width: 6px 6px 0;
85
85
  border-top-color: var(--kt-popover-background);
86
86
  }
87
87
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensumi/ide-components",
3
- "version": "3.4.6-next-1730442794.0",
3
+ "version": "3.4.6-next-1730692409.0",
4
4
  "description": "@opensumi/ide-components",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",
@@ -16,8 +16,8 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "@ant-design/icons": "^4.6.4",
19
- "@opensumi/ide-core-common": "3.4.6-next-1730442794.0",
20
- "@opensumi/ide-utils": "3.4.6-next-1730442794.0",
19
+ "@opensumi/ide-core-common": "3.4.6-next-1730692409.0",
20
+ "@opensumi/ide-utils": "3.4.6-next-1730692409.0",
21
21
  "@opensumi/react-custom-scrollbars-2": "^4.3.4",
22
22
  "@rc-component/mini-decimal": "^1.0.1",
23
23
  "fuzzy": "^0.1.3",
@@ -38,10 +38,10 @@
38
38
  "react-window": "^1.8.5"
39
39
  },
40
40
  "devDependencies": {
41
- "@opensumi/ide-dev-tool": "3.4.6-next-1730442794.0",
41
+ "@opensumi/ide-dev-tool": "3.4.6-next-1730692409.0",
42
42
  "@types/marked": "^4.0.7",
43
43
  "@types/react-window": "^1.8.5",
44
44
  "prop-types": "^15.8.1"
45
45
  },
46
- "gitHead": "759dad7d4dfb6077148f031bfbf0f29a26a88635"
46
+ "gitHead": "c24cd87e36a803b6cddd66d975610fc31697066d"
47
47
  }