Many subtle improvements to the UI design system (#1537)

This commit is contained in:
Keavon Chambers 2023-12-28 04:35:20 -08:00 committed by GitHub
parent 34f952bad1
commit 96b5d7b520
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
62 changed files with 326 additions and 521 deletions

View file

@ -314,6 +314,7 @@ export const ICON_SVG_STRINGS = Object.fromEntries(Object.entries(ICONS).map(([n
export type IconName = keyof typeof ICONS;
export type IconSize = undefined | 12 | 16 | 24 | 32;
export type PopoverButtonStyle = "DropdownArrow" | "VerticalEllipsis";
// The following helper type declarations allow us to avoid manually maintaining the `IconName` type declaration as a string union paralleling the keys of the
// icon definitions. It lets TypeScript do that for us. Our goal is to define the big key-value pair of icons by constraining its values, but inferring its keys.