Merged in feat/svg-instead-of-fonts (pull request #3411)
feat(SW-3695): use svg icons instead of font icons * feat(icons): use svg instead of font icons * feat(icons): use webpack/svgr for inlined svgs. Now support for isFilled again * Merge master * Remove old font icon Approved-by: Joakim Jäderberg
This commit is contained in:
@@ -3,8 +3,8 @@ import { Button as ButtonRAC } from "react-aria-components"
|
||||
import type { VariantProps } from "class-variance-authority"
|
||||
import type { ComponentProps } from "react"
|
||||
|
||||
import type { SymbolCodepoints } from "../Icons/MaterialIcon/MaterialSymbol/types"
|
||||
import type { variants } from "./variants"
|
||||
import { MaterialIconName } from "../Icons/MaterialIcon/generated"
|
||||
|
||||
export const iconButtonIconNames = [
|
||||
"arrow_forward",
|
||||
@@ -26,14 +26,9 @@ export const iconButtonIconNames = [
|
||||
"chevron_right",
|
||||
] as const
|
||||
|
||||
export type IconButtonIconName = Extract<
|
||||
SymbolCodepoints,
|
||||
(typeof iconButtonIconNames)[number]
|
||||
>
|
||||
|
||||
export interface IconButtonProps
|
||||
extends
|
||||
Omit<ComponentProps<typeof ButtonRAC>, "children">,
|
||||
VariantProps<typeof variants> {
|
||||
iconName: IconButtonIconName
|
||||
iconName: MaterialIconName
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user