@rainbow-oh/yee-c 0.8.9 → 0.8.11

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 {
@@ -72,14 +72,13 @@
72
72
  }
73
73
 
74
74
  &-filter {
75
+ max-height: var(--yee-table-filter-popup-height);
76
+ background-color: var(--yee-table-filter-list-bg-color);
77
+
75
78
  &-trigger {
76
79
  display: inline-flex;
77
80
  cursor: pointer;
78
81
  }
79
-
80
- &-popup {
81
- background-color: var(--yee-table-filter-list-bg-color);
82
- }
83
82
  }
84
83
 
85
84
  &-content {
@@ -172,7 +172,7 @@ var HeaderFilter = import_react.default.memo((props) => {
172
172
  {
173
173
  trigger: "click",
174
174
  placement: "bottomRight",
175
- popupClassName: (0, import_clsx.default)(`${prefixCls}-filter`),
175
+ className: `${prefixCls}-filter`,
176
176
  content: popup,
177
177
  arrow: true,
178
178
  open,
@@ -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);
@@ -401,6 +403,7 @@
401
403
  --yee-popover-header-line-height: 24px;
402
404
  --yee-popover-arrow-width: var(--yee-popup-arrow-width);
403
405
  --yee-popover-arrow-height: var(--yee-popup-arrow-height);
406
+ --yee-table-filter-popup-height: 400px;
404
407
 
405
408
  /* --Progress-- */
406
409
  --yee-progress-text-width: 48px;
@@ -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:43:59.991Z
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:43:59.991Z
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);
@@ -1523,6 +1525,7 @@
1523
1525
  --yee-popover-header-line-height: 24px;
1524
1526
  --yee-popover-arrow-width: var(--yee-popup-arrow-width);
1525
1527
  --yee-popover-arrow-height: var(--yee-popup-arrow-height);
1528
+ --yee-table-filter-popup-height: 400px;
1526
1529
 
1527
1530
  /* --Progress-- */
1528
1531
  --yee-progress-text-width: 48px;
@@ -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.11";
@@ -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.11";
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 {
@@ -72,14 +72,13 @@
72
72
  }
73
73
 
74
74
  &-filter {
75
+ max-height: var(--yee-table-filter-popup-height);
76
+ background-color: var(--yee-table-filter-list-bg-color);
77
+
75
78
  &-trigger {
76
79
  display: inline-flex;
77
80
  cursor: pointer;
78
81
  }
79
-
80
- &-popup {
81
- background-color: var(--yee-table-filter-list-bg-color);
82
- }
83
82
  }
84
83
 
85
84
  &-content {
@@ -199,7 +199,7 @@ var HeaderFilter = /*#__PURE__*/React.memo(function (props) {
199
199
  return /*#__PURE__*/React.createElement(Popover, {
200
200
  trigger: "click",
201
201
  placement: "bottomRight",
202
- popupClassName: clsx("".concat(prefixCls, "-filter")),
202
+ className: "".concat(prefixCls, "-filter"),
203
203
  content: popup,
204
204
  arrow: true,
205
205
  open: open,
@@ -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);
@@ -401,6 +403,7 @@
401
403
  --yee-popover-header-line-height: 24px;
402
404
  --yee-popover-arrow-width: var(--yee-popup-arrow-width);
403
405
  --yee-popover-arrow-height: var(--yee-popup-arrow-height);
406
+ --yee-table-filter-popup-height: 400px;
404
407
 
405
408
  /* --Progress-- */
406
409
  --yee-progress-text-width: 48px;
@@ -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:43:59.991Z
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:43:59.991Z
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);
@@ -1523,6 +1525,7 @@
1523
1525
  --yee-popover-header-line-height: 24px;
1524
1526
  --yee-popover-arrow-width: var(--yee-popup-arrow-width);
1525
1527
  --yee-popover-arrow-height: var(--yee-popup-arrow-height);
1528
+ --yee-table-filter-popup-height: 400px;
1526
1529
 
1527
1530
  /* --Progress-- */
1528
1531
  --yee-progress-text-width: 48px;
@@ -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.11";
@@ -1,4 +1,4 @@
1
- export var version = "0.8.9";
1
+ export var version = "0.8.11";
2
2
  if (typeof window !== 'undefined') {
3
3
  window.__yee_c_version__ = version;
4
4
  }