@baishuyun/ui-base 6.21.0 → 6.21.1
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/dist/Amap/index.js +1 -1
- package/dist/Calendar/{Calendar-DYI9CWYE.js → Calendar-BaIHL7cB.js} +1 -1
- package/dist/Calendar/index.js +3 -3
- package/dist/Card/index.js +1 -1
- package/dist/CheckBox/CheckBox-BErX3YWP.js +75 -0
- package/dist/CheckBox/CheckBox-Dp7hxT2F.js +37 -0
- package/dist/CheckBox/index.js +3 -3
- package/dist/ColorPicker/index.js +1 -1
- package/dist/ConfigProvider/index.js +1 -1
- package/dist/DatePicker/{DatePicker-CopVj7KA.js → DatePicker-CbfmdBaK.js} +1 -1
- package/dist/DatePicker/{DatePickerPanel-CLCEPUcL.js → DatePickerPanel-BDJYZs1q.js} +1 -1
- package/dist/DatePicker/index.js +2 -2
- package/dist/DropDown/index.js +1 -1
- package/dist/Editor/index.js +15 -12
- package/dist/Gantt/index.js +1 -1
- package/dist/Icon/index.js +1 -1
- package/dist/InputTag/index.js +1 -1
- package/dist/Loading/index.js +1 -1
- package/dist/Modal/index.js +1 -1
- package/dist/NotFoundContent/index.js +1 -1
- package/dist/Overlay/index.js +1 -1
- package/dist/Radio/Radio-C0OAW-K-.js +96 -0
- package/dist/Radio/index.js +2 -2
- package/dist/ScrollBar/index.js +1 -1
- package/dist/Segmented/index.js +1 -1
- package/dist/Select/{Select-VIy6OKEj.js → Select-DryXF1Tp.js} +2 -2
- package/dist/Select/index.js +6 -6
- package/dist/Table/index.js +1 -1
- package/dist/Tabs/index.js +1 -1
- package/dist/Tooltip/index.js +1 -1
- package/dist/Tree/index.js +4 -4
- package/dist/components/CheckBox/CheckBox.d.ts +2 -45
- package/dist/components/CheckBox/Group.d.ts +3 -33
- package/dist/components/CheckBox/index.d.ts +1 -1
- package/dist/components/CheckBox/interface.d.ts +142 -0
- package/dist/components/CheckBox/style/resolveCheckBoxThemeVars.d.ts +2 -0
- package/dist/components/Radio/index.d.ts +1 -0
- package/dist/components/Radio/interface.d.ts +67 -0
- package/dist/components/Radio/style/resolveRadioThemeVars.d.ts +2 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/index.js +8 -8
- package/dist/style.css +1 -1
- package/dist/vendors/{Tree-D0Q1IZ2D.js → Tree-DWK-JPnJ.js} +2 -2
- package/dist/vendors/{version-BVdbN53a.js → version-CyVENVWD.js} +1 -1
- package/package.json +1 -1
- package/dist/CheckBox/CheckBox-CM24-quL.js +0 -33
- package/dist/CheckBox/CheckBox-CcHskTz_.js +0 -67
- package/dist/Radio/Radio-D9jhW7K6.js +0 -85
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { Layout } from './constants';
|
|
3
|
+
export interface CheckBoxTheme {
|
|
4
|
+
/**
|
|
5
|
+
* @description 选中背景色
|
|
6
|
+
*/
|
|
7
|
+
checkedBg?: string;
|
|
8
|
+
/**
|
|
9
|
+
* @description 选中边框色
|
|
10
|
+
*/
|
|
11
|
+
checkedBorder?: string;
|
|
12
|
+
/**
|
|
13
|
+
* @description 选中勾选图标色
|
|
14
|
+
*/
|
|
15
|
+
checkIconColor?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @description 未选背景色
|
|
18
|
+
*/
|
|
19
|
+
uncheckedBg?: string;
|
|
20
|
+
/**
|
|
21
|
+
* @description 未选边框色
|
|
22
|
+
*/
|
|
23
|
+
colorBorder?: string;
|
|
24
|
+
/**
|
|
25
|
+
* @description 未选悬停边框色
|
|
26
|
+
*/
|
|
27
|
+
colorBorderHover?: string;
|
|
28
|
+
/**
|
|
29
|
+
* @description 半选背景色
|
|
30
|
+
*/
|
|
31
|
+
indeterminateBg?: string;
|
|
32
|
+
/**
|
|
33
|
+
* @description 半选边框色
|
|
34
|
+
*/
|
|
35
|
+
indeterminateBorder?: string;
|
|
36
|
+
/**
|
|
37
|
+
* @description 半选指示条颜色
|
|
38
|
+
*/
|
|
39
|
+
indeterminateIndicator?: string;
|
|
40
|
+
/**
|
|
41
|
+
* @description 禁用背景色
|
|
42
|
+
*/
|
|
43
|
+
colorBgDisabled?: string;
|
|
44
|
+
/**
|
|
45
|
+
* @description 禁用边框色
|
|
46
|
+
*/
|
|
47
|
+
colorBorderDisabled?: string;
|
|
48
|
+
/**
|
|
49
|
+
* @description 禁用勾选图标色
|
|
50
|
+
*/
|
|
51
|
+
checkIconColorDisabled?: string;
|
|
52
|
+
/**
|
|
53
|
+
* @description 禁用半选指示条颜色
|
|
54
|
+
*/
|
|
55
|
+
indeterminateIndicatorDisabled?: string;
|
|
56
|
+
}
|
|
57
|
+
export interface CheckboxProps {
|
|
58
|
+
/**
|
|
59
|
+
* @description 是否选中
|
|
60
|
+
*/
|
|
61
|
+
checked?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* @description 默认是否选中
|
|
64
|
+
*/
|
|
65
|
+
defaultChecked?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* @description 是否禁用
|
|
68
|
+
*/
|
|
69
|
+
disabled?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* @description 半选状态
|
|
72
|
+
*/
|
|
73
|
+
indeterminate?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* @description 值改变时的回调
|
|
76
|
+
*/
|
|
77
|
+
onChange?: (checked: boolean) => void;
|
|
78
|
+
/**
|
|
79
|
+
* @description 自定义类名
|
|
80
|
+
*/
|
|
81
|
+
className?: string;
|
|
82
|
+
/**
|
|
83
|
+
* @description 自定义样式
|
|
84
|
+
*/
|
|
85
|
+
style?: CSSProperties;
|
|
86
|
+
/**
|
|
87
|
+
* @description 子元素
|
|
88
|
+
*/
|
|
89
|
+
children?: ReactNode;
|
|
90
|
+
/**
|
|
91
|
+
* @description label 的位置,默认在右侧
|
|
92
|
+
* @default 'right'
|
|
93
|
+
*/
|
|
94
|
+
labelPosition?: 'left' | 'right';
|
|
95
|
+
/**
|
|
96
|
+
* @description checkbox 的值,用于 checkbox group
|
|
97
|
+
*/
|
|
98
|
+
value?: string | number;
|
|
99
|
+
/**
|
|
100
|
+
* @description 组件级颜色 token
|
|
101
|
+
*/
|
|
102
|
+
theme?: CheckBoxTheme;
|
|
103
|
+
}
|
|
104
|
+
export interface CheckboxGroupProps {
|
|
105
|
+
/**
|
|
106
|
+
* @description 选中的值
|
|
107
|
+
*/
|
|
108
|
+
value?: Array<string | number>;
|
|
109
|
+
/**
|
|
110
|
+
* @description 默认选中的值
|
|
111
|
+
*/
|
|
112
|
+
defaultValue?: Array<string | number>;
|
|
113
|
+
/**
|
|
114
|
+
* @description 值改变时的回调
|
|
115
|
+
*/
|
|
116
|
+
onChange?: (checkedValues: Array<string | number>) => void;
|
|
117
|
+
/**
|
|
118
|
+
* @description 是否禁用
|
|
119
|
+
*/
|
|
120
|
+
disabled?: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* @description 布局方式
|
|
123
|
+
* @default 'none'
|
|
124
|
+
*/
|
|
125
|
+
layout?: Layout;
|
|
126
|
+
/**
|
|
127
|
+
* @description Checkbox 子元素
|
|
128
|
+
*/
|
|
129
|
+
children?: ReactNode;
|
|
130
|
+
/**
|
|
131
|
+
* @description 自定义类名
|
|
132
|
+
*/
|
|
133
|
+
className?: string;
|
|
134
|
+
/**
|
|
135
|
+
* @description 自定义样式
|
|
136
|
+
*/
|
|
137
|
+
style?: CSSProperties;
|
|
138
|
+
/**
|
|
139
|
+
* @description 组件级颜色 token,子项可覆盖同名变量
|
|
140
|
+
*/
|
|
141
|
+
theme?: CheckBoxTheme;
|
|
142
|
+
}
|
|
@@ -45,6 +45,68 @@ export interface RadioProps {
|
|
|
45
45
|
* @description radio 的值,用于 radio group
|
|
46
46
|
*/
|
|
47
47
|
value?: string | number;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @description 组件级颜色 token
|
|
51
|
+
*/
|
|
52
|
+
theme?: RadioTheme;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface RadioTheme {
|
|
56
|
+
/**
|
|
57
|
+
* @description 选中背景色
|
|
58
|
+
*/
|
|
59
|
+
checkedBg?: string;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @description 选中边框色
|
|
63
|
+
*/
|
|
64
|
+
checkedBorder?: string;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @description 选中圆点色
|
|
68
|
+
*/
|
|
69
|
+
dotColor?: string;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @description 未选背景色
|
|
73
|
+
*/
|
|
74
|
+
uncheckedBg?: string;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @description 未选边框色
|
|
78
|
+
*/
|
|
79
|
+
colorBorder?: string;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @description 未选悬停边框色
|
|
83
|
+
*/
|
|
84
|
+
colorBorderHover?: string;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* @description 禁用未选背景色
|
|
88
|
+
*/
|
|
89
|
+
colorBgDisabled?: string;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @description 禁用未选边框色
|
|
93
|
+
*/
|
|
94
|
+
colorBorderDisabled?: string;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @description 禁用已选背景色
|
|
98
|
+
*/
|
|
99
|
+
checkedDisabledBg?: string;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* @description 禁用已选边框色
|
|
103
|
+
*/
|
|
104
|
+
checkedDisabledBorder?: string;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @description 禁用已选圆点色
|
|
108
|
+
*/
|
|
109
|
+
checkedDisabledDot?: string;
|
|
48
110
|
}
|
|
49
111
|
|
|
50
112
|
export interface RadioGroupProps {
|
|
@@ -93,4 +155,9 @@ export interface RadioGroupProps {
|
|
|
93
155
|
* @description 自定义样式
|
|
94
156
|
*/
|
|
95
157
|
style?: React.CSSProperties;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* @description 组件级颜色 token,子项可覆盖同名变量
|
|
161
|
+
*/
|
|
162
|
+
theme?: RadioTheme;
|
|
96
163
|
}
|
|
@@ -17,7 +17,9 @@ export { Select } from './Select';
|
|
|
17
17
|
export type { BaseOptionType, DefaultOptionType, FieldNames, BaseSelectProps, SelectTheme, SelectProps, SelectRef, } from './Select';
|
|
18
18
|
export { Tree } from './Tree';
|
|
19
19
|
export { default as Checkbox } from './CheckBox';
|
|
20
|
+
export type { CheckboxProps, CheckboxGroupProps, CheckBoxTheme } from './CheckBox';
|
|
20
21
|
export { default as Radio } from './Radio';
|
|
22
|
+
export type { RadioProps, RadioGroupProps, RadioTheme } from './Radio';
|
|
21
23
|
/** @deprecated 拼写错误别名,请改用 `Radio` */
|
|
22
24
|
export { default as Ratio } from './Radio';
|
|
23
25
|
export { default as Tabs } from './Tabs';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./vendors/version-
|
|
1
|
+
import "./vendors/version-CyVENVWD.js";
|
|
2
2
|
import "./ScrollBar/style-D26azwz6.js";
|
|
3
3
|
import { t as e } from "./Icon/Icon-DrdQOEJE.js";
|
|
4
4
|
import "./vendors/LocaleContext-DXQoOKM2.js";
|
|
@@ -14,12 +14,12 @@ import "./vendors/useLocale-Be4e7Xfn.js";
|
|
|
14
14
|
import "./vendors/useLatchedPopupPortalRoot-CC6af8t-.js";
|
|
15
15
|
import { t as _ } from "./Segmented/Segmented-BkTy5v9V.js";
|
|
16
16
|
import { n as v, t as y } from "./Tooltip/Tooltip-DBrt3t2r.js";
|
|
17
|
-
import { t as b } from "./Select/Select-
|
|
17
|
+
import { t as b } from "./Select/Select-DryXF1Tp.js";
|
|
18
18
|
import "./Select/SelectInputSearch-MApQHnU9.js";
|
|
19
|
-
import { t as x } from "./vendors/Tree-
|
|
20
|
-
import "./CheckBox/CheckBox-
|
|
21
|
-
import { t as S } from "./CheckBox/CheckBox-
|
|
22
|
-
import { t as C } from "./Radio/Radio-
|
|
19
|
+
import { t as x } from "./vendors/Tree-DWK-JPnJ.js";
|
|
20
|
+
import "./CheckBox/CheckBox-BErX3YWP.js";
|
|
21
|
+
import { t as S } from "./CheckBox/CheckBox-Dp7hxT2F.js";
|
|
22
|
+
import { t as C } from "./Radio/Radio-C0OAW-K-.js";
|
|
23
23
|
import { t as w } from "./NotFoundContent/NotFoundContent-DJUQ0_2D.js";
|
|
24
24
|
import { t as T } from "./ScrollBar/ScrollBar-IMTuAOF5.js";
|
|
25
25
|
import "./vendors/useFloatingPortal-DJ1iKmW-.js";
|
|
@@ -29,8 +29,8 @@ import { t as O } from "./DropDown/DropDown-B_szM67V.js";
|
|
|
29
29
|
import { t as k } from "./Loading/Loading-Cherk9Ax.js";
|
|
30
30
|
import "./NotFoundContent/index.js";
|
|
31
31
|
import { t as A } from "./InputTag/InputTag-C_5nm0eo.js";
|
|
32
|
-
import { t as j } from "./Calendar/Calendar-
|
|
33
|
-
import { t as M } from "./DatePicker/DatePicker-
|
|
32
|
+
import { t as j } from "./Calendar/Calendar-BaIHL7cB.js";
|
|
33
|
+
import { t as M } from "./DatePicker/DatePicker-CbfmdBaK.js";
|
|
34
34
|
import "./DatePicker/pickerLocale-Brf7_Tnd.js";
|
|
35
35
|
import { c as N, d as P, f as F, i as I, l as L, m as R, n as z, o as B, p as V, r as H, s as U, t as W, u as G } from "./Table/Table-8ac6xLZv.js";
|
|
36
36
|
import "overlayscrollbars/overlayscrollbars.css";
|