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

@griffel/core

Package Overview
Dependencies
Maintainers
3
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@griffel/core - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

4

__styles.d.ts

@@ -1,2 +0,2 @@

import { GriffelStylesOptions, CSSClassesMapBySlot, CSSRulesByBucket } from './types';
import { MakeStylesOptions, CSSClassesMapBySlot, CSSRulesByBucket } from './types';
/**

@@ -7,2 +7,2 @@ * A version of makeStyles() that accepts build output as an input and skips all runtime transforms.

*/
export declare function __styles<Slots extends string>(classesMapBySlot: CSSClassesMapBySlot<Slots>, cssRules: CSSRulesByBucket): (options: Pick<GriffelStylesOptions, 'dir' | 'renderer'>) => Record<Slots, string>;
export declare function __styles<Slots extends string>(classesMapBySlot: CSSClassesMapBySlot<Slots>, cssRules: CSSRulesByBucket): (options: Pick<MakeStylesOptions, 'dir' | 'renderer'>) => Record<Slots, string>;

@@ -28,2 +28,2 @@ import { border, borderLeft, borderBottom, borderRight, borderTop, borderColor, borderStyle, borderRadius, borderWidth, gap, margin, padding, overflow } from './shorthands/index';

export * from './constants';
export type { GriffelStaticStylesStyle, GriffelStaticStyles, GriffelStylesAnimation, GriffelStylesStyle, CSSClasses, CSSClassesMapBySlot, CSSRulesByBucket, StyleBucketName, GriffelStaticStylesOptions, GriffelStylesOptions, GriffelStylesRenderer, } from './types';
export type { GriffelStaticStyle, GriffelStaticStyles, GriffelAnimation, GriffelStyle, CSSClasses, CSSClassesMapBySlot, CSSRulesByBucket, StyleBucketName, MakeStaticStylesOptions, MakeStylesOptions, GriffelRenderer, } from './types';

@@ -1,2 +0,2 @@

import { GriffelStaticStylesOptions, GriffelStaticStyles } from './types';
import { MakeStaticStylesOptions, GriffelStaticStyles } from './types';
/**

@@ -6,2 +6,2 @@ * Register static css.

*/
export declare function makeStaticStyles(styles: GriffelStaticStyles | GriffelStaticStyles[]): (options: GriffelStaticStylesOptions) => void;
export declare function makeStaticStyles(styles: GriffelStaticStyles | GriffelStaticStyles[]): (options: MakeStaticStylesOptions) => void;

@@ -1,2 +0,2 @@

import { GriffelStylesOptions, StylesBySlots } from './types';
export declare function makeStyles<Slots extends string | number>(stylesBySlots: StylesBySlots<Slots>): (options: GriffelStylesOptions) => Record<Slots, string>;
import { MakeStylesOptions, StylesBySlots } from './types';
export declare function makeStyles<Slots extends string | number>(stylesBySlots: StylesBySlots<Slots>): (options: MakeStylesOptions) => Record<Slots, string>;
{
"name": "@griffel/core",
"sideEffects": false,
"version": "1.0.4"
"version": "1.0.5"
}

@@ -1,2 +0,2 @@

import { GriffelStylesRenderer } from '../types';
import { GriffelRenderer } from '../types';
export interface CreateDOMRendererOptions {

@@ -18,2 +18,2 @@ /**

*/
export declare function createDOMRenderer(target?: Document | undefined, options?: CreateDOMRendererOptions): GriffelStylesRenderer;
export declare function createDOMRenderer(target?: Document | undefined, options?: CreateDOMRendererOptions): GriffelRenderer;

@@ -1,2 +0,2 @@

import { GriffelStylesRenderer, StyleBucketName } from '../types';
import { GriffelRenderer, StyleBucketName } from '../types';
/**

@@ -11,2 +11,2 @@ * Ordered style buckets using their short pseudo name.

*/
export declare function getStyleSheetForBucket(bucketName: StyleBucketName, target: Document, renderer: GriffelStylesRenderer): CSSStyleSheet;
export declare function getStyleSheetForBucket(bucketName: StyleBucketName, target: Document, renderer: GriffelRenderer): CSSStyleSheet;

@@ -1,2 +0,2 @@

import { GriffelStylesRenderer } from '../types';
import { GriffelRenderer } from '../types';
/**

@@ -8,2 +8,2 @@ * Should be called in a case of Server-Side rendering. Rehydrates cache from for a renderer to avoid double insertion

*/
export declare function rehydrateRendererCache(renderer: GriffelStylesRenderer, target?: Document | undefined): void;
export declare function rehydrateRendererCache(renderer: GriffelRenderer, target?: Document | undefined): void;

@@ -1,3 +0,3 @@

import { GriffelStylesAnimation } from '../types';
export declare function compileKeyframeRule(keyframeObject: GriffelStylesAnimation): string;
import { GriffelAnimation } from '../types';
export declare function compileKeyframeRule(keyframeObject: GriffelAnimation): string;
/**

@@ -4,0 +4,0 @@ * Creates CSS rules for insertion from passed CSS.

@@ -1,2 +0,2 @@

import { GriffelStaticStylesStyle } from '../types';
export declare function compileStaticCSS(property: string, value: GriffelStaticStylesStyle): string;
import { GriffelStaticStyle } from '../types';
export declare function compileStaticCSS(property: string, value: GriffelStaticStyle): string;

@@ -1,2 +0,2 @@

import { GriffelStylesStyle, CSSClassesMap, CSSRulesByBucket } from '../types';
import { GriffelStyle, CSSClassesMap, CSSRulesByBucket } from '../types';
/**

@@ -7,2 +7,2 @@ * Transforms input styles to classes maps & CSS rules.

*/
export declare function resolveStyleRules(styles: GriffelStylesStyle, pseudo?: string, media?: string, support?: string, cssClassesMap?: CSSClassesMap, cssRulesByBucket?: CSSRulesByBucket, rtlValue?: string): [CSSClassesMap, CSSRulesByBucket];
export declare function resolveStyleRules(styles: GriffelStyle, pseudo?: string, media?: string, support?: string, cssClassesMap?: CSSClassesMap, cssRulesByBucket?: CSSRulesByBucket, rtlValue?: string): [CSSClassesMap, CSSRulesByBucket];

@@ -1,2 +0,2 @@

import { GriffelStaticStylesStyle, GriffelStylesStyle } from '../../types';
export declare function cssifyObject(style: GriffelStylesStyle | GriffelStaticStylesStyle): string;
import { GriffelStaticStyle, GriffelStyle } from '../../types';
export declare function cssifyObject(style: GriffelStyle | GriffelStaticStyle): string;

@@ -49,3 +49,3 @@ import * as CSS from 'csstype';

export declare type GriffelStylesStrictCSSObject = GriffelStylesCSSProperties & GriffelStylesCSSPseudos & {
animationName?: GriffelStylesAnimation | GriffelStylesAnimation[] | CSS.AnimationProperty;
animationName?: GriffelAnimation | GriffelAnimation[] | CSS.AnimationProperty;
fontWeight?: CSS.Properties['fontWeight'] | string;

@@ -75,9 +75,9 @@ };

} & GriffelStylesStrictCSSObject;
export declare type GriffelStylesAnimation = Record<'from' | 'to' | string, GriffelStylesCSSObjectCustomL1>;
export declare type GriffelStylesStyle = GriffelStylesStrictCSSObject | GriffelStylesCSSObjectCustomL1;
export interface GriffelStylesOptions {
export declare type GriffelAnimation = Record<'from' | 'to' | string, GriffelStylesCSSObjectCustomL1>;
export declare type GriffelStyle = GriffelStylesStrictCSSObject | GriffelStylesCSSObjectCustomL1;
export interface MakeStylesOptions {
dir: 'ltr' | 'rtl';
renderer: GriffelStylesRenderer;
renderer: GriffelRenderer;
}
export declare type GriffelStaticStylesStyle = {
export declare type GriffelStaticStyle = {
[key: string]: CSS.Properties & Record<string, any>;

@@ -97,7 +97,7 @@ } & {

};
export declare type GriffelStaticStyles = GriffelStaticStylesStyle | string;
export interface GriffelStaticStylesOptions {
renderer: GriffelStylesRenderer;
export declare type GriffelStaticStyles = GriffelStaticStyle | string;
export interface MakeStaticStylesOptions {
renderer: GriffelRenderer;
}
export interface GriffelStylesRenderer {
export interface GriffelRenderer {
id: string;

@@ -127,4 +127,4 @@ /**

export declare type CSSRulesByBucket = Partial<Record<StyleBucketName, string[]>>;
export declare type StylesBySlots<Slots extends string | number> = Record<Slots, GriffelStylesStyle>;
export declare type StylesBySlots<Slots extends string | number> = Record<Slots, GriffelStyle>;
export declare type LookupItem = [/* definitions */ CSSClassesMap, /* dir */ /* dir */ 'rtl' | 'ltr'];
export {};
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