mui-language-picker 2.5.0 → 2.5.1

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.
@@ -455,8 +455,8 @@ var LanguagePicker = function (props) {
455
455
  ])), label: "", sx: { width: '95%' } })),
456
456
  !noFont && (react_1.default.createElement(material_1.FormControlLabel, { control: react_1.default.createElement(material_1.Stack, { direction: "row", spacing: 1, sx: { display: 'flex', flexGrow: 1, p: 1 } },
457
457
  react_1.default.createElement(material_1.TextField, { id: "select-font", "data-testid": "select-font", select: hasFonts, helperText: !hasFonts ? t.noFonts : undefined, sx: { mx: 1 }, fullWidth: true, label: "".concat(t.font).concat(hasFonts ? ' *' : ''), value: fontOpts.includes(curFont) ? curFont : '', onChange: addFontInfo, margin: "normal", variant: "filled" }, fontOpts.map(function (s) { return (react_1.default.createElement(material_1.MenuItem, { key: s, value: s }, (0, langTags_1.displayFamily)(s))); })),
458
- react_1.default.createElement(material_1.IconButton, { onClick: handleNewFeat, "data-testid": "change-features", title: t.changeFeatures || localization_1.languagePickerStrings_en.changeFeatures, disabled: !curFont },
459
- react_1.default.createElement(Settings_1.default, { fontSize: "small" }))), label: "", sx: { width: '95%' } }))),
458
+ setFeats && (react_1.default.createElement(material_1.IconButton, { onClick: handleNewFeat, "data-testid": "change-features", title: t.changeFeatures || localization_1.languagePickerStrings_en.changeFeatures, disabled: !curFont },
459
+ react_1.default.createElement(Settings_1.default, { fontSize: "small" })))), label: "", sx: { width: '95%' } }))),
460
460
  react_1.default.createElement(material_1.DialogActions, null,
461
461
  !offline && (react_1.default.createElement("a", { href: "https://www.w3.org/International/questions/qa-choosing-language-tags", target: "_blank", rel: "noopener noreferrer" },
462
462
  react_1.default.createElement(material_1.Typography, null, t.codeExplained))),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mui-language-picker",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "description": "Material UI language picker",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",