tango-ui-cw 0.2.5 → 0.2.6

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": "tango-ui-cw",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "A lightweight ui library with ClayW",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -14,10 +14,10 @@
14
14
  "@vitejs/plugin-react": "^4.4.1",
15
15
  "vite": "^6.3.5"
16
16
  },
17
- "peerDependencies": {
18
- "react": "^18.0.0",
19
- "react-dom": "^18.0.0"
20
- },
17
+ "peerDependencies": {
18
+ "react": "^18.0.0 || ^19.0.0",
19
+ "react-dom": "^18.0.0 || ^19.0.0"
20
+ },
21
21
  "peerDependenciesMeta": {
22
22
  "react": {
23
23
  "optional": true
@@ -1,3 +1,4 @@
1
+
1
2
  import React, { useRef } from "react";
2
3
  import styles from "./MaterialButton.module.css"; // 使用模块化 CSS
3
4
  import { useTangoStyle } from "../CSSFab/useTangoStyle";
@@ -1,4 +1,5 @@
1
1
  // Material风格Input
2
+
2
3
  import { useState } from "react";
3
4
  import styles from "./MaterialInput.module.css";
4
5
 
@@ -1,5 +1,5 @@
1
1
  // 封装的button组件
2
- import React from "react";
2
+
3
3
  import PropTypes from "prop-types";
4
4
  import styles from './TButton.module.css' // 引入样式文件
5
5
  import { useTangoStyle } from "../CSSFab/useTangoStyle"; // 导入 useFastStyle 函数