Skip to content

Commit

Permalink
docs: add phosphor icons callout
Browse files Browse the repository at this point in the history
  • Loading branch information
francisco-guilherme committed Jan 16, 2025
1 parent 0861107 commit a60e4f8
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions docs/foundation/Icons/Library.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ import { ComponentType, useMemo, useState } from "react";
import { css } from "@emotion/css";
import {
HvInput,
HvLink,
HvOption,
HvSelect,
HvSimpleGrid,
HvTypography,
theme,
} from "@hitachivantara/uikit-react-core";
import {
IconBaseProps,
Expand Down Expand Up @@ -39,6 +41,15 @@ const classes = {
maxWidth: 400,
paddingBottom: "20px",
}),
callout: css({
width: "100%",
justifyContent: "center",
alignItems: "center",
backgroundColor: theme.colors.primary_20,
borderRadius: theme.radii.base,
padding: theme.space.sm,
marginBottom: theme.space.md,
}),
};

const Icon = ({
Expand Down Expand Up @@ -80,6 +91,23 @@ const Group = ({
);
};

const Callout = () => {
return (
<div className={classes.callout}>
<HvTypography>
Pentaho projects are transitioning to{" "}
<HvLink route="https://phosphoricons.com/" target="_blank">

Check failure on line 99 in docs/foundation/Icons/Library.tsx

View workflow job for this annotation

GitHub Actions / Tests / Static Checks

Type '{ children: string; route: string; target: string; }' is not assignable to type 'IntrinsicAttributes & HvLinkProps'.
Phosphoricons
</HvLink>
.
<br />
Please ensure you use the correct icon set according to your project
guidelines.
</HvTypography>
</div>
);
};

const Library = () => {
const [search, setSearch] = useState("");
const [iconSize, setIconSize] = useState<IconSize>("S");
Expand All @@ -97,6 +125,7 @@ const Library = () => {

return (
<>
<Callout />
<HvSimpleGrid spacing="sm" cols={2} className={classes.grid}>
<HvSelect
label="Select icon size"
Expand Down

0 comments on commit a60e4f8

Please sign in to comment.