@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.
@@ -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
@@ -1060,6 +1060,7 @@ export declare class LinkBreadcrumbsPageObject {
1060
1060
  export declare type MenuOption = MenuItemProps & {
1061
1061
  label: string;
1062
1062
  group?: string;
1063
+ groupLabelSx?: SxProps;
1063
1064
  };
1064
1065
 
1065
1066
  declare type MenuOptionType = {
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 && p.push(u.jsx(uf, { children: m }, m)), h.forEach(({ label: g, value: b, sx: f, ...C }) => {
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
- ...f
23740
- }, value: b, "data-test-select-menu-item": b, ...C, children: g }, g));
23753
+ ...C
23754
+ }, value: f, "data-test-select-menu-item": f, ...O, children: b }, b));
23741
23755
  });
23742
23756
  }), p;
23743
23757
  }