@lynx-js/lynx-ui-button 3.136.0 → 3.139.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 +16 -0
- package/dist/Button.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.docs.d.ts +5 -1
- package/dist/types/index.docs.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/types/index.docs.ts +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @lynx-js/lynx-ui-button
|
|
2
2
|
|
|
3
|
+
## 3.139.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`1a4ad19`](https://github.com/lynx-family/lynx-ui/commit/1a4ad190993d57425b4c377a7dd63882cc65a8d2)]:
|
|
8
|
+
- @lynx-js/lynx-ui-common@3.139.0
|
|
9
|
+
|
|
10
|
+
## 3.137.0
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Emit declaration imports with explicit ESM-compatible paths. ([#280](https://github.com/lynx-family/lynx-ui/pull/280))
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [[`064ea4e`](https://github.com/lynx-family/lynx-ui/commit/064ea4e49cd3d0ac5754519cbee43d8ab3040024)]:
|
|
17
|
+
- @lynx-js/lynx-ui-common@3.137.0
|
|
18
|
+
|
|
3
19
|
## 3.136.0
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/Button.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Button, ButtonContext } from './Button';
|
|
2
|
-
export type { ButtonProps } from './types';
|
|
1
|
+
export { Button, ButtonContext } from './Button.js';
|
|
2
|
+
export type { ButtonProps } from './types/index.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './index.docs';
|
|
1
|
+
export * from './index.docs.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -80,7 +80,7 @@ export interface ButtonRenderProps {
|
|
|
80
80
|
* Use them as CSS selectors to style different states.
|
|
81
81
|
* @zh Button 根据交互状态注入的 ui-variants,可用于 CSS selector 按状态定制样式。
|
|
82
82
|
*/
|
|
83
|
-
export interface
|
|
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;;;;;;OAM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hB;;;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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/lynx-ui-button",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.139.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.
|
|
30
|
+
"@lynx-js/lynx-ui-common": "3.139.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@lynx-js/react": "0.123.1",
|
package/src/types/index.docs.ts
CHANGED
|
@@ -93,7 +93,7 @@ export interface ButtonRenderProps {
|
|
|
93
93
|
* Use them as CSS selectors to style different states.
|
|
94
94
|
* @zh Button 根据交互状态注入的 ui-variants,可用于 CSS selector 按状态定制样式。
|
|
95
95
|
*/
|
|
96
|
-
export interface
|
|
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
|