Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(feat) O3-4168: Add gender icons to the CarbonMRS icon pack #1207

Merged
merged 5 commits into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/framework/esm-styleguide/mock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ export const DownloadIcon = () => <div>DownloadIcon</div>;
export const EditIcon = () => <div>EditIcon</div>;
export const EventScheduleIcon = () => <div>EventScheduleIcon</div>;
export const EventsIcon = () => <div>EventsIcon</div>;
export const GenderFemaleIcon = () => <div>GenderFemaleIcon</div>;
export const GenderMaleIcon = () => <div>GenderMaleIcon</div>;
export const GenderTransgenderIcon = () => <div>GenderTransgenderIcon</div>;
denniskigen marked this conversation as resolved.
Show resolved Hide resolved
export const GenderUnknownIcon = () => <div>GenderUnknownIcon</div>;
export const GroupIcon = () => <div>GroupIcon</div>;
export const GroupAccessIcon = () => <div>GroupAccessIcon</div>;
export const HospitalBedIcon = () => <div>HospitalBedIcon</div>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ import download from './svgs/download.svg';
import edit from './svgs/edit.svg';
import eventSchedule from './svgs/event-schedule.svg';
import events from './svgs/events.svg';
import genderFemale from './svgs/gender-female.svg';
import genderMale from './svgs/gender-male.svg';
import genderTransgender from './svgs/gender-transgender.svg';
denniskigen marked this conversation as resolved.
Show resolved Hide resolved
import genderUnknown from './svgs/gender-unknown.svg';
import group from './svgs/group.svg';
import groupAccess from './svgs/group-access.svg';
import hospitalBed from './svgs/hospital-bed.svg';
Expand Down Expand Up @@ -109,6 +113,10 @@ export function setupIcons() {
addSvg('omrs-icon-edit', edit);
addSvg('omrs-icon-event-schedule', eventSchedule);
addSvg('omrs-icon-events', events);
addSvg('omrs-icon-gender-female', genderFemale);
addSvg('omrs-icon-gender-male', genderMale);
addSvg('omrs-icon-gender-transgender', genderTransgender);
denniskigen marked this conversation as resolved.
Show resolved Hide resolved
addSvg('omrs-icon-gender-unknown', genderUnknown);
addSvg('omrs-icon-group', group);
addSvg('omrs-icon-group-access', groupAccess);
addSvg('omrs-icon-hospital-bed', hospitalBed);
Expand Down
29 changes: 29 additions & 0 deletions packages/framework/esm-styleguide/src/icons/icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,35 @@ export const EventsIcon = memo(
}),
);

/**
*/
export const GenderFemaleIcon = memo(
forwardRef<SVGSVGElement, IconProps>(function GenderFemaleIcon(props, ref) {
return <Icon ref={ref} icon="omrs-icon-gender-female" iconProps={props} />;
}),
);
/**
*/
export const GenderMaleIcon = memo(
forwardRef<SVGSVGElement, IconProps>(function GenderMaleIcon(props, ref) {
return <Icon ref={ref} icon="omrs-icon-gender-male" iconProps={props} />;
}),
);
/**
*/
export const GenderTransgenderIcon = memo(
forwardRef<SVGSVGElement, IconProps>(function GenderTransgenderIcon(props, ref) {
return <Icon ref={ref} icon="omrs-icon-gender-transgender" iconProps={props} />;
}),
);
denniskigen marked this conversation as resolved.
Show resolved Hide resolved
/**
*/
export const GenderUnknownIcon = memo(
forwardRef<SVGSVGElement, IconProps>(function GenderUnknownIcon(props, ref) {
return <Icon ref={ref} icon="omrs-icon-gender-unknown" iconProps={props} />;
}),
);

/**
*/
export const GroupIcon = memo(
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading