@tidbcloud/uikit 2.4.9 → 2.4.11
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 +12 -0
- package/dist/biz/ProMultiSelect/index.cjs +3 -0
- package/dist/biz/ProMultiSelect/index.d.cts +1 -1
- package/dist/biz/ProMultiSelect/index.d.mts +1 -1
- package/dist/biz/ProMultiSelect/index.mjs +3 -0
- package/dist/theme/theme.cjs +10 -2
- package/dist/theme/theme.mjs +10 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @tidbcloud/uikit
|
|
2
2
|
|
|
3
|
+
## 2.4.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix(theme): move Pill styles to separate section in theme configuration ([#563](https://github.com/tidbcloud/tidbcloud-uikit/pull/563))
|
|
8
|
+
|
|
9
|
+
## 2.4.10
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- feat(ProMultiSelect): support `sx` and `size` props ([#561](https://github.com/tidbcloud/tidbcloud-uikit/pull/561))
|
|
14
|
+
|
|
3
15
|
## 2.4.9
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -201,6 +201,7 @@ const ProMultiSelect = (_props) => {
|
|
|
201
201
|
error,
|
|
202
202
|
allowSelectAll,
|
|
203
203
|
selectAllText,
|
|
204
|
+
sx,
|
|
204
205
|
onOptionSubmit,
|
|
205
206
|
renderOption,
|
|
206
207
|
filter,
|
|
@@ -375,6 +376,8 @@ const ProMultiSelect = (_props) => {
|
|
|
375
376
|
{
|
|
376
377
|
error,
|
|
377
378
|
w: width,
|
|
379
|
+
sx,
|
|
380
|
+
size,
|
|
378
381
|
component: "button",
|
|
379
382
|
type: "button",
|
|
380
383
|
pointer: true,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { MultiSelectProps } from '../../primitive/index.cjs';
|
|
3
|
-
export interface ProMultiSelectProps extends Pick<MultiSelectProps, 'data' | 'value' | 'defaultValue' | 'limit' | 'searchable' | 'searchValue' | 'defaultSearchValue' | 'maxValues' | 'readOnly' | 'disabled' | 'size' | 'width' | 'selectFirstOptionOnChange' | 'placeholder' | 'clearable' | 'label' | 'nothingFoundMessage' | 'dropdownOpened' | 'defaultDropdownOpened' | 'maxDropdownHeight' | 'error' | 'onOptionSubmit' | 'renderOption' | 'filter' | 'onChange' | 'onSearchChange' | 'onRemove' | 'onClear'> {
|
|
3
|
+
export interface ProMultiSelectProps extends Pick<MultiSelectProps, 'data' | 'value' | 'defaultValue' | 'limit' | 'searchable' | 'searchValue' | 'defaultSearchValue' | 'maxValues' | 'readOnly' | 'disabled' | 'size' | 'width' | 'selectFirstOptionOnChange' | 'placeholder' | 'clearable' | 'label' | 'nothingFoundMessage' | 'dropdownOpened' | 'defaultDropdownOpened' | 'maxDropdownHeight' | 'error' | 'onOptionSubmit' | 'renderOption' | 'filter' | 'onChange' | 'onSearchChange' | 'onRemove' | 'onClear' | 'sx'> {
|
|
4
4
|
loading?: boolean;
|
|
5
5
|
allowSelectAll?: boolean;
|
|
6
6
|
selectAllText?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { MultiSelectProps } from '../../primitive/index.mjs';
|
|
3
|
-
export interface ProMultiSelectProps extends Pick<MultiSelectProps, 'data' | 'value' | 'defaultValue' | 'limit' | 'searchable' | 'searchValue' | 'defaultSearchValue' | 'maxValues' | 'readOnly' | 'disabled' | 'size' | 'width' | 'selectFirstOptionOnChange' | 'placeholder' | 'clearable' | 'label' | 'nothingFoundMessage' | 'dropdownOpened' | 'defaultDropdownOpened' | 'maxDropdownHeight' | 'error' | 'onOptionSubmit' | 'renderOption' | 'filter' | 'onChange' | 'onSearchChange' | 'onRemove' | 'onClear'> {
|
|
3
|
+
export interface ProMultiSelectProps extends Pick<MultiSelectProps, 'data' | 'value' | 'defaultValue' | 'limit' | 'searchable' | 'searchValue' | 'defaultSearchValue' | 'maxValues' | 'readOnly' | 'disabled' | 'size' | 'width' | 'selectFirstOptionOnChange' | 'placeholder' | 'clearable' | 'label' | 'nothingFoundMessage' | 'dropdownOpened' | 'defaultDropdownOpened' | 'maxDropdownHeight' | 'error' | 'onOptionSubmit' | 'renderOption' | 'filter' | 'onChange' | 'onSearchChange' | 'onRemove' | 'onClear' | 'sx'> {
|
|
4
4
|
loading?: boolean;
|
|
5
5
|
allowSelectAll?: boolean;
|
|
6
6
|
selectAllText?: string;
|
|
@@ -199,6 +199,7 @@ const ProMultiSelect = (_props) => {
|
|
|
199
199
|
error,
|
|
200
200
|
allowSelectAll,
|
|
201
201
|
selectAllText,
|
|
202
|
+
sx,
|
|
202
203
|
onOptionSubmit,
|
|
203
204
|
renderOption,
|
|
204
205
|
filter,
|
|
@@ -373,6 +374,8 @@ const ProMultiSelect = (_props) => {
|
|
|
373
374
|
{
|
|
374
375
|
error,
|
|
375
376
|
w: width,
|
|
377
|
+
sx,
|
|
378
|
+
size,
|
|
376
379
|
component: "button",
|
|
377
380
|
type: "button",
|
|
378
381
|
pointer: true,
|
package/dist/theme/theme.cjs
CHANGED
|
@@ -649,8 +649,6 @@ const theme = createTheme.createTheme({
|
|
|
649
649
|
}
|
|
650
650
|
},
|
|
651
651
|
pill: {
|
|
652
|
-
backgroundColor: themeColor(theme2, "carbon", 3),
|
|
653
|
-
color: themeColor(theme2, "carbon", 8),
|
|
654
652
|
borderRadius: theme2.radius.sm
|
|
655
653
|
},
|
|
656
654
|
section: {
|
|
@@ -1255,6 +1253,16 @@ const theme = createTheme.createTheme({
|
|
|
1255
1253
|
}
|
|
1256
1254
|
};
|
|
1257
1255
|
}
|
|
1256
|
+
},
|
|
1257
|
+
Pill: {
|
|
1258
|
+
styles: (theme2) => {
|
|
1259
|
+
return {
|
|
1260
|
+
root: {
|
|
1261
|
+
backgroundColor: themeColor(theme2, "carbon", 3),
|
|
1262
|
+
color: themeColor(theme2, "carbon", 8)
|
|
1263
|
+
}
|
|
1264
|
+
};
|
|
1265
|
+
}
|
|
1258
1266
|
}
|
|
1259
1267
|
}
|
|
1260
1268
|
});
|
package/dist/theme/theme.mjs
CHANGED
|
@@ -647,8 +647,6 @@ const theme = createTheme({
|
|
|
647
647
|
}
|
|
648
648
|
},
|
|
649
649
|
pill: {
|
|
650
|
-
backgroundColor: themeColor(theme2, "carbon", 3),
|
|
651
|
-
color: themeColor(theme2, "carbon", 8),
|
|
652
650
|
borderRadius: theme2.radius.sm
|
|
653
651
|
},
|
|
654
652
|
section: {
|
|
@@ -1253,6 +1251,16 @@ const theme = createTheme({
|
|
|
1253
1251
|
}
|
|
1254
1252
|
};
|
|
1255
1253
|
}
|
|
1254
|
+
},
|
|
1255
|
+
Pill: {
|
|
1256
|
+
styles: (theme2) => {
|
|
1257
|
+
return {
|
|
1258
|
+
root: {
|
|
1259
|
+
backgroundColor: themeColor(theme2, "carbon", 3),
|
|
1260
|
+
color: themeColor(theme2, "carbon", 8)
|
|
1261
|
+
}
|
|
1262
|
+
};
|
|
1263
|
+
}
|
|
1256
1264
|
}
|
|
1257
1265
|
}
|
|
1258
1266
|
});
|