@befe/brick-comp-close-x 0.2.92 → 0.2.93
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 +8 -0
- package/es/base.js +1 -0
- package/package.json +2 -2
- package/src/base.ts +15 -0
- package/src/index.tsx +2 -15
- package/types/base.d.ts +13 -0
- package/types/index.d.ts +1 -13
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.2.93](https://icode.baidu.com/repos/baidu/be-fe/brick/merge/%40befe%2Fbrick-comp-close-x%400.2.92...%40befe%2Fbrick-comp-close-x%400.2.93) (2026-04-09)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @befe/brick-comp-close-x
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [0.2.92](https://icode.baidu.com:8235/baidu/be-fe/brick//%40befe%2Fbrick-comp-close-x%400.2.91...%40befe%2Fbrick-comp-close-x%400.2.92) (2026-03-19)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @befe/brick-comp-close-x
|
package/es/base.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@befe/brick-comp-close-x",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.93",
|
|
4
4
|
"description": "@befe/brick component CloseX",
|
|
5
5
|
"main": "es",
|
|
6
6
|
"module": "es",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"react": "^16.9.0 || ^17.0.0",
|
|
33
33
|
"react-dom": "^16.9.0 || ^17.0.0"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "60b826bf256915c351184a690d3a87368dcfa291"
|
|
36
36
|
}
|
package/src/base.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {ButtonProps} from '@befe/brick-comp-button'
|
|
2
|
+
|
|
3
|
+
type PropsFromButton = Omit<ButtonProps, 'type' | 'icon' | 'size'>
|
|
4
|
+
|
|
5
|
+
export interface CloseXProps extends PropsFromButton {
|
|
6
|
+
/**
|
|
7
|
+
* 自定义 class
|
|
8
|
+
*/
|
|
9
|
+
className?: string
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* 尺寸
|
|
13
|
+
*/
|
|
14
|
+
size?: 'sm' | 'md' | 'lg'
|
|
15
|
+
}
|
package/src/index.tsx
CHANGED
|
@@ -2,22 +2,9 @@ import {Component} from 'react'
|
|
|
2
2
|
// import * as PropTypes from 'prop-types'
|
|
3
3
|
import c from 'classnames'
|
|
4
4
|
import {omit} from '@befe/brick-utils'
|
|
5
|
-
import {Button
|
|
5
|
+
import {Button} from '@befe/brick-comp-button'
|
|
6
6
|
import {SvgMarkX} from '@befe/brick-icon'
|
|
7
|
-
|
|
8
|
-
type PropsFromButton = Omit<ButtonProps, 'type' | 'icon' | 'size'>
|
|
9
|
-
|
|
10
|
-
export interface CloseXProps extends PropsFromButton {
|
|
11
|
-
/**
|
|
12
|
-
* 自定义 class
|
|
13
|
-
*/
|
|
14
|
-
className?: string
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* 尺寸
|
|
18
|
-
*/
|
|
19
|
-
size?: 'sm' | 'md' | 'lg'
|
|
20
|
-
}
|
|
7
|
+
import {CloseXProps} from './base'
|
|
21
8
|
|
|
22
9
|
type CloseXPropsWithDefaults = CloseXProps & Required<Pick<CloseXProps, keyof typeof CloseX.defaultProps>>
|
|
23
10
|
|
package/types/base.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ButtonProps } from '@befe/brick-comp-button';
|
|
2
|
+
type PropsFromButton = Omit<ButtonProps, 'type' | 'icon' | 'size'>;
|
|
3
|
+
export interface CloseXProps extends PropsFromButton {
|
|
4
|
+
/**
|
|
5
|
+
* 自定义 class
|
|
6
|
+
*/
|
|
7
|
+
className?: string;
|
|
8
|
+
/**
|
|
9
|
+
* 尺寸
|
|
10
|
+
*/
|
|
11
|
+
size?: 'sm' | 'md' | 'lg';
|
|
12
|
+
}
|
|
13
|
+
export {};
|
package/types/index.d.ts
CHANGED
|
@@ -1,16 +1,5 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
type PropsFromButton = Omit<ButtonProps, 'type' | 'icon' | 'size'>;
|
|
4
|
-
export interface CloseXProps extends PropsFromButton {
|
|
5
|
-
/**
|
|
6
|
-
* 自定义 class
|
|
7
|
-
*/
|
|
8
|
-
className?: string;
|
|
9
|
-
/**
|
|
10
|
-
* 尺寸
|
|
11
|
-
*/
|
|
12
|
-
size?: 'sm' | 'md' | 'lg';
|
|
13
|
-
}
|
|
2
|
+
import { CloseXProps } from './base';
|
|
14
3
|
export declare class CloseX extends Component<CloseXProps> {
|
|
15
4
|
static displayName: string;
|
|
16
5
|
static defaultProps: {
|
|
@@ -20,4 +9,3 @@ export declare class CloseX extends Component<CloseXProps> {
|
|
|
20
9
|
get className(): string;
|
|
21
10
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
22
11
|
}
|
|
23
|
-
export {};
|