@zenkigen-inc/component-ui 1.21.0 → 1.22.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenkigen-inc/component-ui",
3
- "version": "1.21.0",
3
+ "version": "1.22.0",
4
4
  "repository": "https://github.com/zenkigen/zenkigen-component",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -38,9 +38,9 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@floating-ui/react": "0.27.19",
41
- "@zenkigen-inc/component-config": "1.21.0",
42
- "@zenkigen-inc/component-icons": "1.21.0",
43
- "@zenkigen-inc/component-theme": "1.21.0",
41
+ "@zenkigen-inc/component-config": "1.22.0",
42
+ "@zenkigen-inc/component-icons": "1.22.0",
43
+ "@zenkigen-inc/component-theme": "1.22.0",
44
44
  "clsx": "2.1.1",
45
45
  "react-day-picker": "9.14.0"
46
46
  }
package/vitest.setup.ts CHANGED
@@ -1 +1,7 @@
1
1
  import '@testing-library/jest-dom';
2
+
3
+ // jsdom は Element.prototype.scrollTo を実装していないため no-op で補う。
4
+ // 選択済みの状態で候補リストを開くコンポーネント(Select 等)が選択項目へスクロールする際に呼び出す。
5
+ if (typeof Element.prototype.scrollTo !== 'function') {
6
+ Element.prototype.scrollTo = () => {};
7
+ }