Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
@microsoft/arbutus.style-utilities
Advanced tools
Collection of utilities for styling with Griffel.
npm i @microsoft/arbutus.style-utilities
mapToStyles is designed to help generating styles variants. It generates Griffel classes from a map of values.
import { mapToStyles } from '@microsoft/arbutus.style-utilities';
map
An object, where the key will become a class name, and the value will be passed to the styleFunction
.styleFunction
A function that takes the value from the map
and returns a GriffelStyle
.An object with keys from the map and values as GriffelStyle returned by the styleFunction
.
type ColorValue = string;
const textColors = { primary: 'red', secondary: 'blue' };
const textStyleFunction = (color: ColorValue) => ({
color,
'&:visited': { color },
});
const textColorClasses = mapToStyles<ColorValue, typeof textColors>(
textColors,
textStyleFunction,
);
// Output
// {
// primary: {
// color: 'red',
// '&:visited: { color: 'red'}}
// },
// secondary: {
// color: 'blue',
// '&:visited: { color: 'blue'}}
// },
// }
makeStyles()
function.FAQs
Collection of utilities for styling with Griffel.
We found that @microsoft/arbutus.style-utilities demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.