@digitalc/dxp-ui 0.0.5-alpha.5 → 0.0.5-alpha.6
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.
|
@@ -47,7 +47,7 @@ var _useMessage = function useMessage() {
|
|
|
47
47
|
token: {},
|
|
48
48
|
path: [prefixCls + '-toast']
|
|
49
49
|
}, function () {
|
|
50
|
-
return "\n .ant-message .ant-message-notice-wrapper .".concat(prefixCls, " .ant-message-notice-content{\n position: relative;\n min-width:
|
|
50
|
+
return "\n .ant-message .ant-message-notice-wrapper .".concat(prefixCls, " .ant-message-notice-content{\n position: relative;\n min-width: 300px;\n background-color: ").concat(contentBg, ";\n color: ").concat(colorText, ";\n border-radius: ").concat(borderRadiusLG, "px;\n padding: ").concat(contentPadding, ";\n text-align: left;\n }\n .ant-message .ant-message-notice-wrapper .").concat(prefixCls, " .ant-message-notice-content .ant-message-custom-content > :nth-child(2),\n .ant-message .ant-message-notice-wrapper .").concat(prefixCls, ".full .ant-message-notice-content {\n width: 100%;\n }\n .ant-message .ant-message-notice-wrapper .").concat(prefixCls, " i{\n margin-inline-end: ").concat(horizontalGap, "!important;\n }\n .ant-message .ant-message-notice-wrapper .").concat(prefixCls, "-success i{\n color: ").concat(colorSuccess, "!important;\n }\n .ant-message .ant-message-notice-wrapper .").concat(prefixCls, "-error i{\n color: ").concat(colorInfo, "!important;\n }\n .ant-message .ant-message-notice-wrapper .").concat(prefixCls, "-warning i{\n color: ").concat(colorWarning, "!important;\n }\n ");
|
|
51
51
|
});
|
|
52
52
|
return hashId;
|
|
53
53
|
};
|
|
@@ -116,8 +116,7 @@ var _useMessage = function useMessage() {
|
|
|
116
116
|
style: {
|
|
117
117
|
display: 'flex',
|
|
118
118
|
alignItems: 'center',
|
|
119
|
-
width: '100%'
|
|
120
|
-
minWidth: '270px'
|
|
119
|
+
width: '100%'
|
|
121
120
|
},
|
|
122
121
|
children: [/*#__PURE__*/_jsx("div", {
|
|
123
122
|
style: {
|
|
@@ -58,8 +58,8 @@ __export(Button_exports, {
|
|
|
58
58
|
default: () => Button
|
|
59
59
|
});
|
|
60
60
|
module.exports = __toCommonJS(Button_exports);
|
|
61
|
-
var import_antd = require("antd");
|
|
62
61
|
var import_react = __toESM(require("react"));
|
|
62
|
+
var import_antd = require("antd");
|
|
63
63
|
var import_Text = __toESM(require("../Text"));
|
|
64
64
|
var import_constants = require("../../constants");
|
|
65
65
|
var import_noop = require("../../utils/noop");
|
|
@@ -99,7 +99,7 @@ var useMessage = () => {
|
|
|
99
99
|
() => `
|
|
100
100
|
.ant-message .ant-message-notice-wrapper .${prefixCls} .ant-message-notice-content{
|
|
101
101
|
position: relative;
|
|
102
|
-
min-width:
|
|
102
|
+
min-width: 300px;
|
|
103
103
|
background-color: ${contentBg};
|
|
104
104
|
color: ${colorText};
|
|
105
105
|
border-radius: ${borderRadiusLG}px;
|
|
@@ -110,17 +110,17 @@ var useMessage = () => {
|
|
|
110
110
|
.ant-message .ant-message-notice-wrapper .${prefixCls}.full .ant-message-notice-content {
|
|
111
111
|
width: 100%;
|
|
112
112
|
}
|
|
113
|
-
.ant-message .ant-message-notice-wrapper .${prefixCls}
|
|
114
|
-
margin-inline-end: ${horizontalGap};
|
|
113
|
+
.ant-message .ant-message-notice-wrapper .${prefixCls} i{
|
|
114
|
+
margin-inline-end: ${horizontalGap}!important;
|
|
115
115
|
}
|
|
116
|
-
.ant-message .ant-message-notice-wrapper .${prefixCls}-success
|
|
117
|
-
color: ${colorSuccess};
|
|
116
|
+
.ant-message .ant-message-notice-wrapper .${prefixCls}-success i{
|
|
117
|
+
color: ${colorSuccess}!important;
|
|
118
118
|
}
|
|
119
|
-
.ant-message .ant-message-notice-wrapper .${prefixCls}-error
|
|
120
|
-
color: ${colorInfo};
|
|
119
|
+
.ant-message .ant-message-notice-wrapper .${prefixCls}-error i{
|
|
120
|
+
color: ${colorInfo}!important;
|
|
121
121
|
}
|
|
122
|
-
.ant-message .ant-message-notice-wrapper .${prefixCls}-warning
|
|
123
|
-
color: ${colorWarning};
|
|
122
|
+
.ant-message .ant-message-notice-wrapper .${prefixCls}-warning i{
|
|
123
|
+
color: ${colorWarning}!important;
|
|
124
124
|
}
|
|
125
125
|
`
|
|
126
126
|
);
|
|
@@ -167,8 +167,7 @@ var useMessage = () => {
|
|
|
167
167
|
finalContent = /* @__PURE__ */ import_react.default.createElement("div", { style: {
|
|
168
168
|
display: "flex",
|
|
169
169
|
alignItems: "center",
|
|
170
|
-
width: "100%"
|
|
171
|
-
minWidth: "270px"
|
|
170
|
+
width: "100%"
|
|
172
171
|
} }, /* @__PURE__ */ import_react.default.createElement("div", { style: {
|
|
173
172
|
flex: 1,
|
|
174
173
|
wordWrap: "break-word"
|