Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

monday-ui-style

Package Overview
Dependencies
Maintainers
9
Versions
305
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

monday-ui-style - npm Package Compare versions

Comparing version 0.1.159 to 0.1.160

src/_classes.scss

2

package.json
{
"name": "monday-ui-style",
"version": "0.1.159",
"version": "0.1.160",
"description": "Monday UI CSS Foundations",

@@ -5,0 +5,0 @@ "main": "dist/index.css",

@@ -98,3 +98,4 @@ const { lint } = require("stylelint");

it("warns for values that can be replaced with multiple CSS vars", async () => {
// We currently not supporting this use case after stop recommending use font size variables
it.skip("warns for values that can be replaced with multiple CSS vars", async () => {
const {

@@ -121,3 +122,4 @@ results: [{ warnings }]

it("perform fixes when there are multiple var replacements, when specifying the useRecommendedFixes flag", async () => {
// We currently not supporting this use case after stop recommending use font size variables
it.skip("perform fixes when there are multiple var replacements, when specifying the useRecommendedFixes flag", async () => {
const { results } = await lint({

@@ -124,0 +126,0 @@ files: path.resolve(__dirname, "./fixtures/contains-values-with-multiple-replacements.scss"),

const { parseMondayUiCss, getPropsToAllowedCssVars } = require("../parse-monday-css");
const { PROPS_TO_ALLOWED_VARS } = require("../props-to-allowed-vars");
const ALLOWED_CSS_VARS_WITHOUT_MAPPINGS = ["--font-line-height-30", "--font-line-height-20", "--font-size-10"];
const ALLOWED_CSS_VARS_PREFIX_WITHOUT_MAPPING = [
"--font-h",
"--font-text",
"--font-weight",
"--font-size",
"--font-line-height",
"--letter-spacing"
];

@@ -31,3 +38,3 @@ describe("props-to-allowed-vars", () => {

if (!ALLOWED_CSS_VARS_WITHOUT_MAPPINGS.includes(varFromGeneratedCss)) {
if (!ALLOWED_CSS_VARS_PREFIX_WITHOUT_MAPPING.some(prefix => varFromGeneratedCss.startsWith(prefix))) {
// If this fails, a CSS var was added without mapping it to recommended CSS props.

@@ -34,0 +41,0 @@ // Without this mapping, we won't be able to recommend the proper usage of the CSS var.

@@ -149,16 +149,2 @@ const SPACINGS = [

...mapPropsToAllowedVars(BORDER_STYLES_PROPS, BORDER_STYLES),
...mapPropsToAllowedVars("line-height", FONT_LINE_HEIGHTS, [
"--font-line-height-subtext",
"--font-line-height-h1",
"--font-line-height-h2",
"--font-line-height-h4"
]),
...mapPropsToAllowedVars("font-weight", FONT_WEIGHTS),
...mapPropsToAllowedVars("font-size", FONT_SIZES, [
"--font-size-h1",
"--font-size-h2",
"--font-size-h4",
"--font-size-h5",
"--font-size-general-label"
]),
...mapPropsToAllowedVars(FONT_FAMILIES_PROPS, FONT_FAMILIES, ["--title-font-family"]),

@@ -165,0 +151,0 @@ ...mapPropsToAllowedVars(TIMING_FUNCTION_PROPS, ANIMATION_TIMING, ["--expand-animation-timing"]),

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc