chore(deps): update dependency nwsapi to v2.2.16 (#51844)

* chore(deps): update dependency nwsapi to v2.2.16

* refactor: selected item radius style code

* fix

* Apply suggestions from code review

Signed-off-by: afc163 <afc163@gmail.com>

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix role in select

---------

Signed-off-by: afc163 <afc163@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: afc163 <afc163@gmail.com>
This commit is contained in:
renovate[bot] 2025-01-09 13:48:54 +08:00 committed by GitHub
parent 92d8088669
commit c27582ec13
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 14 additions and 12 deletions

View File

@ -19,6 +19,7 @@ const App: React.FC = () => {
{ label: 'Disabled', value: 'disabled' },
{ label: 'Bamboo', value: 'bamboo' },
]}
virtual={false}
/>
</Space>
);

View File

@ -38,6 +38,7 @@ const genSingleStyle: GenerateStyle<SelectToken> = (token) => {
const slideUpLeaveActive = `&${antCls}-slide-up-leave${antCls}-slide-up-leave-active`;
const dropdownPlacementCls = `${componentCls}-dropdown-placement-`;
const selectedItemCls = `${selectItemCls}-option-selected`;
return [
{
@ -132,17 +133,8 @@ const genSingleStyle: GenerateStyle<SelectToken> = (token) => {
[`${selectItemCls}-option-state`]: {
color: token.colorPrimary,
},
[`&:has(+ ${selectItemCls}-option-selected:not(${selectItemCls}-option-disabled))`]: {
borderEndStartRadius: 0,
borderEndEndRadius: 0,
[`& + ${selectItemCls}-option-selected:not(${selectItemCls}-option-disabled)`]: {
borderStartStartRadius: 0,
borderStartEndRadius: 0,
},
},
},
'&-disabled': {
[`&${selectItemCls}-option-selected`]: {
backgroundColor: token.colorBgContainerDisabled,
@ -163,6 +155,17 @@ const genSingleStyle: GenerateStyle<SelectToken> = (token) => {
},
},
// https://github.com/ant-design/ant-design/pull/46646
[`${selectedItemCls}:has(+ ${selectedItemCls})`]: {
borderEndStartRadius: 0,
borderEndEndRadius: 0,
[`& + ${selectedItemCls}`]: {
borderStartStartRadius: 0,
borderStartEndRadius: 0,
},
},
// =========================== RTL ===========================
'&-rtl': {
direction: 'rtl',

View File

@ -349,11 +349,9 @@
"mode": "npm"
},
"overrides": {
"nwsapi": "2.2.13",
"react-intl": "7.0.4"
},
"resolutions": {
"nwsapi": "2.2.13",
"react-intl": "7.0.4"
}
}