@opensumi/ide-components 3.5.1-next-1731638201.0 → 3.5.1-next-1731935606.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 +6 -20
- package/dist/index.js +1 -1
- package/lib/dialog/index.js +1 -1
- package/lib/dialog/index.js.map +1 -1
- package/lib/dialog/styles.less +0 -8
- package/lib/overlay/styles.less +3 -3
- package/package.json +5 -5
package/dist/index.css
CHANGED
|
@@ -321,13 +321,6 @@
|
|
|
321
321
|
.wrapper .kticon-info-circle {
|
|
322
322
|
color: var(--kt-modalInfoIcon-foreground);
|
|
323
323
|
}
|
|
324
|
-
.wrapper .kt-modal-close-x {
|
|
325
|
-
margin: 50% 50% 0 0;
|
|
326
|
-
width: 20px;
|
|
327
|
-
height: 20px;
|
|
328
|
-
line-height: 20px;
|
|
329
|
-
color: var(--kt-notificationsCloseIcon-foreground);
|
|
330
|
-
}
|
|
331
324
|
.kt-dialog-content {
|
|
332
325
|
display: flex;
|
|
333
326
|
}
|
|
@@ -959,9 +952,9 @@
|
|
|
959
952
|
border-radius: 0 0 2px 2px;
|
|
960
953
|
}
|
|
961
954
|
.kt-overlay .kt-modal-close-x {
|
|
962
|
-
margin:
|
|
963
|
-
width:
|
|
964
|
-
height:
|
|
955
|
+
margin: 8px 10px 0 0;
|
|
956
|
+
width: 16px;
|
|
957
|
+
height: 16px;
|
|
965
958
|
line-height: 20px;
|
|
966
959
|
color: var(--kt-notificationsCloseIcon-foreground);
|
|
967
960
|
}
|
|
@@ -2864,9 +2857,9 @@
|
|
|
2864
2857
|
border-radius: 0 0 2px 2px;
|
|
2865
2858
|
}
|
|
2866
2859
|
.kt-overlay .kt-modal-close-x {
|
|
2867
|
-
margin:
|
|
2868
|
-
width:
|
|
2869
|
-
height:
|
|
2860
|
+
margin: 8px 10px 0 0;
|
|
2861
|
+
width: 16px;
|
|
2862
|
+
height: 16px;
|
|
2870
2863
|
line-height: 20px;
|
|
2871
2864
|
color: var(--kt-notificationsCloseIcon-foreground);
|
|
2872
2865
|
}
|
|
@@ -2886,13 +2879,6 @@
|
|
|
2886
2879
|
.wrapper .kticon-info-circle {
|
|
2887
2880
|
color: var(--kt-modalInfoIcon-foreground);
|
|
2888
2881
|
}
|
|
2889
|
-
.wrapper .kt-modal-close-x {
|
|
2890
|
-
margin: 50% 50% 0 0;
|
|
2891
|
-
width: 20px;
|
|
2892
|
-
height: 20px;
|
|
2893
|
-
line-height: 20px;
|
|
2894
|
-
color: var(--kt-notificationsCloseIcon-foreground);
|
|
2895
|
-
}
|
|
2896
2882
|
.kt-dialog-content {
|
|
2897
2883
|
display: flex;
|
|
2898
2884
|
}
|
package/dist/index.js
CHANGED
|
@@ -5242,7 +5242,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexpo
|
|
|
5242
5242
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5243
5243
|
|
|
5244
5244
|
"use strict";
|
|
5245
|
-
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(\"
|
|
5245
|
+
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(\"div\", { 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?");
|
|
5246
5246
|
|
|
5247
5247
|
/***/ }),
|
|
5248
5248
|
|
package/lib/dialog/index.js
CHANGED
|
@@ -19,7 +19,7 @@ const DialogContent = ({ onClose, closable, type = 'confirm', messageType = comm
|
|
|
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
|
-
react_1.default.createElement("
|
|
22
|
+
react_1.default.createElement("div", { className: 'kt-dialog-content_title' }, title),
|
|
23
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"))))));
|
package/lib/dialog/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dialog/index.tsx"],"names":[],"mappings":";;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AAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,GAAI;QACvG,CAAC,CAAC,SAAS,EAEf,UAAU,EAAE,UAAU,KAClB,SAAS;IAEb,8BAAC,qBAAa,IAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,KAAM,SAAS,GAAI,CACzG,CACX,CAAC;AArCW,QAAA,MAAM,UAqCjB"}
|
package/lib/dialog/styles.less
CHANGED
|
@@ -15,14 +15,6 @@
|
|
|
15
15
|
.kticon-info-circle {
|
|
16
16
|
color: var(--kt-modalInfoIcon-foreground);
|
|
17
17
|
}
|
|
18
|
-
|
|
19
|
-
.@{prefix}-modal-close-x {
|
|
20
|
-
margin: 50% 50% 0 0;
|
|
21
|
-
width: 20px;
|
|
22
|
-
height: 20px;
|
|
23
|
-
line-height: 20px;
|
|
24
|
-
color: var(--kt-notificationsCloseIcon-foreground);
|
|
25
|
-
}
|
|
26
18
|
}
|
|
27
19
|
|
|
28
20
|
.@{prefix}-dialog-content {
|
package/lib/overlay/styles.less
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opensumi/ide-components",
|
|
3
|
-
"version": "3.5.1-next-
|
|
3
|
+
"version": "3.5.1-next-1731935606.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.5.1-next-
|
|
20
|
-
"@opensumi/ide-utils": "3.5.1-next-
|
|
19
|
+
"@opensumi/ide-core-common": "3.5.1-next-1731935606.0",
|
|
20
|
+
"@opensumi/ide-utils": "3.5.1-next-1731935606.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.5.1-next-
|
|
41
|
+
"@opensumi/ide-dev-tool": "3.5.1-next-1731935606.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": "
|
|
46
|
+
"gitHead": "5849361f31f3affe436c41a791112e3c7352c98c"
|
|
47
47
|
}
|