@movable/ui 3.20.5 → 3.20.7
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 +19 -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,28 @@ 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
|
+
fontSize: "0.75rem",
|
|
23739
|
+
fontWeight: 500,
|
|
23740
|
+
textTransform: "uppercase",
|
|
23741
|
+
color: "text.secondary",
|
|
23742
|
+
paddingTop: 1.25,
|
|
23743
|
+
paddingBottom: 0,
|
|
23744
|
+
lineHeight: 2,
|
|
23745
|
+
letterSpacing: "1px",
|
|
23746
|
+
userSelect: "none",
|
|
23747
|
+
...g
|
|
23748
|
+
}, children: m }, m));
|
|
23749
|
+
}
|
|
23750
|
+
h.forEach((g) => {
|
|
23751
|
+
const { label: b, value: f, sx: C, groupLabelSx: w, ...O } = g;
|
|
23736
23752
|
p.push(u.jsx(Mr, { sx: {
|
|
23737
23753
|
fontSize: 16,
|
|
23738
23754
|
backgroundColor: "neutral.300",
|
|
23739
|
-
...
|
|
23740
|
-
}, value:
|
|
23755
|
+
...C
|
|
23756
|
+
}, value: f, "data-test-select-menu-item": f, ...O, children: b }, b));
|
|
23741
23757
|
});
|
|
23742
23758
|
}), p;
|
|
23743
23759
|
}
|