@befe/brick-comp-close-x 0.2.91 → 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 +16 -0
- package/es/base.js +1 -0
- package/es/index.css +75 -75
- package/package.json +4 -4
- 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,22 @@
|
|
|
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
|
+
|
|
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)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @befe/brick-comp-close-x
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [0.2.91](https://icode.baidu.com/repos/baidu/be-fe/brick/merge/%40befe%2Fbrick-comp-close-x%400.2.90...%40befe%2Fbrick-comp-close-x%400.2.91) (2026-03-19)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @befe/brick-comp-close-x
|
package/es/base.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/es/index.css
CHANGED
|
@@ -369,10 +369,10 @@
|
|
|
369
369
|
.brick-button-color-success.brick-button-type-important, .brick-button-color-success.brick-button-type-important .brick-icon, .brick-button-color-success.brick-button-type-important.brick-button-disabled, .brick-button-color-success.brick-button-type-important.brick-button-disabled .brick-icon {
|
|
370
370
|
color: rgb(255, 255, 255);
|
|
371
371
|
}
|
|
372
|
-
.brick-button-color-
|
|
372
|
+
.brick-button-color-warning.brick-button-type-important, .brick-button-color-warning.brick-button-type-important .brick-icon, .brick-button-color-warning.brick-button-type-important.brick-button-disabled, .brick-button-color-warning.brick-button-type-important.brick-button-disabled .brick-icon {
|
|
373
373
|
color: rgb(255, 255, 255);
|
|
374
374
|
}
|
|
375
|
-
.brick-button-color-
|
|
375
|
+
.brick-button-color-danger.brick-button-type-important, .brick-button-color-danger.brick-button-type-important .brick-icon, .brick-button-color-danger.brick-button-type-important.brick-button-disabled, .brick-button-color-danger.brick-button-type-important.brick-button-disabled .brick-icon {
|
|
376
376
|
color: rgb(255, 255, 255);
|
|
377
377
|
}
|
|
378
378
|
.brick-button-color-brand:focus-visible:not([tabindex^="-"]):not(:active) {
|
|
@@ -521,79 +521,6 @@
|
|
|
521
521
|
.brick-button-color-success.brick-button-type-plain.brick-button-disabled:not(.brick-button-loading), .brick-button-color-success.brick-button-type-plain.brick-button-disabled:not(.brick-button-loading) .brick-icon {
|
|
522
522
|
color: rgb(165.24, 229.5, 173.808);
|
|
523
523
|
}
|
|
524
|
-
.brick-button-color-danger:focus-visible:not([tabindex^="-"]):not(:active) {
|
|
525
|
-
border-color: #e64552;
|
|
526
|
-
box-shadow: 0 0 0 2px rgb(255, 219.3, 219.895);
|
|
527
|
-
outline: none;
|
|
528
|
-
}
|
|
529
|
-
.brick-button-color-danger.brick-button-type-intensive {
|
|
530
|
-
border-color: #e64552;
|
|
531
|
-
}
|
|
532
|
-
.brick-button-color-danger.brick-button-type-intensive, .brick-button-color-danger.brick-button-type-intensive .brick-icon {
|
|
533
|
-
color: #e64552;
|
|
534
|
-
}
|
|
535
|
-
.brick-button-color-danger.brick-button-type-intensive.brick-button-loading, .brick-button-color-danger.brick-button-type-intensive:hover {
|
|
536
|
-
background-color: rgb(242.25, 106.59, 115.634);
|
|
537
|
-
}
|
|
538
|
-
.brick-button-color-danger.brick-button-type-intensive.brick-button-loading, .brick-button-color-danger.brick-button-type-intensive:hover {
|
|
539
|
-
border-color: rgb(242.25, 106.59, 115.634);
|
|
540
|
-
}
|
|
541
|
-
.brick-button-color-danger.brick-button-type-intensive.brick-button-loading.brick-button-disabled, .brick-button-color-danger.brick-button-type-intensive:active {
|
|
542
|
-
border-color: rgb(191.25, 47.8125, 62.15625);
|
|
543
|
-
background-color: rgb(191.25, 47.8125, 62.15625);
|
|
544
|
-
}
|
|
545
|
-
.brick-button-color-danger.brick-button-type-intensive.brick-button-loading, .brick-button-color-danger.brick-button-type-intensive.brick-button-loading .brick-icon, .brick-button-color-danger.brick-button-type-intensive:hover, .brick-button-color-danger.brick-button-type-intensive:hover .brick-icon, .brick-button-color-danger.brick-button-type-intensive:active, .brick-button-color-danger.brick-button-type-intensive:active .brick-icon {
|
|
546
|
-
color: rgb(255, 255, 255);
|
|
547
|
-
}
|
|
548
|
-
.brick-button-color-danger.brick-button-type-intensive:focus-visible:not([tabindex^="-"]):not(:active) {
|
|
549
|
-
background-color: rgb(242.25, 106.59, 115.634);
|
|
550
|
-
}
|
|
551
|
-
.brick-button-color-danger.brick-button-type-intensive:focus-visible:not([tabindex^="-"]):not(:active), .brick-button-color-danger.brick-button-type-intensive:focus-visible:not([tabindex^="-"]):not(:active) .brick-icon {
|
|
552
|
-
color: rgb(255, 255, 255);
|
|
553
|
-
}
|
|
554
|
-
.brick-button-color-danger.brick-button-type-intensive.brick-button-disabled:not(.brick-button-loading) {
|
|
555
|
-
background-color: rgb(255, 242.25, 242.25);
|
|
556
|
-
border-color: rgb(255, 219.3, 219.895);
|
|
557
|
-
}
|
|
558
|
-
.brick-button-color-danger.brick-button-type-intensive.brick-button-disabled:not(.brick-button-loading), .brick-button-color-danger.brick-button-type-intensive.brick-button-disabled:not(.brick-button-loading) .brick-icon {
|
|
559
|
-
color: rgb(255, 183.6, 185.98);
|
|
560
|
-
}
|
|
561
|
-
.brick-button-color-danger.brick-button-type-important {
|
|
562
|
-
background-color: #e64552;
|
|
563
|
-
}
|
|
564
|
-
.brick-button-color-danger.brick-button-type-important:hover, .brick-button-color-danger.brick-button-type-important.brick-button-loading {
|
|
565
|
-
background-color: rgb(242.25, 106.59, 115.634);
|
|
566
|
-
}
|
|
567
|
-
.brick-button-color-danger.brick-button-type-important.brick-button-loading.brick-button-disabled, .brick-button-color-danger.brick-button-type-important:active {
|
|
568
|
-
background-color: rgb(191.25, 47.8125, 62.15625);
|
|
569
|
-
}
|
|
570
|
-
.brick-button-color-danger.brick-button-type-important:focus-visible:not([tabindex^="-"]):not(:active) {
|
|
571
|
-
background-color: rgb(242.25, 106.59, 115.634);
|
|
572
|
-
}
|
|
573
|
-
.brick-button-color-danger.brick-button-type-important.brick-button-disabled:not(.brick-button-loading) {
|
|
574
|
-
background-color: rgb(255, 219.3, 219.895);
|
|
575
|
-
}
|
|
576
|
-
.brick-button-color-danger.brick-button-type-plain {
|
|
577
|
-
background: none;
|
|
578
|
-
}
|
|
579
|
-
.brick-button-color-danger.brick-button-type-plain, .brick-button-color-danger.brick-button-type-plain .brick-icon {
|
|
580
|
-
color: #e64552;
|
|
581
|
-
}
|
|
582
|
-
.brick-button-color-danger.brick-button-type-plain:hover, .brick-button-color-danger.brick-button-type-plain:hover .brick-icon, .brick-button-color-danger.brick-button-type-plain.brick-button-loading, .brick-button-color-danger.brick-button-type-plain.brick-button-loading .brick-icon {
|
|
583
|
-
color: rgb(242.25, 106.59, 115.634);
|
|
584
|
-
}
|
|
585
|
-
.brick-button-color-danger.brick-button-type-plain:focus-visible:not([tabindex^="-"]):not(:active), .brick-button-color-danger.brick-button-type-plain:focus-visible:not([tabindex^="-"]):not(:active) .brick-icon {
|
|
586
|
-
color: rgb(242.25, 106.59, 115.634);
|
|
587
|
-
}
|
|
588
|
-
.brick-button-color-danger.brick-button-type-plain.brick-button-loading.brick-button-disabled, .brick-button-color-danger.brick-button-type-plain.brick-button-loading.brick-button-disabled .brick-icon, .brick-button-color-danger.brick-button-type-plain:active, .brick-button-color-danger.brick-button-type-plain:active .brick-icon {
|
|
589
|
-
color: rgb(191.25, 47.8125, 62.15625);
|
|
590
|
-
}
|
|
591
|
-
.brick-button-color-danger.brick-button-type-plain.brick-button-disabled:not(.brick-button-loading) {
|
|
592
|
-
background: none;
|
|
593
|
-
}
|
|
594
|
-
.brick-button-color-danger.brick-button-type-plain.brick-button-disabled:not(.brick-button-loading), .brick-button-color-danger.brick-button-type-plain.brick-button-disabled:not(.brick-button-loading) .brick-icon {
|
|
595
|
-
color: rgb(255, 183.6, 185.98);
|
|
596
|
-
}
|
|
597
524
|
.brick-button-color-warning:focus-visible:not([tabindex^="-"]):not(:active) {
|
|
598
525
|
border-color: #f27c49;
|
|
599
526
|
box-shadow: 0 0 0 2px rgb(255, 232.39, 219.3);
|
|
@@ -667,6 +594,79 @@
|
|
|
667
594
|
.brick-button-color-warning.brick-button-type-plain.brick-button-disabled:not(.brick-button-loading), .brick-button-color-warning.brick-button-type-plain.brick-button-disabled:not(.brick-button-loading) .brick-icon {
|
|
668
595
|
color: rgb(255, 208.59, 183.6);
|
|
669
596
|
}
|
|
597
|
+
.brick-button-color-danger:focus-visible:not([tabindex^="-"]):not(:active) {
|
|
598
|
+
border-color: #e64552;
|
|
599
|
+
box-shadow: 0 0 0 2px rgb(255, 219.3, 219.895);
|
|
600
|
+
outline: none;
|
|
601
|
+
}
|
|
602
|
+
.brick-button-color-danger.brick-button-type-intensive {
|
|
603
|
+
border-color: #e64552;
|
|
604
|
+
}
|
|
605
|
+
.brick-button-color-danger.brick-button-type-intensive, .brick-button-color-danger.brick-button-type-intensive .brick-icon {
|
|
606
|
+
color: #e64552;
|
|
607
|
+
}
|
|
608
|
+
.brick-button-color-danger.brick-button-type-intensive.brick-button-loading, .brick-button-color-danger.brick-button-type-intensive:hover {
|
|
609
|
+
background-color: rgb(242.25, 106.59, 115.634);
|
|
610
|
+
}
|
|
611
|
+
.brick-button-color-danger.brick-button-type-intensive.brick-button-loading, .brick-button-color-danger.brick-button-type-intensive:hover {
|
|
612
|
+
border-color: rgb(242.25, 106.59, 115.634);
|
|
613
|
+
}
|
|
614
|
+
.brick-button-color-danger.brick-button-type-intensive.brick-button-loading.brick-button-disabled, .brick-button-color-danger.brick-button-type-intensive:active {
|
|
615
|
+
border-color: rgb(191.25, 47.8125, 62.15625);
|
|
616
|
+
background-color: rgb(191.25, 47.8125, 62.15625);
|
|
617
|
+
}
|
|
618
|
+
.brick-button-color-danger.brick-button-type-intensive.brick-button-loading, .brick-button-color-danger.brick-button-type-intensive.brick-button-loading .brick-icon, .brick-button-color-danger.brick-button-type-intensive:hover, .brick-button-color-danger.brick-button-type-intensive:hover .brick-icon, .brick-button-color-danger.brick-button-type-intensive:active, .brick-button-color-danger.brick-button-type-intensive:active .brick-icon {
|
|
619
|
+
color: rgb(255, 255, 255);
|
|
620
|
+
}
|
|
621
|
+
.brick-button-color-danger.brick-button-type-intensive:focus-visible:not([tabindex^="-"]):not(:active) {
|
|
622
|
+
background-color: rgb(242.25, 106.59, 115.634);
|
|
623
|
+
}
|
|
624
|
+
.brick-button-color-danger.brick-button-type-intensive:focus-visible:not([tabindex^="-"]):not(:active), .brick-button-color-danger.brick-button-type-intensive:focus-visible:not([tabindex^="-"]):not(:active) .brick-icon {
|
|
625
|
+
color: rgb(255, 255, 255);
|
|
626
|
+
}
|
|
627
|
+
.brick-button-color-danger.brick-button-type-intensive.brick-button-disabled:not(.brick-button-loading) {
|
|
628
|
+
background-color: rgb(255, 242.25, 242.25);
|
|
629
|
+
border-color: rgb(255, 219.3, 219.895);
|
|
630
|
+
}
|
|
631
|
+
.brick-button-color-danger.brick-button-type-intensive.brick-button-disabled:not(.brick-button-loading), .brick-button-color-danger.brick-button-type-intensive.brick-button-disabled:not(.brick-button-loading) .brick-icon {
|
|
632
|
+
color: rgb(255, 183.6, 185.98);
|
|
633
|
+
}
|
|
634
|
+
.brick-button-color-danger.brick-button-type-important {
|
|
635
|
+
background-color: #e64552;
|
|
636
|
+
}
|
|
637
|
+
.brick-button-color-danger.brick-button-type-important:hover, .brick-button-color-danger.brick-button-type-important.brick-button-loading {
|
|
638
|
+
background-color: rgb(242.25, 106.59, 115.634);
|
|
639
|
+
}
|
|
640
|
+
.brick-button-color-danger.brick-button-type-important.brick-button-loading.brick-button-disabled, .brick-button-color-danger.brick-button-type-important:active {
|
|
641
|
+
background-color: rgb(191.25, 47.8125, 62.15625);
|
|
642
|
+
}
|
|
643
|
+
.brick-button-color-danger.brick-button-type-important:focus-visible:not([tabindex^="-"]):not(:active) {
|
|
644
|
+
background-color: rgb(242.25, 106.59, 115.634);
|
|
645
|
+
}
|
|
646
|
+
.brick-button-color-danger.brick-button-type-important.brick-button-disabled:not(.brick-button-loading) {
|
|
647
|
+
background-color: rgb(255, 219.3, 219.895);
|
|
648
|
+
}
|
|
649
|
+
.brick-button-color-danger.brick-button-type-plain {
|
|
650
|
+
background: none;
|
|
651
|
+
}
|
|
652
|
+
.brick-button-color-danger.brick-button-type-plain, .brick-button-color-danger.brick-button-type-plain .brick-icon {
|
|
653
|
+
color: #e64552;
|
|
654
|
+
}
|
|
655
|
+
.brick-button-color-danger.brick-button-type-plain:hover, .brick-button-color-danger.brick-button-type-plain:hover .brick-icon, .brick-button-color-danger.brick-button-type-plain.brick-button-loading, .brick-button-color-danger.brick-button-type-plain.brick-button-loading .brick-icon {
|
|
656
|
+
color: rgb(242.25, 106.59, 115.634);
|
|
657
|
+
}
|
|
658
|
+
.brick-button-color-danger.brick-button-type-plain:focus-visible:not([tabindex^="-"]):not(:active), .brick-button-color-danger.brick-button-type-plain:focus-visible:not([tabindex^="-"]):not(:active) .brick-icon {
|
|
659
|
+
color: rgb(242.25, 106.59, 115.634);
|
|
660
|
+
}
|
|
661
|
+
.brick-button-color-danger.brick-button-type-plain.brick-button-loading.brick-button-disabled, .brick-button-color-danger.brick-button-type-plain.brick-button-loading.brick-button-disabled .brick-icon, .brick-button-color-danger.brick-button-type-plain:active, .brick-button-color-danger.brick-button-type-plain:active .brick-icon {
|
|
662
|
+
color: rgb(191.25, 47.8125, 62.15625);
|
|
663
|
+
}
|
|
664
|
+
.brick-button-color-danger.brick-button-type-plain.brick-button-disabled:not(.brick-button-loading) {
|
|
665
|
+
background: none;
|
|
666
|
+
}
|
|
667
|
+
.brick-button-color-danger.brick-button-type-plain.brick-button-disabled:not(.brick-button-loading), .brick-button-color-danger.brick-button-type-plain.brick-button-disabled:not(.brick-button-loading) .brick-icon {
|
|
668
|
+
color: rgb(255, 183.6, 185.98);
|
|
669
|
+
}
|
|
670
670
|
.brick-button-loading-type-icon-only .brick-button-loading-icon {
|
|
671
671
|
position: absolute;
|
|
672
672
|
left: 50%;
|
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",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"author": "wujun07",
|
|
21
21
|
"license": "ISC",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@befe/brick-comp-button": "^0.2.
|
|
23
|
+
"@befe/brick-comp-button": "^0.2.92",
|
|
24
24
|
"@befe/brick-core": "^0.2.50",
|
|
25
25
|
"@befe/brick-icon": "^0.2.25",
|
|
26
|
-
"@befe/brick-style": "^0.2.
|
|
26
|
+
"@befe/brick-style": "^0.2.61",
|
|
27
27
|
"@befe/brick-utils": "^0.2.22"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
@@ -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 {};
|