-
Notifications
You must be signed in to change notification settings - Fork 538
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'remove-deprecated-button' of https://github.com/primer/…
…react into remove-deprecated-button
- Loading branch information
Showing
232 changed files
with
789 additions
and
0 deletions.
There are no files selected for viewing
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,5 @@ | ||
--- | ||
'@primer/react': minor | ||
--- | ||
|
||
Add support for experimental IssueLabel component |
Binary file modified
BIN
+120 Bytes
(100%)
...nts/AvatarPair.test.ts-snapshots/AvatarPair-Parent-Square-dark-dimmed-linux.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
+2.83 KB
...onents/IssueLabel.test.ts-snapshots/IssueLabel-Auburn-dark-colorblind-linux.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
+2.89 KB
...components/IssueLabel.test.ts-snapshots/IssueLabel-Auburn-dark-dimmed-linux.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
+2.85 KB
...nts/IssueLabel.test.ts-snapshots/IssueLabel-Auburn-dark-high-contrast-linux.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
+2.83 KB
...pshots/components/IssueLabel.test.ts-snapshots/IssueLabel-Auburn-dark-linux.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
+2.83 KB
...onents/IssueLabel.test.ts-snapshots/IssueLabel-Auburn-dark-tritanopia-linux.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
+2.8 KB
...nents/IssueLabel.test.ts-snapshots/IssueLabel-Auburn-light-colorblind-linux.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
+2.8 KB
...ts/IssueLabel.test.ts-snapshots/IssueLabel-Auburn-light-high-contrast-linux.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
+2.8 KB
...shots/components/IssueLabel.test.ts-snapshots/IssueLabel-Auburn-light-linux.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
+2.8 KB
...nents/IssueLabel.test.ts-snapshots/IssueLabel-Auburn-light-tritanopia-linux.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
+2.91 KB
...mponents/IssueLabel.test.ts-snapshots/IssueLabel-Blue-dark-colorblind-linux.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
+2.91 KB
...s/components/IssueLabel.test.ts-snapshots/IssueLabel-Blue-dark-dimmed-linux.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
+2.84 KB
...nents/IssueLabel.test.ts-snapshots/IssueLabel-Blue-dark-high-contrast-linux.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
+2.91 KB
...napshots/components/IssueLabel.test.ts-snapshots/IssueLabel-Blue-dark-linux.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
+2.91 KB
...mponents/IssueLabel.test.ts-snapshots/IssueLabel-Blue-dark-tritanopia-linux.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
+2.77 KB
...ponents/IssueLabel.test.ts-snapshots/IssueLabel-Blue-light-colorblind-linux.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
+2.77 KB
...ents/IssueLabel.test.ts-snapshots/IssueLabel-Blue-light-high-contrast-linux.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
+2.77 KB
...apshots/components/IssueLabel.test.ts-snapshots/IssueLabel-Blue-light-linux.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
+2.77 KB
...ponents/IssueLabel.test.ts-snapshots/IssueLabel-Blue-light-tritanopia-linux.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
+2.84 KB
...ponents/IssueLabel.test.ts-snapshots/IssueLabel-Brown-dark-colorblind-linux.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
+2.87 KB
.../components/IssueLabel.test.ts-snapshots/IssueLabel-Brown-dark-dimmed-linux.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
+2.85 KB
...ents/IssueLabel.test.ts-snapshots/IssueLabel-Brown-dark-high-contrast-linux.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
+2.84 KB
...apshots/components/IssueLabel.test.ts-snapshots/IssueLabel-Brown-dark-linux.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
+2.84 KB
...ponents/IssueLabel.test.ts-snapshots/IssueLabel-Brown-dark-tritanopia-linux.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
+2.85 KB
...onents/IssueLabel.test.ts-snapshots/IssueLabel-Brown-light-colorblind-linux.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
+2.85 KB
...nts/IssueLabel.test.ts-snapshots/IssueLabel-Brown-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.85 KB
...pshots/components/IssueLabel.test.ts-snapshots/IssueLabel-Brown-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.85 KB
...onents/IssueLabel.test.ts-snapshots/IssueLabel-Brown-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.86 KB
...onents/IssueLabel.test.ts-snapshots/IssueLabel-Button-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.86 KB
...components/IssueLabel.test.ts-snapshots/IssueLabel-Button-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.88 KB
...nts/IssueLabel.test.ts-snapshots/IssueLabel-Button-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.86 KB
...pshots/components/IssueLabel.test.ts-snapshots/IssueLabel-Button-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.86 KB
...onents/IssueLabel.test.ts-snapshots/IssueLabel-Button-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.84 KB
...nents/IssueLabel.test.ts-snapshots/IssueLabel-Button-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.84 KB
...ts/IssueLabel.test.ts-snapshots/IssueLabel-Button-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.84 KB
...shots/components/IssueLabel.test.ts-snapshots/IssueLabel-Button-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.84 KB
...nents/IssueLabel.test.ts-snapshots/IssueLabel-Button-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.84 KB
...ponents/IssueLabel.test.ts-snapshots/IssueLabel-Coral-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.91 KB
.../components/IssueLabel.test.ts-snapshots/IssueLabel-Coral-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.79 KB
...ents/IssueLabel.test.ts-snapshots/IssueLabel-Coral-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.84 KB
...apshots/components/IssueLabel.test.ts-snapshots/IssueLabel-Coral-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.84 KB
...ponents/IssueLabel.test.ts-snapshots/IssueLabel-Coral-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.74 KB
...onents/IssueLabel.test.ts-snapshots/IssueLabel-Coral-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.74 KB
...nts/IssueLabel.test.ts-snapshots/IssueLabel-Coral-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.74 KB
...pshots/components/IssueLabel.test.ts-snapshots/IssueLabel-Coral-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.74 KB
...onents/IssueLabel.test.ts-snapshots/IssueLabel-Coral-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.76 KB
...mponents/IssueLabel.test.ts-snapshots/IssueLabel-Cyan-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.74 KB
...s/components/IssueLabel.test.ts-snapshots/IssueLabel-Cyan-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.69 KB
...nents/IssueLabel.test.ts-snapshots/IssueLabel-Cyan-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.76 KB
...napshots/components/IssueLabel.test.ts-snapshots/IssueLabel-Cyan-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.76 KB
...mponents/IssueLabel.test.ts-snapshots/IssueLabel-Cyan-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.77 KB
...ponents/IssueLabel.test.ts-snapshots/IssueLabel-Cyan-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.77 KB
...ents/IssueLabel.test.ts-snapshots/IssueLabel-Cyan-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.77 KB
...apshots/components/IssueLabel.test.ts-snapshots/IssueLabel-Cyan-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.77 KB
...ponents/IssueLabel.test.ts-snapshots/IssueLabel-Cyan-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.86 KB
...nents/IssueLabel.test.ts-snapshots/IssueLabel-Default-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.86 KB
...omponents/IssueLabel.test.ts-snapshots/IssueLabel-Default-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.87 KB
...ts/IssueLabel.test.ts-snapshots/IssueLabel-Default-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.86 KB
...shots/components/IssueLabel.test.ts-snapshots/IssueLabel-Default-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.86 KB
...nents/IssueLabel.test.ts-snapshots/IssueLabel-Default-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.83 KB
...ents/IssueLabel.test.ts-snapshots/IssueLabel-Default-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.83 KB
...s/IssueLabel.test.ts-snapshots/IssueLabel-Default-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.83 KB
...hots/components/IssueLabel.test.ts-snapshots/IssueLabel-Default-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.83 KB
...ents/IssueLabel.test.ts-snapshots/IssueLabel-Default-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.86 KB
...mponents/IssueLabel.test.ts-snapshots/IssueLabel-Gray-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.86 KB
...s/components/IssueLabel.test.ts-snapshots/IssueLabel-Gray-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.87 KB
...nents/IssueLabel.test.ts-snapshots/IssueLabel-Gray-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.86 KB
...napshots/components/IssueLabel.test.ts-snapshots/IssueLabel-Gray-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.86 KB
...mponents/IssueLabel.test.ts-snapshots/IssueLabel-Gray-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.83 KB
...ponents/IssueLabel.test.ts-snapshots/IssueLabel-Gray-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.83 KB
...ents/IssueLabel.test.ts-snapshots/IssueLabel-Gray-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.83 KB
...apshots/components/IssueLabel.test.ts-snapshots/IssueLabel-Gray-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.83 KB
...ponents/IssueLabel.test.ts-snapshots/IssueLabel-Gray-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.75 KB
...ponents/IssueLabel.test.ts-snapshots/IssueLabel-Green-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.82 KB
.../components/IssueLabel.test.ts-snapshots/IssueLabel-Green-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.77 KB
...ents/IssueLabel.test.ts-snapshots/IssueLabel-Green-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.75 KB
...apshots/components/IssueLabel.test.ts-snapshots/IssueLabel-Green-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.75 KB
...ponents/IssueLabel.test.ts-snapshots/IssueLabel-Green-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.87 KB
...onents/IssueLabel.test.ts-snapshots/IssueLabel-Green-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.87 KB
...nts/IssueLabel.test.ts-snapshots/IssueLabel-Green-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.87 KB
...pshots/components/IssueLabel.test.ts-snapshots/IssueLabel-Green-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.87 KB
...onents/IssueLabel.test.ts-snapshots/IssueLabel-Green-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+9.79 KB
...sueLabel.test.ts-snapshots/IssueLabel-Group-Of-Labels-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+9.92 KB
...s/IssueLabel.test.ts-snapshots/IssueLabel-Group-Of-Labels-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+9.83 KB
...Label.test.ts-snapshots/IssueLabel-Group-Of-Labels-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+9.79 KB
...mponents/IssueLabel.test.ts-snapshots/IssueLabel-Group-Of-Labels-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+9.79 KB
...sueLabel.test.ts-snapshots/IssueLabel-Group-Of-Labels-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+9.81 KB
...ueLabel.test.ts-snapshots/IssueLabel-Group-Of-Labels-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+9.81 KB
...abel.test.ts-snapshots/IssueLabel-Group-Of-Labels-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+9.81 KB
...ponents/IssueLabel.test.ts-snapshots/IssueLabel-Group-Of-Labels-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+9.81 KB
...ueLabel.test.ts-snapshots/IssueLabel-Group-Of-Labels-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.83 KB
...omponents/IssueLabel.test.ts-snapshots/IssueLabel-Hex-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.84 KB
...ts/components/IssueLabel.test.ts-snapshots/IssueLabel-Hex-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.8 KB
...onents/IssueLabel.test.ts-snapshots/IssueLabel-Hex-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.83 KB
...snapshots/components/IssueLabel.test.ts-snapshots/IssueLabel-Hex-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.83 KB
...omponents/IssueLabel.test.ts-snapshots/IssueLabel-Hex-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.85 KB
...mponents/IssueLabel.test.ts-snapshots/IssueLabel-Hex-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.85 KB
...nents/IssueLabel.test.ts-snapshots/IssueLabel-Hex-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.85 KB
...napshots/components/IssueLabel.test.ts-snapshots/IssueLabel-Hex-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.85 KB
...mponents/IssueLabel.test.ts-snapshots/IssueLabel-Hex-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.9 KB
...onents/IssueLabel.test.ts-snapshots/IssueLabel-Indigo-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.89 KB
...components/IssueLabel.test.ts-snapshots/IssueLabel-Indigo-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.9 KB
...nts/IssueLabel.test.ts-snapshots/IssueLabel-Indigo-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.9 KB
...pshots/components/IssueLabel.test.ts-snapshots/IssueLabel-Indigo-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.9 KB
...onents/IssueLabel.test.ts-snapshots/IssueLabel-Indigo-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.71 KB
...nents/IssueLabel.test.ts-snapshots/IssueLabel-Indigo-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.71 KB
...ts/IssueLabel.test.ts-snapshots/IssueLabel-Indigo-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.71 KB
...shots/components/IssueLabel.test.ts-snapshots/IssueLabel-Indigo-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.71 KB
...nents/IssueLabel.test.ts-snapshots/IssueLabel-Indigo-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.82 KB
...ponents/IssueLabel.test.ts-snapshots/IssueLabel-Lemon-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.85 KB
.../components/IssueLabel.test.ts-snapshots/IssueLabel-Lemon-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.77 KB
...ents/IssueLabel.test.ts-snapshots/IssueLabel-Lemon-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.82 KB
...apshots/components/IssueLabel.test.ts-snapshots/IssueLabel-Lemon-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.82 KB
...ponents/IssueLabel.test.ts-snapshots/IssueLabel-Lemon-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.88 KB
...onents/IssueLabel.test.ts-snapshots/IssueLabel-Lemon-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.88 KB
...nts/IssueLabel.test.ts-snapshots/IssueLabel-Lemon-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.88 KB
...pshots/components/IssueLabel.test.ts-snapshots/IssueLabel-Lemon-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.88 KB
...onents/IssueLabel.test.ts-snapshots/IssueLabel-Lemon-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.81 KB
...mponents/IssueLabel.test.ts-snapshots/IssueLabel-Lime-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.87 KB
...s/components/IssueLabel.test.ts-snapshots/IssueLabel-Lime-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.79 KB
...nents/IssueLabel.test.ts-snapshots/IssueLabel-Lime-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.81 KB
...napshots/components/IssueLabel.test.ts-snapshots/IssueLabel-Lime-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.81 KB
...mponents/IssueLabel.test.ts-snapshots/IssueLabel-Lime-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.89 KB
...ponents/IssueLabel.test.ts-snapshots/IssueLabel-Lime-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.89 KB
...ents/IssueLabel.test.ts-snapshots/IssueLabel-Lime-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.89 KB
...apshots/components/IssueLabel.test.ts-snapshots/IssueLabel-Lime-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.89 KB
...ponents/IssueLabel.test.ts-snapshots/IssueLabel-Lime-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.86 KB
...mponents/IssueLabel.test.ts-snapshots/IssueLabel-Link-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.86 KB
...s/components/IssueLabel.test.ts-snapshots/IssueLabel-Link-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.88 KB
...nents/IssueLabel.test.ts-snapshots/IssueLabel-Link-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.86 KB
...napshots/components/IssueLabel.test.ts-snapshots/IssueLabel-Link-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.86 KB
...mponents/IssueLabel.test.ts-snapshots/IssueLabel-Link-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.84 KB
...ponents/IssueLabel.test.ts-snapshots/IssueLabel-Link-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.84 KB
...ents/IssueLabel.test.ts-snapshots/IssueLabel-Link-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.84 KB
...apshots/components/IssueLabel.test.ts-snapshots/IssueLabel-Link-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.84 KB
...ponents/IssueLabel.test.ts-snapshots/IssueLabel-Link-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.81 KB
...ponents/IssueLabel.test.ts-snapshots/IssueLabel-Olive-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.83 KB
.../components/IssueLabel.test.ts-snapshots/IssueLabel-Olive-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.75 KB
...ents/IssueLabel.test.ts-snapshots/IssueLabel-Olive-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.81 KB
...apshots/components/IssueLabel.test.ts-snapshots/IssueLabel-Olive-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.81 KB
...ponents/IssueLabel.test.ts-snapshots/IssueLabel-Olive-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.87 KB
...onents/IssueLabel.test.ts-snapshots/IssueLabel-Olive-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.87 KB
...nts/IssueLabel.test.ts-snapshots/IssueLabel-Olive-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.87 KB
...pshots/components/IssueLabel.test.ts-snapshots/IssueLabel-Olive-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.87 KB
...onents/IssueLabel.test.ts-snapshots/IssueLabel-Olive-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.84 KB
...onents/IssueLabel.test.ts-snapshots/IssueLabel-Orange-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.88 KB
...components/IssueLabel.test.ts-snapshots/IssueLabel-Orange-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.76 KB
...nts/IssueLabel.test.ts-snapshots/IssueLabel-Orange-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.84 KB
...pshots/components/IssueLabel.test.ts-snapshots/IssueLabel-Orange-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.84 KB
...onents/IssueLabel.test.ts-snapshots/IssueLabel-Orange-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.81 KB
...nents/IssueLabel.test.ts-snapshots/IssueLabel-Orange-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.81 KB
...ts/IssueLabel.test.ts-snapshots/IssueLabel-Orange-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.81 KB
...shots/components/IssueLabel.test.ts-snapshots/IssueLabel-Orange-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.81 KB
...nents/IssueLabel.test.ts-snapshots/IssueLabel-Orange-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.76 KB
...mponents/IssueLabel.test.ts-snapshots/IssueLabel-Pine-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.82 KB
...s/components/IssueLabel.test.ts-snapshots/IssueLabel-Pine-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.76 KB
...nents/IssueLabel.test.ts-snapshots/IssueLabel-Pine-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.76 KB
...napshots/components/IssueLabel.test.ts-snapshots/IssueLabel-Pine-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.76 KB
...mponents/IssueLabel.test.ts-snapshots/IssueLabel-Pine-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.9 KB
...ponents/IssueLabel.test.ts-snapshots/IssueLabel-Pine-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.9 KB
...ents/IssueLabel.test.ts-snapshots/IssueLabel-Pine-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.9 KB
...apshots/components/IssueLabel.test.ts-snapshots/IssueLabel-Pine-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.9 KB
...ponents/IssueLabel.test.ts-snapshots/IssueLabel-Pine-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.9 KB
...mponents/IssueLabel.test.ts-snapshots/IssueLabel-Pink-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.89 KB
...s/components/IssueLabel.test.ts-snapshots/IssueLabel-Pink-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.88 KB
...nents/IssueLabel.test.ts-snapshots/IssueLabel-Pink-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.9 KB
...napshots/components/IssueLabel.test.ts-snapshots/IssueLabel-Pink-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.9 KB
...mponents/IssueLabel.test.ts-snapshots/IssueLabel-Pink-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.75 KB
...ponents/IssueLabel.test.ts-snapshots/IssueLabel-Pink-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.75 KB
...ents/IssueLabel.test.ts-snapshots/IssueLabel-Pink-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.75 KB
...apshots/components/IssueLabel.test.ts-snapshots/IssueLabel-Pink-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.75 KB
...ponents/IssueLabel.test.ts-snapshots/IssueLabel-Pink-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.91 KB
...mponents/IssueLabel.test.ts-snapshots/IssueLabel-Plum-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.92 KB
...s/components/IssueLabel.test.ts-snapshots/IssueLabel-Plum-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.92 KB
...nents/IssueLabel.test.ts-snapshots/IssueLabel-Plum-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.91 KB
...napshots/components/IssueLabel.test.ts-snapshots/IssueLabel-Plum-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.91 KB
...mponents/IssueLabel.test.ts-snapshots/IssueLabel-Plum-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.73 KB
...ponents/IssueLabel.test.ts-snapshots/IssueLabel-Plum-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.73 KB
...ents/IssueLabel.test.ts-snapshots/IssueLabel-Plum-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.73 KB
...apshots/components/IssueLabel.test.ts-snapshots/IssueLabel-Plum-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.73 KB
...ponents/IssueLabel.test.ts-snapshots/IssueLabel-Plum-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.91 KB
...onents/IssueLabel.test.ts-snapshots/IssueLabel-Purple-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.88 KB
...components/IssueLabel.test.ts-snapshots/IssueLabel-Purple-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.91 KB
...nts/IssueLabel.test.ts-snapshots/IssueLabel-Purple-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.91 KB
...pshots/components/IssueLabel.test.ts-snapshots/IssueLabel-Purple-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.91 KB
...onents/IssueLabel.test.ts-snapshots/IssueLabel-Purple-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.71 KB
...nents/IssueLabel.test.ts-snapshots/IssueLabel-Purple-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.71 KB
...ts/IssueLabel.test.ts-snapshots/IssueLabel-Purple-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.71 KB
...shots/components/IssueLabel.test.ts-snapshots/IssueLabel-Purple-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.71 KB
...nents/IssueLabel.test.ts-snapshots/IssueLabel-Purple-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.87 KB
...omponents/IssueLabel.test.ts-snapshots/IssueLabel-Red-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.95 KB
...ts/components/IssueLabel.test.ts-snapshots/IssueLabel-Red-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.85 KB
...onents/IssueLabel.test.ts-snapshots/IssueLabel-Red-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.87 KB
...snapshots/components/IssueLabel.test.ts-snapshots/IssueLabel-Red-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.87 KB
...omponents/IssueLabel.test.ts-snapshots/IssueLabel-Red-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.74 KB
...mponents/IssueLabel.test.ts-snapshots/IssueLabel-Red-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.74 KB
...nents/IssueLabel.test.ts-snapshots/IssueLabel-Red-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.74 KB
...napshots/components/IssueLabel.test.ts-snapshots/IssueLabel-Red-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.74 KB
...mponents/IssueLabel.test.ts-snapshots/IssueLabel-Red-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.88 KB
...apshots/components/IssueLabel.test.ts-snapshots/IssueLabel-Size-Large-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.83 KB
...apshots/components/IssueLabel.test.ts-snapshots/IssueLabel-Size-Small-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.81 KB
...mponents/IssueLabel.test.ts-snapshots/IssueLabel-Teal-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.82 KB
...s/components/IssueLabel.test.ts-snapshots/IssueLabel-Teal-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.79 KB
...nents/IssueLabel.test.ts-snapshots/IssueLabel-Teal-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.81 KB
...napshots/components/IssueLabel.test.ts-snapshots/IssueLabel-Teal-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.81 KB
...mponents/IssueLabel.test.ts-snapshots/IssueLabel-Teal-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.84 KB
...ponents/IssueLabel.test.ts-snapshots/IssueLabel-Teal-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.84 KB
...ents/IssueLabel.test.ts-snapshots/IssueLabel-Teal-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.84 KB
...apshots/components/IssueLabel.test.ts-snapshots/IssueLabel-Teal-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.84 KB
...ponents/IssueLabel.test.ts-snapshots/IssueLabel-Teal-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.8 KB
...onents/IssueLabel.test.ts-snapshots/IssueLabel-Yellow-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.84 KB
...components/IssueLabel.test.ts-snapshots/IssueLabel-Yellow-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.76 KB
...nts/IssueLabel.test.ts-snapshots/IssueLabel-Yellow-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.8 KB
...pshots/components/IssueLabel.test.ts-snapshots/IssueLabel-Yellow-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.8 KB
...onents/IssueLabel.test.ts-snapshots/IssueLabel-Yellow-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.81 KB
...nents/IssueLabel.test.ts-snapshots/IssueLabel-Yellow-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.81 KB
...ts/IssueLabel.test.ts-snapshots/IssueLabel-Yellow-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.81 KB
...shots/components/IssueLabel.test.ts-snapshots/IssueLabel-Yellow-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.81 KB
...nents/IssueLabel.test.ts-snapshots/IssueLabel-Yellow-light-tritanopia-linux.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
import {test, expect} from '@playwright/test' | ||
import {visit} from '../test-helpers/storybook' | ||
import {themes} from '../test-helpers/themes' | ||
|
||
const variants = [ | ||
{ | ||
title: 'Default', | ||
id: 'experimental-components-issuelabel--default', | ||
}, | ||
{ | ||
title: 'Auburn', | ||
id: 'experimental-components-issuelabel-features--variant-auburn', | ||
}, | ||
{ | ||
title: 'Blue', | ||
id: 'experimental-components-issuelabel-features--variant-blue', | ||
}, | ||
{ | ||
title: 'Brown', | ||
id: 'experimental-components-issuelabel-features--variant-brown', | ||
}, | ||
{ | ||
title: 'Coral', | ||
id: 'experimental-components-issuelabel-features--variant-coral', | ||
}, | ||
{ | ||
title: 'Cyan', | ||
id: 'experimental-components-issuelabel-features--variant-cyan', | ||
}, | ||
{ | ||
title: 'Gray', | ||
id: 'experimental-components-issuelabel-features--variant-gray', | ||
}, | ||
{ | ||
title: 'Green', | ||
id: 'experimental-components-issuelabel-features--variant-green', | ||
}, | ||
{ | ||
title: 'Indigo', | ||
id: 'experimental-components-issuelabel-features--variant-indigo', | ||
}, | ||
{ | ||
title: 'Lemon', | ||
id: 'experimental-components-issuelabel-features--variant-lemon', | ||
}, | ||
{ | ||
title: 'Lime', | ||
id: 'experimental-components-issuelabel-features--variant-lime', | ||
}, | ||
{ | ||
title: 'Olive', | ||
id: 'experimental-components-issuelabel-features--variant-olive', | ||
}, | ||
{ | ||
title: 'Orange', | ||
id: 'experimental-components-issuelabel-features--variant-orange', | ||
}, | ||
{ | ||
title: 'Pine', | ||
id: 'experimental-components-issuelabel-features--variant-pine', | ||
}, | ||
{ | ||
title: 'Pink', | ||
id: 'experimental-components-issuelabel-features--variant-pink', | ||
}, | ||
{ | ||
title: 'Plum', | ||
id: 'experimental-components-issuelabel-features--variant-plum', | ||
}, | ||
{ | ||
title: 'Purple', | ||
id: 'experimental-components-issuelabel-features--variant-purple', | ||
}, | ||
{ | ||
title: 'Red', | ||
id: 'experimental-components-issuelabel-features--variant-red', | ||
}, | ||
{ | ||
title: 'Teal', | ||
id: 'experimental-components-issuelabel-features--variant-teal', | ||
}, | ||
{ | ||
title: 'Yellow', | ||
id: 'experimental-components-issuelabel-features--variant-yellow', | ||
}, | ||
{ | ||
title: 'Button', | ||
id: 'experimental-components-issuelabel-features--as-button', | ||
}, | ||
{ | ||
title: 'Link', | ||
id: 'experimental-components-issuelabel-features--as-link', | ||
}, | ||
{ | ||
title: 'Group Of Labels', | ||
id: 'experimental-components-issuelabel-features--group-of-labels', | ||
}, | ||
{ | ||
title: 'Hex', | ||
id: 'experimental-components-issuelabel-features--hex-color', | ||
}, | ||
] as const | ||
|
||
test.describe('IssueLabel', () => { | ||
for (const story of variants) { | ||
test.describe(story.title, () => { | ||
for (const theme of themes) { | ||
test.describe(theme, () => { | ||
test('default @vrt', async ({page}) => { | ||
await visit(page, { | ||
id: story.id, | ||
globals: { | ||
colorScheme: theme, | ||
}, | ||
}) | ||
|
||
await page.setViewportSize({ | ||
width: 320, | ||
height: 320, | ||
}) | ||
|
||
// Default state | ||
expect(await page.screenshot()).toMatchSnapshot(`IssueLabel.${story.title}.${theme}.png`) | ||
}) | ||
|
||
test('axe @aat', async ({page}) => { | ||
await visit(page, { | ||
id: story.id, | ||
globals: { | ||
colorScheme: theme, | ||
}, | ||
}) | ||
await expect(page).toHaveNoViolations() | ||
}) | ||
}) | ||
} | ||
}) | ||
} | ||
}) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
46 changes: 46 additions & 0 deletions
46
packages/react/src/experimental/IssueLabel/IssueLabel.docs.json
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,46 @@ | ||
{ | ||
"id": "issue_label", | ||
"name": "IssueLabel", | ||
"status": "draft", | ||
"a11yReviewed": false, | ||
"stories": [], | ||
"importPath": "@primer/react/experimental", | ||
"props": [ | ||
{ | ||
"name": "fillColor", | ||
"type": "string", | ||
"description": "The hex code for a custom background color" | ||
}, | ||
{ | ||
"name": "variant", | ||
"type": "'pink'\n| 'plum'\n| 'purple'\n| 'indigo'\n| 'blue'\n| 'cyan'\n| 'teal'\n| 'pine'\n| 'green'\n| 'lime'\n| 'olive'\n| 'lemon'\n| 'yellow'\n| 'orange'\n| 'red'\n| 'coral'\n| 'gray'\n| 'brown'\n| 'auburn'", | ||
"defaultValue": "'gray'", | ||
"description": "Color variant for the background and text color" | ||
}, | ||
{ | ||
"name": "className", | ||
"type": "string", | ||
"description": "Class name for custom styling." | ||
}, | ||
{ | ||
"name": "href", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "as", | ||
"type": "React.ElementType", | ||
"defaultValue": "'span'" | ||
}, | ||
{ | ||
"name": "text", | ||
"type": "string", | ||
"description": "Label text." | ||
}, | ||
{ | ||
"name": "id", | ||
"type": "string", | ||
"description": "A unique identifier that can be associated with the label." | ||
} | ||
], | ||
"subcomponents": [] | ||
} |
84 changes: 84 additions & 0 deletions
84
packages/react/src/experimental/IssueLabel/IssueLabel.features.stories.tsx
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,84 @@ | ||
import React from 'react' | ||
import {IssueLabel} from '../IssueLabel' | ||
import type {Meta} from '@storybook/react' | ||
import {Stack} from '../../Stack' | ||
|
||
const meta = { | ||
title: 'Experimental/Components/IssueLabel/Features', | ||
component: IssueLabel, | ||
} satisfies Meta<typeof IssueLabel> | ||
|
||
export default meta | ||
|
||
export const VariantPink = () => <IssueLabel variant="pink" text="Issue label" /> | ||
|
||
export const VariantPlum = () => <IssueLabel variant="plum" text="Issue label" /> | ||
|
||
export const VariantPurple = () => <IssueLabel variant="purple" text="Issue label" /> | ||
|
||
export const VariantIndigo = () => <IssueLabel variant="indigo" text="Issue label" /> | ||
|
||
export const VariantBlue = () => <IssueLabel variant="blue" text="Issue label" /> | ||
|
||
export const VariantCyan = () => <IssueLabel variant="cyan" text="Issue label" /> | ||
|
||
export const VariantTeal = () => <IssueLabel variant="teal" text="Issue label" /> | ||
|
||
export const VariantPine = () => <IssueLabel variant="pine" text="Issue label" /> | ||
|
||
export const VariantGreen = () => <IssueLabel variant="green" text="Issue label" /> | ||
|
||
export const VariantLime = () => <IssueLabel variant="lime" text="Issue label" /> | ||
|
||
export const VariantOlive = () => <IssueLabel variant="olive" text="Issue label" /> | ||
|
||
export const VariantLemon = () => <IssueLabel variant="lemon" text="Issue label" /> | ||
|
||
export const VariantYellow = () => <IssueLabel variant="yellow" text="Issue label" /> | ||
|
||
export const VariantOrange = () => <IssueLabel variant="orange" text="Issue label" /> | ||
|
||
export const VariantRed = () => <IssueLabel variant="red" text="Issue label" /> | ||
|
||
export const VariantCoral = () => <IssueLabel variant="coral" text="Issue label" /> | ||
|
||
export const VariantGray = () => <IssueLabel variant="gray" text="Issue label" /> | ||
|
||
export const VariantBrown = () => <IssueLabel variant="brown" text="Issue label" /> | ||
|
||
export const VariantAuburn = () => <IssueLabel variant="auburn" text="Issue label" /> | ||
|
||
export const HexColor = (args: {fillColor: `#${string}`}) => ( | ||
<IssueLabel text="Issue label" fillColor={args.fillColor} /> | ||
) | ||
HexColor.args = { | ||
fillColor: '#59B200', | ||
} | ||
HexColor.argTypes = { | ||
fillColor: {control: {type: 'color'}}, | ||
variant: {table: {disable: true}}, | ||
text: {table: {disable: true}}, | ||
id: {table: {disable: true}}, | ||
className: {table: {disable: true}}, | ||
onClick: {table: {disable: true}}, | ||
onFocus: {table: {disable: true}}, | ||
as: {table: {disable: true}}, | ||
href: {table: {disable: true}}, | ||
} | ||
|
||
export const AsLink = () => <IssueLabel href="/" text="Issue label" /> | ||
|
||
export const AsButton = () => <IssueLabel text="Issue label" as="button" /> | ||
|
||
export const OnClick = () => <IssueLabel text="Issue label" onClick={() => alert('clicked')} /> | ||
|
||
export const GroupOfLabels = () => ( | ||
<Stack direction="horizontal" gap="condensed" wrap="wrap"> | ||
<IssueLabel variant="blue" text="Issue label" /> | ||
<IssueLabel variant="purple" text="Another label" /> | ||
<IssueLabel variant="green" text="A third label" /> | ||
<IssueLabel variant="orange" text="Issue label" /> | ||
<IssueLabel variant="yellow" text="Another label" /> | ||
<IssueLabel variant="brown" text="A third label" /> | ||
</Stack> | ||
) |
Oops, something went wrong.