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

postcss-cva

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-cva - npm Package Compare versions

Comparing version 0.0.2 to 0.1.0

dist/shared/postcss-cva.2e085e7d.mjs

32

dist/extract.d.ts

@@ -1,33 +0,11 @@

import { Comment, PluginCreator } from 'postcss';
import { C as CommentType, a as CvaParams } from './shared/postcss-cva.be8f4539.js';
import { PluginCreator } from 'postcss';
import { C as CvaParams } from './shared/postcss-cva.6632d924.js';
declare const baseRegex: RegExp;
declare const defineBaseRegex: RegExp;
declare const variantRegex: RegExp;
declare const defineVariantRegex: RegExp;
declare const compoundVariantRegex: RegExp;
declare const defineCompoundVariantRegex: RegExp;
declare const defaultVariantRegex: RegExp;
declare const globalOptionsRegex: RegExp;
declare function getSuffix(text: string): {
type: CommentType;
suffix: string;
next: boolean;
} | undefined;
declare function pickComment(comment: Comment): {
type: CommentType;
suffix: string;
next: boolean;
} | undefined;
declare function extractParams(text: string): {
query: Record<string, {
value: string;
}>;
params: string[];
};
declare const creator: PluginCreator<{
prefix?: string;
process?: (res?: CvaParams) => void;
remove?: boolean;
filter?: (id: unknown) => boolean;
}>;
export { baseRegex, compoundVariantRegex, creator as default, defaultVariantRegex, defineBaseRegex, defineCompoundVariantRegex, defineVariantRegex, extractParams, getSuffix, globalOptionsRegex, pickComment, variantRegex };
export { creator as default };
import { PluginCreator } from 'postcss';
import { U as UserDefineOption } from './shared/postcss-cva.be8f4539.js';
import { U as UserDefineOption } from './shared/postcss-cva.6632d924.js';

@@ -4,0 +4,0 @@ declare const creator: PluginCreator<Partial<UserDefineOption>>;

{
"name": "postcss-cva",
"description": "generate cva functions by css comment",
"version": "0.0.2",
"version": "0.1.0",
"keywords": [

@@ -53,2 +53,3 @@ "cva",

"lodash": "^4.17.21",
"picomatch": "^3.0.1",
"postcss-selector-parser": "^6.0.15",

@@ -68,5 +69,7 @@ "@icestack/shared": "^1.3.3"

"devDependencies": {
"@types/picomatch": "^2.3.3",
"postcss": "^8.4.33"
},
"scripts": {
"dev": "unbuild --sourcemap",
"build": "unbuild",

@@ -73,0 +76,0 @@ "test": "vitest run",

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