Skip to content

Commit

Permalink
Styling changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ianvexler committed Feb 13, 2024
1 parent a05fa3e commit 77481e5
Show file tree
Hide file tree
Showing 12 changed files with 44 additions and 14 deletions.
2 changes: 1 addition & 1 deletion dist/components/list/components/ListRow.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions dist/components/nav/components/NavItem.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react';
export interface NavItemProps {
route: string;
label: string;
icon: string;
}
declare const NavItem: ({ route, label, icon }: NavItemProps) => React.JSX.Element;
export default NavItem;
//# sourceMappingURL=NavItem.d.ts.map
1 change: 1 addition & 0 deletions dist/components/nav/components/NavItem.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.es.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.es.js.map

Large diffs are not rendered by default.

17 changes: 13 additions & 4 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22862,7 +22862,7 @@ var Card = function (_a) {

var Chip = function (_a) {
var label = _a.label, color = _a.color, rest = __rest(_a, ["label", "color"]);
return (React.createElement("h5", null,
return (React.createElement("h5", { className: "mb-0" },
React.createElement("span", __assign$1({ style: {
backgroundColor: color,
padding: '10px 15px',
Expand All @@ -22887,7 +22887,16 @@ var ListHead = function (_a) {

var ListRow = function (_a) {
var children = _a.children, rest = __rest(_a, ["children"]);
return (React.createElement(Row$1, __assign$1({ className: "text-center mt-3" }, rest), children));
var childrenArray = React.Children.toArray(children);
return (React.createElement(Row$1, __assign$1({ className: "text-center mt-3" }, rest),
children,
childrenArray.map(function (child, index) {
var childElement = child;
return React.cloneElement(childElement, {
key: index,
borderStart: index !== 0,
});
})));
};

var ListCell = function (_a) {
Expand All @@ -22900,8 +22909,8 @@ var ListCell = function (_a) {
case ListSection.NONE:
default:
return (React.createElement("div", __assign$1({ className: "h-100 d-flex align-items-center ".concat(className) }, rest),
React.createElement(Card$2, { className: "h-100 w-100" },
React.createElement(Card$2.Body, { className: "d-flex justify-content-center align-items-center" },
React.createElement(Card$2, { className: "h-100 w-100 py-3" },
React.createElement(Card$2.Body, { className: "d-flex justify-content-center py-0" },
React.createElement("div", { className: "w-100" }, children)))));
}
};
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/index.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/components/chip/Chip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interface ChipProps extends React.HTMLProps<HTMLSpanElement> {
}
const Chip = ({ label, color, ...rest }: ChipProps) => {
return (
<h5>
<h5 className="mb-0">
<span
style={{
backgroundColor: color,
Expand Down
4 changes: 2 additions & 2 deletions src/components/list/components/ListCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ const ListCell = ({ className, children, ...rest }: ListCellProps) => {
className={`h-100 d-flex align-items-center ${className}`}
{...rest}
>
<Card className="h-100 w-100">
<Card.Body className="d-flex justify-content-center align-items-center">
<Card className="h-100 w-100 py-3">
<Card.Body className="d-flex justify-content-center py-0">
<div className="w-100">{children}</div>
</Card.Body>
</Card>
Expand Down
11 changes: 11 additions & 0 deletions src/components/list/components/ListRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,20 @@ import { RowProps, Row } from 'react-bootstrap';
export interface ListRowProps extends RowProps {}

const ListRow = ({ children, ...rest }: ListRowProps) => {
const childrenArray = React.Children.toArray(children);

return (
<Row className="text-center mt-3" {...rest}>
{children}

{childrenArray.map((child, index) => {
const childElement = child as React.ReactElement;

return React.cloneElement(childElement, {
key: index,
borderStart: index !== 0,
});
})}
</Row>
);
};
Expand Down

0 comments on commit 77481e5

Please sign in to comment.