@movable/ui 3.20.5 → 3.20.6
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/lib/components/InkSelect/types.d.ts +2 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.mjs +17 -3
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { SelectProps, MenuItemProps } from '@mui/material';
|
|
1
|
+
import { SelectProps, MenuItemProps, SxProps } from '@mui/material';
|
|
2
2
|
export type MuiSelectProps = SelectProps<string>;
|
|
3
3
|
export type MenuOption = MenuItemProps & {
|
|
4
4
|
label: string;
|
|
5
5
|
group?: string;
|
|
6
|
+
groupLabelSx?: SxProps;
|
|
6
7
|
};
|
|
7
8
|
export type InkSelectProps = {
|
|
8
9
|
menuOptions?: MenuOption[];
|
package/lib/index.d.ts
CHANGED
package/lib/index.mjs
CHANGED
|
@@ -23732,12 +23732,26 @@ const A1 = Wr(({ name: e, minRows: t = 3, variant: r = "filled", size: o = "medi
|
|
|
23732
23732
|
});
|
|
23733
23733
|
const p = [];
|
|
23734
23734
|
return d.forEach((h, m) => {
|
|
23735
|
-
m !== null
|
|
23735
|
+
if (m !== null) {
|
|
23736
|
+
const g = h[0]?.groupLabelSx;
|
|
23737
|
+
p.push(u.jsx(uf, { sx: {
|
|
23738
|
+
typography: "overline",
|
|
23739
|
+
color: "text.secondary",
|
|
23740
|
+
paddingTop: 1.25,
|
|
23741
|
+
paddingBottom: 0,
|
|
23742
|
+
lineHeight: 2,
|
|
23743
|
+
letterSpacing: "1px",
|
|
23744
|
+
userSelect: "none",
|
|
23745
|
+
...g
|
|
23746
|
+
}, children: m }, m));
|
|
23747
|
+
}
|
|
23748
|
+
h.forEach((g) => {
|
|
23749
|
+
const { label: b, value: f, sx: C, groupLabelSx: w, ...O } = g;
|
|
23736
23750
|
p.push(u.jsx(Mr, { sx: {
|
|
23737
23751
|
fontSize: 16,
|
|
23738
23752
|
backgroundColor: "neutral.300",
|
|
23739
|
-
...
|
|
23740
|
-
}, value:
|
|
23753
|
+
...C
|
|
23754
|
+
}, value: f, "data-test-select-menu-item": f, ...O, children: b }, b));
|
|
23741
23755
|
});
|
|
23742
23756
|
}), p;
|
|
23743
23757
|
}
|