Skip to content

Commit

Permalink
feat: add partial icon
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiehenson committed Apr 8, 2024
1 parent 5cac198 commit 99c9769
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/core/Icon/Icon.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const coreIcons = [
"icon-gui-link-arrow",
"icon-gui-live-chat",
"icon-gui-minus",
"icon-gui-partial",
"icon-gui-plus",
"icon-gui-quote-marks-solid",
"icon-gui-refresh",
Expand Down
2 changes: 2 additions & 0 deletions src/core/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
CtaCell,
Supported,
Unsupported,
Partial,
} from "./Table/TableCell";

export default {
Expand All @@ -21,4 +22,5 @@ export default {
Header: TableHeader,
Supported,
Unsupported,
Partial,
};
19 changes: 18 additions & 1 deletion src/core/Table/TableCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ const Unsupported = () => (
/>
);

const Partial = () => (
<Icon
name="icon-gui-partial"
size="1.5rem"
additionalCSS="flex-grow-0 flex-shrink-0"
data-testid="partial-icon"
/>
);

const LabelCell = ({
children,
...rest
Expand Down Expand Up @@ -89,4 +98,12 @@ const CtaCell = ({
</td>
);

export { TableCell, LabelCell, HeaderCell, CtaCell, Supported, Unsupported };
export {
TableCell,
LabelCell,
HeaderCell,
CtaCell,
Supported,
Unsupported,
Partial,
};

0 comments on commit 99c9769

Please sign in to comment.