-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add icon overview for patternhub (#2029)
* chore: add icon overview for patternhub * chore: add snapshot * chore: update snapshots --------- Co-authored-by: Maximilian Franzke <[email protected]>
- Loading branch information
Showing
37 changed files
with
120 additions
and
0 deletions.
There are no files selected for viewing
Binary file modified
BIN
+343 Bytes
(100%)
...m/showcase/chromium/regular/neutral/DBAccordionItem-should-match-screenshot.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 modified
BIN
+256 Bytes
(100%)
...tem/showcase/webkit/regular/neutral/DBAccordionItem-should-match-screenshot.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 modified
BIN
+334 Bytes
(100%)
...rdion/showcase/chromium/regular/neutral/DBAccordion-should-match-screenshot.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 modified
BIN
+263 Bytes
(100%)
...cordion/showcase/webkit/regular/neutral/DBAccordion-should-match-screenshot.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 modified
BIN
+392 Bytes
(100%)
...s__/alert/showcase/chromium/regular/neutral/DBAlert-should-match-screenshot.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 modified
BIN
+242 Bytes
(100%)
...ots__/alert/showcase/webkit/regular/neutral/DBAlert-should-match-screenshot.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 modified
BIN
+362 Bytes
(100%)
...s__/badge/showcase/chromium/regular/neutral/DBBadge-should-match-screenshot.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 modified
BIN
+247 Bytes
(100%)
...ots__/badge/showcase/webkit/regular/neutral/DBBadge-should-match-screenshot.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 modified
BIN
+356 Bytes
(100%)
..._/button/showcase/chromium/regular/neutral/DBButton-should-match-screenshot.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 modified
BIN
+263 Bytes
(100%)
...s__/button/showcase/webkit/regular/neutral/DBButton-should-match-screenshot.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
BIN
+21.1 KB
...ots__/icon/showcase/chromium/regular/neutral/DBIcon-should-match-screenshot.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
BIN
+14.6 KB
.../icon/showcase/mobile-chrome/regular/neutral/DBIcon-should-match-screenshot.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
BIN
+13.1 KB
.../icon/showcase/mobile-safari/regular/neutral/DBIcon-should-match-screenshot.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
BIN
+18.5 KB
...shots__/icon/showcase/webkit/regular/neutral/DBIcon-should-match-screenshot.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 modified
BIN
+426 Bytes
(100%)
...fotext/showcase/chromium/regular/neutral/DBInfotext-should-match-screenshot.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 modified
BIN
+209 Bytes
(100%)
...infotext/showcase/webkit/regular/neutral/DBInfotext-should-match-screenshot.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 modified
BIN
+427 Bytes
(100%)
...s__/input/showcase/chromium/regular/neutral/DBInput-should-match-screenshot.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 modified
BIN
+234 Bytes
(100%)
...ots__/input/showcase/webkit/regular/neutral/DBInput-should-match-screenshot.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 modified
BIN
+353 Bytes
(100%)
...ots__/link/showcase/chromium/regular/neutral/DBLink-should-match-screenshot.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 modified
BIN
+241 Bytes
(100%)
...shots__/link/showcase/webkit/regular/neutral/DBLink-should-match-screenshot.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 modified
BIN
+324 Bytes
(100%)
...section/showcase/chromium/regular/neutral/DBSection-should-match-screenshot.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 modified
BIN
+258 Bytes
(100%)
..._/section/showcase/webkit/regular/neutral/DBSection-should-match-screenshot.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 modified
BIN
+209 Bytes
(100%)
...shots__/tag/showcase/chromium/regular/neutral/DBTag-should-match-screenshot.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 modified
BIN
-99 Bytes
(100%)
...__/tag/showcase/mobile-chrome/regular/neutral/DBTag-should-match-screenshot.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 modified
BIN
+263 Bytes
(100%)
...apshots__/tag/showcase/webkit/regular/neutral/DBTag-should-match-screenshot.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 modified
BIN
+426 Bytes
(100%)
...xtarea/showcase/chromium/regular/neutral/DBTextarea-should-match-screenshot.png
Oops, something went wrong.
Binary file modified
BIN
+632 Bytes
(100%)
...textarea/showcase/webkit/regular/neutral/DBTextarea-should-match-screenshot.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
showcases/angular-showcase/src/app/components/icon/icon.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<app-default-component | ||
title="DBIcon" | ||
[variants]="variants" | ||
[exampleTemplate]="exampleTemplate" | ||
> | ||
<ng-template | ||
#exampleTemplate | ||
let-exampleProps="exampleProps" | ||
let-exampleName="exampleName" | ||
let-exampleIndex="exampleIndex" | ||
let-variantIndex="variantIndex" | ||
> | ||
<db-infotext icon="none" size="small" variant="informational"> | ||
{{ exampleName }} | ||
</db-infotext> | ||
<db-icon icon="account">{{ exampleName }}</db-icon> | ||
</ng-template> | ||
</app-default-component> |
10 changes: 10 additions & 0 deletions
10
showcases/angular-showcase/src/app/components/icon/icon.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { Component } from '@angular/core'; | ||
import defaultComponentVariants from '../../../../../shared/icon.json'; | ||
|
||
@Component({ | ||
selector: 'app-icon', | ||
templateUrl: './icon.component.html' | ||
}) | ||
export class IconComponent { | ||
variants = defaultComponentVariants; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { test } from '@playwright/test'; | ||
// @ts-expect-error - required for playwright | ||
import { getDefaultScreenshotTest } from '../default.ts'; | ||
|
||
test.describe('DBIcon', () => { | ||
getDefaultScreenshotTest('04/icon'); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { DBIcon, DBInfotext } from '../../../../../output/react/src'; | ||
import DefaultComponent from '../index'; | ||
import defaultComponentVariants from '../../../../shared/icon.json'; | ||
import { type DBIconProps } from '../../../../../output/react/src/components/icon/model'; | ||
import { getVariants } from '../data'; | ||
|
||
const getIcon = ({ children }: DBIconProps) => ( | ||
<> | ||
<DBInfotext icon="none" size="small" variant="informational"> | ||
{children} | ||
</DBInfotext> | ||
<DBIcon icon="account">{children}</DBIcon> | ||
</> | ||
); | ||
|
||
const IconComponent = () => { | ||
return ( | ||
<DefaultComponent | ||
title={'DBIcon'} | ||
variants={getVariants( | ||
defaultComponentVariants, | ||
getIcon | ||
)}></DefaultComponent> | ||
); | ||
}; | ||
|
||
export default IconComponent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[ | ||
{ | ||
"name": "Tonality", | ||
"examples": [ | ||
{ | ||
"name": "functional", | ||
"className": "db-ui-functional", | ||
"props": {} | ||
}, | ||
{ | ||
"name": "regular (Default)", | ||
"className": "db-ui-regular", | ||
"props": {} | ||
}, | ||
{ | ||
"name": "expressive", | ||
"className": "db-ui-expressive", | ||
"props": {} | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<script setup lang="ts"> | ||
import DefaultComponent from "../DefaultComponent.vue"; | ||
import defaultComponentVariants from "../../../../shared/icon.json"; | ||
import { DBIcon, DBInfotext } from "../../../../../output/vue/vue3/src"; | ||
</script> | ||
|
||
<template> | ||
<DefaultComponent title="DBIcon" :variants="defaultComponentVariants"> | ||
<template | ||
#example="{ exampleIndex, variantIndex, exampleName, exampleProps }" | ||
> | ||
<DBInfotext icon="none" size="small" variant="informational"> | ||
{{ exampleName }}</DBInfotext | ||
> | ||
<DBIcon icon="account"> | ||
{{ exampleName }} | ||
</DBIcon> | ||
</template> | ||
</DefaultComponent> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters