import type { Globals , Properties } from "csstype" ; export type CSSProperties = Properties < ( string & { } ) | number > ; export type CSSPropertyAlignItems = Exclude < CSSProperties [ "alignItems" ] , Globals | "normal" | "flex-end" | "flex-start" > ; export type CSSPropertyJustifyContent = Exclude < CSSProperties [ "justifyContent" ] , Globals | "normal" | "flex-end" | "flex-start" | "left" | "right" > ; export function prefixFlexAlignmentValue ( value ) { return value === "end" || value === "start" ? `flex-${ value }` : value ; } export function supportsProperty ( property ) { return ( typeof CSS !== "undefined" && CSS . supports && CSS . supports ( property , "inherit" ) ) ; } export function withUnit ( value ) { return typeof value === "number" ? `${ value }px` : value ; }