@mui/x-data-grid-generator 7.16.0 → 7.18.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,186 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 7.18.0
7
+
8
+ _Sep 20, 2024_
9
+
10
+ We'd like to offer a big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 💫 Support [Row spanning](https://mui.com/x/react-data-grid/row-spanning/) on the Data Grid that automatically merges the consecutive cells in a column based on the cell value
13
+
14
+ <img width="600" src="https://github.com/user-attachments/assets/d32ec936-d238-4c92-9e1a-af6788d74cdf" alt="data grid row spanning" />
15
+
16
+ - ⏰ Support `date-fns` v4 (#14673) @LukasTy
17
+ - 🎉 Add option for Pickers to change the order of displayed years (#11780) @thomasmoon
18
+ - 🐞 Bugfixes
19
+ - 📚 Documentation improvements
20
+
21
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
22
+
23
+ ### Data Grid
24
+
25
+ #### `@mui/x-data-grid@7.18.0`
26
+
27
+ - [DataGrid] Add default reset value in row edit mode (#14050) @michelengelen
28
+ - [DataGrid] Add `columnGroupHeaderHeight` prop for sizing column group headers (#14637) @KenanYusuf
29
+ - [DataGrid] Fix `document` reference when the grid is rendered in a popup window (#14649) @arminmeh
30
+ - [DataGrid] Remove `minFirstColumn` from `GetHeadersParams` interface (#14450) @k-rajat19
31
+ - [DataGrid] Row spanning (#14124) @MBilalShafi
32
+
33
+ #### `@mui/x-data-grid-pro@7.18.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
34
+
35
+ Same changes as in `@mui/x-data-grid@7.18.0`, plus:
36
+
37
+ - [DataGridPro] Fix `onRowsScrollEnd` being triggered instantly when bottom pinned row is present (#14602) @arminmeh
38
+ - [DataGridPro] Fix header filters rendering issue for `isEmpty` and `isNotEmpty` filter operators (#14493) @k-rajat19
39
+ - [DataGridPro] Fix pinned columns in RTL mode (#14586) @KenanYusuf
40
+
41
+ #### `@mui/x-data-grid-premium@7.18.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
42
+
43
+ Same changes as in `@mui/x-data-grid-pro@7.18.0`.
44
+
45
+ ### Date and Time Pickers
46
+
47
+ #### `@mui/x-date-pickers@7.18.0`
48
+
49
+ - [pickers] Add option to change the order of displayed years (#11780) @thomasmoon
50
+ - [pickers] Support `date-fns` v4 (#14673) @LukasTy
51
+
52
+ #### `@mui/x-date-pickers-pro@7.18.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
53
+
54
+ Same changes as in `@mui/x-date-pickers@7.18.0`.
55
+
56
+ ### Charts
57
+
58
+ #### `@mui/x-charts@7.18.0`
59
+
60
+ - [charts] Add a `PolarProvider` to manage polar axes (#14642) @alexfauquette
61
+ - [charts] Fix `LineChart` animation being stuck with initial drawing area value (#14553) @JCQuintas
62
+ - [charts] Fix legend slot typing (#14657) @alexfauquette
63
+ - [charts] Pass the axis index to extremum getter (#14641) @alexfauquette
64
+ - [charts] Provide hooks to create custom tooltip (#14377) @alexfauquette
65
+
66
+ #### `@mui/x-charts-pro@7.0.0-beta.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
67
+
68
+ Same changes as in `@mui/x-charts@7.18.0`.
69
+
70
+ ### Tree View
71
+
72
+ #### `@mui/x-tree-view@7.18.0`
73
+
74
+ - [TreeView] Add `"use client"` directive to every public component and hook (#14579) @flaviendelangle
75
+
76
+ ### Docs
77
+
78
+ - [docs] Add `groupingValueGetter` callout in column definition docs (#14599) @michelengelen
79
+ - [docs] Clean v6 => v7 migration guide (#14652) @flaviendelangle
80
+ - [docs] Copy `vale-action.yml` from main repo @oliviertassinari
81
+ - [docs] Edit the Pickers Getting started doc (#14555) @samuelsycamore
82
+ - [docs] Fix TypeScript capitalization @oliviertassinari
83
+ - [docs] Fix Vale error @oliviertassinari
84
+ - [docs] Make the migration guide diff a bit easier to read @oliviertassinari
85
+ - [docs] Report Vale at warning level (#14660) @oliviertassinari
86
+ - [docs] Warn about the `valueGetter` and `valueFormatter` signature change (#14613) @cherniavskii
87
+ - [docs] Polish code formatting (#14603) @oliviertassinari
88
+ - [test] Spy on `observe` method to avoid flaky wait for a callback (#14640) @arminmeh
89
+
90
+ ### Core
91
+
92
+ - [core] Fix 301 link to Next.js and git diff @oliviertassinari
93
+ - [core] Fix failing CI on `master` (#14644) @cherniavskii
94
+ - [core] Fix `package.json` repository rule @oliviertassinari
95
+ - [core] MUI X repository moved to a new location @oliviertassinari
96
+ - [docs-infra] Strengthen CSP (#14581) @oliviertassinari
97
+ - [license] Finish renaming of LicensingModel (#14615) @oliviertassinari
98
+
99
+ ## 7.17.0
100
+
101
+ _Sep 13, 2024_
102
+
103
+ We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
104
+
105
+ - 📊 Charts performance improvement
106
+ - 🧑‍💻 New Data Grid [custom columns demo](https://mui.com/x/react-data-grid/custom-columns/#full-example)
107
+ - 🐞 Bugfixes
108
+ - 📚 Documentation improvements
109
+ - 🌍 Improve Hungarian (hu-HU) locale on the Data Grid
110
+
111
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
112
+
113
+ ### Data Grid
114
+
115
+ #### `@mui/x-data-grid@7.17.0`
116
+
117
+ - [DataGrid] Add "does not equal" and "does not contain" filter operators (#14489) @KenanYusuf
118
+ - [DataGrid] Add demo to the "Custom columns" page that does not use generator (#13695) @arminmeh
119
+ - [DataGrid] Fix Voice Over reading the column name twice (#14482) @arminmeh
120
+ - [DataGrid] Fix bug in CRUD example (#14513) @michelengelen
121
+ - [DataGrid] Fix failing jsdom tests caused by `:has()` selectors (#14559) @KenanYusuf
122
+ - [DataGrid] Refactor string operator filter functions (#14564) @KenanYusuf
123
+ - [l10n] Improve Hungarian (hu-HU) locale (#14506) @ntamas
124
+
125
+ #### `@mui/x-data-grid-pro@7.17.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
126
+
127
+ Same changes as in `@mui/x-data-grid@7.17.0`.
128
+
129
+ #### `@mui/x-data-grid-premium@7.17.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
130
+
131
+ Same changes as in `@mui/x-data-grid-pro@7.17.0`.
132
+
133
+ ### Date and Time Pickers
134
+
135
+ #### `@mui/x-date-pickers@7.17.0`
136
+
137
+ - [fields] Improve `useSplitFieldProps` and make it public (#14514) @flaviendelangle
138
+ - [pickers] Improve clear action label (#14243) @oliviertassinari
139
+ - [pickers] Add `"use client"` directive to every public component and hook (#14562) @flaviendelangle
140
+ - [pickers] Allow custom fields to validate the value (#14486) @flaviendelangle
141
+ - [pickers] Stop using utils in locales (#14505) @flaviendelangle
142
+
143
+ #### `@mui/x-date-pickers-pro@7.17.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
144
+
145
+ Same changes as in `@mui/x-date-pickers@7.17.0`, plus:
146
+
147
+ - [DateRangePicker] Fix `currentMonthCalendarPosition` not scrolling to future sibling (#14442) @GMchris
148
+
149
+ ### Charts
150
+
151
+ #### `@mui/x-charts@7.17.0`
152
+
153
+ - [charts] Add `"use client"` directive to every public component and hook (#14578) @flaviendelangle
154
+ - [charts] Allow `onItemClick` on the `Legend` component (#14231) @JCQuintas
155
+ - [charts] Fix `onAxisClick` with `layout='horizontal'` (#14547) @alexfauquette
156
+ - [charts] Replace `path` with `circle` for performance improvement (#14518) @alexfauquette
157
+
158
+ #### `@mui/x-charts-pro@7.0.0-beta.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
159
+
160
+ Same changes as in `@mui/x-charts@7.17.0`.
161
+
162
+ ### Tree View
163
+
164
+ #### `@mui/x-tree-view@7.17.0`
165
+
166
+ - [TreeView] Make `useTreeItem2` stable (#14498) @flaviendelangle
167
+
168
+ ### Docs
169
+
170
+ - [docs] Add missing callout on "Imperative API" tree view sections (#14503) @flaviendelangle
171
+ - [docs] Fix broken redirection to MUI X v5 @oliviertassinari
172
+ - [docs] Fix multiple `console.error` messages on `charts` docs (#14554) @JCQuintas
173
+ - [docs] Fixed typo in Row Grouping recipes (#14549) @Miodini
174
+ - [docs] Match title with blog posts @oliviertassinari
175
+
176
+ ### Core
177
+
178
+ - [core] Move warning methods to `@mui/x-internals` (#14528) @k-rajat19
179
+ - [core] Sync with core release flow @oliviertassinari
180
+ - [code-infra] Fix charts benchmark workflow (#14573) @JCQuintas
181
+ - [docs-infra] Type interface API pages (#14138) @alexfauquette
182
+ - [infra] Create `ESLint plugins` renovate group (#14574) @LukasTy
183
+ - [license] Clean-up terminology to match codebase (#14531) @oliviertassinari
184
+ - [test] Remove dead `act()` logic (#14529) @oliviertassinari
185
+
6
186
  ## 7.16.0
7
187
 
8
188
  _Sep 5, 2024_
@@ -108,7 +288,7 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
108
288
 
109
289
  - 💫 Support Material UI v6 (`@mui/material@6`) peer dependency (#14142) @cherniavskii
110
290
 
111
- You can now use MUI X components with either v5 or v6 of `@mui/material` package 🎉
291
+ You can now use MUI X components with either v5 or v6 of `@mui/material` package 🎉
112
292
 
113
293
  - 🐞 Bugfixes
114
294
 
@@ -153,7 +333,7 @@ Same changes as in `@mui/x-charts@7.15.0`, plus:
153
333
 
154
334
  - [docs] Fix sentence case `h2` @oliviertassinari
155
335
  - [docs] Clarify contribution guide references @oliviertassinari
156
- - [docs] Fix Stack Overflow issue canned response @oliviertassinari
336
+ - [docs] Fix Stack Overflow issue canned response @oliviertassinari
157
337
  - [docs] Fix outdated link to support page @oliviertassinari
158
338
  - [docs] Fix use of Material UI @oliviertassinari
159
339
  - [docs] Update deprecated props in docs (#14295) @JCQuintas
@@ -411,7 +591,7 @@ The [Pro plan](https://mui.com/x/introduction/licensing/#pro-plan) is receiving
411
591
 
412
592
  As always, every feature released as part of the MIT plan will remain free and MIT licensed forever.
413
593
 
414
- This expansion of the Pro plan comes with some adjustments to our pricing strategy. Learn more about those in the [Upcoming changes to MUI X pricing in 2024](https://mui.com/blog/mui-x-sep-2024-price-update/) blog post.
594
+ This expansion of the Pro plan comes with some adjustments to our pricing strategy. Learn more about those in the [Upcoming changes to MUI X pricing in 2024](https://mui.com/blog/mui-x-sep-2024-price-update/) blog post.
415
595
 
416
596
  ### Highlights
417
597
 
@@ -476,7 +656,7 @@ Same changes as in `@mui/x-date-pickers@7.12.0`.
476
656
  #### `@mui/x-charts@7.12.0`
477
657
 
478
658
  - [charts] Fix incorrect `axisId` prop being allowed in xAxis/yAxis config. Use `id` instead. (#13986) @JCQuintas
479
- - [charts] Use vendor to have Common JS bundle working out of the box (#13608) @alexfauquette
659
+ - [charts] Use vendor to have CommonJS bundle working out of the box (#13608) @alexfauquette
480
660
  - [charts] Divide the `SeriesProvider` to use in filtering (#14026) @JCQuintas
481
661
 
482
662
  ### Tree View
@@ -104,6 +104,7 @@ export const getCommodityColumns = (editable = false) => [{
104
104
  width: 120
105
105
  }, {
106
106
  field: 'incoTerm',
107
+ headerName: 'Incoterm',
107
108
  generateData: randomIncoterm,
108
109
  renderCell: renderIncoterm,
109
110
  renderEditCell: renderEditIncoterm,
@@ -24,6 +24,7 @@ export declare const createFakeServer: (dataSetOptions?: Partial<UseDemoDataOpti
24
24
  type?: import("@mui/x-data-grid-pro").GridColType;
25
25
  align?: import("@mui/x-data-grid-pro").GridAlignment;
26
26
  valueGetter?: import("@mui/x-data-grid-pro").GridValueGetter<any, any, any, never> | undefined;
27
+ rowSpanValueGetter?: import("@mui/x-data-grid-pro").GridValueGetter<any, any, any, never> | undefined;
27
28
  valueSetter?: import("@mui/x-data-grid-pro").GridValueSetter<any, any, any> | undefined;
28
29
  valueFormatter?: import("@mui/x-data-grid-pro").GridValueFormatter<any, any, any, never> | undefined;
29
30
  valueParser?: import("@mui/x-data-grid-pro").GridValueParser<any, any, any> | undefined;
@@ -72,6 +73,7 @@ export declare const createFakeServer: (dataSetOptions?: Partial<UseDemoDataOpti
72
73
  getSortComparator?: ((sortDirection: import("@mui/x-data-grid-pro").GridSortDirection) => import("@mui/x-data-grid-pro").GridComparatorFn<any> | undefined) | undefined;
73
74
  align?: import("@mui/x-data-grid-pro").GridAlignment;
74
75
  valueGetter?: import("@mui/x-data-grid-pro").GridValueGetter<any, any, any, never> | undefined;
76
+ rowSpanValueGetter?: import("@mui/x-data-grid-pro").GridValueGetter<any, any, any, never> | undefined;
75
77
  valueSetter?: import("@mui/x-data-grid-pro").GridValueSetter<any, any, any> | undefined;
76
78
  valueFormatter?: import("@mui/x-data-grid-pro").GridValueFormatter<any, any, any, never> | undefined;
77
79
  valueParser?: import("@mui/x-data-grid-pro").GridValueParser<any, any, any> | undefined;
@@ -122,6 +124,7 @@ export declare const createFakeServer: (dataSetOptions?: Partial<UseDemoDataOpti
122
124
  getSortComparator?: ((sortDirection: import("@mui/x-data-grid-pro").GridSortDirection) => import("@mui/x-data-grid-pro").GridComparatorFn<any> | undefined) | undefined;
123
125
  align?: import("@mui/x-data-grid-pro").GridAlignment;
124
126
  valueGetter?: import("@mui/x-data-grid-pro").GridValueGetter<any, any, any, never> | undefined;
127
+ rowSpanValueGetter?: import("@mui/x-data-grid-pro").GridValueGetter<any, any, any, never> | undefined;
125
128
  valueSetter?: import("@mui/x-data-grid-pro").GridValueSetter<any, any, any> | undefined;
126
129
  valueFormatter?: import("@mui/x-data-grid-pro").GridValueFormatter<any, any, any, never> | undefined;
127
130
  valueParser?: import("@mui/x-data-grid-pro").GridValueParser<any, any, any> | undefined;
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-generator v7.16.0
2
+ * @mui/x-data-grid-generator v7.18.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -104,6 +104,7 @@ export const getCommodityColumns = (editable = false) => [{
104
104
  width: 120
105
105
  }, {
106
106
  field: 'incoTerm',
107
+ headerName: 'Incoterm',
107
108
  generateData: randomIncoterm,
108
109
  renderCell: renderIncoterm,
109
110
  renderEditCell: renderEditIncoterm,
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-generator v7.16.0
2
+ * @mui/x-data-grid-generator v7.18.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -6,7 +6,8 @@ import InputBase from '@mui/material/InputBase';
6
6
  import Box from '@mui/material/Box';
7
7
  import { styled } from '@mui/material/styles';
8
8
  import { COUNTRY_ISO_OPTIONS } from "../services/static-data.js";
9
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
+ import { jsx as _jsx } from "react/jsx-runtime";
10
+ import { createElement as _createElement } from "react";
10
11
  const StyledAutocomplete = styled(Autocomplete)(({
11
12
  theme
12
13
  }) => ({
@@ -47,7 +48,7 @@ function EditCountry(props) {
47
48
  fullWidth: true,
48
49
  open: true,
49
50
  disableClearable: true,
50
- renderOption: (optionProps, option) => /*#__PURE__*/_jsxs(Box, _extends({
51
+ renderOption: (optionProps, option) => /*#__PURE__*/_createElement(Box, _extends({
51
52
  component: "li",
52
53
  sx: {
53
54
  '& > img': {
@@ -56,14 +57,14 @@ function EditCountry(props) {
56
57
  }
57
58
  }
58
59
  }, optionProps, {
59
- children: [/*#__PURE__*/_jsx("img", {
60
- loading: "lazy",
61
- width: "20",
62
- src: `https://flagcdn.com/w20/${option.code.toLowerCase()}.png`,
63
- srcSet: `https://flagcdn.com/w40/${option.code.toLowerCase()}.png 2x`,
64
- alt: ""
65
- }), option.label]
66
- })),
60
+ key: option.code
61
+ }), /*#__PURE__*/_jsx("img", {
62
+ loading: "lazy",
63
+ width: "20",
64
+ src: `https://flagcdn.com/w20/${option.code.toLowerCase()}.png`,
65
+ srcSet: `https://flagcdn.com/w40/${option.code.toLowerCase()}.png 2x`,
66
+ alt: ""
67
+ }), option.label),
67
68
  renderInput: params => /*#__PURE__*/_jsx(InputBase, _extends({
68
69
  autoFocus: true,
69
70
  fullWidth: true,
@@ -110,6 +110,7 @@ const getCommodityColumns = (editable = false) => [{
110
110
  width: 120
111
111
  }, {
112
112
  field: 'incoTerm',
113
+ headerName: 'Incoterm',
113
114
  generateData: _services.randomIncoterm,
114
115
  renderCell: _renderer.renderIncoterm,
115
116
  renderEditCell: _renderer.renderEditIncoterm,
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-generator v7.16.0
2
+ * @mui/x-data-grid-generator v7.18.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -7,7 +7,8 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.renderEditCountry = renderEditCountry;
9
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
- var React = _interopRequireWildcard(require("react"));
10
+ var _react = _interopRequireWildcard(require("react"));
11
+ var React = _react;
11
12
  var _xDataGridPremium = require("@mui/x-data-grid-premium");
12
13
  var _Autocomplete = _interopRequireWildcard(require("@mui/material/Autocomplete"));
13
14
  var _InputBase = _interopRequireDefault(require("@mui/material/InputBase"));
@@ -55,7 +56,7 @@ function EditCountry(props) {
55
56
  fullWidth: true,
56
57
  open: true,
57
58
  disableClearable: true,
58
- renderOption: (optionProps, option) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Box.default, (0, _extends2.default)({
59
+ renderOption: (optionProps, option) => /*#__PURE__*/(0, _react.createElement)(_Box.default, (0, _extends2.default)({
59
60
  component: "li",
60
61
  sx: {
61
62
  '& > img': {
@@ -64,14 +65,14 @@ function EditCountry(props) {
64
65
  }
65
66
  }
66
67
  }, optionProps, {
67
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
68
- loading: "lazy",
69
- width: "20",
70
- src: `https://flagcdn.com/w20/${option.code.toLowerCase()}.png`,
71
- srcSet: `https://flagcdn.com/w40/${option.code.toLowerCase()}.png 2x`,
72
- alt: ""
73
- }), option.label]
74
- })),
68
+ key: option.code
69
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
70
+ loading: "lazy",
71
+ width: "20",
72
+ src: `https://flagcdn.com/w20/${option.code.toLowerCase()}.png`,
73
+ srcSet: `https://flagcdn.com/w40/${option.code.toLowerCase()}.png 2x`,
74
+ alt: ""
75
+ }), option.label),
75
76
  renderInput: params => /*#__PURE__*/(0, _jsxRuntime.jsx)(_InputBase.default, (0, _extends2.default)({
76
77
  autoFocus: true,
77
78
  fullWidth: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid-generator",
3
- "version": "7.16.0",
3
+ "version": "7.18.0",
4
4
  "description": "Generate fake data for demo purposes only.",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -19,7 +19,7 @@
19
19
  ],
20
20
  "repository": {
21
21
  "type": "git",
22
- "url": "https://github.com/mui/mui-x.git",
22
+ "url": "git+https://github.com/mui/mui-x.git",
23
23
  "directory": "packages/x-data-grid-generator"
24
24
  },
25
25
  "dependencies": {
@@ -27,7 +27,7 @@
27
27
  "chance": "^1.1.12",
28
28
  "clsx": "^2.1.1",
29
29
  "lru-cache": "^10.4.3",
30
- "@mui/x-data-grid-premium": "7.16.0"
30
+ "@mui/x-data-grid-premium": "7.18.0"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@emotion/react": "^11.9.0",
@@ -6,7 +6,8 @@ import InputBase from '@mui/material/InputBase';
6
6
  import Box from '@mui/material/Box';
7
7
  import { styled } from '@mui/material/styles';
8
8
  import { COUNTRY_ISO_OPTIONS } from "../services/static-data.js";
9
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
+ import { jsx as _jsx } from "react/jsx-runtime";
10
+ import { createElement as _createElement } from "react";
10
11
  const StyledAutocomplete = styled(Autocomplete)(({
11
12
  theme
12
13
  }) => ({
@@ -47,7 +48,7 @@ function EditCountry(props) {
47
48
  fullWidth: true,
48
49
  open: true,
49
50
  disableClearable: true,
50
- renderOption: (optionProps, option) => /*#__PURE__*/_jsxs(Box, _extends({
51
+ renderOption: (optionProps, option) => /*#__PURE__*/_createElement(Box, _extends({
51
52
  component: "li",
52
53
  sx: {
53
54
  '& > img': {
@@ -56,14 +57,14 @@ function EditCountry(props) {
56
57
  }
57
58
  }
58
59
  }, optionProps, {
59
- children: [/*#__PURE__*/_jsx("img", {
60
- loading: "lazy",
61
- width: "20",
62
- src: `https://flagcdn.com/w20/${option.code.toLowerCase()}.png`,
63
- srcSet: `https://flagcdn.com/w40/${option.code.toLowerCase()}.png 2x`,
64
- alt: ""
65
- }), option.label]
66
- })),
60
+ key: option.code
61
+ }), /*#__PURE__*/_jsx("img", {
62
+ loading: "lazy",
63
+ width: "20",
64
+ src: `https://flagcdn.com/w20/${option.code.toLowerCase()}.png`,
65
+ srcSet: `https://flagcdn.com/w40/${option.code.toLowerCase()}.png 2x`,
66
+ alt: ""
67
+ }), option.label),
67
68
  renderInput: params => /*#__PURE__*/_jsx(InputBase, _extends({
68
69
  autoFocus: true,
69
70
  fullWidth: true,