@rainbow-oh/yee-c 0.8.9 → 0.8.10
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/cjs/Popconfirm/popconfirm.js +2 -2
- package/dist/cjs/Popconfirm/style/index.less +4 -1
- package/dist/cjs/style/size.css +4 -2
- package/dist/cjs/style/themes.css +1 -1
- package/dist/cjs/style/variables.css +5 -3
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Popconfirm/popconfirm.js +4 -2
- package/dist/esm/Popconfirm/style/index.less +4 -1
- package/dist/esm/style/size.css +4 -2
- package/dist/esm/style/themes.css +1 -1
- package/dist/esm/style/variables.css +5 -3
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/umd/yee-c.min.css +2 -2
- package/dist/umd/yee-c.min.js +1 -1
- package/package.json +1 -1
- package/src/Popconfirm/popconfirm.tsx +6 -2
- package/src/Popconfirm/style/index.less +4 -1
- package/src/style/size.css +4 -2
- package/src/version.ts +1 -1
package/package.json
CHANGED
|
@@ -74,7 +74,7 @@ const Popconfirm: React.FC<PopconfirmProps> = (baseprops) => {
|
|
|
74
74
|
ref={(node) => {
|
|
75
75
|
if (node) {
|
|
76
76
|
const btn = node.querySelector<HTMLButtonElement>('[data-confirm]');
|
|
77
|
-
if (btn) btn.focus();
|
|
77
|
+
if (btn) btn.focus({ preventScroll: true });
|
|
78
78
|
}
|
|
79
79
|
}}
|
|
80
80
|
>
|
|
@@ -127,7 +127,11 @@ const Popconfirm: React.FC<PopconfirmProps> = (baseprops) => {
|
|
|
127
127
|
open={mergedOpen}
|
|
128
128
|
onOpenChange={handleOpenChange}
|
|
129
129
|
>
|
|
130
|
-
|
|
130
|
+
{React.isValidElement(children) ? (
|
|
131
|
+
children
|
|
132
|
+
) : (
|
|
133
|
+
<span className={`${prefixCls}-trigger`}>{children}</span>
|
|
134
|
+
)}
|
|
131
135
|
</Trigger>
|
|
132
136
|
);
|
|
133
137
|
};
|
|
@@ -11,10 +11,13 @@
|
|
|
11
11
|
display: flex;
|
|
12
12
|
gap: var(--yee-popconfirm-header-gap);
|
|
13
13
|
align-items: center;
|
|
14
|
+
margin-bottom: var(--yee-popconfirm-header-margin-bottom);
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
&-title {
|
|
17
|
-
margin:
|
|
18
|
+
margin: 0;
|
|
19
|
+
font-size: var(--yee-popconfirm-title-font-size);
|
|
20
|
+
font-weight: var(--yee-popconfirm-title-font-weight);
|
|
18
21
|
}
|
|
19
22
|
|
|
20
23
|
&-footer {
|
package/src/style/size.css
CHANGED
|
@@ -383,12 +383,14 @@
|
|
|
383
383
|
|
|
384
384
|
/* --Popconfirm-- */
|
|
385
385
|
--yee-popconfirm-z-index: var(--yee-z-index-tooltip);
|
|
386
|
-
--yee-popconfirm-padding:
|
|
386
|
+
--yee-popconfirm-padding: 12px;
|
|
387
387
|
--yee-popconfirm-border-radius: 4px;
|
|
388
388
|
--yee-popconfirm-box-shadow: 0 8px 24px 0 var(--yee-box-shadow-color);
|
|
389
389
|
--yee-popconfirm-header-gap: 16px;
|
|
390
|
-
--yee-popconfirm-
|
|
390
|
+
--yee-popconfirm-header-margin-bottom: 8px;
|
|
391
391
|
--yee-popconfirm-footer-margin-top: 16px;
|
|
392
|
+
--yee-popconfirm-title-font-size: 16px;
|
|
393
|
+
--yee-popconfirm-title-font-weight: 600;
|
|
392
394
|
|
|
393
395
|
/* --Popover-- */
|
|
394
396
|
--yee-popover-z-index: var(--yee-z-index-tooltip);
|