/**
 * @since 6.0.0
 */ export const MATERIAL_CONFIG = {
    fill: 0,
    weight: 400,
    grade: 0,
    opticalSize: 48,
    iconFamily: "filled",
    family: "outlined"
};
const applyVar = (options)=>{
    const { name, value, defaultValue, style } = options;
    if (typeof value !== "undefined" && value !== defaultValue) {
        const varName = `--rmd-symbol-${name}`;
        return {
            ...style,
            [varName]: value
        };
    }
    return style;
};
/**
 * @since 6.0.0
 * @internal
 */ export function getFontVariationSettings(options) {
    const { family = MATERIAL_CONFIG.family, fill, grade, opticalSize, weight } = options;
    let { style } = options;
    style = applyVar({
        style,
        name: "fill",
        value: fill,
        defaultValue: MATERIAL_CONFIG.fill
    });
    style = applyVar({
        style,
        name: "grad",
        value: grade,
        defaultValue: MATERIAL_CONFIG.grade
    });
    style = applyVar({
        style,
        name: "opsz",
        value: opticalSize,
        defaultValue: MATERIAL_CONFIG.opticalSize
    });
    style = applyVar({
        style,
        name: "wght",
        value: weight,
        defaultValue: MATERIAL_CONFIG.weight
    });
    return {
        style,
        family
    };
}

//# sourceMappingURL=materialConfig.js.map