@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.
@@ -146,7 +146,7 @@ var Popconfirm = (baseprops) => {
146
146
  if (node) {
147
147
  const btn = node.querySelector("[data-confirm]");
148
148
  if (btn)
149
- btn.focus();
149
+ btn.focus({ preventScroll: true });
150
150
  }
151
151
  }
152
152
  },
@@ -193,7 +193,7 @@ var Popconfirm = (baseprops) => {
193
193
  open: mergedOpen,
194
194
  onOpenChange: handleOpenChange
195
195
  }),
196
- /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefixCls}-trigger` }, children)
196
+ import_react.default.isValidElement(children) ? children : /* @__PURE__ */ import_react.default.createElement("span", { className: `${prefixCls}-trigger` }, children)
197
197
  );
198
198
  };
199
199
  Popconfirm.displayName = "Popconfirm";
@@ -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: var(--yee-popconfirm-title-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 {
@@ -383,12 +383,14 @@
383
383
 
384
384
  /* --Popconfirm-- */
385
385
  --yee-popconfirm-z-index: var(--yee-z-index-tooltip);
386
- --yee-popconfirm-padding: 16px;
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-title-margin: 0;
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);
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @rainbow-oh/yee-c CSS Variables
3
3
  * Auto-generated, do not edit manually
4
- * Generated on 2026-07-29T02:39:04.889Z
4
+ * Generated on 2026-07-29T03:01:41.288Z
5
5
  */
6
6
 
7
7
  /* ========== color.blue.css ========== */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @rainbow-oh/yee-c CSS Variables
3
3
  * Auto-generated, do not edit manually
4
- * Generated on 2026-07-29T02:39:04.889Z
4
+ * Generated on 2026-07-29T03:01:41.288Z
5
5
  */
6
6
 
7
7
  /* ========== color.css ========== */
@@ -1505,12 +1505,14 @@
1505
1505
 
1506
1506
  /* --Popconfirm-- */
1507
1507
  --yee-popconfirm-z-index: var(--yee-z-index-tooltip);
1508
- --yee-popconfirm-padding: 16px;
1508
+ --yee-popconfirm-padding: 12px;
1509
1509
  --yee-popconfirm-border-radius: 4px;
1510
1510
  --yee-popconfirm-box-shadow: 0 8px 24px 0 var(--yee-box-shadow-color);
1511
1511
  --yee-popconfirm-header-gap: 16px;
1512
- --yee-popconfirm-title-margin: 0;
1512
+ --yee-popconfirm-header-margin-bottom: 8px;
1513
1513
  --yee-popconfirm-footer-margin-top: 16px;
1514
+ --yee-popconfirm-title-font-size: 16px;
1515
+ --yee-popconfirm-title-font-weight: 600;
1514
1516
 
1515
1517
  /* --Popover-- */
1516
1518
  --yee-popover-z-index: var(--yee-z-index-tooltip);
@@ -3,4 +3,4 @@ declare global {
3
3
  __yee_c_version__: string;
4
4
  }
5
5
  }
6
- export declare const version = "0.8.9";
6
+ export declare const version = "0.8.10";
@@ -22,7 +22,7 @@ __export(version_exports, {
22
22
  version: () => version
23
23
  });
24
24
  module.exports = __toCommonJS(version_exports);
25
- var version = "0.8.9";
25
+ var version = "0.8.10";
26
26
  if (typeof window !== "undefined") {
27
27
  window.__yee_c_version__ = version;
28
28
  }
@@ -86,7 +86,9 @@ var Popconfirm = function Popconfirm(baseprops) {
86
86
  ref: function ref(node) {
87
87
  if (node) {
88
88
  var btn = node.querySelector('[data-confirm]');
89
- if (btn) btn.focus();
89
+ if (btn) btn.focus({
90
+ preventScroll: true
91
+ });
90
92
  }
91
93
  }
92
94
  }, /*#__PURE__*/React.createElement("div", {
@@ -122,7 +124,7 @@ var Popconfirm = function Popconfirm(baseprops) {
122
124
  popup: popup,
123
125
  open: mergedOpen,
124
126
  onOpenChange: handleOpenChange
125
- }), /*#__PURE__*/React.createElement("div", {
127
+ }), /*#__PURE__*/React.isValidElement(children) ? children : /*#__PURE__*/React.createElement("span", {
126
128
  className: "".concat(prefixCls, "-trigger")
127
129
  }, children));
128
130
  };
@@ -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: var(--yee-popconfirm-title-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 {
@@ -383,12 +383,14 @@
383
383
 
384
384
  /* --Popconfirm-- */
385
385
  --yee-popconfirm-z-index: var(--yee-z-index-tooltip);
386
- --yee-popconfirm-padding: 16px;
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-title-margin: 0;
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);
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @rainbow-oh/yee-c CSS Variables
3
3
  * Auto-generated, do not edit manually
4
- * Generated on 2026-07-29T02:39:04.889Z
4
+ * Generated on 2026-07-29T03:01:41.288Z
5
5
  */
6
6
 
7
7
  /* ========== color.blue.css ========== */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @rainbow-oh/yee-c CSS Variables
3
3
  * Auto-generated, do not edit manually
4
- * Generated on 2026-07-29T02:39:04.889Z
4
+ * Generated on 2026-07-29T03:01:41.288Z
5
5
  */
6
6
 
7
7
  /* ========== color.css ========== */
@@ -1505,12 +1505,14 @@
1505
1505
 
1506
1506
  /* --Popconfirm-- */
1507
1507
  --yee-popconfirm-z-index: var(--yee-z-index-tooltip);
1508
- --yee-popconfirm-padding: 16px;
1508
+ --yee-popconfirm-padding: 12px;
1509
1509
  --yee-popconfirm-border-radius: 4px;
1510
1510
  --yee-popconfirm-box-shadow: 0 8px 24px 0 var(--yee-box-shadow-color);
1511
1511
  --yee-popconfirm-header-gap: 16px;
1512
- --yee-popconfirm-title-margin: 0;
1512
+ --yee-popconfirm-header-margin-bottom: 8px;
1513
1513
  --yee-popconfirm-footer-margin-top: 16px;
1514
+ --yee-popconfirm-title-font-size: 16px;
1515
+ --yee-popconfirm-title-font-weight: 600;
1514
1516
 
1515
1517
  /* --Popover-- */
1516
1518
  --yee-popover-z-index: var(--yee-z-index-tooltip);
@@ -3,4 +3,4 @@ declare global {
3
3
  __yee_c_version__: string;
4
4
  }
5
5
  }
6
- export declare const version = "0.8.9";
6
+ export declare const version = "0.8.10";
@@ -1,4 +1,4 @@
1
- export var version = "0.8.9";
1
+ export var version = "0.8.10";
2
2
  if (typeof window !== 'undefined') {
3
3
  window.__yee_c_version__ = version;
4
4
  }