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

@stylexjs/stylex

Package Overview
Dependencies
Maintainers
2
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stylexjs/stylex - npm Package Compare versions

Comparing version 0.2.0-beta.13 to 0.2.0-beta.14

26

lib/stylex.d.ts

@@ -13,2 +13,4 @@ /**

Stylex$Create,
Stylex$CreateVars,
Stylex$OverrideVars,
StyleXArray,

@@ -25,6 +27,9 @@ MapNamespace,

| boolean
| { [$$Key$$: string]: string | number }
| Readonly<{ $$css?: void; [$$Key$$: string]: string | number }>
>,
_options?: {}
): { className: string; style: { [$$Key$$: string]: string | number } };
): Readonly<{
className: string;
style: Readonly<{ $$css?: void; [$$Key$$: string]: string | number }>;
}>;
type Stylex$Include = <

@@ -36,2 +41,4 @@ TStyles extends { readonly [$$Key$$: string]: string | number }

export declare var create: Stylex$Create;
export declare var unstable_createVars: Stylex$CreateVars;
export declare var unstable_overrideVars: Stylex$OverrideVars;
export declare var include: Stylex$Include;

@@ -51,8 +58,15 @@ export declare var keyframes: (_keyframes: Keyframes) => string;

spread: (
styles: ReadonlyArray<
StyleXArray<(null | undefined | DedupeStyles) | boolean>
styles: StyleXArray<
| (null | undefined | DedupeStyles)
| boolean
| Readonly<{ $$css?: void; [$$Key$$: string]: string | number }>
>,
options?: {}
) => { className: string; style: { [$$Key$$: string]: string | number } };
_options?: {}
) => Readonly<{
className: string;
style: Readonly<{ $$css?: void; [$$Key$$: string]: string | number }>;
}>;
create: Stylex$Create;
unstable_createVars: Stylex$CreateVars;
unstable_overrideVars: Stylex$OverrideVars;
include: Stylex$Include;

@@ -59,0 +73,0 @@ firstThatWorks: <T extends string | number>(

@@ -17,3 +17,3 @@ /**

exports.spread = spread;
exports.stylex = void 0;
exports.unstable_overrideVars = exports.unstable_createVars = exports.stylex = void 0;
var _stylexInject = _interopRequireDefault(require("./stylex-inject"));

@@ -32,2 +32,8 @@ var _styleq = require("styleq");

}
function stylexCreateVars(_styles) {
throw new Error('stylex.createVars should never be called. It should be compiled away.');
}
function stylexOverrideVars(_styles) {
throw new Error('stylex.overrideVars should never be called. It should be compiled away.');
}
function stylexIncludes(_styles) {

@@ -38,2 +44,6 @@ throw new Error('stylex.extends should never be called. It should be compiled away.');

exports.create = create;
const unstable_createVars = stylexCreateVars;
exports.unstable_createVars = unstable_createVars;
const unstable_overrideVars = stylexOverrideVars;
exports.unstable_overrideVars = unstable_overrideVars;
const include = stylexIncludes;

@@ -64,2 +74,4 @@ exports.include = include;

_stylex.create = create;
_stylex.unstable_createVars = unstable_createVars;
_stylex.unstable_overrideVars = unstable_overrideVars;
_stylex.include = include;

@@ -66,0 +78,0 @@ _stylex.keyframes = keyframes;

@@ -175,1 +175,29 @@ /**

any>;
export declare type StyleXVarsTheme<
Vars extends { readonly [$$Key$$: string]: string }
> = Vars;
export type Stylex$CreateVars = <
Vars extends { readonly [$$Key$$: string]: string }
>(
styles: Vars,
config?: { themeName: string }
) => StyleXVarsTheme<
Readonly</**
* > 129 | ) => StyleXVarsTheme<$ReadOnly<$ObjMapConst<Vars, string>>>;
* | ^^^^^^^^^^^^^^^^^^^^^^^^^^ Unsupported feature: Translating "$ObjMapConst" is currently not supported.
**/
any>
>;
export type Stylex$OverrideVars = <
Vars extends { readonly [$$Key$$: string]: string }
>(
styles: Vars & { __themeName__: string },
stylesOverride: Vars,
config?: { themeName: string }
) => StyleXVarsTheme<
Readonly</**
* > 135 | ) => StyleXVarsTheme<$ReadOnly<$ObjMapConst<Vars, string>>>;
* | ^^^^^^^^^^^^^^^^^^^^^^^^^^ Unsupported feature: Translating "$ObjMapConst" is currently not supported.
**/
any>
>;
{
"name": "@stylexjs/stylex",
"version": "0.2.0-beta.13",
"version": "0.2.0-beta.14",
"description": "A library for defining styles for optimized user interfaces.",

@@ -23,3 +23,3 @@ "main": "lib/stylex.js",

"devDependencies": {
"@stylexjs/scripts": "0.2.0-beta.13"
"@stylexjs/scripts": "0.2.0-beta.14"
},

@@ -26,0 +26,0 @@ "jest": {},

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