Skip to content

Commit

Permalink
Added UI Images story #718
Browse files Browse the repository at this point in the history
  • Loading branch information
gauri2029 committed Jan 14, 2025
1 parent 96d49ac commit 0a6333e
Show file tree
Hide file tree
Showing 15 changed files with 49 additions and 0 deletions.
Binary file added libs/design-system/assets/ui-images/CDE.png
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.
Binary file added libs/design-system/assets/ui-images/api.png
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.
Binary file added libs/design-system/assets/ui-images/dashboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added libs/design-system/assets/ui-images/eui.png
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.
Binary file added libs/design-system/assets/ui-images/rui.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added libs/design-system/assets/ui-images/storybook.png
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.
49 changes: 49 additions & 0 deletions libs/design-system/src/lib/ui-images.stories.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
import { MatIconModule } from '@angular/material/icon';
import { applicationConfig, Meta, moduleMetadata, StoryObj } from '@storybook/angular';

import { provideDesignSystem } from './providers';

const meta: Meta = {
title: 'UI Images',
decorators: [
applicationConfig({
providers: [provideDesignSystem()],
}),
moduleMetadata({
imports: [MatIconModule],
}),
],
};
export default meta;
type Story = StoryObj;

export const PNGIcons: Story = {
args: {
imagePath: 'assets/ui-images/placeholder.png',
},
argTypes: {
imagePath: {
control: 'select',
options: [
'assets/ui-images/api.png',
'assets/ui-images/asctb_reporter.png',
'assets/ui-images/CDE.png',
'assets/ui-images/cell_population_graph.png',
'assets/ui-images/cell_population_predictor.png',
'assets/ui-images/dashboard.png',
'assets/ui-images/eui.png',
'assets/ui-images/FTU_explorer.png',
'assets/ui-images/organ_gallery.png',
'assets/ui-images/rui.png',
'assets/ui-images/storybook.png',
'assets/ui-images/tissue_origin_predictor.png',
'assets/ui-images/web_components.png',
],
description: 'Select image',
},
},
render: (args) => ({
props: args,
template: `<img src="${args['imagePath']}"/>`,
}),
};

0 comments on commit 0a6333e

Please sign in to comment.