Skip to content

Commit 6154fcd

Browse files
chore(release): 1.3.3 [skip ci]
## [1.3.3](v1.3.2...v1.3.3) (2023-03-23) ### Bug Fixes * allow for text items ([e86c1dc](e86c1dc))
1 parent e86c1dc commit 6154fcd

File tree

5 files changed

+15
-10
lines changed

5 files changed

+15
-10
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## [1.3.3](https://github.com/ocadotechnology/codeforlife-package-javascript/compare/v1.3.2...v1.3.3) (2023-03-23)
2+
3+
4+
### Bug Fixes
5+
6+
* allow for text items ([e86c1dc](https://github.com/ocadotechnology/codeforlife-package-javascript/commit/e86c1dc36548507c748c787ea5116b555d30fd5a))
7+
18
## [1.3.2](https://github.com/ocadotechnology/codeforlife-package-javascript/compare/v1.3.1...v1.3.2) (2023-03-22)
29

310

lib/cjs/components/ItemizedList.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
2-
import { ListProps, ListItem } from '@mui/material';
3-
type ListItemElement = React.ReactElement<typeof ListItem>;
2+
import { ListProps, ListItem, ListItemText } from '@mui/material';
3+
type ListItemElement = React.ReactElement<typeof ListItem | typeof ListItemText>;
44
export interface ItemizedListProps {
55
styleType: ('unset' | 'initial' | 'inherit' | 'upper-roman' | 'upper-latin' | 'upper-alpha' | 'square' | 'none' | 'lower-roman' | 'lower-latin' | 'lower-greek' | 'lower-alpha' | 'georgian' | 'disc' | 'decimal-leading-zero' | 'decimal' | 'armenian' | 'circle');
66
listProps?: ListProps;

lib/cjs/components/ItemizedList.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ var material_1 = require("@mui/material");
3030
var ItemizedList = function (_a) {
3131
var styleType = _a.styleType, _b = _a.listProps, listProps = _b === void 0 ? {} : _b, _c = _a.pl, pl = _c === void 0 ? 4 : _c, children = _a.children;
3232
var sx = listProps.sx, otherProps = __rest(listProps, ["sx"]);
33-
return (react_1.default.createElement(material_1.List, __assign({ sx: __assign({ listStyleType: styleType, pl: pl, '.MuiListItem-root': {
34-
display: 'list-item'
35-
} }, sx) }, otherProps), children));
33+
var listItemProps = { display: 'list-item' };
34+
return (react_1.default.createElement(material_1.List, __assign({ sx: __assign({ listStyleType: styleType, pl: pl, '.MuiListItem-root': listItemProps, '.MuiListItemText-root': listItemProps }, sx) }, otherProps), children));
3635
};
3736
exports.default = ItemizedList;

lib/esm/components/ItemizedList.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
2-
import { ListProps, ListItem } from '@mui/material';
3-
type ListItemElement = React.ReactElement<typeof ListItem>;
2+
import { ListProps, ListItem, ListItemText } from '@mui/material';
3+
type ListItemElement = React.ReactElement<typeof ListItem | typeof ListItemText>;
44
export interface ItemizedListProps {
55
styleType: ('unset' | 'initial' | 'inherit' | 'upper-roman' | 'upper-latin' | 'upper-alpha' | 'square' | 'none' | 'lower-roman' | 'lower-latin' | 'lower-greek' | 'lower-alpha' | 'georgian' | 'disc' | 'decimal-leading-zero' | 'decimal' | 'armenian' | 'circle');
66
listProps?: ListProps;

lib/esm/components/ItemizedList.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ import { List } from '@mui/material';
2525
var ItemizedList = function (_a) {
2626
var styleType = _a.styleType, _b = _a.listProps, listProps = _b === void 0 ? {} : _b, _c = _a.pl, pl = _c === void 0 ? 4 : _c, children = _a.children;
2727
var sx = listProps.sx, otherProps = __rest(listProps, ["sx"]);
28-
return (React.createElement(List, __assign({ sx: __assign({ listStyleType: styleType, pl: pl, '.MuiListItem-root': {
29-
display: 'list-item'
30-
} }, sx) }, otherProps), children));
28+
var listItemProps = { display: 'list-item' };
29+
return (React.createElement(List, __assign({ sx: __assign({ listStyleType: styleType, pl: pl, '.MuiListItem-root': listItemProps, '.MuiListItemText-root': listItemProps }, sx) }, otherProps), children));
3130
};
3231
export default ItemizedList;

0 commit comments

Comments
 (0)