@bwp-web/components 1.10.0 → 1.10.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/README.md +47 -47
- package/dist/OrganizationSelector/OrganizationSelector.d.ts +1 -1
- package/dist/OrganizationSelector/OrganizationSelector.d.ts.map +1 -1
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3775,13 +3775,15 @@ function OrganizationItem({
|
|
|
3775
3775
|
meta,
|
|
3776
3776
|
logo,
|
|
3777
3777
|
isCurrent = false,
|
|
3778
|
+
disabled,
|
|
3778
3779
|
sx,
|
|
3779
3780
|
...props
|
|
3780
3781
|
}) {
|
|
3782
|
+
const hideChevron = isCurrent || Boolean(disabled);
|
|
3781
3783
|
return /* @__PURE__ */ jsx30(ListItem2, { disablePadding: true, children: /* @__PURE__ */ jsxs13(
|
|
3782
3784
|
ListItemButton3,
|
|
3783
3785
|
{
|
|
3784
|
-
disabled: isCurrent,
|
|
3786
|
+
disabled: disabled ?? isCurrent,
|
|
3785
3787
|
disableRipple: true,
|
|
3786
3788
|
sx: {
|
|
3787
3789
|
p: 1,
|
|
@@ -3842,7 +3844,7 @@ function OrganizationItem({
|
|
|
3842
3844
|
width: 16,
|
|
3843
3845
|
height: 16,
|
|
3844
3846
|
ml: "auto",
|
|
3845
|
-
visibility:
|
|
3847
|
+
visibility: hideChevron ? "hidden" : "visible"
|
|
3846
3848
|
}
|
|
3847
3849
|
}
|
|
3848
3850
|
)
|