@zenkigen-inc/component-ui 1.21.1 → 2.0.0-rc.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.1",
3
+ "version": "2.0.0-rc.0",
4
4
  "repository": "https://github.com/zenkigen/zenkigen-component",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -14,7 +14,8 @@
14
14
  ".": {
15
15
  "import": "./dist/index.mjs",
16
16
  "require": "./dist/index.js"
17
- }
17
+ },
18
+ "./styles": "./styles.css"
18
19
  },
19
20
  "scripts": {
20
21
  "type-check": "tsc --noEmit",
@@ -34,13 +35,14 @@
34
35
  },
35
36
  "peerDependencies": {
36
37
  "react": "^18.0.0 || ^19.0.0",
37
- "react-dom": "^18.0.0 || ^19.0.0"
38
+ "react-dom": "^18.0.0 || ^19.0.0",
39
+ "tailwindcss": "^4.0.0"
38
40
  },
39
41
  "dependencies": {
40
- "@floating-ui/react": "0.27.19",
41
- "@zenkigen-inc/component-config": "1.21.1",
42
- "@zenkigen-inc/component-icons": "1.21.1",
43
- "@zenkigen-inc/component-theme": "1.21.1",
42
+ "@floating-ui/react": "0.27.20",
43
+ "@zenkigen-inc/component-config": "2.0.0-rc.0",
44
+ "@zenkigen-inc/component-icons": "2.0.0-rc.0",
45
+ "@zenkigen-inc/component-theme": "2.0.0-rc.0",
44
46
  "clsx": "2.1.1",
45
47
  "react-day-picker": "9.14.0"
46
48
  }
package/styles.css ADDED
@@ -0,0 +1,8 @@
1
+ /* zenkigen-component 利用側のエントリポイント。
2
+ デザイントークン(component-config/styles)の読み込みと、コンポーネントが
3
+ 実行時に参照する動的クラスの検出(@source)をまとめて提供する。
4
+ @source の相対パスはこのファイルの場所基準で解決される。 */
5
+ @import '@zenkigen-inc/component-config/styles';
6
+ @import '@zenkigen-inc/component-theme/source';
7
+
8
+ @source './dist/**/*.mjs';
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
+ }