@xylabs/react-select 7.0.0 → 7.0.2

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,26 +1,22 @@
1
- var __defProp = Object.defineProperty;
2
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
-
4
1
  // src/components/SelectEx.tsx
5
2
  import { Select, useTheme } from "@mui/material";
6
- import React from "react";
7
- var SelectEx = /* @__PURE__ */ __name(({ MenuProps, mode = "light", colorize, ...props }) => {
3
+ import { jsx } from "react/jsx-runtime";
4
+ var SelectEx = ({
5
+ MenuProps,
6
+ mode = "light",
7
+ colorize,
8
+ ...props
9
+ }) => {
8
10
  const theme = useTheme();
9
- const colorizeMenuProps = colorize ? {
10
- MenuListProps: {
11
- sx: {
12
- backgroundColor: theme.palette[colorize][mode]
13
- }
11
+ const colorizeMenuProps = colorize ? { MenuListProps: { sx: { backgroundColor: theme.palette[colorize][mode] } } } : {};
12
+ return /* @__PURE__ */ jsx(
13
+ Select,
14
+ {
15
+ MenuProps: { ...MenuProps, ...colorizeMenuProps },
16
+ ...props
14
17
  }
15
- } : {};
16
- return /* @__PURE__ */ React.createElement(Select, {
17
- MenuProps: {
18
- ...MenuProps,
19
- ...colorizeMenuProps
20
- },
21
- ...props
22
- });
23
- }, "SelectEx");
18
+ );
19
+ };
24
20
  export {
25
21
  SelectEx
26
22
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/SelectEx.tsx"],"sourcesContent":["import type { PaletteMode, SelectProps } from '@mui/material'\nimport { Select, useTheme } from '@mui/material'\nimport React from 'react'\n\nexport type SelectExProps<T> = SelectProps<T> & {\n colorize?: 'primary' | 'secondary'\n mode?: PaletteMode\n}\n\nexport const SelectEx: <T>(props: SelectExProps<T>) => React.JSX.Element = ({\n MenuProps, mode = 'light', colorize, ...props\n}) => {\n const theme = useTheme()\n const colorizeMenuProps = colorize ? { MenuListProps: { sx: { backgroundColor: theme.palette[colorize][mode] } } } : {}\n\n return (\n <Select\n MenuProps={{ ...MenuProps, ...colorizeMenuProps }}\n {...props}\n />\n )\n}\n"],"mappings":";;;;AACA,SAASA,QAAQC,gBAAgB;AACjC,OAAOC,WAAW;AAOX,IAAMC,WAA8D,wBAAC,EAC1EC,WAAWC,OAAO,SAASC,UAAU,GAAGC,MAAAA,MACzC;AACC,QAAMC,QAAQC,SAAAA;AACd,QAAMC,oBAAoBJ,WAAW;IAAEK,eAAe;MAAEC,IAAI;QAAEC,iBAAiBL,MAAMM,QAAQR,QAAAA,EAAUD,IAAAA;MAAM;IAAE;EAAE,IAAI,CAAC;AAEtH,SACE,sBAAA,cAACU,QAAAA;IACCX,WAAW;MAAE,GAAGA;MAAW,GAAGM;IAAkB;IAC/C,GAAGH;;AAGV,GAZ2E;","names":["Select","useTheme","React","SelectEx","MenuProps","mode","colorize","props","theme","useTheme","colorizeMenuProps","MenuListProps","sx","backgroundColor","palette","Select"]}
1
+ {"version":3,"sources":["../../src/components/SelectEx.tsx"],"sourcesContent":["import type { PaletteMode, SelectProps } from '@mui/material'\nimport { Select, useTheme } from '@mui/material'\nimport React from 'react'\n\nexport type SelectExProps<T> = SelectProps<T> & {\n colorize?: 'primary' | 'secondary'\n mode?: PaletteMode\n}\n\nexport const SelectEx: <T>(props: SelectExProps<T>) => React.JSX.Element = ({\n MenuProps, mode = 'light', colorize, ...props\n}) => {\n const theme = useTheme()\n const colorizeMenuProps = colorize ? { MenuListProps: { sx: { backgroundColor: theme.palette[colorize][mode] } } } : {}\n\n return (\n <Select\n MenuProps={{ ...MenuProps, ...colorizeMenuProps }}\n {...props}\n />\n )\n}\n"],"mappings":";AACA,SAAS,QAAQ,gBAAgB;AAe7B;AAPG,IAAM,WAA8D,CAAC;AAAA,EAC1E;AAAA,EAAW,OAAO;AAAA,EAAS;AAAA,EAAU,GAAG;AAC1C,MAAM;AACJ,QAAM,QAAQ,SAAS;AACvB,QAAM,oBAAoB,WAAW,EAAE,eAAe,EAAE,IAAI,EAAE,iBAAiB,MAAM,QAAQ,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC;AAEtH,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,EAAE,GAAG,WAAW,GAAG,kBAAkB;AAAA,MAC/C,GAAG;AAAA;AAAA,EACN;AAEJ;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xylabs/react-select",
3
- "version": "7.0.0",
3
+ "version": "7.0.2",
4
4
  "description": "Common React library for all XY Labs projects that use React",
5
5
  "keywords": [
6
6
  "utility",
@@ -41,18 +41,20 @@
41
41
  "packages/*"
42
42
  ],
43
43
  "devDependencies": {
44
- "@mui/material": "^7.2.0",
45
- "@types/react": "^19.1.9",
46
- "@xylabs/ts-scripts-yarn3": "^7.0.2",
47
- "@xylabs/tsconfig-react": "^7.0.2",
48
- "react": "^19.1.1",
49
- "react-dom": "^19.1.1",
50
- "typescript": "^5.8.3"
44
+ "@mui/material": "~7.3.1",
45
+ "@types/react": "~19.1.10",
46
+ "@xylabs/ts-scripts-yarn3": "~7.1.1",
47
+ "@xylabs/tsconfig": "~7.1.1",
48
+ "@xylabs/tsconfig-dom": "~7.1.1",
49
+ "@xylabs/tsconfig-react": "~7.1.1",
50
+ "react": "~19.1.1",
51
+ "react-dom": "~19.1.1",
52
+ "typescript": "~5.9.2"
51
53
  },
52
54
  "peerDependencies": {
53
55
  "@mui/material": ">=6 <8",
54
- "react": "^19",
55
- "react-dom": "^19"
56
+ "react": "~19",
57
+ "react-dom": "~19"
56
58
  },
57
59
  "publishConfig": {
58
60
  "access": "public"