@lynx-js/lynx-ui-button 3.137.0 → 3.142.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/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @lynx-js/lynx-ui-button
2
2
 
3
+ ## 3.142.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Accept React 18 and newer types. ReactLynx still defines the compatible versions for each app. ([#383](https://github.com/lynx-family/lynx-ui/pull/383))
8
+
9
+ - Updated dependencies [[`49cb3c5`](https://github.com/lynx-family/lynx-ui/commit/49cb3c5b20d9346ff0f8b314367b4c8e354d195d)]:
10
+ - @lynx-js/lynx-ui-common@3.142.0
11
+
12
+ ## 3.139.0
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [[`1a4ad19`](https://github.com/lynx-family/lynx-ui/commit/1a4ad190993d57425b4c377a7dd63882cc65a8d2)]:
17
+ - @lynx-js/lynx-ui-common@3.139.0
18
+
3
19
  ## 3.137.0
4
20
 
5
21
  ### Patch Changes
@@ -1,2 +1,2 @@
1
- export * from './index.docs.js';
1
+ export type * from './index.docs.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAIA,mBAAmB,cAAc,CAAA"}
@@ -78,9 +78,9 @@ export interface ButtonRenderProps {
78
78
  /**
79
79
  * UI variants applied by Button based on its interactive status.
80
80
  * Use them as CSS selectors to style different states.
81
- * @zh Button 根据交互状态注入的 ui-variants,可用于 CSS selector 按状态定制样式。
81
+ * @zh Button 根据交互状态注入的 UI variants,可用于 CSS selector 按状态定制样式。
82
82
  */
83
- export interface ButtonUiVariants {
83
+ export interface ButtonUIVariants {
84
84
  /**
85
85
  * Applied when `status.active` is true.
86
86
  * @zh 当 status.active 为 true 时生效,可用于 `.ui-active { ... }`。
@@ -92,4 +92,8 @@ export interface ButtonUiVariants {
92
92
  */
93
93
  'ui-disabled'?: boolean;
94
94
  }
95
+ /**
96
+ * @deprecated Use `ButtonUIVariants` instead.
97
+ */
98
+ export type ButtonUiVariants = ButtonUIVariants;
95
99
  //# sourceMappingURL=index.docs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.docs.d.ts","sourceRoot":"","sources":["../../src/types/index.docs.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE/C,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE9D;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;;;;;OAOG;IACH,QAAQ,CAAC,EACL,SAAS,GACT,CAAC,CACD,KAAK,EAAE;QACL,MAAM,EAAE,OAAO,CAAA;QACf,QAAQ,EAAE,OAAO,CAAA;KAClB,KACE,SAAS,CAAC,CAAA;IACjB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IAErB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB"}
1
+ {"version":3,"file":"index.docs.d.ts","sourceRoot":"","sources":["../../src/types/index.docs.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE/C,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE9D;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;;;;;OAOG;IACH,QAAQ,CAAC,EACL,SAAS,GACT,CAAC,CACD,KAAK,EAAE;QACL,MAAM,EAAE,OAAO,CAAA;QACf,QAAQ,EAAE,OAAO,CAAA;KAClB,KACE,SAAS,CAAC,CAAA;IACjB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IAErB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAED;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,CAAA"}
@@ -1 +1 @@
1
- export * from "./index.docs.jsx";
1
+ export { };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/lynx-ui-button",
3
- "version": "3.137.0",
3
+ "version": "3.142.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/lynx-family/lynx-ui.git",
@@ -27,7 +27,7 @@
27
27
  "dependencies": {
28
28
  "@lynx-js/react-use": "0.2.2",
29
29
  "clsx": "^2.1.1",
30
- "@lynx-js/lynx-ui-common": "3.137.0"
30
+ "@lynx-js/lynx-ui-common": "3.142.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@lynx-js/react": "0.123.1",
@@ -39,7 +39,7 @@
39
39
  "peerDependencies": {
40
40
  "@lynx-js/react": ">=0.100.0",
41
41
  "@lynx-js/types": "*",
42
- "@types/react": "^18"
42
+ "@types/react": ">=18"
43
43
  },
44
44
  "publishConfig": {
45
45
  "access": "public"
@@ -91,9 +91,9 @@ export interface ButtonRenderProps {
91
91
  /**
92
92
  * UI variants applied by Button based on its interactive status.
93
93
  * Use them as CSS selectors to style different states.
94
- * @zh Button 根据交互状态注入的 ui-variants,可用于 CSS selector 按状态定制样式。
94
+ * @zh Button 根据交互状态注入的 UI variants,可用于 CSS selector 按状态定制样式。
95
95
  */
96
- export interface ButtonUiVariants {
96
+ export interface ButtonUIVariants {
97
97
  /**
98
98
  * Applied when `status.active` is true.
99
99
  * @zh 当 status.active 为 true 时生效,可用于 `.ui-active { ... }`。
@@ -106,3 +106,8 @@ export interface ButtonUiVariants {
106
106
  */
107
107
  'ui-disabled'?: boolean
108
108
  }
109
+
110
+ /**
111
+ * @deprecated Use `ButtonUIVariants` instead.
112
+ */
113
+ export type ButtonUiVariants = ButtonUIVariants
@@ -2,4 +2,4 @@
2
2
  // Licensed under the Apache License Version 2.0 that can be found in the
3
3
  // LICENSE file in the root directory of this source tree.
4
4
 
5
- export * from './index.docs'
5
+ export type * from './index.docs'