public static function getConstants($html = false)
{
$result = [];
foreach ((new \ReflectionClass(get_class()))->getConstants() as $constant) {
$key = static::$cssPrefix . ' ' . static::$cssPrefix . '-' . $constant;
$result[$key] = $html ? static::icon($constant) . ' ' . $constant : $constant;
}
return $result;
}