@rainbow-oh/yee-c 0.8.8 → 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.
Files changed (39) hide show
  1. package/dist/cjs/Popconfirm/popconfirm.js +2 -2
  2. package/dist/cjs/Popconfirm/style/index.less +4 -1
  3. package/dist/cjs/Popover/popover.js +4 -3
  4. package/dist/cjs/Popover/style/index.less +5 -2
  5. package/dist/cjs/Table/style/index.less +0 -2
  6. package/dist/cjs/Table/theader/filter.js +10 -9
  7. package/dist/cjs/Trigger/style/index.less +1 -0
  8. package/dist/cjs/style/size.css +7 -4
  9. package/dist/cjs/style/themes.css +1 -1
  10. package/dist/cjs/style/variables.css +8 -5
  11. package/dist/cjs/utils/focusStack.js +1 -1
  12. package/dist/cjs/version.d.ts +1 -1
  13. package/dist/cjs/version.js +1 -1
  14. package/dist/esm/Popconfirm/popconfirm.js +4 -2
  15. package/dist/esm/Popconfirm/style/index.less +4 -1
  16. package/dist/esm/Popover/popover.js +6 -3
  17. package/dist/esm/Popover/style/index.less +5 -2
  18. package/dist/esm/Table/style/index.less +0 -2
  19. package/dist/esm/Table/theader/filter.js +12 -10
  20. package/dist/esm/Trigger/style/index.less +1 -0
  21. package/dist/esm/style/size.css +7 -4
  22. package/dist/esm/style/themes.css +1 -1
  23. package/dist/esm/style/variables.css +8 -5
  24. package/dist/esm/utils/focusStack.js +5 -1
  25. package/dist/esm/version.d.ts +1 -1
  26. package/dist/esm/version.js +1 -1
  27. package/dist/umd/yee-c.min.css +2 -2
  28. package/dist/umd/yee-c.min.js +1 -1
  29. package/package.json +1 -1
  30. package/src/Popconfirm/popconfirm.tsx +6 -2
  31. package/src/Popconfirm/style/index.less +4 -1
  32. package/src/Popover/popover.tsx +6 -3
  33. package/src/Popover/style/index.less +5 -2
  34. package/src/Table/style/index.less +0 -2
  35. package/src/Table/theader/filter.tsx +10 -8
  36. package/src/Trigger/style/index.less +1 -0
  37. package/src/style/size.css +7 -4
  38. package/src/utils/focusStack.ts +3 -1
  39. package/src/version.ts +1 -1
@@ -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 {
@@ -107,6 +107,7 @@ var Popover = (baseprops) => {
107
107
  "defaultOpen",
108
108
  "onOpenChange"
109
109
  ]);
110
+ const mergedArrow = arrow === true ? { className: `${prefixCls}-arrow` } : arrow;
110
111
  const [mergedOpen, setMergedOpen] = (0, import_useMergedState.default)(false, {
111
112
  value: open,
112
113
  defaultValue: defaultOpen
@@ -121,7 +122,7 @@ var Popover = (baseprops) => {
121
122
  return /* @__PURE__ */ import_react.default.createElement(
122
123
  "div",
123
124
  {
124
- className: (0, import_clsx.default)(prefixCls, [`${prefixCls}-${placement}`], className),
125
+ className: (0, import_clsx.default)(`${prefixCls}-container`, className),
125
126
  style,
126
127
  role: "dialog",
127
128
  ref: popupRef
@@ -161,12 +162,12 @@ var Popover = (baseprops) => {
161
162
  return /* @__PURE__ */ import_react.default.createElement(
162
163
  import_Trigger.default,
163
164
  __spreadProps(__spreadValues({}, rest), {
164
- arrow,
165
+ arrow: mergedArrow,
165
166
  trigger,
166
167
  placement,
167
168
  popup,
168
169
  open: mergedOpen,
169
- popupClassName: (0, import_clsx.default)(`${prefixCls}-popup`, popupClassName),
170
+ popupClassName: (0, import_clsx.default)(`${prefixCls}`, popupClassName),
170
171
  onOpenChange: handleOpenChange
171
172
  }),
172
173
  children
@@ -2,11 +2,14 @@
2
2
 
3
3
  @{pls} {
4
4
  max-width: var(--yee-popover-max-width);
5
- padding: var(--yee-popover-padding);
6
5
  color: var(--yee-color-text);
7
6
  background-color: var(--yee-popover-bg-color);
8
7
  border-radius: var(--yee-popover-border-radius);
9
- overflow: hidden;
8
+
9
+ &-container {
10
+ padding: var(--yee-popover-padding);
11
+ overflow: auto;
12
+ }
10
13
 
11
14
  &-header {
12
15
  margin-bottom: var(--yee-popover-header-margin-bottom);
@@ -72,8 +72,6 @@
72
72
  }
73
73
 
74
74
  &-filter {
75
- padding: var(--yee-table-filter-popup-padding);
76
-
77
75
  &-trigger {
78
76
  display: inline-flex;
79
77
  cursor: pointer;
@@ -50,7 +50,7 @@ var getStrLower = (str) => {
50
50
  return str;
51
51
  };
52
52
  var HeaderFilter = import_react.default.memo((props) => {
53
- const { filter, column, getContainer, onInternalFilter } = props;
53
+ const { filter, column, getPopupContainer, onInternalFilter } = props;
54
54
  const { prefixCls } = (0, import_react.useContext)(import_table.TableCtx);
55
55
  const { locale } = (0, import_locale.useLocale)();
56
56
  const { table: tableLocale } = locale;
@@ -60,12 +60,13 @@ var HeaderFilter = import_react.default.memo((props) => {
60
60
  const [selectNodes, setSelectNodes] = (0, import_react.useState)([]);
61
61
  const [searchValue, setSearchValue] = (0, import_react.useState)("");
62
62
  (0, import_react.useEffect)(() => {
63
- if (open) {
64
- requestAnimationFrame(() => {
65
- var _a;
66
- (_a = inputRef.current) == null ? void 0 : _a.focus({ preventScroll: true });
67
- });
68
- }
63
+ if (!open)
64
+ return;
65
+ const raf = requestAnimationFrame(() => {
66
+ var _a;
67
+ (_a = inputRef.current) == null ? void 0 : _a.focus({ preventScroll: true });
68
+ });
69
+ return () => cancelAnimationFrame(raf);
69
70
  }, [open]);
70
71
  const inputChange = (value) => {
71
72
  setSearchValue(value);
@@ -171,12 +172,12 @@ var HeaderFilter = import_react.default.memo((props) => {
171
172
  {
172
173
  trigger: "click",
173
174
  placement: "bottomRight",
174
- className: (0, import_clsx.default)(`${prefixCls}-filter`),
175
+ popupClassName: (0, import_clsx.default)(`${prefixCls}-filter`),
175
176
  content: popup,
176
177
  arrow: true,
177
178
  open,
178
179
  hideOnClick: false,
179
- getPopupContainer: getContainer,
180
+ getPopupContainer,
180
181
  onOpenChange: handleOpenChange
181
182
  },
182
183
  renderTrigger()
@@ -3,6 +3,7 @@
3
3
  @{pls} {
4
4
  position: absolute;
5
5
  z-index: var(--yee-trigger-z-index);
6
+ border-radius: var(--yee-trigger-border-radius);
6
7
 
7
8
  &-hidden {
8
9
  display: none;
@@ -383,19 +383,21 @@
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);
395
397
  --yee-popover-max-width: 704px;
396
- --yee-popover-padding: 16px;
398
+ --yee-popover-padding: 12px;
397
399
  --yee-popover-border-radius: 4px;
398
- --yee-popover-header-margin-bottom: 16px;
400
+ --yee-popover-header-margin-bottom: 8px;
399
401
  --yee-popover-header-font-weight: 500;
400
402
  --yee-popover-header-font-size: 16px;
401
403
  --yee-popover-header-line-height: 24px;
@@ -849,6 +851,7 @@
849
851
 
850
852
  /* --Trigger-- */
851
853
  --yee-trigger-z-index: var(--yee-z-index-popup);
854
+ --yee-trigger-border-radius: 6px;
852
855
  --yee-trigger-box-shadow: 0 8px 24px 0 var(--yee-box-shadow-color);
853
856
  --yee-trigger-arrow-margin-left: -4px;
854
857
  --yee-trigger-animation-duration: 0.2s;
@@ -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-28T09:56:51.041Z
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-28T09:56:51.041Z
4
+ * Generated on 2026-07-29T03:01:41.288Z
5
5
  */
6
6
 
7
7
  /* ========== color.css ========== */
@@ -1505,19 +1505,21 @@
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);
1517
1519
  --yee-popover-max-width: 704px;
1518
- --yee-popover-padding: 16px;
1520
+ --yee-popover-padding: 12px;
1519
1521
  --yee-popover-border-radius: 4px;
1520
- --yee-popover-header-margin-bottom: 16px;
1522
+ --yee-popover-header-margin-bottom: 8px;
1521
1523
  --yee-popover-header-font-weight: 500;
1522
1524
  --yee-popover-header-font-size: 16px;
1523
1525
  --yee-popover-header-line-height: 24px;
@@ -1971,6 +1973,7 @@
1971
1973
 
1972
1974
  /* --Trigger-- */
1973
1975
  --yee-trigger-z-index: var(--yee-z-index-popup);
1976
+ --yee-trigger-border-radius: 6px;
1974
1977
  --yee-trigger-box-shadow: 0 8px 24px 0 var(--yee-box-shadow-color);
1975
1978
  --yee-trigger-arrow-margin-left: -4px;
1976
1979
  --yee-trigger-animation-duration: 0.2s;
@@ -47,7 +47,7 @@ var focusInitialElement = (entry) => {
47
47
  return;
48
48
  }
49
49
  const firstFocusable = entry.container.querySelector(focusableSelector);
50
- (firstFocusable != null ? firstFocusable : entry.container).focus();
50
+ (firstFocusable != null ? firstFocusable : entry.container).focus({ preventScroll: true });
51
51
  };
52
52
  var pushFocus = (container, previous = document.activeElement) => {
53
53
  const entry = { container, previous };
@@ -3,4 +3,4 @@ declare global {
3
3
  __yee_c_version__: string;
4
4
  }
5
5
  }
6
- export declare const version = "0.8.8";
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.8";
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 {
@@ -45,6 +45,9 @@ var Popover = function Popover(baseprops) {
45
45
  defaultOpen = props.defaultOpen,
46
46
  onOpenChange = props.onOpenChange,
47
47
  rest = _objectWithoutProperties(props, _excluded);
48
+ var mergedArrow = arrow === true ? {
49
+ className: "".concat(prefixCls, "-arrow")
50
+ } : arrow;
48
51
  var _useMergedState = useMergedState(false, {
49
52
  value: open,
50
53
  defaultValue: defaultOpen
@@ -60,7 +63,7 @@ var Popover = function Popover(baseprops) {
60
63
  return null;
61
64
  }
62
65
  return /*#__PURE__*/React.createElement("div", {
63
- className: clsx(prefixCls, ["".concat(prefixCls, "-").concat(placement)], className),
66
+ className: clsx("".concat(prefixCls, "-container"), className),
64
67
  style: style,
65
68
  role: "dialog",
66
69
  ref: popupRef
@@ -91,12 +94,12 @@ var Popover = function Popover(baseprops) {
91
94
  });
92
95
  var popup = renderPopup();
93
96
  return /*#__PURE__*/React.createElement(Trigger, _extends({}, rest, {
94
- arrow: arrow,
97
+ arrow: mergedArrow,
95
98
  trigger: trigger,
96
99
  placement: placement,
97
100
  popup: popup,
98
101
  open: mergedOpen,
99
- popupClassName: clsx("".concat(prefixCls, "-popup"), popupClassName),
102
+ popupClassName: clsx("".concat(prefixCls), popupClassName),
100
103
  onOpenChange: handleOpenChange
101
104
  }), children);
102
105
  };
@@ -2,11 +2,14 @@
2
2
 
3
3
  @{pls} {
4
4
  max-width: var(--yee-popover-max-width);
5
- padding: var(--yee-popover-padding);
6
5
  color: var(--yee-color-text);
7
6
  background-color: var(--yee-popover-bg-color);
8
7
  border-radius: var(--yee-popover-border-radius);
9
- overflow: hidden;
8
+
9
+ &-container {
10
+ padding: var(--yee-popover-padding);
11
+ overflow: auto;
12
+ }
10
13
 
11
14
  &-header {
12
15
  margin-bottom: var(--yee-popover-header-margin-bottom);
@@ -72,8 +72,6 @@
72
72
  }
73
73
 
74
74
  &-filter {
75
- padding: var(--yee-table-filter-popup-padding);
76
-
77
75
  &-trigger {
78
76
  display: inline-flex;
79
77
  cursor: pointer;
@@ -24,7 +24,7 @@ var getStrLower = function getStrLower(str) {
24
24
  var HeaderFilter = /*#__PURE__*/React.memo(function (props) {
25
25
  var filter = props.filter,
26
26
  column = props.column,
27
- getContainer = props.getContainer,
27
+ getPopupContainer = props.getPopupContainer,
28
28
  onInternalFilter = props.onInternalFilter;
29
29
  var _useContext = useContext(TableCtx),
30
30
  prefixCls = _useContext.prefixCls;
@@ -46,14 +46,16 @@ var HeaderFilter = /*#__PURE__*/React.memo(function (props) {
46
46
  searchValue = _useState6[0],
47
47
  setSearchValue = _useState6[1];
48
48
  useEffect(function () {
49
- if (open) {
50
- requestAnimationFrame(function () {
51
- var _inputRef$current;
52
- (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.focus({
53
- preventScroll: true
54
- });
49
+ if (!open) return;
50
+ var raf = requestAnimationFrame(function () {
51
+ var _inputRef$current;
52
+ (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.focus({
53
+ preventScroll: true
55
54
  });
56
- }
55
+ });
56
+ return function () {
57
+ return cancelAnimationFrame(raf);
58
+ };
57
59
  }, [open]);
58
60
  var inputChange = function inputChange(value) {
59
61
  setSearchValue(value);
@@ -197,12 +199,12 @@ var HeaderFilter = /*#__PURE__*/React.memo(function (props) {
197
199
  return /*#__PURE__*/React.createElement(Popover, {
198
200
  trigger: "click",
199
201
  placement: "bottomRight",
200
- className: clsx("".concat(prefixCls, "-filter")),
202
+ popupClassName: clsx("".concat(prefixCls, "-filter")),
201
203
  content: popup,
202
204
  arrow: true,
203
205
  open: open,
204
206
  hideOnClick: false,
205
- getPopupContainer: getContainer,
207
+ getPopupContainer: getPopupContainer,
206
208
  onOpenChange: handleOpenChange
207
209
  }, renderTrigger());
208
210
  });
@@ -3,6 +3,7 @@
3
3
  @{pls} {
4
4
  position: absolute;
5
5
  z-index: var(--yee-trigger-z-index);
6
+ border-radius: var(--yee-trigger-border-radius);
6
7
 
7
8
  &-hidden {
8
9
  display: none;
@@ -383,19 +383,21 @@
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);
395
397
  --yee-popover-max-width: 704px;
396
- --yee-popover-padding: 16px;
398
+ --yee-popover-padding: 12px;
397
399
  --yee-popover-border-radius: 4px;
398
- --yee-popover-header-margin-bottom: 16px;
400
+ --yee-popover-header-margin-bottom: 8px;
399
401
  --yee-popover-header-font-weight: 500;
400
402
  --yee-popover-header-font-size: 16px;
401
403
  --yee-popover-header-line-height: 24px;
@@ -849,6 +851,7 @@
849
851
 
850
852
  /* --Trigger-- */
851
853
  --yee-trigger-z-index: var(--yee-z-index-popup);
854
+ --yee-trigger-border-radius: 6px;
852
855
  --yee-trigger-box-shadow: 0 8px 24px 0 var(--yee-box-shadow-color);
853
856
  --yee-trigger-arrow-margin-left: -4px;
854
857
  --yee-trigger-animation-duration: 0.2s;
@@ -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-28T09:56:51.041Z
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-28T09:56:51.041Z
4
+ * Generated on 2026-07-29T03:01:41.288Z
5
5
  */
6
6
 
7
7
  /* ========== color.css ========== */
@@ -1505,19 +1505,21 @@
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);
1517
1519
  --yee-popover-max-width: 704px;
1518
- --yee-popover-padding: 16px;
1520
+ --yee-popover-padding: 12px;
1519
1521
  --yee-popover-border-radius: 4px;
1520
- --yee-popover-header-margin-bottom: 16px;
1522
+ --yee-popover-header-margin-bottom: 8px;
1521
1523
  --yee-popover-header-font-weight: 500;
1522
1524
  --yee-popover-header-font-size: 16px;
1523
1525
  --yee-popover-header-line-height: 24px;
@@ -1971,6 +1973,7 @@
1971
1973
 
1972
1974
  /* --Trigger-- */
1973
1975
  --yee-trigger-z-index: var(--yee-z-index-popup);
1976
+ --yee-trigger-border-radius: 6px;
1974
1977
  --yee-trigger-box-shadow: 0 8px 24px 0 var(--yee-box-shadow-color);
1975
1978
  --yee-trigger-arrow-margin-left: -4px;
1976
1979
  --yee-trigger-animation-duration: 0.2s;
@@ -14,7 +14,11 @@ var focusInitialElement = function focusInitialElement(entry) {
14
14
  return;
15
15
  }
16
16
  var firstFocusable = entry.container.querySelector(focusableSelector);
17
- (firstFocusable !== null && firstFocusable !== void 0 ? firstFocusable : entry.container).focus();
17
+ // Focusing popup content must not move the page or a scrollable ancestor.
18
+ // Consumers can still scroll explicitly after focus when that behavior is needed.
19
+ (firstFocusable !== null && firstFocusable !== void 0 ? firstFocusable : entry.container).focus({
20
+ preventScroll: true
21
+ });
18
22
  };
19
23
  export var pushFocus = function pushFocus(container) {
20
24
  var previous = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document.activeElement;
@@ -3,4 +3,4 @@ declare global {
3
3
  __yee_c_version__: string;
4
4
  }
5
5
  }
6
- export declare const version = "0.8.8";
6
+ export declare const version = "0.8.10";
@@ -1,4 +1,4 @@
1
- export var version = "0.8.8";
1
+ export var version = "0.8.10";
2
2
  if (typeof window !== 'undefined') {
3
3
  window.__yee_c_version__ = version;
4
4
  }